@mailmodo/cli 0.0.31-beta.pr33.54 → 0.0.31-beta.pr33.56
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/lib/base-command.d.ts +8 -8
- package/dist/lib/base-command.js +8 -8
- package/oclif.manifest.json +111 -111
- package/package.json +1 -1
|
@@ -61,14 +61,6 @@ export declare abstract class BaseCommand extends Command {
|
|
|
61
61
|
error?: string;
|
|
62
62
|
status: number;
|
|
63
63
|
}): never;
|
|
64
|
-
/**
|
|
65
|
-
* Builds the terminal error string for a failed API call, appending request
|
|
66
|
-
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
67
|
-
*
|
|
68
|
-
* @param {string} message - Primary error text (HTTP message or generic).
|
|
69
|
-
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
70
|
-
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
71
|
-
*/
|
|
72
64
|
protected collectDomainSetupInputs(yamlConfig: MailmodoYaml, skipPrompts: boolean): Promise<{
|
|
73
65
|
address: string;
|
|
74
66
|
domain: string;
|
|
@@ -95,5 +87,13 @@ export declare abstract class BaseCommand extends Command {
|
|
|
95
87
|
type: string;
|
|
96
88
|
value: string;
|
|
97
89
|
}>, guideUrl: string | undefined, json: boolean): void;
|
|
90
|
+
/**
|
|
91
|
+
* Builds the terminal error string for a failed API call, appending request
|
|
92
|
+
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
93
|
+
*
|
|
94
|
+
* @param {string} message - Primary error text (HTTP message or generic).
|
|
95
|
+
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
96
|
+
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
97
|
+
*/
|
|
98
98
|
private formatApiFailure;
|
|
99
99
|
}
|
package/dist/lib/base-command.js
CHANGED
|
@@ -106,14 +106,6 @@ export class BaseCommand extends Command {
|
|
|
106
106
|
}
|
|
107
107
|
this.error(this.formatApiFailure(response.error || ERRORS.UNEXPECTED_API, response));
|
|
108
108
|
}
|
|
109
|
-
/**
|
|
110
|
-
* Builds the terminal error string for a failed API call, appending request
|
|
111
|
-
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
112
|
-
*
|
|
113
|
-
* @param {string} message - Primary error text (HTTP message or generic).
|
|
114
|
-
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
115
|
-
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
116
|
-
*/
|
|
117
109
|
async collectDomainSetupInputs(yamlConfig, skipPrompts) {
|
|
118
110
|
if (skipPrompts) {
|
|
119
111
|
const domain = yamlConfig.project?.domain || '';
|
|
@@ -194,6 +186,14 @@ export class BaseCommand extends Command {
|
|
|
194
186
|
if (guideUrl)
|
|
195
187
|
this.log(` Full guide: ${chalk.cyan(guideUrl)}\n`);
|
|
196
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Builds the terminal error string for a failed API call, appending request
|
|
191
|
+
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
192
|
+
*
|
|
193
|
+
* @param {string} message - Primary error text (HTTP message or generic).
|
|
194
|
+
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
195
|
+
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
196
|
+
*/
|
|
197
197
|
formatApiFailure(message, response) {
|
|
198
198
|
const { debug, status } = response;
|
|
199
199
|
if (!debug) {
|
package/oclif.manifest.json
CHANGED
|
@@ -176,14 +176,19 @@
|
|
|
176
176
|
"index.js"
|
|
177
177
|
]
|
|
178
178
|
},
|
|
179
|
-
"
|
|
179
|
+
"edit": {
|
|
180
180
|
"aliases": [],
|
|
181
|
-
"args": {
|
|
182
|
-
|
|
181
|
+
"args": {
|
|
182
|
+
"id": {
|
|
183
|
+
"description": "Email template ID to edit",
|
|
184
|
+
"name": "id",
|
|
185
|
+
"required": true
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"description": "Edit an email using AI-assisted natural language changes",
|
|
183
189
|
"examples": [
|
|
184
|
-
"<%= config.bin %>
|
|
185
|
-
"<%= config.bin %>
|
|
186
|
-
"<%= config.bin %> domain --status"
|
|
190
|
+
"<%= config.bin %> edit welcome",
|
|
191
|
+
"<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
|
|
187
192
|
],
|
|
188
193
|
"flags": {
|
|
189
194
|
"json": {
|
|
@@ -199,22 +204,17 @@
|
|
|
199
204
|
"allowNo": false,
|
|
200
205
|
"type": "boolean"
|
|
201
206
|
},
|
|
202
|
-
"
|
|
203
|
-
"description": "
|
|
204
|
-
"name": "
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
"verify": {
|
|
209
|
-
"description": "Verify DNS records",
|
|
210
|
-
"name": "verify",
|
|
211
|
-
"allowNo": false,
|
|
212
|
-
"type": "boolean"
|
|
207
|
+
"change": {
|
|
208
|
+
"description": "Natural language description of the change",
|
|
209
|
+
"name": "change",
|
|
210
|
+
"hasDynamicHelp": false,
|
|
211
|
+
"multiple": false,
|
|
212
|
+
"type": "option"
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"hasDynamicHelp": false,
|
|
216
216
|
"hiddenAliases": [],
|
|
217
|
-
"id": "
|
|
217
|
+
"id": "edit",
|
|
218
218
|
"pluginAlias": "@mailmodo/cli",
|
|
219
219
|
"pluginName": "@mailmodo/cli",
|
|
220
220
|
"pluginType": "core",
|
|
@@ -224,23 +224,18 @@
|
|
|
224
224
|
"relativePath": [
|
|
225
225
|
"dist",
|
|
226
226
|
"commands",
|
|
227
|
-
"
|
|
227
|
+
"edit",
|
|
228
228
|
"index.js"
|
|
229
229
|
]
|
|
230
230
|
},
|
|
231
|
-
"
|
|
231
|
+
"domain": {
|
|
232
232
|
"aliases": [],
|
|
233
|
-
"args": {
|
|
234
|
-
|
|
235
|
-
"description": "Email template ID to edit",
|
|
236
|
-
"name": "id",
|
|
237
|
-
"required": true
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"description": "Edit an email using AI-assisted natural language changes",
|
|
233
|
+
"args": {},
|
|
234
|
+
"description": "Set up and verify your sending domain",
|
|
241
235
|
"examples": [
|
|
242
|
-
"<%= config.bin %>
|
|
243
|
-
"<%= config.bin %>
|
|
236
|
+
"<%= config.bin %> domain",
|
|
237
|
+
"<%= config.bin %> domain --verify",
|
|
238
|
+
"<%= config.bin %> domain --status"
|
|
244
239
|
],
|
|
245
240
|
"flags": {
|
|
246
241
|
"json": {
|
|
@@ -256,17 +251,22 @@
|
|
|
256
251
|
"allowNo": false,
|
|
257
252
|
"type": "boolean"
|
|
258
253
|
},
|
|
259
|
-
"
|
|
260
|
-
"description": "
|
|
261
|
-
"name": "
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
|
|
254
|
+
"status": {
|
|
255
|
+
"description": "Show domain health status",
|
|
256
|
+
"name": "status",
|
|
257
|
+
"allowNo": false,
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
"verify": {
|
|
261
|
+
"description": "Verify DNS records",
|
|
262
|
+
"name": "verify",
|
|
263
|
+
"allowNo": false,
|
|
264
|
+
"type": "boolean"
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
"hasDynamicHelp": false,
|
|
268
268
|
"hiddenAliases": [],
|
|
269
|
-
"id": "
|
|
269
|
+
"id": "domain",
|
|
270
270
|
"pluginAlias": "@mailmodo/cli",
|
|
271
271
|
"pluginName": "@mailmodo/cli",
|
|
272
272
|
"pluginType": "core",
|
|
@@ -276,17 +276,17 @@
|
|
|
276
276
|
"relativePath": [
|
|
277
277
|
"dist",
|
|
278
278
|
"commands",
|
|
279
|
-
"
|
|
279
|
+
"domain",
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"
|
|
283
|
+
"init": {
|
|
284
284
|
"aliases": [],
|
|
285
285
|
"args": {},
|
|
286
|
-
"description": "
|
|
286
|
+
"description": "Analyze your product and generate email sequences",
|
|
287
287
|
"examples": [
|
|
288
|
-
"<%= config.bin %>
|
|
289
|
-
"<%= config.bin %>
|
|
288
|
+
"<%= config.bin %> init",
|
|
289
|
+
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
290
290
|
],
|
|
291
291
|
"flags": {
|
|
292
292
|
"json": {
|
|
@@ -301,11 +301,18 @@
|
|
|
301
301
|
"name": "yes",
|
|
302
302
|
"allowNo": false,
|
|
303
303
|
"type": "boolean"
|
|
304
|
+
},
|
|
305
|
+
"url": {
|
|
306
|
+
"description": "Product URL to analyze",
|
|
307
|
+
"name": "url",
|
|
308
|
+
"hasDynamicHelp": false,
|
|
309
|
+
"multiple": false,
|
|
310
|
+
"type": "option"
|
|
304
311
|
}
|
|
305
312
|
},
|
|
306
313
|
"hasDynamicHelp": false,
|
|
307
314
|
"hiddenAliases": [],
|
|
308
|
-
"id": "
|
|
315
|
+
"id": "init",
|
|
309
316
|
"pluginAlias": "@mailmodo/cli",
|
|
310
317
|
"pluginName": "@mailmodo/cli",
|
|
311
318
|
"pluginType": "core",
|
|
@@ -315,17 +322,17 @@
|
|
|
315
322
|
"relativePath": [
|
|
316
323
|
"dist",
|
|
317
324
|
"commands",
|
|
318
|
-
"
|
|
325
|
+
"init",
|
|
319
326
|
"index.js"
|
|
320
327
|
]
|
|
321
328
|
},
|
|
322
|
-
"
|
|
329
|
+
"emails": {
|
|
323
330
|
"aliases": [],
|
|
324
331
|
"args": {},
|
|
325
|
-
"description": "
|
|
332
|
+
"description": "List and view configured email sequences",
|
|
326
333
|
"examples": [
|
|
327
|
-
"<%= config.bin %>
|
|
328
|
-
"<%= config.bin %>
|
|
334
|
+
"<%= config.bin %> emails",
|
|
335
|
+
"<%= config.bin %> emails --json"
|
|
329
336
|
],
|
|
330
337
|
"flags": {
|
|
331
338
|
"json": {
|
|
@@ -340,18 +347,11 @@
|
|
|
340
347
|
"name": "yes",
|
|
341
348
|
"allowNo": false,
|
|
342
349
|
"type": "boolean"
|
|
343
|
-
},
|
|
344
|
-
"url": {
|
|
345
|
-
"description": "Product URL to analyze",
|
|
346
|
-
"name": "url",
|
|
347
|
-
"hasDynamicHelp": false,
|
|
348
|
-
"multiple": false,
|
|
349
|
-
"type": "option"
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
"hasDynamicHelp": false,
|
|
353
353
|
"hiddenAliases": [],
|
|
354
|
-
"id": "
|
|
354
|
+
"id": "emails",
|
|
355
355
|
"pluginAlias": "@mailmodo/cli",
|
|
356
356
|
"pluginName": "@mailmodo/cli",
|
|
357
357
|
"pluginType": "core",
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"relativePath": [
|
|
362
362
|
"dist",
|
|
363
363
|
"commands",
|
|
364
|
-
"
|
|
364
|
+
"emails",
|
|
365
365
|
"index.js"
|
|
366
366
|
]
|
|
367
367
|
},
|
|
@@ -442,14 +442,15 @@
|
|
|
442
442
|
"index.js"
|
|
443
443
|
]
|
|
444
444
|
},
|
|
445
|
-
"
|
|
445
|
+
"logs": {
|
|
446
446
|
"aliases": [],
|
|
447
447
|
"args": {},
|
|
448
|
-
"description": "View and
|
|
448
|
+
"description": "View email send logs and delivery events",
|
|
449
449
|
"examples": [
|
|
450
|
-
"<%= config.bin %>
|
|
451
|
-
"<%= config.bin %>
|
|
452
|
-
"<%= config.bin %>
|
|
450
|
+
"<%= config.bin %> logs",
|
|
451
|
+
"<%= config.bin %> logs --email sarah@example.com",
|
|
452
|
+
"<%= config.bin %> logs --failed",
|
|
453
|
+
"<%= config.bin %> logs --json"
|
|
453
454
|
],
|
|
454
455
|
"flags": {
|
|
455
456
|
"json": {
|
|
@@ -465,9 +466,31 @@
|
|
|
465
466
|
"allowNo": false,
|
|
466
467
|
"type": "boolean"
|
|
467
468
|
},
|
|
468
|
-
"
|
|
469
|
-
"description": "
|
|
470
|
-
"name": "
|
|
469
|
+
"email": {
|
|
470
|
+
"description": "Filter logs by contact email",
|
|
471
|
+
"name": "email",
|
|
472
|
+
"hasDynamicHelp": false,
|
|
473
|
+
"multiple": false,
|
|
474
|
+
"type": "option"
|
|
475
|
+
},
|
|
476
|
+
"failed": {
|
|
477
|
+
"description": "Show only failed/bounced events",
|
|
478
|
+
"name": "failed",
|
|
479
|
+
"allowNo": false,
|
|
480
|
+
"type": "boolean"
|
|
481
|
+
},
|
|
482
|
+
"limit": {
|
|
483
|
+
"description": "Entries per page (max 200)",
|
|
484
|
+
"name": "limit",
|
|
485
|
+
"default": 50,
|
|
486
|
+
"hasDynamicHelp": false,
|
|
487
|
+
"multiple": false,
|
|
488
|
+
"type": "option"
|
|
489
|
+
},
|
|
490
|
+
"page": {
|
|
491
|
+
"description": "Page number",
|
|
492
|
+
"name": "page",
|
|
493
|
+
"default": 1,
|
|
471
494
|
"hasDynamicHelp": false,
|
|
472
495
|
"multiple": false,
|
|
473
496
|
"type": "option"
|
|
@@ -475,7 +498,7 @@
|
|
|
475
498
|
},
|
|
476
499
|
"hasDynamicHelp": false,
|
|
477
500
|
"hiddenAliases": [],
|
|
478
|
-
"id": "
|
|
501
|
+
"id": "logs",
|
|
479
502
|
"pluginAlias": "@mailmodo/cli",
|
|
480
503
|
"pluginName": "@mailmodo/cli",
|
|
481
504
|
"pluginType": "core",
|
|
@@ -485,7 +508,7 @@
|
|
|
485
508
|
"relativePath": [
|
|
486
509
|
"dist",
|
|
487
510
|
"commands",
|
|
488
|
-
"
|
|
511
|
+
"logs",
|
|
489
512
|
"index.js"
|
|
490
513
|
]
|
|
491
514
|
},
|
|
@@ -547,13 +570,14 @@
|
|
|
547
570
|
"index.js"
|
|
548
571
|
]
|
|
549
572
|
},
|
|
550
|
-
"
|
|
573
|
+
"settings": {
|
|
551
574
|
"aliases": [],
|
|
552
575
|
"args": {},
|
|
553
|
-
"description": "View
|
|
576
|
+
"description": "View and update project settings",
|
|
554
577
|
"examples": [
|
|
555
|
-
"<%= config.bin %>
|
|
556
|
-
"<%= config.bin %>
|
|
578
|
+
"<%= config.bin %> settings",
|
|
579
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
580
|
+
"<%= config.bin %> settings --json"
|
|
557
581
|
],
|
|
558
582
|
"flags": {
|
|
559
583
|
"json": {
|
|
@@ -568,11 +592,18 @@
|
|
|
568
592
|
"name": "yes",
|
|
569
593
|
"allowNo": false,
|
|
570
594
|
"type": "boolean"
|
|
595
|
+
},
|
|
596
|
+
"set": {
|
|
597
|
+
"description": "Set a setting (format: key=value)",
|
|
598
|
+
"name": "set",
|
|
599
|
+
"hasDynamicHelp": false,
|
|
600
|
+
"multiple": false,
|
|
601
|
+
"type": "option"
|
|
571
602
|
}
|
|
572
603
|
},
|
|
573
604
|
"hasDynamicHelp": false,
|
|
574
605
|
"hiddenAliases": [],
|
|
575
|
-
"id": "
|
|
606
|
+
"id": "settings",
|
|
576
607
|
"pluginAlias": "@mailmodo/cli",
|
|
577
608
|
"pluginName": "@mailmodo/cli",
|
|
578
609
|
"pluginType": "core",
|
|
@@ -582,19 +613,17 @@
|
|
|
582
613
|
"relativePath": [
|
|
583
614
|
"dist",
|
|
584
615
|
"commands",
|
|
585
|
-
"
|
|
616
|
+
"settings",
|
|
586
617
|
"index.js"
|
|
587
618
|
]
|
|
588
619
|
},
|
|
589
|
-
"
|
|
620
|
+
"status": {
|
|
590
621
|
"aliases": [],
|
|
591
622
|
"args": {},
|
|
592
|
-
"description": "View email
|
|
623
|
+
"description": "View email performance metrics and quota usage",
|
|
593
624
|
"examples": [
|
|
594
|
-
"<%= config.bin %>
|
|
595
|
-
"<%= config.bin %>
|
|
596
|
-
"<%= config.bin %> logs --failed",
|
|
597
|
-
"<%= config.bin %> logs --json"
|
|
625
|
+
"<%= config.bin %> status",
|
|
626
|
+
"<%= config.bin %> status --json"
|
|
598
627
|
],
|
|
599
628
|
"flags": {
|
|
600
629
|
"json": {
|
|
@@ -609,40 +638,11 @@
|
|
|
609
638
|
"name": "yes",
|
|
610
639
|
"allowNo": false,
|
|
611
640
|
"type": "boolean"
|
|
612
|
-
},
|
|
613
|
-
"email": {
|
|
614
|
-
"description": "Filter logs by contact email",
|
|
615
|
-
"name": "email",
|
|
616
|
-
"hasDynamicHelp": false,
|
|
617
|
-
"multiple": false,
|
|
618
|
-
"type": "option"
|
|
619
|
-
},
|
|
620
|
-
"failed": {
|
|
621
|
-
"description": "Show only failed/bounced events",
|
|
622
|
-
"name": "failed",
|
|
623
|
-
"allowNo": false,
|
|
624
|
-
"type": "boolean"
|
|
625
|
-
},
|
|
626
|
-
"limit": {
|
|
627
|
-
"description": "Entries per page (max 200)",
|
|
628
|
-
"name": "limit",
|
|
629
|
-
"default": 50,
|
|
630
|
-
"hasDynamicHelp": false,
|
|
631
|
-
"multiple": false,
|
|
632
|
-
"type": "option"
|
|
633
|
-
},
|
|
634
|
-
"page": {
|
|
635
|
-
"description": "Page number",
|
|
636
|
-
"name": "page",
|
|
637
|
-
"default": 1,
|
|
638
|
-
"hasDynamicHelp": false,
|
|
639
|
-
"multiple": false,
|
|
640
|
-
"type": "option"
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
"hasDynamicHelp": false,
|
|
644
644
|
"hiddenAliases": [],
|
|
645
|
-
"id": "
|
|
645
|
+
"id": "status",
|
|
646
646
|
"pluginAlias": "@mailmodo/cli",
|
|
647
647
|
"pluginName": "@mailmodo/cli",
|
|
648
648
|
"pluginType": "core",
|
|
@@ -652,10 +652,10 @@
|
|
|
652
652
|
"relativePath": [
|
|
653
653
|
"dist",
|
|
654
654
|
"commands",
|
|
655
|
-
"
|
|
655
|
+
"status",
|
|
656
656
|
"index.js"
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.31-beta.pr33.
|
|
660
|
+
"version": "0.0.31-beta.pr33.56"
|
|
661
661
|
}
|
package/package.json
CHANGED