@artsy/cohesion 4.290.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,27 @@
|
|
|
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
|
+
|
|
13
|
+
# v4.291.0 (Tue Jul 29 2025)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: Add ClickedGraphCTA [#625](https://github.com/artsy/cohesion/pull/625) ([@xander-pero](https://github.com/xander-pero))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- [@xander-pero](https://github.com/xander-pero)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.290.0 (Mon Jul 28 2025)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -12,7 +12,7 @@ import { CmsActionType } from "./index";
|
|
|
12
12
|
* ```
|
|
13
13
|
* {
|
|
14
14
|
* action: "changedTimePeriod",
|
|
15
|
-
* context_module: "
|
|
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
|
|
@@ -26,6 +26,25 @@ export interface CmsAnalyticsPageChangedTimePeriod {
|
|
|
26
26
|
time_period_start: number;
|
|
27
27
|
time_period_end: number;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* A partner clicks on the CTA below a graph
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```
|
|
34
|
+
* {
|
|
35
|
+
* action: "clickedGraphCTA",
|
|
36
|
+
* context_module: "analyticsPublishedArtworks" | "analyticsInquiries" | "analyticsSales",
|
|
37
|
+
* context_page_owner_type: "analytics",
|
|
38
|
+
* destination_page_owner_type: "artworks" | "conversations" | "orders"
|
|
39
|
+
* }
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export interface CmsAnalyticsPageClickedGraphCTA {
|
|
43
|
+
action: CmsActionType.clickedGraphCTA;
|
|
44
|
+
context_module: CmsContextModule;
|
|
45
|
+
context_page_owner_type: CmsOwnerType.analytics;
|
|
46
|
+
destination_page_owner_type: string;
|
|
47
|
+
}
|
|
29
48
|
/**
|
|
30
49
|
* A partner clicks on an entity in the "Most Viewed" section
|
|
31
50
|
*
|
|
@@ -33,7 +52,7 @@ export interface CmsAnalyticsPageChangedTimePeriod {
|
|
|
33
52
|
* ```
|
|
34
53
|
* {
|
|
35
54
|
* action: "clickedMostViewed",
|
|
36
|
-
* context_module: "
|
|
55
|
+
* context_module: "analyticsMostViewed"
|
|
37
56
|
* context_page_owner_type: "analytics",
|
|
38
57
|
* destination_page_owner_type: "artworks" | "show" | "artist" | "viewing-room",
|
|
39
58
|
* position: 0 | 1 | ... | 9
|
|
@@ -42,7 +61,7 @@ export interface CmsAnalyticsPageChangedTimePeriod {
|
|
|
42
61
|
*/
|
|
43
62
|
export interface CmsAnalyticsPageClickedMostViewed {
|
|
44
63
|
action: CmsActionType.clickedMostViewed;
|
|
45
|
-
context_module: CmsContextModule;
|
|
64
|
+
context_module: CmsContextModule.analyticsMostViewed;
|
|
46
65
|
context_page_owner_type: CmsOwnerType.analytics;
|
|
47
66
|
destination_page_owner_type: string;
|
|
48
67
|
position: number;
|
|
@@ -54,7 +73,7 @@ export interface CmsAnalyticsPageClickedMostViewed {
|
|
|
54
73
|
* ```
|
|
55
74
|
* {
|
|
56
75
|
* action: "viewedGraph",
|
|
57
|
-
* context_module: "
|
|
76
|
+
* context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
|
|
58
77
|
* context_page_owner_type: "analytics",
|
|
59
78
|
* graph_type: "cumulative_line" | "donut"
|
|
60
79
|
* }
|
|
@@ -73,7 +92,7 @@ export interface CmsAnalyticsPageViewedGraph {
|
|
|
73
92
|
* ```
|
|
74
93
|
* {
|
|
75
94
|
* action: "viewedGraphDatapoint",
|
|
76
|
-
* context_module: "
|
|
95
|
+
* context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
|
|
77
96
|
* context_page_owner_type: "analytics",
|
|
78
97
|
* graph_type: "cumulative_line" | "donut"
|
|
79
98
|
* datapoint_bucket_size?: "daily" | "weekly" | "monthly" | null
|
|
@@ -96,7 +115,7 @@ export interface CmsAnalyticsPageViewedGraphDatapoint {
|
|
|
96
115
|
* ```
|
|
97
116
|
* {
|
|
98
117
|
* action: "viewedTooltip",
|
|
99
|
-
* context_module: "
|
|
118
|
+
* context_module: "analyticsMostViewed" | "analyticsPublishedArtworks" | "analyticsViews" | "analyticsInquiries" | "analyticsSales" | "analyticsAudience",
|
|
100
119
|
* context_page_owner_type: "analytics",
|
|
101
120
|
* type: "explanatory" | "response-time" | "response-time-score"
|
|
102
121
|
* }
|
|
@@ -104,8 +123,8 @@ export interface CmsAnalyticsPageViewedGraphDatapoint {
|
|
|
104
123
|
*/
|
|
105
124
|
export interface CmsAnalyticsPageViewedTooltip {
|
|
106
125
|
action: CmsActionType.viewedTooltip;
|
|
107
|
-
context_module: CmsContextModule
|
|
126
|
+
context_module: CmsContextModule;
|
|
108
127
|
context_page_owner_type: CmsOwnerType.analytics;
|
|
109
128
|
type: string;
|
|
110
129
|
}
|
|
111
|
-
export type CmsAnalyticsPage = CmsAnalyticsPageChangedTimePeriod | CmsAnalyticsPageClickedMostViewed | CmsAnalyticsPageViewedGraph | CmsAnalyticsPageViewedGraphDatapoint | CmsAnalyticsPageViewedTooltip;
|
|
130
|
+
export type CmsAnalyticsPage = CmsAnalyticsPageChangedTimePeriod | CmsAnalyticsPageClickedGraphCTA | CmsAnalyticsPageClickedMostViewed | CmsAnalyticsPageViewedGraph | CmsAnalyticsPageViewedGraphDatapoint | CmsAnalyticsPageViewedTooltip;
|
|
@@ -37,6 +37,10 @@ export declare enum CmsActionType {
|
|
|
37
37
|
* Corresponds to {@link CmsAnalyticsPage}
|
|
38
38
|
*/
|
|
39
39
|
changedTimePeriod = "changedTimePeriod",
|
|
40
|
+
/**
|
|
41
|
+
* Corresponds to {@link CmsAnalytics}
|
|
42
|
+
*/
|
|
43
|
+
clickedGraphCTA = "clickedGraphCTA",
|
|
40
44
|
/**
|
|
41
45
|
* Corresponds to {@link CmsAnalytics}
|
|
42
46
|
*/
|
|
@@ -25,6 +25,7 @@ exports.CmsActionType = CmsActionType;
|
|
|
25
25
|
CmsActionType["batchImportTableContentSummary"] = "batchImportTableContentSummary";
|
|
26
26
|
CmsActionType["bulkEditFailed"] = "bulkEditFailed";
|
|
27
27
|
CmsActionType["changedTimePeriod"] = "changedTimePeriod";
|
|
28
|
+
CmsActionType["clickedGraphCTA"] = "clickedGraphCTA";
|
|
28
29
|
CmsActionType["clickedMostViewed"] = "clickedMostViewed";
|
|
29
30
|
CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
|
|
30
31
|
CmsActionType["createdArtwork"] = "created artwork";
|