@artsy/cohesion 4.297.0 → 4.298.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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v4.298.0 (Mon Aug 18 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat(batch-import): Add image events [#633](https://github.com/artsy/cohesion/pull/633) ([@damassi](https://github.com/damassi))
6
+
7
+ #### Authors: 1
8
+
9
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
10
+
11
+ ---
12
+
1
13
  # v4.297.0 (Tue Aug 12 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -228,4 +228,110 @@ export interface CmsBatchImportTableContentSummary {
228
228
  invalid: number;
229
229
  }>;
230
230
  }
231
- export type CmsBatchImportFlow = CmsBatchImportFlowClickImport | CmsBatchImportFlowClickAddCSV | CmsBatchImportFlowClickDownloadTemplate | CmsBatchImportFlowShownMissingInformation | CmsBatchImportFlowArtistNeedsMatching | CmsBatchImportClickExit | CmsBatchImportEditedBatchImportField | CmsBatchImportTableContentSummary;
231
+ /**
232
+ * Fired for every column the partner hides or shows.
233
+ *
234
+ * @example
235
+ * ```
236
+ * {
237
+ * action: "batchImportShowHideColumns",
238
+ * context_module: "batchImportFlow",
239
+ * label: "column name",
240
+ * value: "hide" or "show"
241
+ * }
242
+ * ```
243
+ */
244
+ export interface CmsBatchImportShowHideColumns {
245
+ action: CmsActionType.batchImportShowHideColumns;
246
+ context_module: CmsContextModule.batchImportFlow;
247
+ label: string;
248
+ value: "hide" | "show";
249
+ }
250
+ /**
251
+ * Fired for every time a partner changes a unit either in the settings at the top or in line.
252
+ *
253
+ * @example
254
+ * ```
255
+ * {
256
+ * action: "batchImportChangedUnit",
257
+ * context_module: "batchImportFlow",
258
+ * label: "unit changed",
259
+ * value: "new value"
260
+ * }
261
+ * ```
262
+ */
263
+ export interface CmsBatchImportChangedUnit {
264
+ action: CmsActionType.batchImportChangedUnit;
265
+ context_module: CmsContextModule.batchImportFlow;
266
+ label: "unit changed";
267
+ value: string;
268
+ }
269
+ /**
270
+ * Fired when a partner imports an image file on the page.
271
+ *
272
+ * @example
273
+ * ```
274
+ * {
275
+ * action: "batchImportAddedImageFile",
276
+ * context_module: "batchImportFlow"
277
+ * }
278
+ * ```
279
+ */
280
+ export interface CmsBatchImportAddedImageFile {
281
+ action: CmsActionType.batchImportAddedImageFile;
282
+ context_module: CmsContextModule.batchImportFlow;
283
+ }
284
+ /**
285
+ * Fired for every time a partner clicks confirm after adding an image on the review page.
286
+ *
287
+ * @example
288
+ * ```
289
+ * {
290
+ * action: "batchImportAddedImage",
291
+ * context_module: "batchImportFlow",
292
+ * artwork_import_row_id: "123",
293
+ * value: 3
294
+ * }
295
+ * ```
296
+ */
297
+ export interface CmsBatchImportAddedImage {
298
+ action: CmsActionType.batchImportAddedImage;
299
+ context_module: CmsContextModule.batchImportFlow;
300
+ artwork_import_row_id: string;
301
+ value: number;
302
+ }
303
+ /**
304
+ * Fired when a partner reorder images.
305
+ *
306
+ * @example
307
+ * ```
308
+ * {
309
+ * action: "batchImportReorderImage",
310
+ * context_module: "batchImportFlow",
311
+ * artwork_import_row_id: "123"
312
+ * }
313
+ * ```
314
+ */
315
+ export interface CmsBatchImportReorderImage {
316
+ action: CmsActionType.batchImportReorderImage;
317
+ context_module: CmsContextModule.batchImportFlow;
318
+ artwork_import_row_id: string;
319
+ }
320
+ /**
321
+ * Fired when a partner clicks delete on an image.
322
+ *
323
+ * @example
324
+ * ```
325
+ * {
326
+ * action: "batchImportClickDeleteImage",
327
+ * context_module: "batchImportFlow",
328
+ * artwork_import_row_id: "123"
329
+ * }
330
+ * ```
331
+ */
332
+ export interface CmsBatchImportClickDeleteImage {
333
+ action: CmsActionType.batchImportClickDeleteImage;
334
+ context_module: CmsContextModule.batchImportFlow;
335
+ artwork_import_row_id: string;
336
+ }
337
+ export type CmsBatchImportFlow = CmsBatchImportFlowClickImport | CmsBatchImportFlowClickAddCSV | CmsBatchImportFlowClickDownloadTemplate | CmsBatchImportFlowShownMissingInformation | CmsBatchImportFlowArtistNeedsMatching | CmsBatchImportClickExit | CmsBatchImportEditedBatchImportField | CmsBatchImportTableContentSummary | CmsBatchImportShowHideColumns | CmsBatchImportChangedUnit | CmsBatchImportAddedImageFile | CmsBatchImportAddedImage | CmsBatchImportReorderImage | CmsBatchImportClickDeleteImage;
@@ -104,5 +104,29 @@ export declare enum CmsActionType {
104
104
  /**
105
105
  * Corresponds to {@link CmsAnalytics}
106
106
  */
107
- viewedTooltip = "viewedTooltip"
107
+ viewedTooltip = "viewedTooltip",
108
+ /**
109
+ * Corresponds to {@link CmsBatchImportFlow}
110
+ */
111
+ batchImportShowHideColumns = "batchImportShowHideColumns",
112
+ /**
113
+ * Corresponds to {@link CmsBatchImportFlow}
114
+ */
115
+ batchImportChangedUnit = "batchImportChangedUnit",
116
+ /**
117
+ * Corresponds to {@link CmsBatchImportFlow}
118
+ */
119
+ batchImportAddedImageFile = "batchImportAddedImageFile",
120
+ /**
121
+ * Corresponds to {@link CmsBatchImportFlow}
122
+ */
123
+ batchImportAddedImage = "batchImportAddedImage",
124
+ /**
125
+ * Corresponds to {@link CmsBatchImportFlow}
126
+ */
127
+ batchImportReorderImage = "batchImportReorderImage",
128
+ /**
129
+ * Corresponds to {@link CmsBatchImportFlow}
130
+ */
131
+ batchImportClickDeleteImage = "batchImportClickDeleteImage"
108
132
  }
@@ -42,4 +42,10 @@ exports.CmsActionType = CmsActionType;
42
42
  CmsActionType["viewedGraph"] = "viewedGraph";
43
43
  CmsActionType["viewedGraphDatapoint"] = "viewedGraphDatapoint";
44
44
  CmsActionType["viewedTooltip"] = "viewedTooltip";
45
+ CmsActionType["batchImportShowHideColumns"] = "batchImportShowHideColumns";
46
+ CmsActionType["batchImportChangedUnit"] = "batchImportChangedUnit";
47
+ CmsActionType["batchImportAddedImageFile"] = "batchImportAddedImageFile";
48
+ CmsActionType["batchImportAddedImage"] = "batchImportAddedImage";
49
+ CmsActionType["batchImportReorderImage"] = "batchImportReorderImage";
50
+ CmsActionType["batchImportClickDeleteImage"] = "batchImportClickDeleteImage";
45
51
  })(CmsActionType || (exports.CmsActionType = CmsActionType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.297.0",
3
+ "version": "4.298.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {