@artsy/cohesion 4.269.0 → 4.270.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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v4.270.0 (Thu Jun 12 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat: Start adding bulk edit related `shown` events [#600](https://github.com/artsy/cohesion/pull/600) ([@jpotts244](https://github.com/jpotts244))
6
+
7
+ #### Authors: 1
8
+
9
+ - Jacqueline Potts ([@jpotts244](https://github.com/jpotts244))
10
+
11
+ ---
12
+
1
13
  # v4.269.0 (Thu Jun 12 2025)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Schemas describing CMS BulkEditFlow events
3
+ * @packageDocumentation
4
+ */
5
+ import { CmsActionType } from ".";
6
+ import { CmsContextModule } from "../Values/CmsContextModule";
7
+ /**
8
+ * A partner has seen the max edit limit reached tool tip.
9
+ *
10
+ * @example
11
+ * ```
12
+ * {
13
+ * action: "shownMaxEditLimitReached",
14
+ * context_module: "Artworks - bulk edit",
15
+ * }
16
+ * ```
17
+ */
18
+ export interface CmsBulkEditMaxEditLimitReachedShown {
19
+ action: CmsActionType.shownMaxEditLimitReached;
20
+ context_module: CmsContextModule.bulkEditFlow;
21
+ }
22
+ /**
23
+ * Partner has viewed yellow messaging that lists conflicts in the bulk edit drawer
24
+ *
25
+ * @example
26
+ * ```
27
+ * {
28
+ * action: "shownConflicts",
29
+ * context_module: "Artworks - bulk edit",
30
+ * values: ["Location, Availability"]
31
+ * }
32
+ * ```
33
+ */
34
+ export interface CmsBulkEditConflictsShown {
35
+ action: CmsActionType.shownConflicts;
36
+ context_module: CmsContextModule.bulkEditFlow;
37
+ values: string[];
38
+ }
39
+ /**
40
+ * Partner has viewed green tooltip that confirms conflicts were resolved in the bulk edit drawer
41
+ *
42
+ * @example
43
+ * ```
44
+ * {
45
+ * action: "shownResolvedAllConflicts",
46
+ * context_module: "Artworks - bulk edit",
47
+ * }
48
+ * ```
49
+ */
50
+ export interface CmsBulkEditResolvedAllConflictsShown {
51
+ action: CmsActionType.shownResolvedAllConflicts;
52
+ context_module: CmsContextModule.bulkEditFlow;
53
+ }
54
+ export type CmsBulkEditFlow = CmsBulkEditConflictsShown | CmsBulkEditMaxEditLimitReachedShown | CmsBulkEditResolvedAllConflictsShown;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,5 +1,6 @@
1
1
  import { CmsArtworkFilter } from "./ArtworkFilter";
2
2
  import { CmsBatchImportFlow } from "./BatchImportFlow";
3
+ import { CmsBulkEditFlow } from "./BulkEditFlow";
3
4
  import { CmsSettingsFlow } from "./SettingsFlow";
4
5
  import { CmsShowFlow } from "./ShowFlow";
5
6
  import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
@@ -8,13 +9,17 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
8
9
  *
9
10
  * Each event describes one ActionType
10
11
  */
11
- export type CmsEvent = CmsArtworkFilter | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsSettingsFlow | CmsShowFlow;
12
+ export type CmsEvent = CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsSettingsFlow | CmsShowFlow;
12
13
  /**
13
14
  * List of all CMS actions
14
15
  *
15
16
  * Each CmsActionType corresponds with a table in Redshift.
16
17
  */
17
18
  export declare enum CmsActionType {
19
+ /**
20
+ * Corresponds to {@link SettingsFlow}
21
+ */
22
+ addedNewLocation = "addedNewLocation",
18
23
  /**
19
24
  * Corresponds to {@link CmsBatchImportFlow}
20
25
  */
@@ -31,20 +36,28 @@ export declare enum CmsActionType {
31
36
  * Corresponds to {@link CmsBatchImportFlow}
32
37
  */
33
38
  csvImportError = "csvImportError",
39
+ /**
40
+ * Corresponds to {@link SettingsFlow}
41
+ */
42
+ editedLocation = "editedLocation",
34
43
  /**
35
44
  * Corresponds to {@link CmsArtworkFilter}
36
45
  */
37
46
  searchedArtwork = "searched artwork",
38
47
  /**
39
- * Corresponds to {@link BatchImportFlow}
48
+ * Corresponds to {@link BulkEditFlow}
40
49
  */
41
- shownMissingInformation = "shownMissingInformation",
50
+ shownConflicts = "shownConflicts",
42
51
  /**
43
- * Corresponds to {@link SettingsFlow}
52
+ * Corresponds to {@link BulkEditFlow}
44
53
  */
45
- addedNewLocation = "addedNewLocation",
54
+ shownMaxEditLimitReached = "shownMaxEditLimitReached",
46
55
  /**
47
- * Corresponds to {@link SettingsFlow}
56
+ * Corresponds to {@link BulkEditFlow}
57
+ */
58
+ shownResolvedAllConflicts = "shownResolvedAllConflicts",
59
+ /**
60
+ * Corresponds to {@link BatchImportFlow}
48
61
  */
49
- editedLocation = "editedLocation"
62
+ shownMissingInformation = "shownMissingInformation"
50
63
  }
@@ -20,12 +20,15 @@ var CmsActionType;
20
20
  exports.CmsActionType = CmsActionType;
21
21
 
22
22
  (function (CmsActionType) {
23
+ CmsActionType["addedNewLocation"] = "addedNewLocation";
23
24
  CmsActionType["artistNeedsMatching"] = "artistNeedsMatching";
24
25
  CmsActionType["clickedOnDuplicateArtwork"] = "clickedonduplicateartwork";
25
26
  CmsActionType["createdArtwork"] = "created artwork";
26
27
  CmsActionType["csvImportError"] = "csvImportError";
28
+ CmsActionType["editedLocation"] = "editedLocation";
27
29
  CmsActionType["searchedArtwork"] = "searched artwork";
30
+ CmsActionType["shownConflicts"] = "shownConflicts";
31
+ CmsActionType["shownMaxEditLimitReached"] = "shownMaxEditLimitReached";
32
+ CmsActionType["shownResolvedAllConflicts"] = "shownResolvedAllConflicts";
28
33
  CmsActionType["shownMissingInformation"] = "shownMissingInformation";
29
- CmsActionType["addedNewLocation"] = "addedNewLocation";
30
- CmsActionType["editedLocation"] = "editedLocation";
31
34
  })(CmsActionType || (exports.CmsActionType = CmsActionType = {}));
@@ -10,6 +10,7 @@ export declare enum CmsContextModule {
10
10
  artworkFilterSearch = "Artworks - search",
11
11
  artworkFilterQuickEdit = "Artworks - quick edit",
12
12
  batchImportFlow = "batchImportFlow",
13
+ bulkEditFlow = "Artworks - bulk edit",
13
14
  uploads = "Uploads",
14
15
  settings = "Settings",
15
16
  showsInstallShots = "Shows - Install shots"
@@ -20,6 +20,7 @@ exports.CmsContextModule = CmsContextModule;
20
20
  CmsContextModule["artworkFilterSearch"] = "Artworks - search";
21
21
  CmsContextModule["artworkFilterQuickEdit"] = "Artworks - quick edit";
22
22
  CmsContextModule["batchImportFlow"] = "batchImportFlow";
23
+ CmsContextModule["bulkEditFlow"] = "Artworks - bulk edit";
23
24
  CmsContextModule["uploads"] = "Uploads";
24
25
  CmsContextModule["settings"] = "Settings";
25
26
  CmsContextModule["showsInstallShots"] = "Shows - Install shots";
@@ -4,6 +4,7 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  export declare enum CmsOwnerType {
7
+ bulkEdit = "bulkEdit",
7
8
  batchImport = "batchImport",
8
9
  batchImportArtistMatching = "batchImportArtistMatching"
9
10
  }
@@ -14,6 +14,7 @@ var CmsOwnerType;
14
14
  exports.CmsOwnerType = CmsOwnerType;
15
15
 
16
16
  (function (CmsOwnerType) {
17
+ CmsOwnerType["bulkEdit"] = "bulkEdit";
17
18
  CmsOwnerType["batchImport"] = "batchImport";
18
19
  CmsOwnerType["batchImportArtistMatching"] = "batchImportArtistMatching";
19
20
  })(CmsOwnerType || (exports.CmsOwnerType = CmsOwnerType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.269.0",
3
+ "version": "4.270.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {