@artsy/cohesion 4.151.0 → 4.153.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.153.0 (Tue Oct 10 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - DIA-207 Adding tracking for genes clicks and Highlights on the artist page [#466](https://github.com/artsy/cohesion/pull/466) ([@leodmz](https://github.com/leodmz))
6
+
7
+ #### Authors: 1
8
+
9
+ - Leo Demazeau ([@leodmz](https://github.com/leodmz))
10
+
11
+ ---
12
+
13
+ # v4.152.0 (Thu Oct 05 2023)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - Fix examples for address auto completion events [#465](https://github.com/artsy/cohesion/pull/465) ([@daytavares](https://github.com/daytavares))
18
+
19
+ #### Authors: 1
20
+
21
+ - Dayane Tavares ([@daytavares](https://github.com/daytavares))
22
+
23
+ ---
24
+
1
25
  # v4.151.0 (Fri Sep 29 2023)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -1670,3 +1670,58 @@ export interface ClickedVerifiedRepresentative {
1670
1670
  destination_page_owner_type: PageOwnerType;
1671
1671
  destination_page_owner_id: string;
1672
1672
  }
1673
+ /**
1674
+ * A user clicks one of the related categories(genes) in the artist about tab
1675
+ *
1676
+ * This schema describes events sent to Segment from [[clickedGene]]
1677
+ *
1678
+ * @example
1679
+ * ```
1680
+ * {
1681
+ * action: "clickedGene",
1682
+ * context_module : "Young British Artists",
1683
+ * context_page_owner_type: "Artwork",
1684
+ * context_page_owner_id: "58de681f275b2464fcdde097",
1685
+ * context_page_owner_slug: "damien-hirst",
1686
+ * destination_page_owner_type: "Gene"
1687
+ * destination_page_owner_id: "58de681f275b2464fcdde097"
1688
+ * subject: ""
1689
+ * }
1690
+ * ```
1691
+ */
1692
+ export interface ClickedGene {
1693
+ action: ActionType.clickedGene;
1694
+ context_module: ContextModule;
1695
+ context_page_owner_type: PageOwnerType;
1696
+ context_page_owner_id: string;
1697
+ context_page_owner_slug?: string;
1698
+ destination_page_owner_type: PageOwnerType;
1699
+ destination_page_owner_id: string;
1700
+ subject?: string;
1701
+ }
1702
+ /**
1703
+ * A user clicks one of the Highlight and Achievement toggles in the artist header
1704
+ *
1705
+ * This schema describes events sent to Segment from [[clickedHighlightAchievement]]
1706
+ *
1707
+ * @example
1708
+ * ```
1709
+ * {
1710
+ * action: "clickedHighlightAchievement",
1711
+ * context_module : "Active Secondary Market",
1712
+ * context_page_owner_type: "Artwork",
1713
+ * context_page_owner_id: "58de681f275b2464fcdde097",
1714
+ * context_page_owner_slug: "damien-hirst",
1715
+ * destination_page_owner_type: "Gene"
1716
+ * destination_page_owner_id: "58de681f275b2464fcdde097"
1717
+ * subject: ""
1718
+ * }
1719
+ * ```
1720
+ */
1721
+ export interface ClickedHighlightAchievement {
1722
+ action: ActionType.clickedHighlightAchievement;
1723
+ context_module: ContextModule;
1724
+ context_page_owner_type: PageOwnerType;
1725
+ context_page_owner_id: string;
1726
+ context_page_owner_slug?: string;
1727
+ }
@@ -235,8 +235,8 @@ export interface SelectedSearchSuggestionQuickNavigationItem {
235
235
  * {
236
236
  * action: "addressAutoCompletionResult",
237
237
  * context_module:"OrdersShipping",
238
- * context_page_owner_type: "orders-shipping",
239
- * context_page_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
238
+ * context_owner_type: "orders-shipping",
239
+ * context_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
240
240
  * input: "Weserstr."
241
241
  * suggested_addresses_results: 3
242
242
  * }
@@ -260,8 +260,8 @@ export interface AddressAutoCompletionResult {
260
260
  * {
261
261
  * action: "selectedItemFromAddressAutoCompletion",
262
262
  * context_module:"OrdersShipping",
263
- * context_page_owner_type: "orders-shipping",
264
- * context_page_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
263
+ * context_owner_type: "orders-shipping",
264
+ * context_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
265
265
  * input: "Wes"
266
266
  * item: "Weserstr."
267
267
  * }
@@ -285,8 +285,8 @@ export interface SelectedItemFromAddressAutoCompletion {
285
285
  * {
286
286
  * action: "editedAutocompletedAddress",
287
287
  * context_module:"OrdersShipping",
288
- * context_page_owner_type: "orders-shipping",
289
- * context_page_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
288
+ * context_owner_type: "orders-shipping",
289
+ * context_owner_id: "57e60c68-a198-431e-8a02-6ecb01e3a99b",
290
290
  * field: "Address line 2"
291
291
  * }
292
292
  * ```
@@ -922,3 +922,59 @@ export interface TappedVerifiedRepresentative {
922
922
  destination_screen_owner_type: ScreenOwnerType;
923
923
  destination_screen_owner_id: string;
924
924
  }
925
+ /**
926
+ * A user taps one of the related categories (genes) in the artist about tab
927
+ *
928
+ * This schema describes events sent to Segment from [[tappedGene]]
929
+ *
930
+ * @example
931
+ * ```
932
+ * {
933
+ * action: "tappedGene",
934
+ * context_module : "Young British Artists",
935
+ * context_screen_owner_type: "Artwork",
936
+ * context_screen_owner_id: "58de681f275b2464fcdde097",
937
+ * context_screen_owner_slug: "damien-hirst",
938
+ * destination_screen_owner_type: "Gene"
939
+ * destination_screen_owner_id: "58de681f275b2464fcdde097"
940
+ * subject: ""
941
+ * }
942
+ * ```
943
+ */
944
+ export interface TappedGene {
945
+ action: ActionType.tappedGene;
946
+ context_module: ContextModule;
947
+ context_screen_owner_type: ScreenOwnerType;
948
+ context_screen_owner_id: string;
949
+ context_screen_owner_slug?: string;
950
+ destination_screen_owner_type: ScreenOwnerType;
951
+ destination_screen_owner_id: string;
952
+ /** The text of the tapped button */
953
+ subject: string;
954
+ }
955
+ /**
956
+ * A user taps one of the Highlight and Achievement toggles in the artist header
957
+ *
958
+ * This schema describes events sent to Segment from [[tappedHighlightAchievement]]
959
+ *
960
+ * @example
961
+ * ```
962
+ * {
963
+ * action: "tappedHighlightAchievement",
964
+ * context_module : "Active Secondary Market",
965
+ * context_screen_owner_type: "Artwork",
966
+ * context_screen_owner_id: "58de681f275b2464fcdde097",
967
+ * context_screen_owner_slug: "damien-hirst",
968
+ * destination_screen_owner_type: "Gene"
969
+ * destination_screen_owner_id: "58de681f275b2464fcdde097"
970
+ * subject: ""
971
+ * }
972
+ * ```
973
+ */
974
+ export interface TappedHighlightAchievement {
975
+ action: ActionType.tappedHighlightAchievement;
976
+ context_module: ContextModule;
977
+ context_screen_owner_type: ScreenOwnerType;
978
+ context_screen_owner_id: string;
979
+ context_screen_owner_slug?: string;
980
+ }
@@ -368,6 +368,14 @@ export declare enum ActionType {
368
368
  * Corresponds to {@link ClickedVerifiedRepresentative}
369
369
  */
370
370
  clickedVerifiedRepresentative = "clickedVerifiedRepresentative",
371
+ /**
372
+ * Corresponds to {@link ClickedGene}
373
+ */
374
+ clickedGene = "clickedGene",
375
+ /**
376
+ * Corresponds to {@link ClickedHighlightAchievement}
377
+ */
378
+ clickedHighlightAchievement = "clickedHighlightAchievement",
371
379
  /**
372
380
  * Corresponds to {@link CommercialFilterParamsChanged}
373
381
  */
@@ -860,6 +868,14 @@ export declare enum ActionType {
860
868
  * Corresponds to {@link TappedVerifiedRepresentative}
861
869
  */
862
870
  tappedVerifiedRepresentative = "tappedVerifiedRepresentative",
871
+ /**
872
+ * Corresponds to {@link TappedGene}
873
+ */
874
+ tappedGene = "tappedGene",
875
+ /**
876
+ * Corresponds to {@link TappedHighlightAchievement}
877
+ */
878
+ tappedHighlightAchievement = "tappedHighlightAchievement",
863
879
  /**
864
880
  * Corresponds to {@link TimeOnPage}
865
881
  */
@@ -102,6 +102,8 @@ exports.ActionType = ActionType;
102
102
  ActionType["clickedValidationAddressOptions"] = "clickedValidationAddressOptions";
103
103
  ActionType["clickedCloseValidationAddressModal"] = "clickedCloseValidationAddressModal";
104
104
  ActionType["clickedVerifiedRepresentative"] = "clickedVerifiedRepresentative";
105
+ ActionType["clickedGene"] = "clickedGene";
106
+ ActionType["clickedHighlightAchievement"] = "clickedHighlightAchievement";
105
107
  ActionType["commercialFilterParamsChanged"] = "commercialFilterParamsChanged";
106
108
  ActionType["completedOnboarding"] = "completedOnboarding";
107
109
  ActionType["confirmBid"] = "confirmBid";
@@ -225,6 +227,8 @@ exports.ActionType = ActionType;
225
227
  ActionType["tappedViewingRoomGroup"] = "tappedViewingRoomGroup";
226
228
  ActionType["tappedViewOffer"] = "tappedViewOffer";
227
229
  ActionType["tappedVerifiedRepresentative"] = "tappedVerifiedRepresentative";
230
+ ActionType["tappedGene"] = "tappedGene";
231
+ ActionType["tappedHighlightAchievement"] = "tappedHighlightAchievement";
228
232
  ActionType["timeOnPage"] = "timeOnPage";
229
233
  ActionType["toggledAccordion"] = "toggledAccordion";
230
234
  ActionType["toggledNotification"] = "toggledNotification";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.151.0",
3
+ "version": "4.153.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {