@artsy/cohesion 4.374.0 → 4.375.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.375.0 (Mon Jun 29 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Add edition sets tracking events [#720](https://github.com/artsy/cohesion/pull/720) ([@MrSltun](https://github.com/MrSltun))
6
+
7
+ #### Authors: 1
8
+
9
+ - Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
10
+
11
+ ---
12
+
1
13
  # v4.374.0 (Sat Jun 27 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -259,4 +259,88 @@ export interface DistributedList {
259
259
  fair_id?: string;
260
260
  partner_show_id: string;
261
261
  }
262
- export type OsSubmitEvent = BulkEditedArtworks | DeletedArtwork | DistributedArtworks | CreatedList | AddedArtworksToList | UpdatedList | DeletedList | RemovedArtworksFromList | MovedArtworksBetweenLists | DistributedList;
262
+ /**
263
+ * A partner confirms conversion of a unique artwork to an edition set in the
264
+ * edition set modal. `is_limited` is true when an edition size was provided
265
+ * (Limited Edition), false when the edition size is unknown.
266
+ *
267
+ * @example
268
+ * ```
269
+ * {
270
+ * action: "createdEditionSet",
271
+ * context_module: "editionSetModal",
272
+ * context_page_owner_type: "inventory",
273
+ * artwork_id: "5d2b5b5d5e5b5d000e1b5b5d",
274
+ * is_limited: true,
275
+ * variants: [{ edition_size: 4, inventory_count: 5 }]
276
+ * }
277
+ * ```
278
+ */
279
+ export interface CreatedEditionSet {
280
+ action: OsActionType.createdEditionSet;
281
+ artwork_id: string;
282
+ context_module: OsContextModule.editionSetModal;
283
+ context_page_owner_type: OsOwnerType;
284
+ is_limited: boolean;
285
+ variants: Array<{
286
+ edition_size: number | null;
287
+ inventory_count: number | null;
288
+ }>;
289
+ }
290
+ /**
291
+ * A partner saves edits to an existing edition set in the edition set modal.
292
+ * `variants_added`, `variants_edited`, and `variants_removed` reflect the diff
293
+ * between the original and submitted variants array.
294
+ *
295
+ * @example
296
+ * ```
297
+ * {
298
+ * action: "updatedEditionSet",
299
+ * context_module: "editionSetModal",
300
+ * context_page_owner_type: "inventory",
301
+ * artwork_id: "5d2b5b5d5e5b5d000e1b5b5d",
302
+ * is_limited: true,
303
+ * variants: [{ edition_size: 4, inventory_count: 5 }],
304
+ * variants_added: 0,
305
+ * variants_edited: 1,
306
+ * variants_removed: 0
307
+ * }
308
+ * ```
309
+ */
310
+ export interface UpdatedEditionSet {
311
+ action: OsActionType.updatedEditionSet;
312
+ artwork_id: string;
313
+ context_module: OsContextModule.editionSetModal;
314
+ context_page_owner_type: OsOwnerType;
315
+ is_limited: boolean;
316
+ variants: Array<{
317
+ edition_size: number | null;
318
+ inventory_count: number | null;
319
+ }>;
320
+ variants_added: number;
321
+ variants_edited: number;
322
+ variants_removed: number;
323
+ }
324
+ /**
325
+ * A partner confirms or cancels reverting an edition-set artwork to a unique
326
+ * work in the Convert to Unique confirmation modal.
327
+ *
328
+ * @example
329
+ * ```
330
+ * {
331
+ * action: "convertedArtworkToUnique",
332
+ * context_module: "convertToUniqueModal",
333
+ * context_page_owner_type: "inventory",
334
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"],
335
+ * value: "confirm"
336
+ * }
337
+ * ```
338
+ */
339
+ export interface ConvertedArtworkToUnique {
340
+ action: OsActionType.convertedArtworkToUnique;
341
+ artwork_ids: string[];
342
+ context_module: OsContextModule.convertToUniqueModal;
343
+ context_page_owner_type: OsOwnerType;
344
+ value: "confirm" | "cancel";
345
+ }
346
+ export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | DeletedArtwork | DeletedList | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
@@ -124,6 +124,14 @@ export declare enum OsActionType {
124
124
  * Corresponds to {@link CompletedArtworkImport}
125
125
  */
126
126
  completedArtworkImport = "completedArtworkImport",
127
+ /**
128
+ * Corresponds to {@link ConvertedArtworkToUnique}
129
+ */
130
+ convertedArtworkToUnique = "convertedArtworkToUnique",
131
+ /**
132
+ * Corresponds to {@link CreatedEditionSet}
133
+ */
134
+ createdEditionSet = "createdEditionSet",
127
135
  /**
128
136
  * Corresponds to {@link CreatedImportedArtworks}
129
137
  */
@@ -196,6 +204,10 @@ export declare enum OsActionType {
196
204
  * Corresponds to {@link StartedArtworkImport}
197
205
  */
198
206
  startedArtworkImport = "startedArtworkImport",
207
+ /**
208
+ * Corresponds to {@link UpdatedEditionSet}
209
+ */
210
+ updatedEditionSet = "updatedEditionSet",
199
211
  /**
200
212
  * Corresponds to {@link UpdatedList}
201
213
  */
@@ -47,6 +47,8 @@ exports.OsActionType = OsActionType;
47
47
  OsActionType["clickedPublishConfirmation"] = "clickedPublishConfirmation";
48
48
  OsActionType["clickedUploadImageBank"] = "clickedUploadImageBank";
49
49
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
50
+ OsActionType["convertedArtworkToUnique"] = "convertedArtworkToUnique";
51
+ OsActionType["createdEditionSet"] = "createdEditionSet";
50
52
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
51
53
  OsActionType["createdList"] = "createdList";
52
54
  OsActionType["createdStudioContent"] = "createdStudioContent";
@@ -65,5 +67,6 @@ exports.OsActionType = OsActionType;
65
67
  OsActionType["searchedArtworks"] = "searchedArtworks";
66
68
  OsActionType["sortedColumn"] = "sortedColumn";
67
69
  OsActionType["startedArtworkImport"] = "startedArtworkImport";
70
+ OsActionType["updatedEditionSet"] = "updatedEditionSet";
68
71
  OsActionType["updatedList"] = "updatedList";
69
72
  })(OsActionType || (exports.OsActionType = OsActionType = {}));
@@ -17,9 +17,11 @@ export declare enum OsContextModule {
17
17
  bulkEditDrawer = "bulkEditDrawer",
18
18
  connectedAppsList = "connectedAppsList",
19
19
  connectModal = "connectModal",
20
+ convertToUniqueModal = "convertToUniqueModal",
20
21
  deleteModal = "deleteModal",
21
22
  distributeModal = "distributeModal",
22
23
  documentsModal = "documentsModal",
24
+ editionSetModal = "editionSetModal",
23
25
  editorHeader = "editorHeader",
24
26
  imageBank = "imageBank",
25
27
  imageEditor = "imageEditor",
@@ -27,9 +27,11 @@ exports.OsContextModule = OsContextModule;
27
27
  OsContextModule["bulkEditDrawer"] = "bulkEditDrawer";
28
28
  OsContextModule["connectedAppsList"] = "connectedAppsList";
29
29
  OsContextModule["connectModal"] = "connectModal";
30
+ OsContextModule["convertToUniqueModal"] = "convertToUniqueModal";
30
31
  OsContextModule["deleteModal"] = "deleteModal";
31
32
  OsContextModule["distributeModal"] = "distributeModal";
32
33
  OsContextModule["documentsModal"] = "documentsModal";
34
+ OsContextModule["editionSetModal"] = "editionSetModal";
33
35
  OsContextModule["editorHeader"] = "editorHeader";
34
36
  OsContextModule["imageBank"] = "imageBank";
35
37
  OsContextModule["imageEditor"] = "imageEditor";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.374.0",
3
+ "version": "4.375.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {