@artsy/cohesion 4.46.0 → 4.47.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.47.0 (Mon May 16 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: adds schema for article events [#318](https://github.com/artsy/cohesion/pull/318) ([@dzucconi](https://github.com/dzucconi))
6
+
7
+ #### Authors: 1
8
+
9
+ - Damon ([@dzucconi](https://github.com/dzucconi))
10
+
11
+ ---
12
+
1
13
  # v4.46.0 (Tue May 10 2022)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1030,3 +1030,115 @@ export interface ClickedCreateAlert {
1030
1030
  context_page_owner_id?: string;
1031
1031
  context_page_owner_slug?: string;
1032
1032
  }
1033
+ /**
1034
+ * A user clicks the external news source of an article
1035
+ *
1036
+ * This schema describes events sent to Segment from [[clickedExternalNewsSource]]
1037
+ *
1038
+ * @example
1039
+ * ```
1040
+ * {
1041
+ * action: "clickedExternalNewsSource",
1042
+ * context_page_owner_type: "article",
1043
+ * context_page_owner_id: "62389c0a0b01c80022eb82a1",
1044
+ * context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
1045
+ * }
1046
+ * ```
1047
+ */
1048
+ export interface ClickedExternalNewsSource {
1049
+ action: ActionType.clickedExternalNewsSource;
1050
+ context_owner_id: string;
1051
+ context_owner_slug: string;
1052
+ context_owner_type: PageOwnerType;
1053
+ destination_path: string;
1054
+ }
1055
+ /**
1056
+ * A user clicks on the sponsor of an article
1057
+ *
1058
+ * This schema describes events sent to Segment from [[clickedSponsorLink]]
1059
+ *
1060
+ * @example
1061
+ * ```
1062
+ * {
1063
+ * action: "clickedSponsorLink",
1064
+ * context_page_owner_type: "article",
1065
+ * context_page_owner_id: "62389c0a0b01c80022eb82a1",
1066
+ * context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
1067
+ * destination_path: "https://www.bmw.com/",
1068
+ * }
1069
+ * ```
1070
+ */
1071
+ export interface ClickedSponsorLink {
1072
+ action: ActionType.clickedSponsorLink;
1073
+ context_owner_id: string;
1074
+ context_owner_slug: string;
1075
+ context_owner_type: PageOwnerType;
1076
+ destination_path: string;
1077
+ }
1078
+ /**
1079
+ * A user clicks to share an article
1080
+ *
1081
+ * This schema describes events sent to Segment from [[clickedArticleShare]]
1082
+ *
1083
+ * @example
1084
+ * ```
1085
+ * {
1086
+ * action: "clickedArticleShare",
1087
+ * context_page_owner_type: "article",
1088
+ * context_page_owner_id: "62389c0a0b01c80022eb82a1",
1089
+ * context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
1090
+ * }
1091
+ * ```
1092
+ */
1093
+ export interface ClickedArticleShare {
1094
+ action: ActionType.clickedArticleShare;
1095
+ context_owner_id: string;
1096
+ context_owner_slug: string;
1097
+ context_owner_type: PageOwnerType;
1098
+ }
1099
+ /**
1100
+ * A user clicks to play a video
1101
+ *
1102
+ * This schema describes events sent to Segment from [[clickedPlayVideo]]
1103
+ *
1104
+ * @example
1105
+ * ```
1106
+ * {
1107
+ * action: "clickedPlayVideo",
1108
+ * context_page_owner_type: "article",
1109
+ * context_page_owner_id: "62389c0a0b01c80022eb82a1",
1110
+ * context_page_owner_slug: "artsy-editorial-making-generative-art-changed-understanding",
1111
+ * }
1112
+ * ```
1113
+ */
1114
+ export interface ClickedPlayVideo {
1115
+ action: ActionType.clickedPlayVideo;
1116
+ context_owner_id: string;
1117
+ context_owner_slug: string;
1118
+ context_owner_type: PageOwnerType;
1119
+ }
1120
+ /**
1121
+ * A user an entity within a tooltip. `type` will be an artist, gene, or partner.
1122
+ *
1123
+ * This schema describes events sent to Segment from [[clickedTooltip]]
1124
+ *
1125
+ * @example
1126
+ * ```
1127
+ * {
1128
+ * action: "clickedTooltip",
1129
+ * context_page_owner_type: "artist",
1130
+ * context_page_owner_id: "4d8b926a4eb68a1b2c0000ae",
1131
+ * context_page_owner_slug: "damien-hirst",
1132
+ * destination_path: "/artist/damien-hirst",
1133
+ * type: "artist",
1134
+ * }
1135
+ * ```
1136
+ */
1137
+ export interface ClickedTooltip {
1138
+ action: ActionType.clickedTooltip;
1139
+ context_owner_id: string;
1140
+ context_owner_slug: string;
1141
+ context_owner_type: PageOwnerType;
1142
+ destination_path: string;
1143
+ type: string;
1144
+ }
@@ -0,0 +1,10 @@
1
+ import { ContextModule } from "../Values/ContextModule";
2
+ import { OwnerType } from "../Values/OwnerType";
3
+ import { ActionType } from ".";
4
+ export interface Impression {
5
+ action: ActionType.impression;
6
+ context_module: ContextModule;
7
+ context_owner_id: string;
8
+ context_owner_slug: string;
9
+ context_owner_type: OwnerType;
10
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,7 +1,7 @@
1
1
  import { AddToCalendar } from "./AddToCalendar";
2
2
  import { AuctionPageView, BidPageView, ClickedActiveBid, ClickedRegisterToBid, ConfirmBid, ConfirmRegistrationPageview, EnterLiveAuction, MaxBidSelected, RegistrationPageView, RegistrationSubmitted } from "./Auction";
3
3
  import { AuthImpression, CreatedAccount, OnboardingUserInputData, ResetYourPassword, SuccessfullyLoggedIn } from "./Authentication";
4
- import { ClickedAddNewShippingAddress, ClickedAddWorksToFair, ClickedAppDownload, ClickedArticleGroup, ClickedArtistGroup, ClickedArtistSeriesGroup, ClickedArtworkGroup, ClickedAuctionGroup, ClickedBuyerProtection, ClickedChangePage, ClickedChangePaymentMethod, ClickedChangeShippingAddress, ClickedChangeShippingMethod, ClickedCollectionGroup, ClickedCreateAlert, ClickedDeliveryMethod, ClickedEditArtwork, ClickedExpansionToggle, ClickedFairCard, ClickedFairGroup, ClickedGalleryGroup, ClickedLoadMore, ClickedMainArtworkGrid, ClickedNavigationTab, ClickedOfferOption, ClickedOnArtworkShippingUnitsDropdown, ClickedOnArtworkShippingWeight, ClickedOnFramedMeasurements, ClickedOnFramedMeasurementsDropdown, ClickedOnSubmitOrder, ClickedPartnerCard, ClickedPaymentMethod, ClickedPaymentDetails, ClickedPromoSpace, ClickedSelectShippingOption, ClickedShippingAddress, ClickedShowGroup, ClickedShowMore, ClickedSnooze, ClickedVerifyIdentity, ClickedViewingRoomCard } from "./Click";
4
+ import { ClickedAddNewShippingAddress, ClickedAddWorksToFair, ClickedAppDownload, ClickedArticleGroup, ClickedArtistGroup, ClickedArtistSeriesGroup, ClickedArtworkGroup, ClickedAuctionGroup, ClickedBuyerProtection, ClickedChangePage, ClickedChangePaymentMethod, ClickedChangeShippingAddress, ClickedChangeShippingMethod, ClickedCollectionGroup, ClickedCreateAlert, ClickedDeliveryMethod, ClickedEditArtwork, ClickedExpansionToggle, ClickedFairCard, ClickedFairGroup, ClickedGalleryGroup, ClickedLoadMore, ClickedMainArtworkGrid, ClickedNavigationTab, ClickedOfferOption, ClickedOnArtworkShippingUnitsDropdown, ClickedOnArtworkShippingWeight, ClickedOnFramedMeasurements, ClickedOnFramedMeasurementsDropdown, ClickedOnSubmitOrder, ClickedPartnerCard, ClickedPaymentDetails, ClickedPaymentMethod, ClickedPromoSpace, ClickedSelectShippingOption, ClickedShippingAddress, ClickedShowGroup, ClickedShowMore, ClickedSnooze, ClickedVerifyIdentity, ClickedViewingRoomCard } from "./Click";
5
5
  import { ArtworkDetailsCompleted, ConsignmentSubmitted, SubmitAnotherArtwork, UploadPhotosCompleted, ViewArtworkMyCollection } from "./Consignments";
6
6
  import { FocusedOnConversationMessageInput, SentConversationMessage, TappedInboxConversation, TappedMakeOffer, TappedViewOffer } from "./Conversations";
7
7
  import { ExperimentViewed } from "./ExperimentViewed";
@@ -76,6 +76,10 @@ export declare enum ActionType {
76
76
  * Corresponds to {@link ClickedArticleGroup}
77
77
  */
78
78
  clickedArticleGroup = "clickedArticleGroup",
79
+ /**
80
+ * Corresponds to {@link ClickedArticleShare}
81
+ */
82
+ clickedArticleShare = "clickedArticleShare",
79
83
  /**
80
84
  * Corresponds to {@link ClickedArtistGroup}
81
85
  */
@@ -132,6 +136,10 @@ export declare enum ActionType {
132
136
  * Corresponds to {@link ClickedExpansionToggle}
133
137
  */
134
138
  clickedExpansionToggle = "clickedExpansionToggle",
139
+ /**
140
+ * Corresponds to {@link ClickedExternalNewsSource}
141
+ */
142
+ clickedExternalNewsSource = "clickedExternalNewsSource",
135
143
  /**
136
144
  * Corresponds to {@link ClickedFairCard}
137
145
  */
@@ -189,6 +197,10 @@ export declare enum ActionType {
189
197
  * Corresponds to {@link ClickedPartnerCard}
190
198
  */
191
199
  clickedPartnerCard = "clickedPartnerCard",
200
+ /**
201
+ * Corresponds to {@link ClickedPlayVideo}
202
+ */
203
+ clickedPlayVideo = "clickedPlayVideo",
192
204
  /**
193
205
  * Corresponds to {@link ClickedPromoSpace}
194
206
  */
@@ -221,6 +233,14 @@ export declare enum ActionType {
221
233
  * Corresponds to {@link ClickedShowMore}
222
234
  */
223
235
  clickedShowMore = "clickedShowMore",
236
+ /**
237
+ * Corresponds to {@link ClickedSponsorLink}
238
+ */
239
+ clickedSponsorLink = "clickedSponsorLink",
240
+ /**
241
+ * Corresponds to {@link ClickedTooltip}
242
+ */
243
+ clickedTooltip = "clickedTooltip",
224
244
  /**
225
245
  * Corresponds to {@link ClickedVerifyIdentiity}
226
246
  */
@@ -309,6 +329,10 @@ export declare enum ActionType {
309
329
  * Corresponds to {@link FollowedPartner}
310
330
  */
311
331
  followedPartner = "followedPartner",
332
+ /**
333
+ * Corresponds to {@link Impression}
334
+ */
335
+ impression = "impression",
312
336
  /**
313
337
  * Corresponds to {@link MaxBidSelected}
314
338
  */
@@ -32,6 +32,7 @@ exports.ActionType = ActionType;
32
32
  ActionType["clickedAddWorksToFair"] = "clickedAddWorksToFair";
33
33
  ActionType["clickedAppDownload"] = "clickedAppDownload";
34
34
  ActionType["clickedArticleGroup"] = "clickedArticleGroup";
35
+ ActionType["clickedArticleShare"] = "clickedArticleShare";
35
36
  ActionType["clickedArtistGroup"] = "clickedArtistGroup";
36
37
  ActionType["clickedArtistSeriesGroup"] = "clickedArtistSeriesGroup";
37
38
  ActionType["clickedArtworkGroup"] = "clickedArtworkGroup";
@@ -46,6 +47,7 @@ exports.ActionType = ActionType;
46
47
  ActionType["clickedDeliveryMethod"] = "clickedDeliveryMethod";
47
48
  ActionType["clickedEditArtwork"] = "clickedEditArtwork";
48
49
  ActionType["clickedExpansionToggle"] = "clickedExpansionToggle";
50
+ ActionType["clickedExternalNewsSource"] = "clickedExternalNewsSource";
49
51
  ActionType["clickedFairCard"] = "clickedFairCard";
50
52
  ActionType["clickedFairGroup"] = "clickedFairGroup";
51
53
  ActionType["clickedGalleryGroup"] = "clickedGalleryGroup";
@@ -60,6 +62,7 @@ exports.ActionType = ActionType;
60
62
  ActionType["clickedOnSubmitOrder"] = "clickedOnSubmitOrder";
61
63
  ActionType["clickedSnooze"] = "clickedSnooze";
62
64
  ActionType["clickedPartnerCard"] = "clickedPartnerCard";
65
+ ActionType["clickedPlayVideo"] = "clickedPlayVideo";
63
66
  ActionType["clickedPaymentMethod"] = "clickedPaymentMethod";
64
67
  ActionType["clickedPaymentDetails"] = "clickedPaymentDetails";
65
68
  ActionType["clickedPromoSpace"] = "clickedPromoSpace";
@@ -68,6 +71,8 @@ exports.ActionType = ActionType;
68
71
  ActionType["clickedShippingAddress"] = "clickedShippingAddress";
69
72
  ActionType["clickedShowGroup"] = "clickedShowGroup";
70
73
  ActionType["clickedShowMore"] = "clickedShowMore";
74
+ ActionType["clickedSponsorLink"] = "clickedSponsorLink";
75
+ ActionType["clickedTooltip"] = "clickedTooltip";
71
76
  ActionType["clickedVerifyIdentity"] = "clickedVerifyIdentity";
72
77
  ActionType["clickedViewingRoomCard"] = "clickedViewingRoomCard";
73
78
  ActionType["commercialFilterParamsChanged"] = "commercialFilterParamsChanged";
@@ -90,6 +95,7 @@ exports.ActionType = ActionType;
90
95
  ActionType["followedFair"] = "followedFair";
91
96
  ActionType["followedGene"] = "followedGene";
92
97
  ActionType["followedPartner"] = "followedPartner";
98
+ ActionType["impression"] = "impression";
93
99
  ActionType["maxBidSelected"] = "maxBidSelected";
94
100
  ActionType["onboardingUserInputData"] = "onboardingUserInputData";
95
101
  ActionType["priceDatabaseFilterParamsChanged"] = "priceDatabaseFilterParamsChanged";
@@ -7,6 +7,7 @@
7
7
  export declare enum ContextModule {
8
8
  aboutTheWork = "aboutTheWork",
9
9
  aboutThisAuction = "aboutThisAuction",
10
+ adServer = "adServer",
10
11
  articleArtist = "articleArtist",
11
12
  articleRail = "articleRail",
12
13
  articles = "articles",
@@ -21,6 +21,7 @@ exports.ContextModule = ContextModule;
21
21
  (function (ContextModule) {
22
22
  ContextModule["aboutTheWork"] = "aboutTheWork";
23
23
  ContextModule["aboutThisAuction"] = "aboutThisAuction";
24
+ ContextModule["adServer"] = "adServer";
24
25
  ContextModule["articleArtist"] = "articleArtist";
25
26
  ContextModule["articleRail"] = "articleRail";
26
27
  ContextModule["articles"] = "articles";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.46.0",
3
+ "version": "4.47.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {