@artsy/cohesion 4.203.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,16 @@
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
+
1
14
  # v4.203.0 (Tue Sep 10 2024)
2
15
 
3
16
  #### 🚀 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;
@@ -88,25 +106,23 @@ export interface TappedArtistSeriesGroup extends TappedEntityGroup {
88
106
  /**
89
107
  * A user taps a grouping of hero units
90
108
  *
91
- * This schema describes events sent to Segment from [[tappedHeroUnitsGroup]]
109
+ * This schema describes events sent to Segment from [[tappedHeroUnitGroup]]
92
110
  *
93
111
  * @example
94
112
  * ```
95
113
  * {
96
- * action: "tappedHeroUnitsGroup",
97
- * context_module: "home-view-section-hero-units-rail",
114
+ * action: "tappedHeroUnitGroup",
115
+ * context_module: "heroUnitsRail",
98
116
  * 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"
117
+ * destination_path: "/collection/art-for-large-spaces",
102
118
  * horizontal_slide_position: 1,
103
119
  * type: "thumbnail"
104
120
  * }
105
121
  * ```
106
122
  */
107
- export interface TappedHeroUnitsGroup extends TappedEntityGroup {
108
- action: ActionType.tappedHeroUnitsGroup;
109
- destination_screen_owner_url: string;
123
+ export interface TappedHeroUnitGroup extends TappedEntityGroup {
124
+ action: ActionType.tappedHeroUnitGroup;
125
+ destination_path?: string;
110
126
  }
111
127
  /**
112
128
  * A user taps a grouping of artworks on iOS
@@ -275,12 +291,12 @@ export interface TappedFairGroup extends TappedEntityGroup {
275
291
  * This schema describes events sent to Segment from [[tappedEntityGroup]]
276
292
  */
277
293
  export interface TappedEntityGroup {
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;
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;
279
295
  context_module: ContextModule;
280
296
  context_screen_owner_type: ScreenOwnerType;
281
297
  context_screen_owner_id?: string;
282
298
  context_screen_owner_slug?: string;
283
- destination_screen_owner_type: ScreenOwnerType;
299
+ destination_screen_owner_type?: ScreenOwnerType;
284
300
  destination_screen_owner_id?: string;
285
301
  destination_screen_owner_slug?: string;
286
302
  curation_boost?: boolean;
@@ -853,9 +853,9 @@ export declare enum ActionType {
853
853
  */
854
854
  tappedFairGroup = "tappedFairGroup",
855
855
  /**
856
- * Corresponds to {@link TappedHeroUnitsGroup}
856
+ * Corresponds to {@link TappedHeroUnitGroup}
857
857
  */
858
- tappedHeroUnitsGroup = "tappedHeroUnitsGroup",
858
+ tappedHeroUnitGroup = "tappedHeroUnitGroup",
859
859
  /**
860
860
  * Corresponds to {@link TappedInboxConversation}
861
861
  */
@@ -223,7 +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
+ ActionType["tappedHeroUnitGroup"] = "tappedHeroUnitGroup";
227
227
  ActionType["tappedInboxConversation"] = "tappedInboxConversation";
228
228
  ActionType["tappedInfoBubble"] = "tappedInfoBubble";
229
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.203.0",
3
+ "version": "4.204.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {