@artsy/cohesion 4.166.0 → 4.168.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.168.0 (Tue Apr 02 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Adding event tracking for news taps on app [#486](https://github.com/artsy/cohesion/pull/486) ([@leodmz](https://github.com/leodmz))
6
+
7
+ #### Authors: 1
8
+
9
+ - Leo Demazeau ([@leodmz](https://github.com/leodmz))
10
+
11
+ ---
12
+
13
+ # v4.167.0 (Wed Feb 07 2024)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore(folio): Update types [#484](https://github.com/artsy/cohesion/pull/484) ([@damassi](https://github.com/damassi))
18
+
19
+ #### Authors: 1
20
+
21
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
22
+
23
+ ---
24
+
1
25
  # v4.166.0 (Thu Jan 25 2024)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -16,6 +16,8 @@ import { ActionType } from ".";
16
16
  * context_screen_owner_type: "artwork",
17
17
  * context_screen_owner_id: "id"
18
18
  * context_screen_owner_slug: "slug"
19
+ * artwork_id: ["id"]
20
+ * album_id: "id"
19
21
  * }
20
22
  * ```
21
23
  */
@@ -24,6 +26,8 @@ export interface SentContent {
24
26
  context_screen_owner_type: ScreenOwnerType;
25
27
  context_screen_owner_id?: string;
26
28
  context_screen_owner_slug?: string;
29
+ artwork_id: string[];
30
+ album_id: string;
27
31
  }
28
32
  /**
29
33
  * A user creates an Album in Folio
@@ -55,7 +59,7 @@ export interface CreatedAlbum {
55
59
  * ```
56
60
  * {
57
61
  * action: "addedToAlbum",
58
- * context_screen_owner_type: "artwork",
62
+ * context_screen_owner_type: "album",
59
63
  * context_screen_owner_id: "id"
60
64
  * context_screen_owner_slug: "slug"
61
65
  * album_name: "My Album"
@@ -972,3 +972,28 @@ export interface TappedHighlightAchievement {
972
972
  context_screen_owner_id: string;
973
973
  context_screen_owner_slug?: string;
974
974
  }
975
+ /**
976
+ * A user taps the dedicated section to news in the app
977
+ *
978
+ * This schema describes events sent to Segment from [[tappedNewsSection]]
979
+ *
980
+ * @example
981
+ * ```
982
+ * {
983
+ * action: "tappedNewsSection",
984
+ * context_module : "", Home or News
985
+ * context_screen_owner_type: "Home",
986
+ * context_screen_owner_id: "58de681f275b2464fcdde097",
987
+ * destination_screen_owner_type: "Artwork"
988
+ * destination_screen_owner_id: "58de681f275b2464fcdde097"
989
+ * }
990
+ * ```
991
+ */
992
+ export interface TappedNewsSection {
993
+ action: ActionType.tappedNewsSection;
994
+ context_module: ContextModule;
995
+ context_screen_owner_type: ScreenOwnerType;
996
+ context_screen_owner_id: string;
997
+ destination_screen_owner_type: ScreenOwnerType;
998
+ destination_screen_owner_id: string;
999
+ }
@@ -928,6 +928,10 @@ export declare enum ActionType {
928
928
  * Corresponds to {@link TappedHighlightAchievement}
929
929
  */
930
930
  tappedHighlightAchievement = "tappedHighlightAchievement",
931
+ /**
932
+ * Corresponds to {@link TappedNewsSection}
933
+ */
934
+ tappedNewsSection = "tappedNewsSection",
931
935
  /**
932
936
  * Corresponds to {@link TimeOnPage}
933
937
  */
@@ -242,6 +242,7 @@ exports.ActionType = ActionType;
242
242
  ActionType["tappedVerifiedRepresentative"] = "tappedVerifiedRepresentative";
243
243
  ActionType["tappedGene"] = "tappedGene";
244
244
  ActionType["tappedHighlightAchievement"] = "tappedHighlightAchievement";
245
+ ActionType["tappedNewsSection"] = "tappedNewsSection";
245
246
  ActionType["timeOnPage"] = "timeOnPage";
246
247
  ActionType["toggledAccordion"] = "toggledAccordion";
247
248
  ActionType["toggledNotification"] = "toggledNotification";
@@ -6,6 +6,7 @@
6
6
  export declare enum OwnerType {
7
7
  activities = "activities",
8
8
  activity = "activity",
9
+ album = "album",
9
10
  allArtistSeries = "allArtistSeries",
10
11
  alerts = "alerts",
11
12
  alertDetails = "alertDetails",
@@ -106,7 +107,7 @@ export declare enum OwnerType {
106
107
  /**
107
108
  * Owner types available in iOS/Android
108
109
  */
109
- export type ScreenOwnerType = OwnerType.activities | OwnerType.activity | OwnerType.allArtistSeries | OwnerType.alerts | OwnerType.alertDetails | OwnerType.alertConfirmation | OwnerType.alertFilters | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.artworkPriceFilter | OwnerType.artworkRecommendations | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentInquiry | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.createAlert | OwnerType.editAlert | OwnerType.editProfile | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.galleriesForYou | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.lotsByArtistsYouFollow | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.myCollectionInsightsMedianAuctionPrice | OwnerType.myCollectionOnboarding | OwnerType.newWorksForYou | OwnerType.newWorksFromGalleriesYouFollow | OwnerType.onboarding | OwnerType.partner | OwnerType.priceDatabase | OwnerType.profile | OwnerType.recentlyViewed | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.saves | OwnerType.savesAndFollows | OwnerType.search | OwnerType.sell | OwnerType.settings | OwnerType.show | OwnerType.shows | OwnerType.similarToRecentlyViewed | OwnerType.tag | OwnerType.upcomingAuctions | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou;
110
+ export type ScreenOwnerType = OwnerType.album | OwnerType.activities | OwnerType.activity | OwnerType.allArtistSeries | OwnerType.alerts | OwnerType.alertDetails | OwnerType.alertConfirmation | OwnerType.alertFilters | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.artworkPriceFilter | OwnerType.artworkRecommendations | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentInquiry | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.createAlert | OwnerType.editAlert | OwnerType.editProfile | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.galleriesForYou | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.lotsByArtistsYouFollow | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.myCollectionInsightsMedianAuctionPrice | OwnerType.myCollectionOnboarding | OwnerType.newWorksForYou | OwnerType.newWorksFromGalleriesYouFollow | OwnerType.onboarding | OwnerType.partner | OwnerType.priceDatabase | OwnerType.profile | OwnerType.recentlyViewed | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.saves | OwnerType.savesAndFollows | OwnerType.search | OwnerType.sell | OwnerType.settings | OwnerType.show | OwnerType.shows | OwnerType.similarToRecentlyViewed | OwnerType.tag | OwnerType.upcomingAuctions | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou;
110
111
  /**
111
112
  * Owner types available in web/mobile web
112
113
  */
@@ -24,6 +24,7 @@ exports.OwnerType = OwnerType;
24
24
  (function (OwnerType) {
25
25
  OwnerType["activities"] = "activities";
26
26
  OwnerType["activity"] = "activity";
27
+ OwnerType["album"] = "album";
27
28
  OwnerType["allArtistSeries"] = "allArtistSeries";
28
29
  OwnerType["alerts"] = "alerts";
29
30
  OwnerType["alertDetails"] = "alertDetails";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.166.0",
3
+ "version": "4.168.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {