Skip to content

Commit

Permalink
fix(types): Add AdminBatchUpdateProductVariant type (#10009)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen authored Nov 11, 2024
1 parent 5e1ccba commit 34f4f69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-gifts-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---

fix(types): Add AdminBatchUpdateProductVariant type, which includes ID.
6 changes: 5 additions & 1 deletion packages/core/types/src/http/product/admin/payloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface AdminBatchProductRequest
export interface AdminBatchProductVariantRequest
extends BatchMethodRequest<
AdminCreateProductVariant,
AdminUpdateProductVariant
AdminBatchUpdateProductVariant
> {}

export interface AdminBatchProductVariantInventoryItemRequest
Expand Down Expand Up @@ -109,6 +109,10 @@ export interface AdminUpdateProductVariant {
options?: Record<string, string>
}

export interface AdminBatchUpdateProductVariant extends AdminUpdateProductVariant {
id: string
}

export interface AdminUpdateProduct {
title?: string
subtitle?: string | null
Expand Down

0 comments on commit 34f4f69

Please sign in to comment.