diff --git a/.changeset/tough-lamps-sell.md b/.changeset/tough-lamps-sell.md new file mode 100644 index 0000000000..7970000359 --- /dev/null +++ b/.changeset/tough-lamps-sell.md @@ -0,0 +1,5 @@ +--- +"@medusajs/types": patch +--- + +fix(types): fix AdminBatchProductRequest to have product ID diff --git a/packages/core/types/src/http/product/admin/payloads.ts b/packages/core/types/src/http/product/admin/payloads.ts index 6e892315a7..40e42d615a 100644 --- a/packages/core/types/src/http/product/admin/payloads.ts +++ b/packages/core/types/src/http/product/admin/payloads.ts @@ -10,8 +10,14 @@ export interface AdminImportProductRequest { */ file: File } +interface AdminBatchUpdateProduct extends AdminUpdateProduct { + /** + * The ID of the product to update. + */ + id: string +} export interface AdminBatchProductRequest - extends BatchMethodRequest {} + extends BatchMethodRequest {} export interface AdminBatchProductVariantRequest extends BatchMethodRequest<