Add store-item bulk create, unlimited stock, and contact-for-price UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-08 15:36:41 +03:30
co-authored by Cursor
parent 5eaf7fb046
commit ad83fc1099
15 changed files with 803 additions and 77 deletions
+10 -6
View File
@@ -36,8 +36,10 @@ export interface StoreItemsListResponse {
export interface CreateStoreItemPayload {
selections: { variationId: string; optionId: string }[]
price?: number
stockQuantity?: number
/** null = contact for price */
price?: number | null
/** null = unlimited stock */
stockQuantity?: number | null
}
export interface BatchCreateStoreItemsPayload {
@@ -46,8 +48,8 @@ export interface BatchCreateStoreItemsPayload {
}
export interface UpdateStoreItemPayload {
price?: number
stockQuantity?: number
price?: number | null
stockQuantity?: number | null
discountedPrice?: number | null
isFestival?: boolean
}
@@ -60,8 +62,10 @@ export interface BatchUpdateStoreItemDiscountsPayload {
export interface SyncStoreItemRowPayload {
id?: string
selections: { variationId: string; optionId: string }[]
price: number
stockQuantity: number
/** null = contact for price */
price: number | null
/** null = unlimited stock */
stockQuantity: number | null
}
export interface SyncProductStoreItemsPayload {