zcatalyst-cli 1.25.3 → 1.26.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.
Files changed (262) hide show
  1. package/lib/api-timer.d.ts +0 -1
  2. package/lib/apig-utils.d.ts +1 -1
  3. package/lib/apig-utils.js +1 -1
  4. package/lib/appsail-utils.js +6 -7
  5. package/lib/archiver.d.ts +0 -4
  6. package/lib/archiver.js +21 -11
  7. package/lib/authentication/constants/auth.js +1 -1
  8. package/lib/authentication/credential.js +3 -3
  9. package/lib/authentication/index.js +25 -14
  10. package/lib/authentication/login.d.ts +0 -2
  11. package/lib/authentication/login.js +23 -10
  12. package/lib/bin/catalyst.js +17 -7
  13. package/lib/client-utils.d.ts +3 -3
  14. package/lib/client-utils.js +2 -2
  15. package/lib/client.js +19 -9
  16. package/lib/code-deck.d.ts +0 -2
  17. package/lib/code-deck.js +4 -4
  18. package/lib/command_needs/config.js +1 -1
  19. package/lib/command_needs/rc.js +5 -2
  20. package/lib/commands/appsail/add.js +17 -7
  21. package/lib/commands/client/setup.js +17 -7
  22. package/lib/commands/config/set.js +5 -3
  23. package/lib/commands/deploy/appsail.js +37 -14
  24. package/lib/commands/deploy/index.js +88 -66
  25. package/lib/commands/deploy/slate.js +37 -14
  26. package/lib/commands/event/generate/integ.js +18 -9
  27. package/lib/commands/functions/add.js +17 -7
  28. package/lib/commands/functions/execute.js +17 -7
  29. package/lib/commands/functions/setup.js +17 -7
  30. package/lib/commands/functions/shell.js +17 -7
  31. package/lib/commands/iac/import.js +18 -8
  32. package/lib/commands/iac/pack.js +17 -7
  33. package/lib/commands/iac/status.js +17 -7
  34. package/lib/commands/index.js +20 -12
  35. package/lib/commands/init.js +17 -7
  36. package/lib/commands/login.js +17 -7
  37. package/lib/commands/logout.js +17 -7
  38. package/lib/commands/project/list.js +17 -7
  39. package/lib/commands/project/use.js +1 -0
  40. package/lib/commands/pull.js +17 -7
  41. package/lib/commands/run.js +17 -7
  42. package/lib/commands/serve.js +17 -7
  43. package/lib/commands/signals/generate/index.js +1 -1
  44. package/lib/commands/slate/create.js +17 -7
  45. package/lib/commands/slate/link.js +17 -7
  46. package/lib/commands/token/generate.js +17 -7
  47. package/lib/commands/token/list.js +17 -7
  48. package/lib/commands/token/revoke.js +17 -7
  49. package/lib/commands/zest/generate/index.js +21 -11
  50. package/lib/deploy/features/appsail/index.js +2 -3
  51. package/lib/deploy/features/appsail/pack.d.ts +0 -1
  52. package/lib/deploy/features/appsail/pack.js +2 -3
  53. package/lib/deploy/features/appsail/utils.js +7 -8
  54. package/lib/deploy/features/functions/languages/index.js +3 -4
  55. package/lib/deploy/features/index.js +17 -7
  56. package/lib/deploy/features/slate.js +2 -3
  57. package/lib/deploy/index.js +2 -2
  58. package/lib/deploy/util.d.ts +2 -0
  59. package/lib/deploy/util.js +3 -1
  60. package/lib/docs/commands/signals/generate/generate.toml +19 -0
  61. package/lib/docs/commands/slate/unlink.toml +9 -0
  62. package/lib/docs/fn-utils/lib/node.toml +4 -0
  63. package/lib/docs/init/dependencies/python/ensure-python.toml +4 -0
  64. package/lib/docs/serve/server/lib/slate/index.toml +15 -0
  65. package/lib/docs/slate-utils.toml +9 -0
  66. package/lib/endpoints/index.d.ts +2 -1
  67. package/lib/endpoints/index.js +88 -79
  68. package/lib/endpoints/lib/apig.d.ts +0 -1
  69. package/lib/endpoints/lib/apig.js +2 -2
  70. package/lib/endpoints/lib/applogic.d.ts +0 -1
  71. package/lib/endpoints/lib/applogic.js +2 -2
  72. package/lib/endpoints/lib/appsail.d.ts +1 -4
  73. package/lib/endpoints/lib/appsail.js +7 -7
  74. package/lib/endpoints/lib/client.d.ts +0 -1
  75. package/lib/endpoints/lib/code-deck.js +1 -1
  76. package/lib/endpoints/lib/common.d.ts +0 -2
  77. package/lib/endpoints/lib/ds-bulk.js +2 -2
  78. package/lib/endpoints/lib/env.js +2 -2
  79. package/lib/endpoints/lib/filestore.d.ts +0 -1
  80. package/lib/endpoints/lib/functions.d.ts +0 -1
  81. package/lib/endpoints/lib/functions.js +2 -2
  82. package/lib/endpoints/lib/git-hub.d.ts +0 -2
  83. package/lib/endpoints/lib/iac.d.ts +0 -3
  84. package/lib/endpoints/lib/iac.js +2 -2
  85. package/lib/endpoints/lib/project.d.ts +0 -1
  86. package/lib/endpoints/lib/project.js +2 -2
  87. package/lib/endpoints/lib/sdk.d.ts +0 -2
  88. package/lib/endpoints/lib/sdk.js +1 -1
  89. package/lib/endpoints/lib/slate.d.ts +0 -1
  90. package/lib/endpoints/lib/stratus.d.ts +0 -1
  91. package/lib/endpoints/lib/user.d.ts +0 -2
  92. package/lib/endpoints/lib/user.js +2 -1
  93. package/lib/error/context-help.js +1 -1
  94. package/lib/error/index.js +2 -2
  95. package/lib/event_generate/cache.js +4 -4
  96. package/lib/event_generate/custom.js +1 -2
  97. package/lib/event_generate/datastore.js +4 -4
  98. package/lib/event_generate/filestore.js +4 -4
  99. package/lib/event_generate/github.js +2 -2
  100. package/lib/event_generate/index.js +19 -11
  101. package/lib/event_generate/stratus.js +2 -2
  102. package/lib/event_generate/user.js +2 -2
  103. package/lib/event_generate/webapp.js +2 -2
  104. package/lib/execute/caller.d.ts +0 -1
  105. package/lib/execute/caller.js +20 -7
  106. package/lib/execute/index.js +27 -4
  107. package/lib/execute-script.js +22 -13
  108. package/lib/express_middlewares/auth-checker.js +2 -3
  109. package/lib/express_middlewares/project.d.ts +1 -1
  110. package/lib/fn-utils/index.js +17 -7
  111. package/lib/fn-utils/lib/browserLogic.js +4 -5
  112. package/lib/fn-utils/lib/common.d.ts +0 -1
  113. package/lib/fn-utils/lib/common.js +25 -26
  114. package/lib/fn-utils/lib/integ.js +2 -3
  115. package/lib/fn-utils/lib/java/classpath.js +2 -3
  116. package/lib/fn-utils/lib/java/compile.js +4 -4
  117. package/lib/fn-utils/lib/java/ensure-java-userconfig.d.ts +10 -0
  118. package/lib/fn-utils/lib/java/ensure-java-userconfig.js +45 -23
  119. package/lib/fn-utils/lib/java/index.d.ts +0 -1
  120. package/lib/fn-utils/lib/java/index.js +11 -11
  121. package/lib/fn-utils/lib/java/keywords.js +2 -2
  122. package/lib/fn-utils/lib/node.d.ts +1 -1
  123. package/lib/fn-utils/lib/node.js +67 -15
  124. package/lib/fn-utils/lib/python.js +29 -19
  125. package/lib/iac/status/util/index.d.ts +1 -1
  126. package/lib/init/dependencies/npm-install.js +2 -2
  127. package/lib/init/dependencies/python/ensure-python.d.ts +2 -2
  128. package/lib/init/dependencies/python/ensure-python.js +65 -58
  129. package/lib/init/dependencies/python/pip-install.d.ts +3 -5
  130. package/lib/init/dependencies/python/pip-install.js +14 -53
  131. package/lib/init/features/appsail/utils.js +21 -12
  132. package/lib/init/features/client/index.js +18 -9
  133. package/lib/init/features/client/initializers/angular.js +17 -7
  134. package/lib/init/features/client/initializers/basic.js +17 -7
  135. package/lib/init/features/client/initializers/lyte.js +17 -7
  136. package/lib/init/features/client/initializers/react.js +17 -7
  137. package/lib/init/features/index.js +29 -20
  138. package/lib/init/features/project.js +5 -5
  139. package/lib/init/features/slate/index.js +19 -9
  140. package/lib/init/util/client.js +23 -13
  141. package/lib/init/util/common.js +5 -6
  142. package/lib/init/util/project.js +1 -1
  143. package/lib/internal/api.d.ts +0 -3
  144. package/lib/internal/api.js +19 -9
  145. package/lib/internal/command.js +18 -9
  146. package/lib/migration/global/1.25.0.d.ts +2 -0
  147. package/lib/migration/global/1.25.0.js +28 -0
  148. package/lib/migration/index.js +20 -12
  149. package/lib/option-filter.js +19 -10
  150. package/lib/optional-import.js +19 -10
  151. package/lib/plugin-loader.d.ts +0 -2
  152. package/lib/plugin-loader.js +18 -8
  153. package/lib/port-resolver.js +10 -10
  154. package/lib/prompt/index.d.ts +3 -3
  155. package/lib/prompt/index.js +17 -7
  156. package/lib/prompt/types/file-path.d.ts +0 -1
  157. package/lib/prompt/types/search-box.d.ts +0 -1
  158. package/lib/prompt/types/tree.d.ts +1 -2
  159. package/lib/prompt/types/tree.js +10 -10
  160. package/lib/prompt/types/with-description.d.ts +0 -1
  161. package/lib/pull/features/functions/index.js +71 -52
  162. package/lib/pull/features/functions/languages.js +3 -4
  163. package/lib/pull/features/index.js +17 -7
  164. package/lib/repl-server.d.ts +0 -1
  165. package/lib/repl-server.js +9 -1
  166. package/lib/serve/features/apig.js +7 -1
  167. package/lib/serve/features/appsail.d.ts +1 -0
  168. package/lib/serve/features/appsail.js +51 -7
  169. package/lib/serve/features/index.js +22 -13
  170. package/lib/serve/index.js +17 -7
  171. package/lib/serve/server/index.d.ts +0 -2
  172. package/lib/serve/server/index.js +26 -12
  173. package/lib/serve/server/lib/appsail/index.js +27 -34
  174. package/lib/serve/server/lib/appsail/start.js +12 -5
  175. package/lib/serve/server/lib/appsail/util.d.ts +11 -0
  176. package/lib/serve/server/lib/appsail/util.js +69 -0
  177. package/lib/serve/server/lib/java/index.js +18 -7
  178. package/lib/serve/server/lib/master/appsail.js +3 -4
  179. package/lib/serve/server/lib/master/functions.js +1 -2
  180. package/lib/serve/server/lib/master/index.d.ts +0 -1
  181. package/lib/serve/server/lib/master/index.js +5 -5
  182. package/lib/serve/server/lib/master/slate.js +1 -2
  183. package/lib/serve/server/lib/master/unknown-req-proxy.js +5 -2
  184. package/lib/serve/server/lib/master/utils.d.ts +4 -8
  185. package/lib/serve/server/lib/master/utils.js +4 -6
  186. package/lib/serve/server/lib/master/web-client.js +1 -2
  187. package/lib/serve/server/lib/node/index.js +22 -11
  188. package/lib/serve/server/lib/node/server/browserlogic/utils/playwright-handler.js +1 -1
  189. package/lib/serve/server/lib/node/server/browserlogic/utils/puppeteer-handler.js +1 -1
  190. package/lib/serve/server/lib/node/server/browserlogic/utils/selenium-handler.js +2 -0
  191. package/lib/serve/server/lib/python/index.js +23 -14
  192. package/lib/serve/server/lib/slate/static-server.d.ts +0 -1
  193. package/lib/serve/server/lib/slate/static-server.js +5 -4
  194. package/lib/serve/server/lib/web_client/server.d.ts +0 -1
  195. package/lib/serve/server/lib/web_client/server.js +5 -4
  196. package/lib/shell/dependencies/http-functions.d.ts +0 -2
  197. package/lib/shell/dependencies/http-functions.js +7 -7
  198. package/lib/shell/dependencies/non-http-function/fn-execution-handler.d.ts +0 -2
  199. package/lib/shell/dependencies/non-http-function/fn-execution-handler.js +55 -24
  200. package/lib/shell/dependencies/non-http-function/fn-handler.d.ts +3 -3
  201. package/lib/shell/dependencies/non-http-function/fn-handler.js +54 -20
  202. package/lib/shell/dependencies/non-http-function/node.js +4 -4
  203. package/lib/shell/dependencies/non-http-function/python.d.ts +1 -1
  204. package/lib/shell/dependencies/non-http-function/python.js +11 -13
  205. package/lib/shell/dependencies/non-http-function/slave-manager.d.ts +0 -2
  206. package/lib/shell/dependencies/non-http-function/slave-manager.js +11 -7
  207. package/lib/shell/dependencies/tunnel-server.js +4 -4
  208. package/lib/shell/index.js +50 -3
  209. package/lib/shell/prepare/index.js +4 -3
  210. package/lib/shell/prepare/languages/index.js +18 -9
  211. package/lib/shell/prepare/languages/node.js +29 -19
  212. package/lib/shell/prepare/languages/python.js +6 -12
  213. package/lib/signals/index.js +19 -11
  214. package/lib/slate-utils.js +2 -2
  215. package/lib/throbber/index.d.ts +1 -2
  216. package/lib/throbber/index.js +5 -2
  217. package/lib/throbber/utils.d.ts +0 -1
  218. package/lib/throbber/utils.js +4 -5
  219. package/lib/userConfig.d.ts +14 -0
  220. package/lib/userConfig.js +15 -1
  221. package/lib/util_modules/config/index.js +17 -7
  222. package/lib/util_modules/config/lib/apig.d.ts +1 -0
  223. package/lib/util_modules/config/lib/apig.js +10 -5
  224. package/lib/util_modules/config/lib/appsail.js +7 -7
  225. package/lib/util_modules/config/lib/client.js +5 -6
  226. package/lib/util_modules/config/lib/functions.js +5 -6
  227. package/lib/util_modules/config/lib/slate.js +5 -6
  228. package/lib/util_modules/config-store.d.ts +1 -1
  229. package/lib/util_modules/config-store.js +30 -13
  230. package/lib/util_modules/constants/lib/apig-rules.d.ts +1 -1
  231. package/lib/util_modules/constants/lib/dc-type.js +3 -3
  232. package/lib/util_modules/constants/lib/placeholders.d.ts +1 -1
  233. package/lib/util_modules/constants/lib/placeholders.js +1 -1
  234. package/lib/util_modules/constants/lib/urls.js +2 -9
  235. package/lib/util_modules/container.js +23 -14
  236. package/lib/util_modules/dc.js +3 -4
  237. package/lib/util_modules/env.d.ts +3 -0
  238. package/lib/util_modules/env.js +64 -4
  239. package/lib/util_modules/event-emitter.d.ts +9 -0
  240. package/lib/util_modules/event-emitter.js +68 -0
  241. package/lib/util_modules/fs/index.js +17 -7
  242. package/lib/util_modules/fs/lib/async.d.ts +0 -4
  243. package/lib/util_modules/fs/lib/async.js +46 -46
  244. package/lib/util_modules/fs/lib/sync.d.ts +1 -3
  245. package/lib/util_modules/fs/lib/sync.js +40 -30
  246. package/lib/util_modules/logger/index.js +12 -12
  247. package/lib/util_modules/logger/utils.d.ts +0 -4
  248. package/lib/util_modules/logger/utils.js +1 -1
  249. package/lib/util_modules/logger/winston.js +2 -2
  250. package/lib/util_modules/option.js +5 -6
  251. package/lib/util_modules/project.js +22 -23
  252. package/lib/util_modules/runtime-store.d.ts +2 -2
  253. package/lib/util_modules/server.d.ts +1 -2
  254. package/lib/util_modules/server.js +54 -15
  255. package/lib/util_modules/shell.d.ts +0 -3
  256. package/lib/util_modules/shell.js +5 -6
  257. package/lib/util_modules/toml.js +2 -3
  258. package/package.json +13 -13
  259. package/templates/init/functions/java/event/sample.java +5 -2
  260. package/templates/web-socket.txt +1 -1
  261. /package/lib/docs/{commands/event/generate → event_generate}/index.toml +0 -0
  262. /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.python = exports.java = exports.node = void 0;
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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.slateLogger = exports.getEnvironmentType = void 0;
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"));
@@ -99,7 +100,6 @@ function getEnvironmentType() {
99
100
  ((_a = process.env.ZC_ENVIRONMENT) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'production';
100
101
  return isProduction ? 'Production' : 'Development';
101
102
  }
102
- exports.getEnvironmentType = getEnvironmentType;
103
103
  function slateLogger() {
104
104
  const deployTargets = runtime_store_1.default.get('context.payload.slate.targets', []);
105
105
  deployTargets.forEach((slate) => {
@@ -110,4 +110,3 @@ function slateLogger() {
110
110
  });
111
111
  return deployTargets;
112
112
  }
113
- exports.slateLogger = slateLogger;
@@ -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({ feature = '', error = [] } = {}) {
20
- return __awaiter(this, void 0, void 0, function* () {
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;
@@ -1,4 +1,6 @@
1
+ import { CatalystEventEmitter } from '../util_modules/event-emitter';
1
2
  import { labeled } from '../util_modules/logger';
3
+ export declare const DeployEvents: CatalystEventEmitter;
2
4
  export type paddedLogTarget = {
3
5
  label: string;
4
6
  message: string;
@@ -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,15 @@
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
+
@@ -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'
@@ -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;
@@ -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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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.tunnelAPI = exports.commonAPI = exports.jobScheduling = exports.codeDeck = exports.gitHubAPI = exports.stratusAPI = exports.zestAPI = exports.appSailAPI = exports.logAPI = exports.eventBusAPI = exports.functionsAPI = exports.applogicAPI = exports.bulkDSAPI = exports.apigAPI = exports.slateAPI = exports.clientAPI = exports.datastoreAPI = exports.zcqlAPI = exports.queueAPI = exports.filestoreAPI = exports.cacheAPI = exports.detailsAPI = exports.sdkAPI = exports.envAPI = exports.projectAPI = exports.orgAPI = void 0;
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({ auth = true } = {}) {
38
- return __awaiter(this, void 0, void 0, function* () {
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
- exports.orgAPI = orgAPI;
44
- function projectAPI({ auth = true, org = (0, project_1.getEnvId)(), printError = true } = {}) {
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
- exports.projectAPI = projectAPI;
51
- function envAPI({ auth = true, org = (0, project_1.getEnvId)() } = {}) {
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
- exports.envAPI = envAPI;
58
- function sdkAPI({ auth = true } = {}) {
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
- exports.detailsAPI = detailsAPI;
72
- function cacheAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.cacheAPI = cacheAPI;
79
- function filestoreAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.filestoreAPI = filestoreAPI;
86
- function queueAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
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
- exports.queueAPI = queueAPI;
93
- function zcqlAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.zcqlAPI = zcqlAPI;
100
- function datastoreAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.datastoreAPI = datastoreAPI;
107
- function clientAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.clientAPI = clientAPI;
114
- function slateAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
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
- exports.slateAPI = slateAPI;
121
- function apigAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.apigAPI = apigAPI;
128
- function bulkDSAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.bulkDSAPI = bulkDSAPI;
135
- function applogicAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.applogicAPI = applogicAPI;
142
- function functionsAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.functionsAPI = functionsAPI;
149
- function eventBusAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.eventBusAPI = eventBusAPI;
156
- function logAPI({ auth = true, projectId = (0, project_1.getProjectId)(-1), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.logAPI = logAPI;
166
- function appSailAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)(), org = (0, project_1.getEnvId)() } = {}) {
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
- exports.appSailAPI = appSailAPI;
173
- function zestAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
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
- exports.zestAPI = zestAPI;
180
- function stratusAPI({ auth = true, projectId = (0, project_1.getProjectId)(), env = (0, project_1.getEnvName)() } = {}) {
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
- exports.codeDeck = codeDeck;
201
- function jobScheduling({ auth = true, projectId = (0, project_1.getProjectId)() } = {}) {
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
- exports.commonAPI = commonAPI;
215
- function tunnelAPI({ auth = true, projectId = (0, project_1.getProjectId)() } = {}) {
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ReadStream } from 'fs-extra';
3
2
  import { IAPIOptions } from '../../internal/api';
4
3
  declare class Apig {
@@ -81,8 +81,8 @@ class Apig {
81
81
  });
82
82
  });
83
83
  }
84
- getScheduleReport(prev = false) {
85
- return __awaiter(this, void 0, void 0, function* () {
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
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ReadStream } from 'fs';
3
2
  import { IAPIOptions } from '../../internal/api';
4
3
  declare class Applogic {
@@ -20,8 +20,8 @@ class Applogic {
20
20
  this.opts = opts;
21
21
  this.projectId = projectId;
22
22
  }
23
- deploy(sourceFsStream, { stack, name, memory, envVariables, contentLength }) {
24
- return __awaiter(this, void 0, void 0, function* () {
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>>;
@@ -21,8 +21,8 @@ class AppSail {
21
21
  this.opts = opts;
22
22
  this.projectId = projectId;
23
23
  }
24
- deploy(sourceFsStream, { stack, name, contentLength, command, memory, platform, envVariables = {}, catalystAuth, loginRedirect, port }) {
25
- return __awaiter(this, void 0, void 0, function* () {
24
+ deploy(sourceFsStream_1, _a) {
25
+ return __awaiter(this, arguments, void 0, function* (sourceFsStream, { stack, name, contentLength, command, memory, platform, envVariables = {}, catalystAuth, loginRedirect, port }) {
26
26
  const formData = {
27
27
  stack,
28
28
  name,
@@ -107,14 +107,14 @@ class AppSail {
107
107
  });
108
108
  });
109
109
  }
110
- downloadJetty() {
110
+ downloadJetty(url) {
111
111
  return __awaiter(this, void 0, void 0, function* () {
112
112
  const res = yield new api_1.default({
113
113
  origin: constants_1.ORIGIN.zohoCDNUS,
114
114
  authNeeded: false,
115
115
  json: false,
116
116
  isExternal: true
117
- }).get('/catalyst/appsail/1.0.0/jetty_runtime_dependency.zip', { encoding: null });
117
+ }).get(url, { encoding: null });
118
118
  if (res.body) {
119
119
  return res.body;
120
120
  }
@@ -136,8 +136,8 @@ class AppSail {
136
136
  });
137
137
  });
138
138
  }
139
- uploadToBucket({ signedUrl, length, stream, name }) {
140
- return __awaiter(this, void 0, void 0, function* () {
139
+ uploadToBucket(_a) {
140
+ return __awaiter(this, arguments, void 0, function* ({ signedUrl, length, stream, name }) {
141
141
  const url = new URL(signedUrl);
142
142
  const res = yield new api_1.default(Object.assign(Object.assign({}, this.opts), { isExternal: true, origin: url.origin, authNeeded: false, json: false })).put(url.pathname + '?' + url.searchParams, {
143
143
  log: {
@@ -165,8 +165,8 @@ class AppSail {
165
165
  });
166
166
  }
167
167
  customAppSailCallback(target, objectId) {
168
- var _a, _b, _c, _d, _e;
169
168
  return __awaiter(this, void 0, void 0, function* () {
169
+ var _a, _b, _c, _d, _e;
170
170
  const configuration = {};
171
171
  if (typeof ((_a = target.config) === null || _a === void 0 ? void 0 : _a.command) === 'string') {
172
172
  configuration.startup_command = target.config.command;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { ReadStream } from 'fs-extra';
3
2
  import { IAPIOptions } from '../../internal/api';
4
3
  declare class Client {
@@ -50,7 +50,6 @@ class CodeDeck {
50
50
  });
51
51
  }
52
52
  }
53
- exports.default = CodeDeck;
54
53
  _CodeDeck_instances = new WeakSet(), _CodeDeck_manifest = function _CodeDeck_manifest() {
55
54
  return __awaiter(this, void 0, void 0, function* () {
56
55
  const res = yield new api_1.default(this.opts).get('/catalyst-library/codelib/config.json', {
@@ -69,3 +68,4 @@ _CodeDeck_instances = new WeakSet(), _CodeDeck_manifest = function _CodeDeck_man
69
68
  });
70
69
  });
71
70
  };
71
+ exports.default = CodeDeck;
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  export default class Common {
4
2
  download(url: string, title?: string): Promise<Buffer>;
5
3
  }