@celonis/content-cli 0.4.3 → 0.4.4
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/package.json
CHANGED
|
@@ -28,7 +28,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
28
|
const requestFileContent = file_service_1.fileService.readFile(requestFilePath);
|
|
29
29
|
const importReport = yield data_pool_api_1.dataPoolApi.executeDataPoolsBatchImport(requestFileContent);
|
|
30
30
|
const importReportString = JSON.stringify(importReport, null, 4);
|
|
31
|
-
logger_1.logger.info("Data Pools batch import succeeded!");
|
|
32
31
|
if (outputToJsonFile) {
|
|
33
32
|
const reportFileName = "batch_import_report_" + uuid_1.v4() + ".json";
|
|
34
33
|
file_service_1.fileService.writeToFileWithGivenName(importReportString, reportFileName);
|
|
@@ -43,11 +42,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
43
|
const exportedDataPool = yield data_pool_api_1.dataPoolApi.exportDataPool(poolId);
|
|
45
44
|
const exportedDataPoolString = JSON.stringify(exportedDataPool, null, 4);
|
|
46
|
-
logger_1.logger.info("Data Pools export succeeded!");
|
|
47
45
|
if (outputToJsonFile) {
|
|
48
|
-
const reportFileName = "data_pool_" + poolId + ".json";
|
|
46
|
+
const reportFileName = uuid_1.v4() + "data_pool_" + poolId + ".json";
|
|
49
47
|
file_service_1.fileService.writeToFileWithGivenName(exportedDataPoolString, reportFileName);
|
|
50
|
-
logger_1.logger.info(
|
|
48
|
+
logger_1.logger.info(file_service_1.FileService.fileDownloadedMessage + reportFileName);
|
|
51
49
|
}
|
|
52
50
|
else {
|
|
53
51
|
logger_1.logger.info("Exported Data Pool: \n" + exportedDataPoolString);
|