@artsy/cohesion 4.92.0 → 4.94.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.94.0 (Tue Jan 17 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: add context module to ExperimentViewed [#391](https://github.com/artsy/cohesion/pull/391) ([@MounirDhahri](https://github.com/MounirDhahri))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
10
+
11
+ ---
12
+
13
+ # v4.93.0 (Tue Jan 17 2023)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: update experiment_viewed event to requirements asked by analytics [#390](https://github.com/artsy/cohesion/pull/390) ([@MounirDhahri](https://github.com/MounirDhahri))
18
+
19
+ #### Authors: 1
20
+
21
+ - Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
22
+
23
+ ---
24
+
1
25
  # v4.92.0 (Fri Jan 06 2023)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -1,3 +1,4 @@
1
+ import { ContextModule } from "../Values/ContextModule";
1
2
  import { OwnerType } from "../Values/OwnerType";
2
3
  import { ActionType } from ".";
3
4
  /**
@@ -12,13 +13,13 @@ import { ActionType } from ".";
12
13
  * @example
13
14
  * ```
14
15
  * {
15
- * action: "experimentViewed",
16
- * service: "unleash",
16
+ * action: "experiment_viewed",
17
17
  * experiment_name: "some_experiment_we_are_running",
18
18
  * variant_name: "cool_new_variant",
19
19
  * payload: "10", // optional
20
20
  * context_owner_type: "artwork",
21
21
  * context_owner_id: "55ed8ca57261693d930000b8",
22
+ * context_owner_slug: "slug"
22
23
  * }
23
24
  * ```
24
25
  *
@@ -28,10 +29,10 @@ import { ActionType } from ".";
28
29
  */
29
30
  export interface ExperimentViewed {
30
31
  action: ActionType.experimentViewed;
31
- service: "unleash" | string;
32
32
  experiment_name: string;
33
- variant_name: "control" | string;
33
+ variant_name: string;
34
34
  payload?: string;
35
+ context_module?: ContextModule;
35
36
  context_owner_type: OwnerType;
36
37
  context_owner_id?: string;
37
38
  context_owner_slug?: string;
@@ -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.92.0",
3
+ "version": "4.94.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {