@artsy/cohesion 4.30.0 → 4.33.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,51 @@
1
+ # v4.33.0 (Wed Mar 02 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Add myCollectionComparableWorks context module [#306](https://github.com/artsy/cohesion/pull/306) ([@olerichter00](https://github.com/olerichter00))
6
+
7
+ #### 🏠 Internal
8
+
9
+ - chore(deps): update dep typescript from 4.5.5 to v4.6.2 [#303](https://github.com/artsy/cohesion/pull/303) ([@renovate-bot](https://github.com/renovate-bot))
10
+
11
+ #### Authors: 2
12
+
13
+ - Ole ([@olerichter00](https://github.com/olerichter00))
14
+ - WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
15
+
16
+ ---
17
+
18
+ # v4.32.0 (Thu Feb 24 2022)
19
+
20
+ #### 🚀 Enhancement
21
+
22
+ - feat(cx-2353): events for request price estimate [#301](https://github.com/artsy/cohesion/pull/301) ([@lordkiz](https://github.com/lordkiz))
23
+ - [AS-2900] Updates App submission flow events [#299](https://github.com/artsy/cohesion/pull/299) ([@abhitip](https://github.com/abhitip))
24
+
25
+ #### Authors: 2
26
+
27
+ - Abhiti Prabahar ([@abhitip](https://github.com/abhitip))
28
+ - Kizito Egeonu ([@lordkiz](https://github.com/lordkiz))
29
+
30
+ ---
31
+
32
+ # v4.31.0 (Mon Jan 31 2022)
33
+
34
+ #### 🚀 Enhancement
35
+
36
+ - chore: remove deprecated clickedArtistSeriesGroup helper [#298](https://github.com/artsy/cohesion/pull/298) ([@gkartalis](https://github.com/gkartalis))
37
+
38
+ #### 🏠 Internal
39
+
40
+ - chore(deps): update dep typescript from 4.5.4 to v4.5.5 [#297](https://github.com/artsy/cohesion/pull/297) ([@renovate-bot](https://github.com/renovate-bot))
41
+
42
+ #### Authors: 2
43
+
44
+ - George Kartalis ([@gkartalis](https://github.com/gkartalis))
45
+ - WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
46
+
47
+ ---
48
+
1
49
  # v4.30.0 (Thu Jan 06 2022)
2
50
 
3
51
  #### 🚀 Enhancement
@@ -1,10 +1,8 @@
1
1
  export * from "./AddToCalendar";
2
2
  export * from "./Share";
3
- export * from "./Click/ClickedArtistSeriesGroup";
4
3
  export * from "./Click/ClickedCollectionGroup";
5
4
  export * from "./Click/ClickedEntityGroup";
6
5
  export * from "./Click/ClickedMainArtworkGrid";
7
- export * from "./Click/ClickedArtistSeriesGroup";
8
6
  export * from "./Click/ClickedShowMore";
9
7
  export * from "./Conversations/FocusedOnConversationMessageInput";
10
8
  export * from "./Conversations/SentConversationMessage";
@@ -28,18 +28,6 @@ Object.keys(_Share).forEach(function (key) {
28
28
  });
29
29
  });
30
30
 
31
- var _ClickedArtistSeriesGroup = require("./Click/ClickedArtistSeriesGroup");
32
-
33
- Object.keys(_ClickedArtistSeriesGroup).forEach(function (key) {
34
- if (key === "default" || key === "__esModule") return;
35
- Object.defineProperty(exports, key, {
36
- enumerable: true,
37
- get: function get() {
38
- return _ClickedArtistSeriesGroup[key];
39
- }
40
- });
41
- });
42
-
43
31
  var _ClickedCollectionGroup = require("./Click/ClickedCollectionGroup");
44
32
 
45
33
  Object.keys(_ClickedCollectionGroup).forEach(function (key) {
@@ -14,8 +14,8 @@ import { ActionType } from ".";
14
14
  * ```
15
15
  * {
16
16
  * action: "consignmentSubmitted",
17
- * context_module: "consignSubmissionFlow",
18
- * context_owner_type: "consignmentSubmission",
17
+ * context_module: "contactInformation",
18
+ * context_owner_type: "consignmentFlow",
19
19
  * submission_id: "66355",
20
20
  * user_email: "xx@gmail.com"
21
21
  * user_id: "5bd8b675776bd6002c86526c"
@@ -24,8 +24,8 @@ import { ActionType } from ".";
24
24
  */
25
25
  export interface ConsignmentSubmitted {
26
26
  action: ActionType.consignmentSubmitted;
27
- context_module: ContextModule.consignSubmissionFlow;
28
- context_owner_type: OwnerType.consignmentSubmission;
27
+ context_module: ContextModule.contactInformation;
28
+ context_owner_type: OwnerType.consignmentFlow;
29
29
  submission_id: string;
30
30
  user_email: string;
31
31
  user_id?: string;
@@ -39,8 +39,8 @@ export interface ConsignmentSubmitted {
39
39
  * ```
40
40
  * {
41
41
  * action: "artworkDetailsCompleted",
42
- * context_module: "consignSubmissionFlow",
43
- * context_owner_type: "consignmentSubmission",
42
+ * context_module: "artworkDetails",
43
+ * context_owner_type: "consignmentFlow",
44
44
  * submission_id: "52521",
45
45
  * user_email: "kieranmbh@gmail.com"
46
46
  * user_id: "5cd6b173746be6109c86321d"
@@ -49,8 +49,8 @@ export interface ConsignmentSubmitted {
49
49
  */
50
50
  export interface ArtworkDetailsCompleted {
51
51
  action: ActionType.artworkDetailsCompleted;
52
- context_module: ContextModule.consignSubmissionFlow;
53
- context_owner_type: OwnerType.consignmentSubmission;
52
+ context_module: ContextModule.artworkDetails;
53
+ context_owner_type: OwnerType.consignmentFlow;
54
54
  submission_id: string;
55
55
  user_email: string;
56
56
  user_id?: string;
@@ -64,8 +64,8 @@ export interface ArtworkDetailsCompleted {
64
64
  * ```
65
65
  * {
66
66
  * action: "uploadPhotosCompleted",
67
- * context_module: "consignSubmissionFlow",
68
- * context_owner_type: "consignmentSubmission",
67
+ * context_module: "uploadPhotos",
68
+ * context_owner_type: "consignmentFlow",
69
69
  * submission_id: "52521",
70
70
  * user_email: "kieranmbh@gmail.com"
71
71
  * user_id: "5cd6b173746be6109c86321d"
@@ -74,33 +74,8 @@ export interface ArtworkDetailsCompleted {
74
74
  */
75
75
  export interface UploadPhotosCompleted {
76
76
  action: ActionType.uploadPhotosCompleted;
77
- context_module: ContextModule.consignSubmissionFlow;
78
- context_owner_type: OwnerType.consignmentSubmission;
79
- submission_id: string;
80
- user_email: string;
81
- user_id?: string;
82
- }
83
- /**
84
- * Third step of the consignment submission flow; user adds contact information for their artwork.
85
- *
86
- * This schema describes events sent to Segment from [[contactInformationCompleted]]
87
- *
88
- * @example
89
- * ```
90
- * {
91
- * action: "contactInformationCompleted",
92
- * context_module: "consignSubmissionFlow",
93
- * context_owner_type: "consignmentSubmission",
94
- * submission_id: "52521",
95
- * user_email: "kieranmbh@gmail.com"
96
- * user_id: "5cd6b173746be6109c86321d"
97
- * }
98
- * ```
99
- */
100
- export interface ContactInformationCompleted {
101
- action: ActionType.contactInformationCompleted;
102
- context_module: ContextModule.consignSubmissionFlow;
103
- context_owner_type: OwnerType.consignmentSubmission;
77
+ context_module: ContextModule.uploadPhotos;
78
+ context_owner_type: OwnerType.consignmentFlow;
104
79
  submission_id: string;
105
80
  user_email: string;
106
81
  user_id?: string;
@@ -114,7 +89,6 @@ export interface ContactInformationCompleted {
114
89
  * ```
115
90
  * {
116
91
  * action: "submitAnotherArtwork",
117
- * context_module: "consignSubmissionFlow",
118
92
  * context_owner_type: "consignmentSubmission",
119
93
  * submission_id: "52521",
120
94
  * user_email: "kieranmbh@gmail.com"
@@ -124,7 +98,6 @@ export interface ContactInformationCompleted {
124
98
  */
125
99
  export interface SubmitAnotherArtwork {
126
100
  action: ActionType.submitAnotherArtwork;
127
- context_module: ContextModule.consignSubmissionFlow;
128
101
  context_owner_type: OwnerType.consignmentSubmission;
129
102
  submission_id: string;
130
103
  user_email: string;
@@ -139,7 +112,6 @@ export interface SubmitAnotherArtwork {
139
112
  * ```
140
113
  * {
141
114
  * action: "viewArtworkMyCollection",
142
- * context_module: "consignSubmissionFlow",
143
115
  * context_owner_type: "consignmentSubmission",
144
116
  * submission_id: "52521",
145
117
  * user_email: "kieranmbh@gmail.com"
@@ -149,7 +121,6 @@ export interface SubmitAnotherArtwork {
149
121
  */
150
122
  export interface ViewArtworkMyCollection {
151
123
  action: ActionType.viewArtworkMyCollection;
152
- context_module: ContextModule.consignSubmissionFlow;
153
124
  context_owner_type: OwnerType.consignmentSubmission;
154
125
  submission_id: string;
155
126
  user_email: string;
@@ -149,3 +149,29 @@ export interface TappedMyCollectionAddArtworkArtist {
149
149
  context_screen_owner_id?: string;
150
150
  context_screen_owner_slug?: string;
151
151
  }
152
+ /**
153
+ * A user taps on the “request a price estimate” banner
154
+ *
155
+ * This schema describes events sent to Segment from [[tappedRequestPriceEstimate]]
156
+ *
157
+ * @example
158
+ * ```
159
+ * {
160
+ * action: "tappedRequestPriceEstimate",
161
+ * context_module: "myCollectionArtworkInsights",
162
+ * context_screen: "myCollectionArtwork",
163
+ * context_screen_owner_id: "5fad78273c8451000d0c53b9"
164
+ * context_screen_owner_slug: "andy-warhol"
165
+ * demand_index: 8.9
166
+ *
167
+ * }
168
+ * ```
169
+ */
170
+ export interface TappedRequestPriceEstimate {
171
+ action: ActionType.tappedRequestPriceEstimate;
172
+ context_screen: OwnerType.myCollectionArtwork;
173
+ context_module: ContextModule.myCollectionArtworkInsights;
174
+ context_screen_owner_id?: string;
175
+ context_screen_owner_slug?: string;
176
+ demand_index?: number;
177
+ }
@@ -0,0 +1,32 @@
1
+ import { ContextModule } from "../Values/ContextModule";
2
+ import { OwnerType } from "../Values/OwnerType";
3
+ import { ActionType } from ".";
4
+ /**
5
+ * Schemas describing events for specific user experience design types.
6
+ * @packageDocumentation
7
+ */
8
+ /**
9
+ * A user expands or collapses an accordion design, like in the consignments flow.
10
+ *
11
+ * This schema describes events sent to Segment from [[toggledAccordion]].
12
+ *
13
+ * @example
14
+ * ```
15
+ * {
16
+ * action: "toggledAccordion",
17
+ * context_module: "artworkDetailsCompleted"
18
+ * context_owner_type: "consignmentFlow",
19
+ * subject: "Artwork Details"
20
+ * expand: TRUE
21
+ * }
22
+ * ```
23
+ */
24
+ export interface ToggledAccordion {
25
+ action: ActionType.toggledAccordion;
26
+ context_module: ContextModule;
27
+ context_owner_type: OwnerType;
28
+ context_owner_id?: string;
29
+ context_owner_slug?: string;
30
+ subject: string;
31
+ expand: boolean;
32
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,10 +1,10 @@
1
1
  import { AddToCalendar } from "./AddToCalendar";
2
2
  import { AuthImpression, CreatedAccount, OnboardingUserInputData, ResetYourPassword, SuccessfullyLoggedIn } from "./Authentication";
3
3
  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, ClickedPromoSpace, ClickedSelectShippingOption, ClickedShippingAddress, ClickedShowGroup, ClickedShowMore, ClickedSnooze, ClickedVerifyIdentity, ClickedViewingRoomCard } from "./Click";
4
- import { ArtworkDetailsCompleted, ConsignmentSubmitted, ContactInformationCompleted, SubmitAnotherArtwork, UploadPhotosCompleted, ViewArtworkMyCollection } from "./Consignments";
4
+ import { ArtworkDetailsCompleted, ConsignmentSubmitted, SubmitAnotherArtwork, UploadPhotosCompleted, ViewArtworkMyCollection } from "./Consignments";
5
5
  import { FocusedOnConversationMessageInput, SentConversationMessage, TappedInboxConversation, TappedMakeOffer, TappedViewOffer } from "./Conversations";
6
6
  import { AuctionResultsFilterParamsChanged, CommercialFilterParamsChanged, PriceDatabaseFilterParamsChanged } from "./FilterAndSort";
7
- import { AddCollectedArtwork, DeleteCollectedArtwork, EditCollectedArtwork, TappedCollectedArtwork, TappedCollectedArtworkImages } from "./MyCollection";
7
+ import { AddCollectedArtwork, DeleteCollectedArtwork, EditCollectedArtwork, TappedCollectedArtwork, TappedCollectedArtworkImages, TappedRequestPriceEstimate } from "./MyCollection";
8
8
  import { PromptForReview } from "./PromptForReview";
9
9
  import { DeletedSavedSearch, EditedSavedSearch } from "./SavedSearch";
10
10
  import { FollowEvents } from "./SavesAndFollows";
@@ -13,12 +13,13 @@ import { Share } from "./Share";
13
13
  import { SaleScreenLoadComplete, Screen, TimeOnPage } from "./System";
14
14
  import { TappedArticleGroup, TappedArtistGroup, TappedArtistSeriesGroup, TappedArtworkGroup, TappedAuctionGroup, TappedAuctionResultGroup, TappedBid, TappedBuyNow, TappedCollectionGroup, TappedConsign, TappedContactGallery, TappedCreateAlert, TappedExploreGroup, TappedFairCard, TappedFairGroup, TappedInfoBubble, TappedLink, TappedMainArtworkGrid, TappedNavigationTab, TappedPartnerCard, TappedPromoSpace, TappedSell, TappedShowMore, TappedTabBar, TappedVerifyIdentity, TappedViewingRoomCard, TappedViewingRoomGroup } from "./Tap";
15
15
  import { ToggledNotification, ToggledSavedSearch } from "./Toggle";
16
+ import { ToggledAccordion } from "./UserExperienceInteractions";
16
17
  /**
17
18
  * Master list of valid schemas for analytics actions
18
19
  *
19
20
  * Each event describes one ActionType
20
21
  */
21
- export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionResultsFilterParamsChanged | AuthImpression | CreatedAccount | 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 | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPromoSpace | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConsignmentArtistFailed | ConsignmentSubmitted | ContactInformationCompleted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | SubmitAnotherArtwork | SuccessfullyLoggedIn | TappedArticleGroup | TappedArtistGroup | TappedArtistSeriesGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionResultGroup | TappedBid | TappedBuyNow | TappedCollectedArtwork | TappedCollectedArtworkImages | TappedCollectionGroup | TappedConsign | TappedContactGallery | TappedCreateAlert | TappedExploreGroup | TappedFairCard | TappedFairGroup | TappedInboxConversation | TappedInfoBubble | TappedLink | TappedNavigationTab | TappedMainArtworkGrid | TappedMakeOffer | TappedPartnerCard | TappedPromoSpace | TappedSell | TappedShowMore | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
22
+ export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionResultsFilterParamsChanged | AuthImpression | CreatedAccount | 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 | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPromoSpace | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConsignmentArtistFailed | ConsignmentSubmitted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | SubmitAnotherArtwork | SuccessfullyLoggedIn | TappedArticleGroup | TappedArtistGroup | TappedArtistSeriesGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionResultGroup | TappedBid | TappedBuyNow | TappedCollectedArtwork | TappedCollectedArtworkImages | TappedCollectionGroup | TappedConsign | TappedContactGallery | TappedCreateAlert | TappedExploreGroup | TappedFairCard | TappedFairGroup | TappedInboxConversation | TappedInfoBubble | TappedLink | TappedNavigationTab | TappedMainArtworkGrid | TappedMakeOffer | TappedPartnerCard | TappedPromoSpace | TappedRequestPriceEstimate | TappedSell | TappedShowMore | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledAccordion | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
22
23
  /**
23
24
  * The top-level actions an Event describes.
24
25
  *
@@ -442,6 +443,10 @@ export declare enum ActionType {
442
443
  * Corresponds to {@link TappedRegisterToBid}
443
444
  */
444
445
  tappedRegisterToBid = "tappedRegisterToBid",
446
+ /**
447
+ * Corresponds to {@link TappedRequestPriceEstimate}
448
+ */
449
+ tappedRequestPriceEstimate = "tappedRequestPriceEstimate",
445
450
  /**
446
451
  * Corresponds to {@link TappedSell}
447
452
  */
@@ -474,6 +479,10 @@ export declare enum ActionType {
474
479
  * Corresponds to {@link TimeOnPage}
475
480
  */
476
481
  timeOnPage = "timeOnPage",
482
+ /**
483
+ * Corresponds to {@link ToggledAccordion}
484
+ */
485
+ toggledAccordion = "toggledAccordion",
477
486
  /**
478
487
  * Corresponds to {@link ToggledNotification}
479
488
  */
@@ -124,6 +124,7 @@ exports.ActionType = ActionType;
124
124
  ActionType["tappedPartnerCard"] = "tappedPartnerCard";
125
125
  ActionType["tappedPromoSpace"] = "tappedPromoSpace";
126
126
  ActionType["tappedRegisterToBid"] = "tappedRegisterToBid";
127
+ ActionType["tappedRequestPriceEstimate"] = "tappedRequestPriceEstimate";
127
128
  ActionType["tappedSell"] = "tappedSell";
128
129
  ActionType["tappedShowMore"] = "tappedShowMore";
129
130
  ActionType["tappedTabBar"] = "tappedTabBar";
@@ -132,6 +133,7 @@ exports.ActionType = ActionType;
132
133
  ActionType["tappedViewingRoomGroup"] = "tappedViewingRoomGroup";
133
134
  ActionType["tappedViewOffer"] = "tappedViewOffer";
134
135
  ActionType["timeOnPage"] = "timeOnPage";
136
+ ActionType["toggledAccordion"] = "toggledAccordion";
135
137
  ActionType["toggledNotification"] = "toggledNotification";
136
138
  ActionType["toggledSavedSearch"] = "toggledSavedSearch";
137
139
  ActionType["unfollowedArtist"] = "unfollowedArtist";
@@ -19,6 +19,7 @@ export declare enum ContextModule {
19
19
  artistSeriesTab = "artistSeriesTab",
20
20
  artistsTab = "artistsTab",
21
21
  artistsToFollowRail = "artistsToFollowRail",
22
+ artworkDetails = "artworkDetails",
22
23
  artworkGrid = "artworkGrid",
23
24
  artworkImage = "artworkImage",
24
25
  artworkMetadata = "artworkMetadata",
@@ -48,6 +49,7 @@ export declare enum ContextModule {
48
49
  collectionDescription = "collectionDescription",
49
50
  collectionRail = "collectionRail",
50
51
  consignSubmissionFlow = "consignSubmissionFlow",
52
+ contactInformation = "contactInformation",
51
53
  createAlert = "createAlert",
52
54
  curatedHighlightsRail = "curatedHighlightsRail",
53
55
  currentAuctions = "currentAuctions",
@@ -70,6 +72,7 @@ export declare enum ContextModule {
70
72
  featuredViewingRoomsRail = "featuredViewingRoomsRail",
71
73
  filterScreen = "filterScreen",
72
74
  footer = "footer",
75
+ frequentlyAskedQuestions = "frequentlyAskedQuestions",
73
76
  galleryBoothRail = "galleryBoothRail",
74
77
  galleryTab = "galleryTab",
75
78
  geneHeader = "geneHeader",
@@ -91,6 +94,8 @@ export declare enum ContextModule {
91
94
  moreSeriesByThisArtist = "moreSeriesByThisArtist",
92
95
  myCollectionArtwork = "myCollectionArtwork",
93
96
  myCollectionAddArtworkAddArtist = "myCollectionAddArtworkAddArtist",
97
+ myCollectionArtworkInsights = "myCollectionArtworkInsights",
98
+ myCollectionComparableWorks = "myCollectionComparableWorks",
94
99
  myCollectionHome = "myCollectionHome",
95
100
  newWorksByArtistsYouFollowRail = "newWorksByArtistsYouFollowRail",
96
101
  newWorksForYouRail = "newWorksForYouRail",
@@ -151,6 +156,7 @@ export declare enum ContextModule {
151
156
  trendingArtistsRail = "trendingArtistsRail",
152
157
  trendingLots = "trendingLots",
153
158
  upcomingAuctions = "upcomingAuctions",
159
+ uploadPhotos = "uploadPhotos",
154
160
  viewingRoom = "viewingRoom",
155
161
  voltArtworksEdit = "voltArtworksEdit",
156
162
  worksByArtistsYouFollowRail = "worksByArtistsYouFollowRail",
@@ -33,6 +33,7 @@ exports.ContextModule = ContextModule;
33
33
  ContextModule["artistSeriesTab"] = "artistSeriesTab";
34
34
  ContextModule["artistsTab"] = "artistsTab";
35
35
  ContextModule["artistsToFollowRail"] = "artistsToFollowRail";
36
+ ContextModule["artworkDetails"] = "artworkDetails";
36
37
  ContextModule["artworkGrid"] = "artworkGrid";
37
38
  ContextModule["artworkImage"] = "artworkImage";
38
39
  ContextModule["artworkMetadata"] = "artworkMetadata";
@@ -62,6 +63,7 @@ exports.ContextModule = ContextModule;
62
63
  ContextModule["collectionDescription"] = "collectionDescription";
63
64
  ContextModule["collectionRail"] = "collectionRail";
64
65
  ContextModule["consignSubmissionFlow"] = "consignSubmissionFlow";
66
+ ContextModule["contactInformation"] = "contactInformation";
65
67
  ContextModule["createAlert"] = "createAlert";
66
68
  ContextModule["curatedHighlightsRail"] = "curatedHighlightsRail";
67
69
  ContextModule["currentAuctions"] = "currentAuctions";
@@ -84,6 +86,7 @@ exports.ContextModule = ContextModule;
84
86
  ContextModule["featuredViewingRoomsRail"] = "featuredViewingRoomsRail";
85
87
  ContextModule["filterScreen"] = "filterScreen";
86
88
  ContextModule["footer"] = "footer";
89
+ ContextModule["frequentlyAskedQuestions"] = "frequentlyAskedQuestions";
87
90
  ContextModule["galleryBoothRail"] = "galleryBoothRail";
88
91
  ContextModule["galleryTab"] = "galleryTab";
89
92
  ContextModule["geneHeader"] = "geneHeader";
@@ -105,6 +108,8 @@ exports.ContextModule = ContextModule;
105
108
  ContextModule["moreSeriesByThisArtist"] = "moreSeriesByThisArtist";
106
109
  ContextModule["myCollectionArtwork"] = "myCollectionArtwork";
107
110
  ContextModule["myCollectionAddArtworkAddArtist"] = "myCollectionAddArtworkAddArtist";
111
+ ContextModule["myCollectionArtworkInsights"] = "myCollectionArtworkInsights";
112
+ ContextModule["myCollectionComparableWorks"] = "myCollectionComparableWorks";
108
113
  ContextModule["myCollectionHome"] = "myCollectionHome";
109
114
  ContextModule["newWorksByArtistsYouFollowRail"] = "newWorksByArtistsYouFollowRail";
110
115
  ContextModule["newWorksForYouRail"] = "newWorksForYouRail";
@@ -165,6 +170,7 @@ exports.ContextModule = ContextModule;
165
170
  ContextModule["trendingArtistsRail"] = "trendingArtistsRail";
166
171
  ContextModule["trendingLots"] = "trendingLots";
167
172
  ContextModule["upcomingAuctions"] = "upcomingAuctions";
173
+ ContextModule["uploadPhotos"] = "uploadPhotos";
168
174
  ContextModule["viewingRoom"] = "viewingRoom";
169
175
  ContextModule["voltArtworksEdit"] = "voltArtworksEdit";
170
176
  ContextModule["worksByArtistsYouFollowRail"] = "worksByArtistsYouFollowRail";
@@ -22,6 +22,7 @@ export declare enum OwnerType {
22
22
  collect = "collect",
23
23
  collection = "collection",
24
24
  collections = "collections",
25
+ consignmentFlow = "consignmentFlow",
25
26
  consignmentSubmission = "consignmentSubmission",
26
27
  consign = "consign",
27
28
  conversation = "conversation",
@@ -75,7 +76,7 @@ export declare enum OwnerType {
75
76
  /**
76
77
  * Owner types available in iOS/Android
77
78
  */
78
- export declare type ScreenOwnerType = OwnerType.allArtistSeries | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.gene | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consignmentSubmission | OwnerType.consign | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.myCollection | OwnerType.myCollectionArtwork | OwnerType.myCollectionAddArtworkArtist | OwnerType.newWorksForYou | OwnerType.onboarding | OwnerType.partner | OwnerType.profile | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.search | OwnerType.savesAndFollows | OwnerType.sell | OwnerType.show | OwnerType.shows | OwnerType.viewingRoom | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.viewingRoomArtworkPage | OwnerType.worksForYou;
79
+ export declare type ScreenOwnerType = OwnerType.allArtistSeries | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.gene | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consignmentFlow | OwnerType.consignmentSubmission | OwnerType.consign | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.myCollection | OwnerType.myCollectionArtwork | OwnerType.myCollectionAddArtworkArtist | OwnerType.newWorksForYou | OwnerType.onboarding | OwnerType.partner | OwnerType.profile | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.search | OwnerType.savesAndFollows | OwnerType.sell | OwnerType.show | OwnerType.shows | OwnerType.viewingRoom | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.viewingRoomArtworkPage | OwnerType.worksForYou;
79
80
  /**
80
81
  * Owner types available in web/mobile web
81
82
  */
@@ -40,6 +40,7 @@ exports.OwnerType = OwnerType;
40
40
  OwnerType["collect"] = "collect";
41
41
  OwnerType["collection"] = "collection";
42
42
  OwnerType["collections"] = "collections";
43
+ OwnerType["consignmentFlow"] = "consignmentFlow";
43
44
  OwnerType["consignmentSubmission"] = "consignmentSubmission";
44
45
  OwnerType["consign"] = "consign";
45
46
  OwnerType["conversation"] = "conversation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.30.0",
3
+ "version": "4.33.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -47,7 +47,7 @@
47
47
  "lint-staged": "10.1.7",
48
48
  "prettier": "2.0.5",
49
49
  "typedoc": "0.17.7",
50
- "typescript": "4.5.4"
50
+ "typescript": "4.6.2"
51
51
  },
52
52
  "dependencies": {
53
53
  "core-js": "3"
@@ -1,29 +0,0 @@
1
- import { ClickedArtistSeriesGroup, ContextModule, PageOwnerType } from "../../Schema";
2
- export interface ClickedArtistSeriesGroupArgs {
3
- contextModule: ContextModule;
4
- contextPageOwnerType: PageOwnerType;
5
- contextPageOwnerId?: string;
6
- contextPageOwnerSlug?: string;
7
- curationBoost?: boolean;
8
- destinationPageOwnerId: string;
9
- destinationPageOwnerSlug: string;
10
- horizontalSlidePosition?: number;
11
- }
12
- /**
13
- * A user clicks a grouping of artist series (web)
14
- *
15
- * @example
16
- * ```
17
- * clickedArtistSeriesGroup({
18
- * contextModule: ContextModule.artistSeriesRail
19
- * contextPageOwnerType: OwnerType.artist,
20
- * contextPageOwnerId: "5359794d2a1e86c3741001f8",
21
- * contextPageOwnerSlug: "andy-warhol",
22
- * curationBoost: true,
23
- * destinationPageOwnerId: "5359794d1a1e86c3740001f7",
24
- * destinationPageOwnerSlug: "andy-warhol-skulls",
25
- * horizontalSlidePosition: 3
26
- * })
27
- * ```
28
- */
29
- export declare const clickedArtistSeriesGroup: ({ contextModule, contextPageOwnerType, contextPageOwnerId, contextPageOwnerSlug, curationBoost, destinationPageOwnerId, destinationPageOwnerSlug, horizontalSlidePosition, }: ClickedArtistSeriesGroupArgs) => ClickedArtistSeriesGroup;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.clickedArtistSeriesGroup = void 0;
7
-
8
- var _Schema = require("../../Schema");
9
-
10
- /**
11
- * A user clicks a grouping of artist series (web)
12
- *
13
- * @example
14
- * ```
15
- * clickedArtistSeriesGroup({
16
- * contextModule: ContextModule.artistSeriesRail
17
- * contextPageOwnerType: OwnerType.artist,
18
- * contextPageOwnerId: "5359794d2a1e86c3741001f8",
19
- * contextPageOwnerSlug: "andy-warhol",
20
- * curationBoost: true,
21
- * destinationPageOwnerId: "5359794d1a1e86c3740001f7",
22
- * destinationPageOwnerSlug: "andy-warhol-skulls",
23
- * horizontalSlidePosition: 3
24
- * })
25
- * ```
26
- */
27
- var clickedArtistSeriesGroup = function clickedArtistSeriesGroup(_ref) {
28
- var contextModule = _ref.contextModule,
29
- contextPageOwnerType = _ref.contextPageOwnerType,
30
- contextPageOwnerId = _ref.contextPageOwnerId,
31
- contextPageOwnerSlug = _ref.contextPageOwnerSlug,
32
- curationBoost = _ref.curationBoost,
33
- destinationPageOwnerId = _ref.destinationPageOwnerId,
34
- destinationPageOwnerSlug = _ref.destinationPageOwnerSlug,
35
- horizontalSlidePosition = _ref.horizontalSlidePosition;
36
- return {
37
- action: _Schema.ActionType.clickedArtistSeriesGroup,
38
- context_module: contextModule,
39
- context_page_owner_id: contextPageOwnerId,
40
- context_page_owner_slug: contextPageOwnerSlug,
41
- context_page_owner_type: contextPageOwnerType,
42
- curation_boost: curationBoost || false,
43
- destination_page_owner_id: destinationPageOwnerId,
44
- destination_page_owner_slug: destinationPageOwnerSlug,
45
- destination_page_owner_type: _Schema.OwnerType.artistSeries,
46
- horizontal_slide_position: horizontalSlidePosition,
47
- type: "thumbnail"
48
- };
49
- };
50
-
51
- exports.clickedArtistSeriesGroup = clickedArtistSeriesGroup;