zcatalyst-cli 1.25.3 → 1.26.1
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/lib/api-timer.d.ts +0 -1
- package/lib/apig-utils.d.ts +1 -1
- package/lib/apig-utils.js +1 -1
- package/lib/appsail-utils.js +6 -7
- package/lib/archiver.d.ts +0 -4
- package/lib/archiver.js +21 -11
- package/lib/authentication/constants/auth.js +1 -1
- package/lib/authentication/credential.js +3 -3
- package/lib/authentication/index.js +25 -14
- package/lib/authentication/login.d.ts +0 -2
- package/lib/authentication/login.js +23 -10
- package/lib/bin/catalyst.js +17 -7
- package/lib/client-utils.d.ts +3 -3
- package/lib/client-utils.js +2 -2
- package/lib/client.js +19 -9
- package/lib/code-deck.d.ts +0 -2
- package/lib/code-deck.js +4 -4
- package/lib/command_needs/config.js +1 -1
- package/lib/command_needs/rc.js +5 -2
- package/lib/commands/appsail/add.js +17 -7
- package/lib/commands/client/setup.js +17 -7
- package/lib/commands/config/set.js +5 -3
- package/lib/commands/deploy/appsail.js +37 -14
- package/lib/commands/deploy/index.js +88 -66
- package/lib/commands/deploy/slate.js +37 -14
- package/lib/commands/event/generate/integ.js +18 -9
- package/lib/commands/functions/add.js +17 -7
- package/lib/commands/functions/execute.js +17 -7
- package/lib/commands/functions/setup.js +17 -7
- package/lib/commands/functions/shell.js +17 -7
- package/lib/commands/iac/import.js +18 -8
- package/lib/commands/iac/pack.js +17 -7
- package/lib/commands/iac/status.js +17 -7
- package/lib/commands/index.js +20 -12
- package/lib/commands/init.js +17 -7
- package/lib/commands/login.js +17 -7
- package/lib/commands/logout.js +17 -7
- package/lib/commands/project/list.js +17 -7
- package/lib/commands/project/use.js +1 -0
- package/lib/commands/pull.js +17 -7
- package/lib/commands/run.js +17 -7
- package/lib/commands/serve.js +17 -7
- package/lib/commands/signals/generate/index.js +1 -1
- package/lib/commands/slate/create.js +17 -7
- package/lib/commands/slate/link.js +17 -7
- package/lib/commands/token/generate.js +17 -7
- package/lib/commands/token/list.js +17 -7
- package/lib/commands/token/revoke.js +17 -7
- package/lib/commands/zest/generate/index.js +21 -11
- package/lib/deploy/features/appsail/index.js +2 -3
- package/lib/deploy/features/appsail/pack.d.ts +0 -1
- package/lib/deploy/features/appsail/pack.js +2 -3
- package/lib/deploy/features/appsail/utils.js +7 -8
- package/lib/deploy/features/functions/languages/index.js +3 -4
- package/lib/deploy/features/index.js +17 -7
- package/lib/deploy/features/slate.js +11 -8
- package/lib/deploy/index.js +2 -2
- package/lib/deploy/util.d.ts +2 -0
- package/lib/deploy/util.js +3 -1
- package/lib/docs/commands/signals/generate/generate.toml +19 -0
- package/lib/docs/commands/slate/unlink.toml +9 -0
- package/lib/docs/fn-utils/lib/node.toml +4 -0
- package/lib/docs/init/dependencies/python/ensure-python.toml +4 -0
- package/lib/docs/serve/server/lib/slate/index.toml +20 -0
- package/lib/docs/slate-utils.toml +9 -0
- package/lib/endpoints/index.d.ts +2 -1
- package/lib/endpoints/index.js +88 -79
- package/lib/endpoints/lib/apig.d.ts +0 -1
- package/lib/endpoints/lib/apig.js +2 -2
- package/lib/endpoints/lib/applogic.d.ts +0 -1
- package/lib/endpoints/lib/applogic.js +2 -2
- package/lib/endpoints/lib/appsail.d.ts +1 -4
- package/lib/endpoints/lib/appsail.js +7 -7
- package/lib/endpoints/lib/client.d.ts +0 -1
- package/lib/endpoints/lib/code-deck.js +1 -1
- package/lib/endpoints/lib/common.d.ts +0 -2
- package/lib/endpoints/lib/ds-bulk.js +2 -2
- package/lib/endpoints/lib/env.js +2 -2
- package/lib/endpoints/lib/filestore.d.ts +0 -1
- package/lib/endpoints/lib/functions.d.ts +0 -1
- package/lib/endpoints/lib/functions.js +2 -2
- package/lib/endpoints/lib/git-hub.d.ts +0 -2
- package/lib/endpoints/lib/iac.d.ts +0 -3
- package/lib/endpoints/lib/iac.js +2 -2
- package/lib/endpoints/lib/project.d.ts +0 -1
- package/lib/endpoints/lib/project.js +2 -2
- package/lib/endpoints/lib/sdk.d.ts +0 -2
- package/lib/endpoints/lib/sdk.js +1 -1
- package/lib/endpoints/lib/slate.d.ts +0 -1
- package/lib/endpoints/lib/stratus.d.ts +0 -1
- package/lib/endpoints/lib/user.d.ts +0 -2
- package/lib/endpoints/lib/user.js +2 -1
- package/lib/error/context-help.js +1 -1
- package/lib/error/index.js +2 -2
- package/lib/event_generate/cache.js +4 -4
- package/lib/event_generate/custom.js +1 -2
- package/lib/event_generate/datastore.js +4 -4
- package/lib/event_generate/filestore.js +4 -4
- package/lib/event_generate/github.js +2 -2
- package/lib/event_generate/index.js +19 -11
- package/lib/event_generate/stratus.js +2 -2
- package/lib/event_generate/user.js +2 -2
- package/lib/event_generate/webapp.js +2 -2
- package/lib/execute/caller.d.ts +0 -1
- package/lib/execute/caller.js +20 -7
- package/lib/execute/index.js +27 -4
- package/lib/execute-script.js +22 -13
- package/lib/express_middlewares/auth-checker.js +2 -3
- package/lib/express_middlewares/project.d.ts +1 -1
- package/lib/fn-utils/index.js +17 -7
- package/lib/fn-utils/lib/browserLogic.js +4 -5
- package/lib/fn-utils/lib/common.d.ts +0 -1
- package/lib/fn-utils/lib/common.js +25 -26
- package/lib/fn-utils/lib/integ.js +2 -3
- package/lib/fn-utils/lib/java/classpath.js +2 -3
- package/lib/fn-utils/lib/java/compile.js +4 -4
- package/lib/fn-utils/lib/java/ensure-java-userconfig.d.ts +10 -0
- package/lib/fn-utils/lib/java/ensure-java-userconfig.js +45 -23
- package/lib/fn-utils/lib/java/index.d.ts +0 -1
- package/lib/fn-utils/lib/java/index.js +11 -11
- package/lib/fn-utils/lib/java/keywords.js +2 -2
- package/lib/fn-utils/lib/node.d.ts +1 -1
- package/lib/fn-utils/lib/node.js +67 -15
- package/lib/fn-utils/lib/python.js +29 -19
- package/lib/iac/status/util/index.d.ts +1 -1
- package/lib/init/dependencies/npm-install.js +2 -2
- package/lib/init/dependencies/python/ensure-python.d.ts +2 -2
- package/lib/init/dependencies/python/ensure-python.js +65 -58
- package/lib/init/dependencies/python/pip-install.d.ts +3 -5
- package/lib/init/dependencies/python/pip-install.js +14 -53
- package/lib/init/features/appsail/utils.js +21 -12
- package/lib/init/features/client/index.js +18 -9
- package/lib/init/features/client/initializers/angular.js +17 -7
- package/lib/init/features/client/initializers/basic.js +17 -7
- package/lib/init/features/client/initializers/lyte.js +17 -7
- package/lib/init/features/client/initializers/react.js +17 -7
- package/lib/init/features/index.js +29 -20
- package/lib/init/features/project.js +5 -5
- package/lib/init/features/slate/index.js +23 -11
- package/lib/init/util/client.js +23 -13
- package/lib/init/util/common.js +5 -6
- package/lib/init/util/project.js +1 -1
- package/lib/internal/api.d.ts +0 -3
- package/lib/internal/api.js +19 -9
- package/lib/internal/command.js +18 -9
- package/lib/migration/global/1.25.0.d.ts +2 -0
- package/lib/migration/global/1.25.0.js +28 -0
- package/lib/migration/index.js +20 -12
- package/lib/option-filter.js +19 -10
- package/lib/optional-import.js +19 -10
- package/lib/plugin-loader.d.ts +0 -2
- package/lib/plugin-loader.js +18 -8
- package/lib/port-resolver.js +10 -10
- package/lib/prompt/index.d.ts +3 -3
- package/lib/prompt/index.js +17 -7
- package/lib/prompt/types/file-path.d.ts +0 -1
- package/lib/prompt/types/search-box.d.ts +0 -1
- package/lib/prompt/types/tree.d.ts +1 -2
- package/lib/prompt/types/tree.js +10 -10
- package/lib/prompt/types/with-description.d.ts +0 -1
- package/lib/pull/features/functions/index.js +71 -52
- package/lib/pull/features/functions/languages.js +3 -4
- package/lib/pull/features/index.js +17 -7
- package/lib/repl-server.d.ts +0 -1
- package/lib/repl-server.js +9 -1
- package/lib/serve/features/apig.js +7 -1
- package/lib/serve/features/appsail.d.ts +1 -0
- package/lib/serve/features/appsail.js +51 -7
- package/lib/serve/features/index.js +22 -13
- package/lib/serve/index.js +17 -7
- package/lib/serve/server/index.d.ts +0 -2
- package/lib/serve/server/index.js +26 -12
- package/lib/serve/server/lib/appsail/index.js +27 -34
- package/lib/serve/server/lib/appsail/util.d.ts +11 -0
- package/lib/serve/server/lib/appsail/util.js +69 -0
- package/lib/serve/server/lib/java/index.js +18 -7
- package/lib/serve/server/lib/master/appsail.js +3 -4
- package/lib/serve/server/lib/master/functions.js +1 -2
- package/lib/serve/server/lib/master/index.d.ts +0 -1
- package/lib/serve/server/lib/master/index.js +5 -5
- package/lib/serve/server/lib/master/slate.js +1 -2
- package/lib/serve/server/lib/master/unknown-req-proxy.js +5 -2
- package/lib/serve/server/lib/master/utils.d.ts +4 -8
- package/lib/serve/server/lib/master/utils.js +4 -6
- package/lib/serve/server/lib/master/web-client.js +1 -2
- package/lib/serve/server/lib/node/index.js +22 -11
- package/lib/serve/server/lib/node/server/browserlogic/utils/playwright-handler.js +1 -1
- package/lib/serve/server/lib/node/server/browserlogic/utils/puppeteer-handler.js +1 -1
- package/lib/serve/server/lib/node/server/browserlogic/utils/selenium-handler.js +2 -0
- package/lib/serve/server/lib/python/index.js +23 -14
- package/lib/serve/server/lib/slate/index.js +7 -0
- package/lib/serve/server/lib/slate/static-server.d.ts +0 -1
- package/lib/serve/server/lib/slate/static-server.js +5 -4
- package/lib/serve/server/lib/web_client/server.d.ts +0 -1
- package/lib/serve/server/lib/web_client/server.js +5 -4
- package/lib/shell/dependencies/http-functions.d.ts +0 -2
- package/lib/shell/dependencies/http-functions.js +7 -7
- package/lib/shell/dependencies/non-http-function/fn-execution-handler.d.ts +0 -2
- package/lib/shell/dependencies/non-http-function/fn-execution-handler.js +55 -24
- package/lib/shell/dependencies/non-http-function/fn-handler.d.ts +3 -3
- package/lib/shell/dependencies/non-http-function/fn-handler.js +54 -20
- package/lib/shell/dependencies/non-http-function/node.js +4 -4
- package/lib/shell/dependencies/non-http-function/python.d.ts +1 -1
- package/lib/shell/dependencies/non-http-function/python.js +11 -13
- package/lib/shell/dependencies/non-http-function/slave-manager.d.ts +0 -2
- package/lib/shell/dependencies/non-http-function/slave-manager.js +11 -7
- package/lib/shell/dependencies/tunnel-server.js +4 -4
- package/lib/shell/index.js +50 -3
- package/lib/shell/prepare/index.js +4 -3
- package/lib/shell/prepare/languages/index.js +18 -9
- package/lib/shell/prepare/languages/node.js +29 -19
- package/lib/shell/prepare/languages/python.js +6 -12
- package/lib/signals/index.js +19 -11
- package/lib/slate-utils.js +25 -16
- package/lib/throbber/index.d.ts +1 -2
- package/lib/throbber/index.js +5 -2
- package/lib/throbber/utils.d.ts +0 -1
- package/lib/throbber/utils.js +4 -5
- package/lib/userConfig.d.ts +14 -0
- package/lib/userConfig.js +15 -1
- package/lib/util_modules/config/index.js +17 -7
- package/lib/util_modules/config/lib/apig.d.ts +1 -0
- package/lib/util_modules/config/lib/apig.js +10 -5
- package/lib/util_modules/config/lib/appsail.js +7 -7
- package/lib/util_modules/config/lib/client.js +5 -6
- package/lib/util_modules/config/lib/functions.js +5 -6
- package/lib/util_modules/config/lib/slate.d.ts +2 -1
- package/lib/util_modules/config/lib/slate.js +27 -13
- package/lib/util_modules/config-store.d.ts +1 -1
- package/lib/util_modules/config-store.js +30 -13
- package/lib/util_modules/constants/lib/apig-rules.d.ts +1 -1
- package/lib/util_modules/constants/lib/dc-type.js +3 -3
- package/lib/util_modules/constants/lib/placeholders.d.ts +1 -1
- package/lib/util_modules/constants/lib/placeholders.js +1 -1
- package/lib/util_modules/constants/lib/urls.js +2 -9
- package/lib/util_modules/container.js +23 -14
- package/lib/util_modules/dc.js +3 -4
- package/lib/util_modules/env.d.ts +3 -0
- package/lib/util_modules/env.js +64 -4
- package/lib/util_modules/event-emitter.d.ts +9 -0
- package/lib/util_modules/event-emitter.js +68 -0
- package/lib/util_modules/fs/index.js +17 -7
- package/lib/util_modules/fs/lib/async.d.ts +0 -4
- package/lib/util_modules/fs/lib/async.js +46 -46
- package/lib/util_modules/fs/lib/sync.d.ts +1 -3
- package/lib/util_modules/fs/lib/sync.js +40 -30
- package/lib/util_modules/logger/index.js +12 -12
- package/lib/util_modules/logger/utils.d.ts +0 -4
- package/lib/util_modules/logger/utils.js +1 -1
- package/lib/util_modules/logger/winston.js +2 -2
- package/lib/util_modules/option.js +5 -6
- package/lib/util_modules/project.js +22 -23
- package/lib/util_modules/runtime-store.d.ts +2 -2
- package/lib/util_modules/server.d.ts +1 -2
- package/lib/util_modules/server.js +54 -15
- package/lib/util_modules/shell.d.ts +0 -3
- package/lib/util_modules/shell.js +5 -6
- package/lib/util_modules/toml.js +2 -3
- package/package.json +13 -13
- package/templates/init/functions/java/event/sample.java +5 -2
- package/templates/web-socket.txt +1 -1
- /package/lib/docs/{commands/event/generate → event_generate}/index.toml +0 -0
- /package/templates/init/functions/java/integ/convokraft/{Sample.java → sample.java} +0 -0
|
@@ -12,7 +12,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.node = node;
|
|
16
|
+
exports.java = java;
|
|
17
|
+
exports.python = python;
|
|
16
18
|
const fn_utils_1 = require("../../../../fn-utils");
|
|
17
19
|
const throbber_1 = __importDefault(require("../../../../throbber"));
|
|
18
20
|
function deploy(targets, lang) {
|
|
@@ -54,16 +56,13 @@ function node(targets) {
|
|
|
54
56
|
return deploy(targets, 'node');
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
|
-
exports.node = node;
|
|
58
59
|
function java(targets) {
|
|
59
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
61
|
return deploy(targets, 'java');
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
exports.java = java;
|
|
64
64
|
function python(targets) {
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
return deploy(targets, 'python');
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
exports.python = python;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12,7 +12,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.getEnvironmentType = getEnvironmentType;
|
|
16
|
+
exports.slateLogger = slateLogger;
|
|
16
17
|
const slate_utils_1 = require("../../slate-utils");
|
|
17
18
|
const endpoints_1 = require("../../endpoints");
|
|
18
19
|
const runtime_store_1 = __importDefault(require("../../runtime-store"));
|
|
@@ -26,7 +27,7 @@ const urls_1 = __importDefault(require("../../util_modules/constants/lib/urls"))
|
|
|
26
27
|
const project_1 = require("../../util_modules/project");
|
|
27
28
|
exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
29
|
const env = getEnvironmentType();
|
|
29
|
-
const targets = yield config_1.slateConfig.getAllTargetDetails(false);
|
|
30
|
+
const targets = yield config_1.slateConfig.getAllTargetDetails(false, false);
|
|
30
31
|
if (!targets || targets.length === 0) {
|
|
31
32
|
throw new error_1.default('No targets found');
|
|
32
33
|
}
|
|
@@ -49,7 +50,6 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
49
50
|
const slateAppConfigs = yield (yield (0, endpoints_1.slateAPI)({ env })).getAllApps();
|
|
50
51
|
const throbber = throbber_1.default.getInstance();
|
|
51
52
|
const deployRes = yield validTargets.reduce((result, _targ) => __awaiter(void 0, void 0, void 0, function* () {
|
|
52
|
-
var _a;
|
|
53
53
|
const targ = _targ;
|
|
54
54
|
const prevRes = yield result;
|
|
55
55
|
try {
|
|
@@ -58,9 +58,14 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
58
58
|
text: `Preparing Slate[${targ.name}]`
|
|
59
59
|
});
|
|
60
60
|
const isAppExists = slateAppConfigs.find((app) => app.name === targ.name && app.app_type === 'cli');
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
let configDetails;
|
|
62
|
+
if (!isAppExists) {
|
|
63
|
+
const targetWithConfig = yield config_1.slateConfig.getTargetDetails(targ);
|
|
64
|
+
if (!targetWithConfig.config) {
|
|
65
|
+
throw new error_1.default('Unable to read slate configuration for deploy');
|
|
66
|
+
}
|
|
67
|
+
configDetails = targetWithConfig.config;
|
|
68
|
+
}
|
|
64
69
|
const deploymentName = configDetails === null || configDetails === void 0 ? void 0 : configDetails.deployment_name;
|
|
65
70
|
deploymentName ? configDetails === null || configDetails === void 0 ? true : delete configDetails.deployment_name : null;
|
|
66
71
|
const readStream = yield slate_utils_1.slateUtils.pack(targ.source);
|
|
@@ -99,7 +104,6 @@ function getEnvironmentType() {
|
|
|
99
104
|
((_a = process.env.ZC_ENVIRONMENT) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'production';
|
|
100
105
|
return isProduction ? 'Production' : 'Development';
|
|
101
106
|
}
|
|
102
|
-
exports.getEnvironmentType = getEnvironmentType;
|
|
103
107
|
function slateLogger() {
|
|
104
108
|
const deployTargets = runtime_store_1.default.get('context.payload.slate.targets', []);
|
|
105
109
|
deployTargets.forEach((slate) => {
|
|
@@ -110,4 +114,3 @@ function slateLogger() {
|
|
|
110
114
|
});
|
|
111
115
|
return deployTargets;
|
|
112
116
|
}
|
|
113
|
-
exports.slateLogger = slateLogger;
|
package/lib/deploy/index.js
CHANGED
|
@@ -16,8 +16,8 @@ const index_js_1 = __importDefault(require("../error/index.js"));
|
|
|
16
16
|
const runtime_store_1 = __importDefault(require("../runtime-store"));
|
|
17
17
|
const index_1 = require("../util_modules/logger/index");
|
|
18
18
|
const features_1 = __importDefault(require("./features"));
|
|
19
|
-
function deploy(
|
|
20
|
-
return __awaiter(this,
|
|
19
|
+
function deploy() {
|
|
20
|
+
return __awaiter(this, arguments, void 0, function* ({ feature = '', error = [] } = {}) {
|
|
21
21
|
const deployTargets = runtime_store_1.default.get('context.targets', feature ? [feature] : []);
|
|
22
22
|
if (deployTargets.length === 0) {
|
|
23
23
|
return error;
|
package/lib/deploy/util.d.ts
CHANGED
package/lib/deploy/util.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.logPaddedLabels = void 0;
|
|
3
|
+
exports.logPaddedLabels = exports.DeployEvents = void 0;
|
|
4
|
+
const event_emitter_1 = require("../util_modules/event-emitter");
|
|
4
5
|
const logger_1 = require("../util_modules/logger");
|
|
6
|
+
exports.DeployEvents = new event_emitter_1.CatalystEventEmitter();
|
|
5
7
|
const logPaddedLabels = (logs, padLeft = '') => {
|
|
6
8
|
const longestLabel = logs.reduce((max, cur) => {
|
|
7
9
|
if (typeof cur === 'string') {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[IDX-1]
|
|
2
|
+
context = '''The options provided ${arg[0]}(publisher_service) ${arg[1]}(event_name) are not in a pair.'''
|
|
3
|
+
aid = '''Please provide the options as key values in this format: ${arg[2]}'''
|
|
4
|
+
link = ''
|
|
5
|
+
|
|
6
|
+
[IDX-2]
|
|
7
|
+
context = '''The provided input for publisher service is invalid.'''
|
|
8
|
+
aid = '''The publisher service must be one of the following: \n${arg[0]}'''
|
|
9
|
+
link = ''
|
|
10
|
+
|
|
11
|
+
[IDX-3]
|
|
12
|
+
context = '''The options are provided in an invalid format: ${arg[0]}'''
|
|
13
|
+
aid = '''Please provide the options only in this format: ${arg[1]}'''
|
|
14
|
+
link = ''
|
|
15
|
+
|
|
16
|
+
[IDX-4]
|
|
17
|
+
context = '''The provided event is not compatible with the publisher service: ${arg[0]} ${arg[1]} ${arg[2]} '''
|
|
18
|
+
aid = '''The compatible events with the publisher service ${arg[2]} are: \n${arg[3]}'''
|
|
19
|
+
link = ''
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[SLULK-1]
|
|
2
|
+
context = '''No app linked to the Catalyst Slate service.'''
|
|
3
|
+
aid = '''Please link your existing slate app by running the command ${arg[0]}.'''
|
|
4
|
+
link = ''
|
|
5
|
+
|
|
6
|
+
[SLULK-2]
|
|
7
|
+
context = '''No slate app linked with the given name.'''
|
|
8
|
+
aid = '''Please check the available slate apps by running the command ${arg[0]} without any options.'''
|
|
9
|
+
link = ''
|
|
@@ -2,3 +2,7 @@
|
|
|
2
2
|
context = '''The main file ${arg[0]} mentioned in the ${arg[1]} file does not exists in the function(${arg[2]}) directory.'''
|
|
3
3
|
aid = '''Please specify a valid main file in the ${arg[1]} file.'''
|
|
4
4
|
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Node'
|
|
5
|
+
|
|
6
|
+
[NODE-2]
|
|
7
|
+
context = '''The required node.js runtime version ${arg[0]} is not present in the system path'''
|
|
8
|
+
aid = '''Please install node.js version ${arg[0]} and configure it using the ${arg[1]}'''
|
|
@@ -10,3 +10,7 @@ link = 'https://pip.pypa.io/en/stable/installation/#'
|
|
|
10
10
|
[PY-2]
|
|
11
11
|
context = '''unable to locate python${arg[0]} in your system'''
|
|
12
12
|
aid = '''kindly ensure python${arg[0]} and update its binary path with the command "${arg[1]}"'''
|
|
13
|
+
|
|
14
|
+
[PY-2-EXT]
|
|
15
|
+
context = '''unable to locate python${arg[0]} in your system'''
|
|
16
|
+
aid = '''kindly ensure python${arg[0]} and updated its binary in the setting "${arg[1]}"'''
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[SERVE-SLATE-1]
|
|
2
|
+
context = '''The given app is not configured with catalyst project.'''
|
|
3
|
+
aid = '''Please run the command ${arg[0]} to link your app with catalyst project.'''
|
|
4
|
+
link = 'https://docs.catalyst.zoho.com/en/cli/v1/working-with-slate/create-slate-app/'
|
|
5
|
+
|
|
6
|
+
[SERVE-SLATE-2]
|
|
7
|
+
context = '''Not able to start the server using the given development command ${arg[0]}.'''
|
|
8
|
+
aid = '''Please provide a valid development command'''
|
|
9
|
+
link = 'https://docs.catalyst.zoho.com/en/cli/v1/serve-resources/serve-all-resources/#serve-a-slate-app'
|
|
10
|
+
|
|
11
|
+
[SERVE-SLATE-3]
|
|
12
|
+
context = '''Error when installing the dependencies.'''
|
|
13
|
+
aid = '''Please install the necessary packages before running the command ${arg[0]}'''
|
|
14
|
+
link = 'https://docs.catalyst.zoho.com/en/cli/v1/serve-resources/serve-all-resources/#serve-a-slate-app'
|
|
15
|
+
|
|
16
|
+
[SERVE-SLATE-4]
|
|
17
|
+
context = '''The cli-config.json file was not found in the slate source directory ${arg[0]}.'''
|
|
18
|
+
aid = '''Please ensure cli-config.json exists in the slate source directory with a valid dev_command using ZC_SLATE_PORT.'''
|
|
19
|
+
link = 'https://docs.catalyst.zoho.com/en/cli/v1/serve-resources/serve-all-resources/#serve-a-slate-app'
|
|
20
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[SLATE-UTILS-1]
|
|
2
|
+
context = '''The slate source directory ${arg[0]} does not exist.'''
|
|
3
|
+
aid = '''Please specify a valid source directory for the slate.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/slate-client.html'
|
|
5
|
+
|
|
6
|
+
[SLATE-UTILS-2]
|
|
7
|
+
context = '''The Slate port configuration is not set properly in ${arg[0]}'''
|
|
8
|
+
aid = '''Please update the port configuration in your development command to use ${arg[1]}'''
|
|
9
|
+
link = 'https://docs.catalyst.zoho.com/en/cli/v1/serve-resources/serve-all-resources/#serve-a-slate-app'
|
package/lib/endpoints/index.d.ts
CHANGED
|
@@ -54,11 +54,12 @@ export declare function slateAPI({ auth, projectId, env }?: {
|
|
|
54
54
|
projectId?: string | undefined;
|
|
55
55
|
env?: string | undefined;
|
|
56
56
|
}): Promise<import("./lib/slate").default>;
|
|
57
|
-
export declare function apigAPI({ auth, projectId, env, org }?: {
|
|
57
|
+
export declare function apigAPI({ auth, projectId, env, org, printError }?: {
|
|
58
58
|
auth?: boolean | undefined;
|
|
59
59
|
projectId?: string | undefined;
|
|
60
60
|
env?: string | undefined;
|
|
61
61
|
org?: string | undefined;
|
|
62
|
+
printError?: boolean | undefined;
|
|
62
63
|
}): Promise<import("./lib/apig").default>;
|
|
63
64
|
export declare function bulkDSAPI({ auth, projectId, env, org }?: {
|
|
64
65
|
auth?: boolean | undefined;
|
package/lib/endpoints/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,129 +42,137 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.
|
|
45
|
+
exports.orgAPI = orgAPI;
|
|
46
|
+
exports.projectAPI = projectAPI;
|
|
47
|
+
exports.envAPI = envAPI;
|
|
48
|
+
exports.sdkAPI = sdkAPI;
|
|
49
|
+
exports.detailsAPI = detailsAPI;
|
|
50
|
+
exports.cacheAPI = cacheAPI;
|
|
51
|
+
exports.filestoreAPI = filestoreAPI;
|
|
52
|
+
exports.queueAPI = queueAPI;
|
|
53
|
+
exports.zcqlAPI = zcqlAPI;
|
|
54
|
+
exports.datastoreAPI = datastoreAPI;
|
|
55
|
+
exports.clientAPI = clientAPI;
|
|
56
|
+
exports.slateAPI = slateAPI;
|
|
57
|
+
exports.apigAPI = apigAPI;
|
|
58
|
+
exports.bulkDSAPI = bulkDSAPI;
|
|
59
|
+
exports.applogicAPI = applogicAPI;
|
|
60
|
+
exports.functionsAPI = functionsAPI;
|
|
61
|
+
exports.eventBusAPI = eventBusAPI;
|
|
62
|
+
exports.logAPI = logAPI;
|
|
63
|
+
exports.appSailAPI = appSailAPI;
|
|
64
|
+
exports.zestAPI = zestAPI;
|
|
65
|
+
exports.stratusAPI = stratusAPI;
|
|
66
|
+
exports.gitHubAPI = gitHubAPI;
|
|
67
|
+
exports.codeDeck = codeDeck;
|
|
68
|
+
exports.jobScheduling = jobScheduling;
|
|
69
|
+
exports.commonAPI = commonAPI;
|
|
70
|
+
exports.tunnelAPI = tunnelAPI;
|
|
36
71
|
const project_1 = require("../util_modules/project");
|
|
37
|
-
function orgAPI(
|
|
38
|
-
return __awaiter(this,
|
|
72
|
+
function orgAPI() {
|
|
73
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true } = {}) {
|
|
39
74
|
const org = (yield Promise.resolve().then(() => __importStar(require('./lib/org')))).default;
|
|
40
75
|
return new org({ authNeeded: auth });
|
|
41
76
|
});
|
|
42
77
|
}
|
|
43
|
-
|
|
44
|
-
function
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
function projectAPI() {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, org = (0, project_1.getEnvId)(), printError = true } = {}) {
|
|
46
80
|
const project = (yield Promise.resolve().then(() => __importStar(require('./lib/project')))).default;
|
|
47
81
|
return new project({ authNeeded: auth, printError }, org);
|
|
48
82
|
});
|
|
49
83
|
}
|
|
50
|
-
|
|
51
|
-
function
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
function envAPI() {
|
|
85
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, org = (0, project_1.getEnvId)() } = {}) {
|
|
53
86
|
const env = (yield Promise.resolve().then(() => __importStar(require('./lib/env')))).default;
|
|
54
87
|
return new env({ authNeeded: auth }, org);
|
|
55
88
|
});
|
|
56
89
|
}
|
|
57
|
-
|
|
58
|
-
function
|
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
function sdkAPI() {
|
|
91
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true } = {}) {
|
|
60
92
|
const sdk = (yield Promise.resolve().then(() => __importStar(require('./lib/sdk')))).default;
|
|
61
93
|
return new sdk({ authNeeded: auth });
|
|
62
94
|
});
|
|
63
95
|
}
|
|
64
|
-
exports.sdkAPI = sdkAPI;
|
|
65
96
|
function detailsAPI() {
|
|
66
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
98
|
const details = (yield Promise.resolve().then(() => __importStar(require('./lib/catalyst-details')))).default;
|
|
68
99
|
return new details();
|
|
69
100
|
});
|
|
70
101
|
}
|
|
71
|
-
|
|
72
|
-
function
|
|
73
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
function cacheAPI() {
|
|
103
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
74
104
|
const cache = (yield Promise.resolve().then(() => __importStar(require('./lib/cache')))).default;
|
|
75
105
|
return new cache(projectId, { authNeeded: auth, env, envId: org });
|
|
76
106
|
});
|
|
77
107
|
}
|
|
78
|
-
|
|
79
|
-
function
|
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
function filestoreAPI() {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
81
110
|
const filestore = (yield Promise.resolve().then(() => __importStar(require('./lib/filestore')))).default;
|
|
82
111
|
return new filestore(projectId, { authNeeded: auth, env, envId: org });
|
|
83
112
|
});
|
|
84
113
|
}
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
function queueAPI() {
|
|
115
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
|
|
88
116
|
const queue = (yield Promise.resolve().then(() => __importStar(require('./lib/queue')))).default;
|
|
89
117
|
return new queue(projectId, { authNeeded: auth, env });
|
|
90
118
|
});
|
|
91
119
|
}
|
|
92
|
-
|
|
93
|
-
function
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
function zcqlAPI() {
|
|
121
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
95
122
|
const zcql = (yield Promise.resolve().then(() => __importStar(require('./lib/zcql')))).default;
|
|
96
123
|
return new zcql(projectId, { authNeeded: auth, env, envId: org });
|
|
97
124
|
});
|
|
98
125
|
}
|
|
99
|
-
|
|
100
|
-
function
|
|
101
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
function datastoreAPI() {
|
|
127
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
102
128
|
const datastore = (yield Promise.resolve().then(() => __importStar(require('./lib/datastore')))).default;
|
|
103
129
|
return new datastore(projectId, { authNeeded: auth, env, envId: org });
|
|
104
130
|
});
|
|
105
131
|
}
|
|
106
|
-
|
|
107
|
-
function
|
|
108
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
function clientAPI() {
|
|
133
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
109
134
|
const client = (yield Promise.resolve().then(() => __importStar(require('./lib/client')))).default;
|
|
110
135
|
return new client(projectId, { authNeeded: auth, env, envId: org });
|
|
111
136
|
});
|
|
112
137
|
}
|
|
113
|
-
|
|
114
|
-
function
|
|
115
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
function slateAPI() {
|
|
139
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
|
|
116
140
|
const slate = (yield Promise.resolve().then(() => __importStar(require('./lib/slate')))).default;
|
|
117
141
|
return new slate(projectId, { authNeeded: auth, env });
|
|
118
142
|
});
|
|
119
143
|
}
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
function apigAPI() {
|
|
145
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)(), printError = true } = {}) {
|
|
123
146
|
const apig = (yield Promise.resolve().then(() => __importStar(require('./lib/apig')))).default;
|
|
124
|
-
return new apig(projectId, { authNeeded: auth, env, envId: org });
|
|
147
|
+
return new apig(projectId, { authNeeded: auth, env, envId: org, printError });
|
|
125
148
|
});
|
|
126
149
|
}
|
|
127
|
-
|
|
128
|
-
function
|
|
129
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
function bulkDSAPI() {
|
|
151
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
130
152
|
const bulk = (yield Promise.resolve().then(() => __importStar(require('./lib/ds-bulk')))).default;
|
|
131
153
|
return new bulk(projectId, { authNeeded: auth, env, envId: org });
|
|
132
154
|
});
|
|
133
155
|
}
|
|
134
|
-
|
|
135
|
-
function
|
|
136
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
function applogicAPI() {
|
|
157
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
137
158
|
const applogic = (yield Promise.resolve().then(() => __importStar(require('./lib/applogic')))).default;
|
|
138
159
|
return new applogic(projectId, { authNeeded: auth, env, envId: org });
|
|
139
160
|
});
|
|
140
161
|
}
|
|
141
|
-
|
|
142
|
-
function
|
|
143
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
function functionsAPI() {
|
|
163
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
144
164
|
const functions = (yield Promise.resolve().then(() => __importStar(require('./lib/functions')))).default;
|
|
145
165
|
return new functions(projectId, { authNeeded: auth, env, envId: org });
|
|
146
166
|
});
|
|
147
167
|
}
|
|
148
|
-
|
|
149
|
-
function
|
|
150
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
function eventBusAPI() {
|
|
169
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
151
170
|
const event = (yield Promise.resolve().then(() => __importStar(require('./lib/event-bus')))).default;
|
|
152
171
|
return new event(projectId, { authNeeded: auth, env, envId: org });
|
|
153
172
|
});
|
|
154
173
|
}
|
|
155
|
-
|
|
156
|
-
function
|
|
157
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
function logAPI() {
|
|
175
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(-1), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
158
176
|
if (projectId === -1) {
|
|
159
177
|
return;
|
|
160
178
|
}
|
|
@@ -162,60 +180,51 @@ function logAPI({ auth = true, projectId = (0, project_1.getProjectId)(-1), env
|
|
|
162
180
|
return new log(projectId, { authNeeded: auth, env, envId: org });
|
|
163
181
|
});
|
|
164
182
|
}
|
|
165
|
-
|
|
166
|
-
function
|
|
167
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
function appSailAPI() {
|
|
184
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
|
|
168
185
|
const appSail = (yield Promise.resolve().then(() => __importStar(require('./lib/appsail.js')))).default;
|
|
169
186
|
return new appSail(projectId, { authNeeded: auth, env, envId: org });
|
|
170
187
|
});
|
|
171
188
|
}
|
|
172
|
-
|
|
173
|
-
function
|
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
function zestAPI() {
|
|
190
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
|
|
175
191
|
const zest = (yield Promise.resolve().then(() => __importStar(require('./lib/zest.js')))).default;
|
|
176
192
|
return new zest(projectId, { authNeeded: auth, env, isExternal: true });
|
|
177
193
|
});
|
|
178
194
|
}
|
|
179
|
-
|
|
180
|
-
function
|
|
181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
function stratusAPI() {
|
|
196
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
|
|
182
197
|
const stratus = (yield Promise.resolve().then(() => __importStar(require('./lib/stratus')))).default;
|
|
183
198
|
return new stratus(projectId, { authNeeded: auth, env });
|
|
184
199
|
});
|
|
185
200
|
}
|
|
186
|
-
exports.stratusAPI = stratusAPI;
|
|
187
201
|
function gitHubAPI() {
|
|
188
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
203
|
const gitHub = (yield Promise.resolve().then(() => __importStar(require('./lib/git-hub')))).default;
|
|
190
204
|
return new gitHub();
|
|
191
205
|
});
|
|
192
206
|
}
|
|
193
|
-
exports.gitHubAPI = gitHubAPI;
|
|
194
207
|
function codeDeck() {
|
|
195
208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
196
209
|
const codeDeck = (yield Promise.resolve().then(() => __importStar(require('./lib/code-deck')))).default;
|
|
197
210
|
return new codeDeck({ authNeeded: false });
|
|
198
211
|
});
|
|
199
212
|
}
|
|
200
|
-
|
|
201
|
-
function
|
|
202
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
function jobScheduling() {
|
|
214
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)() } = {}) {
|
|
203
215
|
const jobScheduling = (yield Promise.resolve().then(() => __importStar(require('./lib/job-scheduling')))).default;
|
|
204
216
|
return new jobScheduling(projectId, { authNeeded: auth });
|
|
205
217
|
});
|
|
206
218
|
}
|
|
207
|
-
exports.jobScheduling = jobScheduling;
|
|
208
219
|
function commonAPI() {
|
|
209
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
221
|
const common = (yield Promise.resolve().then(() => __importStar(require('./lib/common')))).default;
|
|
211
222
|
return new common();
|
|
212
223
|
});
|
|
213
224
|
}
|
|
214
|
-
|
|
215
|
-
function
|
|
216
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
function tunnelAPI() {
|
|
226
|
+
return __awaiter(this, arguments, void 0, function* ({ auth = true, projectId = (0, project_1.getProjectId)() } = {}) {
|
|
217
227
|
const tunnel = (yield Promise.resolve().then(() => __importStar(require('./lib/tunnel')))).default;
|
|
218
228
|
return new tunnel(projectId, { authNeeded: auth });
|
|
219
229
|
});
|
|
220
230
|
}
|
|
221
|
-
exports.tunnelAPI = tunnelAPI;
|
|
@@ -81,8 +81,8 @@ class Apig {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
getScheduleReport(
|
|
85
|
-
return __awaiter(this,
|
|
84
|
+
getScheduleReport() {
|
|
85
|
+
return __awaiter(this, arguments, void 0, function* (prev = false) {
|
|
86
86
|
const res = yield new api_1.default(this.opts).get(`/baas/v1/project/${this.projectId}/api-gateway/schedule`, {
|
|
87
87
|
qs: {
|
|
88
88
|
prev
|
|
@@ -20,8 +20,8 @@ class Applogic {
|
|
|
20
20
|
this.opts = opts;
|
|
21
21
|
this.projectId = projectId;
|
|
22
22
|
}
|
|
23
|
-
deploy(
|
|
24
|
-
return __awaiter(this,
|
|
23
|
+
deploy(sourceFsStream_1, _a) {
|
|
24
|
+
return __awaiter(this, arguments, void 0, function* (sourceFsStream, { stack, name, memory, envVariables, contentLength }) {
|
|
25
25
|
const formData = {
|
|
26
26
|
stack,
|
|
27
27
|
name
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
1
|
import { ReadStream } from 'fs';
|
|
5
2
|
import { IAPIOptions } from '../../internal/api';
|
|
6
3
|
import { TAppSailDetails } from '../../util_modules/config/lib/appsail';
|
|
@@ -57,7 +54,7 @@ export default class AppSail {
|
|
|
57
54
|
}): Promise<Record<string, unknown>>;
|
|
58
55
|
getAllAppsails(): Promise<Array<TSAppSailDetails>>;
|
|
59
56
|
updateConfig(appSailId: string, env: Record<string, unknown>): Promise<unknown>;
|
|
60
|
-
downloadJetty(): Promise<Buffer>;
|
|
57
|
+
downloadJetty(url: string): Promise<Buffer>;
|
|
61
58
|
getSignedUrl(name: string): Promise<TAppSailSignedResponse>;
|
|
62
59
|
uploadToBucket({ signedUrl, length, stream, name }: TAppSailBucketUploadOpts): Promise<void>;
|
|
63
60
|
customAppSailCallback(target: TAppSailDetails, objectId: string): Promise<Record<string, unknown>>;
|