@artsy/cohesion 4.29.0 → 4.32.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 +43 -0
- package/dist/DeprecatedHelpers/index.d.ts +0 -2
- package/dist/DeprecatedHelpers/index.js +0 -12
- package/dist/Schema/Events/Consignments.d.ts +12 -41
- package/dist/Schema/Events/MyCollection.d.ts +26 -0
- package/dist/Schema/Events/Tap.d.ts +2 -0
- package/dist/Schema/Events/UserExperienceInteractions.d.ts +32 -0
- package/dist/Schema/Events/UserExperienceInteractions.js +1 -0
- package/dist/Schema/Events/index.d.ts +12 -3
- package/dist/Schema/Events/index.js +2 -0
- package/dist/Schema/Values/ContextModule.d.ts +6 -0
- package/dist/Schema/Values/ContextModule.js +6 -0
- package/dist/Schema/Values/OwnerType.d.ts +2 -1
- package/dist/Schema/Values/OwnerType.js +1 -0
- package/package.json +2 -2
- package/dist/DeprecatedHelpers/Click/ClickedArtistSeriesGroup.d.ts +0 -29
- package/dist/DeprecatedHelpers/Click/ClickedArtistSeriesGroup.js +0 -51
- package/dist/DeprecatedHelpers/Click/__tests__/ClickedArtistSeriesGroup.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
# v4.32.0 (Thu Feb 24 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(cx-2353): events for request price estimate [#301](https://github.com/artsy/cohesion/pull/301) ([@lordkiz](https://github.com/lordkiz))
|
|
6
|
+
- [AS-2900] Updates App submission flow events [#299](https://github.com/artsy/cohesion/pull/299) ([@abhitip](https://github.com/abhitip))
|
|
7
|
+
|
|
8
|
+
#### Authors: 2
|
|
9
|
+
|
|
10
|
+
- Abhiti Prabahar ([@abhitip](https://github.com/abhitip))
|
|
11
|
+
- Kizito Egeonu ([@lordkiz](https://github.com/lordkiz))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# v4.31.0 (Mon Jan 31 2022)
|
|
16
|
+
|
|
17
|
+
#### 🚀 Enhancement
|
|
18
|
+
|
|
19
|
+
- chore: remove deprecated clickedArtistSeriesGroup helper [#298](https://github.com/artsy/cohesion/pull/298) ([@gkartalis](https://github.com/gkartalis))
|
|
20
|
+
|
|
21
|
+
#### 🏠 Internal
|
|
22
|
+
|
|
23
|
+
- 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))
|
|
24
|
+
|
|
25
|
+
#### Authors: 2
|
|
26
|
+
|
|
27
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
28
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
# v4.30.0 (Thu Jan 06 2022)
|
|
33
|
+
|
|
34
|
+
#### 🚀 Enhancement
|
|
35
|
+
|
|
36
|
+
- feat(FX-3675): updates in TappedCreateAlert for improved saved search [#293](https://github.com/artsy/cohesion/pull/293) ([@dimatretyak](https://github.com/dimatretyak))
|
|
37
|
+
|
|
38
|
+
#### Authors: 1
|
|
39
|
+
|
|
40
|
+
- Dima Tretyak (Dzmitry Tratsiak) ([@dimatretyak](https://github.com/dimatretyak))
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
1
44
|
# v4.29.0 (Wed Jan 05 2022)
|
|
2
45
|
|
|
3
46
|
#### 🚀 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: "
|
|
18
|
-
* context_owner_type: "
|
|
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.
|
|
28
|
-
context_owner_type: OwnerType.
|
|
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: "
|
|
43
|
-
* context_owner_type: "
|
|
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.
|
|
53
|
-
context_owner_type: OwnerType.
|
|
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: "
|
|
68
|
-
* context_owner_type: "
|
|
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.
|
|
78
|
-
context_owner_type: OwnerType.
|
|
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
|
+
}
|
|
@@ -650,6 +650,7 @@ export interface TappedLink {
|
|
|
650
650
|
* context_screen_owner_type: "artist",
|
|
651
651
|
* context_screen_owner_id: "58de681f275b2464fcdde097",
|
|
652
652
|
* context_screen_owner_slug: "anthony-hunter",
|
|
653
|
+
* context_module: "artworkGrid",
|
|
653
654
|
* }
|
|
654
655
|
* ```
|
|
655
656
|
*/
|
|
@@ -658,6 +659,7 @@ export interface TappedCreateAlert {
|
|
|
658
659
|
context_screen_owner_type: ScreenOwnerType;
|
|
659
660
|
context_screen_owner_id?: string;
|
|
660
661
|
context_screen_owner_slug?: string;
|
|
662
|
+
context_module?: ContextModule;
|
|
661
663
|
}
|
|
662
664
|
/**
|
|
663
665
|
* A user taps "Bid" on an artwork page inside an Auction
|
|
@@ -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,
|
|
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 |
|
|
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",
|
|
@@ -68,7 +70,9 @@ export declare enum ContextModule {
|
|
|
68
70
|
featuredRail = "featuredRail",
|
|
69
71
|
featuredShowsRail = "featuredShowsRail",
|
|
70
72
|
featuredViewingRoomsRail = "featuredViewingRoomsRail",
|
|
73
|
+
filterScreen = "filterScreen",
|
|
71
74
|
footer = "footer",
|
|
75
|
+
frequentlyAskedQuestions = "frequentlyAskedQuestions",
|
|
72
76
|
galleryBoothRail = "galleryBoothRail",
|
|
73
77
|
galleryTab = "galleryTab",
|
|
74
78
|
geneHeader = "geneHeader",
|
|
@@ -90,6 +94,7 @@ export declare enum ContextModule {
|
|
|
90
94
|
moreSeriesByThisArtist = "moreSeriesByThisArtist",
|
|
91
95
|
myCollectionArtwork = "myCollectionArtwork",
|
|
92
96
|
myCollectionAddArtworkAddArtist = "myCollectionAddArtworkAddArtist",
|
|
97
|
+
myCollectionArtworkInsights = "myCollectionArtworkInsights",
|
|
93
98
|
myCollectionHome = "myCollectionHome",
|
|
94
99
|
newWorksByArtistsYouFollowRail = "newWorksByArtistsYouFollowRail",
|
|
95
100
|
newWorksForYouRail = "newWorksForYouRail",
|
|
@@ -150,6 +155,7 @@ export declare enum ContextModule {
|
|
|
150
155
|
trendingArtistsRail = "trendingArtistsRail",
|
|
151
156
|
trendingLots = "trendingLots",
|
|
152
157
|
upcomingAuctions = "upcomingAuctions",
|
|
158
|
+
uploadPhotos = "uploadPhotos",
|
|
153
159
|
viewingRoom = "viewingRoom",
|
|
154
160
|
voltArtworksEdit = "voltArtworksEdit",
|
|
155
161
|
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";
|
|
@@ -82,7 +84,9 @@ exports.ContextModule = ContextModule;
|
|
|
82
84
|
ContextModule["featuredRail"] = "featuredRail";
|
|
83
85
|
ContextModule["featuredShowsRail"] = "featuredShowsRail";
|
|
84
86
|
ContextModule["featuredViewingRoomsRail"] = "featuredViewingRoomsRail";
|
|
87
|
+
ContextModule["filterScreen"] = "filterScreen";
|
|
85
88
|
ContextModule["footer"] = "footer";
|
|
89
|
+
ContextModule["frequentlyAskedQuestions"] = "frequentlyAskedQuestions";
|
|
86
90
|
ContextModule["galleryBoothRail"] = "galleryBoothRail";
|
|
87
91
|
ContextModule["galleryTab"] = "galleryTab";
|
|
88
92
|
ContextModule["geneHeader"] = "geneHeader";
|
|
@@ -104,6 +108,7 @@ exports.ContextModule = ContextModule;
|
|
|
104
108
|
ContextModule["moreSeriesByThisArtist"] = "moreSeriesByThisArtist";
|
|
105
109
|
ContextModule["myCollectionArtwork"] = "myCollectionArtwork";
|
|
106
110
|
ContextModule["myCollectionAddArtworkAddArtist"] = "myCollectionAddArtworkAddArtist";
|
|
111
|
+
ContextModule["myCollectionArtworkInsights"] = "myCollectionArtworkInsights";
|
|
107
112
|
ContextModule["myCollectionHome"] = "myCollectionHome";
|
|
108
113
|
ContextModule["newWorksByArtistsYouFollowRail"] = "newWorksByArtistsYouFollowRail";
|
|
109
114
|
ContextModule["newWorksForYouRail"] = "newWorksForYouRail";
|
|
@@ -164,6 +169,7 @@ exports.ContextModule = ContextModule;
|
|
|
164
169
|
ContextModule["trendingArtistsRail"] = "trendingArtistsRail";
|
|
165
170
|
ContextModule["trendingLots"] = "trendingLots";
|
|
166
171
|
ContextModule["upcomingAuctions"] = "upcomingAuctions";
|
|
172
|
+
ContextModule["uploadPhotos"] = "uploadPhotos";
|
|
167
173
|
ContextModule["viewingRoom"] = "viewingRoom";
|
|
168
174
|
ContextModule["voltArtworksEdit"] = "voltArtworksEdit";
|
|
169
175
|
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.
|
|
3
|
+
"version": "4.32.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.
|
|
50
|
+
"typescript": "4.5.5"
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|