feat: automatic upload detection for product images

This commit is contained in:
Adhiraj Singh
2022-03-07 15:33:52 +05:30
parent 6967e53164
commit 238cde23b7
5 changed files with 94 additions and 27 deletions

View File

@@ -1,3 +1,4 @@
import { WAMediaUpload } from './Message'
export type CatalogResult = {
data: {
@@ -38,8 +39,8 @@ export type ProductBase = {
export type ProductCreate = ProductBase & {
/** ISO country code for product origin. Set to undefined for no country */
originCountryCode: string | undefined
imageUrls: string[]
/** images of the product */
images: WAMediaUpload[]
}
export type ProductUpdate = Omit<ProductCreate, 'originCountryCode'>