@mailmodo/cli 0.0.10-beta.pr12.16 → 0.0.10
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/login/index.js +1 -1
- package/dist/lib/constants.d.ts +17 -17
- package/dist/lib/constants.js +17 -17
- package/oclif.manifest.json +44 -44
- package/package.json +1 -1
|
@@ -63,7 +63,7 @@ export default class Login extends BaseCommand {
|
|
|
63
63
|
}
|
|
64
64
|
const trimmedKey = apiKey.trim();
|
|
65
65
|
const client = new ApiClient(trimmedKey);
|
|
66
|
-
const response = await this.withApiSpinner({ json: flags.json, text: ' Validating API key...' }, () => client.
|
|
66
|
+
const response = await this.withApiSpinner({ json: flags.json, text: ' Validating API key...' }, () => client.post(API_ENDPOINTS.AUTH_VALIDATE, {}));
|
|
67
67
|
if (!response.ok) {
|
|
68
68
|
this.handleApiError(response);
|
|
69
69
|
}
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export declare const API_BASE_URL: string;
|
|
2
2
|
export declare const API_ENDPOINTS: Readonly<{
|
|
3
|
-
ANALYTICS: "/analytics";
|
|
4
|
-
ANALYZE: "/analyze";
|
|
5
|
-
ASSETS_LOGO: "/assets/logo";
|
|
6
|
-
AUTH_VALIDATE: "/auth/validate";
|
|
7
|
-
BILLING_CAP: "/billing/cap";
|
|
8
|
-
BILLING_STATUS: "/billing/status";
|
|
9
|
-
CONTACTS: "/contacts";
|
|
10
|
-
CONTACTS_EXPORT: "/contacts/export";
|
|
11
|
-
DOMAIN: "/domain";
|
|
12
|
-
DOMAIN_STATUS: "/domain/status";
|
|
13
|
-
DOMAIN_VERIFY: "/domain/verify";
|
|
14
|
-
EDIT: "/edit";
|
|
15
|
-
EVENTS: "/events";
|
|
16
|
-
GENERATE: "/generate";
|
|
17
|
-
LOGS: "/logs";
|
|
18
|
-
PREVIEW: "/preview";
|
|
19
|
-
SEQUENCES: "/sequences";
|
|
3
|
+
ANALYTICS: "/api/analytics";
|
|
4
|
+
ANALYZE: "/api/analyze";
|
|
5
|
+
ASSETS_LOGO: "/api/assets/logo";
|
|
6
|
+
AUTH_VALIDATE: "/api/auth/validate";
|
|
7
|
+
BILLING_CAP: "/api/billing/cap";
|
|
8
|
+
BILLING_STATUS: "/api/billing/status";
|
|
9
|
+
CONTACTS: "/api/contacts";
|
|
10
|
+
CONTACTS_EXPORT: "/api/contacts/export";
|
|
11
|
+
DOMAIN: "/api/domain";
|
|
12
|
+
DOMAIN_STATUS: "/api/domain/status";
|
|
13
|
+
DOMAIN_VERIFY: "/api/domain/verify";
|
|
14
|
+
EDIT: "/api/edit";
|
|
15
|
+
EVENTS: "/api/events";
|
|
16
|
+
GENERATE: "/api/generate";
|
|
17
|
+
LOGS: "/api/logs";
|
|
18
|
+
PREVIEW: "/api/preview";
|
|
19
|
+
SEQUENCES: "/api/sequences";
|
|
20
20
|
}>;
|
|
21
21
|
export declare const SIGNUP_URL = "https://mailmodo.com/cli";
|
|
22
22
|
export declare const DOCS_URL = "https://mailmodo.com/docs/cli";
|
package/dist/lib/constants.js
CHANGED
|
@@ -5,23 +5,23 @@ export const API_BASE_URL = process.env.MAILMODO_DEV_TSX
|
|
|
5
5
|
? DEV_API_BASE_URL
|
|
6
6
|
: PRODUCTION_API_BASE_URL;
|
|
7
7
|
export const API_ENDPOINTS = Object.freeze({
|
|
8
|
-
ANALYTICS: '/analytics',
|
|
9
|
-
ANALYZE: '/analyze',
|
|
10
|
-
ASSETS_LOGO: '/assets/logo',
|
|
11
|
-
AUTH_VALIDATE: '/auth/validate',
|
|
12
|
-
BILLING_CAP: '/billing/cap',
|
|
13
|
-
BILLING_STATUS: '/billing/status',
|
|
14
|
-
CONTACTS: '/contacts',
|
|
15
|
-
CONTACTS_EXPORT: '/contacts/export',
|
|
16
|
-
DOMAIN: '/domain',
|
|
17
|
-
DOMAIN_STATUS: '/domain/status',
|
|
18
|
-
DOMAIN_VERIFY: '/domain/verify',
|
|
19
|
-
EDIT: '/edit',
|
|
20
|
-
EVENTS: '/events',
|
|
21
|
-
GENERATE: '/generate',
|
|
22
|
-
LOGS: '/logs',
|
|
23
|
-
PREVIEW: '/preview',
|
|
24
|
-
SEQUENCES: '/sequences',
|
|
8
|
+
ANALYTICS: '/api/analytics',
|
|
9
|
+
ANALYZE: '/api/analyze',
|
|
10
|
+
ASSETS_LOGO: '/api/assets/logo',
|
|
11
|
+
AUTH_VALIDATE: '/api/auth/validate',
|
|
12
|
+
BILLING_CAP: '/api/billing/cap',
|
|
13
|
+
BILLING_STATUS: '/api/billing/status',
|
|
14
|
+
CONTACTS: '/api/contacts',
|
|
15
|
+
CONTACTS_EXPORT: '/api/contacts/export',
|
|
16
|
+
DOMAIN: '/api/domain',
|
|
17
|
+
DOMAIN_STATUS: '/api/domain/status',
|
|
18
|
+
DOMAIN_VERIFY: '/api/domain/verify',
|
|
19
|
+
EDIT: '/api/edit',
|
|
20
|
+
EVENTS: '/api/events',
|
|
21
|
+
GENERATE: '/api/generate',
|
|
22
|
+
LOGS: '/api/logs',
|
|
23
|
+
PREVIEW: '/api/preview',
|
|
24
|
+
SEQUENCES: '/api/sequences',
|
|
25
25
|
});
|
|
26
26
|
export const SIGNUP_URL = 'https://mailmodo.com/cli';
|
|
27
27
|
export const DOCS_URL = 'https://mailmodo.com/docs/cli';
|
package/oclif.manifest.json
CHANGED
|
@@ -473,14 +473,19 @@
|
|
|
473
473
|
"index.js"
|
|
474
474
|
]
|
|
475
475
|
},
|
|
476
|
-
"
|
|
476
|
+
"preview": {
|
|
477
477
|
"aliases": [],
|
|
478
|
-
"args": {
|
|
479
|
-
|
|
478
|
+
"args": {
|
|
479
|
+
"id": {
|
|
480
|
+
"description": "Email ID to preview",
|
|
481
|
+
"name": "id"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"description": "Preview an email in browser, as text, or send a test",
|
|
480
485
|
"examples": [
|
|
481
|
-
"<%= config.bin %>
|
|
482
|
-
"<%= config.bin %>
|
|
483
|
-
"<%= config.bin %>
|
|
486
|
+
"<%= config.bin %> preview welcome",
|
|
487
|
+
"<%= config.bin %> preview welcome --text",
|
|
488
|
+
"<%= config.bin %> preview welcome --send me@example.com"
|
|
484
489
|
],
|
|
485
490
|
"flags": {
|
|
486
491
|
"json": {
|
|
@@ -496,17 +501,23 @@
|
|
|
496
501
|
"allowNo": false,
|
|
497
502
|
"type": "boolean"
|
|
498
503
|
},
|
|
499
|
-
"
|
|
500
|
-
"description": "
|
|
501
|
-
"name": "
|
|
504
|
+
"send": {
|
|
505
|
+
"description": "Send test email to this address",
|
|
506
|
+
"name": "send",
|
|
502
507
|
"hasDynamicHelp": false,
|
|
503
508
|
"multiple": false,
|
|
504
509
|
"type": "option"
|
|
510
|
+
},
|
|
511
|
+
"text": {
|
|
512
|
+
"description": "Output plain text version (for AI agents)",
|
|
513
|
+
"name": "text",
|
|
514
|
+
"allowNo": false,
|
|
515
|
+
"type": "boolean"
|
|
505
516
|
}
|
|
506
517
|
},
|
|
507
518
|
"hasDynamicHelp": false,
|
|
508
519
|
"hiddenAliases": [],
|
|
509
|
-
"id": "
|
|
520
|
+
"id": "preview",
|
|
510
521
|
"pluginAlias": "@mailmodo/cli",
|
|
511
522
|
"pluginName": "@mailmodo/cli",
|
|
512
523
|
"pluginType": "core",
|
|
@@ -516,23 +527,17 @@
|
|
|
516
527
|
"relativePath": [
|
|
517
528
|
"dist",
|
|
518
529
|
"commands",
|
|
519
|
-
"
|
|
530
|
+
"preview",
|
|
520
531
|
"index.js"
|
|
521
532
|
]
|
|
522
533
|
},
|
|
523
|
-
"
|
|
534
|
+
"status": {
|
|
524
535
|
"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",
|
|
536
|
+
"args": {},
|
|
537
|
+
"description": "View email performance metrics and quota usage",
|
|
532
538
|
"examples": [
|
|
533
|
-
"<%= config.bin %>
|
|
534
|
-
"<%= config.bin %>
|
|
535
|
-
"<%= config.bin %> preview welcome --send me@example.com"
|
|
539
|
+
"<%= config.bin %> status",
|
|
540
|
+
"<%= config.bin %> status --json"
|
|
536
541
|
],
|
|
537
542
|
"flags": {
|
|
538
543
|
"json": {
|
|
@@ -547,24 +552,11 @@
|
|
|
547
552
|
"name": "yes",
|
|
548
553
|
"allowNo": false,
|
|
549
554
|
"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
555
|
}
|
|
564
556
|
},
|
|
565
557
|
"hasDynamicHelp": false,
|
|
566
558
|
"hiddenAliases": [],
|
|
567
|
-
"id": "
|
|
559
|
+
"id": "status",
|
|
568
560
|
"pluginAlias": "@mailmodo/cli",
|
|
569
561
|
"pluginName": "@mailmodo/cli",
|
|
570
562
|
"pluginType": "core",
|
|
@@ -574,17 +566,18 @@
|
|
|
574
566
|
"relativePath": [
|
|
575
567
|
"dist",
|
|
576
568
|
"commands",
|
|
577
|
-
"
|
|
569
|
+
"status",
|
|
578
570
|
"index.js"
|
|
579
571
|
]
|
|
580
572
|
},
|
|
581
|
-
"
|
|
573
|
+
"settings": {
|
|
582
574
|
"aliases": [],
|
|
583
575
|
"args": {},
|
|
584
|
-
"description": "View
|
|
576
|
+
"description": "View and update project settings",
|
|
585
577
|
"examples": [
|
|
586
|
-
"<%= config.bin %>
|
|
587
|
-
"<%= config.bin %>
|
|
578
|
+
"<%= config.bin %> settings",
|
|
579
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
580
|
+
"<%= config.bin %> settings --json"
|
|
588
581
|
],
|
|
589
582
|
"flags": {
|
|
590
583
|
"json": {
|
|
@@ -599,11 +592,18 @@
|
|
|
599
592
|
"name": "yes",
|
|
600
593
|
"allowNo": false,
|
|
601
594
|
"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
602
|
}
|
|
603
603
|
},
|
|
604
604
|
"hasDynamicHelp": false,
|
|
605
605
|
"hiddenAliases": [],
|
|
606
|
-
"id": "
|
|
606
|
+
"id": "settings",
|
|
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
|
+
"settings",
|
|
617
617
|
"index.js"
|
|
618
618
|
]
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
|
-
"version": "0.0.10
|
|
621
|
+
"version": "0.0.10"
|
|
622
622
|
}
|