@artsy/cohesion 4.348.0 → 4.350.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 +24 -0
- package/dist/Schema/CMS/Events/ArtworkTemplatesPage.d.ts +67 -0
- package/dist/Schema/CMS/Events/ArtworkTemplatesPage.js +1 -0
- package/dist/Schema/CMS/Events/SettingsFlow.d.ts +25 -1
- package/dist/Schema/CMS/Events/index.d.ts +11 -2
- package/dist/Schema/CMS/Events/index.js +2 -0
- package/dist/Schema/CMS/Values/CmsContextModule.d.ts +1 -0
- package/dist/Schema/CMS/Values/CmsContextModule.js +1 -0
- package/dist/Schema/CMS/Values/CmsOwnerType.d.ts +3 -1
- package/dist/Schema/CMS/Values/CmsOwnerType.js +2 -0
- package/dist/Schema/Events/Click.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v4.350.0 (Tue Mar 24 2026)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- chore(TOP-194): Add tracking events for Artworks Templates [#688](https://github.com/artsy/cohesion/pull/688) ([@MrSltun](https://github.com/MrSltun))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.349.0 (Tue Mar 17 2026)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- chore: update clickedAuctionResultItem example schema for empty state [#687](https://github.com/artsy/cohesion/pull/687) ([@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.348.0 (Wed Mar 11 2026)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
2
|
+
import { CmsOwnerType } from "../Values/CmsOwnerType";
|
|
3
|
+
import { CmsActionType } from ".";
|
|
4
|
+
/**
|
|
5
|
+
* Event fired after user deletes an artwork template
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* {
|
|
10
|
+
* action: "deletedArtworkTemplate",
|
|
11
|
+
* context_module: "Artworks - templates",
|
|
12
|
+
* context_page_owner_type: "artwork",
|
|
13
|
+
* template_id: "template-id",
|
|
14
|
+
* user_id: "some-user-id",
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export interface ArtworkTemplatesPageDeleteArtworkTemplate {
|
|
19
|
+
action: CmsActionType.deletedArtworkTemplate;
|
|
20
|
+
context_module: CmsContextModule.artworkTemplates;
|
|
21
|
+
context_page_owner_type: CmsOwnerType.artwork;
|
|
22
|
+
template_id: string;
|
|
23
|
+
user_id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Event fired after user clicks Use Template on an artwork template
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* {
|
|
31
|
+
* action: "clickedUseTemplate",
|
|
32
|
+
* context_module: "Artworks - templates",
|
|
33
|
+
* context_page_owner_type: "artwork",
|
|
34
|
+
* template_id: "template-id",
|
|
35
|
+
* user_id: "some-user-id",
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export interface ArtworkTemplatesPageClickedUseTemplate {
|
|
40
|
+
action: CmsActionType.clickedUseTemplate;
|
|
41
|
+
context_module: CmsContextModule.artworkTemplates;
|
|
42
|
+
context_page_owner_type: CmsOwnerType.artwork;
|
|
43
|
+
template_id: string;
|
|
44
|
+
user_id: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Event fired when user clicks on navigation tab in artworks page
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```
|
|
51
|
+
* {
|
|
52
|
+
* action: "clickedArtworkNavigationTab",
|
|
53
|
+
* context_module: "Artworks - templates",
|
|
54
|
+
* context_page_owner_type: "artwork",
|
|
55
|
+
* tabName: "All" | "Templates",
|
|
56
|
+
* user_id: "some-user-id",
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export interface ArtworkTemplatesPageClickedArtworkNavigationTab {
|
|
61
|
+
action: CmsActionType.clickedArtworkNavigationTab;
|
|
62
|
+
context_module: CmsContextModule.artworkTemplates;
|
|
63
|
+
context_page_owner_type: CmsOwnerType.artwork;
|
|
64
|
+
tabName: string;
|
|
65
|
+
user_id: string;
|
|
66
|
+
}
|
|
67
|
+
export type CmsArtworkTemplatesPage = ArtworkTemplatesPageDeleteArtworkTemplate | ArtworkTemplatesPageClickedUseTemplate | ArtworkTemplatesPageClickedArtworkNavigationTab;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
2
|
+
import { CmsOwnerType } from "../Values/CmsOwnerType";
|
|
2
3
|
import { CmsActionType } from ".";
|
|
3
4
|
/**
|
|
4
5
|
* Event fired after user new partner location
|
|
@@ -50,6 +51,7 @@ export interface SettingsFlowEditLocation {
|
|
|
50
51
|
* {
|
|
51
52
|
* action: "deletedArtworkTemplate",
|
|
52
53
|
* context_module: "Settings",
|
|
54
|
+
* context_page_owner_type: "settings",
|
|
53
55
|
* template_id: "template-id",
|
|
54
56
|
* user_id: "some-user-id",
|
|
55
57
|
* }
|
|
@@ -58,7 +60,29 @@ export interface SettingsFlowEditLocation {
|
|
|
58
60
|
export interface SettingsFlowDeleteArtworkTemplate {
|
|
59
61
|
action: CmsActionType.deletedArtworkTemplate;
|
|
60
62
|
context_module: CmsContextModule.settings;
|
|
63
|
+
context_page_owner_type: CmsOwnerType.settings;
|
|
61
64
|
template_id: string;
|
|
62
65
|
user_id: string;
|
|
63
66
|
}
|
|
64
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Event fired after user clicks Use Template on an artwork template
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```
|
|
72
|
+
* {
|
|
73
|
+
* action: "clickedUseTemplate",
|
|
74
|
+
* context_module: "Settings",
|
|
75
|
+
* context_page_owner_type: "settings",
|
|
76
|
+
* template_id: "template-id",
|
|
77
|
+
* user_id: "some-user-id",
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export interface SettingsFlowClickedUseTemplate {
|
|
82
|
+
action: CmsActionType.clickedUseTemplate;
|
|
83
|
+
context_module: CmsContextModule.settings;
|
|
84
|
+
context_page_owner_type: CmsOwnerType.settings;
|
|
85
|
+
template_id: string;
|
|
86
|
+
user_id: string;
|
|
87
|
+
}
|
|
88
|
+
export type CmsSettingsFlow = SettingsFlowAddNewLocation | SettingsFlowEditLocation | SettingsFlowDeleteArtworkTemplate | SettingsFlowClickedUseTemplate;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CmsAnalyticsPage } from "./AnalyticsPage";
|
|
2
2
|
import { CmsArtworkFilter } from "./ArtworkFilter";
|
|
3
|
+
import { CmsArtworkTemplatesPage } from "./ArtworkTemplatesPage";
|
|
3
4
|
import { CmsBatchImportFlow } from "./BatchImportFlow";
|
|
4
5
|
import { CmsBulkEditFlow } from "./BulkEditFlow";
|
|
5
6
|
import { CmsCompletenessScoreFlow } from "./CompletenessScoreFlow";
|
|
@@ -13,7 +14,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
|
|
|
13
14
|
*
|
|
14
15
|
* Each event describes one ActionType
|
|
15
16
|
*/
|
|
16
|
-
export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
|
|
17
|
+
export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsArtworkTemplatesPage | CmsBulkEditFlow | CmsBatchImportFlow | CmsCompletenessScoreFlow | CmsOnboardingFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
|
|
17
18
|
/**
|
|
18
19
|
* List of all CMS actions
|
|
19
20
|
*
|
|
@@ -48,6 +49,10 @@ export declare enum CmsActionType {
|
|
|
48
49
|
* Corresponds to {@link CmsAnalyticsPage}
|
|
49
50
|
*/
|
|
50
51
|
changedTimePeriod = "changedTimePeriod",
|
|
52
|
+
/**
|
|
53
|
+
* Corresponds to {@link CmsArtworkTemplatesPage}
|
|
54
|
+
*/
|
|
55
|
+
clickedArtworkNavigationTab = "clickedArtworkNavigationTab",
|
|
51
56
|
/**
|
|
52
57
|
* Corresponds to {@link CmsAnalytics}
|
|
53
58
|
*/
|
|
@@ -60,6 +65,10 @@ export declare enum CmsActionType {
|
|
|
60
65
|
* Corresponds to {@link CmsArtworkFilter}
|
|
61
66
|
*/
|
|
62
67
|
clickedOnDuplicateArtwork = "clickedonduplicateartwork",
|
|
68
|
+
/**
|
|
69
|
+
* Corresponds to {@link CmsSettingsFlow} and {@link CmsArtworkTemplatesPage}
|
|
70
|
+
*/
|
|
71
|
+
clickedUseTemplate = "clickedUseTemplate",
|
|
63
72
|
/**
|
|
64
73
|
* Corresponds to {@link CmsUploadArtworkFlow}
|
|
65
74
|
*/
|
|
@@ -177,7 +186,7 @@ export declare enum CmsActionType {
|
|
|
177
186
|
*/
|
|
178
187
|
deletedTemplate = "deletedTemplate",
|
|
179
188
|
/**
|
|
180
|
-
* Corresponds to {@link CmsSettingsFlow}
|
|
189
|
+
* Corresponds to {@link CmsSettingsFlow} and {@link CmsArtworkTemplatesPage}
|
|
181
190
|
*/
|
|
182
191
|
deletedArtworkTemplate = "deletedArtworkTemplate",
|
|
183
192
|
/**
|
|
@@ -27,9 +27,11 @@ exports.CmsActionType = CmsActionType;
|
|
|
27
27
|
CmsActionType["batchImportTableContentSummary"] = "batchImportTableContentSummary";
|
|
28
28
|
CmsActionType["bulkEditFailed"] = "bulkEditFailed";
|
|
29
29
|
CmsActionType["changedTimePeriod"] = "changedTimePeriod";
|
|
30
|
+
CmsActionType["clickedArtworkNavigationTab"] = "clickedArtworkNavigationTab";
|
|
30
31
|
CmsActionType["clickedGraphCTA"] = "clickedGraphCTA";
|
|
31
32
|
CmsActionType["clickedMostViewed"] = "clickedMostViewed";
|
|
32
33
|
CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
|
|
34
|
+
CmsActionType["clickedUseTemplate"] = "clickedUseTemplate";
|
|
33
35
|
CmsActionType["createdArtwork"] = "created artwork";
|
|
34
36
|
CmsActionType["createdArtworkFromTemplate"] = "createdArtworkFromTemplate";
|
|
35
37
|
CmsActionType["csvImportError"] = "csvImportError";
|
|
@@ -15,6 +15,7 @@ export declare enum CmsContextModule {
|
|
|
15
15
|
artworkFilterFilterArtworks = "Artworks - filter artworks",
|
|
16
16
|
artworkFilterSearch = "Artworks - search",
|
|
17
17
|
artworkFilterQuickEdit = "Artworks - quick edit",
|
|
18
|
+
artworkTemplates = "Artworks - templates",
|
|
18
19
|
batchImportFlow = "batchImportFlow",
|
|
19
20
|
bulkEditFlow = "Artworks - bulk edit",
|
|
20
21
|
completenessScore = "Artworks - completeness score",
|
|
@@ -25,6 +25,7 @@ exports.CmsContextModule = CmsContextModule;
|
|
|
25
25
|
CmsContextModule["artworkFilterFilterArtworks"] = "Artworks - filter artworks";
|
|
26
26
|
CmsContextModule["artworkFilterSearch"] = "Artworks - search";
|
|
27
27
|
CmsContextModule["artworkFilterQuickEdit"] = "Artworks - quick edit";
|
|
28
|
+
CmsContextModule["artworkTemplates"] = "Artworks - templates";
|
|
28
29
|
CmsContextModule["batchImportFlow"] = "batchImportFlow";
|
|
29
30
|
CmsContextModule["bulkEditFlow"] = "Artworks - bulk edit";
|
|
30
31
|
CmsContextModule["completenessScore"] = "Artworks - completeness score";
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
6
|
export declare enum CmsOwnerType {
|
|
7
|
+
artwork = "artwork",
|
|
7
8
|
analytics = "analytics",
|
|
8
9
|
bulkEdit = "bulkEdit",
|
|
9
10
|
batchImport = "batchImport",
|
|
10
|
-
batchImportArtistMatching = "batchImportArtistMatching"
|
|
11
|
+
batchImportArtistMatching = "batchImportArtistMatching",
|
|
12
|
+
settings = "settings"
|
|
11
13
|
}
|
|
@@ -14,8 +14,10 @@ var CmsOwnerType;
|
|
|
14
14
|
exports.CmsOwnerType = CmsOwnerType;
|
|
15
15
|
|
|
16
16
|
(function (CmsOwnerType) {
|
|
17
|
+
CmsOwnerType["artwork"] = "artwork";
|
|
17
18
|
CmsOwnerType["analytics"] = "analytics";
|
|
18
19
|
CmsOwnerType["bulkEdit"] = "bulkEdit";
|
|
19
20
|
CmsOwnerType["batchImport"] = "batchImport";
|
|
20
21
|
CmsOwnerType["batchImportArtistMatching"] = "batchImportArtistMatching";
|
|
22
|
+
CmsOwnerType["settings"] = "settings";
|
|
21
23
|
})(CmsOwnerType || (exports.CmsOwnerType = CmsOwnerType = {}));
|
|
@@ -230,7 +230,7 @@ export interface ClickedAuctionGroup extends ClickedEntityGroup {
|
|
|
230
230
|
signal_bid_count?: number;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* A user clicks an auction result on the artist or auction result page
|
|
233
|
+
* A user clicks an auction result on the artist or auction result page. Leads to price database for artist empty states.
|
|
234
234
|
*
|
|
235
235
|
* This schema describes events sent to Segment from [[clickedEntityGroup]]
|
|
236
236
|
*
|
|
@@ -242,8 +242,8 @@ export interface ClickedAuctionGroup extends ClickedEntityGroup {
|
|
|
242
242
|
* context_page_owner_type: "artist" | "auctionResult",
|
|
243
243
|
* context_page_owner_id: "4e9743d70307800001001236",
|
|
244
244
|
* context_page_owner_slug?: "paul-jenkins" | null,
|
|
245
|
-
* destination_page_owner_type: "auctionResult",
|
|
246
|
-
* destination_page_owner_id
|
|
245
|
+
* destination_page_owner_type: "auctionResult" | "priceDatabase",
|
|
246
|
+
* destination_page_owner_id?: "1220512",
|
|
247
247
|
* type: "thumbnail" | "viewAll" | "emptyState"
|
|
248
248
|
* expanded?: true | false | null
|
|
249
249
|
* }
|