@artsy/cohesion 4.91.0 → 4.93.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.93.0 (Tue Jan 17 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: update experiment_viewed event to requirements asked by analytics [#390](https://github.com/artsy/cohesion/pull/390) ([@MounirDhahri](https://github.com/MounirDhahri))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
10
+
11
+ ---
12
+
13
+ # v4.92.0 (Fri Jan 06 2023)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - fix: Adjust new My Collection event keys [#389](https://github.com/artsy/cohesion/pull/389) ([@olerichter00](https://github.com/olerichter00))
18
+
19
+ #### Authors: 1
20
+
21
+ - Ole ([@olerichter00](https://github.com/olerichter00))
22
+
23
+ ---
24
+
1
25
  # v4.91.0 (Fri Jan 06 2023)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -12,13 +12,13 @@ import { ActionType } from ".";
12
12
  * @example
13
13
  * ```
14
14
  * {
15
- * action: "experimentViewed",
16
- * service: "unleash",
15
+ * action: "experiment_viewed",
17
16
  * experiment_name: "some_experiment_we_are_running",
18
17
  * variant_name: "cool_new_variant",
19
18
  * payload: "10", // optional
20
19
  * context_owner_type: "artwork",
21
20
  * context_owner_id: "55ed8ca57261693d930000b8",
21
+ * context_owner_slug: "slug"
22
22
  * }
23
23
  * ```
24
24
  *
@@ -28,9 +28,8 @@ import { ActionType } from ".";
28
28
  */
29
29
  export interface ExperimentViewed {
30
30
  action: ActionType.experimentViewed;
31
- service: "unleash" | string;
32
31
  experiment_name: string;
33
- variant_name: "control" | string;
32
+ variant_name: string;
34
33
  payload?: string;
35
34
  context_owner_type: OwnerType;
36
35
  context_owner_id?: string;
@@ -191,7 +191,7 @@ export interface TappedMyCollectionAddArtworkArtist {
191
191
  * {
192
192
  * action: "addNewArtistName",
193
193
  * context_module: "myCollection",
194
- * context_screen_owner_type: "myCollectionUploadingFlow",
194
+ * context_owner_type: "myCollectionUploadingFlow",
195
195
  * platform: "web",
196
196
  * }
197
197
  * ```
@@ -199,7 +199,7 @@ export interface TappedMyCollectionAddArtworkArtist {
199
199
  export interface MyColectionAddNewArtistName {
200
200
  action: ActionType.addNewArtistName;
201
201
  context_module: ContextModule.myCollection;
202
- context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
202
+ context_owner_type: OwnerType.myCollectionUploadingFlow;
203
203
  platform: Platform;
204
204
  }
205
205
  /**
@@ -212,7 +212,7 @@ export interface MyColectionAddNewArtistName {
212
212
  * {
213
213
  * action: "selectArtistFromSearch",
214
214
  * context_module: "myCollection",
215
- * context_screen_owner_type: "myCollectionUploadingFlow",
215
+ * context_owner_type: "myCollectionUploadingFlow",
216
216
  * platform: "web",
217
217
  * }
218
218
  * ```
@@ -220,7 +220,7 @@ export interface MyColectionAddNewArtistName {
220
220
  export interface MyCollectionSelectArtistFromSearch {
221
221
  action: ActionType.selectArtistFromSearch;
222
222
  context_mudule: ContextModule.myCollection;
223
- context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
223
+ context_owner_type: OwnerType.myCollectionUploadingFlow;
224
224
  platform: Platform;
225
225
  }
226
226
  /**
@@ -233,7 +233,7 @@ export interface MyCollectionSelectArtistFromSearch {
233
233
  * {
234
234
  * action: "addArtworkDetails",
235
235
  * context_module: "myCollection",
236
- * context_screen_owner_type: "myCollectionUploadingFlow",
236
+ * context_owner_type: "myCollectionUploadingFlow",
237
237
  * platform: "web",
238
238
  * }
239
239
  * ```
@@ -241,7 +241,7 @@ export interface MyCollectionSelectArtistFromSearch {
241
241
  export interface MyCollectionAddArtworkDetails {
242
242
  action: ActionType.addArtworkDetails;
243
243
  context_module: ContextModule.myCollection;
244
- context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
244
+ context_owner_type: OwnerType.myCollectionUploadingFlow;
245
245
  platform: Platform;
246
246
  }
247
247
  /**
@@ -254,7 +254,7 @@ export interface MyCollectionAddArtworkDetails {
254
254
  * {
255
255
  * action: "selectArtworkFromGrid",
256
256
  * context_module: "myCollection",
257
- * context_screen_owner_type: "myCollectionUploadingFlow",
257
+ * context_owner_type: "myCollectionUploadingFlow",
258
258
  * platform: "web",
259
259
  * }
260
260
  * ```
@@ -262,7 +262,7 @@ export interface MyCollectionAddArtworkDetails {
262
262
  export interface MyCollectionSelectArtworkFromGrid {
263
263
  action: ActionType.selectArtworkFromGrid;
264
264
  context_module: ContextModule.myCollection;
265
- context_screen_owner_type: OwnerType.myCollectionUploadingFlow;
265
+ context_owner_type: OwnerType.myCollectionUploadingFlow;
266
266
  platform: Platform;
267
267
  }
268
268
  /**
@@ -371,7 +371,7 @@ export declare enum ActionType {
371
371
  /**
372
372
  * Corresponds to {@link ExperimentViewed}
373
373
  */
374
- experimentViewed = "experimentViewed",
374
+ experimentViewed = "experiment_viewed",
375
375
  /**
376
376
  * Corresponds to {@link UploadSizeLimitExceeded}
377
377
  */
@@ -103,7 +103,7 @@ exports.ActionType = ActionType;
103
103
  ActionType["editedSavedSearch"] = "editedSavedSearch";
104
104
  ActionType["editedUserProfile"] = "editedUserProfile";
105
105
  ActionType["enterLiveAuction"] = "enterLiveAuction";
106
- ActionType["experimentViewed"] = "experimentViewed";
106
+ ActionType["experimentViewed"] = "experiment_viewed";
107
107
  ActionType["uploadSizeLimitExceeded"] = "uploadSizeLimitExceeded";
108
108
  ActionType["focusedOnConversationMessageInput"] = "focusedOnConversationMessageInput";
109
109
  ActionType["focusedOnPriceDatabaseSearchInput"] = "focusedOnPriceDatabaseSearchInput";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.91.0",
3
+ "version": "4.93.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {