@artsy/cohesion 4.44.0 → 4.47.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 +43 -0
- package/dist/Schema/Events/Auction.d.ts +154 -0
- package/dist/Schema/Events/Click.d.ts +112 -0
- package/dist/Schema/Events/Conversations.d.ts +1 -1
- package/dist/Schema/Events/Impression.d.ts +10 -0
- package/dist/Schema/Events/Impression.js +1 -0
- package/dist/Schema/Events/Tap.d.ts +2 -0
- package/dist/Schema/Events/index.d.ts +31 -3
- package/dist/Schema/Events/index.js +7 -0
- package/dist/Schema/Values/ContextModule.d.ts +4 -1
- package/dist/Schema/Values/ContextModule.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
# v4.47.0 (Mon May 16 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: adds schema for article events [#318](https://github.com/artsy/cohesion/pull/318) ([@dzucconi](https://github.com/dzucconi))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Damon ([@dzucconi](https://github.com/dzucconi))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.46.0 (Tue May 10 2022)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- [NX-3133] Adding impulse id to buy now tap [#327](https://github.com/artsy/cohesion/pull/327) ([@daytavares](https://github.com/daytavares))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Dayane Tavares ([@daytavares](https://github.com/daytavares))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v4.45.0 (Mon May 02 2022)
|
|
26
|
+
|
|
27
|
+
#### 🚀 Enhancement
|
|
28
|
+
|
|
29
|
+
- Adds auctionPageView and documentation [#315](https://github.com/artsy/cohesion/pull/315) ([@abhitip](https://github.com/abhitip))
|
|
30
|
+
|
|
31
|
+
#### 🏠 Internal
|
|
32
|
+
|
|
33
|
+
- chore(deps): update dep typescript from 4.6.3 to v4.6.4 [#326](https://github.com/artsy/cohesion/pull/326) ([@renovate-bot](https://github.com/renovate-bot))
|
|
34
|
+
- chore(deps): update yarn orb from 6.1.0 to v6.2.0 [#324](https://github.com/artsy/cohesion/pull/324) ([@renovate-bot](https://github.com/renovate-bot))
|
|
35
|
+
- chore(deps): update auto orb from 2.0.0 to v2.1.0 [#323](https://github.com/artsy/cohesion/pull/323) ([@renovate-bot](https://github.com/renovate-bot))
|
|
36
|
+
|
|
37
|
+
#### Authors: 2
|
|
38
|
+
|
|
39
|
+
- Abhiti Prabahar ([@abhitip](https://github.com/abhitip))
|
|
40
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
1
44
|
# v4.44.0 (Mon Apr 25 2022)
|
|
2
45
|
|
|
3
46
|
#### 🚀 Enhancement
|
|
@@ -5,6 +5,43 @@
|
|
|
5
5
|
import { ContextModule } from "../Values/ContextModule";
|
|
6
6
|
import { OwnerType } from "../Values/OwnerType";
|
|
7
7
|
import { ActionType } from ".";
|
|
8
|
+
/**
|
|
9
|
+
* A user viewed an auction page. This is a track event that fires in addition to the pageview event for marketing tool purposes.
|
|
10
|
+
*
|
|
11
|
+
* This schema describes events sent to Segment from [[auctionPageView]]
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```
|
|
15
|
+
* {
|
|
16
|
+
* action: "auctionPageView",
|
|
17
|
+
* auction_slug: "impact-project-healthy-minds",
|
|
18
|
+
* sale_id: "622ba9ec812d93000bc8e95d",
|
|
19
|
+
* user_id: "5bd8b675776bd6002c86526c"
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface AuctionPageView {
|
|
24
|
+
action: ActionType.auctionPageView;
|
|
25
|
+
auction_slug: string;
|
|
26
|
+
sale_id: string;
|
|
27
|
+
user_id: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A user viewed a bid page. This is a track event that fires in addition to the pageview event for marketing tool purposes.
|
|
31
|
+
*
|
|
32
|
+
* This schema describes events sent to Segment from [[bidPageView]]
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```
|
|
36
|
+
* {
|
|
37
|
+
* action: "bidPageView",
|
|
38
|
+
* artwork_slug: "hank-willis-thomas-love-over-rules-15"
|
|
39
|
+
* auction_slug: "impact-project-healthy-minds",
|
|
40
|
+
* sale_id: "622ba9ec812d93000bc8e95d",
|
|
41
|
+
* user_id: "5bd8b675776bd6002c86526c"
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
8
45
|
export interface BidPageView {
|
|
9
46
|
action: ActionType.bidPageView;
|
|
10
47
|
artwork_slug: string;
|
|
@@ -12,12 +49,43 @@ export interface BidPageView {
|
|
|
12
49
|
sale_id: string;
|
|
13
50
|
user_id: string;
|
|
14
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* A user clicked on one of their active bids.
|
|
54
|
+
*
|
|
55
|
+
* This schema describes events sent to Segment from [[clickedActiveBid]]
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```
|
|
59
|
+
* {
|
|
60
|
+
* action: "clickedActiveBid",
|
|
61
|
+
* artwork_slug: "hank-willis-thomas-love-over-rules-15"
|
|
62
|
+
* auction_slug: "impact-project-healthy-minds",
|
|
63
|
+
* user_id: "5bd8b675776bd6002c86526c"
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
15
67
|
export interface ClickedActiveBid {
|
|
16
68
|
action: ActionType.clickedActiveBid;
|
|
17
69
|
artwork_slug: string;
|
|
18
70
|
auction_slug: string;
|
|
19
71
|
user_id: string;
|
|
20
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* A user clicks to register to bid.
|
|
75
|
+
*
|
|
76
|
+
* This schema describes events sent to Segment from [[clickedRegisterToBid]]
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```
|
|
80
|
+
* {
|
|
81
|
+
* action: "clickedRegisterToBid",
|
|
82
|
+
* context_module: "auctionHome",
|
|
83
|
+
* context_owner_id: "622ba9ec812d93000bc8e95d",
|
|
84
|
+
* context_owner_slug: "impact-project-healthy-minds",
|
|
85
|
+
* context_owner_type: "auction"
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
21
89
|
export interface ClickedRegisterToBid {
|
|
22
90
|
action: ActionType.clickedRegisterToBid;
|
|
23
91
|
context_module: ContextModule.auctionHome;
|
|
@@ -25,30 +93,116 @@ export interface ClickedRegisterToBid {
|
|
|
25
93
|
context_owner_slug: string;
|
|
26
94
|
context_owner_type: OwnerType.auction;
|
|
27
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* A user confirms their bid.
|
|
98
|
+
*
|
|
99
|
+
* This schema describes events sent to Segment from [[confirmBid]]
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```
|
|
103
|
+
* {
|
|
104
|
+
* action: "confirmBid",
|
|
105
|
+
* bidder_id: "5bd8b675776bd6002c86526c",
|
|
106
|
+
* bidder_position_id: "622ba9ec812d93000bc8e95d"
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
28
110
|
export interface ConfirmBid {
|
|
29
111
|
action: ActionType.confirmBid;
|
|
30
112
|
bidder_id: string;
|
|
31
113
|
bidder_position_id: string;
|
|
32
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* A user views the confirm registration page. This is a track event that fires in addition to the pageview event for marketing tool purposes.
|
|
117
|
+
*
|
|
118
|
+
* This schema describes events sent to Segment from [[confirmRegistrationPageview]]
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```
|
|
122
|
+
* {
|
|
123
|
+
* action: "confirmBid",
|
|
124
|
+
* context_module: "auctionHome"
|
|
125
|
+
* }
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
33
128
|
export interface ConfirmRegistrationPageview {
|
|
34
129
|
action: ActionType.confirmRegistrationPageview;
|
|
35
130
|
context_module: ContextModule.auctionHome;
|
|
36
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* A user enters a live auction.
|
|
134
|
+
*
|
|
135
|
+
* This schema describes events sent to Segment from [[enterLiveAuction]]
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```
|
|
139
|
+
* {
|
|
140
|
+
* action: "enterLiveAuction",
|
|
141
|
+
* context_module: "auction_home",
|
|
142
|
+
* destination_path: "/auction/impact-project-healthy-minds",
|
|
143
|
+
* subject: "Enter Live Auction"
|
|
144
|
+
* }
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
37
147
|
export interface EnterLiveAuction {
|
|
38
148
|
action: ActionType.enterLiveAuction;
|
|
39
149
|
context_module: ContextModule.auctionHome;
|
|
40
150
|
destination_path: string;
|
|
41
151
|
subject: string;
|
|
42
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* A user selects their max bid.
|
|
155
|
+
*
|
|
156
|
+
* This schema describes events sent to Segment from [[maxBidSelected]]
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```
|
|
160
|
+
* {
|
|
161
|
+
* action: "maxBidSelected",
|
|
162
|
+
* bidder_id: "5bd8b675776bd6002c86526c",
|
|
163
|
+
* selected_max_bid_minor: 100
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
43
167
|
export interface MaxBidSelected {
|
|
44
168
|
action: ActionType.maxBidSelected;
|
|
45
169
|
bidder_id: string;
|
|
46
170
|
selected_max_bid_minor: number;
|
|
47
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* A user views the auction registration page. This is a track event that fires in addition to the pageview event for marketing tool purposes.
|
|
174
|
+
*
|
|
175
|
+
* This schema describes events sent to Segment from [[registrationPageView]]
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```
|
|
179
|
+
* {
|
|
180
|
+
* action: "registrationPageView",
|
|
181
|
+
* context_module: "auctionHome"
|
|
182
|
+
* }
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
48
185
|
export interface RegistrationPageView {
|
|
49
186
|
action: ActionType.registrationPageView;
|
|
50
187
|
context_module: ContextModule.auctionHome;
|
|
51
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* A user submits their auction registration.
|
|
191
|
+
*
|
|
192
|
+
* This schema describes events sent to Segment from [[registrationSubmitted]]
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```
|
|
196
|
+
* {
|
|
197
|
+
* action: "registrationSubmitted",
|
|
198
|
+
* auction_slug: "impact-project-healthy-minds",
|
|
199
|
+
* auction_state: "live",
|
|
200
|
+
* bidder_id: "5bd8b675776bd6002c86526c",
|
|
201
|
+
* sale_id: "622ba9ec812d93000bc8e95d",
|
|
202
|
+
* user_id: "5bd8b675776bd6002c86526c"
|
|
203
|
+
* }
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
52
206
|
export interface RegistrationSubmitted {
|
|
53
207
|
action: ActionType.registrationSubmitted;
|
|
54
208
|
auction_slug: string;
|
|
@@ -1030,3 +1030,115 @@ export interface ClickedCreateAlert {
|
|
|
1030
1030
|
context_page_owner_id?: string;
|
|
1031
1031
|
context_page_owner_slug?: string;
|
|
1032
1032
|
}
|
|
1033
|
+
/**
|
|
1034
|
+
* A user clicks the external news source of an article
|
|
1035
|
+
*
|
|
1036
|
+
* This schema describes events sent to Segment from [[clickedExternalNewsSource]]
|
|
1037
|
+
*
|
|
1038
|
+
* @example
|
|
1039
|
+
* ```
|
|
1040
|
+
* {
|
|
1041
|
+
* action: "clickedExternalNewsSource",
|
|
1042
|
+
* context_page_owner_type: "article",
|
|
1043
|
+
* context_page_owner_id: "62389c0a0b01c80022eb82a1",
|
|
1044
|
+
* context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
|
|
1045
|
+
* }
|
|
1046
|
+
* ```
|
|
1047
|
+
*/
|
|
1048
|
+
export interface ClickedExternalNewsSource {
|
|
1049
|
+
action: ActionType.clickedExternalNewsSource;
|
|
1050
|
+
context_owner_id: string;
|
|
1051
|
+
context_owner_slug: string;
|
|
1052
|
+
context_owner_type: PageOwnerType;
|
|
1053
|
+
destination_path: string;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* A user clicks on the sponsor of an article
|
|
1057
|
+
*
|
|
1058
|
+
* This schema describes events sent to Segment from [[clickedSponsorLink]]
|
|
1059
|
+
*
|
|
1060
|
+
* @example
|
|
1061
|
+
* ```
|
|
1062
|
+
* {
|
|
1063
|
+
* action: "clickedSponsorLink",
|
|
1064
|
+
* context_page_owner_type: "article",
|
|
1065
|
+
* context_page_owner_id: "62389c0a0b01c80022eb82a1",
|
|
1066
|
+
* context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
|
|
1067
|
+
* destination_path: "https://www.bmw.com/",
|
|
1068
|
+
* }
|
|
1069
|
+
* ```
|
|
1070
|
+
*/
|
|
1071
|
+
export interface ClickedSponsorLink {
|
|
1072
|
+
action: ActionType.clickedSponsorLink;
|
|
1073
|
+
context_owner_id: string;
|
|
1074
|
+
context_owner_slug: string;
|
|
1075
|
+
context_owner_type: PageOwnerType;
|
|
1076
|
+
destination_path: string;
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* A user clicks to share an article
|
|
1080
|
+
*
|
|
1081
|
+
* This schema describes events sent to Segment from [[clickedArticleShare]]
|
|
1082
|
+
*
|
|
1083
|
+
* @example
|
|
1084
|
+
* ```
|
|
1085
|
+
* {
|
|
1086
|
+
* action: "clickedArticleShare",
|
|
1087
|
+
* context_page_owner_type: "article",
|
|
1088
|
+
* context_page_owner_id: "62389c0a0b01c80022eb82a1",
|
|
1089
|
+
* context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
|
|
1090
|
+
* }
|
|
1091
|
+
* ```
|
|
1092
|
+
*/
|
|
1093
|
+
export interface ClickedArticleShare {
|
|
1094
|
+
action: ActionType.clickedArticleShare;
|
|
1095
|
+
context_owner_id: string;
|
|
1096
|
+
context_owner_slug: string;
|
|
1097
|
+
context_owner_type: PageOwnerType;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* A user clicks to play a video
|
|
1101
|
+
*
|
|
1102
|
+
* This schema describes events sent to Segment from [[clickedPlayVideo]]
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* ```
|
|
1106
|
+
* {
|
|
1107
|
+
* action: "clickedPlayVideo",
|
|
1108
|
+
* context_page_owner_type: "article",
|
|
1109
|
+
* context_page_owner_id: "62389c0a0b01c80022eb82a1",
|
|
1110
|
+
* context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
|
|
1111
|
+
* }
|
|
1112
|
+
* ```
|
|
1113
|
+
*/
|
|
1114
|
+
export interface ClickedPlayVideo {
|
|
1115
|
+
action: ActionType.clickedPlayVideo;
|
|
1116
|
+
context_owner_id: string;
|
|
1117
|
+
context_owner_slug: string;
|
|
1118
|
+
context_owner_type: PageOwnerType;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* A user an entity within a tooltip. `type` will be an artist, gene, or partner.
|
|
1122
|
+
*
|
|
1123
|
+
* This schema describes events sent to Segment from [[clickedTooltip]]
|
|
1124
|
+
*
|
|
1125
|
+
* @example
|
|
1126
|
+
* ```
|
|
1127
|
+
* {
|
|
1128
|
+
* action: "clickedTooltip",
|
|
1129
|
+
* context_page_owner_type: "artist",
|
|
1130
|
+
* context_page_owner_id: "4d8b926a4eb68a1b2c0000ae",
|
|
1131
|
+
* context_page_owner_slug: "damien-hirst",
|
|
1132
|
+
* destination_path: "/artist/damien-hirst",
|
|
1133
|
+
* type: "artist",
|
|
1134
|
+
* }
|
|
1135
|
+
* ```
|
|
1136
|
+
*/
|
|
1137
|
+
export interface ClickedTooltip {
|
|
1138
|
+
action: ActionType.clickedTooltip;
|
|
1139
|
+
context_owner_id: string;
|
|
1140
|
+
context_owner_slug: string;
|
|
1141
|
+
context_owner_type: PageOwnerType;
|
|
1142
|
+
destination_path: string;
|
|
1143
|
+
type: string;
|
|
1144
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContextModule } from "../Values/ContextModule";
|
|
2
|
+
import { OwnerType } from "../Values/OwnerType";
|
|
3
|
+
import { ActionType } from ".";
|
|
4
|
+
export interface Impression {
|
|
5
|
+
action: ActionType.impression;
|
|
6
|
+
context_module: ContextModule;
|
|
7
|
+
context_owner_id: string;
|
|
8
|
+
context_owner_slug: string;
|
|
9
|
+
context_owner_type: OwnerType;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -694,6 +694,7 @@ export interface TappedBid {
|
|
|
694
694
|
* context_owner_type: "Artwork",
|
|
695
695
|
* context_owner_slug: "radna-segal-pearl",
|
|
696
696
|
* context_owner_id: "6164889300d643000db86504",
|
|
697
|
+
* impulse_conversation_id: "198"
|
|
697
698
|
* }
|
|
698
699
|
* ```
|
|
699
700
|
*/
|
|
@@ -702,6 +703,7 @@ export interface TappedBuyNow {
|
|
|
702
703
|
context_owner_type: ScreenOwnerType;
|
|
703
704
|
context_owner_id: string;
|
|
704
705
|
context_owner_slug: string;
|
|
706
|
+
impulse_conversation_id?: string;
|
|
705
707
|
}
|
|
706
708
|
/**
|
|
707
709
|
* A user taps on 'Contact Gallery' on an artwork page
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AddToCalendar } from "./AddToCalendar";
|
|
2
|
-
import { BidPageView, ClickedActiveBid, ClickedRegisterToBid, ConfirmBid, ConfirmRegistrationPageview, EnterLiveAuction, MaxBidSelected, RegistrationPageView, RegistrationSubmitted } from "./Auction";
|
|
2
|
+
import { AuctionPageView, BidPageView, ClickedActiveBid, ClickedRegisterToBid, ConfirmBid, ConfirmRegistrationPageview, EnterLiveAuction, MaxBidSelected, RegistrationPageView, RegistrationSubmitted } from "./Auction";
|
|
3
3
|
import { AuthImpression, CreatedAccount, OnboardingUserInputData, ResetYourPassword, SuccessfullyLoggedIn } from "./Authentication";
|
|
4
|
-
import { ClickedAddNewShippingAddress, ClickedAddWorksToFair, ClickedAppDownload, ClickedArticleGroup, ClickedArtistGroup, ClickedArtistSeriesGroup, ClickedArtworkGroup, ClickedAuctionGroup, ClickedBuyerProtection, ClickedChangePage, ClickedChangePaymentMethod, ClickedChangeShippingAddress, ClickedChangeShippingMethod, ClickedCollectionGroup, ClickedCreateAlert, ClickedDeliveryMethod, ClickedEditArtwork, ClickedExpansionToggle, ClickedFairCard, ClickedFairGroup, ClickedGalleryGroup, ClickedLoadMore, ClickedMainArtworkGrid, ClickedNavigationTab, ClickedOfferOption, ClickedOnArtworkShippingUnitsDropdown, ClickedOnArtworkShippingWeight, ClickedOnFramedMeasurements, ClickedOnFramedMeasurementsDropdown, ClickedOnSubmitOrder, ClickedPartnerCard,
|
|
4
|
+
import { ClickedAddNewShippingAddress, ClickedAddWorksToFair, ClickedAppDownload, ClickedArticleGroup, ClickedArtistGroup, ClickedArtistSeriesGroup, ClickedArtworkGroup, ClickedAuctionGroup, ClickedBuyerProtection, ClickedChangePage, ClickedChangePaymentMethod, ClickedChangeShippingAddress, ClickedChangeShippingMethod, ClickedCollectionGroup, ClickedCreateAlert, ClickedDeliveryMethod, ClickedEditArtwork, ClickedExpansionToggle, ClickedFairCard, ClickedFairGroup, ClickedGalleryGroup, ClickedLoadMore, ClickedMainArtworkGrid, ClickedNavigationTab, ClickedOfferOption, ClickedOnArtworkShippingUnitsDropdown, ClickedOnArtworkShippingWeight, ClickedOnFramedMeasurements, ClickedOnFramedMeasurementsDropdown, ClickedOnSubmitOrder, ClickedPartnerCard, ClickedPaymentDetails, ClickedPaymentMethod, ClickedPromoSpace, ClickedSelectShippingOption, ClickedShippingAddress, ClickedShowGroup, ClickedShowMore, ClickedSnooze, ClickedVerifyIdentity, ClickedViewingRoomCard } from "./Click";
|
|
5
5
|
import { ArtworkDetailsCompleted, ConsignmentSubmitted, SubmitAnotherArtwork, UploadPhotosCompleted, ViewArtworkMyCollection } from "./Consignments";
|
|
6
6
|
import { FocusedOnConversationMessageInput, SentConversationMessage, TappedInboxConversation, TappedMakeOffer, TappedViewOffer } from "./Conversations";
|
|
7
7
|
import { ExperimentViewed } from "./ExperimentViewed";
|
|
@@ -21,7 +21,7 @@ import { ToggledAccordion } from "./UserExperienceInteractions";
|
|
|
21
21
|
*
|
|
22
22
|
* Each event describes one ActionType
|
|
23
23
|
*/
|
|
24
|
-
export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionResultsFilterParamsChanged | AuthImpression | BidPageView | CreatedAccount | ClickedActiveBid | ClickedAddNewShippingAddress | ClickedAddWorksToFair | ClickedAppDownload | ClickedArticleGroup | ClickedArtistGroup | ClickedArtistSeriesGroup | ClickedArtworkGroup | ClickedAuctionGroup | ClickedBuyerProtection | ClickedChangePage | ClickedChangePaymentMethod | ClickedChangeShippingAddress | ClickedChangeShippingMethod | ClickedCollectionGroup | ClickedCreateAlert | ClickedDeliveryMethod | ClickedEditArtwork | ClickedExpansionToggle | ClickedFairCard | ClickedFairGroup | ClickedGalleryGroup | ClickedLoadMore | ClickedMainArtworkGrid | ClickedNavigationTab | ClickedOfferOption | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPaymentMethod | ClickedPaymentDetails | ClickedPromoSpace | ClickedRegisterToBid | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConfirmBid | ConfirmRegistrationPageview | ConsignmentArtistFailed | ConsignmentSubmitted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | EnterLiveAuction | ExperimentViewed | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | MaxBidSelected | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | RegistrationPageView | RegistrationSubmitted | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | SubmitAnotherArtwork | SuccessfullyLoggedIn | TappedArticleGroup | TappedArtistGroup | TappedArtistSeriesGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionResultGroup | TappedBid | TappedBuyNow | TappedCollectedArtwork | TappedCollectedArtworkImages | TappedCollectionGroup | TappedConsign | TappedContactGallery | TappedCreateAlert | TappedExploreGroup | TappedFairCard | TappedFairGroup | TappedInboxConversation | TappedInfoBubble | TappedLink | TappedNavigationTab | TappedMainArtworkGrid | TappedMakeOffer | TappedPartnerCard | TappedPromoSpace | TappedRequestPriceEstimate | TappedSell | TappedSellArtwork | TappedShowMore | TappedLearnMore | TappedSkip | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledAccordion | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
|
|
24
|
+
export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionPageView | AuctionResultsFilterParamsChanged | AuthImpression | BidPageView | CreatedAccount | ClickedActiveBid | ClickedAddNewShippingAddress | ClickedAddWorksToFair | ClickedAppDownload | ClickedArticleGroup | ClickedArtistGroup | ClickedArtistSeriesGroup | ClickedArtworkGroup | ClickedAuctionGroup | ClickedBuyerProtection | ClickedChangePage | ClickedChangePaymentMethod | ClickedChangeShippingAddress | ClickedChangeShippingMethod | ClickedCollectionGroup | ClickedCreateAlert | ClickedDeliveryMethod | ClickedEditArtwork | ClickedExpansionToggle | ClickedFairCard | ClickedFairGroup | ClickedGalleryGroup | ClickedLoadMore | ClickedMainArtworkGrid | ClickedNavigationTab | ClickedOfferOption | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPaymentMethod | ClickedPaymentDetails | ClickedPromoSpace | ClickedRegisterToBid | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConfirmBid | ConfirmRegistrationPageview | ConsignmentArtistFailed | ConsignmentSubmitted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | EnterLiveAuction | ExperimentViewed | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | MaxBidSelected | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | RegistrationPageView | RegistrationSubmitted | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | SubmitAnotherArtwork | SuccessfullyLoggedIn | TappedArticleGroup | TappedArtistGroup | TappedArtistSeriesGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionResultGroup | TappedBid | TappedBuyNow | TappedCollectedArtwork | TappedCollectedArtworkImages | TappedCollectionGroup | TappedConsign | TappedContactGallery | TappedCreateAlert | TappedExploreGroup | TappedFairCard | TappedFairGroup | TappedInboxConversation | TappedInfoBubble | TappedLink | TappedNavigationTab | TappedMainArtworkGrid | TappedMakeOffer | TappedPartnerCard | TappedPromoSpace | TappedRequestPriceEstimate | TappedSell | TappedSellArtwork | TappedShowMore | TappedLearnMore | TappedSkip | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledAccordion | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
|
|
25
25
|
/**
|
|
26
26
|
* The top-level actions an Event describes.
|
|
27
27
|
*
|
|
@@ -44,6 +44,10 @@ export declare enum ActionType {
|
|
|
44
44
|
* Corresponds to {@link ArtworkDetailsCompleted}
|
|
45
45
|
*/
|
|
46
46
|
artworkDetailsCompleted = "artworkDetailsCompleted",
|
|
47
|
+
/**
|
|
48
|
+
* Corresponds to {@link AuctionPageView}
|
|
49
|
+
*/
|
|
50
|
+
auctionPageView = "auctionPageView",
|
|
47
51
|
/**
|
|
48
52
|
* Corresponds to {@link AuctionResultsFilterParamsChanged}
|
|
49
53
|
*/
|
|
@@ -72,6 +76,10 @@ export declare enum ActionType {
|
|
|
72
76
|
* Corresponds to {@link ClickedArticleGroup}
|
|
73
77
|
*/
|
|
74
78
|
clickedArticleGroup = "clickedArticleGroup",
|
|
79
|
+
/**
|
|
80
|
+
* Corresponds to {@link ClickedArticleShare}
|
|
81
|
+
*/
|
|
82
|
+
clickedArticleShare = "clickedArticleShare",
|
|
75
83
|
/**
|
|
76
84
|
* Corresponds to {@link ClickedArtistGroup}
|
|
77
85
|
*/
|
|
@@ -128,6 +136,10 @@ export declare enum ActionType {
|
|
|
128
136
|
* Corresponds to {@link ClickedExpansionToggle}
|
|
129
137
|
*/
|
|
130
138
|
clickedExpansionToggle = "clickedExpansionToggle",
|
|
139
|
+
/**
|
|
140
|
+
* Corresponds to {@link ClickedExternalNewsSource}
|
|
141
|
+
*/
|
|
142
|
+
clickedExternalNewsSource = "clickedExternalNewsSource",
|
|
131
143
|
/**
|
|
132
144
|
* Corresponds to {@link ClickedFairCard}
|
|
133
145
|
*/
|
|
@@ -185,6 +197,10 @@ export declare enum ActionType {
|
|
|
185
197
|
* Corresponds to {@link ClickedPartnerCard}
|
|
186
198
|
*/
|
|
187
199
|
clickedPartnerCard = "clickedPartnerCard",
|
|
200
|
+
/**
|
|
201
|
+
* Corresponds to {@link ClickedPlayVideo}
|
|
202
|
+
*/
|
|
203
|
+
clickedPlayVideo = "clickedPlayVideo",
|
|
188
204
|
/**
|
|
189
205
|
* Corresponds to {@link ClickedPromoSpace}
|
|
190
206
|
*/
|
|
@@ -217,6 +233,14 @@ export declare enum ActionType {
|
|
|
217
233
|
* Corresponds to {@link ClickedShowMore}
|
|
218
234
|
*/
|
|
219
235
|
clickedShowMore = "clickedShowMore",
|
|
236
|
+
/**
|
|
237
|
+
* Corresponds to {@link ClickedSponsorLink}
|
|
238
|
+
*/
|
|
239
|
+
clickedSponsorLink = "clickedSponsorLink",
|
|
240
|
+
/**
|
|
241
|
+
* Corresponds to {@link ClickedTooltip}
|
|
242
|
+
*/
|
|
243
|
+
clickedTooltip = "clickedTooltip",
|
|
220
244
|
/**
|
|
221
245
|
* Corresponds to {@link ClickedVerifyIdentiity}
|
|
222
246
|
*/
|
|
@@ -305,6 +329,10 @@ export declare enum ActionType {
|
|
|
305
329
|
* Corresponds to {@link FollowedPartner}
|
|
306
330
|
*/
|
|
307
331
|
followedPartner = "followedPartner",
|
|
332
|
+
/**
|
|
333
|
+
* Corresponds to {@link Impression}
|
|
334
|
+
*/
|
|
335
|
+
impression = "impression",
|
|
308
336
|
/**
|
|
309
337
|
* Corresponds to {@link MaxBidSelected}
|
|
310
338
|
*/
|
|
@@ -24,6 +24,7 @@ exports.ActionType = ActionType;
|
|
|
24
24
|
ActionType["addToCalendar"] = "addToCalendar";
|
|
25
25
|
ActionType["addCollectedArtwork"] = "addCollectedArtwork";
|
|
26
26
|
ActionType["artworkDetailsCompleted"] = "artworkDetailsCompleted";
|
|
27
|
+
ActionType["auctionPageView"] = "auctionPageView";
|
|
27
28
|
ActionType["auctionResultsFilterParamsChanged"] = "auctionResultsFilterParamsChanged";
|
|
28
29
|
ActionType["bidPageView"] = "bidPageView";
|
|
29
30
|
ActionType["clickedActiveBid"] = "clickedActiveBid";
|
|
@@ -31,6 +32,7 @@ exports.ActionType = ActionType;
|
|
|
31
32
|
ActionType["clickedAddWorksToFair"] = "clickedAddWorksToFair";
|
|
32
33
|
ActionType["clickedAppDownload"] = "clickedAppDownload";
|
|
33
34
|
ActionType["clickedArticleGroup"] = "clickedArticleGroup";
|
|
35
|
+
ActionType["clickedArticleShare"] = "clickedArticleShare";
|
|
34
36
|
ActionType["clickedArtistGroup"] = "clickedArtistGroup";
|
|
35
37
|
ActionType["clickedArtistSeriesGroup"] = "clickedArtistSeriesGroup";
|
|
36
38
|
ActionType["clickedArtworkGroup"] = "clickedArtworkGroup";
|
|
@@ -45,6 +47,7 @@ exports.ActionType = ActionType;
|
|
|
45
47
|
ActionType["clickedDeliveryMethod"] = "clickedDeliveryMethod";
|
|
46
48
|
ActionType["clickedEditArtwork"] = "clickedEditArtwork";
|
|
47
49
|
ActionType["clickedExpansionToggle"] = "clickedExpansionToggle";
|
|
50
|
+
ActionType["clickedExternalNewsSource"] = "clickedExternalNewsSource";
|
|
48
51
|
ActionType["clickedFairCard"] = "clickedFairCard";
|
|
49
52
|
ActionType["clickedFairGroup"] = "clickedFairGroup";
|
|
50
53
|
ActionType["clickedGalleryGroup"] = "clickedGalleryGroup";
|
|
@@ -59,6 +62,7 @@ exports.ActionType = ActionType;
|
|
|
59
62
|
ActionType["clickedOnSubmitOrder"] = "clickedOnSubmitOrder";
|
|
60
63
|
ActionType["clickedSnooze"] = "clickedSnooze";
|
|
61
64
|
ActionType["clickedPartnerCard"] = "clickedPartnerCard";
|
|
65
|
+
ActionType["clickedPlayVideo"] = "clickedPlayVideo";
|
|
62
66
|
ActionType["clickedPaymentMethod"] = "clickedPaymentMethod";
|
|
63
67
|
ActionType["clickedPaymentDetails"] = "clickedPaymentDetails";
|
|
64
68
|
ActionType["clickedPromoSpace"] = "clickedPromoSpace";
|
|
@@ -67,6 +71,8 @@ exports.ActionType = ActionType;
|
|
|
67
71
|
ActionType["clickedShippingAddress"] = "clickedShippingAddress";
|
|
68
72
|
ActionType["clickedShowGroup"] = "clickedShowGroup";
|
|
69
73
|
ActionType["clickedShowMore"] = "clickedShowMore";
|
|
74
|
+
ActionType["clickedSponsorLink"] = "clickedSponsorLink";
|
|
75
|
+
ActionType["clickedTooltip"] = "clickedTooltip";
|
|
70
76
|
ActionType["clickedVerifyIdentity"] = "clickedVerifyIdentity";
|
|
71
77
|
ActionType["clickedViewingRoomCard"] = "clickedViewingRoomCard";
|
|
72
78
|
ActionType["commercialFilterParamsChanged"] = "commercialFilterParamsChanged";
|
|
@@ -89,6 +95,7 @@ exports.ActionType = ActionType;
|
|
|
89
95
|
ActionType["followedFair"] = "followedFair";
|
|
90
96
|
ActionType["followedGene"] = "followedGene";
|
|
91
97
|
ActionType["followedPartner"] = "followedPartner";
|
|
98
|
+
ActionType["impression"] = "impression";
|
|
92
99
|
ActionType["maxBidSelected"] = "maxBidSelected";
|
|
93
100
|
ActionType["onboardingUserInputData"] = "onboardingUserInputData";
|
|
94
101
|
ActionType["priceDatabaseFilterParamsChanged"] = "priceDatabaseFilterParamsChanged";
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
export declare enum ContextModule {
|
|
8
8
|
aboutTheWork = "aboutTheWork",
|
|
9
9
|
aboutThisAuction = "aboutThisAuction",
|
|
10
|
+
adServer = "adServer",
|
|
10
11
|
articleArtist = "articleArtist",
|
|
11
12
|
articleRail = "articleRail",
|
|
12
13
|
articles = "articles",
|
|
@@ -165,7 +166,9 @@ export declare enum ContextModule {
|
|
|
165
166
|
worksByArtistsYouFollowRail = "worksByArtistsYouFollowRail",
|
|
166
167
|
worksByPopularArtistsRail = "worksByPopularArtistsRail",
|
|
167
168
|
worksForSaleRail = "worksForSaleRail",
|
|
168
|
-
yourActiveBids = "yourActiveBids"
|
|
169
|
+
yourActiveBids = "yourActiveBids",
|
|
170
|
+
conversationMakeOfferConfirmArtwork = "conversationMakeOfferConfirmArtwork",
|
|
171
|
+
conversationBuyNowConfirmArtwork = "conversationBuyNowConfirmArtwork"
|
|
169
172
|
}
|
|
170
173
|
/**
|
|
171
174
|
* Limited ContextModules available for web authentication events
|
|
@@ -21,6 +21,7 @@ exports.ContextModule = ContextModule;
|
|
|
21
21
|
(function (ContextModule) {
|
|
22
22
|
ContextModule["aboutTheWork"] = "aboutTheWork";
|
|
23
23
|
ContextModule["aboutThisAuction"] = "aboutThisAuction";
|
|
24
|
+
ContextModule["adServer"] = "adServer";
|
|
24
25
|
ContextModule["articleArtist"] = "articleArtist";
|
|
25
26
|
ContextModule["articleRail"] = "articleRail";
|
|
26
27
|
ContextModule["articles"] = "articles";
|
|
@@ -180,4 +181,6 @@ exports.ContextModule = ContextModule;
|
|
|
180
181
|
ContextModule["worksByPopularArtistsRail"] = "worksByPopularArtistsRail";
|
|
181
182
|
ContextModule["worksForSaleRail"] = "worksForSaleRail";
|
|
182
183
|
ContextModule["yourActiveBids"] = "yourActiveBids";
|
|
184
|
+
ContextModule["conversationMakeOfferConfirmArtwork"] = "conversationMakeOfferConfirmArtwork";
|
|
185
|
+
ContextModule["conversationBuyNowConfirmArtwork"] = "conversationBuyNowConfirmArtwork";
|
|
183
186
|
})(ContextModule || (exports.ContextModule = ContextModule = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/cohesion",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.47.0",
|
|
4
4
|
"description": "Analytics schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lint-staged": "10.1.7",
|
|
48
48
|
"prettier": "2.0.5",
|
|
49
49
|
"typedoc": "0.17.7",
|
|
50
|
-
"typescript": "4.6.
|
|
50
|
+
"typescript": "4.6.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"core-js": "3"
|