@artsy/cohesion 4.366.0 → 4.367.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
@@ -88,6 +88,7 @@ export declare enum ContextModule {
88
88
  collectorProfile = "collectorProfile",
89
89
  collectorProfileCard = "collectorProfileCard",
90
90
  completeMyProfileFlow = "completeMyProfileFlow",
91
+ connectedAppsList = "connectedAppsList",
91
92
  consignmentInquiryForm = "consignmentInquiryForm",
92
93
  consignSubmissionFlow = "consignSubmissionFlow",
93
94
  contactInformation = "contactInformation",
@@ -102,6 +102,7 @@ exports.ContextModule = ContextModule;
102
102
  ContextModule["collectorProfile"] = "collectorProfile";
103
103
  ContextModule["collectorProfileCard"] = "collectorProfileCard";
104
104
  ContextModule["completeMyProfileFlow"] = "completeMyProfileFlow";
105
+ ContextModule["connectedAppsList"] = "connectedAppsList";
105
106
  ContextModule["consignmentInquiryForm"] = "consignmentInquiryForm";
106
107
  ContextModule["consignSubmissionFlow"] = "consignSubmissionFlow";
107
108
  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",
@@ -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";
@@ -53,6 +53,7 @@ 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/ConnectedAppsFlow";
56
57
  export * from "./os/Events/Click";
57
58
  export * from "./os/Events/InventoryTable";
58
59
  export * from "./os/Events/MultiAddFlow";
@@ -556,6 +556,18 @@ Object.keys(_OsOwnerType).forEach(function (key) {
556
556
  });
557
557
  });
558
558
 
559
+ var _ConnectedAppsFlow = require("./os/Events/ConnectedAppsFlow");
560
+
561
+ Object.keys(_ConnectedAppsFlow).forEach(function (key) {
562
+ if (key === "default" || key === "__esModule") return;
563
+ Object.defineProperty(exports, key, {
564
+ enumerable: true,
565
+ get: function get() {
566
+ return _ConnectedAppsFlow[key];
567
+ }
568
+ });
569
+ });
570
+
559
571
  var _Click2 = require("./os/Events/Click");
560
572
 
561
573
  Object.keys(_Click2).forEach(function (key) {
@@ -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";
@@ -1,5 +1,6 @@
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";
4
5
  import { OsMultiAddFlow } from "./MultiAddFlow";
5
6
  import { OsSubmitEvent } from "./Submit";
@@ -8,7 +9,7 @@ import { OsSubmitEvent } from "./Submit";
8
9
  *
9
10
  * Each event describes one ActionType
10
11
  */
11
- export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsClickEvent | OsInventoryTable | OsMultiAddFlow | OsSubmitEvent;
12
+ export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsInventoryTable | OsMultiAddFlow | OsSubmitEvent;
12
13
  /**
13
14
  * List of all Art OS actions
14
15
  *
@@ -52,6 +53,14 @@ export declare enum OsActionType {
52
53
  * Corresponds to {@link OsInventoryTable}
53
54
  */
54
55
  clickedEditionSetRow = "clickedEditionSetRow",
56
+ /**
57
+ * Corresponds to {@link ClickedConnectAccount}
58
+ */
59
+ clickedConnectAccount = "clickedConnectAccount",
60
+ /**
61
+ * Corresponds to {@link ClickedConnectAccountModal}
62
+ */
63
+ clickedConnectAccountModal = "clickedConnectAccountModal",
55
64
  /**
56
65
  * Corresponds to {@link ClickedExitDropZone}
57
66
  */
@@ -30,6 +30,8 @@ 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";
33
35
  OsActionType["clickedExitDropZone"] = "clickedExitDropZone";
34
36
  OsActionType["clickedImagesModal"] = "clickedImagesModal";
35
37
  OsActionType["completedArtworkImport"] = "completedArtworkImport";
@@ -10,6 +10,8 @@ export declare enum OsContextModule {
10
10
  actionsDropdown = "actionsDropdown",
11
11
  artworkTable = "artworkTable",
12
12
  bulkEditDrawer = "bulkEditDrawer",
13
+ connectedAppsList = "connectedAppsList",
14
+ connectModal = "connectModal",
13
15
  deleteModal = "deleteModal",
14
16
  distributeModal = "distributeModal",
15
17
  documentsModal = "documentsModal",
@@ -20,6 +20,8 @@ exports.OsContextModule = OsContextModule;
20
20
  OsContextModule["actionsDropdown"] = "actionsDropdown";
21
21
  OsContextModule["artworkTable"] = "artworkTable";
22
22
  OsContextModule["bulkEditDrawer"] = "bulkEditDrawer";
23
+ OsContextModule["connectedAppsList"] = "connectedAppsList";
24
+ OsContextModule["connectModal"] = "connectModal";
23
25
  OsContextModule["deleteModal"] = "deleteModal";
24
26
  OsContextModule["distributeModal"] = "distributeModal";
25
27
  OsContextModule["documentsModal"] = "documentsModal";
@@ -4,6 +4,7 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  export declare enum OsOwnerType {
7
+ connectedApps = "connectedApps",
7
8
  list = "list",
8
9
  inventory = "inventory",
9
10
  studio = "studio"
@@ -14,6 +14,7 @@ var OsOwnerType;
14
14
  exports.OsOwnerType = OsOwnerType;
15
15
 
16
16
  (function (OsOwnerType) {
17
+ OsOwnerType["connectedApps"] = "connectedApps";
17
18
  OsOwnerType["list"] = "list";
18
19
  OsOwnerType["inventory"] = "inventory";
19
20
  OsOwnerType["studio"] = "studio";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.366.0",
3
+ "version": "4.367.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {