zcatalyst-cli 1.18.0-beta.4 → 1.18.0-beta.6
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/docs/commands/ds/import.toml +5 -5
- package/docs/commands/zest/generate/index.toml +4 -0
- package/lib/authentication/login.js +2 -1
- package/lib/code-deck.js +2 -1
- package/lib/commands/appsail/add.js +1 -1
- package/lib/commands/ds/import.js +37 -21
- package/lib/commands/event/generate/index.js +14 -2
- package/lib/commands/iac/export.js +5 -1
- package/lib/commands/iac/import.js +4 -1
- package/lib/commands/index.js +1 -0
- package/lib/commands/zest/generate/index.js +304 -0
- package/lib/endpoints/index.js +15 -1
- package/lib/endpoints/lib/ds-bulk.js +1 -0
- package/lib/endpoints/lib/stratus.js +63 -0
- package/lib/endpoints/lib/zest.js +124 -0
- package/lib/event_generate/stratus.js +52 -0
- package/lib/fn-utils/lib/common.js +6 -1
- package/lib/init/features/project.js +1 -0
- package/lib/internal/api.js +2 -2
- package/lib/prompt/index.js +5 -2
- package/lib/prompt/types/search-box.js +281 -0
- package/lib/serve/server/lib/appsail/index.js +1 -1
- package/lib/serve/server/lib/java/index.js +1 -1
- package/lib/serve/server/lib/master/utils.js +1 -1
- package/lib/serve/server/lib/node/index.js +1 -1
- package/lib/serve/server/lib/node/server/package-lock.json +12 -0
- package/lib/serve/server/lib/python/index.js +1 -1
- package/lib/shell/dependencies/http-functions.js +1 -1
- package/lib/shell/dependencies/invoker/integ/java/JavaintegInvoker.java +1 -0
- package/lib/shell/dependencies/local-function.js +3 -3
- package/lib/util_modules/constants/lib/dc-type.js +8 -0
- package/lib/util_modules/constants/lib/event-action.js +1 -0
- package/lib/util_modules/constants/lib/event-source.js +1 -0
- package/lib/util_modules/constants/lib/scopes.js +14 -3
- package/lib/util_modules/constants/lib/urls.js +8 -0
- package/package.json +3 -2
|
@@ -9,6 +9,7 @@ exports.default = Object.freeze({
|
|
|
9
9
|
[event_source_1.default.cache]: ['Put'],
|
|
10
10
|
[event_source_1.default.user]: ['SignUp', 'Delete'],
|
|
11
11
|
[event_source_1.default.filestore]: ['Upload', 'Download'],
|
|
12
|
+
[event_source_1.default.stratus]: ['Object Upload', 'Object Download', 'Object Update', 'Object Delete'],
|
|
12
13
|
[event_source_1.default.webapp]: ['Success'],
|
|
13
14
|
[event_source_1.default.github]: ['Success', 'Failure'],
|
|
14
15
|
[event_source_1.default.custom]: ['Produce']
|
|
@@ -66,8 +66,19 @@ exports.default = Object.freeze({
|
|
|
66
66
|
tunneling_read: 'ZohoCatalyst.tunneling.READ',
|
|
67
67
|
tunneling_update: 'ZohoCatalyst.tunneling.UPDATE',
|
|
68
68
|
iam_profile: 'AaaServer.profile.READ',
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
object_creation: 'Stratus.fileop.CREATE',
|
|
70
|
+
object_operation: 'Stratus.fileop.ALL',
|
|
71
|
+
stratus_bucket_operation: 'Stratus.bucketop.ALL',
|
|
72
|
+
object_update: 'ZohoCatalyst.buckets.objects.UPDATE',
|
|
73
|
+
object_read: 'ZohoCatalyst.buckets.objects.READ',
|
|
74
|
+
object_delete: 'ZohoCatalyst.buckets.objects.DELETE',
|
|
75
|
+
bucket_read: 'ZohoCatalyst.buckets.READ',
|
|
76
|
+
object_create: 'ZohoCatalyst.buckets.objects.CREATE',
|
|
71
77
|
pipline_read: 'ZohoCatalyst.pipeline.READ',
|
|
72
|
-
pipeline_exec_create: 'ZohoCatalyst.pipeline.execution.CREATE'
|
|
78
|
+
pipeline_exec_create: 'ZohoCatalyst.pipeline.execution.CREATE',
|
|
79
|
+
zest_file_read: 'ZohoZEST.files.READ',
|
|
80
|
+
zest_spec_read: 'ZohoZEST.specifications.READ',
|
|
81
|
+
zest_spec_all: 'ZohoZEST.specifications.ALL',
|
|
82
|
+
zest_spec_src_action: 'ZohoZEST.specifications.sources.CREATE',
|
|
83
|
+
zest_schedule_job_read: 'ZohoZEST.scheduled_jobs.READ'
|
|
73
84
|
});
|
|
@@ -68,6 +68,13 @@ class URL {
|
|
|
68
68
|
}
|
|
69
69
|
return URL._console.replace('.com', dc.ext);
|
|
70
70
|
}
|
|
71
|
+
static get stratusSuffix() {
|
|
72
|
+
const dc = (0, dc_js_1.getActiveDCType)();
|
|
73
|
+
if (dc === undefined) {
|
|
74
|
+
return URL._stratusSuffix;
|
|
75
|
+
}
|
|
76
|
+
return URL._stratusSuffix.replace('.com', dc.ext);
|
|
77
|
+
}
|
|
71
78
|
}
|
|
72
79
|
exports.default = URL;
|
|
73
80
|
URL._auth = (0, env_js_1.envOverride)('CATALYST_AUTH_URL', 'https://accounts.zoho.com');
|
|
@@ -77,6 +84,7 @@ URL._app = (0, env_js_1.envOverride)('CATALYST_APP_URL', 'https://catalystserver
|
|
|
77
84
|
URL._appSailDomain = (0, env_js_1.envOverride)('CATALYST_APPSAIL_URL', 'https://catalystappsail.com');
|
|
78
85
|
URL._zohoStatic = (0, env_js_1.envOverride)('ZOHO_STATIC', 'https://www.zoho.com/catalyst');
|
|
79
86
|
URL._console = (0, env_js_1.envOverride)('CATALYST_CONSOLE_URL', 'https://console.catalyst.zoho.com');
|
|
87
|
+
URL._stratusSuffix = (0, env_js_1.envOverride)('CATALYST_STRATUS_RESOURCE_SUFFIX', '.zohostratus.com');
|
|
80
88
|
URL.zohoCDN = (0, env_js_1.envOverride)('ZOHO_CDN', 'https://static.zohocdn.com');
|
|
81
89
|
URL.external = Object.freeze({
|
|
82
90
|
gitHubAPI: 'https://api.github.com',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcatalyst-cli",
|
|
3
|
-
"version": "1.18.0-beta.
|
|
3
|
+
"version": "1.18.0-beta.6",
|
|
4
4
|
"description": "Command Line Tool for CATALYST",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"homepage": "https://catalyst.zoho.com",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"ansi-colors": "^4.1.
|
|
28
|
+
"ansi-colors": "^4.1.3",
|
|
29
29
|
"app-module-path": "^2.2.0",
|
|
30
30
|
"better-queue": "^3.8.10",
|
|
31
31
|
"chokidar": "^3.5.3",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@types/inquirer-autocomplete-prompt": "^1.3.4",
|
|
71
71
|
"@types/jest": "^27.4.1",
|
|
72
72
|
"@types/lodash": "^4.14.182",
|
|
73
|
+
"@types/mime-types": "^2.1.4",
|
|
73
74
|
"@types/minimatch": "^5.1.2",
|
|
74
75
|
"@types/node": "^20.12.7",
|
|
75
76
|
"@types/request": "^2.48.8",
|