@mailmodo/cli 0.0.31-beta.pr33.55 → 0.0.31-beta.pr33.56
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/lib/base-command.d.ts +8 -8
- package/dist/lib/base-command.js +8 -8
- package/oclif.manifest.json +58 -58
- package/package.json +1 -1
|
@@ -61,14 +61,6 @@ export declare abstract class BaseCommand extends Command {
|
|
|
61
61
|
error?: string;
|
|
62
62
|
status: number;
|
|
63
63
|
}): never;
|
|
64
|
-
/**
|
|
65
|
-
* Builds the terminal error string for a failed API call, appending request
|
|
66
|
-
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
67
|
-
*
|
|
68
|
-
* @param {string} message - Primary error text (HTTP message or generic).
|
|
69
|
-
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
70
|
-
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
71
|
-
*/
|
|
72
64
|
protected collectDomainSetupInputs(yamlConfig: MailmodoYaml, skipPrompts: boolean): Promise<{
|
|
73
65
|
address: string;
|
|
74
66
|
domain: string;
|
|
@@ -95,5 +87,13 @@ export declare abstract class BaseCommand extends Command {
|
|
|
95
87
|
type: string;
|
|
96
88
|
value: string;
|
|
97
89
|
}>, guideUrl: string | undefined, json: boolean): void;
|
|
90
|
+
/**
|
|
91
|
+
* Builds the terminal error string for a failed API call, appending request
|
|
92
|
+
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
93
|
+
*
|
|
94
|
+
* @param {string} message - Primary error text (HTTP message or generic).
|
|
95
|
+
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
96
|
+
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
97
|
+
*/
|
|
98
98
|
private formatApiFailure;
|
|
99
99
|
}
|
package/dist/lib/base-command.js
CHANGED
|
@@ -106,14 +106,6 @@ export class BaseCommand extends Command {
|
|
|
106
106
|
}
|
|
107
107
|
this.error(this.formatApiFailure(response.error || ERRORS.UNEXPECTED_API, response));
|
|
108
108
|
}
|
|
109
|
-
/**
|
|
110
|
-
* Builds the terminal error string for a failed API call, appending request
|
|
111
|
-
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
112
|
-
*
|
|
113
|
-
* @param {string} message - Primary error text (HTTP message or generic).
|
|
114
|
-
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
115
|
-
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
116
|
-
*/
|
|
117
109
|
async collectDomainSetupInputs(yamlConfig, skipPrompts) {
|
|
118
110
|
if (skipPrompts) {
|
|
119
111
|
const domain = yamlConfig.project?.domain || '';
|
|
@@ -194,6 +186,14 @@ export class BaseCommand extends Command {
|
|
|
194
186
|
if (guideUrl)
|
|
195
187
|
this.log(` Full guide: ${chalk.cyan(guideUrl)}\n`);
|
|
196
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Builds the terminal error string for a failed API call, appending request
|
|
191
|
+
* metadata when {@link ApiRequestDebugInfo} is available.
|
|
192
|
+
*
|
|
193
|
+
* @param {string} message - Primary error text (HTTP message or generic).
|
|
194
|
+
* @param {{ status: number; debug?: ApiRequestDebugInfo }} response - Failed API response.
|
|
195
|
+
* @returns {string} Message plus indented Request details for troubleshooting.
|
|
196
|
+
*/
|
|
197
197
|
formatApiFailure(message, response) {
|
|
198
198
|
const { debug, status } = response;
|
|
199
199
|
if (!debug) {
|
package/oclif.manifest.json
CHANGED
|
@@ -176,14 +176,19 @@
|
|
|
176
176
|
"index.js"
|
|
177
177
|
]
|
|
178
178
|
},
|
|
179
|
-
"
|
|
179
|
+
"edit": {
|
|
180
180
|
"aliases": [],
|
|
181
|
-
"args": {
|
|
182
|
-
|
|
181
|
+
"args": {
|
|
182
|
+
"id": {
|
|
183
|
+
"description": "Email template ID to edit",
|
|
184
|
+
"name": "id",
|
|
185
|
+
"required": true
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"description": "Edit an email using AI-assisted natural language changes",
|
|
183
189
|
"examples": [
|
|
184
|
-
"<%= config.bin %>
|
|
185
|
-
"<%= config.bin %>
|
|
186
|
-
"<%= config.bin %> domain --status"
|
|
190
|
+
"<%= config.bin %> edit welcome",
|
|
191
|
+
"<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
|
|
187
192
|
],
|
|
188
193
|
"flags": {
|
|
189
194
|
"json": {
|
|
@@ -199,22 +204,17 @@
|
|
|
199
204
|
"allowNo": false,
|
|
200
205
|
"type": "boolean"
|
|
201
206
|
},
|
|
202
|
-
"
|
|
203
|
-
"description": "
|
|
204
|
-
"name": "
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
"verify": {
|
|
209
|
-
"description": "Verify DNS records",
|
|
210
|
-
"name": "verify",
|
|
211
|
-
"allowNo": false,
|
|
212
|
-
"type": "boolean"
|
|
207
|
+
"change": {
|
|
208
|
+
"description": "Natural language description of the change",
|
|
209
|
+
"name": "change",
|
|
210
|
+
"hasDynamicHelp": false,
|
|
211
|
+
"multiple": false,
|
|
212
|
+
"type": "option"
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
"hasDynamicHelp": false,
|
|
216
216
|
"hiddenAliases": [],
|
|
217
|
-
"id": "
|
|
217
|
+
"id": "edit",
|
|
218
218
|
"pluginAlias": "@mailmodo/cli",
|
|
219
219
|
"pluginName": "@mailmodo/cli",
|
|
220
220
|
"pluginType": "core",
|
|
@@ -224,23 +224,18 @@
|
|
|
224
224
|
"relativePath": [
|
|
225
225
|
"dist",
|
|
226
226
|
"commands",
|
|
227
|
-
"
|
|
227
|
+
"edit",
|
|
228
228
|
"index.js"
|
|
229
229
|
]
|
|
230
230
|
},
|
|
231
|
-
"
|
|
231
|
+
"domain": {
|
|
232
232
|
"aliases": [],
|
|
233
|
-
"args": {
|
|
234
|
-
|
|
235
|
-
"description": "Email template ID to edit",
|
|
236
|
-
"name": "id",
|
|
237
|
-
"required": true
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"description": "Edit an email using AI-assisted natural language changes",
|
|
233
|
+
"args": {},
|
|
234
|
+
"description": "Set up and verify your sending domain",
|
|
241
235
|
"examples": [
|
|
242
|
-
"<%= config.bin %>
|
|
243
|
-
"<%= config.bin %>
|
|
236
|
+
"<%= config.bin %> domain",
|
|
237
|
+
"<%= config.bin %> domain --verify",
|
|
238
|
+
"<%= config.bin %> domain --status"
|
|
244
239
|
],
|
|
245
240
|
"flags": {
|
|
246
241
|
"json": {
|
|
@@ -256,17 +251,22 @@
|
|
|
256
251
|
"allowNo": false,
|
|
257
252
|
"type": "boolean"
|
|
258
253
|
},
|
|
259
|
-
"
|
|
260
|
-
"description": "
|
|
261
|
-
"name": "
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
|
|
254
|
+
"status": {
|
|
255
|
+
"description": "Show domain health status",
|
|
256
|
+
"name": "status",
|
|
257
|
+
"allowNo": false,
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
"verify": {
|
|
261
|
+
"description": "Verify DNS records",
|
|
262
|
+
"name": "verify",
|
|
263
|
+
"allowNo": false,
|
|
264
|
+
"type": "boolean"
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
"hasDynamicHelp": false,
|
|
268
268
|
"hiddenAliases": [],
|
|
269
|
-
"id": "
|
|
269
|
+
"id": "domain",
|
|
270
270
|
"pluginAlias": "@mailmodo/cli",
|
|
271
271
|
"pluginName": "@mailmodo/cli",
|
|
272
272
|
"pluginType": "core",
|
|
@@ -276,17 +276,17 @@
|
|
|
276
276
|
"relativePath": [
|
|
277
277
|
"dist",
|
|
278
278
|
"commands",
|
|
279
|
-
"
|
|
279
|
+
"domain",
|
|
280
280
|
"index.js"
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
|
-
"
|
|
283
|
+
"init": {
|
|
284
284
|
"aliases": [],
|
|
285
285
|
"args": {},
|
|
286
|
-
"description": "
|
|
286
|
+
"description": "Analyze your product and generate email sequences",
|
|
287
287
|
"examples": [
|
|
288
|
-
"<%= config.bin %>
|
|
289
|
-
"<%= config.bin %>
|
|
288
|
+
"<%= config.bin %> init",
|
|
289
|
+
"<%= config.bin %> init --url https://myapp.com --yes"
|
|
290
290
|
],
|
|
291
291
|
"flags": {
|
|
292
292
|
"json": {
|
|
@@ -301,11 +301,18 @@
|
|
|
301
301
|
"name": "yes",
|
|
302
302
|
"allowNo": false,
|
|
303
303
|
"type": "boolean"
|
|
304
|
+
},
|
|
305
|
+
"url": {
|
|
306
|
+
"description": "Product URL to analyze",
|
|
307
|
+
"name": "url",
|
|
308
|
+
"hasDynamicHelp": false,
|
|
309
|
+
"multiple": false,
|
|
310
|
+
"type": "option"
|
|
304
311
|
}
|
|
305
312
|
},
|
|
306
313
|
"hasDynamicHelp": false,
|
|
307
314
|
"hiddenAliases": [],
|
|
308
|
-
"id": "
|
|
315
|
+
"id": "init",
|
|
309
316
|
"pluginAlias": "@mailmodo/cli",
|
|
310
317
|
"pluginName": "@mailmodo/cli",
|
|
311
318
|
"pluginType": "core",
|
|
@@ -315,17 +322,17 @@
|
|
|
315
322
|
"relativePath": [
|
|
316
323
|
"dist",
|
|
317
324
|
"commands",
|
|
318
|
-
"
|
|
325
|
+
"init",
|
|
319
326
|
"index.js"
|
|
320
327
|
]
|
|
321
328
|
},
|
|
322
|
-
"
|
|
329
|
+
"emails": {
|
|
323
330
|
"aliases": [],
|
|
324
331
|
"args": {},
|
|
325
|
-
"description": "
|
|
332
|
+
"description": "List and view configured email sequences",
|
|
326
333
|
"examples": [
|
|
327
|
-
"<%= config.bin %>
|
|
328
|
-
"<%= config.bin %>
|
|
334
|
+
"<%= config.bin %> emails",
|
|
335
|
+
"<%= config.bin %> emails --json"
|
|
329
336
|
],
|
|
330
337
|
"flags": {
|
|
331
338
|
"json": {
|
|
@@ -340,18 +347,11 @@
|
|
|
340
347
|
"name": "yes",
|
|
341
348
|
"allowNo": false,
|
|
342
349
|
"type": "boolean"
|
|
343
|
-
},
|
|
344
|
-
"url": {
|
|
345
|
-
"description": "Product URL to analyze",
|
|
346
|
-
"name": "url",
|
|
347
|
-
"hasDynamicHelp": false,
|
|
348
|
-
"multiple": false,
|
|
349
|
-
"type": "option"
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
352
|
"hasDynamicHelp": false,
|
|
353
353
|
"hiddenAliases": [],
|
|
354
|
-
"id": "
|
|
354
|
+
"id": "emails",
|
|
355
355
|
"pluginAlias": "@mailmodo/cli",
|
|
356
356
|
"pluginName": "@mailmodo/cli",
|
|
357
357
|
"pluginType": "core",
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
"relativePath": [
|
|
362
362
|
"dist",
|
|
363
363
|
"commands",
|
|
364
|
-
"
|
|
364
|
+
"emails",
|
|
365
365
|
"index.js"
|
|
366
366
|
]
|
|
367
367
|
},
|
|
@@ -657,5 +657,5 @@
|
|
|
657
657
|
]
|
|
658
658
|
}
|
|
659
659
|
},
|
|
660
|
-
"version": "0.0.31-beta.pr33.
|
|
660
|
+
"version": "0.0.31-beta.pr33.56"
|
|
661
661
|
}
|
package/package.json
CHANGED