@artsy/cohesion 4.11.0 → 4.15.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 +56 -0
- package/dist/DeprecatedHelpers/index.d.ts +0 -3
- package/dist/DeprecatedHelpers/index.js +0 -36
- package/dist/Schema/Events/Conversations.d.ts +5 -3
- package/dist/Schema/Events/Tap.d.ts +64 -0
- package/dist/Schema/Events/index.d.ts +18 -2
- package/dist/Schema/Events/index.js +4 -0
- package/package.json +2 -2
- package/dist/DeprecatedHelpers/Authentication/AuthImpression.d.ts +0 -23
- package/dist/DeprecatedHelpers/Authentication/AuthImpression.js +0 -42
- package/dist/DeprecatedHelpers/Authentication/CreatedAccount.d.ts +0 -30
- package/dist/DeprecatedHelpers/Authentication/CreatedAccount.js +0 -52
- package/dist/DeprecatedHelpers/Authentication/SuccessfullyLoggedIn.d.ts +0 -28
- package/dist/DeprecatedHelpers/Authentication/SuccessfullyLoggedIn.js +0 -49
- package/dist/DeprecatedHelpers/Authentication/__tests__/AuthImpression.test.d.ts +0 -1
- package/dist/DeprecatedHelpers/Authentication/__tests__/CreatedAccount.test.d.ts +0 -1
- package/dist/DeprecatedHelpers/Authentication/__tests__/SuccessfullyLoggedIn.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
# v4.15.0 (Thu Oct 14 2021)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- Adding new events to Cohesion [#255](https://github.com/artsy/cohesion/pull/255) ([@audrey-thenot](https://github.com/audrey-thenot))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@audrey-thenot](https://github.com/audrey-thenot)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.14.0 (Wed Oct 13 2021)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- refactor(FX-3340): remove createdAccount deprecated helper [#251](https://github.com/artsy/cohesion/pull/251) ([@gkartalis](https://github.com/gkartalis))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v4.13.0 (Wed Oct 13 2021)
|
|
26
|
+
|
|
27
|
+
#### 🚀 Enhancement
|
|
28
|
+
|
|
29
|
+
- refactor(FX-2978): remove authImpression deprecated helper [#248](https://github.com/artsy/cohesion/pull/248) ([@araujobarret](https://github.com/araujobarret))
|
|
30
|
+
|
|
31
|
+
#### 🏠 Internal
|
|
32
|
+
|
|
33
|
+
- chore(deps): update dep typescript from 4.4.3 to v4.4.4 [#254](https://github.com/artsy/cohesion/pull/254) ([@renovate-bot](https://github.com/renovate-bot))
|
|
34
|
+
- chore(deps): update auto orb from 1.4.0 to v2 [#250](https://github.com/artsy/cohesion/pull/250) ([@renovate-bot](https://github.com/renovate-bot) [@renovate[bot]](https://github.com/renovate[bot]))
|
|
35
|
+
|
|
36
|
+
#### Authors: 3
|
|
37
|
+
|
|
38
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
39
|
+
- Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
|
|
40
|
+
- WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
# v4.12.0 (Mon Oct 11 2021)
|
|
45
|
+
|
|
46
|
+
#### 🚀 Enhancement
|
|
47
|
+
|
|
48
|
+
- refactor(FX-3342): remove successfullyloggedin deprecated helper [#253](https://github.com/artsy/cohesion/pull/253) ([@gkartalis](https://github.com/gkartalis) [@pvinis](https://github.com/pvinis))
|
|
49
|
+
|
|
50
|
+
#### Authors: 2
|
|
51
|
+
|
|
52
|
+
- George Kartalis ([@gkartalis](https://github.com/gkartalis))
|
|
53
|
+
- Pavlos Vinieratos ([@pvinis](https://github.com/pvinis))
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
1
57
|
# v4.11.0 (Mon Oct 11 2021)
|
|
2
58
|
|
|
3
59
|
#### 🚀 Enhancement
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export * from "./AddToCalendar";
|
|
2
2
|
export * from "./Share";
|
|
3
|
-
export * from "./Authentication/AuthImpression";
|
|
4
|
-
export * from "./Authentication/CreatedAccount";
|
|
5
|
-
export * from "./Authentication/SuccessfullyLoggedIn";
|
|
6
3
|
export * from "./Click/ClickedAppDownload";
|
|
7
4
|
export * from "./Click/ClickedArticleGroup";
|
|
8
5
|
export * from "./Click/ClickedArtistSeriesGroup";
|
|
@@ -28,42 +28,6 @@ Object.keys(_Share).forEach(function (key) {
|
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
var _AuthImpression = require("./Authentication/AuthImpression");
|
|
32
|
-
|
|
33
|
-
Object.keys(_AuthImpression).forEach(function (key) {
|
|
34
|
-
if (key === "default" || key === "__esModule") return;
|
|
35
|
-
Object.defineProperty(exports, key, {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function get() {
|
|
38
|
-
return _AuthImpression[key];
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _CreatedAccount = require("./Authentication/CreatedAccount");
|
|
44
|
-
|
|
45
|
-
Object.keys(_CreatedAccount).forEach(function (key) {
|
|
46
|
-
if (key === "default" || key === "__esModule") return;
|
|
47
|
-
Object.defineProperty(exports, key, {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function get() {
|
|
50
|
-
return _CreatedAccount[key];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
var _SuccessfullyLoggedIn = require("./Authentication/SuccessfullyLoggedIn");
|
|
56
|
-
|
|
57
|
-
Object.keys(_SuccessfullyLoggedIn).forEach(function (key) {
|
|
58
|
-
if (key === "default" || key === "__esModule") return;
|
|
59
|
-
Object.defineProperty(exports, key, {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function get() {
|
|
62
|
-
return _SuccessfullyLoggedIn[key];
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
31
|
var _ClickedAppDownload = require("./Click/ClickedAppDownload");
|
|
68
32
|
|
|
69
33
|
Object.keys(_ClickedAppDownload).forEach(function (key) {
|
|
@@ -71,7 +71,7 @@ export interface TappedInboxConversation {
|
|
|
71
71
|
partner_id: string;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* A user taps the make offer button
|
|
74
|
+
* A user taps the make offer button either on an artwork page (BNMO) or inquiry conversation.
|
|
75
75
|
*
|
|
76
76
|
* This schema describes events sent to Segment from [[tappedMakeOffer]]
|
|
77
77
|
*
|
|
@@ -86,8 +86,10 @@ export interface TappedInboxConversation {
|
|
|
86
86
|
*/
|
|
87
87
|
export interface TappedMakeOffer {
|
|
88
88
|
action: ActionType.tappedMakeOffer;
|
|
89
|
-
context_owner_type: OwnerType
|
|
90
|
-
|
|
89
|
+
context_owner_type: OwnerType;
|
|
90
|
+
context_owner_slug?: string;
|
|
91
|
+
context_owner_id?: string;
|
|
92
|
+
impulse_conversation_id?: string;
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
95
|
* A user taps to view an offer
|
|
@@ -656,3 +656,67 @@ export interface TappedCreateAlert {
|
|
|
656
656
|
context_screen_owner_id?: string;
|
|
657
657
|
context_screen_owner_slug?: string;
|
|
658
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* A user taps "Bid" on an artwork page inside an Auction
|
|
661
|
+
*
|
|
662
|
+
* This schema describes events sent to Segment from [[tappedBid]]
|
|
663
|
+
*
|
|
664
|
+
* @example
|
|
665
|
+
* ```
|
|
666
|
+
* {
|
|
667
|
+
* action: "tappedBid",
|
|
668
|
+
* context_owner_type: "Artwork",
|
|
669
|
+
* context_owner_slug: "radna-segal-pearl",
|
|
670
|
+
* context_owner_id: "6164889300d643000db86504",
|
|
671
|
+
* }
|
|
672
|
+
* ```
|
|
673
|
+
*/
|
|
674
|
+
export interface TappedBid {
|
|
675
|
+
action: ActionType.tappedBid;
|
|
676
|
+
context_owner_type: ScreenOwnerType;
|
|
677
|
+
context_owner_id: string;
|
|
678
|
+
context_owner_slug: string;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* A user taps "Buy Now" on an artwork page (BNMO)
|
|
682
|
+
*
|
|
683
|
+
* This schema describes events sent to Segment from [[tappedBuyNow]]
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* ```
|
|
687
|
+
* {
|
|
688
|
+
* action: "tappedBuyNow",
|
|
689
|
+
* context_owner_type: "Artwork",
|
|
690
|
+
* context_owner_slug: "radna-segal-pearl",
|
|
691
|
+
* context_owner_id: "6164889300d643000db86504",
|
|
692
|
+
* }
|
|
693
|
+
* ```
|
|
694
|
+
*/
|
|
695
|
+
export interface TappedBuyNow {
|
|
696
|
+
action: ActionType.tappedBuyNow;
|
|
697
|
+
context_owner_type: ScreenOwnerType;
|
|
698
|
+
context_owner_id: string;
|
|
699
|
+
context_owner_slug: string;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* A user taps on 'Contact Gallery' on an artwork page
|
|
703
|
+
*
|
|
704
|
+
* This schema describes events sent to Segment from [[tappedContactGallery]]
|
|
705
|
+
*
|
|
706
|
+
* @example
|
|
707
|
+
* ```
|
|
708
|
+
* {
|
|
709
|
+
* action: "tappedContactGallery",
|
|
710
|
+
* context_owner_type: "Artwork",
|
|
711
|
+
* context_owner_slug: "radna-segal-pearl",
|
|
712
|
+
* context_owner_id: "6164889300d643000db86504",
|
|
713
|
+
|
|
714
|
+
* }
|
|
715
|
+
* ```
|
|
716
|
+
*/
|
|
717
|
+
export interface TappedContactGallery {
|
|
718
|
+
action: ActionType.tappedContactGallery;
|
|
719
|
+
context_owner_type: OwnerType;
|
|
720
|
+
context_owner_slug: string;
|
|
721
|
+
context_owner_id: string;
|
|
722
|
+
}
|
|
@@ -9,14 +9,14 @@ import { FollowEvents } from "./SavesAndFollows";
|
|
|
9
9
|
import { ConsignmentArtistFailed, FocusedOnPriceDatabaseSearchInput, FocusedOnSearchInput, SearchedPriceDatabase, SearchedWithNoResults, SelectedItemFromPriceDatabaseSearch, SelectedItemFromSearch } from "./Search";
|
|
10
10
|
import { Share } from "./Share";
|
|
11
11
|
import { SaleScreenLoadComplete, Screen, TimeOnPage } from "./System";
|
|
12
|
-
import { TappedArticleGroup, TappedArtistGroup, TappedArtistSeriesGroup, TappedArtworkGroup, TappedAuctionGroup, TappedAuctionResultGroup, TappedCollectionGroup, TappedConsign, TappedCreateAlert, TappedExploreGroup, TappedFairCard, TappedFairGroup, TappedInfoBubble, TappedLink, TappedMainArtworkGrid, TappedNavigationTab, TappedPartnerCard, TappedPromoSpace, TappedSell, TappedShowMore, TappedTabBar, TappedVerifyIdentity, TappedViewingRoomCard, TappedViewingRoomGroup } from "./Tap";
|
|
12
|
+
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";
|
|
13
13
|
import { ToggledNotification, ToggledSavedSearch } from "./Toggle";
|
|
14
14
|
/**
|
|
15
15
|
* Master list of valid schemas for analytics actions
|
|
16
16
|
*
|
|
17
17
|
* Each event describes one ActionType
|
|
18
18
|
*/
|
|
19
|
-
export declare type Event = AddToCalendar | AddCollectedArtwork | AuctionResultsFilterParamsChanged | AuthImpression | CreatedAccount | ClickedAddNewShippingAddress | ClickedAddWorksToFair | ClickedAppDownload | ClickedArticleGroup | ClickedArtistGroup | ClickedArtistSeriesGroup | ClickedArtworkGroup | ClickedAuctionGroup | ClickedBuyerProtection | ClickedChangePage | ClickedChangePaymentMethod | ClickedChangeShippingAddress | ClickedChangeShippingMethod | ClickedCollectionGroup | ClickedDeliveryMethod | ClickedEditArtwork | ClickedExpansionToggle | ClickedFairCard | ClickedFairGroup | ClickedGalleryGroup | ClickedLoadMore | ClickedMainArtworkGrid | ClickedNavigationTab | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPromoSpace | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConsignmentArtistFailed | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | SuccessfullyLoggedIn | TappedArticleGroup | TappedArtistGroup | TappedArtistSeriesGroup | TappedArtworkGroup | TappedAuctionGroup | TappedAuctionResultGroup | TappedCollectedArtwork | TappedCollectedArtworkImages | TappedCollectionGroup | TappedConsign | TappedCreateAlert | TappedExploreGroup | TappedFairCard | TappedFairGroup | TappedInboxConversation | TappedInfoBubble | TappedLink | TappedNavigationTab | TappedMainArtworkGrid | TappedMakeOffer | TappedPartnerCard | TappedPromoSpace | TappedSell | TappedShowMore | TappedTabBar | TappedVerifyIdentity | TappedViewingRoomCard | TappedViewingRoomGroup | TappedViewOffer | TimeOnPage | ToggledNotification | ToggledSavedSearch;
|
|
19
|
+
export declare type Event = AddToCalendar | AddCollectedArtwork | AuctionResultsFilterParamsChanged | AuthImpression | CreatedAccount | ClickedAddNewShippingAddress | ClickedAddWorksToFair | ClickedAppDownload | ClickedArticleGroup | ClickedArtistGroup | ClickedArtistSeriesGroup | ClickedArtworkGroup | ClickedAuctionGroup | ClickedBuyerProtection | ClickedChangePage | ClickedChangePaymentMethod | ClickedChangeShippingAddress | ClickedChangeShippingMethod | ClickedCollectionGroup | ClickedDeliveryMethod | ClickedEditArtwork | ClickedExpansionToggle | ClickedFairCard | ClickedFairGroup | ClickedGalleryGroup | ClickedLoadMore | ClickedMainArtworkGrid | ClickedNavigationTab | ClickedOnArtworkShippingWeight | ClickedOnArtworkShippingUnitsDropdown | ClickedOnFramedMeasurements | ClickedOnFramedMeasurementsDropdown | ClickedOnSubmitOrder | ClickedSnooze | ClickedPartnerCard | ClickedPromoSpace | ClickedSelectShippingOption | ClickedShippingAddress | ClickedShowGroup | ClickedShowMore | ClickedVerifyIdentity | ClickedViewingRoomCard | CommercialFilterParamsChanged | ConsignmentArtistFailed | DeleteCollectedArtwork | DeletedSavedSearch | EditCollectedArtwork | EditedSavedSearch | FocusedOnConversationMessageInput | FocusedOnSearchInput | FocusedOnPriceDatabaseSearchInput | FollowEvents | OnboardingUserInputData | PriceDatabaseFilterParamsChanged | ResetYourPassword | SaleScreenLoadComplete | Screen | SearchedPriceDatabase | SearchedWithNoResults | SelectedItemFromSearch | SelectedItemFromPriceDatabaseSearch | SentConversationMessage | Share | 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;
|
|
20
20
|
/**
|
|
21
21
|
* The top-level actions an Event describes.
|
|
22
22
|
*
|
|
@@ -196,6 +196,10 @@ export declare enum ActionType {
|
|
|
196
196
|
* Corresponds to {@link ConsignmentArtistFailed}
|
|
197
197
|
*/
|
|
198
198
|
consignmentArtistFailed = "consignmentArtistFailed",
|
|
199
|
+
/**
|
|
200
|
+
* Corresponds to {@link ContactGallery}
|
|
201
|
+
*/
|
|
202
|
+
contactGallery = "contactGallery",
|
|
199
203
|
/**
|
|
200
204
|
* Corresponds to {@link CreatedAccount}
|
|
201
205
|
*/
|
|
@@ -324,6 +328,14 @@ export declare enum ActionType {
|
|
|
324
328
|
* Corresponds to {@link TappedAuctionResultGroup}
|
|
325
329
|
*/
|
|
326
330
|
tappedAuctionResultGroup = "tappedAuctionResultGroup",
|
|
331
|
+
/**
|
|
332
|
+
* Corresponds to {@link TappedBid}
|
|
333
|
+
*/
|
|
334
|
+
tappedBid = "tappedBid",
|
|
335
|
+
/**
|
|
336
|
+
* Corresponds to {@link TappedBuyNow}
|
|
337
|
+
*/
|
|
338
|
+
tappedBuyNow = "tappedBuyNow",
|
|
327
339
|
/**
|
|
328
340
|
* Corresponds to {@link TappedCollectedArtwork}
|
|
329
341
|
*/
|
|
@@ -340,6 +352,10 @@ export declare enum ActionType {
|
|
|
340
352
|
* Corresponds to {@link TappedConsign}
|
|
341
353
|
*/
|
|
342
354
|
tappedConsign = "tappedConsign",
|
|
355
|
+
/**
|
|
356
|
+
* Corresponds to {@link TappedContactGallery}
|
|
357
|
+
*/
|
|
358
|
+
tappedContactGallery = "tappedContactGallery",
|
|
343
359
|
/**
|
|
344
360
|
* Corresponds to {@link TappedCreateAlert}
|
|
345
361
|
*/
|
|
@@ -63,6 +63,7 @@ exports.ActionType = ActionType;
|
|
|
63
63
|
ActionType["clickedViewingRoomCard"] = "clickedViewingRoomCard";
|
|
64
64
|
ActionType["commercialFilterParamsChanged"] = "commercialFilterParamsChanged";
|
|
65
65
|
ActionType["consignmentArtistFailed"] = "consignmentArtistFailed";
|
|
66
|
+
ActionType["contactGallery"] = "contactGallery";
|
|
66
67
|
ActionType["createdAccount"] = "createdAccount";
|
|
67
68
|
ActionType["deleteCollectedArtwork"] = "deleteCollectedArtwork";
|
|
68
69
|
ActionType["deletedSavedSearch"] = "deletedSavedSearch";
|
|
@@ -95,10 +96,13 @@ exports.ActionType = ActionType;
|
|
|
95
96
|
ActionType["tappedArtworkGroup"] = "tappedArtworkGroup";
|
|
96
97
|
ActionType["tappedAuctionGroup"] = "tappedAuctionGroup";
|
|
97
98
|
ActionType["tappedAuctionResultGroup"] = "tappedAuctionResultGroup";
|
|
99
|
+
ActionType["tappedBid"] = "tappedBid";
|
|
100
|
+
ActionType["tappedBuyNow"] = "tappedBuyNow";
|
|
98
101
|
ActionType["tappedCollectedArtwork"] = "tappedCollectedArtwork";
|
|
99
102
|
ActionType["tappedCollectedArtworkImages"] = "tappedCollectedArtworkImages";
|
|
100
103
|
ActionType["tappedCollectionGroup"] = "tappedCollectionGroup";
|
|
101
104
|
ActionType["tappedConsign"] = "tappedConsign";
|
|
105
|
+
ActionType["tappedContactGallery"] = "tappedContactGallery";
|
|
102
106
|
ActionType["tappedCreateAlert"] = "tappedCreateAlert";
|
|
103
107
|
ActionType["tappedExploreGroup"] = "tappedExploreGroup";
|
|
104
108
|
ActionType["tappedFairGroup"] = "tappedFairGroup";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/cohesion",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.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.4.
|
|
50
|
+
"typescript": "4.4.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"core-js": "3"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthImpression, AuthIntent, AuthModalType, AuthTrigger } from "../../Schema";
|
|
2
|
-
export interface AuthImpressionArgs {
|
|
3
|
-
copy?: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
intent: AuthIntent;
|
|
6
|
-
onboarding?: boolean;
|
|
7
|
-
trigger?: AuthTrigger;
|
|
8
|
-
triggerSeconds?: number;
|
|
9
|
-
type: AuthModalType;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Action fired when a user views an authentication form
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* authImpression({
|
|
17
|
-
* contextModule: ContextModule.header,
|
|
18
|
-
* intent: Intent.viewEditorial,
|
|
19
|
-
* type: AuthModalType.signup,
|
|
20
|
-
* })
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare const authImpression: ({ contextModule, intent, copy, onboarding, trigger, triggerSeconds, type, }: AuthImpressionArgs) => AuthImpression;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.authImpression = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user views an authentication form
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* authImpression({
|
|
16
|
-
* contextModule: ContextModule.header,
|
|
17
|
-
* intent: Intent.viewEditorial,
|
|
18
|
-
* type: AuthModalType.signup,
|
|
19
|
-
* })
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
var authImpression = function authImpression(_ref) {
|
|
23
|
-
var contextModule = _ref.contextModule,
|
|
24
|
-
intent = _ref.intent,
|
|
25
|
-
copy = _ref.copy,
|
|
26
|
-
onboarding = _ref.onboarding,
|
|
27
|
-
trigger = _ref.trigger,
|
|
28
|
-
triggerSeconds = _ref.triggerSeconds,
|
|
29
|
-
type = _ref.type;
|
|
30
|
-
return {
|
|
31
|
-
action: _Schema.ActionType.authImpression,
|
|
32
|
-
context_module: contextModule,
|
|
33
|
-
intent: intent,
|
|
34
|
-
modal_copy: copy,
|
|
35
|
-
onboarding: onboarding || false,
|
|
36
|
-
trigger: trigger || triggerSeconds && "timed" || "click",
|
|
37
|
-
trigger_seconds: triggerSeconds,
|
|
38
|
-
type: type
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
exports.authImpression = authImpression;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthIntent, AuthService, CreatedAccount } from "../../Schema";
|
|
2
|
-
export interface CreatedAccountArgs {
|
|
3
|
-
authRedirect: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
copy?: string;
|
|
6
|
-
intent: AuthIntent;
|
|
7
|
-
onboarding?: boolean;
|
|
8
|
-
service: AuthService;
|
|
9
|
-
triggerSeconds?: number;
|
|
10
|
-
userId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Action fired when a user creates an account
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```
|
|
17
|
-
* createdAccount({
|
|
18
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
19
|
-
* contextModule: ContextModule.popUpModal,
|
|
20
|
-
* copy: "Sign up to follow artists",
|
|
21
|
-
* intent: Intent.viewArtist,
|
|
22
|
-
* onboarding: true,
|
|
23
|
-
* service: "email",
|
|
24
|
-
* triggerSeconds: 3,
|
|
25
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
26
|
-
* })
|
|
27
|
-
* ```
|
|
28
|
-
* @deprecated
|
|
29
|
-
*/
|
|
30
|
-
export declare const createdAccount: ({ authRedirect, contextModule, copy, intent, onboarding, service, triggerSeconds, userId, }: CreatedAccountArgs) => CreatedAccount;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createdAccount = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user creates an account
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* createdAccount({
|
|
16
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
17
|
-
* contextModule: ContextModule.popUpModal,
|
|
18
|
-
* copy: "Sign up to follow artists",
|
|
19
|
-
* intent: Intent.viewArtist,
|
|
20
|
-
* onboarding: true,
|
|
21
|
-
* service: "email",
|
|
22
|
-
* triggerSeconds: 3,
|
|
23
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
24
|
-
* })
|
|
25
|
-
* ```
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
var createdAccount = function createdAccount(_ref) {
|
|
29
|
-
var authRedirect = _ref.authRedirect,
|
|
30
|
-
contextModule = _ref.contextModule,
|
|
31
|
-
copy = _ref.copy,
|
|
32
|
-
intent = _ref.intent,
|
|
33
|
-
onboarding = _ref.onboarding,
|
|
34
|
-
service = _ref.service,
|
|
35
|
-
triggerSeconds = _ref.triggerSeconds,
|
|
36
|
-
userId = _ref.userId;
|
|
37
|
-
return {
|
|
38
|
-
action: _Schema.ActionType.createdAccount,
|
|
39
|
-
auth_redirect: authRedirect,
|
|
40
|
-
context_module: contextModule,
|
|
41
|
-
intent: intent,
|
|
42
|
-
modal_copy: copy,
|
|
43
|
-
onboarding: onboarding || false,
|
|
44
|
-
service: service,
|
|
45
|
-
trigger: triggerSeconds && "timed" || "click",
|
|
46
|
-
trigger_seconds: triggerSeconds,
|
|
47
|
-
type: _Schema.AuthModalType.signup,
|
|
48
|
-
user_id: userId
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.createdAccount = createdAccount;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AuthContextModule, AuthIntent, AuthService, SuccessfullyLoggedIn } from "../../Schema";
|
|
2
|
-
export interface SuccessfullyLoggedInArgs {
|
|
3
|
-
authRedirect: string;
|
|
4
|
-
contextModule: AuthContextModule;
|
|
5
|
-
copy?: string;
|
|
6
|
-
intent: AuthIntent;
|
|
7
|
-
service: AuthService;
|
|
8
|
-
triggerSeconds?: number;
|
|
9
|
-
userId: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Action fired when a user logs into an existing account
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```
|
|
16
|
-
* successfullyLoggedIn({
|
|
17
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
18
|
-
* contextModule: ContextModule.popUpModal,
|
|
19
|
-
* copy: "Sign up to follow artists",
|
|
20
|
-
* intent: Intent.viewArtist,
|
|
21
|
-
* service: "email",
|
|
22
|
-
* triggerSeconds: 3,
|
|
23
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
24
|
-
* })
|
|
25
|
-
* ```
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, copy, intent, service, triggerSeconds, userId, }: SuccessfullyLoggedInArgs) => SuccessfullyLoggedIn;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.successfullyLoggedIn = void 0;
|
|
7
|
-
|
|
8
|
-
var _Schema = require("../../Schema");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Action fired when a user logs into an existing account
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```
|
|
15
|
-
* successfullyLoggedIn({
|
|
16
|
-
* authRedirect: "https://artsy.net/artist/andy-warhol",
|
|
17
|
-
* contextModule: ContextModule.popUpModal,
|
|
18
|
-
* copy: "Sign up to follow artists",
|
|
19
|
-
* intent: Intent.viewArtist,
|
|
20
|
-
* service: "email",
|
|
21
|
-
* triggerSeconds: 3,
|
|
22
|
-
* userId: "5bd8b675776bd6002c86526c"
|
|
23
|
-
* })
|
|
24
|
-
* ```
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
var successfullyLoggedIn = function successfullyLoggedIn(_ref) {
|
|
28
|
-
var authRedirect = _ref.authRedirect,
|
|
29
|
-
contextModule = _ref.contextModule,
|
|
30
|
-
copy = _ref.copy,
|
|
31
|
-
intent = _ref.intent,
|
|
32
|
-
service = _ref.service,
|
|
33
|
-
triggerSeconds = _ref.triggerSeconds,
|
|
34
|
-
userId = _ref.userId;
|
|
35
|
-
return {
|
|
36
|
-
action: _Schema.ActionType.successfullyLoggedIn,
|
|
37
|
-
auth_redirect: authRedirect,
|
|
38
|
-
context_module: contextModule,
|
|
39
|
-
intent: intent,
|
|
40
|
-
modal_copy: copy,
|
|
41
|
-
service: service,
|
|
42
|
-
trigger: triggerSeconds && "timed" || "click",
|
|
43
|
-
trigger_seconds: triggerSeconds,
|
|
44
|
-
type: _Schema.AuthModalType.login,
|
|
45
|
-
user_id: userId
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.successfullyLoggedIn = successfullyLoggedIn;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|