@artsy/cohesion 4.264.0 → 4.264.1
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 +12 -0
- package/dist/Schema/CMS/Events/SettingsFlow.d.ts +45 -0
- package/dist/Schema/CMS/Events/SettingsFlow.js +1 -0
- package/dist/Schema/CMS/Events/index.d.ts +11 -2
- package/dist/Schema/CMS/Events/index.js +2 -0
- package/dist/Schema/CMS/Values/CmsContextModule.d.ts +2 -1
- package/dist/Schema/CMS/Values/CmsContextModule.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v4.264.1 (Tue May 20 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- feat(settingsV2): Adds new events for PartnerLocation edit and new [#595](https://github.com/artsy/cohesion/pull/595) ([@jpotts244](https://github.com/jpotts244))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v4.264.0 (Tue May 13 2025)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CmsActionType } from ".";
|
|
2
|
+
import { CmsContextModule } from "../Values/CmsContextModule";
|
|
3
|
+
/**
|
|
4
|
+
* Event fired after user new partner location
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```
|
|
8
|
+
* {
|
|
9
|
+
* action: "added new location",
|
|
10
|
+
* context_module: "Settings",
|
|
11
|
+
* after_address_type: "Business",
|
|
12
|
+
* user_id: "some-user-id",
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export interface SettingsFlowAddNewLocation {
|
|
17
|
+
action: CmsActionType.addedNewLocation;
|
|
18
|
+
context_module: CmsContextModule.settings;
|
|
19
|
+
after_address_type: string;
|
|
20
|
+
user_id: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Event fired after user edits a partner location
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```
|
|
27
|
+
* {
|
|
28
|
+
* action: "edited location",
|
|
29
|
+
* context_module: "Settings",
|
|
30
|
+
* before_address_type: "Business",
|
|
31
|
+
* after_address_type: "Business",
|
|
32
|
+
* partner_location_id: "some-partner-location-id",
|
|
33
|
+
* user_id: "some-user-id",
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export interface SettingsFlowEditLocation {
|
|
38
|
+
action: CmsActionType.editedLocation;
|
|
39
|
+
context_module: CmsContextModule.settings;
|
|
40
|
+
before_address_type: string;
|
|
41
|
+
after_address_type: string;
|
|
42
|
+
partner_location_id: string;
|
|
43
|
+
user_id: string;
|
|
44
|
+
}
|
|
45
|
+
export type CmsSettingsFlow = SettingsFlowAddNewLocation | SettingsFlowEditLocation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { CmsArtworkFilter } from "./ArtworkFilter";
|
|
2
2
|
import { CmsBatchImportFlow } from "./BatchImportFlow";
|
|
3
|
+
import { CmsSettingsFlow } from "./SettingsFlow";
|
|
3
4
|
import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
|
|
4
5
|
/**
|
|
5
6
|
* List of valid schemas for CMS analytics actions
|
|
6
7
|
*
|
|
7
8
|
* Each event describes one ActionType
|
|
8
9
|
*/
|
|
9
|
-
export type CmsEvent = CmsArtworkFilter | CmsBatchImportFlow | CmsUploadArtworkFlow;
|
|
10
|
+
export type CmsEvent = CmsArtworkFilter | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsSettingsFlow;
|
|
10
11
|
/**
|
|
11
12
|
* List of all CMS actions
|
|
12
13
|
*
|
|
@@ -36,5 +37,13 @@ export declare enum CmsActionType {
|
|
|
36
37
|
/**
|
|
37
38
|
* Corresponds to {@link BatchImportFlow}
|
|
38
39
|
*/
|
|
39
|
-
shownMissingInformation = "shownMissingInformation"
|
|
40
|
+
shownMissingInformation = "shownMissingInformation",
|
|
41
|
+
/**
|
|
42
|
+
* Corresponds to {@link SettingsFlow}
|
|
43
|
+
*/
|
|
44
|
+
addedNewLocation = "addedNewLocation",
|
|
45
|
+
/**
|
|
46
|
+
* Corresponds to {@link SettingsFlow}
|
|
47
|
+
*/
|
|
48
|
+
editedLocation = "editedLocation"
|
|
40
49
|
}
|
|
@@ -26,4 +26,6 @@ exports.CmsActionType = CmsActionType;
|
|
|
26
26
|
CmsActionType["csvImportError"] = "csvImportError";
|
|
27
27
|
CmsActionType["searchedArtwork"] = "searched artwork";
|
|
28
28
|
CmsActionType["shownMissingInformation"] = "shownMissingInformation";
|
|
29
|
+
CmsActionType["addedNewLocation"] = "addedNewLocation";
|
|
30
|
+
CmsActionType["editedLocation"] = "editedLocation";
|
|
29
31
|
})(CmsActionType || (exports.CmsActionType = CmsActionType = {}));
|
|
@@ -20,4 +20,5 @@ exports.CmsContextModule = CmsContextModule;
|
|
|
20
20
|
CmsContextModule["artworkFilterQuickEdit"] = "Artworks - quick edit";
|
|
21
21
|
CmsContextModule["batchImportFlow"] = "batchImportFlow";
|
|
22
22
|
CmsContextModule["uploads"] = "Uploads";
|
|
23
|
+
CmsContextModule["settings"] = "Settings";
|
|
23
24
|
})(CmsContextModule || (exports.CmsContextModule = CmsContextModule = {}));
|