From 17cfdc3f438640d29b790deb035871bc95c1f050 Mon Sep 17 00:00:00 2001 From: jetmirhalili11 Date: Thu, 11 Jul 2024 10:01:26 +0200 Subject: [PATCH] chore: rename info/error messages [EMA-4088] --- src/api/action-flow-api.ts | 6 +++--- src/content-cli-analyze.ts | 6 +++--- src/content-cli-export.ts | 6 +++--- src/content-cli-import.ts | 8 ++++---- src/services/action-flow/action-flow-service.ts | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/api/action-flow-api.ts b/src/api/action-flow-api.ts index 63a99de..ad60200 100644 --- a/src/api/action-flow-api.ts +++ b/src/api/action-flow-api.ts @@ -7,13 +7,13 @@ class ActionFlowApi { public async exportRawAssets(packageId: string): Promise { return httpClientV2.getFile(`/ems-automation/api/root/${packageId}/export/assets`).catch(e => { - throw new FatalError(`Problem getting action-flow assets: ${e}`); + throw new FatalError(`Problem getting Action Flow assets: ${e}`); }); } public async analyzeAssets(packageId: string): Promise { return httpClientV2.get(`/ems-automation/api/root/${packageId}/export/assets/analyze`).catch(e => { - throw new FatalError(`Problem analyzing action-flow assets: ${e}`); + throw new FatalError(`Problem analyzing Action Flow assets: ${e}`); }); } @@ -23,7 +23,7 @@ class ActionFlowApi { }; return httpClientV2.postFile(`/ems-automation/api/root/${packageId}/import/assets`, data, params).catch(e => { - throw new FatalError(`Problem importing action-flow assets: ${e}`); + throw new FatalError(`Problem importing Action Flow assets: ${e}`); }); } } diff --git a/src/content-cli-analyze.ts b/src/content-cli-analyze.ts index 83f2f80..7873588 100644 --- a/src/content-cli-analyze.ts +++ b/src/content-cli-analyze.ts @@ -9,9 +9,9 @@ class Analyze { public static actionFlows(program: CommanderStatic): CommanderStatic { program .command("action-flows") - .description("Analyze action-flows dependencies for a certain package") - .option("-p, --profile ", "Profile which you want to use to analyze action-flows") - .requiredOption("-i, --packageId ", "ID of the package from which you want to export action-flows") + .description("Analyze Action Flows dependencies for a certain package") + .option("-p, --profile ", "Profile which you want to use to analyze Action Flows") + .requiredOption("-i, --packageId ", "ID of the package from which you want to export Action Flows") .option("-o, --outputToJsonFile", "Output the analyze result in a JSON file") .action(async cmd => { await new ActionFlowCommand().analyzeActionFlows(cmd.packageId, cmd.outputToJsonFile); diff --git a/src/content-cli-export.ts b/src/content-cli-export.ts index bccc607..34b00ef 100644 --- a/src/content-cli-export.ts +++ b/src/content-cli-export.ts @@ -41,9 +41,9 @@ export class Export { public static actionFlows(program: CommanderStatic): CommanderStatic { program .command("action-flows") - .description("Command to export all action-flows in a package with their objects and dependencies") - .option("-p, --profile ", "Profile which you want to use to export action-flows") - .requiredOption("-i, --packageId ", "ID of the package from which you want to export action-flows") + .description("Command to export all Action Flows in a package with their objects and dependencies") + .option("-p, --profile ", "Profile which you want to use to export Action Flows") + .requiredOption("-i, --packageId ", "ID of the package from which you want to export Action Flows") .option("-f, --file ", "Action flows metadata file (relative path)") .action(async cmd => { await new ActionFlowCommand().exportActionFlows(cmd.packageId, cmd.file); diff --git a/src/content-cli-import.ts b/src/content-cli-import.ts index d1b7f17..76e84a5 100644 --- a/src/content-cli-import.ts +++ b/src/content-cli-import.ts @@ -46,10 +46,10 @@ export class Import { public static actionFlows(program: CommanderStatic): CommanderStatic { program .command("action-flows") - .description("Command to import all action-flows in a package with their objects and dependencies") - .option("-p, --profile ", "Profile which you want to use to import action-flows") - .requiredOption("-i, --packageId ", "ID of the package to which you want to export action-flows") - .requiredOption("-f, --file ", "Exported action-flows file (relative path)") + .description("Command to import all Action Flows in a package with their objects and dependencies") + .option("-p, --profile ", "Profile which you want to use to import Action Flows") + .requiredOption("-i, --packageId ", "ID of the package to which you want to export Action Flows") + .requiredOption("-f, --file ", "Exported Action Flows file (relative path)") .requiredOption("-d, --dryRun", "Execute the import on dry run mode") .option("-o, --outputToJsonFile", "Output the import result in a JSON file") .action(async cmd => { diff --git a/src/services/action-flow/action-flow-service.ts b/src/services/action-flow/action-flow-service.ts index 7f8d1e3..5abbaa5 100644 --- a/src/services/action-flow/action-flow-service.ts +++ b/src/services/action-flow/action-flow-service.ts @@ -20,7 +20,7 @@ class ActionFlowService { this.attachMetadataFile(metadataFilePath, zip); } - const fileName = "export_action-flows_" + uuidv4() + ".zip"; + const fileName = "action-flows_export_" + uuidv4() + ".zip"; zip.writeZip(fileName); logger.info(FileService.fileDownloadedMessage + fileName); }