@mailmodo/cli 0.0.9-beta.pr11.15 → 0.0.10-beta.pr12.16
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 +78 -78
- 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.get(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: "/
|
|
4
|
-
ANALYZE: "/
|
|
5
|
-
ASSETS_LOGO: "/
|
|
6
|
-
AUTH_VALIDATE: "/
|
|
7
|
-
BILLING_CAP: "/
|
|
8
|
-
BILLING_STATUS: "/
|
|
9
|
-
CONTACTS: "/
|
|
10
|
-
CONTACTS_EXPORT: "/
|
|
11
|
-
DOMAIN: "/
|
|
12
|
-
DOMAIN_STATUS: "/
|
|
13
|
-
DOMAIN_VERIFY: "/
|
|
14
|
-
EDIT: "/
|
|
15
|
-
EVENTS: "/
|
|
16
|
-
GENERATE: "/
|
|
17
|
-
LOGS: "/
|
|
18
|
-
PREVIEW: "/
|
|
19
|
-
SEQUENCES: "/
|
|
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";
|
|
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: '/
|
|
9
|
-
ANALYZE: '/
|
|
10
|
-
ASSETS_LOGO: '/
|
|
11
|
-
AUTH_VALIDATE: '/
|
|
12
|
-
BILLING_CAP: '/
|
|
13
|
-
BILLING_STATUS: '/
|
|
14
|
-
CONTACTS: '/
|
|
15
|
-
CONTACTS_EXPORT: '/
|
|
16
|
-
DOMAIN: '/
|
|
17
|
-
DOMAIN_STATUS: '/
|
|
18
|
-
DOMAIN_VERIFY: '/
|
|
19
|
-
EDIT: '/
|
|
20
|
-
EVENTS: '/
|
|
21
|
-
GENERATE: '/
|
|
22
|
-
LOGS: '/
|
|
23
|
-
PREVIEW: '/
|
|
24
|
-
SEQUENCES: '/
|
|
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',
|
|
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
|
@@ -153,13 +153,14 @@
|
|
|
153
153
|
"index.js"
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
|
-
"
|
|
156
|
+
"domain": {
|
|
157
157
|
"aliases": [],
|
|
158
158
|
"args": {},
|
|
159
|
-
"description": "
|
|
159
|
+
"description": "Set up and verify your sending domain",
|
|
160
160
|
"examples": [
|
|
161
|
-
"<%= config.bin %>
|
|
162
|
-
"<%= config.bin %>
|
|
161
|
+
"<%= config.bin %> domain",
|
|
162
|
+
"<%= config.bin %> domain --verify",
|
|
163
|
+
"<%= config.bin %> domain --status"
|
|
163
164
|
],
|
|
164
165
|
"flags": {
|
|
165
166
|
"json": {
|
|
@@ -174,11 +175,23 @@
|
|
|
174
175
|
"name": "yes",
|
|
175
176
|
"allowNo": false,
|
|
176
177
|
"type": "boolean"
|
|
178
|
+
},
|
|
179
|
+
"status": {
|
|
180
|
+
"description": "Show domain health status",
|
|
181
|
+
"name": "status",
|
|
182
|
+
"allowNo": false,
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"verify": {
|
|
186
|
+
"description": "Verify DNS records",
|
|
187
|
+
"name": "verify",
|
|
188
|
+
"allowNo": false,
|
|
189
|
+
"type": "boolean"
|
|
177
190
|
}
|
|
178
191
|
},
|
|
179
192
|
"hasDynamicHelp": false,
|
|
180
193
|
"hiddenAliases": [],
|
|
181
|
-
"id": "
|
|
194
|
+
"id": "domain",
|
|
182
195
|
"pluginAlias": "@mailmodo/cli",
|
|
183
196
|
"pluginName": "@mailmodo/cli",
|
|
184
197
|
"pluginType": "core",
|
|
@@ -188,7 +201,7 @@
|
|
|
188
201
|
"relativePath": [
|
|
189
202
|
"dist",
|
|
190
203
|
"commands",
|
|
191
|
-
"
|
|
204
|
+
"domain",
|
|
192
205
|
"index.js"
|
|
193
206
|
]
|
|
194
207
|
},
|
|
@@ -244,14 +257,13 @@
|
|
|
244
257
|
"index.js"
|
|
245
258
|
]
|
|
246
259
|
},
|
|
247
|
-
"
|
|
260
|
+
"emails": {
|
|
248
261
|
"aliases": [],
|
|
249
262
|
"args": {},
|
|
250
|
-
"description": "
|
|
263
|
+
"description": "List and view configured email sequences",
|
|
251
264
|
"examples": [
|
|
252
|
-
"<%= config.bin %>
|
|
253
|
-
"<%= config.bin %>
|
|
254
|
-
"<%= config.bin %> domain --status"
|
|
265
|
+
"<%= config.bin %> emails",
|
|
266
|
+
"<%= config.bin %> emails --json"
|
|
255
267
|
],
|
|
256
268
|
"flags": {
|
|
257
269
|
"json": {
|
|
@@ -266,23 +278,11 @@
|
|
|
266
278
|
"name": "yes",
|
|
267
279
|
"allowNo": false,
|
|
268
280
|
"type": "boolean"
|
|
269
|
-
},
|
|
270
|
-
"status": {
|
|
271
|
-
"description": "Show domain health status",
|
|
272
|
-
"name": "status",
|
|
273
|
-
"allowNo": false,
|
|
274
|
-
"type": "boolean"
|
|
275
|
-
},
|
|
276
|
-
"verify": {
|
|
277
|
-
"description": "Verify DNS records",
|
|
278
|
-
"name": "verify",
|
|
279
|
-
"allowNo": false,
|
|
280
|
-
"type": "boolean"
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
283
|
"hasDynamicHelp": false,
|
|
284
284
|
"hiddenAliases": [],
|
|
285
|
-
"id": "
|
|
285
|
+
"id": "emails",
|
|
286
286
|
"pluginAlias": "@mailmodo/cli",
|
|
287
287
|
"pluginName": "@mailmodo/cli",
|
|
288
288
|
"pluginType": "core",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"relativePath": [
|
|
293
293
|
"dist",
|
|
294
294
|
"commands",
|
|
295
|
-
"
|
|
295
|
+
"emails",
|
|
296
296
|
"index.js"
|
|
297
297
|
]
|
|
298
298
|
},
|
|
@@ -381,6 +381,44 @@
|
|
|
381
381
|
"index.js"
|
|
382
382
|
]
|
|
383
383
|
},
|
|
384
|
+
"logout": {
|
|
385
|
+
"aliases": [],
|
|
386
|
+
"args": {},
|
|
387
|
+
"description": "Sign out by removing saved credentials from this machine",
|
|
388
|
+
"examples": [
|
|
389
|
+
"<%= config.bin %> logout"
|
|
390
|
+
],
|
|
391
|
+
"flags": {
|
|
392
|
+
"json": {
|
|
393
|
+
"description": "Output as JSON",
|
|
394
|
+
"name": "json",
|
|
395
|
+
"allowNo": false,
|
|
396
|
+
"type": "boolean"
|
|
397
|
+
},
|
|
398
|
+
"yes": {
|
|
399
|
+
"char": "y",
|
|
400
|
+
"description": "Skip confirmation prompts",
|
|
401
|
+
"name": "yes",
|
|
402
|
+
"allowNo": false,
|
|
403
|
+
"type": "boolean"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"hasDynamicHelp": false,
|
|
407
|
+
"hiddenAliases": [],
|
|
408
|
+
"id": "logout",
|
|
409
|
+
"pluginAlias": "@mailmodo/cli",
|
|
410
|
+
"pluginName": "@mailmodo/cli",
|
|
411
|
+
"pluginType": "core",
|
|
412
|
+
"strict": true,
|
|
413
|
+
"enableJsonFlag": false,
|
|
414
|
+
"isESM": true,
|
|
415
|
+
"relativePath": [
|
|
416
|
+
"dist",
|
|
417
|
+
"commands",
|
|
418
|
+
"logout",
|
|
419
|
+
"index.js"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
384
422
|
"logs": {
|
|
385
423
|
"aliases": [],
|
|
386
424
|
"args": {},
|
|
@@ -435,12 +473,14 @@
|
|
|
435
473
|
"index.js"
|
|
436
474
|
]
|
|
437
475
|
},
|
|
438
|
-
"
|
|
476
|
+
"settings": {
|
|
439
477
|
"aliases": [],
|
|
440
478
|
"args": {},
|
|
441
|
-
"description": "
|
|
479
|
+
"description": "View and update project settings",
|
|
442
480
|
"examples": [
|
|
443
|
-
"<%= config.bin %>
|
|
481
|
+
"<%= config.bin %> settings",
|
|
482
|
+
"<%= config.bin %> settings --set brand_color=#0F3460",
|
|
483
|
+
"<%= config.bin %> settings --json"
|
|
444
484
|
],
|
|
445
485
|
"flags": {
|
|
446
486
|
"json": {
|
|
@@ -455,11 +495,18 @@
|
|
|
455
495
|
"name": "yes",
|
|
456
496
|
"allowNo": false,
|
|
457
497
|
"type": "boolean"
|
|
498
|
+
},
|
|
499
|
+
"set": {
|
|
500
|
+
"description": "Set a setting (format: key=value)",
|
|
501
|
+
"name": "set",
|
|
502
|
+
"hasDynamicHelp": false,
|
|
503
|
+
"multiple": false,
|
|
504
|
+
"type": "option"
|
|
458
505
|
}
|
|
459
506
|
},
|
|
460
507
|
"hasDynamicHelp": false,
|
|
461
508
|
"hiddenAliases": [],
|
|
462
|
-
"id": "
|
|
509
|
+
"id": "settings",
|
|
463
510
|
"pluginAlias": "@mailmodo/cli",
|
|
464
511
|
"pluginName": "@mailmodo/cli",
|
|
465
512
|
"pluginType": "core",
|
|
@@ -469,7 +516,7 @@
|
|
|
469
516
|
"relativePath": [
|
|
470
517
|
"dist",
|
|
471
518
|
"commands",
|
|
472
|
-
"
|
|
519
|
+
"settings",
|
|
473
520
|
"index.js"
|
|
474
521
|
]
|
|
475
522
|
},
|
|
@@ -531,53 +578,6 @@
|
|
|
531
578
|
"index.js"
|
|
532
579
|
]
|
|
533
580
|
},
|
|
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
|
-
},
|
|
581
581
|
"status": {
|
|
582
582
|
"aliases": [],
|
|
583
583
|
"args": {},
|
|
@@ -618,5 +618,5 @@
|
|
|
618
618
|
]
|
|
619
619
|
}
|
|
620
620
|
},
|
|
621
|
-
"version": "0.0.
|
|
621
|
+
"version": "0.0.10-beta.pr12.16"
|
|
622
622
|
}
|
package/package.json
CHANGED