@artsy/cohesion 4.310.0 → 4.312.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.312.0 (Mon Oct 27 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - chore: remove extra conversation_template_id from payload on CmsQuickReplyClickedCreateNewTemplate [#647](https://github.com/artsy/cohesion/pull/647) ([@mzikherman](https://github.com/mzikherman))
6
+
7
+ #### Authors: 1
8
+
9
+ - Matt Zikherman ([@mzikherman](https://github.com/mzikherman))
10
+
11
+ ---
12
+
13
+ # v4.311.0 (Fri Oct 24 2025)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - chore: add schema for QuickReply feature in CMS Conversations [#646](https://github.com/artsy/cohesion/pull/646) ([@mzikherman](https://github.com/mzikherman))
18
+
19
+ #### Authors: 1
20
+
21
+ - Matt Zikherman ([@mzikherman](https://github.com/mzikherman))
22
+
23
+ ---
24
+
1
25
  # v4.310.0 (Fri Oct 24 2025)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Schemas describing CMS Quick Reply events
3
+ * @packageDocumentation
4
+ */
5
+ import { CmsContextModule } from "../Values/CmsContextModule";
6
+ import { CmsActionType } from ".";
7
+ /**
8
+ * User clicks on the icon to open the menu of quick replies
9
+ *
10
+ * context_page_owner_id is the impulse conversation ID
11
+ *
12
+ * @example
13
+ * ```
14
+ * {
15
+ * action: "openedMenu",
16
+ * context_module: "conversations",
17
+ * context_page_owner_id: "496984",
18
+ * }
19
+ * ```
20
+ */
21
+ export interface CmsQuickReplyOpenedMenu {
22
+ action: CmsActionType.openedMenu;
23
+ context_module: CmsContextModule.conversations;
24
+ context_page_owner_id: string;
25
+ }
26
+ /**
27
+ * User clicks on the trash can icon to delete a template
28
+ *
29
+ * @example
30
+ * ```
31
+ * {
32
+ * action: "clickedDeleteTemplate",
33
+ * context_module: "conversations",
34
+ * context_page_owner_id: "496984",
35
+ * conversation_template_id: "80912749071",
36
+ * }
37
+ * ```
38
+ */
39
+ export interface CmsQuickReplyClickedDeleteTemplate {
40
+ action: CmsActionType.clickedDeleteTemplate;
41
+ context_module: CmsContextModule.conversations;
42
+ context_page_owner_id: string;
43
+ conversation_template_id: string;
44
+ }
45
+ /**
46
+ * User completes the flow and actually deletes the template
47
+ *
48
+ * @example
49
+ * ```
50
+ * {
51
+ * action: "deletedTemplate",
52
+ * context_module: "conversations",
53
+ * context_page_owner_id: "496984",
54
+ * conversation_template_id: "80912749071",
55
+ * }
56
+ * ```
57
+ */
58
+ export interface CmsQuickReplyDeletedTemplate {
59
+ action: CmsActionType.deletedTemplate;
60
+ context_module: CmsContextModule.conversations;
61
+ context_page_owner_id: string;
62
+ conversation_template_id: string;
63
+ }
64
+ /**
65
+ * User clicks on "+New" to create a new template
66
+ *
67
+ * @example
68
+ * ```
69
+ * {
70
+ * action: "clickedCreateNewTemplate",
71
+ * context_module: "conversations",
72
+ * context_page_owner_id: "496984",
73
+ * }
74
+ * ```
75
+ */
76
+ export interface CmsQuickReplyClickedCreateNewTemplate {
77
+ action: CmsActionType.clickedCreateNewTemplate;
78
+ context_module: CmsContextModule.conversations;
79
+ context_page_owner_id: string;
80
+ }
81
+ /**
82
+ * User completes the flow and actually creates a new custom template
83
+ *
84
+ * @example
85
+ * ```
86
+ * {
87
+ * action: "createdNewTemplate",
88
+ * context_module: "conversations",
89
+ * context_page_owner_id: "496984",
90
+ * conversation_template_id: "80912749071",
91
+ * }
92
+ * ```
93
+ */
94
+ export interface CmsQuickReplyCreatedNewTemplate {
95
+ action: CmsActionType.createdNewTemplate;
96
+ context_module: CmsContextModule.conversations;
97
+ context_page_owner_id: string;
98
+ conversation_template_id: string;
99
+ }
100
+ /**
101
+ * Event fires upon clicking "saved X response(s)"
102
+ *
103
+ * saved_templates is a string[] object that captures the checklist of templates
104
+ * saved to the partner. Uses general names for saved_templates, not the titles
105
+ * of the messages, in case copy changes.
106
+ *
107
+ * @example
108
+ * ```
109
+ * {
110
+ * action: "savedExampleTemplate",
111
+ * context_module: "conversations",
112
+ * context_page_owner_id: "496984",
113
+ * saved_templates: ["general", "unavailable"],
114
+ * conversation_template_ids: ["80912749071", "1231231231"],
115
+ * }
116
+ * ```
117
+ */
118
+ export interface CmsQuickReplySavedExampleTemplate {
119
+ action: CmsActionType.savedExampleTemplate;
120
+ context_module: CmsContextModule.conversations;
121
+ context_page_owner_id: string;
122
+ saved_templates: string[];
123
+ conversation_template_ids: string[];
124
+ }
125
+ /**
126
+ * User clicks on the edit icon
127
+ *
128
+ * @example
129
+ * ```
130
+ * {
131
+ * action: "clickedEditTemplate",
132
+ * context_module: "conversations",
133
+ * context_page_owner_id: "496984",
134
+ * conversation_template_id: "80912749071",
135
+ * }
136
+ * ```
137
+ */
138
+ export interface CmsQuickReplyClickedEditTemplate {
139
+ action: CmsActionType.clickedEditTemplate;
140
+ context_module: CmsContextModule.conversations;
141
+ context_page_owner_id: string;
142
+ conversation_template_id: string;
143
+ }
144
+ /**
145
+ * User completes the flow and clicks save response to update the template
146
+ *
147
+ * @example
148
+ * ```
149
+ * {
150
+ * action: "editedTemplate",
151
+ * context_module: "conversations",
152
+ * context_page_owner_id: "496984",
153
+ * conversation_template_id: "80912749071",
154
+ * }
155
+ * ```
156
+ */
157
+ export interface CmsQuickReplyEditedTemplate {
158
+ action: CmsActionType.editedTemplate;
159
+ context_module: CmsContextModule.conversations;
160
+ context_page_owner_id: string;
161
+ conversation_template_id: string;
162
+ }
163
+ /**
164
+ * Union type of all CMS Quick Reply events
165
+ */
166
+ export type CmsQuickReplyFlow = CmsQuickReplyOpenedMenu | CmsQuickReplyClickedDeleteTemplate | CmsQuickReplyDeletedTemplate | CmsQuickReplyClickedCreateNewTemplate | CmsQuickReplyCreatedNewTemplate | CmsQuickReplySavedExampleTemplate | CmsQuickReplyClickedEditTemplate | CmsQuickReplyEditedTemplate;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -2,6 +2,7 @@ import { CmsAnalyticsPage } from "./AnalyticsPage";
2
2
  import { CmsArtworkFilter } from "./ArtworkFilter";
3
3
  import { CmsBatchImportFlow } from "./BatchImportFlow";
4
4
  import { CmsBulkEditFlow } from "./BulkEditFlow";
5
+ import { CmsQuickReplyFlow } from "./QuickReplyFlow";
5
6
  import { CmsSettingsFlow } from "./SettingsFlow";
6
7
  import { CmsShowFlow } from "./ShowFlow";
7
8
  import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
@@ -10,7 +11,7 @@ import { CmsUploadArtworkFlow } from "./UploadArtworkFlow";
10
11
  *
11
12
  * Each event describes one ActionType
12
13
  */
13
- export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsSettingsFlow | CmsShowFlow;
14
+ export type CmsEvent = CmsAnalyticsPage | CmsArtworkFilter | CmsBulkEditFlow | CmsBatchImportFlow | CmsUploadArtworkFlow | CmsQuickReplyFlow | CmsSettingsFlow | CmsShowFlow;
14
15
  /**
15
16
  * List of all CMS actions
16
17
  *
@@ -136,5 +137,37 @@ export declare enum CmsActionType {
136
137
  /**
137
138
  * Corresponds to {@link CmsBatchImportFlow}
138
139
  */
139
- batchImportClickDeleteImage = "batchImportClickDeleteImage"
140
+ batchImportClickDeleteImage = "batchImportClickDeleteImage",
141
+ /**
142
+ * Corresponds to {@link CmsQuickReplyFlow}
143
+ */
144
+ clickedCreateNewTemplate = "clickedCreateNewTemplate",
145
+ /**
146
+ * Corresponds to {@link CmsQuickReplyFlow}
147
+ */
148
+ clickedDeleteTemplate = "clickedDeleteTemplate",
149
+ /**
150
+ * Corresponds to {@link CmsQuickReplyFlow}
151
+ */
152
+ clickedEditTemplate = "clickedEditTemplate",
153
+ /**
154
+ * Corresponds to {@link CmsQuickReplyFlow}
155
+ */
156
+ createdNewTemplate = "createdNewTemplate",
157
+ /**
158
+ * Corresponds to {@link CmsQuickReplyFlow}
159
+ */
160
+ deletedTemplate = "deletedTemplate",
161
+ /**
162
+ * Corresponds to {@link CmsQuickReplyFlow}
163
+ */
164
+ editedTemplate = "editedTemplate",
165
+ /**
166
+ * Corresponds to {@link CmsQuickReplyFlow}
167
+ */
168
+ openedMenu = "openedMenu",
169
+ /**
170
+ * Corresponds to {@link CmsQuickReplyFlow}
171
+ */
172
+ savedExampleTemplate = "savedExampleTemplate"
140
173
  }
@@ -50,4 +50,12 @@ exports.CmsActionType = CmsActionType;
50
50
  CmsActionType["batchImportAddedImage"] = "batchImportAddedImage";
51
51
  CmsActionType["batchImportReorderImage"] = "batchImportReorderImage";
52
52
  CmsActionType["batchImportClickDeleteImage"] = "batchImportClickDeleteImage";
53
+ CmsActionType["clickedCreateNewTemplate"] = "clickedCreateNewTemplate";
54
+ CmsActionType["clickedDeleteTemplate"] = "clickedDeleteTemplate";
55
+ CmsActionType["clickedEditTemplate"] = "clickedEditTemplate";
56
+ CmsActionType["createdNewTemplate"] = "createdNewTemplate";
57
+ CmsActionType["deletedTemplate"] = "deletedTemplate";
58
+ CmsActionType["editedTemplate"] = "editedTemplate";
59
+ CmsActionType["openedMenu"] = "openedMenu";
60
+ CmsActionType["savedExampleTemplate"] = "savedExampleTemplate";
53
61
  })(CmsActionType || (exports.CmsActionType = CmsActionType = {}));
@@ -17,6 +17,7 @@ export declare enum CmsContextModule {
17
17
  artworkFilterQuickEdit = "Artworks - quick edit",
18
18
  batchImportFlow = "batchImportFlow",
19
19
  bulkEditFlow = "Artworks - bulk edit",
20
+ conversations = "conversations",
20
21
  uploads = "Uploads",
21
22
  settings = "Settings",
22
23
  showsInstallShots = "Shows - Install shots"
@@ -27,6 +27,7 @@ exports.CmsContextModule = CmsContextModule;
27
27
  CmsContextModule["artworkFilterQuickEdit"] = "Artworks - quick edit";
28
28
  CmsContextModule["batchImportFlow"] = "batchImportFlow";
29
29
  CmsContextModule["bulkEditFlow"] = "Artworks - bulk edit";
30
+ CmsContextModule["conversations"] = "conversations";
30
31
  CmsContextModule["uploads"] = "Uploads";
31
32
  CmsContextModule["settings"] = "Settings";
32
33
  CmsContextModule["showsInstallShots"] = "Shows - Install shots";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/cohesion",
3
- "version": "4.310.0",
3
+ "version": "4.312.0",
4
4
  "description": "Analytics schema",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {