@mailmodo/cli 0.0.38-beta.pr40.63 → 0.0.39-beta.pr41.64
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/billing/index.js +3 -3
- package/oclif.manifest.json +60 -60
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ export default class Billing extends BaseCommand {
|
|
|
54
54
|
await this.setCap(flags.cap, autoChargeBlockCount, flags.json);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
await this.showStatus(flags.json);
|
|
57
|
+
await this.showStatus(flags.json, flags.status);
|
|
58
58
|
}
|
|
59
59
|
async startCheckout(jsonOutput) {
|
|
60
60
|
const response = await this.withApiSpinner({ json: jsonOutput, text: ' Creating checkout session...' }, () => this.apiClient.post(API_ENDPOINTS.BILLING_CHECKOUT));
|
|
@@ -76,7 +76,7 @@ export default class Billing extends BaseCommand {
|
|
|
76
76
|
this.log(` ${INFO.BROWSER_OPEN_FAILED}\n`);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
async showStatus(jsonOutput) {
|
|
79
|
+
async showStatus(jsonOutput, statusOnly) {
|
|
80
80
|
const response = await this.withApiSpinner({ json: jsonOutput, text: ' Loading billing status...' }, () => this.apiClient.get(API_ENDPOINTS.BILLING_STATUS));
|
|
81
81
|
if (!response.ok) {
|
|
82
82
|
this.handleApiError(response);
|
|
@@ -104,7 +104,7 @@ export default class Billing extends BaseCommand {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
this.log('');
|
|
107
|
-
if (!data.hasPaymentMethod) {
|
|
107
|
+
if (!data.hasPaymentMethod && !statusOnly) {
|
|
108
108
|
await this.startCheckout(jsonOutput);
|
|
109
109
|
}
|
|
110
110
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -280,13 +280,13 @@
|
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"
|
|
283
|
+
"login": {
|
|
284
284
|
"aliases": [],
|
|
285
285
|
"args": {},
|
|
286
|
-
"description": "
|
|
286
|
+
"description": "Authenticate with Mailmodo using your API key",
|
|
287
287
|
"examples": [
|
|
288
|
-
"<%= config.bin %>
|
|
289
|
-
"<%= config.bin %>
|
|
288
|
+
"<%= config.bin %> login",
|
|
289
|
+
"MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
|
|
290
290
|
],
|
|
291
291
|
"flags": {
|
|
292
292
|
"json": {
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
},
|
|
306
306
|
"hasDynamicHelp": false,
|
|
307
307
|
"hiddenAliases": [],
|
|
308
|
-
"id": "
|
|
308
|
+
"id": "login",
|
|
309
309
|
"pluginAlias": "@mailmodo/cli",
|
|
310
310
|
"pluginName": "@mailmodo/cli",
|
|
311
311
|
"pluginType": "core",
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
"relativePath": [
|
|
316
316
|
"dist",
|
|
317
317
|
"commands",
|
|
318
|
-
"
|
|
318
|
+
"login",
|
|
319
319
|
"index.js"
|
|
320
320
|
]
|
|
321
321
|
},
|
|
@@ -365,45 +365,6 @@
|
|
|
365
365
|
"index.js"
|
|
366
366
|
]
|
|
367
367
|
},
|
|
368
|
-
"login": {
|
|
369
|
-
"aliases": [],
|
|
370
|
-
"args": {},
|
|
371
|
-
"description": "Authenticate with Mailmodo using your API key",
|
|
372
|
-
"examples": [
|
|
373
|
-
"<%= config.bin %> login",
|
|
374
|
-
"MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
|
|
375
|
-
],
|
|
376
|
-
"flags": {
|
|
377
|
-
"json": {
|
|
378
|
-
"description": "Output as JSON",
|
|
379
|
-
"name": "json",
|
|
380
|
-
"allowNo": false,
|
|
381
|
-
"type": "boolean"
|
|
382
|
-
},
|
|
383
|
-
"yes": {
|
|
384
|
-
"char": "y",
|
|
385
|
-
"description": "Skip confirmation prompts",
|
|
386
|
-
"name": "yes",
|
|
387
|
-
"allowNo": false,
|
|
388
|
-
"type": "boolean"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
"hasDynamicHelp": false,
|
|
392
|
-
"hiddenAliases": [],
|
|
393
|
-
"id": "login",
|
|
394
|
-
"pluginAlias": "@mailmodo/cli",
|
|
395
|
-
"pluginName": "@mailmodo/cli",
|
|
396
|
-
"pluginType": "core",
|
|
397
|
-
"strict": true,
|
|
398
|
-
"enableJsonFlag": false,
|
|
399
|
-
"isESM": true,
|
|
400
|
-
"relativePath": [
|
|
401
|
-
"dist",
|
|
402
|
-
"commands",
|
|
403
|
-
"login",
|
|
404
|
-
"index.js"
|
|
405
|
-
]
|
|
406
|
-
},
|
|
407
368
|
"logout": {
|
|
408
369
|
"aliases": [],
|
|
409
370
|
"args": {},
|
|
@@ -570,6 +531,53 @@
|
|
|
570
531
|
"index.js"
|
|
571
532
|
]
|
|
572
533
|
},
|
|
534
|
+
"settings": {
|
|
535
|
+
"aliases": [],
|
|
536
|
+
"args": {},
|
|
537
|
+
"description": "View and update project settings",
|
|
538
|
+
"examples": [
|
|
539
|
+
"<%= config.bin %> settings",
|
|
540
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
541
|
+
"<%= config.bin %> settings --json"
|
|
542
|
+
],
|
|
543
|
+
"flags": {
|
|
544
|
+
"json": {
|
|
545
|
+
"description": "Output as JSON",
|
|
546
|
+
"name": "json",
|
|
547
|
+
"allowNo": false,
|
|
548
|
+
"type": "boolean"
|
|
549
|
+
},
|
|
550
|
+
"yes": {
|
|
551
|
+
"char": "y",
|
|
552
|
+
"description": "Skip confirmation prompts",
|
|
553
|
+
"name": "yes",
|
|
554
|
+
"allowNo": false,
|
|
555
|
+
"type": "boolean"
|
|
556
|
+
},
|
|
557
|
+
"set": {
|
|
558
|
+
"description": "Set a setting (format: key=value)",
|
|
559
|
+
"name": "set",
|
|
560
|
+
"hasDynamicHelp": false,
|
|
561
|
+
"multiple": false,
|
|
562
|
+
"type": "option"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"hasDynamicHelp": false,
|
|
566
|
+
"hiddenAliases": [],
|
|
567
|
+
"id": "settings",
|
|
568
|
+
"pluginAlias": "@mailmodo/cli",
|
|
569
|
+
"pluginName": "@mailmodo/cli",
|
|
570
|
+
"pluginType": "core",
|
|
571
|
+
"strict": true,
|
|
572
|
+
"enableJsonFlag": false,
|
|
573
|
+
"isESM": true,
|
|
574
|
+
"relativePath": [
|
|
575
|
+
"dist",
|
|
576
|
+
"commands",
|
|
577
|
+
"settings",
|
|
578
|
+
"index.js"
|
|
579
|
+
]
|
|
580
|
+
},
|
|
573
581
|
"status": {
|
|
574
582
|
"aliases": [],
|
|
575
583
|
"args": {},
|
|
@@ -609,14 +617,13 @@
|
|
|
609
617
|
"index.js"
|
|
610
618
|
]
|
|
611
619
|
},
|
|
612
|
-
"
|
|
620
|
+
"emails": {
|
|
613
621
|
"aliases": [],
|
|
614
622
|
"args": {},
|
|
615
|
-
"description": "
|
|
623
|
+
"description": "List and view configured email sequences",
|
|
616
624
|
"examples": [
|
|
617
|
-
"<%= config.bin %>
|
|
618
|
-
"<%= config.bin %>
|
|
619
|
-
"<%= config.bin %> settings --json"
|
|
625
|
+
"<%= config.bin %> emails",
|
|
626
|
+
"<%= config.bin %> emails --json"
|
|
620
627
|
],
|
|
621
628
|
"flags": {
|
|
622
629
|
"json": {
|
|
@@ -631,18 +638,11 @@
|
|
|
631
638
|
"name": "yes",
|
|
632
639
|
"allowNo": false,
|
|
633
640
|
"type": "boolean"
|
|
634
|
-
},
|
|
635
|
-
"set": {
|
|
636
|
-
"description": "Set a setting (format: key=value)",
|
|
637
|
-
"name": "set",
|
|
638
|
-
"hasDynamicHelp": false,
|
|
639
|
-
"multiple": false,
|
|
640
|
-
"type": "option"
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
"hasDynamicHelp": false,
|
|
644
644
|
"hiddenAliases": [],
|
|
645
|
-
"id": "
|
|
645
|
+
"id": "emails",
|
|
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
|
+
"emails",
|
|
656
656
|
"index.js"
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.
|
|
660
|
+
"version": "0.0.39-beta.pr41.64"
|
|
661
661
|
}
|
package/package.json
CHANGED