@artsy/cohesion 4.278.0 → 4.279.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.279.0 (Mon Jun 30 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add batchImportTableContentSummary event [#612](https://github.com/artsy/cohesion/pull/612) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### Authors: 1
8
+
9
+ - Ole ([@olerichter00](https://github.com/olerichter00))
10
+
11
+ ---
12
+
1
13
  # v4.278.0 (Mon Jun 30 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -193,4 +193,39 @@ export interface CmsBatchImportEditedBatchImportField {
193
193
  context_page_owner_id: string;
194
194
  is_error: boolean;
195
195
  }
196
- export type CmsBatchImportFlow = CmsBatchImportFlowClickImport | CmsBatchImportFlowClickAddCSV | CmsBatchImportFlowClickDownloadTemplate | CmsBatchImportFlowShownMissingInformation | CmsBatchImportFlowArtistNeedsMatching | CmsBatchImportClickExit | CmsBatchImportEditedBatchImportField;
196
+ /**
197
+ * Tracks invalid and missing columns at the beginning and the end of the Batch Import review step
198
+ *
199
+ * @example
200
+ * ```
201
+ * {
202
+ action: "batchImportTableContentSummary",
203
+ context: "batchImportReviewFinished",
204
+ context_module: "batchImportFlow",
205
+ context_page_owner_type: "batchImport",
206
+ context_page_owner_id: "67b646ecbe87376bfeb3f962",
207
+ values: {
208
+ artworkTitle": {
209
+ optional: false,
210
+ valid: 37,
211
+ missing: 6,
212
+ invalid: 0
213
+ },
214
+ }
215
+ * }
216
+ * ```
217
+ */
218
+ export interface CmsBatchImportTableContentSummary {
219
+ action: CmsActionType.batchImportTableContentSummary;
220
+ context: "batchImportReviewFinished";
221
+ context_module: CmsContextModule.batchImportFlow;
222
+ context_page_owner_type: CmsOwnerType.batchImport;
223
+ context_page_owner_id: string;
224
+ values: Record<string, {
225
+ optional: boolean;
226
+ valid: number;
227
+ missing: number;
228
+ invalid: number;
229
+ }>;
230
+ }
231
+ export type CmsBatchImportFlow = CmsBatchImportFlowClickImport | CmsBatchImportFlowClickAddCSV | CmsBatchImportFlowClickDownloadTemplate | CmsBatchImportFlowShownMissingInformation | CmsBatchImportFlowArtistNeedsMatching | CmsBatchImportClickExit | CmsBatchImportEditedBatchImportField | CmsBatchImportTableContentSummary;
@@ -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 CmsBatchImportTableContentSummary}
29
+ */
30
+ batchImportTableContentSummary = "batchImportTableContentSummary",
27
31
  /**
28
32
  * Corresponds to {@link CmsBulkEditFlow}
29
33
  */
@@ -22,6 +22,7 @@ exports.CmsActionType = CmsActionType;
22
22
  (function (CmsActionType) {
23
23
  CmsActionType["addedNewLocation"] = "addedNewLocation";
24
24
  CmsActionType["artistNeedsMatching"] = "artistNeedsMatching";
25
+ CmsActionType["batchImportTableContentSummary"] = "batchImportTableContentSummary";
25
26
  CmsActionType["bulkEditFailed"] = "bulkEditFailed";
26
27
  CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
27
28
  CmsActionType["createdArtwork"] = "created artwork";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.278.0",
3
+ "version": "4.279.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {