@artsy/cohesion 4.296.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,27 @@
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
+
13
+ # v4.297.0 (Tue Aug 12 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: Add graph_data subfield to cms graph [#632](https://github.com/artsy/cohesion/pull/632) ([@xander-pero](https://github.com/xander-pero))
18
+
19
+ #### Authors: 1
20
+
21
+ - [@xander-pero](https://github.com/xander-pero)
22
+
23
+ ---
24
+
1
25
  # v4.296.0 (Thu Aug 07 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -75,7 +75,8 @@ export interface CmsAnalyticsPageClickedMostViewed {
75
75
  * action: "viewedGraph",
76
76
  * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
77
77
  * context_page_owner_type: "analytics",
78
- * graph_type: "cumulative_line" | "donut" | "horizontal_bar" | "vertical_bar"
78
+ * graph_type: "cumulative_line" | "donut" | "horizontal_bar" | "vertical_bar",
79
+ * graph_data?: "device" | "medium" | "country" | "landing" | null
79
80
  * }
80
81
  * ```
81
82
  */
@@ -84,6 +85,7 @@ export interface CmsAnalyticsPageViewedGraph {
84
85
  context_module: CmsContextModule;
85
86
  context_page_owner_type: CmsOwnerType.analytics;
86
87
  graph_type: string;
88
+ graph_data?: string;
87
89
  }
88
90
  /**
89
91
  * A partner views a datapoint on a graph on the analytics page
@@ -95,6 +97,7 @@ export interface CmsAnalyticsPageViewedGraph {
95
97
  * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
96
98
  * context_page_owner_type: "analytics",
97
99
  * graph_type: "cumulative_line" | "donut" | "horizontal_bar" | "vertical_bar",
100
+ * graph_data?: "device" | "medium" | "country" | "landing" | null,
98
101
  * datapoint_bucket_size?: "daily" | "weekly" | "monthly" | null,
99
102
  * datapoint_is_other?: true | false | null
100
103
  * }
@@ -105,6 +108,7 @@ export interface CmsAnalyticsPageViewedGraphDatapoint {
105
108
  context_module: CmsContextModule;
106
109
  context_page_owner_type: CmsOwnerType.analytics;
107
110
  graph_type: string;
111
+ graph_data?: string;
108
112
  datapoint_bucket_size?: string;
109
113
  datapoint_is_other?: boolean;
110
114
  }
@@ -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.296.0",
3
+ "version": "4.298.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {