@artsy/cohesion 4.277.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,27 @@
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
+
13
+ # v4.278.0 (Mon Jun 30 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - fix: add destination type to TappedBuyerProtection [#611](https://github.com/artsy/cohesion/pull/611) ([@MrSltun](https://github.com/MrSltun))
18
+
19
+ #### Authors: 1
20
+
21
+ - Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
22
+
23
+ ---
24
+
1
25
  # v4.277.0 (Fri Jun 20 2025)
2
26
 
3
27
  #### 🚀 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";
@@ -1411,6 +1411,6 @@ export interface TappedBuyerProtection {
1411
1411
  context_module: ContextModule;
1412
1412
  context_screen_owner_type: ScreenOwnerType;
1413
1413
  context_screen_owner_id: string;
1414
- destination_screen_owner_id: string;
1414
+ destination_screen_owner_type: ScreenOwnerType;
1415
1415
  destination_screen_owner_slug: string;
1416
1416
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.277.0",
3
+ "version": "4.279.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {