@artsy/cohesion 4.88.0 → 4.90.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 +29 -0
- package/dist/Schema/Events/MyCollection.d.ts +84 -0
- package/dist/Schema/Events/index.d.ts +16 -0
- package/dist/Schema/Events/index.js +4 -0
- package/dist/Schema/Values/ContextModule.d.ts +1 -0
- package/dist/Schema/Values/ContextModule.js +1 -0
- package/dist/Schema/Values/OwnerType.d.ts +1 -0
- package/dist/Schema/Values/OwnerType.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
# v4.90.0 (Fri Jan 06 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- fix: Adjust new My Collection event owner types [#387](https://github.com/artsy/cohesion/pull/387) ([@olerichter00](https://github.com/olerichter00))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ole ([@olerichter00](https://github.com/olerichter00))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.89.0 (Fri Jan 06 2023)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat: Add events for new MyC web uploading flow [#386](https://github.com/artsy/cohesion/pull/386) ([@olerichter00](https://github.com/olerichter00))
|
|
18
|
+
|
|
19
|
+
#### 🏠 Internal
|
|
20
|
+
|
|
21
|
+
- Bump json5 from 2.1.3 to 2.2.3 [#385](https://github.com/artsy/cohesion/pull/385) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
22
|
+
|
|
23
|
+
#### Authors: 2
|
|
24
|
+
|
|
25
|
+
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
|
26
|
+
- Ole ([@olerichter00](https://github.com/olerichter00))
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
1
30
|
# v4.88.0 (Tue Jan 03 2023)
|
|
2
31
|
|
|
3
32
|
#### 🚀 Enhancement
|
|
@@ -181,6 +181,90 @@ export interface TappedMyCollectionAddArtworkArtist {
|
|
|
181
181
|
context_screen_owner_id?: string;
|
|
182
182
|
context_screen_owner_slug?: string;
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Users clicks "Add their name" on the artist selection page
|
|
186
|
+
*
|
|
187
|
+
* This schema describes events sent to Segment from [[addNewArtistName]]
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```
|
|
191
|
+
* {
|
|
192
|
+
* action: "addNewArtistName",
|
|
193
|
+
* context_module: "myCollection",
|
|
194
|
+
* context_screen_owner_type: "myCollectionUploadingFlow",
|
|
195
|
+
* platform: "web",
|
|
196
|
+
* }
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
export interface MyColectionAddNewArtistName {
|
|
200
|
+
action: ActionType.addNewArtistName;
|
|
201
|
+
context_screen: ContextModule.myCollection;
|
|
202
|
+
context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
|
|
203
|
+
platform: Platform;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Users selects artist from search on the artist selection page
|
|
207
|
+
*
|
|
208
|
+
* This schema describes events sent to Segment from [[selectArtistFromSearch]]
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```
|
|
212
|
+
* {
|
|
213
|
+
* action: "selectArtistFromSearch",
|
|
214
|
+
* context_module: "myCollection",
|
|
215
|
+
* context_screen_owner_type: "myCollectionUploadingFlow",
|
|
216
|
+
* platform: "web",
|
|
217
|
+
* }
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
export interface MyCollectionSelectArtistFromSearch {
|
|
221
|
+
action: ActionType.selectArtistFromSearch;
|
|
222
|
+
context_screen: ContextModule.myCollection;
|
|
223
|
+
context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
|
|
224
|
+
platform: Platform;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Users clicks "Skip" button or "add artwork details" on the "Select an artwork" page
|
|
228
|
+
*
|
|
229
|
+
* This schema describes events sent to Segment from [[addArtworkDetails]]
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* ```
|
|
233
|
+
* {
|
|
234
|
+
* action: "addArtworkDetails",
|
|
235
|
+
* context_module: "myCollection",
|
|
236
|
+
* context_screen_owner_type: "myCollectionUploadingFlow",
|
|
237
|
+
* platform: "web",
|
|
238
|
+
* }
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
export interface MyCollectionAddArtworkDetails {
|
|
242
|
+
action: ActionType.addArtworkDetails;
|
|
243
|
+
context_screen: ContextModule.myCollection;
|
|
244
|
+
context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
|
|
245
|
+
platform: Platform;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Users selects artwork from grid on the "Select an artwork" screen
|
|
249
|
+
*
|
|
250
|
+
* This schema describes events sent to Segment from [[selectArtworkFromGrid]]
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```
|
|
254
|
+
* {
|
|
255
|
+
* action: "selectArtworkFromGrid",
|
|
256
|
+
* context_module: "myCollection",
|
|
257
|
+
* context_screen_owner_type: "myCollectionUploadingFlow",
|
|
258
|
+
* platform: "web",
|
|
259
|
+
* }
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
export interface MyCollectionSelectArtworkFromGrid {
|
|
263
|
+
action: ActionType.selectArtworkFromGrid;
|
|
264
|
+
context_screen: ContextModule.myCollection;
|
|
265
|
+
context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
|
|
266
|
+
platform: Platform;
|
|
267
|
+
}
|
|
184
268
|
/**
|
|
185
269
|
* A user taps on the “request a price estimate” banner
|
|
186
270
|
*
|
|
@@ -36,10 +36,18 @@ export type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsComplete
|
|
|
36
36
|
* Each ActionType corresponds with a table in Redshift.
|
|
37
37
|
*/
|
|
38
38
|
export declare enum ActionType {
|
|
39
|
+
/**
|
|
40
|
+
* Corresponds to {@link AddArtworkDetails}
|
|
41
|
+
*/
|
|
42
|
+
addArtworkDetails = "addArtworkDetails",
|
|
39
43
|
/**
|
|
40
44
|
* Corresponds to {@link AddCollectedArtwork}
|
|
41
45
|
*/
|
|
42
46
|
addCollectedArtwork = "addCollectedArtwork",
|
|
47
|
+
/**
|
|
48
|
+
* Corresponds to {@link AddNewArtistName}
|
|
49
|
+
*/
|
|
50
|
+
addNewArtistName = "addNewArtistName",
|
|
43
51
|
/**
|
|
44
52
|
* Corresponds to {@link AddToCalendar}
|
|
45
53
|
*/
|
|
@@ -460,6 +468,14 @@ export declare enum ActionType {
|
|
|
460
468
|
* Corresponds to {@link SearchedWithNoResults}
|
|
461
469
|
*/
|
|
462
470
|
searchedWithNoResults = "searchedWithNoResults",
|
|
471
|
+
/**
|
|
472
|
+
* Corresponds to {@link SelectArtistFromSearch}
|
|
473
|
+
*/
|
|
474
|
+
selectArtistFromSearch = "selectArtistFromSearch",
|
|
475
|
+
/**
|
|
476
|
+
* Corresponds to {@link selectArtworkFromGrid}
|
|
477
|
+
*/
|
|
478
|
+
selectArtworkFromGrid = "selectArtworkFromGrid",
|
|
463
479
|
/**
|
|
464
480
|
* Corresponds to {@link SelectedArtworkFromReverseImageSearch}
|
|
465
481
|
*/
|
|
@@ -20,7 +20,9 @@ var ActionType;
|
|
|
20
20
|
exports.ActionType = ActionType;
|
|
21
21
|
|
|
22
22
|
(function (ActionType) {
|
|
23
|
+
ActionType["addArtworkDetails"] = "addArtworkDetails";
|
|
23
24
|
ActionType["addCollectedArtwork"] = "addCollectedArtwork";
|
|
25
|
+
ActionType["addNewArtistName"] = "addNewArtistName";
|
|
24
26
|
ActionType["addToCalendar"] = "addToCalendar";
|
|
25
27
|
ActionType["artworkDetailsCompleted"] = "artworkDetailsCompleted";
|
|
26
28
|
ActionType["auctionPageView"] = "auctionPageView";
|
|
@@ -126,6 +128,8 @@ exports.ActionType = ActionType;
|
|
|
126
128
|
ActionType["searchedReverseImageWithNoResults"] = "searchedReverseImageWithNoResults";
|
|
127
129
|
ActionType["searchedReverseImageWithResults"] = "searchedReverseImageWithResults";
|
|
128
130
|
ActionType["searchedWithNoResults"] = "searchedWithNoResults";
|
|
131
|
+
ActionType["selectArtistFromSearch"] = "selectArtistFromSearch";
|
|
132
|
+
ActionType["selectArtworkFromGrid"] = "selectArtworkFromGrid";
|
|
129
133
|
ActionType["selectedArtworkFromReverseImageSearch"] = "selectedArtworkFromReverseImageSearch";
|
|
130
134
|
ActionType["selectedItemFromPriceDatabaseSearch"] = "selectedItemFromPriceDatabaseSearch";
|
|
131
135
|
ActionType["selectedItemFromSearch"] = "selectedItemFromSearch";
|
|
@@ -98,6 +98,7 @@ export declare enum ContextModule {
|
|
|
98
98
|
minimalCTABanner = "minimalCTABanner",
|
|
99
99
|
moreFromThisSeries = "moreFromThisSeries",
|
|
100
100
|
moreSeriesByThisArtist = "moreSeriesByThisArtist",
|
|
101
|
+
myCollection = "myCollection",
|
|
101
102
|
myCollectionArtwork = "myCollectionArtwork",
|
|
102
103
|
myCollectionAddArtworkAddArtist = "myCollectionAddArtworkAddArtist",
|
|
103
104
|
myCollectionArtworkInsights = "myCollectionArtworkInsights",
|
|
@@ -112,6 +112,7 @@ exports.ContextModule = ContextModule;
|
|
|
112
112
|
ContextModule["minimalCTABanner"] = "minimalCTABanner";
|
|
113
113
|
ContextModule["moreFromThisSeries"] = "moreFromThisSeries";
|
|
114
114
|
ContextModule["moreSeriesByThisArtist"] = "moreSeriesByThisArtist";
|
|
115
|
+
ContextModule["myCollection"] = "myCollection";
|
|
115
116
|
ContextModule["myCollectionArtwork"] = "myCollectionArtwork";
|
|
116
117
|
ContextModule["myCollectionAddArtworkAddArtist"] = "myCollectionAddArtworkAddArtist";
|
|
117
118
|
ContextModule["myCollectionArtworkInsights"] = "myCollectionArtworkInsights";
|
|
@@ -43,6 +43,7 @@ export declare enum OwnerType {
|
|
|
43
43
|
inboxConversation = "inboxConversation",
|
|
44
44
|
inboxInquiries = "inboxInquiries",
|
|
45
45
|
myCollection = "myCollection",
|
|
46
|
+
myCollectionUploadingFlow = "myCollectionUploadingFlow",
|
|
46
47
|
myCollectionAddArtworkArtist = "myCollectionAddArtworkArtist",
|
|
47
48
|
myCollectionArtwork = "myCollectionArtwork",
|
|
48
49
|
myCollectionArtworkAbout = "MyCollectionArtworkAbout",
|
|
@@ -61,6 +61,7 @@ exports.OwnerType = OwnerType;
|
|
|
61
61
|
OwnerType["inboxConversation"] = "inboxConversation";
|
|
62
62
|
OwnerType["inboxInquiries"] = "inboxInquiries";
|
|
63
63
|
OwnerType["myCollection"] = "myCollection";
|
|
64
|
+
OwnerType["myCollectionUploadingFlow"] = "myCollectionUploadingFlow";
|
|
64
65
|
OwnerType["myCollectionAddArtworkArtist"] = "myCollectionAddArtworkArtist";
|
|
65
66
|
OwnerType["myCollectionArtwork"] = "myCollectionArtwork";
|
|
66
67
|
OwnerType["myCollectionArtworkAbout"] = "MyCollectionArtworkAbout";
|