@mailmodo/cli 0.0.41-beta.pr43.68 → 0.0.41-beta.pr44.69
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.
|
@@ -113,7 +113,7 @@ export default class Contacts extends BaseCommand {
|
|
|
113
113
|
this.log(`\n Export status: ${status ?? 'unknown'}. No download URL yet.\n`);
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
const fileResult = await this.apiClient.getPublicFile(downloadUrl.trim());
|
|
116
|
+
const fileResult = await this.withApiSpinner({ json: jsonOutput, text: ' Downloading CSV file...' }, () => this.apiClient.getPublicFile(downloadUrl.trim()));
|
|
117
117
|
if (!fileResult.ok) {
|
|
118
118
|
this.error(`Download failed: ${fileResult.status} ${fileResult.error ?? ''}\n` +
|
|
119
119
|
` URL: ${fileResult.debug.fullUrl}`);
|
|
@@ -51,16 +51,6 @@ export default class Domain extends BaseCommand {
|
|
|
51
51
|
*/
|
|
52
52
|
async setupDomain(flags) {
|
|
53
53
|
const yamlConfig = await this.ensureYaml();
|
|
54
|
-
const existingDomain = yamlConfig.project?.domain;
|
|
55
|
-
if (existingDomain) {
|
|
56
|
-
if (flags.json) {
|
|
57
|
-
this.log(JSON.stringify({ domain: existingDomain, status: 'pending_verification' }, null, 2));
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
this.log(`\n Domain already configured: ${chalk.cyan(existingDomain)}`);
|
|
61
|
-
this.log(` ${INFO.DOMAIN_PENDING_VERIFICATION}\n`);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
54
|
this.log(`\n ${SEPARATOR}`);
|
|
65
55
|
this.log(` ${chalk.bold('DOMAIN SETUP')}`);
|
|
66
56
|
this.log(` ${SEPARATOR}\n`);
|
|
@@ -261,7 +261,7 @@ export default class Settings extends BaseCommand {
|
|
|
261
261
|
const mimeType = mimeTypes[ext ?? ''] ?? 'application/octet-stream';
|
|
262
262
|
const formData = new FormData();
|
|
263
263
|
formData.append('logo', new Blob([new Uint8Array(fileBuffer)], { type: mimeType }), logoPath.split(/[/\\]/).pop() || 'logo.png');
|
|
264
|
-
const response = await this.apiClient.postFormData(API_ENDPOINTS.ASSETS_LOGO, formData);
|
|
264
|
+
const response = await this.withApiSpinner({ json: false, text: ' Uploading logo file...' }, () => this.apiClient.postFormData(API_ENDPOINTS.ASSETS_LOGO, formData));
|
|
265
265
|
if (!response.ok) {
|
|
266
266
|
this.handleApiError(response);
|
|
267
267
|
}
|
package/dist/lib/messages.d.ts
CHANGED
|
@@ -31,7 +31,6 @@ export declare const INFO: {
|
|
|
31
31
|
readonly DNS_RECORDS_FAILED: string;
|
|
32
32
|
readonly DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${string}
|
|
33
33
|
Then: ${string}`;
|
|
34
|
-
readonly DOMAIN_PENDING_VERIFICATION: `Domain is not verified yet. Run ${string} to check the status.`;
|
|
35
34
|
readonly SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${string}.`;
|
|
36
35
|
};
|
|
37
36
|
export declare function recordLabel(index: number): string;
|
package/dist/lib/messages.js
CHANGED
|
@@ -31,7 +31,6 @@ export const INFO = {
|
|
|
31
31
|
DNS_PROPAGATION: 'DNS changes take 5–30 minutes to propagate.',
|
|
32
32
|
DNS_RECORDS_FAILED: chalk.yellow('Some records failed.'),
|
|
33
33
|
DOMAIN_NOT_DEPLOYED_HINT: `When ready, run: ${chalk.cyan('mailmodo domain')}\n Then: ${chalk.cyan('mailmodo deploy')}`,
|
|
34
|
-
DOMAIN_PENDING_VERIFICATION: `Domain is not verified yet. Run ${chalk.cyan('mailmodo domain --verify')} to check the status.`,
|
|
35
34
|
SEQUENCES_NOT_DEPLOYED: `Sequences saved but ${chalk.yellow('NOT deployed')}.`,
|
|
36
35
|
};
|
|
37
36
|
export function recordLabel(index) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED