@artsy/cohesion 4.180.0 → 4.182.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.182.0 (Wed May 08 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - fix: updates the context_owner_type for ClickedBuyNow event [#500](https://github.com/artsy/cohesion/pull/500) ([@MrSltun](https://github.com/MrSltun))
6
+
7
+ #### Authors: 1
8
+
9
+ - Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
10
+
11
+ ---
12
+
13
+ # v4.181.0 (Wed May 08 2024)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - feat: add ClickedBuyNow in events schema [#499](https://github.com/artsy/cohesion/pull/499) ([@MrSltun](https://github.com/MrSltun))
18
+
19
+ #### Authors: 1
20
+
21
+ - Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
22
+
23
+ ---
24
+
1
25
  # v4.180.0 (Mon May 06 2024)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -262,6 +262,31 @@ export interface ClickedBuyerProtection {
262
262
  destination_page_owner_type: PageOwnerType;
263
263
  destination_page_owner_slug: string;
264
264
  }
265
+ /**
266
+ * User clicks "Purchase" on an artwork page (BNMO)
267
+ *
268
+ * This schema describes events sent to Segment from [[clickedBuyNow]]
269
+ *
270
+ * @example
271
+ * ```
272
+ * {
273
+ * action: "clickedBuyNow",
274
+ * context_owner_type: "Artwork",
275
+ * context_owner_slug: "radna-segal-pearl",
276
+ * context_owner_id: "6164889300d643000db86504",
277
+ * impulse_conversation_id: "198",
278
+ * flow: "Buy now" | "Partner offer"
279
+ * }
280
+ * ```
281
+ */
282
+ export interface ClickedBuyNow {
283
+ action: ActionType.clickedBuyNow;
284
+ context_owner_type: OwnerType;
285
+ context_owner_slug: string;
286
+ context_owner_id: string;
287
+ impulse_conversation_id?: string;
288
+ flow?: string;
289
+ }
265
290
  /**
266
291
  * User clicks on Change Payment Method on the orders review page.
267
292
  *
@@ -160,6 +160,10 @@ export declare enum ActionType {
160
160
  * Corresponds to {@link ClickedBuyerProtection}
161
161
  */
162
162
  clickedBuyerProtection = "clickedBuyerProtection",
163
+ /**
164
+ * Corresponds to {@link ClickedBuyNow}
165
+ */
166
+ clickedBuyNow = "clickedBuyNow",
163
167
  /**
164
168
  * Corresponds to {@link ClickedChangePage}
165
169
  */
@@ -50,6 +50,7 @@ exports.ActionType = ActionType;
50
50
  ActionType["clickedAuctionGroup"] = "clickedAuctionGroup";
51
51
  ActionType["clickedAuctionResultItem"] = "clickedAuctionResultItem";
52
52
  ActionType["clickedBuyerProtection"] = "clickedBuyerProtection";
53
+ ActionType["clickedBuyNow"] = "clickedBuyNow";
53
54
  ActionType["clickedChangePage"] = "clickedChangePage";
54
55
  ActionType["clickedChangePaymentMethod"] = "clickedChangePaymentMethod";
55
56
  ActionType["clickedChangeShippingAddress"] = "clickedChangeShippingAddress";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.180.0",
3
+ "version": "4.182.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {