@mailmodo/cli 0.0.41 → 0.0.42
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/deploy/index.js +8 -2
- package/dist/lib/messages.d.ts +1 -0
- package/dist/lib/messages.js +1 -0
- package/oclif.manifest.json +44 -44
- package/package.json +1 -1
|
@@ -138,9 +138,15 @@ export default class Deploy extends BaseCommand {
|
|
|
138
138
|
if (domainVerify.ok && domainVerify.data?.domainStatus === 'VERIFIED') {
|
|
139
139
|
return true;
|
|
140
140
|
}
|
|
141
|
+
if (yamlConfig.project?.domain) {
|
|
142
|
+
if (!flags.json) {
|
|
143
|
+
this.log(`\n ${INFO.DOMAIN_PENDING_VERIFICATION}\n`);
|
|
144
|
+
}
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
141
147
|
if (!flags.json) {
|
|
142
|
-
this.log(`\n No sending domain
|
|
143
|
-
this.log(` You need
|
|
148
|
+
this.log(`\n No sending domain set up yet.`);
|
|
149
|
+
this.log(` You need a verified domain before sending emails.`);
|
|
144
150
|
this.log(` This is a one-time setup. Takes about 5 minutes.\n`);
|
|
145
151
|
}
|
|
146
152
|
if (!flags.yes) {
|
package/dist/lib/messages.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const INFO: {
|
|
|
31
31
|
readonly DNS_RECORDS_FAILED: string;
|
|
32
32
|
readonly DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${string}
|
|
33
33
|
Then: ${string}`;
|
|
34
|
+
readonly DOMAIN_PENDING_VERIFICATION: `Your domain is not verified yet. Please verify it first. Run ${string} to check the status.`;
|
|
34
35
|
readonly SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${string}.`;
|
|
35
36
|
};
|
|
36
37
|
export declare function recordLabel(index: number): string;
|
package/dist/lib/messages.js
CHANGED
|
@@ -31,6 +31,7 @@ export const INFO = {
|
|
|
31
31
|
DNS_PROPAGATION: 'DNS changes take 5–30 minutes to propagate.',
|
|
32
32
|
DNS_RECORDS_FAILED: chalk.yellow('Some records failed.'),
|
|
33
33
|
DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${chalk.cyan('mailmodo domain')}\n Then: ${chalk.cyan('mailmodo deploy')}`,
|
|
34
|
+
DOMAIN_PENDING_VERIFICATION: `Your domain is not verified yet. Please verify it first. Run ${chalk.cyan('mailmodo domain --verify')} to check the status.`,
|
|
34
35
|
SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${chalk.yellow('NOT deployed')}.`,
|
|
35
36
|
};
|
|
36
37
|
export function recordLabel(index) {
|
package/oclif.manifest.json
CHANGED
|
@@ -512,19 +512,14 @@
|
|
|
512
512
|
"index.js"
|
|
513
513
|
]
|
|
514
514
|
},
|
|
515
|
-
"
|
|
515
|
+
"settings": {
|
|
516
516
|
"aliases": [],
|
|
517
|
-
"args": {
|
|
518
|
-
|
|
519
|
-
"description": "Email template ID to preview",
|
|
520
|
-
"name": "id"
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"description": "Preview an email in browser, as text, or send a test",
|
|
517
|
+
"args": {},
|
|
518
|
+
"description": "View and update project settings",
|
|
524
519
|
"examples": [
|
|
525
|
-
"<%= config.bin %>
|
|
526
|
-
"<%= config.bin %>
|
|
527
|
-
"<%= config.bin %>
|
|
520
|
+
"<%= config.bin %> settings",
|
|
521
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
522
|
+
"<%= config.bin %> settings --json"
|
|
528
523
|
],
|
|
529
524
|
"flags": {
|
|
530
525
|
"json": {
|
|
@@ -540,23 +535,17 @@
|
|
|
540
535
|
"allowNo": false,
|
|
541
536
|
"type": "boolean"
|
|
542
537
|
},
|
|
543
|
-
"
|
|
544
|
-
"description": "
|
|
545
|
-
"name": "
|
|
538
|
+
"set": {
|
|
539
|
+
"description": "Set a setting (format: key=value)",
|
|
540
|
+
"name": "set",
|
|
546
541
|
"hasDynamicHelp": false,
|
|
547
542
|
"multiple": false,
|
|
548
543
|
"type": "option"
|
|
549
|
-
},
|
|
550
|
-
"text": {
|
|
551
|
-
"description": "Output plain text version (for AI agents)",
|
|
552
|
-
"name": "text",
|
|
553
|
-
"allowNo": false,
|
|
554
|
-
"type": "boolean"
|
|
555
544
|
}
|
|
556
545
|
},
|
|
557
546
|
"hasDynamicHelp": false,
|
|
558
547
|
"hiddenAliases": [],
|
|
559
|
-
"id": "
|
|
548
|
+
"id": "settings",
|
|
560
549
|
"pluginAlias": "@mailmodo/cli",
|
|
561
550
|
"pluginName": "@mailmodo/cli",
|
|
562
551
|
"pluginType": "core",
|
|
@@ -566,18 +555,17 @@
|
|
|
566
555
|
"relativePath": [
|
|
567
556
|
"dist",
|
|
568
557
|
"commands",
|
|
569
|
-
"
|
|
558
|
+
"settings",
|
|
570
559
|
"index.js"
|
|
571
560
|
]
|
|
572
561
|
},
|
|
573
|
-
"
|
|
562
|
+
"status": {
|
|
574
563
|
"aliases": [],
|
|
575
564
|
"args": {},
|
|
576
|
-
"description": "View and
|
|
565
|
+
"description": "View email performance metrics and quota usage",
|
|
577
566
|
"examples": [
|
|
578
|
-
"<%= config.bin %>
|
|
579
|
-
"<%= config.bin %>
|
|
580
|
-
"<%= config.bin %> settings --json"
|
|
567
|
+
"<%= config.bin %> status",
|
|
568
|
+
"<%= config.bin %> status --json"
|
|
581
569
|
],
|
|
582
570
|
"flags": {
|
|
583
571
|
"json": {
|
|
@@ -592,18 +580,11 @@
|
|
|
592
580
|
"name": "yes",
|
|
593
581
|
"allowNo": false,
|
|
594
582
|
"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"
|
|
602
583
|
}
|
|
603
584
|
},
|
|
604
585
|
"hasDynamicHelp": false,
|
|
605
586
|
"hiddenAliases": [],
|
|
606
|
-
"id": "
|
|
587
|
+
"id": "status",
|
|
607
588
|
"pluginAlias": "@mailmodo/cli",
|
|
608
589
|
"pluginName": "@mailmodo/cli",
|
|
609
590
|
"pluginType": "core",
|
|
@@ -613,17 +594,23 @@
|
|
|
613
594
|
"relativePath": [
|
|
614
595
|
"dist",
|
|
615
596
|
"commands",
|
|
616
|
-
"
|
|
597
|
+
"status",
|
|
617
598
|
"index.js"
|
|
618
599
|
]
|
|
619
600
|
},
|
|
620
|
-
"
|
|
601
|
+
"preview": {
|
|
621
602
|
"aliases": [],
|
|
622
|
-
"args": {
|
|
623
|
-
|
|
603
|
+
"args": {
|
|
604
|
+
"id": {
|
|
605
|
+
"description": "Email template ID to preview",
|
|
606
|
+
"name": "id"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
624
610
|
"examples": [
|
|
625
|
-
"<%= config.bin %>
|
|
626
|
-
"<%= config.bin %>
|
|
611
|
+
"<%= config.bin %> preview welcome",
|
|
612
|
+
"<%= config.bin %> preview welcome --text",
|
|
613
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
627
614
|
],
|
|
628
615
|
"flags": {
|
|
629
616
|
"json": {
|
|
@@ -638,11 +625,24 @@
|
|
|
638
625
|
"name": "yes",
|
|
639
626
|
"allowNo": false,
|
|
640
627
|
"type": "boolean"
|
|
628
|
+
},
|
|
629
|
+
"send": {
|
|
630
|
+
"description": "Send test email to this address",
|
|
631
|
+
"name": "send",
|
|
632
|
+
"hasDynamicHelp": false,
|
|
633
|
+
"multiple": false,
|
|
634
|
+
"type": "option"
|
|
635
|
+
},
|
|
636
|
+
"text": {
|
|
637
|
+
"description": "Output plain text version (for AI agents)",
|
|
638
|
+
"name": "text",
|
|
639
|
+
"allowNo": false,
|
|
640
|
+
"type": "boolean"
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
"hasDynamicHelp": false,
|
|
644
644
|
"hiddenAliases": [],
|
|
645
|
-
"id": "
|
|
645
|
+
"id": "preview",
|
|
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
|
+
"preview",
|
|
656
656
|
"index.js"
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.
|
|
660
|
+
"version": "0.0.42"
|
|
661
661
|
}
|