@artsy/cohesion 4.179.0 → 4.181.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.181.0 (Wed May 08 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat: add ClickedBuyNow in events schema [#499](https://github.com/artsy/cohesion/pull/499) ([@MrSltun](https://github.com/MrSltun))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Sultan Al-Maari ([@MrSltun](https://github.com/MrSltun))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.180.0 (Mon May 06 2024)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- chore: Adds optional flow metadata to TappedLearnMore interface [#498](https://github.com/artsy/cohesion/pull/498) ([@jpotts244](https://github.com/jpotts244))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.179.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.artwork;
|
|
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
|
*
|
|
@@ -857,7 +857,8 @@ export interface TappedConsignmentInquiry {
|
|
|
857
857
|
* context_screen_owner_type: "fair",
|
|
858
858
|
* context_screen_owner_id: "5f4d80c972737e000deff1ed",
|
|
859
859
|
* context_screen_owner_slug: "latitude-art-fair-2020",
|
|
860
|
-
* subject: "Learn More"
|
|
860
|
+
* subject: "Learn More",
|
|
861
|
+
* flow: "Artsy Guarantee"
|
|
861
862
|
* }
|
|
862
863
|
* ```
|
|
863
864
|
*/
|
|
@@ -869,6 +870,7 @@ export interface TappedLearnMore {
|
|
|
869
870
|
context_screen_owner_slug?: string;
|
|
870
871
|
/** The text of the tapped button */
|
|
871
872
|
subject: string;
|
|
873
|
+
flow?: string;
|
|
872
874
|
}
|
|
873
875
|
/**
|
|
874
876
|
* A user long presses an artwork in the app to show a menu
|
|
@@ -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";
|