@artsy/cohesion 4.399.0 → 4.400.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.400.0 (Tue Sep 15 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Adds event schema for clicking actionable insights cms [#747](https://github.com/artsy/cohesion/pull/747) ([@jpotts244](https://github.com/jpotts244))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
10
+
11
+ ---
12
+
1
13
  # v4.399.0 (Wed Sep 09 2026)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Schemas describing CMS Home page events
3
+ * @packageDocumentation
4
+ */
5
+ import { CmsContextModule } from "../Values/CmsContextModule";
6
+ import { CmsOwnerType } from "../Values/CmsOwnerType";
7
+ import { CmsActionType } from "./index";
8
+ /**
9
+ * A partner clicks an Actionable Insights card on the CMS homepage
10
+ *
11
+ * @example
12
+ * ```
13
+ * {
14
+ * action: "clickedActionableInsight",
15
+ * context_module: "actionableInsights",
16
+ * context_page_owner_type: "home",
17
+ * subject: "inquiryResponse" | "publishArtworks" | "orderResponse",
18
+ * variant: "improve" | "positive",
19
+ * destination_path: "/conversations"
20
+ * }
21
+ * ```
22
+ */
23
+ export interface CmsClickedActionableInsight {
24
+ action: CmsActionType.clickedActionableInsight;
25
+ context_module: CmsContextModule.actionableInsights;
26
+ context_page_owner_type: CmsOwnerType.home;
27
+ subject: string;
28
+ variant: string;
29
+ destination_path: string;
30
+ }
31
+ export type CmsHomePage = CmsClickedActionableInsight;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -5,6 +5,7 @@ import { CmsArtworkTemplatesPage } from "./ArtworkTemplatesPage";
5
5
  import { CmsBatchImportFlow } from "./BatchImportFlow";
6
6
  import { CmsBulkEditFlow } from "./BulkEditFlow";
7
7
  import { CmsCompletenessScoreFlow } from "./CompletenessScoreFlow";
8
+ import { CmsHomePage } from "./HomePage";
8
9
  import { CmsOnboardingFlow } from "./OnboardingFlow";
9
10
  import { CmsQuickReplyFlow } from "./QuickReplyFlow";
10
11
  import { CmsSettingsFlow } from "./SettingsFlow";
@@ -15,7 +16,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
15
16
  *
16
17
  * Each event describes one ActionType
17
18
  */
18
- export type CmsEvent = CmsAnalyticsPage | CmsArtistFlow | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
19
+ export type CmsEvent = CmsAnalyticsPage | CmsArtistFlow | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsHomePage | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
19
20
  /**
20
21
  * List of all CMS actions
21
22
  *
@@ -54,6 +55,10 @@ export declare enum CmsActionType {
54
55
  * Corresponds to {@link CmsArtworkTemplatesPage}
55
56
  */
56
57
  clickedArtworkNavigationTab = "clickedArtworkNavigationTab",
58
+ /**
59
+ * Corresponds to {@link CmsHomePage}
60
+ */
61
+ clickedActionableInsight = "clickedActionableInsight",
57
62
  /**
58
63
  * Corresponds to {@link CmsClickedFeaturedInEditorialBadge}
59
64
  */
@@ -28,6 +28,7 @@ exports.CmsActionType = CmsActionType;
28
28
  CmsActionType["bulkEditFailed"] = "bulkEditFailed";
29
29
  CmsActionType["changedTimePeriod"] = "changedTimePeriod";
30
30
  CmsActionType["clickedArtworkNavigationTab"] = "clickedArtworkNavigationTab";
31
+ CmsActionType["clickedActionableInsight"] = "clickedActionableInsight";
31
32
  CmsActionType["clickedFeaturedInEditorialBadge"] = "clickedFeaturedInEditorialBadge";
32
33
  CmsActionType["clickedGraphCTA"] = "clickedGraphCTA";
33
34
  CmsActionType["clickedMostViewed"] = "clickedMostViewed";
@@ -5,6 +5,7 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  export declare enum CmsContextModule {
8
+ actionableInsights = "actionableInsights",
8
9
  addArtworkToShow = "Add artwork to show",
9
10
  artistList = "artistList",
10
11
  artistShow = "artistShow",
@@ -15,6 +15,7 @@ var CmsContextModule;
15
15
  exports.CmsContextModule = CmsContextModule;
16
16
 
17
17
  (function (CmsContextModule) {
18
+ CmsContextModule["actionableInsights"] = "actionableInsights";
18
19
  CmsContextModule["addArtworkToShow"] = "Add artwork to show";
19
20
  CmsContextModule["artistList"] = "artistList";
20
21
  CmsContextModule["artistShow"] = "artistShow";
@@ -10,5 +10,6 @@ export declare enum CmsOwnerType {
10
10
  bulkEdit = "bulkEdit",
11
11
  batchImport = "batchImport",
12
12
  batchImportArtistMatching = "batchImportArtistMatching",
13
- settings = "settings"
13
+ settings = "settings",
14
+ home = "home"
14
15
  }
@@ -21,4 +21,5 @@ exports.CmsOwnerType = CmsOwnerType;
21
21
  CmsOwnerType["batchImport"] = "batchImport";
22
22
  CmsOwnerType["batchImportArtistMatching"] = "batchImportArtistMatching";
23
23
  CmsOwnerType["settings"] = "settings";
24
+ CmsOwnerType["home"] = "home";
24
25
  })(CmsOwnerType || (exports.CmsOwnerType = CmsOwnerType = {}));
@@ -42,6 +42,7 @@ export * from "./CMS/Events/ArtworkFilter";
42
42
  export * from "./CMS/Events/BatchImportFlow";
43
43
  export * from "./CMS/Events/BulkEditFlow";
44
44
  export * from "./CMS/Events/CompletenessScoreFlow";
45
+ export * from "./CMS/Events/HomePage";
45
46
  export * from "./CMS/Events/QuickReplyFlow";
46
47
  export * from "./CMS/Events/SettingsFlow";
47
48
  export * from "./CMS/Events/ShowFlow";
@@ -460,6 +460,18 @@ Object.keys(_CompletenessScoreFlow).forEach(function (key) {
460
460
  });
461
461
  });
462
462
 
463
+ var _HomePage = require("./CMS/Events/HomePage");
464
+
465
+ Object.keys(_HomePage).forEach(function (key) {
466
+ if (key === "default" || key === "__esModule") return;
467
+ Object.defineProperty(exports, key, {
468
+ enumerable: true,
469
+ get: function get() {
470
+ return _HomePage[key];
471
+ }
472
+ });
473
+ });
474
+
463
475
  var _QuickReplyFlow = require("./CMS/Events/QuickReplyFlow");
464
476
 
465
477
  Object.keys(_QuickReplyFlow).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.399.0",
3
+ "version": "4.400.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {