@artsy/cohesion 4.376.0 → 4.377.0--canary.723.15425.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/dist/Schema/index.d.ts +1 -0
- package/dist/Schema/index.js +12 -0
- package/dist/Schema/os/Events/InstagramEditor.d.ts +8 -7
- package/dist/Schema/os/Events/MailchimpEditor.d.ts +89 -0
- package/dist/Schema/os/Events/MailchimpEditor.js +1 -0
- package/dist/Schema/os/Events/__tests__/MailchimpEditor.test.d.ts +1 -0
- package/dist/Schema/os/Events/index.d.ts +8 -2
- package/dist/Schema/os/Events/index.js +1 -0
- package/dist/Schema/os/Values/OsContextModule.d.ts +2 -0
- package/dist/Schema/os/Values/OsContextModule.js +2 -0
- package/dist/Schema/os/Values/OsOwnerType.d.ts +1 -0
- package/dist/Schema/os/Values/OsOwnerType.js +1 -0
- package/package.json +1 -1
package/dist/Schema/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export * from "./os/Events/ConnectedAppsFlow";
|
|
|
57
57
|
export * from "./os/Events/FilterSortSearch";
|
|
58
58
|
export * from "./os/Events/InstagramEditor";
|
|
59
59
|
export * from "./os/Events/InventoryTable";
|
|
60
|
+
export * from "./os/Events/MailchimpEditor";
|
|
60
61
|
export * from "./os/Events/MaterialsEditor";
|
|
61
62
|
export * from "./os/Events/MultiAddFlow";
|
|
62
63
|
export * from "./os/Events/Submit";
|
package/dist/Schema/index.js
CHANGED
|
@@ -604,6 +604,18 @@ Object.keys(_InventoryTable).forEach(function (key) {
|
|
|
604
604
|
});
|
|
605
605
|
});
|
|
606
606
|
|
|
607
|
+
var _MailchimpEditor = require("./os/Events/MailchimpEditor");
|
|
608
|
+
|
|
609
|
+
Object.keys(_MailchimpEditor).forEach(function (key) {
|
|
610
|
+
if (key === "default" || key === "__esModule") return;
|
|
611
|
+
Object.defineProperty(exports, key, {
|
|
612
|
+
enumerable: true,
|
|
613
|
+
get: function get() {
|
|
614
|
+
return _MailchimpEditor[key];
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
|
|
607
619
|
var _MaterialsEditor = require("./os/Events/MaterialsEditor");
|
|
608
620
|
|
|
609
621
|
Object.keys(_MaterialsEditor).forEach(function (key) {
|
|
@@ -6,12 +6,13 @@ import { OsActionType } from ".";
|
|
|
6
6
|
* @packageDocumentation
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* A partner clicks "Connect" or "Cancel" in the
|
|
10
|
-
*
|
|
9
|
+
* A partner clicks "Connect" or "Cancel" in the account connection modal. The same
|
|
10
|
+
* modal is used for both Instagram and Mailchimp; `label` identifies which service it
|
|
11
|
+
* is, and `context_page_owner_type` identifies the surface it was opened from.
|
|
11
12
|
*
|
|
12
13
|
* This schema describes events sent to Segment from [[OsClickedConnectModal]]
|
|
13
14
|
*
|
|
14
|
-
* @example
|
|
15
|
+
* @example Instagram connect
|
|
15
16
|
* ```
|
|
16
17
|
* {
|
|
17
18
|
* action: "clickedConnectModal",
|
|
@@ -22,13 +23,13 @@ import { OsActionType } from ".";
|
|
|
22
23
|
* }
|
|
23
24
|
* ```
|
|
24
25
|
*
|
|
25
|
-
* @example
|
|
26
|
+
* @example Mailchimp cancel
|
|
26
27
|
* ```
|
|
27
28
|
* {
|
|
28
29
|
* action: "clickedConnectModal",
|
|
29
30
|
* context_module: "connectModal",
|
|
30
|
-
* context_page_owner_type: "
|
|
31
|
-
* label: "
|
|
31
|
+
* context_page_owner_type: "studioMailchimp",
|
|
32
|
+
* label: "mailchimp",
|
|
32
33
|
* value: "cancel"
|
|
33
34
|
* }
|
|
34
35
|
* ```
|
|
@@ -36,7 +37,7 @@ import { OsActionType } from ".";
|
|
|
36
37
|
export interface OsClickedConnectModal {
|
|
37
38
|
action: OsActionType.clickedConnectModal;
|
|
38
39
|
context_module: OsContextModule.connectModal;
|
|
39
|
-
context_page_owner_type: OsOwnerType
|
|
40
|
+
context_page_owner_type: OsOwnerType;
|
|
40
41
|
label: "instagram" | "mailchimp";
|
|
41
42
|
value: "connect" | "cancel";
|
|
42
43
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { OsContextModule } from "../Values/OsContextModule";
|
|
2
|
+
import { OsOwnerType } from "../Values/OsOwnerType";
|
|
3
|
+
import { OsActionType } from ".";
|
|
4
|
+
/**
|
|
5
|
+
* Schemas describing Art OS Mailchimp Editor events
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* A partner clicks "Cancel" or "Continue" in the Mailchimp campaign send confirmation modal.
|
|
10
|
+
*
|
|
11
|
+
* This schema describes events sent to Segment from [[OsClickedSendConfirmation]]
|
|
12
|
+
*
|
|
13
|
+
* @example Continue
|
|
14
|
+
* ```
|
|
15
|
+
* {
|
|
16
|
+
* action: "clickedSendConfirmation",
|
|
17
|
+
* context_module: "sendConfirmationModal",
|
|
18
|
+
* context_page_owner_type: "studioMailchimp",
|
|
19
|
+
* value: "continue"
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example Cancel
|
|
24
|
+
* ```
|
|
25
|
+
* {
|
|
26
|
+
* action: "clickedSendConfirmation",
|
|
27
|
+
* context_module: "sendConfirmationModal",
|
|
28
|
+
* context_page_owner_type: "studioMailchimp",
|
|
29
|
+
* value: "cancel"
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export interface OsClickedSendConfirmation {
|
|
34
|
+
action: OsActionType.clickedSendConfirmation;
|
|
35
|
+
context_module: OsContextModule.sendConfirmationModal;
|
|
36
|
+
context_page_owner_type: OsOwnerType.studioMailchimp;
|
|
37
|
+
value: "cancel" | "continue";
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A partner sends a Mailchimp campaign or downloads a PDF from the Mailchimp editor.
|
|
41
|
+
*
|
|
42
|
+
* `content` is a generic catch-all holding campaign metadata fields: artworkTitle,
|
|
43
|
+
* artistNames, subject, recipientCount, etc. It is kept generic so the same pattern
|
|
44
|
+
* can serve multiple studio surfaces.
|
|
45
|
+
*
|
|
46
|
+
* This schema describes events sent to Segment from [[OsCreatedMailchimpContent]]
|
|
47
|
+
*
|
|
48
|
+
* @example Send campaign
|
|
49
|
+
* ```
|
|
50
|
+
* {
|
|
51
|
+
* action: "createdStudioContent",
|
|
52
|
+
* context_module: "mailchimpEditor",
|
|
53
|
+
* context_page_owner_type: "studioMailchimp",
|
|
54
|
+
* value: "mailchimp campaign",
|
|
55
|
+
* brand_kit: true,
|
|
56
|
+
* content: {
|
|
57
|
+
* artworkTitle: "Xpto",
|
|
58
|
+
* artistNames: ["Jane Doe", "John Doe"],
|
|
59
|
+
* subject: "New artwork available",
|
|
60
|
+
* recipientCount: 150
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @example PDF download
|
|
66
|
+
* ```
|
|
67
|
+
* {
|
|
68
|
+
* action: "createdStudioContent",
|
|
69
|
+
* context_module: "mailchimpEditor",
|
|
70
|
+
* context_page_owner_type: "studioMailchimp",
|
|
71
|
+
* value: "pdf download",
|
|
72
|
+
* brand_kit: false,
|
|
73
|
+
* content: {
|
|
74
|
+
* artworkTitle: "Xpto",
|
|
75
|
+
* artistNames: ["Jane Doe", "John Doe"]
|
|
76
|
+
* }
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export interface OsCreatedMailchimpContent {
|
|
81
|
+
action: OsActionType.createdStudioContent;
|
|
82
|
+
context_module: OsContextModule.mailchimpEditor;
|
|
83
|
+
context_page_owner_type: OsOwnerType.studioMailchimp;
|
|
84
|
+
value: "mailchimp campaign" | "pdf download";
|
|
85
|
+
brand_kit: boolean;
|
|
86
|
+
/** Generic catch-all for campaign metadata included in the created content */
|
|
87
|
+
content: Record<string, unknown>;
|
|
88
|
+
}
|
|
89
|
+
export type OsMailchimpEditor = OsClickedSendConfirmation | OsCreatedMailchimpContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { OsConnectedAppsFlow } from "./ConnectedAppsFlow";
|
|
|
4
4
|
import { OsFilterSortSearch } from "./FilterSortSearch";
|
|
5
5
|
import { OsInstagramEditor } from "./InstagramEditor";
|
|
6
6
|
import { OsInventoryTable } from "./InventoryTable";
|
|
7
|
+
import { OsMailchimpEditor } from "./MailchimpEditor";
|
|
7
8
|
import { OsMaterialsEditor } from "./MaterialsEditor";
|
|
8
9
|
import { OsMultiAddFlow } from "./MultiAddFlow";
|
|
9
10
|
import { OsSubmitEvent } from "./Submit";
|
|
@@ -13,7 +14,7 @@ import { OsToggleEvent } from "./Toggle";
|
|
|
13
14
|
*
|
|
14
15
|
* Each event describes one ActionType
|
|
15
16
|
*/
|
|
16
|
-
export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMaterialsEditor | OsSubmitEvent | OsToggleEvent;
|
|
17
|
+
export type OsEvent = OsMultiAddFlow | ClickedBrandKitColor | ClickedBrandKitFont | ClickedAddBrandKitFile | ClickedSaveBrandKit | OsConnectedAppsFlow | OsClickEvent | OsFilterSortSearch | OsInstagramEditor | OsInventoryTable | OsMailchimpEditor | OsMaterialsEditor | OsSubmitEvent | OsToggleEvent;
|
|
17
18
|
/**
|
|
18
19
|
* List of all Art OS actions
|
|
19
20
|
*
|
|
@@ -117,6 +118,10 @@ export declare enum OsActionType {
|
|
|
117
118
|
* Corresponds to {@link OsInstagramEditor}
|
|
118
119
|
*/
|
|
119
120
|
clickedPublishConfirmation = "clickedPublishConfirmation",
|
|
121
|
+
/**
|
|
122
|
+
* Corresponds to {@link OsMailchimpEditor}
|
|
123
|
+
*/
|
|
124
|
+
clickedSendConfirmation = "clickedSendConfirmation",
|
|
120
125
|
/**
|
|
121
126
|
* Corresponds to {@link OsInstagramEditor}
|
|
122
127
|
*/
|
|
@@ -146,7 +151,8 @@ export declare enum OsActionType {
|
|
|
146
151
|
*/
|
|
147
152
|
createdList = "createdList",
|
|
148
153
|
/**
|
|
149
|
-
* Corresponds to {@link OsMaterialsEditor}
|
|
154
|
+
* Corresponds to {@link OsMaterialsEditor}, {@link OsInstagramEditor}, and
|
|
155
|
+
* {@link OsMailchimpEditor}
|
|
150
156
|
*/
|
|
151
157
|
createdStudioContent = "createdStudioContent",
|
|
152
158
|
/**
|
|
@@ -45,6 +45,7 @@ exports.OsActionType = OsActionType;
|
|
|
45
45
|
OsActionType["clickedImagesModal"] = "clickedImagesModal";
|
|
46
46
|
OsActionType["clickedOpenList"] = "clickedOpenList";
|
|
47
47
|
OsActionType["clickedPublishConfirmation"] = "clickedPublishConfirmation";
|
|
48
|
+
OsActionType["clickedSendConfirmation"] = "clickedSendConfirmation";
|
|
48
49
|
OsActionType["clickedUploadImageBank"] = "clickedUploadImageBank";
|
|
49
50
|
OsActionType["completedArtworkDistribution"] = "completedArtworkDistribution";
|
|
50
51
|
OsActionType["completedArtworkImport"] = "completedArtworkImport";
|
|
@@ -29,9 +29,11 @@ export declare enum OsContextModule {
|
|
|
29
29
|
instagramEditor = "instagramEditor",
|
|
30
30
|
listCard = "listCard",
|
|
31
31
|
listDetail = "listDetail",
|
|
32
|
+
mailchimpEditor = "mailchimpEditor",
|
|
32
33
|
materialsEditor = "materialsEditor",
|
|
33
34
|
multiAdd = "multiAdd",
|
|
34
35
|
multiAddReview = "multiAddReview",
|
|
35
36
|
publishConfirmationModal = "publishConfirmationModal",
|
|
37
|
+
sendConfirmationModal = "sendConfirmationModal",
|
|
36
38
|
tableActions = "tableActions"
|
|
37
39
|
}
|
|
@@ -39,9 +39,11 @@ exports.OsContextModule = OsContextModule;
|
|
|
39
39
|
OsContextModule["instagramEditor"] = "instagramEditor";
|
|
40
40
|
OsContextModule["listCard"] = "listCard";
|
|
41
41
|
OsContextModule["listDetail"] = "listDetail";
|
|
42
|
+
OsContextModule["mailchimpEditor"] = "mailchimpEditor";
|
|
42
43
|
OsContextModule["materialsEditor"] = "materialsEditor";
|
|
43
44
|
OsContextModule["multiAdd"] = "multiAdd";
|
|
44
45
|
OsContextModule["multiAddReview"] = "multiAddReview";
|
|
45
46
|
OsContextModule["publishConfirmationModal"] = "publishConfirmationModal";
|
|
47
|
+
OsContextModule["sendConfirmationModal"] = "sendConfirmationModal";
|
|
46
48
|
OsContextModule["tableActions"] = "tableActions";
|
|
47
49
|
})(OsContextModule || (exports.OsContextModule = OsContextModule = {}));
|
|
@@ -19,5 +19,6 @@ exports.OsOwnerType = OsOwnerType;
|
|
|
19
19
|
OsOwnerType["inventory"] = "inventory";
|
|
20
20
|
OsOwnerType["studio"] = "studio";
|
|
21
21
|
OsOwnerType["studioInstagram"] = "studioInstagram";
|
|
22
|
+
OsOwnerType["studioMailchimp"] = "studioMailchimp";
|
|
22
23
|
OsOwnerType["studioMaterials"] = "studioMaterials";
|
|
23
24
|
})(OsOwnerType || (exports.OsOwnerType = OsOwnerType = {}));
|