@artsy/cohesion 4.202.0 → 4.204.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,28 @@
1
+ # v4.204.0 (Wed Sep 11 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: TappedHeroUnitsGroup > TappedHeroUnitGroup [#525](https://github.com/artsy/cohesion/pull/525) ([@dblandin](https://github.com/dblandin))
6
+ - chore: tappedActivityGroup + tappedHeroUnitsGroup > destination_path [#525](https://github.com/artsy/cohesion/pull/525) ([@dblandin](https://github.com/dblandin))
7
+
8
+ #### Authors: 1
9
+
10
+ - devon blandin ([@dblandin](https://github.com/dblandin))
11
+
12
+ ---
13
+
14
+ # v4.203.0 (Tue Sep 10 2024)
15
+
16
+ #### 🚀 Enhancement
17
+
18
+ - feat: add TappedHeroUnitsGroup [#524](https://github.com/artsy/cohesion/pull/524) ([@MounirDhahri](https://github.com/MounirDhahri))
19
+
20
+ #### Authors: 1
21
+
22
+ - Mounir Dhahri ([@MounirDhahri](https://github.com/MounirDhahri))
23
+
24
+ ---
25
+
1
26
  # v4.202.0 (Tue Aug 27 2024)
2
27
 
3
28
  #### 🚀 Enhancement
@@ -30,8 +30,26 @@ import { ActionType } from ".";
30
30
  export interface TappedArticleGroup extends TappedEntityGroup {
31
31
  action: ActionType.tappedArticleGroup;
32
32
  }
33
+ /**
34
+ * A user taps a grouping of activity items
35
+ *
36
+ * This schema describes events sent to Segment from [[tappedActivityGroup]]
37
+ *
38
+ * @example
39
+ * ```
40
+ * {
41
+ * action: "tappedActivityGroup",
42
+ * context_module: "activityRail",
43
+ * context_screen_owner_type: "home",
44
+ * destination_path: "/show/grimm-fools-errand",
45
+ * horizontal_slide_position: 1,
46
+ * type: "thumbnail"
47
+ * }
48
+ * ```
49
+ */
33
50
  export interface TappedActivityGroup extends TappedEntityGroup {
34
51
  action: ActionType.tappedActivityGroup;
52
+ destination_path?: string;
35
53
  }
36
54
  export interface TappedShowGroup extends TappedEntityGroup {
37
55
  action: ActionType.tappedShowGroup;
@@ -85,6 +103,27 @@ export interface TappedArtistSeriesGroup extends TappedEntityGroup {
85
103
  action: ActionType.tappedArtistSeriesGroup;
86
104
  destination_screen_owner_type: OwnerType.artistSeries;
87
105
  }
106
+ /**
107
+ * A user taps a grouping of hero units
108
+ *
109
+ * This schema describes events sent to Segment from [[tappedHeroUnitGroup]]
110
+ *
111
+ * @example
112
+ * ```
113
+ * {
114
+ * action: "tappedHeroUnitGroup",
115
+ * context_module: "heroUnitsRail",
116
+ * context_screen_owner_type: "home",
117
+ * destination_path: "/collection/art-for-large-spaces",
118
+ * horizontal_slide_position: 1,
119
+ * type: "thumbnail"
120
+ * }
121
+ * ```
122
+ */
123
+ export interface TappedHeroUnitGroup extends TappedEntityGroup {
124
+ action: ActionType.tappedHeroUnitGroup;
125
+ destination_path?: string;
126
+ }
88
127
  /**
89
128
  * A user taps a grouping of artworks on iOS
90
129
  *
@@ -252,12 +291,12 @@ export interface TappedFairGroup extends TappedEntityGroup {
252
291
  * This schema describes events sent to Segment from [[tappedEntityGroup]]
253
292
  */
254
293
  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;
294
+ 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.tappedHeroUnitGroup;
256
295
  context_module: ContextModule;
257
296
  context_screen_owner_type: ScreenOwnerType;
258
297
  context_screen_owner_id?: string;
259
298
  context_screen_owner_slug?: string;
260
- destination_screen_owner_type: ScreenOwnerType;
299
+ destination_screen_owner_type?: ScreenOwnerType;
261
300
  destination_screen_owner_id?: string;
262
301
  destination_screen_owner_slug?: string;
263
302
  curation_boost?: boolean;
@@ -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 TappedHeroUnitGroup}
857
+ */
858
+ tappedHeroUnitGroup = "tappedHeroUnitGroup",
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["tappedHeroUnitGroup"] = "tappedHeroUnitGroup";
226
227
  ActionType["tappedInboxConversation"] = "tappedInboxConversation";
227
228
  ActionType["tappedInfoBubble"] = "tappedInfoBubble";
228
229
  ActionType["tappedLearnMore"] = "tappedLearnMore";
@@ -106,6 +106,7 @@ export declare enum ContextModule {
106
106
  galleryTab = "galleryTab",
107
107
  geneHeader = "geneHeader",
108
108
  header = "header",
109
+ heroUnitsRail = "heroUnitsRail",
109
110
  inboxActiveBids = "inboxActiveBids",
110
111
  inboxClosedBids = "inboxClosedBids",
111
112
  inboxConversation = "inboxConversation",
@@ -216,4 +217,4 @@ export declare enum ContextModule {
216
217
  /**
217
218
  * Limited ContextModules available for web authentication events
218
219
  */
219
- export type AuthContextModule = ContextModule.activity | ContextModule.aboutTheWork | ContextModule.articleTab | ContextModule.artistHeader | ContextModule.artistRecentlySold | ContextModule.artistSeriesRail | ContextModule.artistSeriesTab | ContextModule.artistsTab | ContextModule.artistsToFollowRail | ContextModule.artworkClosedLotHeader | ContextModule.artworkGrid | ContextModule.artworkImage | ContextModule.artworkSidebar | ContextModule.artworksTab | ContextModule.associatedViewingRoom | ContextModule.auctionHome | ContextModule.auctionLots | ContextModule.auctionLotsEndingSoonRail | ContextModule.auctionRail | ContextModule.auctionResult | ContextModule.auctionResultComparableWorks | ContextModule.auctionResults | ContextModule.auctionSidebar | ContextModule.auctionsInfo | ContextModule.auctionTab | ContextModule.bannerPopUp | ContextModule.boothsTab | ContextModule.browseFair | ContextModule.categoryRail | ContextModule.collectionDescription | ContextModule.collectorProfile | ContextModule.consignSubmissionFlow | ContextModule.createAlert | ContextModule.currentShowsRail | ContextModule.fairInfo | ContextModule.fairOrganizerHeader | ContextModule.fairRail | ContextModule.fairsHeader | ContextModule.fairTab | ContextModule.featuredArtists | ContextModule.featuredArtistsRail | ContextModule.featuredGalleriesRail | ContextModule.footer | ContextModule.galleriesNearYouRail | ContextModule.galleryTab | ContextModule.geneHeader | ContextModule.header | ContextModule.inquiry | ContextModule.intextTooltip | ContextModule.liveAuctionRoom | ContextModule.liveAuctionsRail | ContextModule.lotsForYouRail | ContextModule.mainCarousel | ContextModule.marketingCollectionTab | ContextModule.minimalCTABanner | ContextModule.myCollectionAddArtworkAddArtist | ContextModule.myCollectionHome | ContextModule.navBar | ContextModule.newWorksByGalleriesYouFollowRail | ContextModule.newWorksForYouRail | ContextModule.notification | ContextModule.onboardingActivity | ContextModule.onboardingCollectorLevel | ContextModule.onboardingFlow | ContextModule.onboardingInterests | ContextModule.otherWorksByArtistRail | ContextModule.otherWorksFromPartnerRail | ContextModule.otherWorksFromShowRail | ContextModule.otherWorksInAuctionRail | ContextModule.partnerHeader | ContextModule.pastFairs | ContextModule.popularArtistsRail | ContextModule.popUpModal | ContextModule.presentingFair | ContextModule.presentingPartner | ContextModule.priceEstimate | ContextModule.recentlyViewedRail | ContextModule.recentPriceRanges | ContextModule.recommendedArtistsRail | ContextModule.relatedArtistsRail | ContextModule.relatedWorksRail | ContextModule.saveWorksCTA | ContextModule.showHeader | ContextModule.showInfo | ContextModule.showTab | ContextModule.standoutLots | ContextModule.tagHeader | ContextModule.topAuctionLotsRail | ContextModule.topTab | ContextModule.topWorksRail | ContextModule.trendingArtistsRail | ContextModule.trendingLots | ContextModule.viewingRoom | ContextModule.worksByArtistsYouFollowRail | ContextModule.worksByPopularArtistsRail | ContextModule.worksForSaleRail | ContextModule.sell | ContextModule.sellHeader | ContextModule.sellFooter | ContextModule.sellHowItWorks | ContextModule.sellStickyFooter;
220
+ export type AuthContextModule = ContextModule.activity | ContextModule.aboutTheWork | ContextModule.articleTab | ContextModule.artistHeader | ContextModule.artistRecentlySold | ContextModule.artistSeriesRail | ContextModule.artistSeriesTab | ContextModule.artistsTab | ContextModule.artistsToFollowRail | ContextModule.artworkClosedLotHeader | ContextModule.artworkGrid | ContextModule.artworkImage | ContextModule.artworkSidebar | ContextModule.artworksTab | ContextModule.associatedViewingRoom | ContextModule.auctionHome | ContextModule.auctionLots | ContextModule.auctionLotsEndingSoonRail | ContextModule.auctionRail | ContextModule.auctionResult | ContextModule.auctionResultComparableWorks | ContextModule.auctionResults | ContextModule.auctionSidebar | ContextModule.auctionsInfo | ContextModule.auctionTab | ContextModule.bannerPopUp | ContextModule.boothsTab | ContextModule.browseFair | ContextModule.categoryRail | ContextModule.collectionDescription | ContextModule.collectorProfile | ContextModule.consignSubmissionFlow | ContextModule.createAlert | ContextModule.currentShowsRail | ContextModule.fairInfo | ContextModule.fairOrganizerHeader | ContextModule.fairRail | ContextModule.fairsHeader | ContextModule.fairTab | ContextModule.featuredArtists | ContextModule.featuredArtistsRail | ContextModule.featuredGalleriesRail | ContextModule.footer | ContextModule.galleriesNearYouRail | ContextModule.galleryTab | ContextModule.geneHeader | ContextModule.header | ContextModule.heroUnitsRail | ContextModule.inquiry | ContextModule.intextTooltip | ContextModule.liveAuctionRoom | ContextModule.liveAuctionsRail | ContextModule.lotsForYouRail | ContextModule.mainCarousel | ContextModule.marketingCollectionTab | ContextModule.minimalCTABanner | ContextModule.myCollectionAddArtworkAddArtist | ContextModule.myCollectionHome | ContextModule.navBar | ContextModule.newWorksByGalleriesYouFollowRail | ContextModule.newWorksForYouRail | ContextModule.notification | ContextModule.onboardingActivity | ContextModule.onboardingCollectorLevel | ContextModule.onboardingFlow | ContextModule.onboardingInterests | ContextModule.otherWorksByArtistRail | ContextModule.otherWorksFromPartnerRail | ContextModule.otherWorksFromShowRail | ContextModule.otherWorksInAuctionRail | ContextModule.partnerHeader | ContextModule.pastFairs | ContextModule.popularArtistsRail | ContextModule.popUpModal | ContextModule.presentingFair | ContextModule.presentingPartner | ContextModule.priceEstimate | ContextModule.recentlyViewedRail | ContextModule.recentPriceRanges | ContextModule.recommendedArtistsRail | ContextModule.relatedArtistsRail | ContextModule.relatedWorksRail | ContextModule.saveWorksCTA | ContextModule.showHeader | ContextModule.showInfo | ContextModule.showTab | ContextModule.standoutLots | ContextModule.tagHeader | ContextModule.topAuctionLotsRail | ContextModule.topTab | ContextModule.topWorksRail | ContextModule.trendingArtistsRail | ContextModule.trendingLots | ContextModule.viewingRoom | ContextModule.worksByArtistsYouFollowRail | ContextModule.worksByPopularArtistsRail | ContextModule.worksForSaleRail | ContextModule.sell | ContextModule.sellHeader | ContextModule.sellFooter | ContextModule.sellHowItWorks | ContextModule.sellStickyFooter;
@@ -120,6 +120,7 @@ exports.ContextModule = ContextModule;
120
120
  ContextModule["galleryTab"] = "galleryTab";
121
121
  ContextModule["geneHeader"] = "geneHeader";
122
122
  ContextModule["header"] = "header";
123
+ ContextModule["heroUnitsRail"] = "heroUnitsRail";
123
124
  ContextModule["inboxActiveBids"] = "inboxActiveBids";
124
125
  ContextModule["inboxClosedBids"] = "inboxClosedBids";
125
126
  ContextModule["inboxConversation"] = "inboxConversation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.202.0",
3
+ "version": "4.204.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {