@mailmodo/cli 0.0.37 → 0.0.38
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 +13 -4
- package/oclif.manifest.json +59 -59
- package/package.json +1 -1
|
@@ -67,21 +67,30 @@ export default class Login extends BaseCommand {
|
|
|
67
67
|
if (!response.ok) {
|
|
68
68
|
this.handleApiError(response);
|
|
69
69
|
}
|
|
70
|
-
const { email, totalFreeRemaining } = response.data;
|
|
70
|
+
const { email, totalFreeRemaining, paidEmailsRemaining, plan } = response.data;
|
|
71
71
|
await saveConfig({
|
|
72
72
|
apiKey: trimmedKey,
|
|
73
73
|
email,
|
|
74
74
|
totalFreeRemaining,
|
|
75
75
|
});
|
|
76
76
|
if (flags.json) {
|
|
77
|
-
this.log(JSON.stringify({
|
|
77
|
+
this.log(JSON.stringify({
|
|
78
|
+
email,
|
|
79
|
+
plan,
|
|
80
|
+
totalFreeRemaining,
|
|
81
|
+
paidEmailsRemaining,
|
|
82
|
+
status: 'authenticated',
|
|
83
|
+
}, null, 2));
|
|
78
84
|
return;
|
|
79
85
|
}
|
|
80
86
|
this.log(`\n Logged in as ${chalk.green(email)}`);
|
|
81
|
-
if (
|
|
87
|
+
if (plan === 'free') {
|
|
82
88
|
this.log(` Free tier: ${chalk.cyan(String(totalFreeRemaining))} emails remaining`);
|
|
89
|
+
this.log(' No credit card required.\n');
|
|
90
|
+
}
|
|
91
|
+
if (plan === 'paid') {
|
|
92
|
+
this.log(` Current paid block: ${chalk.cyan(String(paidEmailsRemaining))} emails remaining\n`);
|
|
83
93
|
}
|
|
84
|
-
this.log(' No credit card required.\n');
|
|
85
94
|
this.log(` Next: Run ${chalk.cyan("'mailmodo init'")} to generate your email sequences.\n`);
|
|
86
95
|
}
|
|
87
96
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -137,58 +137,6 @@
|
|
|
137
137
|
"index.js"
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
|
-
"domain": {
|
|
141
|
-
"aliases": [],
|
|
142
|
-
"args": {},
|
|
143
|
-
"description": "Set up and verify your sending domain",
|
|
144
|
-
"examples": [
|
|
145
|
-
"<%= config.bin %> domain",
|
|
146
|
-
"<%= config.bin %> domain --verify",
|
|
147
|
-
"<%= config.bin %> domain --status"
|
|
148
|
-
],
|
|
149
|
-
"flags": {
|
|
150
|
-
"json": {
|
|
151
|
-
"description": "Output as JSON",
|
|
152
|
-
"name": "json",
|
|
153
|
-
"allowNo": false,
|
|
154
|
-
"type": "boolean"
|
|
155
|
-
},
|
|
156
|
-
"yes": {
|
|
157
|
-
"char": "y",
|
|
158
|
-
"description": "Skip confirmation prompts",
|
|
159
|
-
"name": "yes",
|
|
160
|
-
"allowNo": false,
|
|
161
|
-
"type": "boolean"
|
|
162
|
-
},
|
|
163
|
-
"status": {
|
|
164
|
-
"description": "Show domain health status",
|
|
165
|
-
"name": "status",
|
|
166
|
-
"allowNo": false,
|
|
167
|
-
"type": "boolean"
|
|
168
|
-
},
|
|
169
|
-
"verify": {
|
|
170
|
-
"description": "Verify DNS records",
|
|
171
|
-
"name": "verify",
|
|
172
|
-
"allowNo": false,
|
|
173
|
-
"type": "boolean"
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"hasDynamicHelp": false,
|
|
177
|
-
"hiddenAliases": [],
|
|
178
|
-
"id": "domain",
|
|
179
|
-
"pluginAlias": "@mailmodo/cli",
|
|
180
|
-
"pluginName": "@mailmodo/cli",
|
|
181
|
-
"pluginType": "core",
|
|
182
|
-
"strict": true,
|
|
183
|
-
"enableJsonFlag": false,
|
|
184
|
-
"isESM": true,
|
|
185
|
-
"relativePath": [
|
|
186
|
-
"dist",
|
|
187
|
-
"commands",
|
|
188
|
-
"domain",
|
|
189
|
-
"index.js"
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
140
|
"deploy": {
|
|
193
141
|
"aliases": [],
|
|
194
142
|
"args": {},
|
|
@@ -228,13 +176,14 @@
|
|
|
228
176
|
"index.js"
|
|
229
177
|
]
|
|
230
178
|
},
|
|
231
|
-
"
|
|
179
|
+
"domain": {
|
|
232
180
|
"aliases": [],
|
|
233
181
|
"args": {},
|
|
234
|
-
"description": "
|
|
182
|
+
"description": "Set up and verify your sending domain",
|
|
235
183
|
"examples": [
|
|
236
|
-
"<%= config.bin %>
|
|
237
|
-
"<%= config.bin %>
|
|
184
|
+
"<%= config.bin %> domain",
|
|
185
|
+
"<%= config.bin %> domain --verify",
|
|
186
|
+
"<%= config.bin %> domain --status"
|
|
238
187
|
],
|
|
239
188
|
"flags": {
|
|
240
189
|
"json": {
|
|
@@ -249,11 +198,23 @@
|
|
|
249
198
|
"name": "yes",
|
|
250
199
|
"allowNo": false,
|
|
251
200
|
"type": "boolean"
|
|
201
|
+
},
|
|
202
|
+
"status": {
|
|
203
|
+
"description": "Show domain health status",
|
|
204
|
+
"name": "status",
|
|
205
|
+
"allowNo": false,
|
|
206
|
+
"type": "boolean"
|
|
207
|
+
},
|
|
208
|
+
"verify": {
|
|
209
|
+
"description": "Verify DNS records",
|
|
210
|
+
"name": "verify",
|
|
211
|
+
"allowNo": false,
|
|
212
|
+
"type": "boolean"
|
|
252
213
|
}
|
|
253
214
|
},
|
|
254
215
|
"hasDynamicHelp": false,
|
|
255
216
|
"hiddenAliases": [],
|
|
256
|
-
"id": "
|
|
217
|
+
"id": "domain",
|
|
257
218
|
"pluginAlias": "@mailmodo/cli",
|
|
258
219
|
"pluginName": "@mailmodo/cli",
|
|
259
220
|
"pluginType": "core",
|
|
@@ -263,7 +224,7 @@
|
|
|
263
224
|
"relativePath": [
|
|
264
225
|
"dist",
|
|
265
226
|
"commands",
|
|
266
|
-
"
|
|
227
|
+
"domain",
|
|
267
228
|
"index.js"
|
|
268
229
|
]
|
|
269
230
|
},
|
|
@@ -404,6 +365,45 @@
|
|
|
404
365
|
"index.js"
|
|
405
366
|
]
|
|
406
367
|
},
|
|
368
|
+
"emails": {
|
|
369
|
+
"aliases": [],
|
|
370
|
+
"args": {},
|
|
371
|
+
"description": "List and view configured email sequences",
|
|
372
|
+
"examples": [
|
|
373
|
+
"<%= config.bin %> emails",
|
|
374
|
+
"<%= config.bin %> emails --json"
|
|
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": "emails",
|
|
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
|
+
"emails",
|
|
404
|
+
"index.js"
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
407
|
"logout": {
|
|
408
408
|
"aliases": [],
|
|
409
409
|
"args": {},
|
|
@@ -657,5 +657,5 @@
|
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.
|
|
660
|
+
"version": "0.0.38"
|
|
661
661
|
}
|