@artsy/cohesion 4.260.0 → 4.262.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 +24 -0
- package/dist/Schema/CMS/Events/ArtworkFilter.d.ts +19 -2
- package/dist/Schema/CMS/Events/UploadArtworkFlow.d.ts +21 -1
- package/dist/Schema/CMS/Events/index.d.ts +6 -1
- package/dist/Schema/CMS/Events/index.js +1 -0
- package/dist/Schema/Values/OwnerType.d.ts +5 -1
- package/dist/Schema/Values/OwnerType.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v4.262.0 (Wed May 07 2025)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(artworks): Add a few new events [#591](https://github.com/artsy/cohesion/pull/591) ([@damassi](https://github.com/damassi))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Christopher Pappas ([@damassi](https://github.com/damassi))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v4.261.0 (Wed May 07 2025)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- chore: add values for reorganized account screens [#590](https://github.com/artsy/cohesion/pull/590) ([@dblandin](https://github.com/dblandin))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- devon blandin ([@dblandin](https://github.com/dblandin))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v4.260.0 (Mon May 05 2025)
|
|
2
26
|
|
|
3
27
|
#### 🚀 Enhancement
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
5
|
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
6
|
-
import { CmsActionType } from "
|
|
6
|
+
import { CmsActionType } from "./index";
|
|
7
7
|
/**
|
|
8
8
|
* Click on the duplicate artwork button
|
|
9
9
|
*
|
|
@@ -148,4 +148,21 @@ export interface CmsArtworkFilterSearch {
|
|
|
148
148
|
context_module: CmsContextModule.artworkFilterSearch;
|
|
149
149
|
value: string;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Remove a filter from the filter bar
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```
|
|
156
|
+
* {
|
|
157
|
+
* action: "click",
|
|
158
|
+
* context_module: 'Artworks - filter artworks',
|
|
159
|
+
* label: "remove filter",
|
|
160
|
+
* }
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
export interface CmsArtworkFilterRemoveFilter {
|
|
164
|
+
action: "click";
|
|
165
|
+
context_module: CmsContextModule.artworkFilterFilterArtworks;
|
|
166
|
+
label: "remove filter";
|
|
167
|
+
}
|
|
168
|
+
export type CmsArtworkFilter = CmsArtworkFilterClickDuplicateArtwork | CmsArtworkFilterClickSort | CmsArtworkFilterQuickEditClickFilter | CmsArtworkFilterQuickEditSavePrice | CmsArtworkFilterQuickEditChangeAvailability | CmsArtworkFilterQuickEditPublish | CmsArtworkFilterQuickEditClickImport | CmsArtworkFilterRemoveFilter | CmsArtworkFilterSearch;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
2
|
+
import { CmsActionType } from ".";
|
|
2
3
|
/**
|
|
3
4
|
* Click "Next" after selecting an existing artist
|
|
4
5
|
*
|
|
@@ -54,4 +55,23 @@ export interface UploadArtworkFlowClickViewMyArtworks {
|
|
|
54
55
|
label: "View my artworks";
|
|
55
56
|
artwork_ids: string[];
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Event fired after user created artworks
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```
|
|
63
|
+
* {
|
|
64
|
+
* action: "created artwork",
|
|
65
|
+
* context_module: "Uploads",
|
|
66
|
+
* user_id: "some-user-id",
|
|
67
|
+
* artwork_ids: ['some-artwork-id'],
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export interface UploadArtworkFlowCreateArtworks {
|
|
72
|
+
action: CmsActionType.createdArtwork;
|
|
73
|
+
context_module: CmsContextModule.uploads;
|
|
74
|
+
label: "View my artworks";
|
|
75
|
+
artwork_ids: string[];
|
|
76
|
+
}
|
|
77
|
+
export type CmsUploadArtworkFlow = UploadArtworkFlowClickSelectExistingArtist | UploadArtworkFlowClickFinishUploadingImages | UploadArtworkFlowClickViewMyArtworks | UploadArtworkFlowCreateArtworks;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CmsArtworkFilter } from "./ArtworkFilter";
|
|
2
2
|
import { CmsBatchImportFlow } from "./BatchImportFlow";
|
|
3
|
+
import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
|
|
3
4
|
/**
|
|
4
5
|
* List of valid schemas for CMS analytics actions
|
|
5
6
|
*
|
|
6
7
|
* Each event describes one ActionType
|
|
7
8
|
*/
|
|
8
|
-
export type CmsEvent = CmsBatchImportFlow |
|
|
9
|
+
export type CmsEvent = CmsArtworkFilter | CmsBatchImportFlow | CmsUploadArtworkFlow;
|
|
9
10
|
/**
|
|
10
11
|
* List of all CMS actions
|
|
11
12
|
*
|
|
@@ -20,6 +21,10 @@ export declare enum CmsActionType {
|
|
|
20
21
|
* Corresponds to {@link CmsArtworkFilter}
|
|
21
22
|
*/
|
|
22
23
|
clickedOnDuplicateArtwork = "clickedonduplicateartwork",
|
|
24
|
+
/**
|
|
25
|
+
* Corresponds to {@link CmsUploadArtworkFlow}
|
|
26
|
+
*/
|
|
27
|
+
createdArtwork = "created artwork",
|
|
23
28
|
/**
|
|
24
29
|
* Corresponds to {@link CmsBatchImportFlow}
|
|
25
30
|
*/
|
|
@@ -22,6 +22,7 @@ exports.CmsActionType = CmsActionType;
|
|
|
22
22
|
(function (CmsActionType) {
|
|
23
23
|
CmsActionType["artistNeedsMatching"] = "artistNeedsMatching";
|
|
24
24
|
CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
|
|
25
|
+
CmsActionType["createdArtwork"] = "created artwork";
|
|
25
26
|
CmsActionType["csvImportError"] = "csvImportError";
|
|
26
27
|
CmsActionType["searchedArtwork"] = "searched artwork";
|
|
27
28
|
CmsActionType["shownMissingInformation"] = "shownMissingInformation";
|
|
@@ -9,15 +9,19 @@ export declare enum OwnerType {
|
|
|
9
9
|
accountDarkMode = "accountDarkMode",
|
|
10
10
|
accountDeleteMyAccount = "accountDeleteMyAccount",
|
|
11
11
|
accountEmail = "accountEmail",
|
|
12
|
+
accountLoginAndSecurity = "accountLoginAndSecurity",
|
|
12
13
|
accountNotifications = "accountNotifications",
|
|
13
14
|
accountOrders = "accountOrders",
|
|
14
15
|
accountPassword = "accountPassword",
|
|
15
16
|
accountPayment = "accountPayment",
|
|
17
|
+
accountPreferences = "accountPreferences",
|
|
16
18
|
accountAddPayment = "accountAddPayment",
|
|
17
19
|
accountPersonalDataRequest = "accountPersonalDataRequest",
|
|
18
20
|
accountPhoneNumber = "accountPhoneNumber",
|
|
19
21
|
accountPriceRange = "accountPriceRange",
|
|
22
|
+
accountPrivacy = "accountPrivacy",
|
|
20
23
|
accountSettings = "accountSettings",
|
|
24
|
+
accountTermsAndConditions = "accountTermsAndConditions",
|
|
21
25
|
activities = "activities",
|
|
22
26
|
activity = "activity",
|
|
23
27
|
album = "album",
|
|
@@ -162,7 +166,7 @@ export declare enum OwnerType {
|
|
|
162
166
|
/**
|
|
163
167
|
* Owner types available in iOS/Android
|
|
164
168
|
*/
|
|
165
|
-
export type ScreenOwnerType = OwnerType.about | OwnerType.account | OwnerType.accountDarkMode | OwnerType.accountDeleteMyAccount | OwnerType.accountEmail | OwnerType.accountNotifications | OwnerType.accountOrders | OwnerType.accountPassword | OwnerType.accountPayment | OwnerType.accountAddPayment | OwnerType.accountPersonalDataRequest | OwnerType.accountPhoneNumber | OwnerType.accountPriceRange | OwnerType.accountSettings | OwnerType.activities | OwnerType.activity | OwnerType.album | OwnerType.alertConfirmation | OwnerType.alertDetails | OwnerType.alertFilters | OwnerType.alerts | OwnerType.alert | OwnerType.alertsInfoModal | OwnerType.allArtistSeries | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistArticles | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.artworkList | OwnerType.artworkPriceFilter | OwnerType.artworkRecommendations | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.category | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collect | OwnerType.collection | OwnerType.collectionsCategory | OwnerType.confirmYourBid | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentInquiry | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.createAlert | OwnerType.editAlert | OwnerType.editProfile | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.favorites | OwnerType.favoritesAlerts | OwnerType.favoritesFollows | OwnerType.favoritesSaves | OwnerType.featuredFairs | OwnerType.follows | OwnerType.gallery | OwnerType.galleriesForYou | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.infiniteDiscoveryArtwork | OwnerType.infiniteDiscoveryOnboarding | OwnerType.lotsByArtistsYouFollow | OwnerType.lotsForYou | OwnerType.marketNews | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.myCollectionInsightsMedianAuctionPrice | OwnerType.myCollectionOnboarding | OwnerType.newWorksForYou | OwnerType.newWorksFromGalleriesYouFollow | OwnerType.notification | OwnerType.onboarding | OwnerType.partner | OwnerType.priceDatabase | OwnerType.profile | OwnerType.quickLinks | OwnerType.recentlyViewed | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.savedSearchArtworkMatches | OwnerType.saves | OwnerType.savesAndFollows | OwnerType.savesInfoModal | OwnerType.search | OwnerType.sell | OwnerType.settings | OwnerType.show | OwnerType.shows | OwnerType.similarToRecentlyViewed | OwnerType.submitArtworkStepAddDetails | OwnerType.submitArtworkStepAddDimensions | OwnerType.submitArtworkStepAddPhoneNumber | OwnerType.submitArtworkStepAddPhotos | OwnerType.submitArtworkStepAddtionalDocuments | OwnerType.submitArtworkStepAddTitle | OwnerType.submitArtworkStepArtistRejected | OwnerType.submitArtworkStepCompleteYourSubmission | OwnerType.submitArtworkStepCompleteYourSubmissionPostApproval | OwnerType.submitArtworkStepCondition | OwnerType.submitArtworkStepFrameInformation | OwnerType.submitArtworkStepPurchaseHistory | OwnerType.submitArtworkStepSelectArtist | OwnerType.submitArtworkStepSelectArtworkMyCollectionArtwork | OwnerType.submitArtworkStepShippingLocation | OwnerType.submitArtworkStepStart | OwnerType.tag | OwnerType.upcomingAuctions | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou | OwnerType.yourMaxBid;
|
|
169
|
+
export type ScreenOwnerType = OwnerType.about | OwnerType.account | OwnerType.accountDarkMode | OwnerType.accountDeleteMyAccount | OwnerType.accountEmail | OwnerType.accountLoginAndSecurity | OwnerType.accountNotifications | OwnerType.accountOrders | OwnerType.accountPassword | OwnerType.accountPayment | OwnerType.accountAddPayment | OwnerType.accountPersonalDataRequest | OwnerType.accountPhoneNumber | OwnerType.accountPreferences | OwnerType.accountPriceRange | OwnerType.accountPrivacy | OwnerType.accountSettings | OwnerType.accountTermsAndConditions | OwnerType.activities | OwnerType.activity | OwnerType.album | OwnerType.alertConfirmation | OwnerType.alertDetails | OwnerType.alertFilters | OwnerType.alerts | OwnerType.alert | OwnerType.alertsInfoModal | OwnerType.allArtistSeries | OwnerType.article | OwnerType.articles | OwnerType.artist | OwnerType.artistArticles | OwnerType.artistAuctionResults | OwnerType.artistSeries | OwnerType.artwork | OwnerType.artworkList | OwnerType.artworkPriceFilter | OwnerType.artworkRecommendations | OwnerType.auctionResult | OwnerType.auctionResultsForArtistsYouFollow | OwnerType.auctions | OwnerType.category | OwnerType.cityGuideGuide | OwnerType.cityGuideMap | OwnerType.cityPicker | OwnerType.collect | OwnerType.collection | OwnerType.collectionsCategory | OwnerType.confirmYourBid | OwnerType.consign | OwnerType.consignmentFlow | OwnerType.consignmentInquiry | OwnerType.consignmentSubmission | OwnerType.conversation | OwnerType.conversationMakeOfferConfirmArtwork | OwnerType.createAlert | OwnerType.editAlert | OwnerType.editProfile | OwnerType.explore | OwnerType.fair | OwnerType.fairArtworks | OwnerType.favorites | OwnerType.favoritesAlerts | OwnerType.favoritesFollows | OwnerType.favoritesSaves | OwnerType.featuredFairs | OwnerType.follows | OwnerType.gallery | OwnerType.galleriesForYou | OwnerType.gene | OwnerType.home | OwnerType.inbox | OwnerType.inboxBids | OwnerType.inboxConversation | OwnerType.inboxInquiries | OwnerType.infiniteDiscoveryArtwork | OwnerType.infiniteDiscoveryOnboarding | OwnerType.lotsByArtistsYouFollow | OwnerType.lotsForYou | OwnerType.marketNews | OwnerType.myCollection | OwnerType.myCollectionAddArtworkArtist | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtwork | OwnerType.myCollectionArtworkAbout | OwnerType.myCollectionArtworkInsights | OwnerType.myCollectionInsights | OwnerType.myCollectionInsightsMedianAuctionPrice | OwnerType.myCollectionOnboarding | OwnerType.newWorksForYou | OwnerType.newWorksFromGalleriesYouFollow | OwnerType.notification | OwnerType.onboarding | OwnerType.partner | OwnerType.priceDatabase | OwnerType.profile | OwnerType.quickLinks | OwnerType.recentlyViewed | OwnerType.sale | OwnerType.saleInformation | OwnerType.savedSearch | OwnerType.savedSearches | OwnerType.savedSearchArtworkMatches | OwnerType.saves | OwnerType.savesAndFollows | OwnerType.savesInfoModal | OwnerType.search | OwnerType.sell | OwnerType.settings | OwnerType.show | OwnerType.shows | OwnerType.similarToRecentlyViewed | OwnerType.submitArtworkStepAddDetails | OwnerType.submitArtworkStepAddDimensions | OwnerType.submitArtworkStepAddPhoneNumber | OwnerType.submitArtworkStepAddPhotos | OwnerType.submitArtworkStepAddtionalDocuments | OwnerType.submitArtworkStepAddTitle | OwnerType.submitArtworkStepArtistRejected | OwnerType.submitArtworkStepCompleteYourSubmission | OwnerType.submitArtworkStepCompleteYourSubmissionPostApproval | OwnerType.submitArtworkStepCondition | OwnerType.submitArtworkStepFrameInformation | OwnerType.submitArtworkStepPurchaseHistory | OwnerType.submitArtworkStepSelectArtist | OwnerType.submitArtworkStepSelectArtworkMyCollectionArtwork | OwnerType.submitArtworkStepShippingLocation | OwnerType.submitArtworkStepStart | OwnerType.tag | OwnerType.upcomingAuctions | OwnerType.viewingRoom | OwnerType.viewingRoomArtworkPage | OwnerType.viewingRoomArtworks | OwnerType.viewingRoomList | OwnerType.worksForYou | OwnerType.yourMaxBid;
|
|
166
170
|
/**
|
|
167
171
|
* Owner types available in web/mobile web
|
|
168
172
|
*/
|
|
@@ -27,15 +27,19 @@ exports.OwnerType = OwnerType;
|
|
|
27
27
|
OwnerType["accountDarkMode"] = "accountDarkMode";
|
|
28
28
|
OwnerType["accountDeleteMyAccount"] = "accountDeleteMyAccount";
|
|
29
29
|
OwnerType["accountEmail"] = "accountEmail";
|
|
30
|
+
OwnerType["accountLoginAndSecurity"] = "accountLoginAndSecurity";
|
|
30
31
|
OwnerType["accountNotifications"] = "accountNotifications";
|
|
31
32
|
OwnerType["accountOrders"] = "accountOrders";
|
|
32
33
|
OwnerType["accountPassword"] = "accountPassword";
|
|
33
34
|
OwnerType["accountPayment"] = "accountPayment";
|
|
35
|
+
OwnerType["accountPreferences"] = "accountPreferences";
|
|
34
36
|
OwnerType["accountAddPayment"] = "accountAddPayment";
|
|
35
37
|
OwnerType["accountPersonalDataRequest"] = "accountPersonalDataRequest";
|
|
36
38
|
OwnerType["accountPhoneNumber"] = "accountPhoneNumber";
|
|
37
39
|
OwnerType["accountPriceRange"] = "accountPriceRange";
|
|
40
|
+
OwnerType["accountPrivacy"] = "accountPrivacy";
|
|
38
41
|
OwnerType["accountSettings"] = "accountSettings";
|
|
42
|
+
OwnerType["accountTermsAndConditions"] = "accountTermsAndConditions";
|
|
39
43
|
OwnerType["activities"] = "activities";
|
|
40
44
|
OwnerType["activity"] = "activity";
|
|
41
45
|
OwnerType["album"] = "album";
|