@artsy/cohesion 4.291.0 → 4.292.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.292.0 (Thu Jul 31 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: Analytics CMS fixes [#627](https://github.com/artsy/cohesion/pull/627) ([@xander-pero](https://github.com/xander-pero))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@xander-pero](https://github.com/xander-pero)
10
+
11
+ ---
12
+
1
13
  # v4.291.0 (Tue Jul 29 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -12,7 +12,7 @@ import { CmsActionType } from "./index";
12
12
  * ```
13
13
  * {
14
14
  * action: "changedTimePeriod",
15
- * context_module: "mostViewed" | "publishedArtworks" | "views" | "inquiries" | "sales" | "audience",
15
+ * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
16
16
  * context_page_owner_type: "analytics",
17
17
  * time_period_start: -28 | -112 | -365,
18
18
  * time_period_end: 0
@@ -33,7 +33,7 @@ export interface CmsAnalyticsPageChangedTimePeriod {
33
33
  * ```
34
34
  * {
35
35
  * action: "clickedGraphCTA",
36
- * context_module: "publishedArtworks" | "inquiries" | "sales",
36
+ * context_module: "analyticsPublishedArtworks" | "analyticsInquiries" | "analyticsSales",
37
37
  * context_page_owner_type: "analytics",
38
38
  * destination_page_owner_type: "artworks" | "conversations" | "orders"
39
39
  * }
@@ -52,7 +52,7 @@ export interface CmsAnalyticsPageClickedGraphCTA {
52
52
  * ```
53
53
  * {
54
54
  * action: "clickedMostViewed",
55
- * context_module: "mostViewed"
55
+ * context_module: "analyticsMostViewed"
56
56
  * context_page_owner_type: "analytics",
57
57
  * destination_page_owner_type: "artworks" | "show" | "artist" | "viewing-room",
58
58
  * position: 0 | 1 | ... | 9
@@ -61,7 +61,7 @@ export interface CmsAnalyticsPageClickedGraphCTA {
61
61
  */
62
62
  export interface CmsAnalyticsPageClickedMostViewed {
63
63
  action: CmsActionType.clickedMostViewed;
64
- context_module: CmsContextModule;
64
+ context_module: CmsContextModule.analyticsMostViewed;
65
65
  context_page_owner_type: CmsOwnerType.analytics;
66
66
  destination_page_owner_type: string;
67
67
  position: number;
@@ -73,7 +73,7 @@ export interface CmsAnalyticsPageClickedMostViewed {
73
73
  * ```
74
74
  * {
75
75
  * action: "viewedGraph",
76
- * context_module: "mostViewed" | "publishedArtworks" | "views" | "inquiries" | "sales" | "audience",
76
+ * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
77
77
  * context_page_owner_type: "analytics",
78
78
  * graph_type: "cumulative_line" | "donut"
79
79
  * }
@@ -92,7 +92,7 @@ export interface CmsAnalyticsPageViewedGraph {
92
92
  * ```
93
93
  * {
94
94
  * action: "viewedGraphDatapoint",
95
- * context_module: "mostViewed" | "publishedArtworks" | "views" | "inquiries" | "sales" | "audience",
95
+ * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
96
96
  * context_page_owner_type: "analytics",
97
97
  * graph_type: "cumulative_line" | "donut"
98
98
  * datapoint_bucket_size?: "daily" | "weekly" | "monthly" | null
@@ -115,7 +115,7 @@ export interface CmsAnalyticsPageViewedGraphDatapoint {
115
115
  * ```
116
116
  * {
117
117
  * action: "viewedTooltip",
118
- * context_module: "mostViewed"
118
+ * context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
119
119
  * context_page_owner_type: "analytics",
120
120
  * type: "explanatory" | "response-time" | "response-time-score"
121
121
  * }
@@ -123,7 +123,7 @@ export interface CmsAnalyticsPageViewedGraphDatapoint {
123
123
  */
124
124
  export interface CmsAnalyticsPageViewedTooltip {
125
125
  action: CmsActionType.viewedTooltip;
126
- context_module: CmsContextModule.analyticsMostViewed;
126
+ context_module: CmsContextModule;
127
127
  context_page_owner_type: CmsOwnerType.analytics;
128
128
  type: string;
129
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.291.0",
3
+ "version": "4.292.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {