Skip to content

Commit 4e083cf

Browse files
committed
Adjust bulk edit event to handle array for label and values
1 parent 4e45949 commit 4e083cf

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/Schema/CMS/Events/BulkEditFlow.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,32 @@ export interface CmsBulkEditProcessingStarted {
121121
/**
122122
* Bulk Edit flow processing completed
123123
*
124-
* Example:
124+
* Example (single field):
125125
* {
126126
* action: "processingCompleted",
127127
* context_module: "Artworks - bulk edit",
128128
* label: "change availability",
129129
* value: "on hold", // e.g. "on hold", "available", "not for sale"
130130
* artwork_ids: ["artwork1", "artwork2"]
131131
* }
132+
*
133+
* Example (multiple fields):
134+
* {
135+
* action: "processingCompleted",
136+
* context_module: "Artworks - bulk edit",
137+
* labels: ["change domesticShipping", "change internationalShipping", "change collectorPickup"],
138+
* values: ["2000", "3000", "1000"],
139+
* artwork_ids: ["artwork1", "artwork2"],
140+
* shipping_preset_id: "preset123"
141+
* }
132142
*/
133143
export interface CmsBulkEditProcessingCompleted {
134144
action: CmsActionType.processingCompleted
135145
context_module: CmsContextModule.bulkEditFlow
136-
label: string
137-
value: string
146+
label?: string
147+
value?: string
148+
labels?: string[]
149+
values?: string[]
138150
artwork_ids: string[]
139151
shipping_preset_id?: string
140152
}

0 commit comments

Comments
 (0)