@codenotch/codenotch.cli 1.0.33
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/.github/copilot-instructions.md +3 -0
- package/README.md +28 -0
- package/bin/cli.js +3 -0
- package/dist/bin/cli.d.ts +2 -0
- package/dist/bin/cli.js +6 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/index.js +15 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/project/compile.d.ts +2 -0
- package/dist/commands/project/compile.js +25 -0
- package/dist/commands/project/compile.js.map +1 -0
- package/dist/commands/project/deploy.d.ts +2 -0
- package/dist/commands/project/deploy.js +16 -0
- package/dist/commands/project/deploy.js.map +1 -0
- package/dist/commands/project/index.d.ts +2 -0
- package/dist/commands/project/index.js +29 -0
- package/dist/commands/project/index.js.map +1 -0
- package/dist/commands/project/inspect.d.ts +2 -0
- package/dist/commands/project/inspect.js +17 -0
- package/dist/commands/project/inspect.js.map +1 -0
- package/dist/commands/project/new.d.ts +2 -0
- package/dist/commands/project/new.js +13 -0
- package/dist/commands/project/new.js.map +1 -0
- package/dist/commands/project/open.d.ts +2 -0
- package/dist/commands/project/open.js +26 -0
- package/dist/commands/project/open.js.map +1 -0
- package/dist/commands/project/package.d.ts +2 -0
- package/dist/commands/project/package.js +25 -0
- package/dist/commands/project/package.js.map +1 -0
- package/dist/commands/project/refresh.d.ts +2 -0
- package/dist/commands/project/refresh.js +15 -0
- package/dist/commands/project/refresh.js.map +1 -0
- package/dist/commands/project/remove.d.ts +2 -0
- package/dist/commands/project/remove.js +17 -0
- package/dist/commands/project/remove.js.map +1 -0
- package/dist/commands/project/shared.d.ts +5 -0
- package/dist/commands/project/shared.js +6 -0
- package/dist/commands/project/shared.js.map +1 -0
- package/dist/commands/project/start.d.ts +2 -0
- package/dist/commands/project/start.js +28 -0
- package/dist/commands/project/start.js.map +1 -0
- package/dist/commands/project/test.d.ts +2 -0
- package/dist/commands/project/test.js +20 -0
- package/dist/commands/project/test.js.map +1 -0
- package/dist/commands/react/build.d.ts +2 -0
- package/dist/commands/react/build.js +17 -0
- package/dist/commands/react/build.js.map +1 -0
- package/dist/commands/react/index.d.ts +2 -0
- package/dist/commands/react/index.js +13 -0
- package/dist/commands/react/index.js.map +1 -0
- package/dist/commands/react/serve.d.ts +2 -0
- package/dist/commands/react/serve.js +18 -0
- package/dist/commands/react/serve.js.map +1 -0
- package/dist/commands/runtime/clear.d.ts +2 -0
- package/dist/commands/runtime/clear.js +16 -0
- package/dist/commands/runtime/clear.js.map +1 -0
- package/dist/commands/runtime/index.d.ts +2 -0
- package/dist/commands/runtime/index.js +24 -0
- package/dist/commands/runtime/index.js.map +1 -0
- package/dist/commands/runtime/info.d.ts +2 -0
- package/dist/commands/runtime/info.js +49 -0
- package/dist/commands/runtime/info.js.map +1 -0
- package/dist/commands/runtime/latest.d.ts +2 -0
- package/dist/commands/runtime/latest.js +24 -0
- package/dist/commands/runtime/latest.js.map +1 -0
- package/dist/commands/runtime/portal.d.ts +2 -0
- package/dist/commands/runtime/portal.js +24 -0
- package/dist/commands/runtime/portal.js.map +1 -0
- package/dist/commands/runtime/start.d.ts +2 -0
- package/dist/commands/runtime/start.js +21 -0
- package/dist/commands/runtime/start.js.map +1 -0
- package/dist/commands/runtime/stop.d.ts +2 -0
- package/dist/commands/runtime/stop.js +18 -0
- package/dist/commands/runtime/stop.js.map +1 -0
- package/dist/commands/runtime/update.d.ts +2 -0
- package/dist/commands/runtime/update.js +17 -0
- package/dist/commands/runtime/update.js.map +1 -0
- package/dist/commands/system/index.d.ts +2 -0
- package/dist/commands/system/index.js +11 -0
- package/dist/commands/system/index.js.map +1 -0
- package/dist/commands/system/info.d.ts +2 -0
- package/dist/commands/system/info.js +28 -0
- package/dist/commands/system/info.js.map +1 -0
- package/dist/commands/system/read.d.ts +2 -0
- package/dist/commands/system/read.js +28 -0
- package/dist/commands/system/read.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/models/Codenotch.d.ts +237 -0
- package/dist/models/Codenotch.js +214 -0
- package/dist/models/Codenotch.js.map +1 -0
- package/dist/models/DbModels.d.ts +221 -0
- package/dist/models/DbModels.js +130 -0
- package/dist/models/DbModels.js.map +1 -0
- package/dist/models/OpenApiModels.d.ts +115 -0
- package/dist/models/OpenApiModels.js +103 -0
- package/dist/models/OpenApiModels.js.map +1 -0
- package/dist/utils/BuildUtils.d.ts +54 -0
- package/dist/utils/BuildUtils.js +631 -0
- package/dist/utils/BuildUtils.js.map +1 -0
- package/dist/utils/ConsoleUtils.d.ts +6 -0
- package/dist/utils/ConsoleUtils.js +24 -0
- package/dist/utils/ConsoleUtils.js.map +1 -0
- package/dist/utils/FileUtils.d.ts +14 -0
- package/dist/utils/FileUtils.js +218 -0
- package/dist/utils/FileUtils.js.map +1 -0
- package/dist/utils/GitHubAuthUtils.d.ts +11 -0
- package/dist/utils/GitHubAuthUtils.js +74 -0
- package/dist/utils/GitHubAuthUtils.js.map +1 -0
- package/dist/utils/I18nUtils.d.ts +9 -0
- package/dist/utils/I18nUtils.js +56 -0
- package/dist/utils/I18nUtils.js.map +1 -0
- package/dist/utils/OpenAPIUtils.d.ts +33 -0
- package/dist/utils/OpenAPIUtils.js +279 -0
- package/dist/utils/OpenAPIUtils.js.map +1 -0
- package/dist/utils/OsUtils.d.ts +8 -0
- package/dist/utils/OsUtils.js +33 -0
- package/dist/utils/OsUtils.js.map +1 -0
- package/dist/utils/ProjectCompilationUtils.d.ts +63 -0
- package/dist/utils/ProjectCompilationUtils.js +850 -0
- package/dist/utils/ProjectCompilationUtils.js.map +1 -0
- package/dist/utils/ProjectUtils.d.ts +15 -0
- package/dist/utils/ProjectUtils.js +115 -0
- package/dist/utils/ProjectUtils.js.map +1 -0
- package/dist/utils/RuntimeUtils.d.ts +45 -0
- package/dist/utils/RuntimeUtils.js +613 -0
- package/dist/utils/RuntimeUtils.js.map +1 -0
- package/dist/utils/ServeUtils.d.ts +10 -0
- package/dist/utils/ServeUtils.js +191 -0
- package/dist/utils/ServeUtils.js.map +1 -0
- package/dist/utils/ShellUtils.d.ts +3 -0
- package/dist/utils/ShellUtils.js +28 -0
- package/dist/utils/ShellUtils.js.map +1 -0
- package/dist/utils/StringUtils.d.ts +9 -0
- package/dist/utils/StringUtils.js +65 -0
- package/dist/utils/StringUtils.js.map +1 -0
- package/docs/ARCHITECTURE.md +179 -0
- package/docs/TODO.md +18 -0
- package/package.json +63 -0
- package/src/bin/cli.ts +4 -0
- package/src/commands/index.ts +13 -0
- package/src/commands/project/compile.ts +20 -0
- package/src/commands/project/deploy.ts +11 -0
- package/src/commands/project/index.ts +28 -0
- package/src/commands/project/inspect.ts +12 -0
- package/src/commands/project/new.ts +11 -0
- package/src/commands/project/open.ts +21 -0
- package/src/commands/project/package.ts +20 -0
- package/src/commands/project/refresh.ts +13 -0
- package/src/commands/project/remove.ts +12 -0
- package/src/commands/project/shared.ts +9 -0
- package/src/commands/project/start.ts +24 -0
- package/src/commands/project/test.ts +15 -0
- package/src/commands/react/build.ts +12 -0
- package/src/commands/react/index.ts +12 -0
- package/src/commands/react/serve.ts +13 -0
- package/src/commands/runtime/clear.ts +11 -0
- package/src/commands/runtime/index.ts +24 -0
- package/src/commands/runtime/info.ts +47 -0
- package/src/commands/runtime/latest.ts +18 -0
- package/src/commands/runtime/portal.ts +20 -0
- package/src/commands/runtime/start.ts +16 -0
- package/src/commands/runtime/stop.ts +13 -0
- package/src/commands/runtime/update.ts +12 -0
- package/src/commands/system/index.ts +9 -0
- package/src/commands/system/info.ts +23 -0
- package/src/commands/system/read.ts +25 -0
- package/src/index.ts +22 -0
- package/src/models/Codenotch.ts +361 -0
- package/src/models/DbModels.ts +428 -0
- package/src/models/OpenApiModels.ts +145 -0
- package/src/utils/BuildUtils.ts +739 -0
- package/src/utils/ConsoleUtils.ts +22 -0
- package/src/utils/FileUtils.ts +266 -0
- package/src/utils/GitHubAuthUtils.ts +83 -0
- package/src/utils/I18nUtils.ts +58 -0
- package/src/utils/OpenAPIUtils.ts +285 -0
- package/src/utils/OsUtils.ts +32 -0
- package/src/utils/ProjectCompilationUtils.ts +1002 -0
- package/src/utils/ProjectUtils.ts +151 -0
- package/src/utils/RuntimeUtils.ts +743 -0
- package/src/utils/ServeUtils.ts +175 -0
- package/src/utils/ShellUtils.ts +26 -0
- package/src/utils/StringUtils.ts +80 -0
- package/tsconfig.json +35 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerInfo = registerInfo;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
9
|
+
function registerInfo(runtime) {
|
|
10
|
+
runtime
|
|
11
|
+
.command('info')
|
|
12
|
+
.alias('status')
|
|
13
|
+
.description('Display Codenotch runtime status and version information')
|
|
14
|
+
.option('--json', 'output the result in JSON format')
|
|
15
|
+
.action(async (options) => {
|
|
16
|
+
const isInstalled = await RuntimeUtils_1.default.isRuntimeInstalled();
|
|
17
|
+
if (options.json) {
|
|
18
|
+
if (isInstalled === false) {
|
|
19
|
+
console.log(JSON.stringify({ installed: false }));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const version = await RuntimeUtils_1.default.getRuntimeVersion();
|
|
23
|
+
const runtimePath = RuntimeUtils_1.default.getRuntimeExecutablePath();
|
|
24
|
+
const baseUrl = await RuntimeUtils_1.default.getRuntimeBaseUrl();
|
|
25
|
+
const isRunning = await RuntimeUtils_1.default.isRuntimeRunning();
|
|
26
|
+
const dataPath = await RuntimeUtils_1.default.getRuntimeDataPath();
|
|
27
|
+
console.log(JSON.stringify({ installed: true, version, path: runtimePath, url: baseUrl, running: isRunning, dataPath: dataPath }));
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (isInstalled === false) {
|
|
31
|
+
console.log(chalk_1.default.yellow(`Codenotch runtime is not installed. Use "codenotch runtime install" to install the latest version.`));
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const version = await RuntimeUtils_1.default.getRuntimeVersion(); // Requires running the runtime which is a bit slow
|
|
35
|
+
console.log(chalk_1.default.green(`Version: ${version}`));
|
|
36
|
+
const runtimePath = RuntimeUtils_1.default.getRuntimeExecutablePath();
|
|
37
|
+
console.log(chalk_1.default.green(`Codenotch runtime is installed at: ${runtimePath}`));
|
|
38
|
+
const baseUrl = await RuntimeUtils_1.default.getRuntimeBaseUrl();
|
|
39
|
+
console.log(chalk_1.default.green(`URL: ${baseUrl}`));
|
|
40
|
+
const isRunning = await RuntimeUtils_1.default.isRuntimeRunning();
|
|
41
|
+
console.log(chalk_1.default.green(`Status: ${isRunning ? 'Running' : 'Not running'}`));
|
|
42
|
+
const dataPath = await RuntimeUtils_1.default.getRuntimeDataPath();
|
|
43
|
+
if (dataPath) {
|
|
44
|
+
console.log(chalk_1.default.green(`Data path: ${dataPath}`));
|
|
45
|
+
}
|
|
46
|
+
//TODO check if an update is available and suggest updating if that's the case
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/runtime/info.ts"],"names":[],"mappings":";;;;;AAIA,oCA0CC;AA7CD,kDAA0B;AAC1B,4EAAoD;AAEpD,SAAgB,YAAY,CAAC,OAAgB;IACzC,OAAO;SACF,OAAO,CAAC,MAAM,CAAC;SACf,KAAK,CAAC,QAAQ,CAAC;SACf,WAAW,CAAC,0DAA0D,CAAC;SACvE,MAAM,CAAC,QAAQ,EAAE,kCAAkC,CAAC;SACpD,MAAM,CAAC,KAAK,EAAE,OAA0B,EAAE,EAAE;QAEzC,MAAM,WAAW,GAAG,MAAM,sBAAY,CAAC,kBAAkB,EAAE,CAAC;QAC5D,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACf,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;gBACxB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBAClD,OAAO;YACX,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,sBAAY,CAAC,iBAAiB,EAAE,CAAC;YACvD,MAAM,WAAW,GAAG,sBAAY,CAAC,wBAAwB,EAAE,CAAC;YAC5D,MAAM,OAAO,GAAG,MAAM,sBAAY,CAAC,iBAAiB,EAAE,CAAC;YACvD,MAAM,SAAS,GAAG,MAAM,sBAAY,CAAC,gBAAgB,EAAE,CAAC;YACxD,MAAM,QAAQ,GAAG,MAAM,sBAAY,CAAC,kBAAkB,EAAE,CAAC;YACzD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;YACnI,OAAO;QACX,CAAC;QAED,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;YACxB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,oGAAoG,CAAC,CAAC,CAAC;YAChI,OAAO;QACX,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,sBAAY,CAAC,iBAAiB,EAAE,CAAC,CAAC,mDAAmD;QAC3G,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,sBAAY,CAAC,wBAAwB,EAAE,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,sCAAsC,WAAW,EAAE,CAAC,CAAC,CAAC;QAC9E,MAAM,OAAO,GAAG,MAAM,sBAAY,CAAC,iBAAiB,EAAE,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAC,CAAC;QAC5C,MAAM,SAAS,GAAG,MAAM,sBAAY,CAAC,gBAAgB,EAAE,CAAC;QACxD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,MAAM,sBAAY,CAAC,kBAAkB,EAAE,CAAC;QACzD,IAAI,QAAQ,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,cAAc,QAAQ,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC;QAED,8EAA8E;IAClF,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerLatest = registerLatest;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
9
|
+
function registerLatest(runtime) {
|
|
10
|
+
runtime
|
|
11
|
+
.command('latest')
|
|
12
|
+
.description('Display the latest available Codenotch runtime release')
|
|
13
|
+
.option('--json', 'output the result in JSON format')
|
|
14
|
+
.action(async (options) => {
|
|
15
|
+
const release = await RuntimeUtils_1.default.getLatestRuntimeRelease();
|
|
16
|
+
if (options.json) {
|
|
17
|
+
console.log(JSON.stringify(release));
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
console.log(chalk_1.default.green(`Latest Codenotch runtime release: ${chalk_1.default.yellow(release.version)} (released at ${release.createdAt})`));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=latest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latest.js","sourceRoot":"","sources":["../../../src/commands/runtime/latest.ts"],"names":[],"mappings":";;;;;AAIA,wCAaC;AAhBD,kDAA0B;AAC1B,4EAAoD;AAEpD,SAAgB,cAAc,CAAC,OAAgB;IAC3C,OAAO;SACF,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,wDAAwD,CAAC;SACrE,MAAM,CAAC,QAAQ,EAAE,kCAAkC,CAAC;SACpD,MAAM,CAAC,KAAK,EAAE,OAA0B,EAAE,EAAE;QACzC,MAAM,OAAO,GAAG,MAAM,sBAAY,CAAC,uBAAuB,EAAE,CAAC;QAC7D,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,qCAAqC,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;QACtI,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerPortal = registerPortal;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
9
|
+
const OsUtils_1 = require("../../utils/OsUtils");
|
|
10
|
+
// Root-level command, but it lives here because it targets the runtime portal
|
|
11
|
+
function registerPortal(program) {
|
|
12
|
+
program
|
|
13
|
+
.command('portal')
|
|
14
|
+
.description('Open the Codenotch portal in the default browser')
|
|
15
|
+
.action(async () => {
|
|
16
|
+
if ((await RuntimeUtils_1.default.isRuntimeRunning()) === false) {
|
|
17
|
+
console.log(chalk_1.default.yellow(`Codenotch runtime is not running`));
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const basePath = await RuntimeUtils_1.default.getRuntimeBaseUrl();
|
|
21
|
+
OsUtils_1.OsUtils.openInBrowser(`${basePath}/portal`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=portal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal.js","sourceRoot":"","sources":["../../../src/commands/runtime/portal.ts"],"names":[],"mappings":";;;;;AAMA,wCAaC;AAlBD,kDAA0B;AAC1B,4EAAoD;AACpD,iDAA8C;AAE9C,8EAA8E;AAC9E,SAAgB,cAAc,CAAC,OAAgB;IAC3C,OAAO;SACF,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,kDAAkD,CAAC;SAC/D,MAAM,CAAC,KAAK,IAAI,EAAE;QAEf,IAAI,CAAC,MAAM,sBAAY,CAAC,gBAAgB,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,CAAC;YAC9D,OAAO;QACX,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,sBAAY,CAAC,iBAAiB,EAAE,CAAC;QACxD,iBAAO,CAAC,aAAa,CAAC,GAAG,QAAQ,SAAS,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerStart = registerStart;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
9
|
+
function registerStart(runtime) {
|
|
10
|
+
runtime
|
|
11
|
+
.command('start')
|
|
12
|
+
.option('-p, --port <port>', 'port used by the runtime (default 5005)', (value) => parseInt(value, 10), 5005)
|
|
13
|
+
.option('-a, --attach', 'attach to the runtime process (default false)', false)
|
|
14
|
+
.option('-d, --data-path <path>', 'path to the runtime data directory')
|
|
15
|
+
.description('Start the Codenotch runtime')
|
|
16
|
+
.action(async (options) => {
|
|
17
|
+
await RuntimeUtils_1.default.startRuntime(options);
|
|
18
|
+
console.log(chalk_1.default.green(`Codenotch runtime started successfully`));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../src/commands/runtime/start.ts"],"names":[],"mappings":";;;;;AAIA,sCAWC;AAdD,kDAA0B;AAC1B,4EAAoD;AAEpD,SAAgB,aAAa,CAAC,OAAgB;IAC1C,OAAO;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,MAAM,CAAC,mBAAmB,EAAE,yCAAyC,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC;SACpH,MAAM,CAAC,cAAc,EAAE,+CAA+C,EAAE,KAAK,CAAC;SAC9E,MAAM,CAAC,wBAAwB,EAAE,oCAAoC,CAAC;SACtE,WAAW,CAAC,6BAA6B,CAAC;SAC1C,MAAM,CAAC,KAAK,EAAE,OAA6D,EAAE,EAAE;QAC5E,MAAM,sBAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerStop = registerStop;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
9
|
+
function registerStop(runtime) {
|
|
10
|
+
runtime
|
|
11
|
+
.command('stop')
|
|
12
|
+
.description('Stop the Codenotch runtime')
|
|
13
|
+
.action(async () => {
|
|
14
|
+
await RuntimeUtils_1.default.stopRuntime();
|
|
15
|
+
console.log(chalk_1.default.green(`Codenotch runtime stopped successfully`));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=stop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../../src/commands/runtime/stop.ts"],"names":[],"mappings":";;;;;AAIA,oCAQC;AAXD,kDAA0B;AAC1B,4EAAoD;AAEpD,SAAgB,YAAY,CAAC,OAAgB;IACzC,OAAO;SACF,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,4BAA4B,CAAC;SACzC,MAAM,CAAC,KAAK,IAAI,EAAE;QACf,MAAM,sBAAY,CAAC,WAAW,EAAE,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerUpdate = registerUpdate;
|
|
7
|
+
const RuntimeUtils_1 = __importDefault(require("../../utils/RuntimeUtils"));
|
|
8
|
+
function registerUpdate(runtime) {
|
|
9
|
+
runtime
|
|
10
|
+
.command('update')
|
|
11
|
+
.alias('install')
|
|
12
|
+
.description('Check for Codenotch runtime updates and install if available')
|
|
13
|
+
.action(async () => {
|
|
14
|
+
await RuntimeUtils_1.default.installLatestRuntime();
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/runtime/update.ts"],"names":[],"mappings":";;;;;AAGA,wCAQC;AAVD,4EAAoD;AAEpD,SAAgB,cAAc,CAAC,OAAgB;IAC3C,OAAO;SACF,OAAO,CAAC,QAAQ,CAAC;SACjB,KAAK,CAAC,SAAS,CAAC;SAChB,WAAW,CAAC,8DAA8D,CAAC;SAC3E,MAAM,CAAC,KAAK,IAAI,EAAE;QACf,MAAM,sBAAY,CAAC,oBAAoB,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerSystemCommands = registerSystemCommands;
|
|
4
|
+
const info_1 = require("./info");
|
|
5
|
+
const read_1 = require("./read");
|
|
6
|
+
// Root-level commands that are not tied to a specific project or the runtime
|
|
7
|
+
function registerSystemCommands(program) {
|
|
8
|
+
(0, info_1.registerInfo)(program);
|
|
9
|
+
(0, read_1.registerRead)(program);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/system/index.ts"],"names":[],"mappings":";;AAKA,wDAGC;AAPD,iCAAsC;AACtC,iCAAsC;AAEtC,6EAA6E;AAC7E,SAAgB,sBAAsB,CAAC,OAAgB;IACnD,IAAA,mBAAY,EAAC,OAAO,CAAC,CAAC;IACtB,IAAA,mBAAY,EAAC,OAAO,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerInfo = registerInfo;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const os_1 = require("os");
|
|
9
|
+
function registerInfo(program) {
|
|
10
|
+
program
|
|
11
|
+
.command('info')
|
|
12
|
+
.description('Display system information')
|
|
13
|
+
.action(() => {
|
|
14
|
+
console.log(chalk_1.default.green('System Information:'));
|
|
15
|
+
console.log(`- Node.js version: ${chalk_1.default.yellow(process.version)}`);
|
|
16
|
+
console.log(`- Platform: ${chalk_1.default.yellow(process.platform)}`);
|
|
17
|
+
console.log(`- Architecture: ${chalk_1.default.yellow(process.arch)}`);
|
|
18
|
+
console.log(`- Nvm version: ${chalk_1.default.yellow(process.env.NVM_BIN ? 'nvm detected' : 'nvm not detected')}`);
|
|
19
|
+
console.log(`- Current directory: ${chalk_1.default.yellow(process.cwd())}`);
|
|
20
|
+
if ((0, os_1.platform)() === 'win32') {
|
|
21
|
+
console.log(`- Download Ide: https://codenotchide.blob.core.windows.net/release-win/Codenotch%20Latest.exe?sv=2023-01-03&ss=btqf&srt=sco&spr=https%2Chttp&st=2025-08-28T12%3A46%3A05Z&se=2039-06-23T15%3A46%3A00Z&sp=rlp&sig=7ivKIFM4nANK4VzdKp20bzaNZhaZZ51YIvzriUacxBw%3D`);
|
|
22
|
+
}
|
|
23
|
+
else if ((0, os_1.platform)() === 'linux') {
|
|
24
|
+
console.log(`- Download Ide: https://codenotchide.blob.core.windows.net/release-linux/codenotch-ide_latest_amd64.deb?sv=2023-01-03&ss=btqf&srt=sco&spr=https%2Chttp&st=2025-08-28T12%3A46%3A05Z&se=2039-06-23T15%3A46%3A00Z&sp=rlp&sig=7ivKIFM4nANK4VzdKp20bzaNZhaZZ51YIvzriUacxBw%3D`);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/system/info.ts"],"names":[],"mappings":";;;;;AAIA,oCAkBC;AArBD,kDAA0B;AAC1B,2BAA8B;AAE9B,SAAgB,YAAY,CAAC,OAAgB;IACzC,OAAO;SACF,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,4BAA4B,CAAC;SACzC,MAAM,CAAC,GAAG,EAAE;QACT,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAChD,OAAO,CAAC,GAAG,CAAC,sBAAsB,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACnE,OAAO,CAAC,GAAG,CAAC,eAAe,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,mBAAmB,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC7D,OAAO,CAAC,GAAG,CAAC,kBAAkB,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACzG,OAAO,CAAC,GAAG,CAAC,wBAAwB,eAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACnE,IAAI,IAAA,aAAQ,GAAE,KAAK,OAAO,EAAE,CAAC;YACzB,OAAO,CAAC,GAAG,CAAC,gQAAgQ,CAAC,CAAA;QACjR,CAAC;aACI,IAAI,IAAA,aAAQ,GAAE,KAAK,OAAO,EAAE,CAAC;YAC9B,OAAO,CAAC,GAAG,CAAC,0QAA0Q,CAAC,CAAC;QAC5R,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.registerRead = registerRead;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const readline_1 = require("readline");
|
|
9
|
+
const process_1 = require("process");
|
|
10
|
+
function registerRead(program) {
|
|
11
|
+
program
|
|
12
|
+
.command('read')
|
|
13
|
+
.description('Read test')
|
|
14
|
+
.action(async () => {
|
|
15
|
+
console.log(chalk_1.default.green('Read test:'));
|
|
16
|
+
const rl = (0, readline_1.createInterface)({ input: process_1.stdin, output: process_1.stdout });
|
|
17
|
+
try {
|
|
18
|
+
const answer = await new Promise((resolve) => {
|
|
19
|
+
rl.question('Entre quelque chose : ', resolve);
|
|
20
|
+
});
|
|
21
|
+
console.log(`Tu as saisi : ${chalk_1.default.yellow(answer)}`);
|
|
22
|
+
}
|
|
23
|
+
finally {
|
|
24
|
+
rl.close();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../src/commands/system/read.ts"],"names":[],"mappings":";;;;;AAKA,oCAmBC;AAvBD,kDAA0B;AAC1B,uCAA2C;AAC3C,qCAA2D;AAE3D,SAAgB,YAAY,CAAC,OAAgB;IACzC,OAAO;SACF,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,WAAW,CAAC;SACxB,MAAM,CAAC,KAAK,IAAI,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;QAEvC,MAAM,EAAE,GAAG,IAAA,0BAAe,EAAC,EAAE,KAAK,EAAL,eAAK,EAAE,MAAM,EAAN,gBAAM,EAAE,CAAC,CAAC;QAE9C,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;gBACjD,EAAE,CAAC,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;YACnD,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,iBAAiB,eAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACzD,CAAC;gBACO,CAAC;YACL,EAAE,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const commander_1 = require("commander");
|
|
41
|
+
const fs_1 = require("fs");
|
|
42
|
+
const path_1 = __importStar(require("path"));
|
|
43
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
44
|
+
const commands_1 = require("./commands");
|
|
45
|
+
// / Load environment variables from .env file in the CLI's own root directory, regardless of where the command is run from
|
|
46
|
+
dotenv_1.default.config({ path: path_1.default.resolve(__dirname, "../.env"), quiet: true });
|
|
47
|
+
const packageJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../package.json'), 'utf8'));
|
|
48
|
+
const program = new commander_1.Command();
|
|
49
|
+
program
|
|
50
|
+
.name('codenotch-cli')
|
|
51
|
+
.description('CLI tool for Codenotch platform')
|
|
52
|
+
.version(packageJson.version);
|
|
53
|
+
(0, commands_1.registerAllCommands)(program);
|
|
54
|
+
program.parse();
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yCAAoC;AACpC,2BAAkC;AAClC,6CAAkC;AAClC,oDAA4B;AAC5B,yCAAiD;AAEjD,2HAA2H;AAC3H,gBAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAEzE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,iBAAiB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACzF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACF,IAAI,CAAC,eAAe,CAAC;KACrB,WAAW,CAAC,iCAAiC,CAAC;KAC9C,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAElC,IAAA,8BAAmB,EAAC,OAAO,CAAC,CAAC;AAE7B,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { JSONSchema7 } from "json-schema";
|
|
2
|
+
export interface IWorkspaceCache {
|
|
3
|
+
apis: ProjectManifestApi[];
|
|
4
|
+
applications: ProjectManifestApplication[];
|
|
5
|
+
reactApplications: ProjectManifestReactApplication[];
|
|
6
|
+
expressComponents: ProjectManifestExpressComponent[];
|
|
7
|
+
scripts: ProjectManifestScript[];
|
|
8
|
+
pdfs: ProjectManifestPdf[];
|
|
9
|
+
emails: ProjectManifestEmail[];
|
|
10
|
+
htmls: ProjectManifestHtml[];
|
|
11
|
+
processes: ProjectManifestProcess[];
|
|
12
|
+
tableDataSources: ProjectManifestDatastore[];
|
|
13
|
+
documentDataSources: ProjectManifestDatastore[];
|
|
14
|
+
}
|
|
15
|
+
export declare class ProjectManifest {
|
|
16
|
+
projectName: string;
|
|
17
|
+
serviceName: string;
|
|
18
|
+
version: string;
|
|
19
|
+
index?: string;
|
|
20
|
+
packages: {
|
|
21
|
+
[packageSource: string]: string;
|
|
22
|
+
};
|
|
23
|
+
apis: ProjectManifestApi[];
|
|
24
|
+
languages?: string[];
|
|
25
|
+
dependencies?: (ProjectManifestDependency | string)[];
|
|
26
|
+
applications: ProjectManifestApplication[];
|
|
27
|
+
reactApplications: ProjectManifestReactApplication[] | undefined;
|
|
28
|
+
expressComponents: ProjectManifestExpressComponent[] | undefined;
|
|
29
|
+
scripts: ProjectManifestScript[] | undefined;
|
|
30
|
+
pdfs: ProjectManifestPdf[] | undefined;
|
|
31
|
+
emails: ProjectManifestEmail[] | undefined;
|
|
32
|
+
htmls: ProjectManifestHtml[] | undefined;
|
|
33
|
+
processes: ProjectManifestProcess[];
|
|
34
|
+
tableDataSources: ProjectManifestDatastore[];
|
|
35
|
+
documentDataSources: ProjectManifestDatastore[];
|
|
36
|
+
roles: ProjectManifestRole[];
|
|
37
|
+
postInstallationProcesses?: ProjectManifestPostInstallationProcess[];
|
|
38
|
+
constructor();
|
|
39
|
+
}
|
|
40
|
+
export declare class ProjectManifestPostInstallationProcess {
|
|
41
|
+
processName: string;
|
|
42
|
+
startEvent: string;
|
|
43
|
+
}
|
|
44
|
+
export declare class ProjectManifestDependency {
|
|
45
|
+
name: string;
|
|
46
|
+
version?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare class ProjectManifestRole {
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}
|
|
52
|
+
export declare class ProjectManifestDatastore {
|
|
53
|
+
name: string;
|
|
54
|
+
file: string;
|
|
55
|
+
ttlMinutes?: number;
|
|
56
|
+
constructor();
|
|
57
|
+
}
|
|
58
|
+
export declare class ProjectManifestProcess {
|
|
59
|
+
processName: string;
|
|
60
|
+
file: string;
|
|
61
|
+
startEvents: ProjectManifestProcessStartEvent[];
|
|
62
|
+
endEvent: JSONSchema7;
|
|
63
|
+
signals: ProjectManigestSignal[];
|
|
64
|
+
priority?: "immediate" | "high" | "medium" | "low";
|
|
65
|
+
minThreads?: number;
|
|
66
|
+
maxThreads?: number;
|
|
67
|
+
constructor();
|
|
68
|
+
}
|
|
69
|
+
export declare class ProjectManigestSignal {
|
|
70
|
+
signalId: string;
|
|
71
|
+
type: string;
|
|
72
|
+
}
|
|
73
|
+
export declare class ProjectManifestProcessStartEvent {
|
|
74
|
+
nodeId: string;
|
|
75
|
+
kind: string;
|
|
76
|
+
scope: string;
|
|
77
|
+
roles: string[];
|
|
78
|
+
input: JSONSchema7;
|
|
79
|
+
constructor();
|
|
80
|
+
}
|
|
81
|
+
export declare class ProjectManifestReactApplication {
|
|
82
|
+
applicationName: string;
|
|
83
|
+
file: string;
|
|
84
|
+
scope: string;
|
|
85
|
+
roles: string[];
|
|
86
|
+
constructor();
|
|
87
|
+
}
|
|
88
|
+
export declare class ProjectManifestApplication {
|
|
89
|
+
applicationName: string;
|
|
90
|
+
file: string;
|
|
91
|
+
scope: string;
|
|
92
|
+
roles: string[];
|
|
93
|
+
constructor();
|
|
94
|
+
}
|
|
95
|
+
export declare class ProjectManifestPdf {
|
|
96
|
+
name: string;
|
|
97
|
+
file: string;
|
|
98
|
+
constructor();
|
|
99
|
+
}
|
|
100
|
+
export declare class ProjectManifestEmail {
|
|
101
|
+
name: string;
|
|
102
|
+
file: string;
|
|
103
|
+
constructor();
|
|
104
|
+
}
|
|
105
|
+
export declare class ProjectManifestHtml {
|
|
106
|
+
name: string;
|
|
107
|
+
file: string;
|
|
108
|
+
constructor();
|
|
109
|
+
}
|
|
110
|
+
export declare class ProjectManifestExpressComponent {
|
|
111
|
+
componentName: string;
|
|
112
|
+
file: string;
|
|
113
|
+
constructor();
|
|
114
|
+
}
|
|
115
|
+
export declare class ProjectManifestScript {
|
|
116
|
+
file: string;
|
|
117
|
+
constructor();
|
|
118
|
+
}
|
|
119
|
+
export declare class ProjectManifestApplicationInsight {
|
|
120
|
+
key: string;
|
|
121
|
+
constructor();
|
|
122
|
+
}
|
|
123
|
+
export declare class ProjectManifestApi {
|
|
124
|
+
path: string;
|
|
125
|
+
method: string;
|
|
126
|
+
bpmn: string;
|
|
127
|
+
startNode: string;
|
|
128
|
+
accept: string;
|
|
129
|
+
priority?: "immediate" | "high" | "medium" | "low";
|
|
130
|
+
minThreads?: number;
|
|
131
|
+
maxThreads?: number;
|
|
132
|
+
constructor();
|
|
133
|
+
}
|
|
134
|
+
export declare class ProjectManifestParameter {
|
|
135
|
+
key: string;
|
|
136
|
+
value: string;
|
|
137
|
+
constructor();
|
|
138
|
+
}
|
|
139
|
+
export interface IScenarioProjectManifest {
|
|
140
|
+
projectName: string;
|
|
141
|
+
serviceName: string;
|
|
142
|
+
version: string;
|
|
143
|
+
/**
|
|
144
|
+
* Expect an auml application name
|
|
145
|
+
*/
|
|
146
|
+
index?: string;
|
|
147
|
+
packages: {
|
|
148
|
+
[packageSource: string]: string;
|
|
149
|
+
};
|
|
150
|
+
languages?: string[];
|
|
151
|
+
dependencies?: (ProjectManifestDependency | string)[];
|
|
152
|
+
roles: ProjectManifestRole[];
|
|
153
|
+
postInstallationProcesses?: ProjectManifestPostInstallationProcess[];
|
|
154
|
+
bpmnActivities?: {
|
|
155
|
+
name: string;
|
|
156
|
+
version: string;
|
|
157
|
+
}[];
|
|
158
|
+
}
|
|
159
|
+
export interface ApplicationManifest {
|
|
160
|
+
pwa?: PWAManifest;
|
|
161
|
+
html?: HTMLManifest;
|
|
162
|
+
auml?: AUMLManifest;
|
|
163
|
+
}
|
|
164
|
+
export interface HTMLManifest {
|
|
165
|
+
title?: string;
|
|
166
|
+
description?: string;
|
|
167
|
+
author?: string;
|
|
168
|
+
keywords?: string;
|
|
169
|
+
charset?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface PWAManifest {
|
|
172
|
+
background_color?: string;
|
|
173
|
+
description?: string;
|
|
174
|
+
dir?: string;
|
|
175
|
+
display?: string;
|
|
176
|
+
icons?: PWAManifestIcon[];
|
|
177
|
+
lang?: string;
|
|
178
|
+
name?: string;
|
|
179
|
+
orientation?: string;
|
|
180
|
+
prefer_related_applications?: boolean;
|
|
181
|
+
related_applications?: PWAManifestRelatedApplications[];
|
|
182
|
+
scope?: string;
|
|
183
|
+
short_name?: string;
|
|
184
|
+
start_url?: string;
|
|
185
|
+
theme_color?: string;
|
|
186
|
+
shortcuts?: string;
|
|
187
|
+
display_override?: string[];
|
|
188
|
+
}
|
|
189
|
+
export interface PWAManifestIcon {
|
|
190
|
+
src?: string;
|
|
191
|
+
sizes?: string;
|
|
192
|
+
type?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface PWAManifestRelatedApplications {
|
|
195
|
+
platform?: string;
|
|
196
|
+
url?: string;
|
|
197
|
+
id?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface AUMLManifest {
|
|
200
|
+
name?: string;
|
|
201
|
+
description?: string;
|
|
202
|
+
logoURL?: string;
|
|
203
|
+
roles?: string[];
|
|
204
|
+
scope?: 'Public' | 'Internal' | 'External';
|
|
205
|
+
}
|
|
206
|
+
export interface ProjectState {
|
|
207
|
+
projectId: string;
|
|
208
|
+
projectLocation: ProjectLocation;
|
|
209
|
+
projectVersion: string;
|
|
210
|
+
serviceName: string;
|
|
211
|
+
time: string;
|
|
212
|
+
status: ProjectDeploymentStatus;
|
|
213
|
+
errors: string[] | null;
|
|
214
|
+
warnings: string[] | null;
|
|
215
|
+
}
|
|
216
|
+
export type ProjectDeploymentStatus = 'READY' | 'IN_PROGRESS' | 'FAILURE' | 'REMOVING';
|
|
217
|
+
export type ProjectLocation = 'marketplace' | 'git' | 'upload';
|
|
218
|
+
export interface IProcessTestReport {
|
|
219
|
+
ExecutionId: string;
|
|
220
|
+
Project: string;
|
|
221
|
+
ProjectVersion: string;
|
|
222
|
+
Success: boolean;
|
|
223
|
+
SuccessCount: number;
|
|
224
|
+
FailureCount: number;
|
|
225
|
+
Tests: IProcessTestExecutionResult[];
|
|
226
|
+
}
|
|
227
|
+
export interface IProcessTestExecutionResult {
|
|
228
|
+
Name: string;
|
|
229
|
+
Success: boolean;
|
|
230
|
+
Errors: string[];
|
|
231
|
+
Asserts: IProcessTestAssertionResult[];
|
|
232
|
+
}
|
|
233
|
+
export interface IProcessTestAssertionResult {
|
|
234
|
+
Name: string;
|
|
235
|
+
Success: boolean;
|
|
236
|
+
Errors: string[];
|
|
237
|
+
}
|