@mailmodo/cli 0.0.34-beta.pr36.59 → 0.0.35-beta.pr37.60
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/status/index.js +10 -7
- package/oclif.manifest.json +81 -81
- package/package.json +1 -1
|
@@ -42,15 +42,18 @@ export default class Status extends BaseCommand {
|
|
|
42
42
|
this.log(` Emails sent this month: ${chalk.bold(String(monthlySent))}`);
|
|
43
43
|
}
|
|
44
44
|
if (quota) {
|
|
45
|
-
if (quota.
|
|
46
|
-
this.log(` Free tier remaining: ${chalk.cyan(String(quota.freeRemaining))}`);
|
|
45
|
+
if (quota.plan === 'free') {
|
|
46
|
+
this.log(` Free tier remaining: ${chalk.cyan(String(quota.freeRemaining))} emails`);
|
|
47
47
|
}
|
|
48
|
-
else if (quota.
|
|
49
|
-
if (quota.
|
|
50
|
-
quota.
|
|
51
|
-
|
|
48
|
+
else if (quota.plan === 'paid') {
|
|
49
|
+
if (quota.currentBlockEmailsRemaining !== null &&
|
|
50
|
+
quota.currentBlockEmailsRemaining !== undefined) {
|
|
51
|
+
const { blockSize } = quota;
|
|
52
|
+
const sent = blockSize - quota.currentBlockEmailsRemaining;
|
|
53
|
+
const remaining = quota.currentBlockEmailsRemaining;
|
|
54
|
+
this.log(` Current paid block (${blockSize} emails) : ${chalk.cyan(`${sent} emails sent, ${remaining} emails remaining`)}`);
|
|
52
55
|
}
|
|
53
|
-
this.log(` Blocks
|
|
56
|
+
this.log(` Blocks used: ${quota.blocksUsed}`);
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
this.log('');
|
package/oclif.manifest.json
CHANGED
|
@@ -280,45 +280,6 @@
|
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"emails": {
|
|
284
|
-
"aliases": [],
|
|
285
|
-
"args": {},
|
|
286
|
-
"description": "List and view configured email sequences",
|
|
287
|
-
"examples": [
|
|
288
|
-
"<%= config.bin %> emails",
|
|
289
|
-
"<%= config.bin %> emails --json"
|
|
290
|
-
],
|
|
291
|
-
"flags": {
|
|
292
|
-
"json": {
|
|
293
|
-
"description": "Output as JSON",
|
|
294
|
-
"name": "json",
|
|
295
|
-
"allowNo": false,
|
|
296
|
-
"type": "boolean"
|
|
297
|
-
},
|
|
298
|
-
"yes": {
|
|
299
|
-
"char": "y",
|
|
300
|
-
"description": "Skip confirmation prompts",
|
|
301
|
-
"name": "yes",
|
|
302
|
-
"allowNo": false,
|
|
303
|
-
"type": "boolean"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
"hasDynamicHelp": false,
|
|
307
|
-
"hiddenAliases": [],
|
|
308
|
-
"id": "emails",
|
|
309
|
-
"pluginAlias": "@mailmodo/cli",
|
|
310
|
-
"pluginName": "@mailmodo/cli",
|
|
311
|
-
"pluginType": "core",
|
|
312
|
-
"strict": true,
|
|
313
|
-
"enableJsonFlag": false,
|
|
314
|
-
"isESM": true,
|
|
315
|
-
"relativePath": [
|
|
316
|
-
"dist",
|
|
317
|
-
"commands",
|
|
318
|
-
"emails",
|
|
319
|
-
"index.js"
|
|
320
|
-
]
|
|
321
|
-
},
|
|
322
283
|
"init": {
|
|
323
284
|
"aliases": [],
|
|
324
285
|
"args": {},
|
|
@@ -404,12 +365,13 @@
|
|
|
404
365
|
"index.js"
|
|
405
366
|
]
|
|
406
367
|
},
|
|
407
|
-
"
|
|
368
|
+
"emails": {
|
|
408
369
|
"aliases": [],
|
|
409
370
|
"args": {},
|
|
410
|
-
"description": "
|
|
371
|
+
"description": "List and view configured email sequences",
|
|
411
372
|
"examples": [
|
|
412
|
-
"<%= config.bin %>
|
|
373
|
+
"<%= config.bin %> emails",
|
|
374
|
+
"<%= config.bin %> emails --json"
|
|
413
375
|
],
|
|
414
376
|
"flags": {
|
|
415
377
|
"json": {
|
|
@@ -428,7 +390,7 @@
|
|
|
428
390
|
},
|
|
429
391
|
"hasDynamicHelp": false,
|
|
430
392
|
"hiddenAliases": [],
|
|
431
|
-
"id": "
|
|
393
|
+
"id": "emails",
|
|
432
394
|
"pluginAlias": "@mailmodo/cli",
|
|
433
395
|
"pluginName": "@mailmodo/cli",
|
|
434
396
|
"pluginType": "core",
|
|
@@ -438,7 +400,7 @@
|
|
|
438
400
|
"relativePath": [
|
|
439
401
|
"dist",
|
|
440
402
|
"commands",
|
|
441
|
-
"
|
|
403
|
+
"emails",
|
|
442
404
|
"index.js"
|
|
443
405
|
]
|
|
444
406
|
},
|
|
@@ -512,19 +474,14 @@
|
|
|
512
474
|
"index.js"
|
|
513
475
|
]
|
|
514
476
|
},
|
|
515
|
-
"
|
|
477
|
+
"settings": {
|
|
516
478
|
"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",
|
|
479
|
+
"args": {},
|
|
480
|
+
"description": "View and update project settings",
|
|
524
481
|
"examples": [
|
|
525
|
-
"<%= config.bin %>
|
|
526
|
-
"<%= config.bin %>
|
|
527
|
-
"<%= config.bin %>
|
|
482
|
+
"<%= config.bin %> settings",
|
|
483
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
484
|
+
"<%= config.bin %> settings --json"
|
|
528
485
|
],
|
|
529
486
|
"flags": {
|
|
530
487
|
"json": {
|
|
@@ -540,23 +497,56 @@
|
|
|
540
497
|
"allowNo": false,
|
|
541
498
|
"type": "boolean"
|
|
542
499
|
},
|
|
543
|
-
"
|
|
544
|
-
"description": "
|
|
545
|
-
"name": "
|
|
500
|
+
"set": {
|
|
501
|
+
"description": "Set a setting (format: key=value)",
|
|
502
|
+
"name": "set",
|
|
546
503
|
"hasDynamicHelp": false,
|
|
547
504
|
"multiple": false,
|
|
548
505
|
"type": "option"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"hiddenAliases": [],
|
|
510
|
+
"id": "settings",
|
|
511
|
+
"pluginAlias": "@mailmodo/cli",
|
|
512
|
+
"pluginName": "@mailmodo/cli",
|
|
513
|
+
"pluginType": "core",
|
|
514
|
+
"strict": true,
|
|
515
|
+
"enableJsonFlag": false,
|
|
516
|
+
"isESM": true,
|
|
517
|
+
"relativePath": [
|
|
518
|
+
"dist",
|
|
519
|
+
"commands",
|
|
520
|
+
"settings",
|
|
521
|
+
"index.js"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
"status": {
|
|
525
|
+
"aliases": [],
|
|
526
|
+
"args": {},
|
|
527
|
+
"description": "View email performance metrics and quota usage",
|
|
528
|
+
"examples": [
|
|
529
|
+
"<%= config.bin %> status",
|
|
530
|
+
"<%= config.bin %> status --json"
|
|
531
|
+
],
|
|
532
|
+
"flags": {
|
|
533
|
+
"json": {
|
|
534
|
+
"description": "Output as JSON",
|
|
535
|
+
"name": "json",
|
|
536
|
+
"allowNo": false,
|
|
537
|
+
"type": "boolean"
|
|
549
538
|
},
|
|
550
|
-
"
|
|
551
|
-
"
|
|
552
|
-
"
|
|
539
|
+
"yes": {
|
|
540
|
+
"char": "y",
|
|
541
|
+
"description": "Skip confirmation prompts",
|
|
542
|
+
"name": "yes",
|
|
553
543
|
"allowNo": false,
|
|
554
544
|
"type": "boolean"
|
|
555
545
|
}
|
|
556
546
|
},
|
|
557
547
|
"hasDynamicHelp": false,
|
|
558
548
|
"hiddenAliases": [],
|
|
559
|
-
"id": "
|
|
549
|
+
"id": "status",
|
|
560
550
|
"pluginAlias": "@mailmodo/cli",
|
|
561
551
|
"pluginName": "@mailmodo/cli",
|
|
562
552
|
"pluginType": "core",
|
|
@@ -566,18 +556,23 @@
|
|
|
566
556
|
"relativePath": [
|
|
567
557
|
"dist",
|
|
568
558
|
"commands",
|
|
569
|
-
"
|
|
559
|
+
"status",
|
|
570
560
|
"index.js"
|
|
571
561
|
]
|
|
572
562
|
},
|
|
573
|
-
"
|
|
563
|
+
"preview": {
|
|
574
564
|
"aliases": [],
|
|
575
|
-
"args": {
|
|
576
|
-
|
|
565
|
+
"args": {
|
|
566
|
+
"id": {
|
|
567
|
+
"description": "Email template ID to preview",
|
|
568
|
+
"name": "id"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
577
572
|
"examples": [
|
|
578
|
-
"<%= config.bin %>
|
|
579
|
-
"<%= config.bin %>
|
|
580
|
-
"<%= config.bin %>
|
|
573
|
+
"<%= config.bin %> preview welcome",
|
|
574
|
+
"<%= config.bin %> preview welcome --text",
|
|
575
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
581
576
|
],
|
|
582
577
|
"flags": {
|
|
583
578
|
"json": {
|
|
@@ -593,17 +588,23 @@
|
|
|
593
588
|
"allowNo": false,
|
|
594
589
|
"type": "boolean"
|
|
595
590
|
},
|
|
596
|
-
"
|
|
597
|
-
"description": "
|
|
598
|
-
"name": "
|
|
591
|
+
"send": {
|
|
592
|
+
"description": "Send test email to this address",
|
|
593
|
+
"name": "send",
|
|
599
594
|
"hasDynamicHelp": false,
|
|
600
595
|
"multiple": false,
|
|
601
596
|
"type": "option"
|
|
597
|
+
},
|
|
598
|
+
"text": {
|
|
599
|
+
"description": "Output plain text version (for AI agents)",
|
|
600
|
+
"name": "text",
|
|
601
|
+
"allowNo": false,
|
|
602
|
+
"type": "boolean"
|
|
602
603
|
}
|
|
603
604
|
},
|
|
604
605
|
"hasDynamicHelp": false,
|
|
605
606
|
"hiddenAliases": [],
|
|
606
|
-
"id": "
|
|
607
|
+
"id": "preview",
|
|
607
608
|
"pluginAlias": "@mailmodo/cli",
|
|
608
609
|
"pluginName": "@mailmodo/cli",
|
|
609
610
|
"pluginType": "core",
|
|
@@ -613,17 +614,16 @@
|
|
|
613
614
|
"relativePath": [
|
|
614
615
|
"dist",
|
|
615
616
|
"commands",
|
|
616
|
-
"
|
|
617
|
+
"preview",
|
|
617
618
|
"index.js"
|
|
618
619
|
]
|
|
619
620
|
},
|
|
620
|
-
"
|
|
621
|
+
"logout": {
|
|
621
622
|
"aliases": [],
|
|
622
623
|
"args": {},
|
|
623
|
-
"description": "
|
|
624
|
+
"description": "Sign out by removing saved credentials from this machine",
|
|
624
625
|
"examples": [
|
|
625
|
-
"<%= config.bin %>
|
|
626
|
-
"<%= config.bin %> status --json"
|
|
626
|
+
"<%= config.bin %> logout"
|
|
627
627
|
],
|
|
628
628
|
"flags": {
|
|
629
629
|
"json": {
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
},
|
|
643
643
|
"hasDynamicHelp": false,
|
|
644
644
|
"hiddenAliases": [],
|
|
645
|
-
"id": "
|
|
645
|
+
"id": "logout",
|
|
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
|
+
"logout",
|
|
656
656
|
"index.js"
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.
|
|
660
|
+
"version": "0.0.35-beta.pr37.60"
|
|
661
661
|
}
|
package/package.json
CHANGED