@ever-works/mailchimp-transactional-plugin 1.0.11 → 1.0.15
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/index.cjs +32 -0
- package/dist/index.js +32 -0
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,10 @@ var PROBLEM_CODES = [
|
|
|
21
21
|
"not_connection_owner",
|
|
22
22
|
"integration_disabled",
|
|
23
23
|
"integration_revoked",
|
|
24
|
+
"subject_unknown",
|
|
25
|
+
"link_not_found",
|
|
26
|
+
"oidc_client_exists",
|
|
27
|
+
"redirect_uri_invalid",
|
|
24
28
|
"denied_by_policy",
|
|
25
29
|
"integration_not_available",
|
|
26
30
|
"entitlement_required",
|
|
@@ -49,6 +53,8 @@ var PROBLEM_CODES = [
|
|
|
49
53
|
"illegal_transition",
|
|
50
54
|
"already_exists",
|
|
51
55
|
"already_completed",
|
|
56
|
+
"legal_basis_required",
|
|
57
|
+
"receipt_final",
|
|
52
58
|
"billing_active",
|
|
53
59
|
"sso_required",
|
|
54
60
|
"reauth_required",
|
|
@@ -115,6 +121,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
115
121
|
new Set(RECORD_VISIBILITIES);
|
|
116
122
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
117
123
|
new Set(RECORD_LIST_VIEWS);
|
|
124
|
+
new Set(
|
|
125
|
+
"a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
|
|
126
|
+
);
|
|
118
127
|
var VERSION = "1.0.0";
|
|
119
128
|
var GTM_SKILLS = [
|
|
120
129
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1822,6 +1831,9 @@ var DOMAIN_EVENT_CATALOG = [
|
|
|
1822
1831
|
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1823
1832
|
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1824
1833
|
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1834
|
+
// Integration inbox push: an integration's PATCH of its own item, and the member's
|
|
1835
|
+
// answer to an integration item (stored on the item; no run is started).
|
|
1836
|
+
{ type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1825
1837
|
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
1826
1838
|
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
1827
1839
|
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
@@ -1850,6 +1862,26 @@ var PLUGIN_CAPABILITIES = {
|
|
|
1850
1862
|
// `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
|
|
1851
1863
|
// `capabilities/email-provider.interface.ts` for the contract.
|
|
1852
1864
|
EMAIL_OUTBOUND: "email-outbound"};
|
|
1865
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1866
|
+
"user:email",
|
|
1867
|
+
"read:user",
|
|
1868
|
+
"repo",
|
|
1869
|
+
"delete_repo",
|
|
1870
|
+
"workflow",
|
|
1871
|
+
"write:repo_hook",
|
|
1872
|
+
"read:org",
|
|
1873
|
+
"project"
|
|
1874
|
+
];
|
|
1875
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1876
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1877
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1878
|
+
}
|
|
1879
|
+
function readEnv() {
|
|
1880
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1881
|
+
}
|
|
1882
|
+
Object.freeze(
|
|
1883
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1884
|
+
);
|
|
1853
1885
|
|
|
1854
1886
|
// src/mailchimp-transactional-plugin.ts
|
|
1855
1887
|
function resolveApiKey(options) {
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,10 @@ var PROBLEM_CODES = [
|
|
|
15
15
|
"not_connection_owner",
|
|
16
16
|
"integration_disabled",
|
|
17
17
|
"integration_revoked",
|
|
18
|
+
"subject_unknown",
|
|
19
|
+
"link_not_found",
|
|
20
|
+
"oidc_client_exists",
|
|
21
|
+
"redirect_uri_invalid",
|
|
18
22
|
"denied_by_policy",
|
|
19
23
|
"integration_not_available",
|
|
20
24
|
"entitlement_required",
|
|
@@ -43,6 +47,8 @@ var PROBLEM_CODES = [
|
|
|
43
47
|
"illegal_transition",
|
|
44
48
|
"already_exists",
|
|
45
49
|
"already_completed",
|
|
50
|
+
"legal_basis_required",
|
|
51
|
+
"receipt_final",
|
|
46
52
|
"billing_active",
|
|
47
53
|
"sso_required",
|
|
48
54
|
"reauth_required",
|
|
@@ -109,6 +115,9 @@ var RECORD_VISIBILITIES = ["private", "team", "organization"];
|
|
|
109
115
|
new Set(RECORD_VISIBILITIES);
|
|
110
116
|
var RECORD_LIST_VIEWS = ["mine", "shared", "organization"];
|
|
111
117
|
new Set(RECORD_LIST_VIEWS);
|
|
118
|
+
new Set(
|
|
119
|
+
"a abbr address applet area article aside audio b base bdi bdo big blockquote body br button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe image img input ins kbd label legend li link main map mark marquee math menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr xmp".split(" ")
|
|
120
|
+
);
|
|
112
121
|
var VERSION = "1.0.0";
|
|
113
122
|
var GTM_SKILLS = [
|
|
114
123
|
// ── research ────────────────────────────────────────────────────────
|
|
@@ -1816,6 +1825,9 @@ var DOMAIN_EVENT_CATALOG = [
|
|
|
1816
1825
|
{ type: "inbox.item.answered", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1817
1826
|
{ type: "inbox.item.state_changed", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1818
1827
|
{ type: "inbox.item.deleted", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1828
|
+
// Integration inbox push: an integration's PATCH of its own item, and the member's
|
|
1829
|
+
// answer to an integration item (stored on the item; no run is started).
|
|
1830
|
+
{ type: "inbox.item.updated", domain: "inbox", aggregateType: "inbox_item", phase: "P3" },
|
|
1819
1831
|
{ type: "kb.document.created", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
1820
1832
|
{ type: "kb.document.updated", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
1821
1833
|
{ type: "kb.document.moved", domain: "kb", aggregateType: "kb_document", phase: "P3" },
|
|
@@ -1844,6 +1856,26 @@ var PLUGIN_CAPABILITIES = {
|
|
|
1844
1856
|
// `EMAIL_OUTBOUND`, `EMAIL_INBOUND`, or both. See
|
|
1845
1857
|
// `capabilities/email-provider.interface.ts` for the contract.
|
|
1846
1858
|
EMAIL_OUTBOUND: "email-outbound"};
|
|
1859
|
+
var GITHUB_FULL_SCOPES_ALL = [
|
|
1860
|
+
"user:email",
|
|
1861
|
+
"read:user",
|
|
1862
|
+
"repo",
|
|
1863
|
+
"delete_repo",
|
|
1864
|
+
"workflow",
|
|
1865
|
+
"write:repo_hook",
|
|
1866
|
+
"read:org",
|
|
1867
|
+
"project"
|
|
1868
|
+
];
|
|
1869
|
+
var GITHUB_DELETE_REPO_SCOPE = "delete_repo";
|
|
1870
|
+
function isGithubDeleteRepoScopeEnabled(env = readEnv()) {
|
|
1871
|
+
return (env?.GITHUB_OAUTH_DELETE_REPO_SCOPE_ENABLED ?? "").trim().toLowerCase() === "true";
|
|
1872
|
+
}
|
|
1873
|
+
function readEnv() {
|
|
1874
|
+
return typeof process !== "undefined" ? process.env : void 0;
|
|
1875
|
+
}
|
|
1876
|
+
Object.freeze(
|
|
1877
|
+
GITHUB_FULL_SCOPES_ALL.filter((scope) => scope !== GITHUB_DELETE_REPO_SCOPE || isGithubDeleteRepoScopeEnabled())
|
|
1878
|
+
);
|
|
1847
1879
|
|
|
1848
1880
|
// src/mailchimp-transactional-plugin.ts
|
|
1849
1881
|
function resolveApiKey(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/mailchimp-transactional-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Mailchimp Transactional (Mandrill) email provider plugin (outbound) for Ever Works platform",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ever Co. LTD",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test:watch": "vitest"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ever-works/plugin": "^1.2.
|
|
35
|
+
"@ever-works/plugin": "^1.2.28",
|
|
36
36
|
"@mailchimp/mailchimp_transactional": "^1.0.59"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
},
|
|
75
75
|
"repository": {
|
|
76
76
|
"type": "git",
|
|
77
|
-
"url": "git+https://github.com/ever-
|
|
77
|
+
"url": "git+https://github.com/ever-co/ever-works.git",
|
|
78
78
|
"directory": "packages/plugins/mailchimp-transactional"
|
|
79
79
|
},
|
|
80
|
-
"homepage": "https://github.com/ever-
|
|
80
|
+
"homepage": "https://github.com/ever-co/ever-works/tree/main/packages/plugins/mailchimp-transactional#readme",
|
|
81
81
|
"bugs": {
|
|
82
|
-
"url": "https://github.com/ever-
|
|
82
|
+
"url": "https://github.com/ever-co/ever-works/issues"
|
|
83
83
|
},
|
|
84
84
|
"everworksRelease": {
|
|
85
|
-
"contentHash": "sha256:
|
|
86
|
-
"commit": "
|
|
87
|
-
"source": "https://github.com/ever-
|
|
85
|
+
"contentHash": "sha256:6fb28c4921e0d8ab0942870c8ed0f8b35cc11a754a9d1a43204805d8b14340d8",
|
|
86
|
+
"commit": "2288ff7e91562b0f079c365348ba08ab3a16f1dd",
|
|
87
|
+
"source": "https://github.com/ever-co/ever-works/tree/2288ff7e91562b0f079c365348ba08ab3a16f1dd/packages/plugins/mailchimp-transactional"
|
|
88
88
|
}
|
|
89
89
|
}
|