@mailmodo/cli 0.0.10-beta.pr12.16 → 0.0.11-beta.pr13.17
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/commands/init/index.js +2 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.js +1 -0
- package/oclif.manifest.json +48 -48
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Flags } from '@oclif/core';
|
|
|
2
2
|
import { editor, input, select } 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, DEFAULT_MONTHLY_CAP } from '../../lib/constants.js';
|
|
6
6
|
import { saveTemplate, saveYaml, } from '../../lib/yaml-config.js';
|
|
7
7
|
function isValidUrl(value) {
|
|
8
8
|
try {
|
|
@@ -140,6 +140,7 @@ export default class Init extends BaseCommand {
|
|
|
140
140
|
fromEmail: '',
|
|
141
141
|
fromName: `Team ${analysisPayload.productName}`,
|
|
142
142
|
logoUrl: analysisPayload.brand?.logoUrl || '',
|
|
143
|
+
monthlyCap: DEFAULT_MONTHLY_CAP,
|
|
143
144
|
name: analysisPayload.productName,
|
|
144
145
|
replyTo: '',
|
|
145
146
|
type: analysisPayload.pricingModel,
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -23,5 +23,6 @@ export declare const DOCS_URL = "https://mailmodo.com/docs/cli";
|
|
|
23
23
|
export declare const DNS_GUIDE_URL = "https://mailmodo.com/docs/dns";
|
|
24
24
|
export declare const PREVIEW_PORT = 3421;
|
|
25
25
|
export declare const DEFAULT_BRAND_COLOR = "#1A56DB";
|
|
26
|
+
export declare const DEFAULT_MONTHLY_CAP = 5;
|
|
26
27
|
export declare const TEMPLATES_DIR = "mailmodo";
|
|
27
28
|
export declare const YAML_FILE = "mailmodo.yaml";
|
package/dist/lib/constants.js
CHANGED
|
@@ -28,5 +28,6 @@ export const DOCS_URL = 'https://mailmodo.com/docs/cli';
|
|
|
28
28
|
export const DNS_GUIDE_URL = 'https://mailmodo.com/docs/dns';
|
|
29
29
|
export const PREVIEW_PORT = 3421;
|
|
30
30
|
export const DEFAULT_BRAND_COLOR = '#1A56DB';
|
|
31
|
+
export const DEFAULT_MONTHLY_CAP = 5;
|
|
31
32
|
export const TEMPLATES_DIR = 'mailmodo';
|
|
32
33
|
export const YAML_FILE = 'mailmodo.yaml';
|
package/oclif.manifest.json
CHANGED
|
@@ -419,15 +419,19 @@
|
|
|
419
419
|
"index.js"
|
|
420
420
|
]
|
|
421
421
|
},
|
|
422
|
-
"
|
|
422
|
+
"preview": {
|
|
423
423
|
"aliases": [],
|
|
424
|
-
"args": {
|
|
425
|
-
|
|
424
|
+
"args": {
|
|
425
|
+
"id": {
|
|
426
|
+
"description": "Email ID to preview",
|
|
427
|
+
"name": "id"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
426
431
|
"examples": [
|
|
427
|
-
"<%= config.bin %>
|
|
428
|
-
"<%= config.bin %>
|
|
429
|
-
"<%= config.bin %>
|
|
430
|
-
"<%= config.bin %> logs --json"
|
|
432
|
+
"<%= config.bin %> preview welcome",
|
|
433
|
+
"<%= config.bin %> preview welcome --text",
|
|
434
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
431
435
|
],
|
|
432
436
|
"flags": {
|
|
433
437
|
"json": {
|
|
@@ -443,23 +447,23 @@
|
|
|
443
447
|
"allowNo": false,
|
|
444
448
|
"type": "boolean"
|
|
445
449
|
},
|
|
446
|
-
"
|
|
447
|
-
"description": "
|
|
448
|
-
"name": "
|
|
450
|
+
"send": {
|
|
451
|
+
"description": "Send test email to this address",
|
|
452
|
+
"name": "send",
|
|
449
453
|
"hasDynamicHelp": false,
|
|
450
454
|
"multiple": false,
|
|
451
455
|
"type": "option"
|
|
452
456
|
},
|
|
453
|
-
"
|
|
454
|
-
"description": "
|
|
455
|
-
"name": "
|
|
457
|
+
"text": {
|
|
458
|
+
"description": "Output plain text version (for AI agents)",
|
|
459
|
+
"name": "text",
|
|
456
460
|
"allowNo": false,
|
|
457
461
|
"type": "boolean"
|
|
458
462
|
}
|
|
459
463
|
},
|
|
460
464
|
"hasDynamicHelp": false,
|
|
461
465
|
"hiddenAliases": [],
|
|
462
|
-
"id": "
|
|
466
|
+
"id": "preview",
|
|
463
467
|
"pluginAlias": "@mailmodo/cli",
|
|
464
468
|
"pluginName": "@mailmodo/cli",
|
|
465
469
|
"pluginType": "core",
|
|
@@ -469,7 +473,7 @@
|
|
|
469
473
|
"relativePath": [
|
|
470
474
|
"dist",
|
|
471
475
|
"commands",
|
|
472
|
-
"
|
|
476
|
+
"preview",
|
|
473
477
|
"index.js"
|
|
474
478
|
]
|
|
475
479
|
},
|
|
@@ -520,19 +524,13 @@
|
|
|
520
524
|
"index.js"
|
|
521
525
|
]
|
|
522
526
|
},
|
|
523
|
-
"
|
|
527
|
+
"status": {
|
|
524
528
|
"aliases": [],
|
|
525
|
-
"args": {
|
|
526
|
-
|
|
527
|
-
"description": "Email ID to preview",
|
|
528
|
-
"name": "id"
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
"description": "Preview an email in browser, as text, or send a test",
|
|
529
|
+
"args": {},
|
|
530
|
+
"description": "View email performance metrics and quota usage",
|
|
532
531
|
"examples": [
|
|
533
|
-
"<%= config.bin %>
|
|
534
|
-
"<%= config.bin %>
|
|
535
|
-
"<%= config.bin %> preview welcome --send me@example.com"
|
|
532
|
+
"<%= config.bin %> status",
|
|
533
|
+
"<%= config.bin %> status --json"
|
|
536
534
|
],
|
|
537
535
|
"flags": {
|
|
538
536
|
"json": {
|
|
@@ -547,24 +545,11 @@
|
|
|
547
545
|
"name": "yes",
|
|
548
546
|
"allowNo": false,
|
|
549
547
|
"type": "boolean"
|
|
550
|
-
},
|
|
551
|
-
"send": {
|
|
552
|
-
"description": "Send test email to this address",
|
|
553
|
-
"name": "send",
|
|
554
|
-
"hasDynamicHelp": false,
|
|
555
|
-
"multiple": false,
|
|
556
|
-
"type": "option"
|
|
557
|
-
},
|
|
558
|
-
"text": {
|
|
559
|
-
"description": "Output plain text version (for AI agents)",
|
|
560
|
-
"name": "text",
|
|
561
|
-
"allowNo": false,
|
|
562
|
-
"type": "boolean"
|
|
563
548
|
}
|
|
564
549
|
},
|
|
565
550
|
"hasDynamicHelp": false,
|
|
566
551
|
"hiddenAliases": [],
|
|
567
|
-
"id": "
|
|
552
|
+
"id": "status",
|
|
568
553
|
"pluginAlias": "@mailmodo/cli",
|
|
569
554
|
"pluginName": "@mailmodo/cli",
|
|
570
555
|
"pluginType": "core",
|
|
@@ -574,17 +559,19 @@
|
|
|
574
559
|
"relativePath": [
|
|
575
560
|
"dist",
|
|
576
561
|
"commands",
|
|
577
|
-
"
|
|
562
|
+
"status",
|
|
578
563
|
"index.js"
|
|
579
564
|
]
|
|
580
565
|
},
|
|
581
|
-
"
|
|
566
|
+
"logs": {
|
|
582
567
|
"aliases": [],
|
|
583
568
|
"args": {},
|
|
584
|
-
"description": "View email
|
|
569
|
+
"description": "View email send logs and delivery events",
|
|
585
570
|
"examples": [
|
|
586
|
-
"<%= config.bin %>
|
|
587
|
-
"<%= config.bin %>
|
|
571
|
+
"<%= config.bin %> logs",
|
|
572
|
+
"<%= config.bin %> logs --email sarah@example.com",
|
|
573
|
+
"<%= config.bin %> logs --failed",
|
|
574
|
+
"<%= config.bin %> logs --json"
|
|
588
575
|
],
|
|
589
576
|
"flags": {
|
|
590
577
|
"json": {
|
|
@@ -599,11 +586,24 @@
|
|
|
599
586
|
"name": "yes",
|
|
600
587
|
"allowNo": false,
|
|
601
588
|
"type": "boolean"
|
|
589
|
+
},
|
|
590
|
+
"email": {
|
|
591
|
+
"description": "Filter logs by contact email",
|
|
592
|
+
"name": "email",
|
|
593
|
+
"hasDynamicHelp": false,
|
|
594
|
+
"multiple": false,
|
|
595
|
+
"type": "option"
|
|
596
|
+
},
|
|
597
|
+
"failed": {
|
|
598
|
+
"description": "Show only failed/bounced events",
|
|
599
|
+
"name": "failed",
|
|
600
|
+
"allowNo": false,
|
|
601
|
+
"type": "boolean"
|
|
602
602
|
}
|
|
603
603
|
},
|
|
604
604
|
"hasDynamicHelp": false,
|
|
605
605
|
"hiddenAliases": [],
|
|
606
|
-
"id": "
|
|
606
|
+
"id": "logs",
|
|
607
607
|
"pluginAlias": "@mailmodo/cli",
|
|
608
608
|
"pluginName": "@mailmodo/cli",
|
|
609
609
|
"pluginType": "core",
|
|
@@ -613,10 +613,10 @@
|
|
|
613
613
|
"relativePath": [
|
|
614
614
|
"dist",
|
|
615
615
|
"commands",
|
|
616
|
-
"
|
|
616
|
+
"logs",
|
|
617
617
|
"index.js"
|
|
618
618
|
]
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
|
-
"version": "0.0.
|
|
621
|
+
"version": "0.0.11-beta.pr13.17"
|
|
622
622
|
}
|
package/package.json
CHANGED