@celonis/content-cli 0.13.5 → 1.0.0
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/README.md +13 -6
- package/{api → commands/action-flows/action-flow}/action-flow-api.js +10 -9
- package/commands/{action-flow.command.js → action-flows/action-flow/action-flow-command.service.js} +11 -8
- package/{services/action-flow/action-flow-service.js → commands/action-flows/action-flow/action-flow.service.js} +12 -10
- package/commands/action-flows/module.js +88 -0
- package/commands/{skill.command.js → action-flows/skill/skill-command.service.js} +9 -11
- package/{content/factory/skill-manager.factory.js → commands/action-flows/skill/skill.manager-factory.js} +7 -4
- package/{content/manager → commands/action-flows/skill}/skill.manager.js +7 -4
- package/commands/analysis/analysis-bookmarks-command.service.js +39 -0
- package/{content/factory/analysis-bookmarks-manager.factory.js → commands/analysis/analysis-bookmarks.manager-factory.js} +7 -4
- package/{content/manager → commands/analysis}/analysis-bookmarks.manager.js +8 -5
- package/commands/analysis/module.js +52 -0
- package/commands/configuration-management/api/batch-import-export-api.js +84 -0
- package/{api → commands/configuration-management/api}/diff-api.js +8 -7
- package/commands/configuration-management/api/variable-assignment-candidates-api.js +41 -0
- package/{services/package-manager/batch-import-export-service.js → commands/configuration-management/batch-import-export.service.js} +31 -26
- package/commands/{config.command.js → configuration-management/config-command.service.js} +21 -16
- package/{services/package-manager/diff-service.js → commands/configuration-management/diff.service.js} +11 -8
- package/commands/configuration-management/module.js +102 -0
- package/{services/studio → commands/configuration-management}/studio.service.js +33 -24
- package/commands/{variable.command.js → configuration-management/variable-command.service.js} +10 -7
- package/{services/package-manager/variable-service.js → commands/configuration-management/variable.service.js} +36 -42
- package/commands/{ctp.command.js → cpm4/ctp-command.service.js} +11 -13
- package/{content/manager → commands/cpm4}/ctp.analysis.manager.js +3 -0
- package/{content/manager → commands/cpm4}/ctp.datamodel.manager.js +2 -2
- package/{content/factory/ctp-manager.factory.js → commands/cpm4/ctp.manager-factory.js} +9 -6
- package/{content/manager → commands/cpm4}/ctp.manager.js +6 -4
- package/commands/cpm4/module.js +46 -0
- package/commands/{connection.command.js → data-pipeline/connection/connection-command.service.js} +14 -11
- package/commands/data-pipeline/connection/connection.commands.js +65 -0
- package/{services → commands/data-pipeline}/connection/connection.service.js +18 -15
- package/{api → commands/data-pipeline/data-pool}/data-pool-api.js +14 -13
- package/commands/{data-pool.command.js → data-pipeline/data-pool/data-pool-command.service.js} +25 -23
- package/{content/factory → commands/data-pipeline/data-pool}/data-pool-manager.factory.js +9 -6
- package/{services → commands/data-pipeline}/data-pool/data-pool-service.js +13 -10
- package/commands/data-pipeline/data-pool/data-pool.commands.js +99 -0
- package/{content/manager → commands/data-pipeline/data-pool}/data-pool.manager.js +8 -9
- package/commands/data-pipeline/module.js +24 -0
- package/commands/profile/module.js +60 -0
- package/commands/profile/profile-command.service.js +94 -0
- package/{api → commands/studio/api}/asset-api.js +8 -7
- package/{api → commands/studio/api}/compute-pool-api.js +7 -6
- package/{api → commands/studio/api}/node-api.js +9 -8
- package/{api → commands/studio/api}/package-api.js +18 -17
- package/{api → commands/studio/api}/package-dependencies-api.js +12 -11
- package/{api → commands/studio/api}/space-api.js +10 -9
- package/commands/{analysis-bookmarks.command.js → studio/api/studio-variables-api.js} +18 -13
- package/commands/{asset.command.js → studio/command-service/asset-command.service.js} +21 -19
- package/commands/{package.command.js → studio/command-service/package-command.service.js} +22 -20
- package/commands/{space.command.js → studio/command-service/space-command.service.js} +9 -11
- package/commands/studio/command-service/widget.command.js +56 -0
- package/{content/factory/asset-manager.factory.js → commands/studio/manager/asset.manager-factory.js} +7 -4
- package/{content → commands/studio}/manager/asset.manager.js +8 -5
- package/{content/factory/package-manager.factory.js → commands/studio/manager/package.manager-factory.js} +7 -4
- package/{content → commands/studio}/manager/package.manager.js +9 -6
- package/{content/factory/space-manager.factory.js → commands/studio/manager/space.manager-factory.js} +6 -3
- package/{content → commands/studio}/manager/space.manager.js +7 -4
- package/{content/factory/widget-manager.factory.js → commands/studio/manager/widget.manager-factory.js} +8 -5
- package/{content → commands/studio}/manager/widget.manager.js +5 -5
- package/commands/studio/module.js +169 -0
- package/{services/package-manager → commands/studio/service}/asset-service.js +10 -9
- package/{services/package-manager/datamodel-service.js → commands/studio/service/data-model.service.js} +8 -6
- package/{services/package-manager/package-service.js → commands/studio/service/package.service.js} +59 -49
- package/{services/package-manager/space-service.js → commands/studio/service/space.service.js} +9 -9
- package/commands/studio/service/studio-variable.service.js +41 -0
- package/content-cli.js +69 -20
- package/core/command/cli-context.js +69 -0
- package/core/command/module-handler.js +200 -0
- package/core/http/base-api.js +115 -0
- package/{services/http-client-service.v2.js → core/http/http-client.js} +39 -24
- package/{services/context.service.js → core/http/http-shared/base.manager.helper.js} +6 -16
- package/{content/manager → core/http/http-shared}/base.manager.js +14 -21
- package/{services → core/profile}/profile.service.js +11 -5
- package/{validators → core/profile}/profile.validator.js +3 -3
- package/{services → core/utils}/file-service.js +2 -7
- package/core/utils/logger.js +102 -0
- package/{services → core/utils}/question.service.js +18 -7
- package/{util → core/utils}/version.js +1 -1
- package/lib/{api → commands/action-flows/action-flow}/action-flow-api.d.ts +4 -4
- package/lib/commands/{action-flow.command.d.ts → action-flows/action-flow/action-flow-command.service.d.ts} +4 -1
- package/lib/{services/action-flow/action-flow-service.d.ts → commands/action-flows/action-flow/action-flow.service.d.ts} +4 -4
- package/lib/commands/action-flows/module.d.ts +14 -0
- package/lib/commands/{skill.command.d.ts → action-flows/skill/skill-command.service.d.ts} +3 -2
- package/lib/commands/action-flows/skill/skill.manager-factory.d.ts +8 -0
- package/lib/{content/manager → commands/action-flows/skill}/skill.manager.d.ts +4 -2
- package/lib/commands/analysis/analysis-bookmarks-command.service.d.ts +7 -0
- package/lib/commands/analysis/analysis-bookmarks.manager-factory.d.ts +8 -0
- package/lib/{content/manager → commands/analysis}/analysis-bookmarks.manager.d.ts +4 -2
- package/lib/commands/analysis/module.d.ts +11 -0
- package/lib/{api → commands/configuration-management/api}/batch-import-export-api.d.ts +5 -5
- package/lib/{api → commands/configuration-management/api}/diff-api.d.ts +5 -5
- package/lib/commands/configuration-management/api/variable-assignment-candidates-api.d.ts +8 -0
- package/lib/{services/package-manager/batch-import-export-service.d.ts → commands/configuration-management/batch-import-export.service.d.ts} +6 -3
- package/lib/commands/{config.command.d.ts → configuration-management/config-command.service.d.ts} +6 -1
- package/lib/{services/package-manager/diff-service.d.ts → commands/configuration-management/diff.service.d.ts} +4 -3
- package/lib/{interfaces/package-export-transport.d.ts → commands/configuration-management/interfaces/package-export.interfaces.d.ts} +2 -2
- package/lib/{api/variable-assignment-apis.d.ts → commands/configuration-management/interfaces/variable-assignment-apis.constants.d.ts} +3 -1
- package/lib/commands/configuration-management/module.d.ts +15 -0
- package/lib/{services/studio → commands/configuration-management}/studio.service.d.ts +12 -5
- package/lib/commands/configuration-management/variable-command.service.d.ts +6 -0
- package/lib/{services/package-manager/variable-service.d.ts → commands/configuration-management/variable.service.d.ts} +8 -8
- package/lib/commands/cpm4/ctp-command.service.d.ts +7 -0
- package/lib/{content/manager → commands/cpm4}/ctp.analysis.manager.d.ts +2 -0
- package/lib/{content/manager → commands/cpm4}/ctp.datamodel.manager.d.ts +2 -1
- package/lib/{content/factory/ctp-manager.factory.d.ts → commands/cpm4/ctp.manager-factory.d.ts} +4 -1
- package/lib/{content/manager → commands/cpm4}/ctp.manager.d.ts +4 -2
- package/lib/commands/cpm4/module.d.ts +10 -0
- package/lib/commands/data-pipeline/connection/connection-command.service.d.ts +8 -0
- package/lib/commands/data-pipeline/connection/connection.commands.d.ts +11 -0
- package/lib/{services → commands/data-pipeline}/connection/connection.service.d.ts +4 -3
- package/lib/{api → commands/data-pipeline/data-pool}/data-pool-api.d.ts +5 -5
- package/lib/commands/data-pipeline/data-pool/data-pool-command.service.d.ts +14 -0
- package/lib/commands/data-pipeline/data-pool/data-pool-manager.factory.d.ts +9 -0
- package/lib/{services → commands/data-pipeline}/data-pool/data-pool-service.d.ts +4 -3
- package/lib/commands/data-pipeline/data-pool/data-pool.commands.d.ts +15 -0
- package/lib/{content/manager → commands/data-pipeline/data-pool}/data-pool.manager.d.ts +4 -2
- package/lib/commands/data-pipeline/module.d.ts +9 -0
- package/lib/commands/profile/module.d.ts +12 -0
- package/lib/commands/{profile.command.d.ts → profile/profile-command.service.d.ts} +1 -1
- package/lib/{api → commands/studio/api}/asset-api.d.ts +4 -4
- package/lib/{api → commands/studio/api}/compute-pool-api.d.ts +4 -4
- package/lib/{api → commands/studio/api}/node-api.d.ts +4 -4
- package/lib/{api → commands/studio/api}/package-api.d.ts +4 -4
- package/lib/{api → commands/studio/api}/package-dependencies-api.d.ts +4 -4
- package/lib/commands/studio/api/space-api.d.ts +9 -0
- package/lib/commands/studio/api/studio-variables-api.d.ts +8 -0
- package/lib/commands/studio/command-service/asset-command.service.d.ts +11 -0
- package/lib/commands/{package.command.d.ts → studio/command-service/package-command.service.d.ts} +8 -5
- package/lib/commands/studio/command-service/space-command.service.d.ts +6 -0
- package/lib/commands/studio/command-service/widget.command.d.ts +7 -0
- package/lib/{interfaces/batch-export-node-transport.d.ts → commands/studio/interfaces/batch-export-node.interfaces.d.ts} +1 -9
- package/lib/{content/factory/asset-manager.factory.d.ts → commands/studio/manager/asset.manager-factory.d.ts} +4 -1
- package/lib/{content → commands/studio}/manager/asset.manager.d.ts +4 -2
- package/lib/{content/factory/package-manager.factory.d.ts → commands/studio/manager/package.manager-factory.d.ts} +4 -1
- package/lib/{content → commands/studio}/manager/package.manager.d.ts +4 -2
- package/lib/commands/studio/manager/space.manager-factory.d.ts +8 -0
- package/lib/{content → commands/studio}/manager/space.manager.d.ts +4 -2
- package/lib/{content/factory/widget-manager.factory.d.ts → commands/studio/manager/widget.manager-factory.d.ts} +10 -7
- package/lib/{content → commands/studio}/manager/widget.manager.d.ts +4 -2
- package/lib/commands/studio/module.d.ts +21 -0
- package/lib/{services/package-manager → commands/studio/service}/asset-service.d.ts +4 -3
- package/lib/{services/package-manager/datamodel-service.d.ts → commands/studio/service/data-model.service.d.ts} +5 -5
- package/lib/{services/package-manager/package-service.d.ts → commands/studio/service/package.service.d.ts} +13 -6
- package/lib/commands/studio/service/space.service.d.ts +11 -0
- package/lib/commands/studio/service/studio-variable.service.d.ts +9 -0
- package/lib/core/command/cli-context.d.ts +17 -0
- package/lib/core/command/module-handler.d.ts +57 -0
- package/lib/core/http/base-api.d.ts +32 -0
- package/lib/{services/http-client-service.v2.d.ts → core/http/http-client.d.ts} +8 -3
- package/lib/{content/manager → core/http/http-shared}/base.manager.d.ts +4 -6
- package/lib/core/http/http-shared/base.manager.helper.d.ts +4 -0
- package/lib/{services → core/profile}/profile.service.d.ts +2 -1
- package/lib/{validators → core/profile}/profile.validator.d.ts +1 -1
- package/lib/{services → core/utils}/file-service.d.ts +0 -2
- package/lib/core/utils/question.service.d.ts +10 -0
- package/package.json +3 -3
- package/api/batch-import-export-api.js +0 -62
- package/api/variables-api.js +0 -56
- package/commands/profile.command.js +0 -88
- package/commands/widget.command.js +0 -36
- package/content-cli-analyze.js +0 -56
- package/content-cli-config.js +0 -119
- package/content-cli-export.js +0 -90
- package/content-cli-get.js +0 -52
- package/content-cli-import.js +0 -93
- package/content-cli-list.js +0 -129
- package/content-cli-profile.js +0 -64
- package/content-cli-pull.js +0 -104
- package/content-cli-push.js +0 -196
- package/content-cli-set.js +0 -55
- package/content-cli-update.js +0 -44
- package/interfaces/variable-assignment-api.interface.js +0 -12
- package/lib/api/space-api.d.ts +0 -9
- package/lib/api/variables-api.d.ts +0 -14
- package/lib/commands/analysis-bookmarks.command.d.ts +0 -6
- package/lib/commands/asset.command.d.ts +0 -8
- package/lib/commands/connection.command.d.ts +0 -5
- package/lib/commands/ctp.command.d.ts +0 -6
- package/lib/commands/data-pool.command.d.ts +0 -11
- package/lib/commands/space.command.d.ts +0 -5
- package/lib/commands/variable.command.d.ts +0 -3
- package/lib/commands/widget.command.d.ts +0 -5
- package/lib/content/factory/analysis-bookmarks-manager.factory.d.ts +0 -5
- package/lib/content/factory/data-pool-manager.factory.d.ts +0 -6
- package/lib/content/factory/skill-manager.factory.d.ts +0 -5
- package/lib/content/factory/space-manager.factory.d.ts +0 -5
- package/lib/content-cli-analyze.d.ts +0 -1
- package/lib/content-cli-config.d.ts +0 -8
- package/lib/content-cli-export.d.ts +0 -6
- package/lib/content-cli-get.d.ts +0 -1
- package/lib/content-cli-import.d.ts +0 -6
- package/lib/content-cli-list.d.ts +0 -9
- package/lib/content-cli-profile.d.ts +0 -1
- package/lib/content-cli-pull.d.ts +0 -1
- package/lib/content-cli-push.d.ts +0 -1
- package/lib/content-cli-set.d.ts +0 -1
- package/lib/content-cli-update.d.ts +0 -1
- package/lib/interfaces/variable-assignment-api.interface.d.ts +0 -3
- package/lib/services/command.service.d.ts +0 -6
- package/lib/services/content.service.d.ts +0 -11
- package/lib/services/context.service.d.ts +0 -13
- package/lib/services/http-client.service.d.ts +0 -15
- package/lib/services/package-manager/space-service.d.ts +0 -11
- package/lib/services/question.service.d.ts +0 -4
- package/lib/util/context-initializer.d.ts +0 -3
- package/lib/util/program.d.ts +0 -2
- package/services/command.service.js +0 -24
- package/services/content.service.js +0 -130
- package/services/http-client.service.js +0 -157
- package/util/context-initializer.js +0 -39
- package/util/logger.js +0 -49
- package/util/program.js +0 -16
- /package/{interfaces/batch-export-import-constants.js → commands/configuration-management/interfaces/batch-export-import.constants.js} +0 -0
- /package/{interfaces/diff-package.transport.js → commands/configuration-management/interfaces/diff-package.interfaces.js} +0 -0
- /package/{interfaces/batch-export-node-transport.js → commands/configuration-management/interfaces/package-export.interfaces.js} +0 -0
- /package/{api/variable-assignment-apis.js → commands/configuration-management/interfaces/variable-assignment-apis.constants.js} +0 -0
- /package/{interfaces → commands/data-pipeline/data-pool}/data-pool-manager.interfaces.js +0 -0
- /package/{interfaces/manager-config.interface.js → commands/studio/interfaces/batch-export-node.interfaces.js} +0 -0
- /package/{interfaces/manifest-transport.js → commands/studio/interfaces/manifest.interface.js} +0 -0
- /package/{interfaces → commands/studio/interfaces}/package-manager.interfaces.js +0 -0
- /package/{interfaces → commands/studio/interfaces}/save-content-node.interface.js +0 -0
- /package/{interfaces/package-export-transport.js → commands/studio/interfaces/space.interface.js} +0 -0
- /package/{util → commands/studio/utils}/semantic-versioning.js +0 -0
- /package/{util → core/http}/axios-initializer.js +0 -0
- /package/{interfaces/save-space.interface.js → core/http/http-shared/manager-config.interface.js} +0 -0
- /package/{util → core/http}/tracing.js +0 -0
- /package/{interfaces → core/profile}/profile.interface.js +0 -0
- /package/{util → core/utils}/json.js +0 -0
- /package/{util → core/utils}/yaml.js +0 -0
- /package/lib/{interfaces/batch-export-import-constants.d.ts → commands/configuration-management/interfaces/batch-export-import.constants.d.ts} +0 -0
- /package/lib/{interfaces/diff-package.transport.d.ts → commands/configuration-management/interfaces/diff-package.interfaces.d.ts} +0 -0
- /package/lib/{interfaces → commands/data-pipeline/data-pool}/data-pool-manager.interfaces.d.ts +0 -0
- /package/lib/{interfaces/manifest-transport.d.ts → commands/studio/interfaces/manifest.interface.d.ts} +0 -0
- /package/lib/{interfaces → commands/studio/interfaces}/package-manager.interfaces.d.ts +0 -0
- /package/lib/{interfaces → commands/studio/interfaces}/save-content-node.interface.d.ts +0 -0
- /package/lib/{interfaces/save-space.interface.d.ts → commands/studio/interfaces/space.interface.d.ts} +0 -0
- /package/lib/{util → commands/studio/utils}/semantic-versioning.d.ts +0 -0
- /package/lib/{util → core/http}/axios-initializer.d.ts +0 -0
- /package/lib/{interfaces → core/http/http-shared}/manager-config.interface.d.ts +0 -0
- /package/lib/{util → core/http}/tracing.d.ts +0 -0
- /package/lib/{interfaces → core/profile}/profile.interface.d.ts +0 -0
- /package/lib/{util → core/utils}/json.d.ts +0 -0
- /package/lib/{util → core/utils}/logger.d.ts +0 -0
- /package/lib/{util → core/utils}/version.d.ts +0 -0
- /package/lib/{util → core/utils}/yaml.d.ts +0 -0
package/content-cli-set.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
(function (factory) {
|
|
11
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
12
|
-
var v = factory(require, exports);
|
|
13
|
-
if (v !== undefined) module.exports = v;
|
|
14
|
-
}
|
|
15
|
-
else if (typeof define === "function" && define.amd) {
|
|
16
|
-
define(["require", "exports", "./commands/connection.command", "./util/context-initializer", "./util/logger", "./util/program"], factory);
|
|
17
|
-
}
|
|
18
|
-
})(function (require, exports) {
|
|
19
|
-
"use strict";
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
const connection_command_1 = require("./commands/connection.command");
|
|
22
|
-
const context_initializer_1 = require("./util/context-initializer");
|
|
23
|
-
const logger_1 = require("./util/logger");
|
|
24
|
-
const program_1 = require("./util/program");
|
|
25
|
-
class Set {
|
|
26
|
-
static connection(program) {
|
|
27
|
-
program
|
|
28
|
-
.command("connection")
|
|
29
|
-
.description("Programmatically update properties of your connections")
|
|
30
|
-
.option("-p, --profile <profile>", "Profile which you want to use to update the data pool configuration")
|
|
31
|
-
.requiredOption("--dataPoolId <dataPoolId>", "Id of the data pool you want to update")
|
|
32
|
-
.requiredOption("--connectionId <connectionId>", "Id of the connection you want to update")
|
|
33
|
-
.requiredOption("--property <property>", "The property you want to update")
|
|
34
|
-
.requiredOption("--value <value>", "The value you want to update")
|
|
35
|
-
.action((cmd) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield new connection_command_1.ConnectionCommand().updateProperty(cmd.profile, cmd.dataPoolId, cmd.connectionId, cmd.property, cmd.value);
|
|
37
|
-
process.exit();
|
|
38
|
-
}));
|
|
39
|
-
return program;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const loadAllCommands = () => {
|
|
43
|
-
Set.connection(program_1.program);
|
|
44
|
-
program_1.program.parse(process.argv);
|
|
45
|
-
};
|
|
46
|
-
context_initializer_1.ContextInitializer.initContext()
|
|
47
|
-
.then(loadAllCommands, loadAllCommands)
|
|
48
|
-
.catch(e => {
|
|
49
|
-
logger_1.logger.error(e);
|
|
50
|
-
});
|
|
51
|
-
if (!process.argv.slice(2).length) {
|
|
52
|
-
program_1.program.outputHelp();
|
|
53
|
-
process.exit(1);
|
|
54
|
-
}
|
|
55
|
-
});
|
package/content-cli-update.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
(function (factory) {
|
|
11
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
12
|
-
var v = factory(require, exports);
|
|
13
|
-
if (v !== undefined) module.exports = v;
|
|
14
|
-
}
|
|
15
|
-
else if (typeof define === "function" && define.amd) {
|
|
16
|
-
define(["require", "exports", "./commands/data-pool.command", "./util/program"], factory);
|
|
17
|
-
}
|
|
18
|
-
})(function (require, exports) {
|
|
19
|
-
"use strict";
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
const data_pool_command_1 = require("./commands/data-pool.command");
|
|
22
|
-
const program_1 = require("./util/program");
|
|
23
|
-
class Update {
|
|
24
|
-
static dataPool(program) {
|
|
25
|
-
program
|
|
26
|
-
.command("data-pool")
|
|
27
|
-
.description("Command to update a data pool using a data pool configuration file")
|
|
28
|
-
.option("-p, --profile <profile>", "Profile which you want to use to update the data pool configuration")
|
|
29
|
-
.requiredOption("--id <id>", "Id of the data pool you want to update")
|
|
30
|
-
.requiredOption("-f, --file <file>", "The file you want to push")
|
|
31
|
-
.action((cmd) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
yield new data_pool_command_1.DataPoolCommand().updateDataPool(cmd.profile, cmd.id, cmd.file);
|
|
33
|
-
process.exit();
|
|
34
|
-
}));
|
|
35
|
-
return program;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
Update.dataPool(program_1.program);
|
|
39
|
-
program_1.program.parse(process.argv);
|
|
40
|
-
if (!process.argv.slice(2).length) {
|
|
41
|
-
program_1.program.outputHelp();
|
|
42
|
-
process.exit(1);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
});
|
package/lib/api/space-api.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SpaceTransport } from "../interfaces/save-space.interface";
|
|
2
|
-
declare class SpaceApi {
|
|
3
|
-
static readonly INSTANCE: SpaceApi;
|
|
4
|
-
findOne(spaceId: string): Promise<SpaceTransport>;
|
|
5
|
-
findAllSpaces(): Promise<SpaceTransport[]>;
|
|
6
|
-
createSpace(space: SpaceTransport): Promise<SpaceTransport>;
|
|
7
|
-
}
|
|
8
|
-
export declare const spaceApi: SpaceApi;
|
|
9
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ContentNodeTransport, VariablesAssignments } from "../interfaces/package-manager.interfaces";
|
|
3
|
-
import { URLSearchParams } from "url";
|
|
4
|
-
declare class VariablesApi {
|
|
5
|
-
static readonly INSTANCE: VariablesApi;
|
|
6
|
-
static readonly ASSIGNMENT_APIS: {
|
|
7
|
-
[key: string]: import("../interfaces/variable-assignment-api.interface").VariableAssignmentApi;
|
|
8
|
-
};
|
|
9
|
-
assignVariableValues(packageKey: string, variablesAssignments: VariablesAssignments[]): Promise<ContentNodeTransport[]>;
|
|
10
|
-
getCandidateAssignments(type: string, params: URLSearchParams): Promise<object[]>;
|
|
11
|
-
getRuntimeVariableValues(packageKey: string, appMode: string): Promise<VariablesAssignments[]>;
|
|
12
|
-
}
|
|
13
|
-
export declare const variablesApi: VariablesApi;
|
|
14
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare class AnalysisBookmarksCommand {
|
|
2
|
-
private contentService;
|
|
3
|
-
private analysisBookmarksManagerFactory;
|
|
4
|
-
pullAnalysisBookmarks(profile: string, analysisId: string, type: string): Promise<void>;
|
|
5
|
-
pushAnalysisBookmarks(profile: string, analysisId: string, filename: string): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class AssetCommand {
|
|
2
|
-
private contentService;
|
|
3
|
-
private assetManagerFactory;
|
|
4
|
-
pullAsset(profile: string, key: string): Promise<void>;
|
|
5
|
-
pushAsset(profile: string, fileName: string, packageKey: string): Promise<void>;
|
|
6
|
-
pushAssets(profile: string, packageKey: string): Promise<void>;
|
|
7
|
-
listAssets(profile: string, jsonResponse: boolean, assetType: string): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare class ConnectionCommand {
|
|
2
|
-
updateProperty(profile: string, dataPoolId: string, connectionId: string, property: string, value: string): Promise<void>;
|
|
3
|
-
getProperties(profile: string, dataPoolId: string, connectionId: string): Promise<void>;
|
|
4
|
-
listConnections(profile: string, dataPoolId: string): Promise<any>;
|
|
5
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare class CTPCommand {
|
|
2
|
-
private contentService;
|
|
3
|
-
private ctpManagerFactory;
|
|
4
|
-
pushCTPFile(profile: string, filename: string, password: string, pushAnalysis: boolean, pushDataModels: boolean, existingPoolId: string, globalPoolName: string, spaceKey: string): Promise<void>;
|
|
5
|
-
private validateParamsForDataModelPush;
|
|
6
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class DataPoolCommand {
|
|
2
|
-
private contentService;
|
|
3
|
-
private dataPoolManagerFactory;
|
|
4
|
-
pullDataPool(profile: string, id: string): Promise<void>;
|
|
5
|
-
pushDataPool(profile: string, filename: string): Promise<void>;
|
|
6
|
-
exportDataPool(poolId: string, outputToJsonFile: boolean): Promise<void>;
|
|
7
|
-
pushDataPools(profile: string): Promise<void>;
|
|
8
|
-
batchImportDataPools(requestFile: string, outputToJsonFile: boolean): Promise<void>;
|
|
9
|
-
updateDataPool(profile: string, id: string, filename: string): Promise<any>;
|
|
10
|
-
listDataPools(profile: string, jsonResponse: boolean): Promise<any>;
|
|
11
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AnalysisBookmarksManager } from "../manager/analysis-bookmarks.manager";
|
|
2
|
-
export declare class AnalysisBookmarksManagerFactory {
|
|
3
|
-
createAnalysisBookmarksManager(filename: string, analysisId: string, type?: string): AnalysisBookmarksManager;
|
|
4
|
-
private readFile;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
export declare class Config {
|
|
3
|
-
static list(program: Command): Command;
|
|
4
|
-
static listVariables(program: Command): Command;
|
|
5
|
-
static export(program: Command): Command;
|
|
6
|
-
static import(program: Command): Command;
|
|
7
|
-
static diff(program: Command): Command;
|
|
8
|
-
}
|
package/lib/content-cli-get.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
export declare class List {
|
|
3
|
-
static packages(program: Command): Command;
|
|
4
|
-
static spaces(program: Command): Command;
|
|
5
|
-
static dataPools(program: Command): Command;
|
|
6
|
-
static connections(program: Command): Command;
|
|
7
|
-
static assets(program: Command): Command;
|
|
8
|
-
static assignments(program: Command): Command;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/content-cli-set.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseManager } from "../content/manager/base.manager";
|
|
2
|
-
export declare class ContentService {
|
|
3
|
-
private profileService;
|
|
4
|
-
pull(profileName: string, baseManager: BaseManager): Promise<any>;
|
|
5
|
-
pullFile(profileName: string, baseManager: BaseManager): Promise<any>;
|
|
6
|
-
push(profileName: string, baseManager: BaseManager): Promise<any>;
|
|
7
|
-
batchPush(profileName: string, baseManagers: BaseManager[]): Promise<any>;
|
|
8
|
-
update(profileName: string, baseManager: BaseManager): Promise<any>;
|
|
9
|
-
findAll(profileName: string, baseManager: BaseManager): Promise<any>;
|
|
10
|
-
private resolveProfile;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Profile } from "../interfaces/profile.interface";
|
|
2
|
-
interface Context {
|
|
3
|
-
profile: Profile;
|
|
4
|
-
}
|
|
5
|
-
declare class ContextService {
|
|
6
|
-
static readonly INSTANCE: ContextService;
|
|
7
|
-
private context;
|
|
8
|
-
getContext(): Context;
|
|
9
|
-
resolveProfile(profile: string): Promise<void>;
|
|
10
|
-
setContext(context: Context): void;
|
|
11
|
-
}
|
|
12
|
-
export declare const contextService: ContextService;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Profile } from "../interfaces/profile.interface";
|
|
2
|
-
export declare class HttpClientService {
|
|
3
|
-
private axios;
|
|
4
|
-
pushData(url: string, profile: Profile, body: any): Promise<any>;
|
|
5
|
-
pullData(url: string, profile: Profile): Promise<any>;
|
|
6
|
-
pullFileData(url: string, profile: Profile): Promise<any>;
|
|
7
|
-
updateData(url: string, profile: Profile, body: object): Promise<any>;
|
|
8
|
-
findAll(url: string, profile: Profile): Promise<any>;
|
|
9
|
-
private buildAuthorizationHeaders;
|
|
10
|
-
private handleResponseStreamData;
|
|
11
|
-
private handleResponse;
|
|
12
|
-
private handleError;
|
|
13
|
-
private checkBadRequest;
|
|
14
|
-
private handleBadRequest;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BatchExportNodeTransport } from "../../interfaces/batch-export-node-transport";
|
|
2
|
-
import { SpaceTransport } from "../../interfaces/save-space.interface";
|
|
3
|
-
declare class SpaceService {
|
|
4
|
-
static readonly INSTANCE: SpaceService;
|
|
5
|
-
private allSpaces;
|
|
6
|
-
getParentSpaces(nodes: BatchExportNodeTransport[]): Promise<BatchExportNodeTransport[]>;
|
|
7
|
-
createSpace(spaceName: string, spaceIcon: string): Promise<SpaceTransport>;
|
|
8
|
-
refreshAndGetAllSpaces(): Promise<SpaceTransport[]>;
|
|
9
|
-
}
|
|
10
|
-
export declare const spaceService: SpaceService;
|
|
11
|
-
export {};
|
package/lib/util/program.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "commander"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CommandService = void 0;
|
|
13
|
-
const commander_1 = require("commander");
|
|
14
|
-
class CommandService {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.command = new commander_1.Command();
|
|
17
|
-
this.command.parseOptions(process.argv);
|
|
18
|
-
}
|
|
19
|
-
get program() {
|
|
20
|
-
return this.command;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.CommandService = CommandService;
|
|
24
|
-
});
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
(function (factory) {
|
|
11
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
12
|
-
var v = factory(require, exports);
|
|
13
|
-
if (v !== undefined) module.exports = v;
|
|
14
|
-
}
|
|
15
|
-
else if (typeof define === "function" && define.amd) {
|
|
16
|
-
define(["require", "exports", "./profile.service", "../util/logger"], factory);
|
|
17
|
-
}
|
|
18
|
-
})(function (require, exports) {
|
|
19
|
-
"use strict";
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.ContentService = void 0;
|
|
22
|
-
const profile_service_1 = require("./profile.service");
|
|
23
|
-
const logger_1 = require("../util/logger");
|
|
24
|
-
class ContentService {
|
|
25
|
-
constructor() {
|
|
26
|
-
this.profileService = new profile_service_1.ProfileService();
|
|
27
|
-
}
|
|
28
|
-
pull(profileName, baseManager) {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
return new Promise((resolve, reject) => {
|
|
31
|
-
this.profileService
|
|
32
|
-
.findProfile(this.resolveProfile(profileName))
|
|
33
|
-
.then((profile) => {
|
|
34
|
-
baseManager.profile = profile;
|
|
35
|
-
baseManager.pull().then(() => resolve(), () => reject());
|
|
36
|
-
})
|
|
37
|
-
.catch(err => {
|
|
38
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
pullFile(profileName, baseManager) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
return new Promise((resolve, reject) => {
|
|
46
|
-
this.profileService
|
|
47
|
-
.findProfile(this.resolveProfile(profileName))
|
|
48
|
-
.then((profile) => {
|
|
49
|
-
baseManager.profile = profile;
|
|
50
|
-
baseManager.pullFile().then(() => resolve(), () => reject());
|
|
51
|
-
})
|
|
52
|
-
.catch(err => {
|
|
53
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
push(profileName, baseManager) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
return new Promise((resolve, reject) => {
|
|
61
|
-
this.profileService
|
|
62
|
-
.findProfile(this.resolveProfile(profileName))
|
|
63
|
-
.then((profile) => {
|
|
64
|
-
baseManager.profile = profile;
|
|
65
|
-
baseManager.push().then(() => resolve(), () => reject());
|
|
66
|
-
})
|
|
67
|
-
.catch(err => {
|
|
68
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
batchPush(profileName, baseManagers) {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return new Promise((resolve, reject) => {
|
|
76
|
-
this.profileService
|
|
77
|
-
.findProfile(this.resolveProfile(profileName))
|
|
78
|
-
.then((profile) => {
|
|
79
|
-
const promises = [];
|
|
80
|
-
baseManagers.forEach(baseManager => {
|
|
81
|
-
baseManager.profile = profile;
|
|
82
|
-
promises.push(baseManager.push());
|
|
83
|
-
});
|
|
84
|
-
Promise.all(promises).then(() => resolve(), () => reject());
|
|
85
|
-
})
|
|
86
|
-
.catch(err => {
|
|
87
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
update(profileName, baseManager) {
|
|
93
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
return new Promise((resolve, reject) => {
|
|
95
|
-
this.profileService
|
|
96
|
-
.findProfile(this.resolveProfile(profileName))
|
|
97
|
-
.then((profile) => {
|
|
98
|
-
baseManager.profile = profile;
|
|
99
|
-
baseManager.update().then(() => resolve(), () => reject());
|
|
100
|
-
})
|
|
101
|
-
.catch(err => {
|
|
102
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
findAll(profileName, baseManager) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return new Promise((resolve, reject) => {
|
|
110
|
-
this.profileService
|
|
111
|
-
.findProfile(this.resolveProfile(profileName))
|
|
112
|
-
.then((profile) => {
|
|
113
|
-
baseManager.profile = profile;
|
|
114
|
-
baseManager.findAll().then(() => resolve(), () => reject());
|
|
115
|
-
})
|
|
116
|
-
.catch(err => {
|
|
117
|
-
logger_1.logger.error(new logger_1.FatalError(err));
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
resolveProfile(profile) {
|
|
123
|
-
if (profile) {
|
|
124
|
-
return profile;
|
|
125
|
-
}
|
|
126
|
-
return this.profileService.getDefaultProfile();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.ContentService = ContentService;
|
|
130
|
-
});
|