@artsy/cohesion 4.272.0 → 4.272.2

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 CHANGED
@@ -1,3 +1,27 @@
1
+ # v4.272.2 (Fri Jun 13 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix: Adjust bulkEditFailed type to more match error structure [#605](https://github.com/artsy/cohesion/pull/605) ([@jpotts244](https://github.com/jpotts244))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
10
+
11
+ ---
12
+
13
+ # v4.272.1 (Fri Jun 13 2025)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - fix(bulk-edits): Adds more consistent typing for number typed values [#604](https://github.com/artsy/cohesion/pull/604) ([@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.0 (Thu Jun 12 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -32,7 +32,7 @@ export interface CmsBulkEditClickedChangeAvailability {
32
32
  * action: "click",
33
33
  * context_module: "Artworks - bulk edit",
34
34
  * label: "bulk edit",
35
- * value: "5", // how many artworks selected
35
+ * value: 5, // how many artworks selected
36
36
  * }
37
37
  * ```
38
38
  */
@@ -40,7 +40,7 @@ export interface CmsBulkEditClickedEditPill {
40
40
  action: "click";
41
41
  context_module: CmsContextModule.bulkEditFlow;
42
42
  label: "bulk edit";
43
- value: string;
43
+ value: number;
44
44
  }
45
45
  /**
46
46
  * Partners clicked shortlist pill
@@ -51,7 +51,7 @@ export interface CmsBulkEditClickedEditPill {
51
51
  * action: "click",
52
52
  * context_module: "Artworks - bulk edit",
53
53
  * label: "shortlist",
54
- * value: "5", // how many artworks selected
54
+ * value: 5, // how many artworks selected
55
55
  * }
56
56
  * ```
57
57
  */
@@ -59,7 +59,7 @@ export interface CmsBulkEditClickedShortlistPill {
59
59
  action: "click";
60
60
  context_module: CmsContextModule.bulkEditFlow;
61
61
  label: "shortlist";
62
- value: string;
62
+ value: number;
63
63
  }
64
64
  /**
65
65
  * Partners clicked resolve all conflicts link
@@ -166,7 +166,7 @@ export interface CmsBulkEditResolvedAllConflictsShown {
166
166
  * {
167
167
  * action: "processingStarted",
168
168
  * context_module: "Artworks - bulk edit",
169
- * value: 25
169
+ * value: 25 // total number of artworks being processed
170
170
  * }
171
171
  */
172
172
  export interface CmsBulkEditProcessingStarted {
@@ -181,7 +181,7 @@ export interface CmsBulkEditProcessingStarted {
181
181
  * {
182
182
  * action: "processingCompleted",
183
183
  * context_module: "Artworks - bulk edit",
184
- * value: 24
184
+ * value: 24 // total number of artworks successfully processed
185
185
  * }
186
186
  */
187
187
  export interface CmsBulkEditProcessingCompleted {
@@ -196,12 +196,12 @@ export interface CmsBulkEditProcessingCompleted {
196
196
  * {
197
197
  * action: "bulkEditFailed",
198
198
  * context_module: "Artworks - bulk edit",
199
- * value: "Network error" // or any error message displayed to user
199
+ * value: [ 'availability: must be "for sale", "sold" or "not for sale" for works available for purchase', "error2" ]
200
200
  * }
201
201
  */
202
202
  export interface CmsBulkEditFailed {
203
203
  action: CmsActionType.bulkEditFailed;
204
204
  context_module: CmsContextModule.bulkEditFlow;
205
- value: string;
205
+ value: string[];
206
206
  }
207
207
  export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditFailed | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditProcessingCompleted | CmsBulkEditProcessingStarted | CmsBulkEditResolvedAllConflictsShown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.272.0",
3
+ "version": "4.272.2",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {