digital-tools 2.0.2 → 2.1.1
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 +17 -0
- package/package.json +3 -4
- package/src/define.js +267 -0
- package/src/entities/advertising.js +999 -0
- package/src/entities/ai.js +756 -0
- package/src/entities/analytics.js +1588 -0
- package/src/entities/automation.js +601 -0
- package/src/entities/communication.js +1150 -0
- package/src/entities/crm.js +1386 -0
- package/src/entities/design.js +546 -0
- package/src/entities/development.js +2212 -0
- package/src/entities/document.js +874 -0
- package/src/entities/ecommerce.js +1429 -0
- package/src/entities/experiment.js +1039 -0
- package/src/entities/finance.js +3478 -0
- package/src/entities/forms.js +1892 -0
- package/src/entities/hr.js +661 -0
- package/src/entities/identity.js +997 -0
- package/src/entities/index.js +282 -0
- package/src/entities/infrastructure.js +1153 -0
- package/src/entities/knowledge.js +1438 -0
- package/src/entities/marketing.js +1610 -0
- package/src/entities/media.js +1634 -0
- package/src/entities/notification.js +1199 -0
- package/src/entities/presentation.js +1274 -0
- package/src/entities/productivity.js +1317 -0
- package/src/entities/project-management.js +1136 -0
- package/src/entities/recruiting.js +736 -0
- package/src/entities/shipping.js +509 -0
- package/src/entities/signature.js +1102 -0
- package/src/entities/site.js +222 -0
- package/src/entities/spreadsheet.js +1341 -0
- package/src/entities/storage.js +1198 -0
- package/src/entities/support.js +1166 -0
- package/src/entities/video-conferencing.js +1750 -0
- package/src/entities/video.js +950 -0
- package/src/entities.js +1663 -0
- package/src/index.js +74 -0
- package/src/providers/analytics/index.js +17 -0
- package/src/providers/analytics/mixpanel.js +255 -0
- package/src/providers/calendar/cal-com.js +303 -0
- package/src/providers/calendar/google-calendar.js +335 -0
- package/src/providers/calendar/index.js +20 -0
- package/src/providers/crm/hubspot.js +566 -0
- package/src/providers/crm/index.js +17 -0
- package/src/providers/development/github.js +472 -0
- package/src/providers/development/index.js +17 -0
- package/src/providers/ecommerce/index.js +17 -0
- package/src/providers/ecommerce/shopify.js +378 -0
- package/src/providers/email/index.js +20 -0
- package/src/providers/email/resend.js +258 -0
- package/src/providers/email/sendgrid.js +161 -0
- package/src/providers/finance/index.js +17 -0
- package/src/providers/finance/stripe.js +549 -0
- package/src/providers/forms/index.js +17 -0
- package/src/providers/forms/typeform.js +500 -0
- package/src/providers/index.js +123 -0
- package/src/providers/knowledge/index.js +17 -0
- package/src/providers/knowledge/notion.js +389 -0
- package/src/providers/marketing/index.js +17 -0
- package/src/providers/marketing/mailchimp.js +443 -0
- package/src/providers/media/cloudinary.js +318 -0
- package/src/providers/media/index.js +17 -0
- package/src/providers/messaging/index.js +20 -0
- package/src/providers/messaging/slack.js +393 -0
- package/src/providers/messaging/twilio-sms.js +249 -0
- package/src/providers/project-management/index.js +17 -0
- package/src/providers/project-management/linear.js +575 -0
- package/src/providers/registry.js +86 -0
- package/src/providers/spreadsheet/google-sheets.js +375 -0
- package/src/providers/spreadsheet/index.js +20 -0
- package/src/providers/spreadsheet/xlsx.js +423 -0
- package/src/providers/storage/index.js +24 -0
- package/src/providers/storage/s3.js +419 -0
- package/src/providers/support/index.js +17 -0
- package/src/providers/support/zendesk.js +373 -0
- package/src/providers/tasks/index.js +17 -0
- package/src/providers/tasks/todoist.js +286 -0
- package/src/providers/types.js +9 -0
- package/src/providers/video-conferencing/google-meet.js +286 -0
- package/src/providers/video-conferencing/index.js +31 -0
- package/src/providers/video-conferencing/jitsi.js +254 -0
- package/src/providers/video-conferencing/teams.js +270 -0
- package/src/providers/video-conferencing/zoom.js +332 -0
- package/src/registry.js +128 -0
- package/src/tools/communication.js +184 -0
- package/src/tools/data.js +205 -0
- package/src/tools/index.js +11 -0
- package/src/tools/web.js +137 -0
- package/src/types.js +10 -0
- package/test/define.test.js +306 -0
- package/test/registry.test.js +357 -0
- package/test/tools.test.js +363 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notion Knowledge Provider
|
|
3
|
+
*
|
|
4
|
+
* Concrete implementation of KnowledgeProvider using Notion API v1.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
import { defineProvider } from '../registry.js';
|
|
9
|
+
const NOTION_API_URL = 'https://api.notion.com/v1';
|
|
10
|
+
const NOTION_VERSION = '2022-06-28';
|
|
11
|
+
/**
|
|
12
|
+
* Notion provider info
|
|
13
|
+
*/
|
|
14
|
+
export const notionInfo = {
|
|
15
|
+
id: 'knowledge.notion',
|
|
16
|
+
name: 'Notion',
|
|
17
|
+
description: 'Notion workspace and knowledge management platform',
|
|
18
|
+
category: 'knowledge',
|
|
19
|
+
website: 'https://notion.so',
|
|
20
|
+
docsUrl: 'https://developers.notion.com',
|
|
21
|
+
requiredConfig: ['integrationToken'],
|
|
22
|
+
optionalConfig: ['defaultParentId', 'defaultDatabaseId'],
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Create Notion knowledge provider
|
|
26
|
+
*/
|
|
27
|
+
export function createNotionProvider(config) {
|
|
28
|
+
let integrationToken;
|
|
29
|
+
let defaultParentId;
|
|
30
|
+
let defaultDatabaseId;
|
|
31
|
+
/**
|
|
32
|
+
* Make authenticated request to Notion API
|
|
33
|
+
*/
|
|
34
|
+
async function notionRequest(endpoint, options = {}) {
|
|
35
|
+
const url = endpoint.startsWith('http') ? endpoint : `${NOTION_API_URL}${endpoint}`;
|
|
36
|
+
return fetch(url, {
|
|
37
|
+
...options,
|
|
38
|
+
headers: {
|
|
39
|
+
'Authorization': `Bearer ${integrationToken}`,
|
|
40
|
+
'Notion-Version': NOTION_VERSION,
|
|
41
|
+
'Content-Type': 'application/json',
|
|
42
|
+
...options.headers,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Convert Notion page to PageData
|
|
48
|
+
*/
|
|
49
|
+
function convertNotionPage(notionPage) {
|
|
50
|
+
const title = extractTitle(notionPage);
|
|
51
|
+
const parentId = notionPage.parent?.page_id || notionPage.parent?.database_id || undefined;
|
|
52
|
+
return {
|
|
53
|
+
id: notionPage.id,
|
|
54
|
+
title,
|
|
55
|
+
content: undefined, // Content requires separate API call
|
|
56
|
+
parentId,
|
|
57
|
+
spaceId: notionPage.parent?.workspace ? 'workspace' : parentId,
|
|
58
|
+
url: notionPage.url,
|
|
59
|
+
icon: notionPage.icon?.emoji || notionPage.icon?.external?.url || undefined,
|
|
60
|
+
cover: notionPage.cover?.external?.url || notionPage.cover?.file?.url || undefined,
|
|
61
|
+
createdAt: new Date(notionPage.created_time),
|
|
62
|
+
updatedAt: new Date(notionPage.last_edited_time),
|
|
63
|
+
createdBy: notionPage.created_by?.id,
|
|
64
|
+
updatedBy: notionPage.last_edited_by?.id,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Extract title from Notion page properties
|
|
69
|
+
*/
|
|
70
|
+
function extractTitle(notionPage) {
|
|
71
|
+
// Check for title property
|
|
72
|
+
const properties = notionPage.properties || {};
|
|
73
|
+
// Look for title or Name property
|
|
74
|
+
for (const [key, value] of Object.entries(properties)) {
|
|
75
|
+
const prop = value;
|
|
76
|
+
if (prop.type === 'title' && prop.title?.length > 0) {
|
|
77
|
+
return prop.title.map((t) => t.plain_text).join('');
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// Fallback to page title in child_page parent
|
|
81
|
+
if (notionPage.child_page?.title) {
|
|
82
|
+
return notionPage.child_page.title;
|
|
83
|
+
}
|
|
84
|
+
return 'Untitled';
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Build page properties for creation/update
|
|
88
|
+
*/
|
|
89
|
+
function buildPageProperties(title) {
|
|
90
|
+
return {
|
|
91
|
+
title: [
|
|
92
|
+
{
|
|
93
|
+
text: {
|
|
94
|
+
content: title,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Build parent object for page creation
|
|
102
|
+
*/
|
|
103
|
+
function buildParent(parentId, spaceId) {
|
|
104
|
+
const targetParent = parentId || spaceId || defaultParentId || defaultDatabaseId;
|
|
105
|
+
if (!targetParent) {
|
|
106
|
+
throw new Error('Parent ID, space ID, or default parent/database must be provided');
|
|
107
|
+
}
|
|
108
|
+
// Determine if this is a page or database parent
|
|
109
|
+
// UUIDs with dashes are typically pages, without dashes or starting with certain patterns are databases
|
|
110
|
+
if (targetParent.includes('-')) {
|
|
111
|
+
return { page_id: targetParent };
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return { database_id: targetParent };
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
info: notionInfo,
|
|
119
|
+
async initialize(cfg) {
|
|
120
|
+
integrationToken = cfg.integrationToken;
|
|
121
|
+
defaultParentId = cfg.defaultParentId;
|
|
122
|
+
defaultDatabaseId = cfg.defaultDatabaseId;
|
|
123
|
+
if (!integrationToken) {
|
|
124
|
+
throw new Error('Notion integration token is required');
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
async healthCheck() {
|
|
128
|
+
const start = Date.now();
|
|
129
|
+
try {
|
|
130
|
+
const response = await notionRequest('/users/me');
|
|
131
|
+
return {
|
|
132
|
+
healthy: response.ok,
|
|
133
|
+
latencyMs: Date.now() - start,
|
|
134
|
+
message: response.ok ? 'Connected' : `HTTP ${response.status}`,
|
|
135
|
+
checkedAt: new Date(),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
return {
|
|
140
|
+
healthy: false,
|
|
141
|
+
latencyMs: Date.now() - start,
|
|
142
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
143
|
+
checkedAt: new Date(),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
async dispose() {
|
|
148
|
+
// No cleanup needed
|
|
149
|
+
},
|
|
150
|
+
async createPage(page) {
|
|
151
|
+
const parent = buildParent(page.parentId, page.spaceId);
|
|
152
|
+
const body = {
|
|
153
|
+
parent,
|
|
154
|
+
properties: buildPageProperties(page.title),
|
|
155
|
+
};
|
|
156
|
+
if (page.icon) {
|
|
157
|
+
body.icon = { emoji: page.icon };
|
|
158
|
+
}
|
|
159
|
+
if (page.cover) {
|
|
160
|
+
body.cover = { external: { url: page.cover } };
|
|
161
|
+
}
|
|
162
|
+
if (page.content) {
|
|
163
|
+
// Convert simple content to Notion blocks
|
|
164
|
+
body.children = [
|
|
165
|
+
{
|
|
166
|
+
object: 'block',
|
|
167
|
+
type: 'paragraph',
|
|
168
|
+
paragraph: {
|
|
169
|
+
rich_text: [
|
|
170
|
+
{
|
|
171
|
+
type: 'text',
|
|
172
|
+
text: { content: page.content },
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
];
|
|
178
|
+
}
|
|
179
|
+
try {
|
|
180
|
+
const response = await notionRequest('/pages', {
|
|
181
|
+
method: 'POST',
|
|
182
|
+
body: JSON.stringify(body),
|
|
183
|
+
});
|
|
184
|
+
if (!response.ok) {
|
|
185
|
+
const errorData = await response.json().catch(() => ({}));
|
|
186
|
+
throw new Error(`Failed to create page: ${errorData?.message || response.statusText}`);
|
|
187
|
+
}
|
|
188
|
+
const notionPage = await response.json();
|
|
189
|
+
return convertNotionPage(notionPage);
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
throw new Error(`Failed to create Notion page: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
async getPage(pageId) {
|
|
196
|
+
try {
|
|
197
|
+
const response = await notionRequest(`/pages/${pageId}`);
|
|
198
|
+
if (response.status === 404) {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
if (!response.ok) {
|
|
202
|
+
const errorData = await response.json().catch(() => ({}));
|
|
203
|
+
throw new Error(`Failed to get page: ${errorData?.message || response.statusText}`);
|
|
204
|
+
}
|
|
205
|
+
const notionPage = await response.json();
|
|
206
|
+
return convertNotionPage(notionPage);
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
if (error?.message?.includes('404')) {
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
throw new Error(`Failed to get Notion page: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
async updatePage(pageId, updates) {
|
|
216
|
+
const body = {
|
|
217
|
+
properties: {},
|
|
218
|
+
};
|
|
219
|
+
if (updates.title) {
|
|
220
|
+
body.properties.title = buildPageProperties(updates.title).title;
|
|
221
|
+
}
|
|
222
|
+
if (updates.icon !== undefined) {
|
|
223
|
+
body.icon = updates.icon ? { emoji: updates.icon } : null;
|
|
224
|
+
}
|
|
225
|
+
if (updates.cover !== undefined) {
|
|
226
|
+
body.cover = updates.cover ? { external: { url: updates.cover } } : null;
|
|
227
|
+
}
|
|
228
|
+
try {
|
|
229
|
+
const response = await notionRequest(`/pages/${pageId}`, {
|
|
230
|
+
method: 'PATCH',
|
|
231
|
+
body: JSON.stringify(body),
|
|
232
|
+
});
|
|
233
|
+
if (!response.ok) {
|
|
234
|
+
const errorData = await response.json().catch(() => ({}));
|
|
235
|
+
throw new Error(`Failed to update page: ${errorData?.message || response.statusText}`);
|
|
236
|
+
}
|
|
237
|
+
const notionPage = await response.json();
|
|
238
|
+
return convertNotionPage(notionPage);
|
|
239
|
+
}
|
|
240
|
+
catch (error) {
|
|
241
|
+
throw new Error(`Failed to update Notion page: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
async deletePage(pageId) {
|
|
245
|
+
try {
|
|
246
|
+
const response = await notionRequest(`/pages/${pageId}`, {
|
|
247
|
+
method: 'PATCH',
|
|
248
|
+
body: JSON.stringify({ archived: true }),
|
|
249
|
+
});
|
|
250
|
+
if (!response.ok) {
|
|
251
|
+
const errorData = await response.json().catch(() => ({}));
|
|
252
|
+
throw new Error(`Failed to delete page: ${errorData?.message || response.statusText}`);
|
|
253
|
+
}
|
|
254
|
+
return true;
|
|
255
|
+
}
|
|
256
|
+
catch (error) {
|
|
257
|
+
throw new Error(`Failed to delete Notion page: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
async listPages(options) {
|
|
261
|
+
// If parentId or spaceId is provided, use it; otherwise use defaults
|
|
262
|
+
const parentId = options?.parentId || options?.spaceId || defaultDatabaseId;
|
|
263
|
+
if (!parentId) {
|
|
264
|
+
throw new Error('Parent ID, space ID, or default database must be provided for listing pages');
|
|
265
|
+
}
|
|
266
|
+
try {
|
|
267
|
+
const body = {
|
|
268
|
+
page_size: options?.limit || 100,
|
|
269
|
+
};
|
|
270
|
+
if (options?.cursor) {
|
|
271
|
+
body.start_cursor = options.cursor;
|
|
272
|
+
}
|
|
273
|
+
const response = await notionRequest(`/databases/${parentId}/query`, {
|
|
274
|
+
method: 'POST',
|
|
275
|
+
body: JSON.stringify(body),
|
|
276
|
+
});
|
|
277
|
+
if (!response.ok) {
|
|
278
|
+
const errorData = await response.json().catch(() => ({}));
|
|
279
|
+
throw new Error(`Failed to list pages: ${errorData?.message || response.statusText}`);
|
|
280
|
+
}
|
|
281
|
+
const data = await response.json();
|
|
282
|
+
const pages = data.results.map(convertNotionPage);
|
|
283
|
+
return {
|
|
284
|
+
items: pages,
|
|
285
|
+
hasMore: data.has_more,
|
|
286
|
+
nextCursor: data.next_cursor || undefined,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
throw new Error(`Failed to list Notion pages: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
async searchPages(query, options) {
|
|
294
|
+
try {
|
|
295
|
+
const body = {
|
|
296
|
+
query,
|
|
297
|
+
page_size: options?.limit || 100,
|
|
298
|
+
filter: {
|
|
299
|
+
property: 'object',
|
|
300
|
+
value: 'page',
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
if (options?.cursor) {
|
|
304
|
+
body.start_cursor = options.cursor;
|
|
305
|
+
}
|
|
306
|
+
const response = await notionRequest('/search', {
|
|
307
|
+
method: 'POST',
|
|
308
|
+
body: JSON.stringify(body),
|
|
309
|
+
});
|
|
310
|
+
if (!response.ok) {
|
|
311
|
+
const errorData = await response.json().catch(() => ({}));
|
|
312
|
+
throw new Error(`Failed to search pages: ${errorData?.message || response.statusText}`);
|
|
313
|
+
}
|
|
314
|
+
const data = await response.json();
|
|
315
|
+
const pages = data.results.map(convertNotionPage);
|
|
316
|
+
return {
|
|
317
|
+
items: pages,
|
|
318
|
+
hasMore: data.has_more,
|
|
319
|
+
nextCursor: data.next_cursor || undefined,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
catch (error) {
|
|
323
|
+
throw new Error(`Failed to search Notion pages: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
async listSpaces() {
|
|
327
|
+
try {
|
|
328
|
+
// List databases as "spaces"
|
|
329
|
+
const body = {
|
|
330
|
+
filter: {
|
|
331
|
+
property: 'object',
|
|
332
|
+
value: 'database',
|
|
333
|
+
},
|
|
334
|
+
page_size: 100,
|
|
335
|
+
};
|
|
336
|
+
const response = await notionRequest('/search', {
|
|
337
|
+
method: 'POST',
|
|
338
|
+
body: JSON.stringify(body),
|
|
339
|
+
});
|
|
340
|
+
if (!response.ok) {
|
|
341
|
+
const errorData = await response.json().catch(() => ({}));
|
|
342
|
+
throw new Error(`Failed to list spaces: ${errorData?.message || response.statusText}`);
|
|
343
|
+
}
|
|
344
|
+
const data = await response.json();
|
|
345
|
+
return data.results.map((db) => ({
|
|
346
|
+
id: db.id,
|
|
347
|
+
name: extractTitle(db),
|
|
348
|
+
description: db.description?.[0]?.plain_text,
|
|
349
|
+
icon: db.icon?.emoji || db.icon?.external?.url || undefined,
|
|
350
|
+
url: db.url,
|
|
351
|
+
}));
|
|
352
|
+
}
|
|
353
|
+
catch (error) {
|
|
354
|
+
throw new Error(`Failed to list Notion spaces: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
async getSpace(spaceId) {
|
|
358
|
+
try {
|
|
359
|
+
// Get database as "space"
|
|
360
|
+
const response = await notionRequest(`/databases/${spaceId}`);
|
|
361
|
+
if (response.status === 404) {
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
if (!response.ok) {
|
|
365
|
+
const errorData = await response.json().catch(() => ({}));
|
|
366
|
+
throw new Error(`Failed to get space: ${errorData?.message || response.statusText}`);
|
|
367
|
+
}
|
|
368
|
+
const db = await response.json();
|
|
369
|
+
return {
|
|
370
|
+
id: db.id,
|
|
371
|
+
name: extractTitle(db),
|
|
372
|
+
description: db.description?.[0]?.plain_text,
|
|
373
|
+
icon: db.icon?.emoji || db.icon?.external?.url || undefined,
|
|
374
|
+
url: db.url,
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
catch (error) {
|
|
378
|
+
if (error?.message?.includes('404')) {
|
|
379
|
+
return null;
|
|
380
|
+
}
|
|
381
|
+
throw new Error(`Failed to get Notion space: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Notion provider definition
|
|
388
|
+
*/
|
|
389
|
+
export const notionProvider = defineProvider(notionInfo, async (config) => createNotionProvider(config));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marketing Providers
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export { mailchimpInfo, mailchimpProvider, createMailchimpProvider } from './mailchimp.js';
|
|
7
|
+
import { mailchimpProvider } from './mailchimp.js';
|
|
8
|
+
/**
|
|
9
|
+
* Register all marketing providers
|
|
10
|
+
*/
|
|
11
|
+
export function registerMarketingProviders() {
|
|
12
|
+
mailchimpProvider.register();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* All marketing providers
|
|
16
|
+
*/
|
|
17
|
+
export const marketingProviders = [mailchimpProvider];
|