@artsy/cohesion 4.381.0 → 4.382.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.382.0 (Thu Jul 02 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: add Add Artwork tracking events [#726](https://github.com/artsy/cohesion/pull/726) ([@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.381.0 (Wed Jul 01 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -30,6 +30,42 @@ export interface ClickedActionsDropdown {
30
30
  label: string;
31
31
  artwork_ids: string[];
32
32
  }
33
+ /**
34
+ * A partner clicks "Unique Work" in the Add Artworks dropdown to create a
35
+ * single new artwork.
36
+ *
37
+ * @example
38
+ * ```
39
+ * {
40
+ * action: "clickedAddUniqueWork",
41
+ * context_module: "addArtworkDropdown",
42
+ * context_page_owner_type: "inventory"
43
+ * }
44
+ * ```
45
+ */
46
+ export interface ClickedAddUniqueWork {
47
+ action: OsActionType.clickedAddUniqueWork;
48
+ context_module: OsContextModule.addArtworkDropdown;
49
+ context_page_owner_type: OsOwnerType;
50
+ }
51
+ /**
52
+ * A partner clicks "Edition Set" in the Add Artworks dropdown to open the
53
+ * add-edition-set modal.
54
+ *
55
+ * @example
56
+ * ```
57
+ * {
58
+ * action: "clickedAddEditionSet",
59
+ * context_module: "addArtworkDropdown",
60
+ * context_page_owner_type: "inventory"
61
+ * }
62
+ * ```
63
+ */
64
+ export interface ClickedAddEditionSet {
65
+ action: OsActionType.clickedAddEditionSet;
66
+ context_module: OsContextModule.addArtworkDropdown;
67
+ context_page_owner_type: OsOwnerType;
68
+ }
33
69
  /**
34
70
  * A partner cancels the bulk-edit drawer without applying changes.
35
71
  *
@@ -97,4 +133,4 @@ export interface ClickedOpenList {
97
133
  list_type: string;
98
134
  source: string;
99
135
  }
100
- export type OsClickEvent = ClickedActionsDropdown | ClickedCancelBulkEdit | ViewedDivergenceMarker | ClickedOpenList;
136
+ export type OsClickEvent = ClickedActionsDropdown | ClickedAddUniqueWork | ClickedAddEditionSet | ClickedCancelBulkEdit | ViewedDivergenceMarker | ClickedOpenList;
@@ -54,10 +54,18 @@ export declare enum OsActionType {
54
54
  * Corresponds to {@link OsClickedActionsDropdown}
55
55
  */
56
56
  clickedActionsDropdown = "clickedActionsDropdown",
57
+ /**
58
+ * Corresponds to {@link ClickedAddEditionSet}
59
+ */
60
+ clickedAddEditionSet = "clickedAddEditionSet",
57
61
  /**
58
62
  * Corresponds to {@link ClickedAddFromFile}
59
63
  */
60
64
  clickedAddFromFile = "clickedAddFromFile",
65
+ /**
66
+ * Corresponds to {@link ClickedAddUniqueWork}
67
+ */
68
+ clickedAddUniqueWork = "clickedAddUniqueWork",
61
69
  clickedArtworkRow = "clickedArtworkRow",
62
70
  /**
63
71
  * Corresponds to {@link OsInstagramEditor}
@@ -28,7 +28,9 @@ exports.OsActionType = OsActionType;
28
28
  OsActionType["bulkEditedArtworks"] = "bulkEditedArtworks";
29
29
  OsActionType["cancelledArtworkImport"] = "cancelledArtworkImport";
30
30
  OsActionType["clickedActionsDropdown"] = "clickedActionsDropdown";
31
+ OsActionType["clickedAddEditionSet"] = "clickedAddEditionSet";
31
32
  OsActionType["clickedAddFromFile"] = "clickedAddFromFile";
33
+ OsActionType["clickedAddUniqueWork"] = "clickedAddUniqueWork";
32
34
  OsActionType["clickedArtworkRow"] = "clickedArtworkRow";
33
35
  OsActionType["clickedAspectRatio"] = "clickedAspectRatio";
34
36
  OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
@@ -7,6 +7,7 @@
7
7
  export declare enum OsContextModule {
8
8
  actionsDropdown = "actionsDropdown",
9
9
  addArtistModal = "addArtistModal",
10
+ addArtworkDropdown = "addArtworkDropdown",
10
11
  addLocationModal = "addLocationModal",
11
12
  addToListModal = "addToListModal",
12
13
  artworkFilters = "artworkFilters",
@@ -17,6 +17,7 @@ exports.OsContextModule = OsContextModule;
17
17
  (function (OsContextModule) {
18
18
  OsContextModule["actionsDropdown"] = "actionsDropdown";
19
19
  OsContextModule["addArtistModal"] = "addArtistModal";
20
+ OsContextModule["addArtworkDropdown"] = "addArtworkDropdown";
20
21
  OsContextModule["addLocationModal"] = "addLocationModal";
21
22
  OsContextModule["addToListModal"] = "addToListModal";
22
23
  OsContextModule["artworkFilters"] = "artworkFilters";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.381.0",
3
+ "version": "4.382.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {