@artsy/cohesion 4.416.0 → 4.417.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.417.0 (Tue Oct 27 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: OS - 2-way sync [#767](https://github.com/artsy/cohesion/pull/767) ([@Mitch-Henson](https://github.com/Mitch-Henson))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mitchell Henson ([@Mitch-Henson](https://github.com/Mitch-Henson))
10
+
11
+ ---
12
+
1
13
  # v4.416.0 (Tue Oct 27 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -412,4 +412,85 @@ export interface ConvertedArtworkToUnique {
412
412
  context_page_owner_type: OsOwnerType;
413
413
  value: "confirm" | "cancel";
414
414
  }
415
- export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | ChangedInventoryTableColumnVisibility | CompletedArtworkDistribution | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UpdatedEditionSet | UpdatedList;
415
+ /**
416
+ * A partner removes a distributed Show or Fair collection from Artsy. The CMS
417
+ * show is deleted, the collection returns to Private and sync stops.
418
+ *
419
+ * @example
420
+ * ```
421
+ * {
422
+ * action: "undistributedList",
423
+ * context_module: "listDetail",
424
+ * context_page_owner_type: "collection",
425
+ * list_id: "5d2b5b5d5e5b5d000e1b5b5d",
426
+ * list_type: "SHOW",
427
+ * partner_show_id: "5d2b5b5d5e5b5d000e1b5b5e"
428
+ * }
429
+ * ```
430
+ */
431
+ export interface UndistributedList {
432
+ action: OsActionType.undistributedList;
433
+ context_module: OsContextModule.listDetail;
434
+ context_page_owner_type: OsOwnerType;
435
+ list_id: string;
436
+ list_type: string;
437
+ fair_id?: string;
438
+ partner_show_id: string;
439
+ }
440
+ /**
441
+ * A partner responds to the one-time confirmation shown before an edit in
442
+ * ArtOS is pushed to a Listed Show or Fair. `should_hide_future_confirmations`
443
+ * is true when "Do not show again" was checked.
444
+ *
445
+ * @example
446
+ * ```
447
+ * {
448
+ * action: "confirmedListSyncPush",
449
+ * context_module: "listSyncConfirmationModal",
450
+ * context_page_owner_type: "collection",
451
+ * list_id: "5d2b5b5d5e5b5d000e1b5b5d",
452
+ * list_type: "SHOW",
453
+ * partner_show_id: "5d2b5b5d5e5b5d000e1b5b5e",
454
+ * should_hide_future_confirmations: true,
455
+ * value: "confirm"
456
+ * }
457
+ * ```
458
+ */
459
+ export interface ConfirmedListSyncPush {
460
+ action: OsActionType.confirmedListSyncPush;
461
+ context_module: OsContextModule.listSyncConfirmationModal;
462
+ context_page_owner_type: OsOwnerType;
463
+ list_id: string;
464
+ list_type: string;
465
+ partner_show_id: string;
466
+ should_hide_future_confirmations: boolean;
467
+ value: "confirm" | "cancel";
468
+ }
469
+ /**
470
+ * A partner sees the warning in the Add to Collection modal that adding
471
+ * private artworks to a Distributed or Listed Show or Fair will also add them
472
+ * to Artsy (`added_to_platform`) or list them (`listed`).
473
+ *
474
+ * @example
475
+ * ```
476
+ * {
477
+ * action: "viewedAddToListSyncWarning",
478
+ * context_module: "addToListModal",
479
+ * context_page_owner_type: "inventory",
480
+ * affected_count: 2,
481
+ * list_id: "5d2b5b5d5e5b5d000e1b5b5d",
482
+ * list_type: "SHOW",
483
+ * variant: "listed"
484
+ * }
485
+ * ```
486
+ */
487
+ export interface ViewedAddToListSyncWarning {
488
+ action: OsActionType.viewedAddToListSyncWarning;
489
+ context_module: OsContextModule.addToListModal;
490
+ context_page_owner_type: OsOwnerType;
491
+ affected_count: number;
492
+ list_id: string;
493
+ list_type: string;
494
+ variant: "listed" | "added_to_platform";
495
+ }
496
+ export type OsSubmitEvent = AddedArtworksToList | BulkEditedArtworks | BulkEditedArtworks | ChangedInventoryTableColumnVisibility | CompletedArtworkDistribution | ConfirmedListSyncPush | ConvertedArtworkToUnique | CreatedEditionSet | CreatedList | CreatedList | DeletedArtwork | DeletedArtwork | DeletedList | DistributedArtworks | DistributedArtworks | DistributedList | MovedArtworksBetweenLists | RemovedArtworksFromList | UndistributedList | UpdatedEditionSet | UpdatedList | ViewedAddToListSyncWarning;
@@ -201,6 +201,10 @@ export declare enum OsActionType {
201
201
  * Corresponds to {@link OsFilterSortSearch}
202
202
  */
203
203
  clearedFilters = "clearedFilters",
204
+ /**
205
+ * Corresponds to {@link ConfirmedListSyncPush}
206
+ */
207
+ confirmedListSyncPush = "confirmedListSyncPush",
204
208
  /**
205
209
  * Corresponds to {@link DeletedArtwork}
206
210
  */
@@ -285,6 +289,10 @@ export declare enum OsActionType {
285
289
  * Corresponds to {@link ToggledDistributionSync}
286
290
  */
287
291
  toggledDistributionSync = "toggledDistributionSync",
292
+ /**
293
+ * Corresponds to {@link UndistributedList}
294
+ */
295
+ undistributedList = "undistributedList",
288
296
  /**
289
297
  * Corresponds to {@link UpdatedEditionSet}
290
298
  */
@@ -292,5 +300,9 @@ export declare enum OsActionType {
292
300
  /**
293
301
  * Corresponds to {@link UpdatedList}
294
302
  */
295
- updatedList = "updatedList"
303
+ updatedList = "updatedList",
304
+ /**
305
+ * Corresponds to {@link ViewedAddToListSyncWarning}
306
+ */
307
+ viewedAddToListSyncWarning = "viewedAddToListSyncWarning"
296
308
  }
@@ -65,6 +65,7 @@ exports.OsActionType = OsActionType;
65
65
  OsActionType["createdList"] = "createdList";
66
66
  OsActionType["createdStudioContent"] = "createdStudioContent";
67
67
  OsActionType["clearedFilters"] = "clearedFilters";
68
+ OsActionType["confirmedListSyncPush"] = "confirmedListSyncPush";
68
69
  OsActionType["deletedArtwork"] = "deletedArtwork";
69
70
  OsActionType["deletedList"] = "deletedList";
70
71
  OsActionType["distributedArtworks"] = "distributedArtworks";
@@ -86,6 +87,8 @@ exports.OsActionType = OsActionType;
86
87
  OsActionType["startedArtworkImport"] = "startedArtworkImport";
87
88
  OsActionType["stoppedSharingPrivateViewingRoom"] = "stoppedSharingPrivateViewingRoom";
88
89
  OsActionType["toggledDistributionSync"] = "toggledDistributionSync";
90
+ OsActionType["undistributedList"] = "undistributedList";
89
91
  OsActionType["updatedEditionSet"] = "updatedEditionSet";
90
92
  OsActionType["updatedList"] = "updatedList";
93
+ OsActionType["viewedAddToListSyncWarning"] = "viewedAddToListSyncWarning";
91
94
  })(OsActionType || (exports.OsActionType = OsActionType = {}));
@@ -31,6 +31,7 @@ export declare enum OsContextModule {
31
31
  instagramEditor = "instagramEditor",
32
32
  listCard = "listCard",
33
33
  listDetail = "listDetail",
34
+ listSyncConfirmationModal = "listSyncConfirmationModal",
34
35
  mailchimpEditor = "mailchimpEditor",
35
36
  materialsEditor = "materialsEditor",
36
37
  multiAdd = "multiAdd",
@@ -41,6 +41,7 @@ exports.OsContextModule = OsContextModule;
41
41
  OsContextModule["instagramEditor"] = "instagramEditor";
42
42
  OsContextModule["listCard"] = "listCard";
43
43
  OsContextModule["listDetail"] = "listDetail";
44
+ OsContextModule["listSyncConfirmationModal"] = "listSyncConfirmationModal";
44
45
  OsContextModule["mailchimpEditor"] = "mailchimpEditor";
45
46
  OsContextModule["materialsEditor"] = "materialsEditor";
46
47
  OsContextModule["multiAdd"] = "multiAdd";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.416.0",
3
+ "version": "4.417.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {