@artsy/cohesion 4.364.0--canary.707.14884.0 → 4.364.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.364.0 (Wed Jun 24 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: add analytics schema for OS bulk edit [#708](https://github.com/artsy/cohesion/pull/708) ([@mzikherman](https://github.com/mzikherman))
6
+
7
+ #### Authors: 1
8
+
9
+ - Matt Zikherman ([@mzikherman](https://github.com/mzikherman))
10
+
11
+ ---
12
+
1
13
  # v4.363.0 (Tue Jun 23 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1368,21 +1368,5 @@ export declare enum ActionType {
1368
1368
  /**
1369
1369
  * Corresponds to {@link VisitMyCollectionOnboardingSlide}
1370
1370
  */
1371
- visitMyCollectionOnboardingSlide = "visitMyCollectionOnboardingSlide",
1372
- /**
1373
- * Corresponds to {@link ClickedBrandKitColor}
1374
- */
1375
- clickedBrandKitColor = "clickedBrandKitColor",
1376
- /**
1377
- * Corresponds to {@link ClickedBrandKitFont}
1378
- */
1379
- clickedBrandKitFont = "clickedBrandKitFont",
1380
- /**
1381
- * Corresponds to {@link ClickedAddBrandKitFile}
1382
- */
1383
- clickedAddBrandKitFile = "clickedAddBrandKitFile",
1384
- /**
1385
- * Corresponds to {@link ClickedSaveBrandKit}
1386
- */
1387
- clickedSaveBrandKit = "clickedSaveBrandKit"
1371
+ visitMyCollectionOnboardingSlide = "visitMyCollectionOnboardingSlide"
1388
1372
  }
@@ -351,8 +351,4 @@ exports.ActionType = ActionType;
351
351
  ActionType["viewedToast"] = "viewedToast";
352
352
  ActionType["visitMyCollection"] = "visitMyCollection";
353
353
  ActionType["visitMyCollectionOnboardingSlide"] = "visitMyCollectionOnboardingSlide";
354
- ActionType["clickedBrandKitColor"] = "clickedBrandKitColor";
355
- ActionType["clickedBrandKitFont"] = "clickedBrandKitFont";
356
- ActionType["clickedAddBrandKitFile"] = "clickedAddBrandKitFile";
357
- ActionType["clickedSaveBrandKit"] = "clickedSaveBrandKit";
358
354
  })(ActionType || (exports.ActionType = ActionType = {}));
@@ -74,11 +74,11 @@ export declare enum ContextModule {
74
74
  auctionTab = "auctionTab",
75
75
  banner = "banner",
76
76
  bannerPopUp = "bannerPopUp",
77
- brandKitEditor = "brandKitEditor",
78
77
  basedOnYourRecentSavesRail = "basedOnYourRecentSavesRail",
79
78
  boothsTab = "boothsTab",
80
79
  bottomTabs = "bottomTabs",
81
80
  browseFair = "browseFair",
81
+ bulkEditDrawer = "bulkEditDrawer",
82
82
  categoryRail = "categoryRail",
83
83
  cityGuideCard = "cityGuideCard",
84
84
  collectionCard = "collectionCard",
@@ -88,11 +88,11 @@ exports.ContextModule = ContextModule;
88
88
  ContextModule["auctionTab"] = "auctionTab";
89
89
  ContextModule["banner"] = "banner";
90
90
  ContextModule["bannerPopUp"] = "bannerPopUp";
91
- ContextModule["brandKitEditor"] = "brandKitEditor";
92
91
  ContextModule["basedOnYourRecentSavesRail"] = "basedOnYourRecentSavesRail";
93
92
  ContextModule["boothsTab"] = "boothsTab";
94
93
  ContextModule["bottomTabs"] = "bottomTabs";
95
94
  ContextModule["browseFair"] = "browseFair";
95
+ ContextModule["bulkEditDrawer"] = "bulkEditDrawer";
96
96
  ContextModule["categoryRail"] = "categoryRail";
97
97
  ContextModule["cityGuideCard"] = "cityGuideCard";
98
98
  ContextModule["collectionCard"] = "collectionCard";
@@ -51,7 +51,6 @@ export declare enum OwnerType {
51
51
  auctionsOverview = "auctionsOverview",
52
52
  authModal = "authModal",
53
53
  basedOnYourRecentSaves = "basedOnYourRecentSaves",
54
- brandSettings = "brandSettings",
55
54
  category = "category",
56
55
  cityGuideGuide = "cityGuideGuide",
57
56
  cityGuideMap = "cityGuideMap",
@@ -69,7 +69,6 @@ exports.OwnerType = OwnerType;
69
69
  OwnerType["auctionsOverview"] = "auctionsOverview";
70
70
  OwnerType["authModal"] = "authModal";
71
71
  OwnerType["basedOnYourRecentSaves"] = "basedOnYourRecentSaves";
72
- OwnerType["brandSettings"] = "brandSettings";
73
72
  OwnerType["category"] = "category";
74
73
  OwnerType["cityGuideGuide"] = "cityGuideGuide";
75
74
  OwnerType["cityGuideMap"] = "cityGuideMap";
@@ -53,5 +53,6 @@ export * from "./CMS/Events/UploadArtworkFlow";
53
53
  export * from "./os/Events";
54
54
  export * from "./os/Values/OsContextModule";
55
55
  export * from "./os/Values/OsOwnerType";
56
+ export * from "./os/Events/Click";
56
57
  export * from "./os/Events/MultiAddFlow";
57
- export * from "./os/Events/BrandKit";
58
+ export * from "./os/Events/Submit";
@@ -556,6 +556,18 @@ Object.keys(_OsOwnerType).forEach(function (key) {
556
556
  });
557
557
  });
558
558
 
559
+ var _Click2 = require("./os/Events/Click");
560
+
561
+ Object.keys(_Click2).forEach(function (key) {
562
+ if (key === "default" || key === "__esModule") return;
563
+ Object.defineProperty(exports, key, {
564
+ enumerable: true,
565
+ get: function get() {
566
+ return _Click2[key];
567
+ }
568
+ });
569
+ });
570
+
559
571
  var _MultiAddFlow = require("./os/Events/MultiAddFlow");
560
572
 
561
573
  Object.keys(_MultiAddFlow).forEach(function (key) {
@@ -568,14 +580,14 @@ Object.keys(_MultiAddFlow).forEach(function (key) {
568
580
  });
569
581
  });
570
582
 
571
- var _BrandKit = require("./os/Events/BrandKit");
583
+ var _Submit = require("./os/Events/Submit");
572
584
 
573
- Object.keys(_BrandKit).forEach(function (key) {
585
+ Object.keys(_Submit).forEach(function (key) {
574
586
  if (key === "default" || key === "__esModule") return;
575
587
  Object.defineProperty(exports, key, {
576
588
  enumerable: true,
577
589
  get: function get() {
578
- return _BrandKit[key];
590
+ return _Submit[key];
579
591
  }
580
592
  });
581
593
  });
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Schemas describing Art OS bulk-action click events
3
+ * @packageDocumentation
4
+ */
5
+ import { OsContextModule } from "../Values/OsContextModule";
6
+ import { OsOwnerType } from "../Values/OsOwnerType";
7
+ import { OsActionType } from "./index";
8
+ /**
9
+ * A partner selects an item from the inventory Actions dropdown - also fired from
10
+ * the row action menu, the right-click context menu, and the bulk Edit button.
11
+ * Reusable across surfaces: `value` is the menu item, `label` is the trigger.
12
+ *
13
+ * @example
14
+ * ```
15
+ * {
16
+ * action: "clickedActionsDropdown",
17
+ * context_module: "actionsDropdown",
18
+ * context_page_owner_type: "inventory",
19
+ * value: "Add to Artsy (as Draft)",
20
+ * label: "action button",
21
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"]
22
+ * }
23
+ * ```
24
+ */
25
+ export interface ClickedActionsDropdown {
26
+ action: OsActionType.clickedActionsDropdown;
27
+ context_module: OsContextModule.actionsDropdown;
28
+ context_page_owner_type: OsOwnerType;
29
+ value: string;
30
+ label: string;
31
+ artwork_ids: string[];
32
+ }
33
+ /**
34
+ * A partner cancels the bulk-edit drawer without applying changes.
35
+ *
36
+ * @example
37
+ * ```
38
+ * {
39
+ * action: "clickedCancelBulkEdit",
40
+ * context_module: "bulkEditDrawer",
41
+ * context_page_owner_type: "inventory",
42
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"]
43
+ * }
44
+ * ```
45
+ */
46
+ export interface ClickedCancelBulkEdit {
47
+ action: OsActionType.clickedCancelBulkEdit;
48
+ context_module: OsContextModule.bulkEditDrawer;
49
+ context_page_owner_type: OsOwnerType;
50
+ artwork_ids: string[];
51
+ }
52
+ export type OsClickEvent = ClickedActionsDropdown | ClickedCancelBulkEdit;
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Schemas describing Art OS bulk-action submit events (tied to backend changes)
3
+ * @packageDocumentation
4
+ */
5
+ import { OsContextModule } from "../Values/OsContextModule";
6
+ import { OsOwnerType } from "../Values/OsOwnerType";
7
+ import { OsActionType } from "./index";
8
+ /**
9
+ * A partner applies changes in the bulk-edit drawer. `labels` lists the edited
10
+ * fields and `values` carries each field's submitted value, index-aligned.
11
+ *
12
+ * @example
13
+ * ```
14
+ * {
15
+ * action: "bulkEditedArtworks",
16
+ * context_module: "bulkEditDrawer",
17
+ * context_page_owner_type: "inventory",
18
+ * labels: ["availability", "price"],
19
+ * values: ["for sale", "USD 1000"],
20
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"],
21
+ * artwork_count: 30
22
+ * }
23
+ * ```
24
+ */
25
+ export interface BulkEditedArtworks {
26
+ action: OsActionType.bulkEditedArtworks;
27
+ context_module: OsContextModule.bulkEditDrawer;
28
+ context_page_owner_type: OsOwnerType;
29
+ labels: string[];
30
+ values: string[];
31
+ artwork_ids: string[];
32
+ artwork_count: number;
33
+ }
34
+ /**
35
+ * A partner confirms deletion of a single artwork in the delete modal.
36
+ * Fires only on a confirmed delete; cancelling is not tracked.
37
+ *
38
+ * @example
39
+ * ```
40
+ * {
41
+ * action: "deletedArtwork",
42
+ * context_module: "deleteModal",
43
+ * context_page_owner_type: "inventory",
44
+ * value: "confirm",
45
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"]
46
+ * }
47
+ * ```
48
+ */
49
+ export interface DeletedArtwork {
50
+ action: OsActionType.deletedArtwork;
51
+ context_module: OsContextModule.deleteModal;
52
+ context_page_owner_type: OsOwnerType;
53
+ value: "confirm";
54
+ artwork_ids: string[];
55
+ }
56
+ /**
57
+ * A partner confirms or cancels distributing artworks to Artsy in the distribute modal.
58
+ *
59
+ * @example
60
+ * ```
61
+ * {
62
+ * action: "distributedArtworks",
63
+ * context_module: "distributeModal",
64
+ * context_page_owner_type: "inventory",
65
+ * destination: ["artsy"],
66
+ * value: "confirm",
67
+ * artwork_ids: ["5d2b5b5d5e5b5d000e1b5b5d"],
68
+ * selected_count: 2
69
+ * }
70
+ * ```
71
+ */
72
+ export interface DistributedArtworks {
73
+ action: OsActionType.distributedArtworks;
74
+ context_module: OsContextModule.distributeModal;
75
+ context_page_owner_type: OsOwnerType;
76
+ destination: string[];
77
+ value: "confirm" | "cancel";
78
+ artwork_ids: string[];
79
+ selected_count: number;
80
+ }
81
+ export type OsSubmitEvent = BulkEditedArtworks | DeletedArtwork | DistributedArtworks;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export {};
@@ -1,25 +1,38 @@
1
- import { ClickedAddBrandKitFile, ClickedBrandKitColor, ClickedBrandKitFont, ClickedSaveBrandKit } from "./BrandKit";
1
+ import { OsClickEvent } from "./Click";
2
2
  import { OsMultiAddFlow } from "./MultiAddFlow";
3
+ import { OsSubmitEvent } from "./Submit";
3
4
  /**
4
5
  * List of valid schemas for Art OS analytics actions
5
6
  *
6
7
  * Each event describes one ActionType
7
8
  */
8
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit;
9
+ export type OsEvent = OsMultiAddFlow | OsClickEvent | OsSubmitEvent;
9
10
  /**
10
11
  * List of all Art OS actions
11
12
  *
12
13
  * Each OsActionType corresponds with a table in Redshift.
13
14
  */
14
15
  export declare enum OsActionType {
16
+ /**
17
+ * Corresponds to {@link BulkEditedArtworks}
18
+ */
19
+ bulkEditedArtworks = "bulkEditedArtworks",
15
20
  /**
16
21
  * Corresponds to {@link CancelledArtworkImport}
17
22
  */
18
23
  cancelledArtworkImport = "cancelledArtworkImport",
24
+ /**
25
+ * Corresponds to {@link ClickedActionsDropdown}
26
+ */
27
+ clickedActionsDropdown = "clickedActionsDropdown",
19
28
  /**
20
29
  * Corresponds to {@link ClickedAddFromFile}
21
30
  */
22
31
  clickedAddFromFile = "clickedAddFromFile",
32
+ /**
33
+ * Corresponds to {@link ClickedCancelBulkEdit}
34
+ */
35
+ clickedCancelBulkEdit = "clickedCancelBulkEdit",
23
36
  /**
24
37
  * Corresponds to {@link ClickedExitDropZone}
25
38
  */
@@ -32,6 +45,14 @@ export declare enum OsActionType {
32
45
  * Corresponds to {@link CreatedImportedArtworks}
33
46
  */
34
47
  createdImportedArtworks = "createdImportedArtworks",
48
+ /**
49
+ * Corresponds to {@link DeletedArtwork}
50
+ */
51
+ deletedArtwork = "deletedArtwork",
52
+ /**
53
+ * Corresponds to {@link DistributedArtworks}
54
+ */
55
+ distributedArtworks = "distributedArtworks",
35
56
  /**
36
57
  * Corresponds to {@link EditedArtworkField}
37
58
  */
@@ -20,11 +20,16 @@ var OsActionType;
20
20
  exports.OsActionType = OsActionType;
21
21
 
22
22
  (function (OsActionType) {
23
+ OsActionType["bulkEditedArtworks"] = "bulkEditedArtworks";
23
24
  OsActionType["cancelledArtworkImport"] = "cancelledArtworkImport";
25
+ OsActionType["clickedActionsDropdown"] = "clickedActionsDropdown";
24
26
  OsActionType["clickedAddFromFile"] = "clickedAddFromFile";
27
+ OsActionType["clickedCancelBulkEdit"] = "clickedCancelBulkEdit";
25
28
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
26
29
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
27
30
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
31
+ OsActionType["deletedArtwork"] = "deletedArtwork";
32
+ OsActionType["distributedArtworks"] = "distributedArtworks";
28
33
  OsActionType["editedArtworkField"] = "editedArtworkField";
29
34
  OsActionType["resumedArtworkImport"] = "resumedArtworkImport";
30
35
  OsActionType["startedArtworkImport"] = "startedArtworkImport";
@@ -5,7 +5,10 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  export declare enum OsContextModule {
8
+ actionsDropdown = "actionsDropdown",
9
+ bulkEditDrawer = "bulkEditDrawer",
10
+ deleteModal = "deleteModal",
11
+ distributeModal = "distributeModal",
8
12
  multiAdd = "multiAdd",
9
- multiAddReview = "multiAddReview",
10
- brandKit = "brandKit"
13
+ multiAddReview = "multiAddReview"
11
14
  }
@@ -15,7 +15,10 @@ var OsContextModule;
15
15
  exports.OsContextModule = OsContextModule;
16
16
 
17
17
  (function (OsContextModule) {
18
+ OsContextModule["actionsDropdown"] = "actionsDropdown";
19
+ OsContextModule["bulkEditDrawer"] = "bulkEditDrawer";
20
+ OsContextModule["deleteModal"] = "deleteModal";
21
+ OsContextModule["distributeModal"] = "distributeModal";
18
22
  OsContextModule["multiAdd"] = "multiAdd";
19
23
  OsContextModule["multiAddReview"] = "multiAddReview";
20
- OsContextModule["brandKit"] = "brandKit";
21
24
  })(OsContextModule || (exports.OsContextModule = OsContextModule = {}));
@@ -4,6 +4,6 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  export declare enum OsOwnerType {
7
- inventory = "inventory",
8
- studio = "studio"
7
+ collection = "collection",
8
+ inventory = "inventory"
9
9
  }
@@ -14,6 +14,6 @@ var OsOwnerType;
14
14
  exports.OsOwnerType = OsOwnerType;
15
15
 
16
16
  (function (OsOwnerType) {
17
+ OsOwnerType["collection"] = "collection";
17
18
  OsOwnerType["inventory"] = "inventory";
18
- OsOwnerType["studio"] = "studio";
19
19
  })(OsOwnerType || (exports.OsOwnerType = OsOwnerType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.364.0--canary.707.14884.0",
3
+ "version": "4.364.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -1,97 +0,0 @@
1
- import { ActionType } from "../../Events";
2
- import { OsContextModule } from "../Values/OsContextModule";
3
- import { OsOwnerType } from "../Values/OsOwnerType";
4
- /**
5
- * Schemas describing Art OS Brand Kit events
6
- * @packageDocumentation
7
- */
8
- /**
9
- * User clicks on a brand kit color option
10
- *
11
- * This schema describes events sent to Segment from [[clickedBrandKitColor]]
12
- *
13
- * @example
14
- * ```
15
- * {
16
- * action: "clickedBrandKitColor",
17
- * context_module: "brandKitEditor",
18
- * context_page_owner_type: "brandSettings",
19
- * field: "text",
20
- * value: "#999be6"
21
- * }
22
- * ```
23
- */
24
- export interface ClickedBrandKitColor {
25
- action: ActionType.clickedBrandKitColor;
26
- context_module: OsContextModule.brandKit;
27
- context_page_owner_type: OsOwnerType.studio;
28
- field: string;
29
- value: string;
30
- }
31
- /**
32
- * User clicks on a brand kit font option
33
- *
34
- * This schema describes events sent to Segment from [[clickedBrandKitFont]]
35
- *
36
- * @example
37
- * ```
38
- * {
39
- * action: "clickedBrandKitFont",
40
- * context_module: "brandKitEditor",
41
- * context_page_owner_type: "brandSettings",
42
- * field: "font_family",
43
- * value: "Courier"
44
- * }
45
- * ```
46
- */
47
- export interface ClickedBrandKitFont {
48
- action: ActionType.clickedBrandKitFont;
49
- context_module: OsContextModule.brandKit;
50
- context_page_owner_type: OsOwnerType.studio;
51
- field: string;
52
- value: string;
53
- }
54
- /**
55
- * User clicks to add a brand kit file
56
- *
57
- * This schema describes events sent to Segment from [[clickedAddBrandKitFile]]
58
- *
59
- * @example
60
- * ```
61
- * {
62
- * action: "clickedAddBrandKitFile",
63
- * context_module: "brandKitEditor",
64
- * context_page_owner_type: "brandSettings",
65
- * label: "brand kit logo",
66
- * field: "file",
67
- * value: "filename.png"
68
- * }
69
- * ```
70
- */
71
- export interface ClickedAddBrandKitFile {
72
- action: ActionType.clickedAddBrandKitFile;
73
- context_module: OsContextModule.brandKit;
74
- context_page_owner_type: OsOwnerType.studio;
75
- label: string;
76
- field: string;
77
- value: string;
78
- }
79
- /**
80
- * User clicks to save brand kit settings
81
- *
82
- * This schema describes events sent to Segment from [[clickedSaveBrandKit]]
83
- *
84
- * @example
85
- * ```
86
- * {
87
- * action: "clickedSaveBrandKit",
88
- * context_module: "brandKitEditor",
89
- * context_page_owner_type: "brandSettings"
90
- * }
91
- * ```
92
- */
93
- export interface ClickedSaveBrandKit {
94
- action: ActionType.clickedSaveBrandKit;
95
- context_module: OsContextModule.brandKit;
96
- context_page_owner_type: OsOwnerType.studio;
97
- }
File without changes