@artsy/cohesion 4.202.0 → 4.203.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,15 @@
1
+ # v4.203.0 (Tue Sep 10 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: add TappedHeroUnitsGroup [#524](https://github.com/artsy/cohesion/pull/524) ([@MounirDhahri](https://github.com/MounirDhahri))
6
+
7
+ #### Authors: 1
8
+
9
+ - Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
10
+
11
+ ---
12
+
1
13
  # v4.202.0 (Tue Aug 27 2024)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -85,6 +85,29 @@ export interface TappedArtistSeriesGroup extends TappedEntityGroup {
85
85
  action: ActionType.tappedArtistSeriesGroup;
86
86
  destination_screen_owner_type: OwnerType.artistSeries;
87
87
  }
88
+ /**
89
+ * A user taps a grouping of hero units
90
+ *
91
+ * This schema describes events sent to Segment from [[tappedHeroUnitsGroup]]
92
+ *
93
+ * @example
94
+ * ```
95
+ * {
96
+ * action: "tappedHeroUnitsGroup",
97
+ * context_module: "home-view-section-hero-units-rail",
98
+ * context_screen_owner_type: "home",
99
+ * destination_screen_owner_id: "5359794d1a1e86c3740001f7",
100
+ * destination_screen_owner_type: Collection,
101
+ * destination_screen_owner_url: "fair/fair-name"
102
+ * horizontal_slide_position: 1,
103
+ * type: "thumbnail"
104
+ * }
105
+ * ```
106
+ */
107
+ export interface TappedHeroUnitsGroup extends TappedEntityGroup {
108
+ action: ActionType.tappedHeroUnitsGroup;
109
+ destination_screen_owner_url: string;
110
+ }
88
111
  /**
89
112
  * A user taps a grouping of artworks on iOS
90
113
  *
@@ -252,7 +275,7 @@ export interface TappedFairGroup extends TappedEntityGroup {
252
275
  * This schema describes events sent to Segment from [[tappedEntityGroup]]
253
276
  */
254
277
  export interface TappedEntityGroup {
255
- action: ActionType.tappedActivityGroup | ActionType.tappedArticleGroup | ActionType.tappedShowGroup | ActionType.tappedArtistGroup | ActionType.tappedArtistSeriesGroup | ActionType.tappedArtworkGroup | ActionType.tappedAuctionGroup | ActionType.tappedAuctionResultGroup | ActionType.tappedBrowseSimilarArtworks | ActionType.tappedCollectionGroup | ActionType.tappedExploreGroup | ActionType.tappedFairGroup | ActionType.tappedViewingRoomGroup;
278
+ action: ActionType.tappedActivityGroup | ActionType.tappedArticleGroup | ActionType.tappedShowGroup | ActionType.tappedArtistGroup | ActionType.tappedArtistSeriesGroup | ActionType.tappedArtworkGroup | ActionType.tappedAuctionGroup | ActionType.tappedAuctionResultGroup | ActionType.tappedBrowseSimilarArtworks | ActionType.tappedCollectionGroup | ActionType.tappedExploreGroup | ActionType.tappedFairGroup | ActionType.tappedViewingRoomGroup | ActionType.tappedHeroUnitsGroup;
256
279
  context_module: ContextModule;
257
280
  context_screen_owner_type: ScreenOwnerType;
258
281
  context_screen_owner_id?: string;
@@ -852,6 +852,10 @@ export declare enum ActionType {
852
852
  * Corresponds to {@link TappedFairGroup}
853
853
  */
854
854
  tappedFairGroup = "tappedFairGroup",
855
+ /**
856
+ * Corresponds to {@link TappedHeroUnitsGroup}
857
+ */
858
+ tappedHeroUnitsGroup = "tappedHeroUnitsGroup",
855
859
  /**
856
860
  * Corresponds to {@link TappedInboxConversation}
857
861
  */
@@ -223,6 +223,7 @@ exports.ActionType = ActionType;
223
223
  ActionType["tappedExploreMyCollection"] = "tappedExploreMyCollection";
224
224
  ActionType["tappedFairCard"] = "tappedFairCard";
225
225
  ActionType["tappedFairGroup"] = "tappedFairGroup";
226
+ ActionType["tappedHeroUnitsGroup"] = "tappedHeroUnitsGroup";
226
227
  ActionType["tappedInboxConversation"] = "tappedInboxConversation";
227
228
  ActionType["tappedInfoBubble"] = "tappedInfoBubble";
228
229
  ActionType["tappedLearnMore"] = "tappedLearnMore";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.202.0",
3
+ "version": "4.203.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {