Add store-item bulk create, unlimited stock, and contact-for-price UI.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
5eaf7fb046
commit
ad83fc1099
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user