@artsy/cohesion 4.382.0 → 4.384.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.384.0 (Fri Jul 03 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: add edition_set_id to EditedInventoryField event [#728](https://github.com/artsy/cohesion/pull/728) ([@chr-tatu](https://github.com/chr-tatu))
6
+
7
+ #### Authors: 1
8
+
9
+ - Christian Tatu ([@chr-tatu](https://github.com/chr-tatu))
10
+
11
+ ---
12
+
13
+ # v4.383.0 (Thu Jul 02 2026)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: remove viewedDivergenceMarker event [#727](https://github.com/artsy/cohesion/pull/727) ([@chr-tatu](https://github.com/chr-tatu))
18
+
19
+ #### Authors: 1
20
+
21
+ - Christian Tatu ([@chr-tatu](https://github.com/chr-tatu))
22
+
23
+ ---
24
+
1
25
  # v4.382.0 (Thu Jul 02 2026)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -85,29 +85,6 @@ export interface ClickedCancelBulkEdit {
85
85
  context_page_owner_type: OsOwnerType;
86
86
  artwork_ids: string[];
87
87
  }
88
- /**
89
- * The divergence marker appears in a syncable cell when the OS value
90
- * diverges from the downstream destination value (e.g. Artsy CMS). Fires as an
91
- * impression when the marker first renders for a given artwork/field combination.
92
- *
93
- * @example
94
- * ```
95
- * {
96
- * action: "viewedDivergenceMarker",
97
- * context_module: "artworkTable",
98
- * context_page_owner_type: "inventory",
99
- * artwork_id: "abc123",
100
- * field: "availability"
101
- * }
102
- * ```
103
- */
104
- export interface ViewedDivergenceMarker {
105
- action: OsActionType.viewedDivergenceMarker;
106
- context_module: OsContextModule.artworkTable;
107
- context_page_owner_type: OsOwnerType;
108
- artwork_id: string;
109
- field: "availability" | "medium" | "price";
110
- }
111
88
  /**
112
89
  * A partner opens a list, either from the Lists surface (a `ListCard`) or from
113
90
  * the recent-lists shortcut on the Inventory surface. `source` distinguishes the
@@ -133,4 +110,4 @@ export interface ClickedOpenList {
133
110
  list_type: string;
134
111
  source: string;
135
112
  }
136
- export type OsClickEvent = ClickedActionsDropdown | ClickedAddUniqueWork | ClickedAddEditionSet | ClickedCancelBulkEdit | ViewedDivergenceMarker | ClickedOpenList;
113
+ export type OsClickEvent = ClickedActionsDropdown | ClickedAddUniqueWork | ClickedAddEditionSet | ClickedCancelBulkEdit | ClickedOpenList;
@@ -332,6 +332,7 @@ export interface OsClickedActionsDropdown {
332
332
  * context_page_owner_type: "inventory",
333
333
  * destination: ["artsy"],
334
334
  * artwork_id: "abc123",
335
+ * edition_set_id: "xyz789",
335
336
  * field: "availability",
336
337
  * did_push_to_cms: false
337
338
  * }
@@ -344,6 +345,8 @@ export interface EditedInventoryField {
344
345
  /** Downstream destinations the value was pushed to (e.g. ["artsy"]) */
345
346
  destination: string[];
346
347
  artwork_id: string;
348
+ /** The edition set the edited value belongs to, when the edit targets an edition set row */
349
+ edition_set_id?: string;
347
350
  field: "availability" | "medium" | "price";
348
351
  /** false e.g. for "Not For Sale" (OS-only value that does not push to the destination) */
349
352
  did_push_to_cms: boolean;
@@ -251,9 +251,5 @@ export declare enum OsActionType {
251
251
  /**
252
252
  * Corresponds to {@link UpdatedList}
253
253
  */
254
- updatedList = "updatedList",
255
- /**
256
- * Corresponds to {@link ViewedDivergenceMarker}
257
- */
258
- viewedDivergenceMarker = "viewedDivergenceMarker"
254
+ updatedList = "updatedList"
259
255
  }
@@ -78,5 +78,4 @@ exports.OsActionType = OsActionType;
78
78
  OsActionType["toggledDistributionSync"] = "toggledDistributionSync";
79
79
  OsActionType["updatedEditionSet"] = "updatedEditionSet";
80
80
  OsActionType["updatedList"] = "updatedList";
81
- OsActionType["viewedDivergenceMarker"] = "viewedDivergenceMarker";
82
81
  })(OsActionType || (exports.OsActionType = OsActionType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.382.0",
3
+ "version": "4.384.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {