@artsy/cohesion 4.366.0 → 4.368.0--canary.710.15062.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.367.0 (Thu Jun 25 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: add tracking schema for OS Connected Apps (integrations management) [#712](https://github.com/artsy/cohesion/pull/712) ([@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
+
1
13
  # v4.366.0 (Wed Jun 24 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -78,6 +78,7 @@ export declare enum ContextModule {
78
78
  basedOnYourRecentSavesRail = "basedOnYourRecentSavesRail",
79
79
  boothsTab = "boothsTab",
80
80
  bottomTabs = "bottomTabs",
81
+ brandKitPromptModal = "brandKitPromptModal",
81
82
  browseFair = "browseFair",
82
83
  bulkEditDrawer = "bulkEditDrawer",
83
84
  categoryRail = "categoryRail",
@@ -88,6 +89,7 @@ export declare enum ContextModule {
88
89
  collectorProfile = "collectorProfile",
89
90
  collectorProfileCard = "collectorProfileCard",
90
91
  completeMyProfileFlow = "completeMyProfileFlow",
92
+ connectedAppsList = "connectedAppsList",
91
93
  consignmentInquiryForm = "consignmentInquiryForm",
92
94
  consignSubmissionFlow = "consignSubmissionFlow",
93
95
  contactInformation = "contactInformation",
@@ -92,6 +92,7 @@ exports.ContextModule = ContextModule;
92
92
  ContextModule["basedOnYourRecentSavesRail"] = "basedOnYourRecentSavesRail";
93
93
  ContextModule["boothsTab"] = "boothsTab";
94
94
  ContextModule["bottomTabs"] = "bottomTabs";
95
+ ContextModule["brandKitPromptModal"] = "brandKitPromptModal";
95
96
  ContextModule["browseFair"] = "browseFair";
96
97
  ContextModule["bulkEditDrawer"] = "bulkEditDrawer";
97
98
  ContextModule["categoryRail"] = "categoryRail";
@@ -102,6 +103,7 @@ exports.ContextModule = ContextModule;
102
103
  ContextModule["collectorProfile"] = "collectorProfile";
103
104
  ContextModule["collectorProfileCard"] = "collectorProfileCard";
104
105
  ContextModule["completeMyProfileFlow"] = "completeMyProfileFlow";
106
+ ContextModule["connectedAppsList"] = "connectedAppsList";
105
107
  ContextModule["consignmentInquiryForm"] = "consignmentInquiryForm";
106
108
  ContextModule["consignSubmissionFlow"] = "consignSubmissionFlow";
107
109
  ContextModule["contactInformation"] = "contactInformation";
@@ -61,6 +61,7 @@ export declare enum OwnerType {
61
61
  collections = "collections",
62
62
  collectionsCategory = "collectionsCategory",
63
63
  confirmYourBid = "confirmYourBid",
64
+ connectedApps = "connectedApps",
64
65
  consign = "consign",
65
66
  consignmentFlow = "consignmentFlow",
66
67
  consignmentInquiry = "consignmentInquiry",
@@ -147,6 +148,7 @@ export declare enum OwnerType {
147
148
  shows = "shows",
148
149
  signup = "signup",
149
150
  similarToRecentlyViewed = "similarToRecentlyViewed",
151
+ studioMaterials = "studioMaterials",
150
152
  submitArtworkStepAddDetails = "submitArtworkStepAddDetails",
151
153
  submitArtworkStepAddDimensions = "submitArtworkStepAddDimensions",
152
154
  submitArtworkStepAddPhoneNumber = "submitArtworkStepAddPhoneNumber",
@@ -79,6 +79,7 @@ exports.OwnerType = OwnerType;
79
79
  OwnerType["collections"] = "collections";
80
80
  OwnerType["collectionsCategory"] = "collectionsCategory";
81
81
  OwnerType["confirmYourBid"] = "confirmYourBid";
82
+ OwnerType["connectedApps"] = "connectedApps";
82
83
  OwnerType["consign"] = "consign";
83
84
  OwnerType["consignmentFlow"] = "consignmentFlow";
84
85
  OwnerType["consignmentInquiry"] = "consignmentInquiry";
@@ -165,6 +166,7 @@ exports.OwnerType = OwnerType;
165
166
  OwnerType["shows"] = "shows";
166
167
  OwnerType["signup"] = "signup";
167
168
  OwnerType["similarToRecentlyViewed"] = "similarToRecentlyViewed";
169
+ OwnerType["studioMaterials"] = "studioMaterials";
168
170
  OwnerType["submitArtworkStepAddDetails"] = "submitArtworkStepAddDetails";
169
171
  OwnerType["submitArtworkStepAddDimensions"] = "submitArtworkStepAddDimensions";
170
172
  OwnerType["submitArtworkStepAddPhoneNumber"] = "submitArtworkStepAddPhoneNumber";
@@ -53,8 +53,10 @@ 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/BrandKit";
56
57
  export * from "./os/Events/Click";
58
+ export * from "./os/Events/ConnectedAppsFlow";
57
59
  export * from "./os/Events/InventoryTable";
60
+ export * from "./os/Events/MaterialsEditor";
58
61
  export * from "./os/Events/MultiAddFlow";
59
- export * from "./os/Events/BrandKit";
60
62
  export * from "./os/Events/Submit";
@@ -556,6 +556,18 @@ Object.keys(_OsOwnerType).forEach(function (key) {
556
556
  });
557
557
  });
558
558
 
559
+ var _BrandKit = require("./os/Events/BrandKit");
560
+
561
+ Object.keys(_BrandKit).forEach(function (key) {
562
+ if (key === "default" || key === "__esModule") return;
563
+ Object.defineProperty(exports, key, {
564
+ enumerable: true,
565
+ get: function get() {
566
+ return _BrandKit[key];
567
+ }
568
+ });
569
+ });
570
+
559
571
  var _Click2 = require("./os/Events/Click");
560
572
 
561
573
  Object.keys(_Click2).forEach(function (key) {
@@ -568,6 +580,18 @@ Object.keys(_Click2).forEach(function (key) {
568
580
  });
569
581
  });
570
582
 
583
+ var _ConnectedAppsFlow = require("./os/Events/ConnectedAppsFlow");
584
+
585
+ Object.keys(_ConnectedAppsFlow).forEach(function (key) {
586
+ if (key === "default" || key === "__esModule") return;
587
+ Object.defineProperty(exports, key, {
588
+ enumerable: true,
589
+ get: function get() {
590
+ return _ConnectedAppsFlow[key];
591
+ }
592
+ });
593
+ });
594
+
571
595
  var _InventoryTable = require("./os/Events/InventoryTable");
572
596
 
573
597
  Object.keys(_InventoryTable).forEach(function (key) {
@@ -580,26 +604,26 @@ Object.keys(_InventoryTable).forEach(function (key) {
580
604
  });
581
605
  });
582
606
 
583
- var _MultiAddFlow = require("./os/Events/MultiAddFlow");
607
+ var _MaterialsEditor = require("./os/Events/MaterialsEditor");
584
608
 
585
- Object.keys(_MultiAddFlow).forEach(function (key) {
609
+ Object.keys(_MaterialsEditor).forEach(function (key) {
586
610
  if (key === "default" || key === "__esModule") return;
587
611
  Object.defineProperty(exports, key, {
588
612
  enumerable: true,
589
613
  get: function get() {
590
- return _MultiAddFlow[key];
614
+ return _MaterialsEditor[key];
591
615
  }
592
616
  });
593
617
  });
594
618
 
595
- var _BrandKit = require("./os/Events/BrandKit");
619
+ var _MultiAddFlow = require("./os/Events/MultiAddFlow");
596
620
 
597
- Object.keys(_BrandKit).forEach(function (key) {
621
+ Object.keys(_MultiAddFlow).forEach(function (key) {
598
622
  if (key === "default" || key === "__esModule") return;
599
623
  Object.defineProperty(exports, key, {
600
624
  enumerable: true,
601
625
  get: function get() {
602
- return _BrandKit[key];
626
+ return _MultiAddFlow[key];
603
627
  }
604
628
  });
605
629
  });
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Schemas describing Art OS Connected Apps flow 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 clicks the Connect or Disconnect button on a connected-account card.
10
+ *
11
+ * @example
12
+ * ```
13
+ * {
14
+ * action: "clickedConnectAccount",
15
+ * context_module: "connectedAppsList",
16
+ * context_page_owner_type: "connectedApps",
17
+ * label: "instagram",
18
+ * value: "connect"
19
+ * }
20
+ * ```
21
+ */
22
+ export interface ClickedConnectAccount {
23
+ action: OsActionType.clickedConnectAccount;
24
+ context_module: OsContextModule.connectedAppsList;
25
+ context_page_owner_type: OsOwnerType.connectedApps;
26
+ label: "instagram" | "mailchimp";
27
+ value: "connect" | "disconnect";
28
+ }
29
+ /**
30
+ * A partner clicks a button inside the connect or disconnect confirmation modal.
31
+ *
32
+ * @example
33
+ * ```
34
+ * {
35
+ * action: "clickedConnectAccountModal",
36
+ * context_module: "connectModal",
37
+ * context_page_owner_type: "connectedApps",
38
+ * label: "instagram connection modal",
39
+ * value: "connect"
40
+ * }
41
+ * ```
42
+ */
43
+ export interface ClickedConnectAccountModal {
44
+ action: OsActionType.clickedConnectAccountModal;
45
+ context_module: OsContextModule.connectModal;
46
+ context_page_owner_type: OsOwnerType.connectedApps;
47
+ label: "instagram connection modal" | "mailchimp connection modal";
48
+ value: "connect" | "disconnect" | "cancel";
49
+ }
50
+ export type OsConnectedAppsFlow = ClickedConnectAccount | ClickedConnectAccountModal;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,88 @@
1
+ import { OsContextModule } from "../Values/OsContextModule";
2
+ import { OsOwnerType } from "../Values/OsOwnerType";
3
+ import { OsActionType } from ".";
4
+ /**
5
+ * Schemas describing Art OS Materials (Tearsheet / Checklist) events
6
+ * @packageDocumentation
7
+ */
8
+ /**
9
+ * A partner clicks "Exit" in the Materials editor header to leave the editor.
10
+ *
11
+ * This schema describes events sent to Segment from [[OsClickedExitEditor]]
12
+ *
13
+ * @example
14
+ * ```
15
+ * {
16
+ * action: "clickedExitEditor",
17
+ * context_module: "editorHeader",
18
+ * context_page_owner_type: "studioMaterials",
19
+ * label: "materials editor"
20
+ * }
21
+ * ```
22
+ */
23
+ export interface OsClickedExitEditor {
24
+ action: OsActionType.clickedExitEditor;
25
+ context_module: OsContextModule.editorHeader;
26
+ context_page_owner_type: OsOwnerType.studioMaterials;
27
+ label: string;
28
+ }
29
+ /**
30
+ * A partner clicks a button in the Brand Kit prompt modal (the modal suggesting they
31
+ * create a Brand Kit). `value` distinguishes the dismiss action from the create action.
32
+ *
33
+ * This schema describes events sent to Segment from [[OsClickedBrandKitModal]]
34
+ *
35
+ * @example
36
+ * ```
37
+ * {
38
+ * action: "clickedBrandKitModal",
39
+ * context_module: "brandKitPromptModal",
40
+ * context_page_owner_type: "studioMaterials",
41
+ * label: "materials brand kit modal",
42
+ * value: "create"
43
+ * }
44
+ * ```
45
+ */
46
+ export interface OsClickedBrandKitModal {
47
+ action: OsActionType.clickedBrandKitModal;
48
+ context_module: OsContextModule.brandKitPromptModal;
49
+ context_page_owner_type: OsOwnerType.studioMaterials;
50
+ label: string;
51
+ value: "cancel" | "create";
52
+ }
53
+ /**
54
+ * A partner creates a material (Tearsheet or Checklist PDF) from the Materials editor.
55
+ *
56
+ * `content` is a generic catch-all holding the artwork detail fields included in the
57
+ * generated material (e.g. only the fields whose checkboxes are selected). It is kept
58
+ * generic on purpose — parsed ad-hoc downstream rather than maintained as a rigid set
59
+ * of top-level fields — so the same event can serve Materials, Mailchimp, Instagram, etc.
60
+ *
61
+ * This schema describes events sent to Segment from [[OsCreatedStudioContent]]
62
+ *
63
+ * @example
64
+ * ```
65
+ * {
66
+ * action: "createdStudioContent",
67
+ * context_module: "materialsEditor",
68
+ * context_page_owner_type: "studioMaterials",
69
+ * value: "tearsheet",
70
+ * brand_kit: true,
71
+ * content: {
72
+ * artworkTitle: "Xpto",
73
+ * artistNames: ["Jane Doe", "John Doe"],
74
+ * date: "2025"
75
+ * }
76
+ * }
77
+ * ```
78
+ */
79
+ export interface OsCreatedStudioContent {
80
+ action: OsActionType.createdStudioContent;
81
+ context_module: OsContextModule.materialsEditor;
82
+ context_page_owner_type: OsOwnerType.studioMaterials;
83
+ value: "tearsheet" | "checklist";
84
+ brand_kit: boolean;
85
+ /** Generic catch-all for the artwork detail fields included in the generated material */
86
+ content: Record<string, unknown>;
87
+ }
88
+ export type OsMaterialsEditor = OsClickedBrandKitModal | OsClickedExitEditor | OsCreatedStudioContent;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,6 +1,8 @@
1
1
  import { ClickedAddBrandKitFile, ClickedBrandKitColor, ClickedBrandKitFont, ClickedSaveBrandKit } from "./BrandKit";
2
2
  import { OsClickEvent } from "./Click";
3
+ import { OsConnectedAppsFlow } from "./ConnectedAppsFlow";
3
4
  import { OsInventoryTable } from "./InventoryTable";
5
+ import { OsMaterialsEditor } from "./MaterialsEditor";
4
6
  import { OsMultiAddFlow } from "./MultiAddFlow";
5
7
  import { OsSubmitEvent } from "./Submit";
6
8
  /**
@@ -8,7 +10,7 @@ import { OsSubmitEvent } from "./Submit";
8
10
  *
9
11
  * Each event describes one ActionType
10
12
  */
11
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsClickEvent | OsInventoryTable | OsMultiAddFlow | OsSubmitEvent;
13
+ export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent;
12
14
  /**
13
15
  * List of all Art OS actions
14
16
  *
@@ -36,7 +38,7 @@ export declare enum OsActionType {
36
38
  */
37
39
  cancelledArtworkImport = "cancelledArtworkImport",
38
40
  /**
39
- * Corresponds to {@link ClickedActionsDropdown}
41
+ * Corresponds to {@link OsClickedActionsDropdown}
40
42
  */
41
43
  clickedActionsDropdown = "clickedActionsDropdown",
42
44
  /**
@@ -52,10 +54,26 @@ export declare enum OsActionType {
52
54
  * Corresponds to {@link OsInventoryTable}
53
55
  */
54
56
  clickedEditionSetRow = "clickedEditionSetRow",
57
+ /**
58
+ * Corresponds to {@link ClickedConnectAccount}
59
+ */
60
+ clickedConnectAccount = "clickedConnectAccount",
61
+ /**
62
+ * Corresponds to {@link ClickedConnectAccountModal}
63
+ */
64
+ clickedConnectAccountModal = "clickedConnectAccountModal",
65
+ /**
66
+ * Corresponds to {@link OsClickedBrandKitModal}
67
+ */
68
+ clickedBrandKitModal = "clickedBrandKitModal",
55
69
  /**
56
70
  * Corresponds to {@link ClickedExitDropZone}
57
71
  */
58
72
  clickedExitDropZone = "clickedExitDropZone",
73
+ /**
74
+ * Corresponds to {@link OsClickedExitEditor}
75
+ */
76
+ clickedExitEditor = "clickedExitEditor",
59
77
  /**
60
78
  * Corresponds to {@link OsInventoryTable}
61
79
  */
@@ -68,6 +86,10 @@ export declare enum OsActionType {
68
86
  * Corresponds to {@link CreatedImportedArtworks}
69
87
  */
70
88
  createdImportedArtworks = "createdImportedArtworks",
89
+ /**
90
+ * Corresponds to {@link OsCreatedStudioContent}
91
+ */
92
+ createdStudioContent = "createdStudioContent",
71
93
  /**
72
94
  * Corresponds to {@link DeletedArtwork}
73
95
  */
@@ -30,10 +30,15 @@ exports.OsActionType = OsActionType;
30
30
  OsActionType["clickedArtworkRow"] = "clickedArtworkRow";
31
31
  OsActionType["clickedCancelBulkEdit"] = "clickedCancelBulkEdit";
32
32
  OsActionType["clickedEditionSetRow"] = "clickedEditionSetRow";
33
+ OsActionType["clickedConnectAccount"] = "clickedConnectAccount";
34
+ OsActionType["clickedConnectAccountModal"] = "clickedConnectAccountModal";
35
+ OsActionType["clickedBrandKitModal"] = "clickedBrandKitModal";
33
36
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
37
+ OsActionType["clickedExitEditor"] = "clickedExitEditor";
34
38
  OsActionType["clickedImagesModal"] = "clickedImagesModal";
35
39
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
36
40
  OsActionType["createdImportedArtworks"] = "createdImportedArtworks";
41
+ OsActionType["createdStudioContent"] = "createdStudioContent";
37
42
  OsActionType["deletedArtwork"] = "deletedArtwork";
38
43
  OsActionType["distributedArtworks"] = "distributedArtworks";
39
44
  OsActionType["editedArtworkField"] = "editedArtworkField";
@@ -5,16 +5,21 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  export declare enum OsContextModule {
8
+ actionsDropdown = "actionsDropdown",
8
9
  addArtistModal = "addArtistModal",
9
10
  addLocationModal = "addLocationModal",
10
- actionsDropdown = "actionsDropdown",
11
11
  artworkTable = "artworkTable",
12
+ brandKit = "brandKit",
13
+ brandKitPromptModal = "brandKitPromptModal",
12
14
  bulkEditDrawer = "bulkEditDrawer",
15
+ connectedAppsList = "connectedAppsList",
16
+ connectModal = "connectModal",
13
17
  deleteModal = "deleteModal",
14
18
  distributeModal = "distributeModal",
15
19
  documentsModal = "documentsModal",
20
+ editorHeader = "editorHeader",
16
21
  imagesModal = "imagesModal",
22
+ materialsEditor = "materialsEditor",
17
23
  multiAdd = "multiAdd",
18
- multiAddReview = "multiAddReview",
19
- brandKit = "brandKit"
24
+ multiAddReview = "multiAddReview"
20
25
  }
@@ -15,16 +15,21 @@ var OsContextModule;
15
15
  exports.OsContextModule = OsContextModule;
16
16
 
17
17
  (function (OsContextModule) {
18
+ OsContextModule["actionsDropdown"] = "actionsDropdown";
18
19
  OsContextModule["addArtistModal"] = "addArtistModal";
19
20
  OsContextModule["addLocationModal"] = "addLocationModal";
20
- OsContextModule["actionsDropdown"] = "actionsDropdown";
21
21
  OsContextModule["artworkTable"] = "artworkTable";
22
+ OsContextModule["brandKit"] = "brandKit";
23
+ OsContextModule["brandKitPromptModal"] = "brandKitPromptModal";
22
24
  OsContextModule["bulkEditDrawer"] = "bulkEditDrawer";
25
+ OsContextModule["connectedAppsList"] = "connectedAppsList";
26
+ OsContextModule["connectModal"] = "connectModal";
23
27
  OsContextModule["deleteModal"] = "deleteModal";
24
28
  OsContextModule["distributeModal"] = "distributeModal";
25
29
  OsContextModule["documentsModal"] = "documentsModal";
30
+ OsContextModule["editorHeader"] = "editorHeader";
26
31
  OsContextModule["imagesModal"] = "imagesModal";
32
+ OsContextModule["materialsEditor"] = "materialsEditor";
27
33
  OsContextModule["multiAdd"] = "multiAdd";
28
34
  OsContextModule["multiAddReview"] = "multiAddReview";
29
- OsContextModule["brandKit"] = "brandKit";
30
35
  })(OsContextModule || (exports.OsContextModule = OsContextModule = {}));
@@ -4,7 +4,9 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  export declare enum OsOwnerType {
7
- list = "list",
7
+ connectedApps = "connectedApps",
8
8
  inventory = "inventory",
9
- studio = "studio"
9
+ list = "list",
10
+ studio = "studio",
11
+ studioMaterials = "studioMaterials"
10
12
  }
@@ -14,7 +14,9 @@ var OsOwnerType;
14
14
  exports.OsOwnerType = OsOwnerType;
15
15
 
16
16
  (function (OsOwnerType) {
17
- OsOwnerType["list"] = "list";
17
+ OsOwnerType["connectedApps"] = "connectedApps";
18
18
  OsOwnerType["inventory"] = "inventory";
19
+ OsOwnerType["list"] = "list";
19
20
  OsOwnerType["studio"] = "studio";
21
+ OsOwnerType["studioMaterials"] = "studioMaterials";
20
22
  })(OsOwnerType || (exports.OsOwnerType = OsOwnerType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.366.0",
3
+ "version": "4.368.0--canary.710.15062.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {