@artsy/cohesion 4.54.0 → 4.57.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 +41 -0
- package/dist/DeprecatedHelpers/index.d.ts +0 -1
- package/dist/DeprecatedHelpers/index.js +0 -12
- package/dist/Schema/Events/Click.d.ts +68 -0
- package/dist/Schema/Events/index.d.ts +10 -2
- package/dist/Schema/Events/index.js +2 -0
- package/dist/Schema/Values/OwnerType.d.ts +3 -2
- package/dist/Schema/Values/OwnerType.js +1 -0
- package/package.json +1 -1
- package/dist/DeprecatedHelpers/AddToCalendar.d.ts +0 -16
- package/dist/DeprecatedHelpers/AddToCalendar.js +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
# v4.57.0 (Thu Jul 07 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- chore[FX-3378]: deprecate addToCalendar helper function [#342](https://github.com/artsy/cohesion/pull/342) ([@mdole](https://github.com/mdole))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Matt Dole ([@mdole](https://github.com/mdole))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.56.0 (Tue Jul 05 2022)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- [AS-3293] Adding new events for CMS tracking [#341](https://github.com/artsy/cohesion/pull/341) ([@daytavares](https://github.com/daytavares))
|
|
18
|
+
|
|
19
|
+
#### 🔩 Dependency Updates
|
|
20
|
+
|
|
21
|
+
- Bump jsdom from 16.2.2 to 16.7.0 [#340](https://github.com/artsy/cohesion/pull/340) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
|
22
|
+
|
|
23
|
+
#### Authors: 2
|
|
24
|
+
|
|
25
|
+
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
|
26
|
+
- Dayane Tavares ([@daytavares](https://github.com/daytavares))
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# v4.55.0 (Wed Jun 22 2022)
|
|
31
|
+
|
|
32
|
+
#### 🚀 Enhancement
|
|
33
|
+
|
|
34
|
+
- chore: add Tag owner type [#338](https://github.com/artsy/cohesion/pull/338) ([@dimatretyak](https://github.com/dimatretyak))
|
|
35
|
+
|
|
36
|
+
#### Authors: 1
|
|
37
|
+
|
|
38
|
+
- Dima Tretyak (Dzmitry Tratsiak) ([@dimatretyak](https://github.com/dimatretyak))
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
1
42
|
# v4.54.0 (Tue Jun 21 2022)
|
|
2
43
|
|
|
3
44
|
#### 🚀 Enhancement
|
|
@@ -4,18 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _AddToCalendar = require("./AddToCalendar");
|
|
8
|
-
|
|
9
|
-
Object.keys(_AddToCalendar).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function get() {
|
|
14
|
-
return _AddToCalendar[key];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
|
|
19
7
|
var _Share = require("./Share");
|
|
20
8
|
|
|
21
9
|
Object.keys(_Share).forEach(function (key) {
|
|
@@ -609,6 +609,74 @@ export interface ClickedOnFramedMeasurementsDropdown {
|
|
|
609
609
|
context_page_owner_type: PageOwnerType;
|
|
610
610
|
context_page_owner_id?: string;
|
|
611
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* A Partner clicks on one of the options (Accept collector's offer, Send a counteroffer, Decline collector's offer)
|
|
614
|
+
* for offers on the orders page on CMS.
|
|
615
|
+
*
|
|
616
|
+
* This schema describes events sent to Segment from [[clickedOfferActions]]
|
|
617
|
+
*
|
|
618
|
+
* @example
|
|
619
|
+
* ```
|
|
620
|
+
* {
|
|
621
|
+
* action: "clickedOfferActions",
|
|
622
|
+
* context_page_owner_type: "order",
|
|
623
|
+
* context_page_owner_id: "60de173a47476c000fd5c4cc"
|
|
624
|
+
* order_id: "60de173a47476c000fd5c4cc"
|
|
625
|
+
* label: "Accept collector's offer"
|
|
626
|
+
* artwork_id: "60de173a47476c000fd5c4cc"
|
|
627
|
+
* flow: offer
|
|
628
|
+
* partner_id: "60de173a47476c000fd5c4cc"
|
|
629
|
+
* }
|
|
630
|
+
* ```
|
|
631
|
+
*/
|
|
632
|
+
export interface ClickedOfferActions {
|
|
633
|
+
action: ActionType.clickedOfferActions;
|
|
634
|
+
context_module: ContextModule;
|
|
635
|
+
context_page_owner_type: PageOwnerType;
|
|
636
|
+
context_page_owner_id?: string;
|
|
637
|
+
order_id: string;
|
|
638
|
+
label: string;
|
|
639
|
+
artwork_id: string;
|
|
640
|
+
flow: string;
|
|
641
|
+
partner_id: string;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* A Partner clicks on one of the the CTAs on the orders page on the orders page on CMS.
|
|
645
|
+
* - Confirm order
|
|
646
|
+
* - Confirm shipping contact and confirm order
|
|
647
|
+
* - Accept offer
|
|
648
|
+
* - Confirm shipping contact and accept offer
|
|
649
|
+
* - Decline offer
|
|
650
|
+
* - Send a counter offer
|
|
651
|
+
* - Confirm shipping contact and send counter offer
|
|
652
|
+
*
|
|
653
|
+
* This schema describes events sent to Segment from [[clickedOrderPage]]
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
* ```
|
|
657
|
+
* {
|
|
658
|
+
* action: "clickedOrderPage",
|
|
659
|
+
* context_page_owner_type: "order",
|
|
660
|
+
* context_page_owner_id: "60de173a47476c000fd5c4cc"
|
|
661
|
+
* order_id: "60de173a47476c000fd5c4cc"
|
|
662
|
+
* label: "Confirm order"
|
|
663
|
+
* artwork_id: "60de173a47476c000fd5c4cc"
|
|
664
|
+
* flow: buy
|
|
665
|
+
* partner_id: "60de173a47476c000fd5c4cc"
|
|
666
|
+
* }
|
|
667
|
+
* ```
|
|
668
|
+
*/
|
|
669
|
+
export interface ClickedOrderPage {
|
|
670
|
+
action: ActionType.clickedOrderPage;
|
|
671
|
+
context_module: ContextModule;
|
|
672
|
+
context_page_owner_type: PageOwnerType;
|
|
673
|
+
context_page_owner_id?: string;
|
|
674
|
+
order_id: string;
|
|
675
|
+
label: string;
|
|
676
|
+
artwork_id: string;
|
|
677
|
+
flow: string;
|
|
678
|
+
partner_id: string;
|
|
679
|
+
}
|
|
612
680
|
/**
|
|
613
681
|
* User clicks on submit order on the orders review page.
|
|
614
682
|
*
|
|
@@ -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, ClickedPartnerLink, ClickedPaymentDetails, ClickedPaymentMethod, 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, ClickedPartnerLink, ClickedPaymentDetails, ClickedPaymentMethod, ClickedPromoSpace, ClickedSelectShippingOption, ClickedShippingAddress, ClickedShowGroup, ClickedShowMore, ClickedSnooze, ClickedVerifyIdentity, ClickedViewingRoomCard, ClickedOfferActions, ClickedOrderPage } 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";
|
|
@@ -22,7 +22,7 @@ import { ToggledAccordion } from "./UserExperienceInteractions";
|
|
|
22
22
|
*
|
|
23
23
|
* Each event describes one ActionType
|
|
24
24
|
*/
|
|
25
|
-
export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionPageView | AuctionResultsFilterParamsChanged | AuthImpression | BidPageView | CreatedAccount | ClickedActiveBid | 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 | ClickedPartnerLink | ClickedPaymentMethod | ClickedPaymentDetails | ClickedPromoSpace | ClickedRegisterToBid | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConfirmBid | ConfirmRegistrationPageview | ConsignmentArtistFailed | ConsignmentSubmitted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | EnterLiveAuction | ExperimentViewed | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | Impression | MaxBidSelected | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | RegistrationPageView | RegistrationSubmitted | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | SentRequestPriceEstimate | 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 | TappedSellArtwork | TappedShowMore | TappedLearnMore | TappedSkip | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledAccordion | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
|
|
25
|
+
export declare type Event = AddToCalendar | AddCollectedArtwork | ArtworkDetailsCompleted | AuctionPageView | AuctionResultsFilterParamsChanged | AuthImpression | BidPageView | CreatedAccount | ClickedActiveBid | 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 | ClickedPartnerLink | ClickedPaymentMethod | ClickedPaymentDetails | ClickedPromoSpace | ClickedRegisterToBid | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | ClickedOfferActions | ClickedOrderPage | CommercialFilterParamsChanged | ConfirmBid | ConfirmRegistrationPageview | ConsignmentArtistFailed | ConsignmentSubmitted | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | EnterLiveAuction | ExperimentViewed | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | Impression | MaxBidSelected | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | PromptForReview | RegistrationPageView | RegistrationSubmitted | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | SentRequestPriceEstimate | 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 | TappedSellArtwork | TappedShowMore | TappedLearnMore | TappedSkip | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledAccordion | ToggledNotification | ToggledSavedSearch | UploadPhotosCompleted | ViewArtworkMyCollection;
|
|
26
26
|
/**
|
|
27
27
|
* The top-level actions an Event describes.
|
|
28
28
|
*
|
|
@@ -254,6 +254,14 @@ export declare enum ActionType {
|
|
|
254
254
|
* Corresponds to {@link ClickedViewingRoomCard}
|
|
255
255
|
*/
|
|
256
256
|
clickedViewingRoomCard = "clickedViewingRoomCard",
|
|
257
|
+
/**
|
|
258
|
+
* Corresponds to {@link ClickedOfferActions}
|
|
259
|
+
*/
|
|
260
|
+
clickedOfferActions = "clickedOfferActions",
|
|
261
|
+
/**
|
|
262
|
+
* Corresponds to {@link ClickedOrderPage}
|
|
263
|
+
*/
|
|
264
|
+
clickedOrderPage = "clickedOrderPage",
|
|
257
265
|
/**
|
|
258
266
|
* Corresponds to {@link CommercialFilterParamsChanged}
|
|
259
267
|
*/
|
|
@@ -76,6 +76,8 @@ exports.ActionType = ActionType;
|
|
|
76
76
|
ActionType["clickedTooltip"] = "clickedTooltip";
|
|
77
77
|
ActionType["clickedVerifyIdentity"] = "clickedVerifyIdentity";
|
|
78
78
|
ActionType["clickedViewingRoomCard"] = "clickedViewingRoomCard";
|
|
79
|
+
ActionType["clickedOfferActions"] = "clickedOfferActions";
|
|
80
|
+
ActionType["clickedOrderPage"] = "clickedOrderPage";
|
|
79
81
|
ActionType["commercialFilterParamsChanged"] = "commercialFilterParamsChanged";
|
|
80
82
|
ActionType["confirmBid"] = "confirmBid";
|
|
81
83
|
ActionType["confirmRegistrationPageview"] = "confirmRegistrationPageview";
|
|
@@ -69,6 +69,7 @@ export declare enum OwnerType {
|
|
|
69
69
|
sell = "sell",
|
|
70
70
|
show = "show",
|
|
71
71
|
shows = "shows",
|
|
72
|
+
tag = "tag",
|
|
72
73
|
user = "user",
|
|
73
74
|
viewingRoom = "viewingRoom",
|
|
74
75
|
viewingRoomArtworkPage = "viewingRoomArtworkPage",
|
|
@@ -80,8 +81,8 @@ export declare enum OwnerType {
|
|
|
80
81
|
/**
|
|
81
82
|
* Owner types available in iOS/Android
|
|
82
83
|
*/
|
|
83
|
-
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.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.newWorksForYou | OwnerType.onboarding | OwnerType.partner | OwnerType.profile | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.savesAndFollows | OwnerType.search | OwnerType.sell | OwnerType.show | OwnerType.shows | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou;
|
|
84
|
+
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.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collection | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.newWorksForYou | OwnerType.onboarding | OwnerType.partner | OwnerType.profile | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.savesAndFollows | OwnerType.search | OwnerType.sell | OwnerType.show | OwnerType.shows | OwnerType.tag | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou;
|
|
84
85
|
/**
|
|
85
86
|
* Owner types available in web/mobile web
|
|
86
87
|
*/
|
|
87
|
-
export declare type PageOwnerType = OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artists | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.auctions | OwnerType.collect | OwnerType.collection | OwnerType.collections | OwnerType.consign | OwnerType.fair | OwnerType.fairs | OwnerType.galleries | OwnerType.gene | OwnerType.home | OwnerType.onboarding | OwnerType.ordersAccept | OwnerType.ordersCounter | OwnerType.ordersNewPayment | OwnerType.ordersOffer | OwnerType.ordersPayment | OwnerType.ordersRespond | OwnerType.ordersReview | OwnerType.ordersShipping | OwnerType.ordersSubmitted | OwnerType.partner | OwnerType.partnerShowsArtworks | OwnerType.priceDatabase | OwnerType.profile | OwnerType.sale | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.search | OwnerType.show | OwnerType.shows | OwnerType.user | OwnerType.viewingRoom | OwnerType.viewingRooms | OwnerType.worksForYou;
|
|
88
|
+
export declare type PageOwnerType = OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artists | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.auctions | OwnerType.collect | OwnerType.collection | OwnerType.collections | OwnerType.consign | OwnerType.fair | OwnerType.fairs | OwnerType.galleries | OwnerType.gene | OwnerType.home | OwnerType.onboarding | OwnerType.ordersAccept | OwnerType.ordersCounter | OwnerType.ordersNewPayment | OwnerType.ordersOffer | OwnerType.ordersPayment | OwnerType.ordersRespond | OwnerType.ordersReview | OwnerType.ordersShipping | OwnerType.ordersSubmitted | OwnerType.partner | OwnerType.partnerShowsArtworks | OwnerType.priceDatabase | OwnerType.profile | OwnerType.sale | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.search | OwnerType.show | OwnerType.shows | OwnerType.tag | OwnerType.user | OwnerType.viewingRoom | OwnerType.viewingRooms | OwnerType.worksForYou;
|
|
@@ -87,6 +87,7 @@ exports.OwnerType = OwnerType;
|
|
|
87
87
|
OwnerType["sell"] = "sell";
|
|
88
88
|
OwnerType["show"] = "show";
|
|
89
89
|
OwnerType["shows"] = "shows";
|
|
90
|
+
OwnerType["tag"] = "tag";
|
|
90
91
|
OwnerType["user"] = "user";
|
|
91
92
|
OwnerType["viewingRoom"] = "viewingRoom";
|
|
92
93
|
OwnerType["viewingRoomArtworkPage"] = "viewingRoomArtworkPage";
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AddToCalendar } from "../Schema";
|
|
2
|
-
/**
|
|
3
|
-
* A user clicks or taps the 'Add to Calendar' button on a timed-event page (auction, fair, etc.).
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```
|
|
7
|
-
* addToCalendar({
|
|
8
|
-
* context_module: "auctionHome",
|
|
9
|
-
* context_owner_type: "sale",
|
|
10
|
-
* context_owner_id: "5f99e0ba4c24bc000d02b8d7",
|
|
11
|
-
* context_owner_slug: "artsy-x-seoul-auction-contemporary-icons",
|
|
12
|
-
* subject: "google"
|
|
13
|
-
* })
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare const addToCalendar: ({ context_module, context_owner_id, context_owner_slug, context_owner_type, subject, }: Omit<AddToCalendar, "action">) => AddToCalendar;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.addToCalendar = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A user clicks or taps the 'Add to Calendar' button on a timed-event page (auction, fair, etc.).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* addToCalendar({
|
|
16
|
-
* context_module: "auctionHome",
|
|
17
|
-
* context_owner_type: "sale",
|
|
18
|
-
* context_owner_id: "5f99e0ba4c24bc000d02b8d7",
|
|
19
|
-
* context_owner_slug: "artsy-x-seoul-auction-contemporary-icons",
|
|
20
|
-
* subject: "google"
|
|
21
|
-
* })
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
var addToCalendar = function addToCalendar(_ref) {
|
|
25
|
-
var context_module = _ref.context_module,
|
|
26
|
-
context_owner_id = _ref.context_owner_id,
|
|
27
|
-
context_owner_slug = _ref.context_owner_slug,
|
|
28
|
-
context_owner_type = _ref.context_owner_type,
|
|
29
|
-
subject = _ref.subject;
|
|
30
|
-
return {
|
|
31
|
-
action: _Schema.ActionType.addToCalendar,
|
|
32
|
-
context_module: context_module,
|
|
33
|
-
context_owner_id: context_owner_id,
|
|
34
|
-
context_owner_slug: context_owner_slug,
|
|
35
|
-
context_owner_type: context_owner_type,
|
|
36
|
-
subject: subject
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.addToCalendar = addToCalendar;
|