chore: add batch update prices for price lists (#6999)
This commit is contained in:
1 parent
dd35a4dbff
commit
5e953f8cf3
12 files changed
+166
-293
No files matched your search
@@ -9,16 +9,6 @@ export interface CreatePriceListPriceWorkflowDTO {
|
||||
rules?: Record<string, string>
|
||||
}
|
||||
|
||||
export interface UpdatePriceListPriceWorkflowDTO {
|
||||
id: string
|
||||
amount?: number
|
||||
currency_code?: string
|
||||
variant_id?: string
|
||||
max_quantity?: number
|
||||
min_quantity?: number
|
||||
rules?: Record<string, string>
|
||||
}
|
||||
|
||||
export interface CreatePriceListWorkflowInputDTO {
|
||||
title: string
|
||||
description: string
|
||||
@@ -26,7 +16,7 @@ export interface CreatePriceListWorkflowInputDTO {
|
||||
ends_at?: string | null
|
||||
status?: PriceListStatus
|
||||
rules?: Record<string, string[]>
|
||||
prices?: CreatePriceListPriceWorkflowDTO[]
|
||||
prices: CreatePriceListPriceWorkflowDTO[]
|
||||
}
|
||||
|
||||
export interface UpdatePriceListWorkflowInputDTO {
|
||||
@@ -37,12 +27,19 @@ export interface UpdatePriceListWorkflowInputDTO {
|
||||
ends_at?: string | null
|
||||
status?: PriceListStatus
|
||||
rules?: Record<string, string[]>
|
||||
prices?: CreatePriceListPriceWorkflowDTO[]
|
||||
}
|
||||
|
||||
export interface UpdatePriceListPricesWorkflowDTO {
|
||||
id: string
|
||||
prices: UpdatePriceListPriceWorkflowDTO[]
|
||||
prices: {
|
||||
id: string
|
||||
variant_id: string
|
||||
amount?: number
|
||||
currency_code?: string
|
||||
max_quantity?: number
|
||||
min_quantity?: number
|
||||
rules?: Record<string, string>
|
||||
}[]
|
||||
}
|
||||
|
||||
export interface CreatePriceListPricesWorkflowDTO {
|
||||
@@ -50,21 +47,11 @@ export interface CreatePriceListPricesWorkflowDTO {
|
||||
prices: CreatePriceListPriceWorkflowDTO[]
|
||||
}
|
||||
|
||||
export interface UpdatePriceListPriceWorkflowDTO {
|
||||
data: Pick<UpdatePriceListWorkflowInputDTO, "id" | "prices">[]
|
||||
variant_price_map: Record<string, string>
|
||||
}
|
||||
|
||||
export interface UpdatePriceListPriceWorkflowStepDTO {
|
||||
data?: UpdatePriceListPricesWorkflowDTO[]
|
||||
variant_price_map: Record<string, string>
|
||||
}
|
||||
|
||||
export interface UpsertPriceListPricesWorkflowStepDTO {
|
||||
data: Pick<UpdatePriceListWorkflowInputDTO, "id" | "prices">[]
|
||||
variant_price_map: Record<string, string>
|
||||
}
|
||||
|
||||
export interface CreatePriceListsWorkflowStepDTO {
|
||||
data: CreatePriceListWorkflowInputDTO[]
|
||||
variant_price_map: Record<string, string>
|
||||
|
||||
Reference in new issue
Block a user