@mailmodo/cli 0.0.39-beta.pr41.64 → 0.0.39
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 +46 -46
- 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);
|
|
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) {
|
|
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) {
|
|
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
|
+
"emails": {
|
|
284
284
|
"aliases": [],
|
|
285
285
|
"args": {},
|
|
286
|
-
"description": "
|
|
286
|
+
"description": "List and view configured email sequences",
|
|
287
287
|
"examples": [
|
|
288
|
-
"<%= config.bin %>
|
|
289
|
-
"
|
|
288
|
+
"<%= config.bin %> emails",
|
|
289
|
+
"<%= config.bin %> emails --json"
|
|
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": "emails",
|
|
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
|
+
"emails",
|
|
319
319
|
"index.js"
|
|
320
320
|
]
|
|
321
321
|
},
|
|
@@ -365,6 +365,45 @@
|
|
|
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
|
+
},
|
|
368
407
|
"logout": {
|
|
369
408
|
"aliases": [],
|
|
370
409
|
"args": {},
|
|
@@ -616,46 +655,7 @@
|
|
|
616
655
|
"status",
|
|
617
656
|
"index.js"
|
|
618
657
|
]
|
|
619
|
-
},
|
|
620
|
-
"emails": {
|
|
621
|
-
"aliases": [],
|
|
622
|
-
"args": {},
|
|
623
|
-
"description": "List and view configured email sequences",
|
|
624
|
-
"examples": [
|
|
625
|
-
"<%= config.bin %> emails",
|
|
626
|
-
"<%= config.bin %> emails --json"
|
|
627
|
-
],
|
|
628
|
-
"flags": {
|
|
629
|
-
"json": {
|
|
630
|
-
"description": "Output as JSON",
|
|
631
|
-
"name": "json",
|
|
632
|
-
"allowNo": false,
|
|
633
|
-
"type": "boolean"
|
|
634
|
-
},
|
|
635
|
-
"yes": {
|
|
636
|
-
"char": "y",
|
|
637
|
-
"description": "Skip confirmation prompts",
|
|
638
|
-
"name": "yes",
|
|
639
|
-
"allowNo": false,
|
|
640
|
-
"type": "boolean"
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
"hasDynamicHelp": false,
|
|
644
|
-
"hiddenAliases": [],
|
|
645
|
-
"id": "emails",
|
|
646
|
-
"pluginAlias": "@mailmodo/cli",
|
|
647
|
-
"pluginName": "@mailmodo/cli",
|
|
648
|
-
"pluginType": "core",
|
|
649
|
-
"strict": true,
|
|
650
|
-
"enableJsonFlag": false,
|
|
651
|
-
"isESM": true,
|
|
652
|
-
"relativePath": [
|
|
653
|
-
"dist",
|
|
654
|
-
"commands",
|
|
655
|
-
"emails",
|
|
656
|
-
"index.js"
|
|
657
|
-
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.39
|
|
660
|
+
"version": "0.0.39"
|
|
661
661
|
}
|