@artsy/cohesion 4.272.2 → 4.274.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/Schema/CMS/Events/BulkEditFlow.d.ts +15 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v4.274.0 (Thu Jun 19 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: Additional metadata for processingCompleted and click availability bulk edit flow [#607](https://github.com/artsy/cohesion/pull/607) ([@jpotts244](https://github.com/jpotts244))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.273.0 (Mon Jun 16 2025)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: Adds artwork_ids metadata to processing and shortlist bulk edit events [#606](https://github.com/artsy/cohesion/pull/606) ([@jpotts244](https://github.com/jpotts244))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.272.2 (Fri Jun 13 2025)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
|
@@ -14,6 +14,7 @@ import { CmsContextModule } from "../Values/CmsContextModule";
|
|
|
14
14
|
* context_module: "Artworks - bulk edit",
|
|
15
15
|
* label: "change availability",
|
|
16
16
|
* value: "on hold", // e.g. "on hold", "available", "not for sale"
|
|
17
|
+
* artwork_ids: ["artwork1", "artwork2", "artwork3"]
|
|
17
18
|
* }
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
@@ -22,6 +23,7 @@ export interface CmsBulkEditClickedChangeAvailability {
|
|
|
22
23
|
context_module: CmsContextModule.bulkEditFlow;
|
|
23
24
|
label: "change availability";
|
|
24
25
|
value: string;
|
|
26
|
+
artwork_ids: string[];
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Partners clicked bulk edit pill
|
|
@@ -51,7 +53,8 @@ export interface CmsBulkEditClickedEditPill {
|
|
|
51
53
|
* action: "click",
|
|
52
54
|
* context_module: "Artworks - bulk edit",
|
|
53
55
|
* label: "shortlist",
|
|
54
|
-
* value:
|
|
56
|
+
* value: 3, // how many artworks selected
|
|
57
|
+
* artwork_ids: ["artwork1", "artwork2", "artwork3"]
|
|
55
58
|
* }
|
|
56
59
|
* ```
|
|
57
60
|
*/
|
|
@@ -60,6 +63,7 @@ export interface CmsBulkEditClickedShortlistPill {
|
|
|
60
63
|
context_module: CmsContextModule.bulkEditFlow;
|
|
61
64
|
label: "shortlist";
|
|
62
65
|
value: number;
|
|
66
|
+
artwork_ids: string[];
|
|
63
67
|
}
|
|
64
68
|
/**
|
|
65
69
|
* Partners clicked resolve all conflicts link
|
|
@@ -160,7 +164,7 @@ export interface CmsBulkEditResolvedAllConflictsShown {
|
|
|
160
164
|
context_module: CmsContextModule.bulkEditFlow;
|
|
161
165
|
}
|
|
162
166
|
/**
|
|
163
|
-
*
|
|
167
|
+
* Bulk edit flow processing started
|
|
164
168
|
*
|
|
165
169
|
* Example:
|
|
166
170
|
* {
|
|
@@ -181,13 +185,17 @@ export interface CmsBulkEditProcessingStarted {
|
|
|
181
185
|
* {
|
|
182
186
|
* action: "processingCompleted",
|
|
183
187
|
* context_module: "Artworks - bulk edit",
|
|
184
|
-
*
|
|
188
|
+
* label: "change availability",
|
|
189
|
+
* value: "on hold", // e.g. "on hold", "available", "not for sale"
|
|
190
|
+
* artwork_ids: ["artwork1", "artwork2"]
|
|
185
191
|
* }
|
|
186
192
|
*/
|
|
187
193
|
export interface CmsBulkEditProcessingCompleted {
|
|
188
194
|
action: CmsActionType.processingCompleted;
|
|
189
195
|
context_module: CmsContextModule.bulkEditFlow;
|
|
190
|
-
|
|
196
|
+
label: string;
|
|
197
|
+
value: string;
|
|
198
|
+
artwork_ids: string[];
|
|
191
199
|
}
|
|
192
200
|
/**
|
|
193
201
|
* Bulk edit failed
|
|
@@ -196,12 +204,14 @@ export interface CmsBulkEditProcessingCompleted {
|
|
|
196
204
|
* {
|
|
197
205
|
* action: "bulkEditFailed",
|
|
198
206
|
* context_module: "Artworks - bulk edit",
|
|
199
|
-
* value: [ 'availability: must be "for sale", "sold" or "not for sale" for works available for purchase', "error2" ]
|
|
207
|
+
* value: [ 'availability: must be "for sale", "sold" or "not for sale" for works available for purchase', "error2" ],
|
|
208
|
+
* artwork_ids: [ "artwork1", "artwork2" ]
|
|
200
209
|
* }
|
|
201
210
|
*/
|
|
202
211
|
export interface CmsBulkEditFailed {
|
|
203
212
|
action: CmsActionType.bulkEditFailed;
|
|
204
213
|
context_module: CmsContextModule.bulkEditFlow;
|
|
205
214
|
value: string[];
|
|
215
|
+
artwork_ids: string[];
|
|
206
216
|
}
|
|
207
217
|
export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditFailed | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditProcessingCompleted | CmsBulkEditProcessingStarted | CmsBulkEditResolvedAllConflictsShown;
|