fix: allow to pass external_id on create/update (#9694)

This commit is contained in:
Frane Polić authored and GitHub committed 2024-10-21 20:05:18 +02:00
1 parent a0668adefa
commit 171434e4d1
3 files changed
+12

No files matched your search

@@ -69,6 +69,7 @@ export interface AdminCreateProduct {
handle?: string
status?: ProductStatus
type_id?: string
external_id?: string
collection_id?: string
categories?: { id: string }[]
tags?: { id: string }[]
@@ -119,6 +120,7 @@ export interface AdminUpdateProduct {
handle?: string
status?: ProductStatus
type_id?: string | null
external_id?: string | null
collection_id?: string | null
categories?: { id: string }[]
tags?: { id: string }[]
@@ -1453,6 +1453,10 @@ export interface CreateProductDTO {
* The associated images to created or updated.
*/
images?: UpsertProductImageDTO[]
/**
* The id of the product in an external system
*/
external_id?: string
/**
* The product type id to associate with the product.
*/
@@ -1569,6 +1573,10 @@ export interface UpdateProductDTO {
* The associated images to create or update.
*/
images?: UpsertProductImageDTO[]
/**
* The id of the product in an external system
*/
external_id?: string | null
/**
* The product type to associate with the product.
*/