@artsy/cohesion 4.87.0 → 4.89.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,32 @@
1
+ # v4.89.0 (Fri Jan 06 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add events for new MyC web uploading flow [#386](https://github.com/artsy/cohesion/pull/386) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### 🏠 Internal
8
+
9
+ - 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]))
10
+
11
+ #### Authors: 2
12
+
13
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
14
+ - Ole ([@olerichter00](https://github.com/olerichter00))
15
+
16
+ ---
17
+
18
+ # v4.88.0 (Tue Jan 03 2023)
19
+
20
+ #### 🚀 Enhancement
21
+
22
+ - feat(auth): adds scroll to auth trigger [#384](https://github.com/artsy/cohesion/pull/384) ([@dzucconi](https://github.com/dzucconi))
23
+
24
+ #### Authors: 1
25
+
26
+ - Damon ([@dzucconi](https://github.com/dzucconi))
27
+
28
+ ---
29
+
1
30
  # v4.87.0 (Tue Dec 20 2022)
2
31
 
3
32
  #### 🚀 Enhancement
@@ -147,7 +147,7 @@ export declare enum AuthModalType {
147
147
  /**
148
148
  * The type of action that opened the authentication modal
149
149
  */
150
- export type AuthTrigger = "click" | "timed";
150
+ export type AuthTrigger = "click" | "timed" | "scroll";
151
151
  /**
152
152
  * the service the user used to authenticate
153
153
  */
@@ -1,6 +1,6 @@
1
+ import { ActionType } from ".";
1
2
  import { ContextModule } from "../Values/ContextModule";
2
3
  import { OwnerType } from "../Values/OwnerType";
3
- import { ActionType } from ".";
4
4
  export type Platform = "web" | "mobile";
5
5
  /**
6
6
  * Schema describing 'Add Collected Artwork' events
@@ -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: OwnerType.myCollection;
202
+ context_screen_owner_type: ContextModule.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: OwnerType.myCollection;
223
+ context_screen_owner_type: ContextModule.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: OwnerType.myCollection;
244
+ context_screen_owner_type: ContextModule.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: OwnerType.myCollection;
265
+ context_screen_owner_type: ContextModule.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";
@@ -109,6 +109,7 @@ export declare enum ContextModule {
109
109
  myCollectionInsightsMedianAuctionPriceChart = "myCollectionInsightsMedianAuctionPriceChart",
110
110
  myCollectionMarketSignals = "myCollectionMarketSignals",
111
111
  myCollectionOnboarding = "myCollectionOnboarding",
112
+ myCollectionUploadingFlow = "myCollectionUploadingFlow",
112
113
  newWorksByArtistsYouFollowRail = "newWorksByArtistsYouFollowRail",
113
114
  newWorksForYouRail = "newWorksForYouRail",
114
115
  newWorksByGalleriesYouFollowRail = "newWorksByGalleriesYouFollowRail",
@@ -123,6 +123,7 @@ exports.ContextModule = ContextModule;
123
123
  ContextModule["myCollectionInsightsMedianAuctionPriceChart"] = "myCollectionInsightsMedianAuctionPriceChart";
124
124
  ContextModule["myCollectionMarketSignals"] = "myCollectionMarketSignals";
125
125
  ContextModule["myCollectionOnboarding"] = "myCollectionOnboarding";
126
+ ContextModule["myCollectionUploadingFlow"] = "myCollectionUploadingFlow";
126
127
  ContextModule["newWorksByArtistsYouFollowRail"] = "newWorksByArtistsYouFollowRail";
127
128
  ContextModule["newWorksForYouRail"] = "newWorksForYouRail";
128
129
  ContextModule["newWorksByGalleriesYouFollowRail"] = "newWorksByGalleriesYouFollowRail";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.87.0",
3
+ "version": "4.89.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {