@artsy/cohesion 4.261.0 → 4.263.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,27 @@
1
+ # v4.263.0 (Wed May 07 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - fix(upload): missed user_id [#592](https://github.com/artsy/cohesion/pull/592) ([@damassi](https://github.com/damassi))
6
+
7
+ #### Authors: 1
8
+
9
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
10
+
11
+ ---
12
+
13
+ # v4.262.0 (Wed May 07 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - feat(artworks): Add a few new events [#591](https://github.com/artsy/cohesion/pull/591) ([@damassi](https://github.com/damassi))
18
+
19
+ #### Authors: 1
20
+
21
+ - Christopher Pappas ([@damassi](https://github.com/damassi))
22
+
23
+ ---
24
+
1
25
  # v4.261.0 (Wed May 07 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
- export type CmsArtworkFilter = CmsArtworkFilterClickDuplicateArtwork | CmsArtworkFilterClickSort | CmsArtworkFilterQuickEditClickFilter | CmsArtworkFilterQuickEditSavePrice | CmsArtworkFilterQuickEditChangeAvailability | CmsArtworkFilterQuickEditPublish | CmsArtworkFilterQuickEditClickImport | CmsArtworkFilterSearch;
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
- export type UploadArtworkFlow = UploadArtworkFlowClickSelectExistingArtist | UploadArtworkFlowClickFinishUploadingImages | UploadArtworkFlowClickViewMyArtworks;
58
+ /**
59
+ * Event fired after user created artworks
60
+ *
61
+ * @example
62
+ * ```
63
+ * {
64
+ * action: "created artwork",
65
+ * context_module: "Uploads",
66
+ * artwork_ids: ['some-artwork-id'],
67
+ * user_id: "some-user-id",
68
+ * }
69
+ * ```
70
+ */
71
+ export interface UploadArtworkFlowCreateArtworks {
72
+ action: CmsActionType.createdArtwork;
73
+ context_module: CmsContextModule.uploads;
74
+ artwork_ids: string[];
75
+ user_id: 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 | CmsArtworkFilter;
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.261.0",
3
+ "version": "4.263.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {