@mailmodo/cli 0.0.51-beta.pr53.81 → 0.0.51-beta.pr53.82
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.
|
@@ -2,7 +2,7 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import { confirm, input } from '@inquirer/prompts';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import { BaseCommand } from '../../lib/base-command.js';
|
|
5
|
-
import { API_ENDPOINTS, DEFAULT_BRAND_COLOR } from '../../lib/constants.js';
|
|
5
|
+
import { API_ENDPOINTS, DEFAULT_BRAND_COLOR, SDK_IMPORT_SNIPPET, SDK_INSTALL_COMMAND, } from '../../lib/constants.js';
|
|
6
6
|
import { ERRORS, INFO, pauseAlready, pauseSuccess, PROMPTS, resumeAlready, resumeSuccess, SEPARATOR, } from '../../lib/messages.js';
|
|
7
7
|
import { loadTemplate, } from '../../lib/yaml-config.js';
|
|
8
8
|
export default class Deploy extends BaseCommand {
|
|
@@ -286,8 +286,8 @@ export default class Deploy extends BaseCommand {
|
|
|
286
286
|
this.log(` ${SEPARATOR}`);
|
|
287
287
|
this.log(` ${chalk.bold('ADD THIS TO YOUR APP (one-time only):')}`);
|
|
288
288
|
this.log(` ${SEPARATOR}\n`);
|
|
289
|
-
this.log(` ${chalk.cyan(sdkSnippet.install ??
|
|
290
|
-
this.log(` ${chalk.dim(
|
|
289
|
+
this.log(` ${chalk.cyan(sdkSnippet.install ?? SDK_INSTALL_COMMAND)}\n`);
|
|
290
|
+
this.log(` ${chalk.dim(SDK_IMPORT_SNIPPET)}\n`);
|
|
291
291
|
if (sdkSnippet.examples) {
|
|
292
292
|
this.log(` ${chalk.dim('// Example usage:')}`);
|
|
293
293
|
this.log(` ${chalk.dim(sdkSnippet.examples.track)}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Flags } from '@oclif/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { BaseCommand } from '../../lib/base-command.js';
|
|
4
|
-
import { API_ENDPOINTS } from '../../lib/constants.js';
|
|
4
|
+
import { API_ENDPOINTS, SDK_IMPORT_SNIPPET, SDK_INSTALL_COMMAND, } from '../../lib/constants.js';
|
|
5
5
|
import { SEPARATOR } from '../../lib/messages.js';
|
|
6
6
|
export default class Sdk extends BaseCommand {
|
|
7
7
|
static description = 'Show the SDK track() / identify() reference for deployed sequences';
|
|
@@ -43,8 +43,8 @@ export default class Sdk extends BaseCommand {
|
|
|
43
43
|
this.log(` ${SEPARATOR}`);
|
|
44
44
|
this.log(` ${chalk.bold('SDK EVENT REFERENCE')}`);
|
|
45
45
|
this.log(` ${SEPARATOR}\n`);
|
|
46
|
-
this.log(` ${chalk.cyan(
|
|
47
|
-
this.log(` ${chalk.dim(
|
|
46
|
+
this.log(` ${chalk.cyan(SDK_INSTALL_COMMAND)}\n`);
|
|
47
|
+
this.log(` ${chalk.dim(SDK_IMPORT_SNIPPET)}\n`);
|
|
48
48
|
for (const [index, snippet] of snippets.entries()) {
|
|
49
49
|
this.renderSequenceBlock(snippet);
|
|
50
50
|
if (index < snippets.length - 1)
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -34,3 +34,6 @@ export declare const PREVIEW_PORT = 3421;
|
|
|
34
34
|
export declare const DEFAULT_BRAND_COLOR = "#1A56DB";
|
|
35
35
|
export declare const TEMPLATES_DIR = "mailmodo";
|
|
36
36
|
export declare const YAML_FILE = "mailmodo.yaml";
|
|
37
|
+
export declare const SDK_PACKAGE_NAME = "@mailmodo/sdk";
|
|
38
|
+
export declare const SDK_INSTALL_COMMAND = "npm install @mailmodo/sdk";
|
|
39
|
+
export declare const SDK_IMPORT_SNIPPET = "import { track, identify } from '@mailmodo/sdk'";
|
package/dist/lib/constants.js
CHANGED
|
@@ -45,3 +45,6 @@ export const PREVIEW_PORT = 3421;
|
|
|
45
45
|
export const DEFAULT_BRAND_COLOR = '#1A56DB';
|
|
46
46
|
export const TEMPLATES_DIR = 'mailmodo';
|
|
47
47
|
export const YAML_FILE = 'mailmodo.yaml';
|
|
48
|
+
export const SDK_PACKAGE_NAME = '@mailmodo/sdk';
|
|
49
|
+
export const SDK_INSTALL_COMMAND = `npm install ${SDK_PACKAGE_NAME}`;
|
|
50
|
+
export const SDK_IMPORT_SNIPPET = `import { track, identify } from '${SDK_PACKAGE_NAME}'`;
|
package/oclif.manifest.json
CHANGED
|
@@ -289,13 +289,19 @@
|
|
|
289
289
|
"index.js"
|
|
290
290
|
]
|
|
291
291
|
},
|
|
292
|
-
"
|
|
292
|
+
"edit": {
|
|
293
293
|
"aliases": [],
|
|
294
|
-
"args": {
|
|
295
|
-
|
|
294
|
+
"args": {
|
|
295
|
+
"id": {
|
|
296
|
+
"description": "Email template ID to edit",
|
|
297
|
+
"name": "id",
|
|
298
|
+
"required": true
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"description": "Edit an email using AI-assisted natural language changes",
|
|
296
302
|
"examples": [
|
|
297
|
-
"<%= config.bin %>
|
|
298
|
-
"<%= config.bin %>
|
|
303
|
+
"<%= config.bin %> edit welcome",
|
|
304
|
+
"<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
|
|
299
305
|
],
|
|
300
306
|
"flags": {
|
|
301
307
|
"json": {
|
|
@@ -310,11 +316,18 @@
|
|
|
310
316
|
"name": "yes",
|
|
311
317
|
"allowNo": false,
|
|
312
318
|
"type": "boolean"
|
|
319
|
+
},
|
|
320
|
+
"change": {
|
|
321
|
+
"description": "Natural language description of the change",
|
|
322
|
+
"name": "change",
|
|
323
|
+
"hasDynamicHelp": false,
|
|
324
|
+
"multiple": false,
|
|
325
|
+
"type": "option"
|
|
313
326
|
}
|
|
314
327
|
},
|
|
315
328
|
"hasDynamicHelp": false,
|
|
316
329
|
"hiddenAliases": [],
|
|
317
|
-
"id": "
|
|
330
|
+
"id": "edit",
|
|
318
331
|
"pluginAlias": "@mailmodo/cli",
|
|
319
332
|
"pluginName": "@mailmodo/cli",
|
|
320
333
|
"pluginType": "core",
|
|
@@ -324,23 +337,17 @@
|
|
|
324
337
|
"relativePath": [
|
|
325
338
|
"dist",
|
|
326
339
|
"commands",
|
|
327
|
-
"
|
|
340
|
+
"edit",
|
|
328
341
|
"index.js"
|
|
329
342
|
]
|
|
330
343
|
},
|
|
331
|
-
"
|
|
344
|
+
"emails": {
|
|
332
345
|
"aliases": [],
|
|
333
|
-
"args": {
|
|
334
|
-
|
|
335
|
-
"description": "Email template ID to edit",
|
|
336
|
-
"name": "id",
|
|
337
|
-
"required": true
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"description": "Edit an email using AI-assisted natural language changes",
|
|
346
|
+
"args": {},
|
|
347
|
+
"description": "List and view configured email sequences",
|
|
341
348
|
"examples": [
|
|
342
|
-
"<%= config.bin %>
|
|
343
|
-
"<%= config.bin %>
|
|
349
|
+
"<%= config.bin %> emails",
|
|
350
|
+
"<%= config.bin %> emails --json"
|
|
344
351
|
],
|
|
345
352
|
"flags": {
|
|
346
353
|
"json": {
|
|
@@ -355,18 +362,11 @@
|
|
|
355
362
|
"name": "yes",
|
|
356
363
|
"allowNo": false,
|
|
357
364
|
"type": "boolean"
|
|
358
|
-
},
|
|
359
|
-
"change": {
|
|
360
|
-
"description": "Natural language description of the change",
|
|
361
|
-
"name": "change",
|
|
362
|
-
"hasDynamicHelp": false,
|
|
363
|
-
"multiple": false,
|
|
364
|
-
"type": "option"
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
367
|
"hasDynamicHelp": false,
|
|
368
368
|
"hiddenAliases": [],
|
|
369
|
-
"id": "
|
|
369
|
+
"id": "emails",
|
|
370
370
|
"pluginAlias": "@mailmodo/cli",
|
|
371
371
|
"pluginName": "@mailmodo/cli",
|
|
372
372
|
"pluginType": "core",
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
"relativePath": [
|
|
377
377
|
"dist",
|
|
378
378
|
"commands",
|
|
379
|
-
"
|
|
379
|
+
"emails",
|
|
380
380
|
"index.js"
|
|
381
381
|
]
|
|
382
382
|
},
|
|
@@ -765,5 +765,5 @@
|
|
|
765
765
|
]
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
|
-
"version": "0.0.51-beta.pr53.
|
|
768
|
+
"version": "0.0.51-beta.pr53.82"
|
|
769
769
|
}
|
package/package.json
CHANGED