@artsy/cohesion 4.271.0 → 4.272.1

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.1 (Fri Jun 13 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix(bulk-edits): Adds more consistent typing for number typed values [#604](https://github.com/artsy/cohesion/pull/604) ([@jpotts244](https://github.com/jpotts244))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
10
+
11
+ ---
12
+
13
+ # v4.272.0 (Thu Jun 12 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - feat: Adds more custom events for BulkEdits [#603](https://github.com/artsy/cohesion/pull/603) ([@jpotts244](https://github.com/jpotts244))
18
+
19
+ #### Authors: 1
20
+
21
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
22
+
23
+ ---
24
+
1
25
  # v4.271.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
@@ -159,4 +159,49 @@ export interface CmsBulkEditResolvedAllConflictsShown {
159
159
  action: CmsActionType.shownResolvedAllConflicts;
160
160
  context_module: CmsContextModule.bulkEditFlow;
161
161
  }
162
- export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditResolvedAllConflictsShown;
162
+ /**
163
+ * Bluk edit flow processing started
164
+ *
165
+ * Example:
166
+ * {
167
+ * action: "processingStarted",
168
+ * context_module: "Artworks - bulk edit",
169
+ * value: 25 // total number of artworks being processed
170
+ * }
171
+ */
172
+ export interface CmsBulkEditProcessingStarted {
173
+ action: CmsActionType.processingStarted;
174
+ context_module: CmsContextModule.bulkEditFlow;
175
+ value: number;
176
+ }
177
+ /**
178
+ * Bulk Edit flow processing completed
179
+ *
180
+ * Example:
181
+ * {
182
+ * action: "processingCompleted",
183
+ * context_module: "Artworks - bulk edit",
184
+ * value: 24 // total number of artworks successfully processed
185
+ * }
186
+ */
187
+ export interface CmsBulkEditProcessingCompleted {
188
+ action: CmsActionType.processingCompleted;
189
+ context_module: CmsContextModule.bulkEditFlow;
190
+ value: number;
191
+ }
192
+ /**
193
+ * Bulk edit failed
194
+ *
195
+ * Example:
196
+ * {
197
+ * action: "bulkEditFailed",
198
+ * context_module: "Artworks - bulk edit",
199
+ * value: "Network error" // or any error message displayed to user
200
+ * }
201
+ */
202
+ export interface CmsBulkEditFailed {
203
+ action: CmsActionType.bulkEditFailed;
204
+ context_module: CmsContextModule.bulkEditFlow;
205
+ value: string;
206
+ }
207
+ export type CmsBulkEditFlow = CmsBulkEditClickedCancelEdits | CmsBulkEditClickedChangeAvailability | CmsBulkEditClickedConfirmEdits | CmsBulkEditClickedEditPill | CmsBulkEditClickedResolveAllConflicts | CmsBulkEditClickedShortlistPill | CmsBulkEditConflictsShown | CmsBulkEditFailed | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditProcessingCompleted | CmsBulkEditProcessingStarted | CmsBulkEditResolvedAllConflictsShown;
@@ -24,6 +24,10 @@ export declare enum CmsActionType {
24
24
  * Corresponds to {@link CmsBatchImportFlow}
25
25
  */
26
26
  artistNeedsMatching = "artistNeedsMatching",
27
+ /**
28
+ * Corresponds to {@link CmsBulkEditFlow}
29
+ */
30
+ bulkEditFailed = "bulkEditFailed",
27
31
  /**
28
32
  * Corresponds to {@link CmsArtworkFilter}
29
33
  */
@@ -40,20 +44,28 @@ export declare enum CmsActionType {
40
44
  * Corresponds to {@link SettingsFlow}
41
45
  */
42
46
  editedLocation = "editedLocation",
47
+ /**
48
+ * Corresponds to {@link CmsBulkEditFlow}
49
+ */
50
+ processingStarted = "processingStarted",
51
+ /**
52
+ * Corresponds to {@link CmsBulkEditFlow}
53
+ */
54
+ processingCompleted = "processingCompleted",
43
55
  /**
44
56
  * Corresponds to {@link CmsArtworkFilter}
45
57
  */
46
58
  searchedArtwork = "searched artwork",
47
59
  /**
48
- * Corresponds to {@link BulkEditFlow}
60
+ * Corresponds to {@link CmsBulkEditFlow}
49
61
  */
50
62
  shownConflicts = "shownConflicts",
51
63
  /**
52
- * Corresponds to {@link BulkEditFlow}
64
+ * Corresponds to {@link CmsBulkEditFlow}
53
65
  */
54
66
  shownMaxEditLimitReached = "shownMaxEditLimitReached",
55
67
  /**
56
- * Corresponds to {@link BulkEditFlow}
68
+ * Corresponds to {@link CmsBulkEditFlow}
57
69
  */
58
70
  shownResolvedAllConflicts = "shownResolvedAllConflicts",
59
71
  /**
@@ -22,10 +22,13 @@ exports.CmsActionType = CmsActionType;
22
22
  (function (CmsActionType) {
23
23
  CmsActionType["addedNewLocation"] = "addedNewLocation";
24
24
  CmsActionType["artistNeedsMatching"] = "artistNeedsMatching";
25
+ CmsActionType["bulkEditFailed"] = "bulkEditFailed";
25
26
  CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
26
27
  CmsActionType["createdArtwork"] = "created artwork";
27
28
  CmsActionType["csvImportError"] = "csvImportError";
28
29
  CmsActionType["editedLocation"] = "editedLocation";
30
+ CmsActionType["processingStarted"] = "processingStarted";
31
+ CmsActionType["processingCompleted"] = "processingCompleted";
29
32
  CmsActionType["searchedArtwork"] = "searched artwork";
30
33
  CmsActionType["shownConflicts"] = "shownConflicts";
31
34
  CmsActionType["shownMaxEditLimitReached"] = "shownMaxEditLimitReached";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.271.0",
3
+ "version": "4.272.1",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {