zcatalyst-cli 1.23.0 → 1.25.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.
|
@@ -51,6 +51,8 @@ declare const _default: Readonly<{
|
|
|
51
51
|
quick_ml: "QuickML.deployment.READ";
|
|
52
52
|
pdf_shot: "ZohoCatalyst.pdfshot.execute";
|
|
53
53
|
dataverse: "ZohoCatalyst.dataverse.execute";
|
|
54
|
+
browser_grid_read: "ZohoCatalyst.grid.READ";
|
|
55
|
+
browser_grid_terminate: "ZohoCatalyst.grid.terminate";
|
|
54
56
|
circuits_execute: "ZohoCatalyst.circuits.execute";
|
|
55
57
|
circuits_exe_read: "ZohoCatalyst.circuits.execution.READ";
|
|
56
58
|
circuits_exe_delete: "ZohoCatalyst.circuits.execution.DELETE";
|
|
@@ -75,6 +77,7 @@ declare const _default: Readonly<{
|
|
|
75
77
|
object_create: "ZohoCatalyst.buckets.objects.CREATE";
|
|
76
78
|
pipline_read: "ZohoCatalyst.pipeline.READ";
|
|
77
79
|
pipeline_exec_create: "ZohoCatalyst.pipeline.execution.CREATE";
|
|
80
|
+
connections_read: "ZohoCatalyst.connections.READ";
|
|
78
81
|
slate_read: "ZohoCatalyst.Slate.app.READ";
|
|
79
82
|
slate_create: "ZohoCatalyst.Slate.app.CREATE";
|
|
80
83
|
}>;
|
|
@@ -53,6 +53,8 @@ exports.default = Object.freeze({
|
|
|
53
53
|
quick_ml: 'QuickML.deployment.READ',
|
|
54
54
|
pdf_shot: 'ZohoCatalyst.pdfshot.execute',
|
|
55
55
|
dataverse: 'ZohoCatalyst.dataverse.execute',
|
|
56
|
+
browser_grid_read: 'ZohoCatalyst.grid.READ',
|
|
57
|
+
browser_grid_terminate: 'ZohoCatalyst.grid.terminate',
|
|
56
58
|
circuits_execute: 'ZohoCatalyst.circuits.execute',
|
|
57
59
|
circuits_exe_read: 'ZohoCatalyst.circuits.execution.READ',
|
|
58
60
|
circuits_exe_delete: 'ZohoCatalyst.circuits.execution.DELETE',
|
|
@@ -77,6 +79,7 @@ exports.default = Object.freeze({
|
|
|
77
79
|
object_create: 'ZohoCatalyst.buckets.objects.CREATE',
|
|
78
80
|
pipline_read: 'ZohoCatalyst.pipeline.READ',
|
|
79
81
|
pipeline_exec_create: 'ZohoCatalyst.pipeline.execution.CREATE',
|
|
82
|
+
connections_read: 'ZohoCatalyst.connections.READ',
|
|
80
83
|
slate_read: 'ZohoCatalyst.Slate.app.READ',
|
|
81
84
|
slate_create: 'ZohoCatalyst.Slate.app.CREATE'
|
|
82
85
|
});
|
package/lib/prompt/index.js
CHANGED
|
@@ -96,7 +96,9 @@ exports.default = {
|
|
|
96
96
|
const runtimePrompt = runtime_store_1.default.get('prompt', false);
|
|
97
97
|
if (!runtimePrompt) {
|
|
98
98
|
for (const question of questions) {
|
|
99
|
-
if (question.
|
|
99
|
+
if (question.when &&
|
|
100
|
+
question.type &&
|
|
101
|
+
['file-path', 'tree', 'search-box'].includes(question.type)) {
|
|
100
102
|
if (!registeredTypes.has(question.type)) {
|
|
101
103
|
throw new error_1.default(`Prompt type "${question.type}" is not registered.`, {
|
|
102
104
|
exit: 2
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: Readonly<{
|
|
2
|
-
SERVE: ("ZohoCatalyst.apigateway.apis.READ" | "ZohoCatalyst.apigateway.READ" | "ZohoCatalyst.segments.ALL" | "ZohoCatalyst.cache.READ" | "ZohoCatalyst.cache.CREATE" | "ZohoCatalyst.cache.DELETE" | "ZohoCatalyst.projects.ALL" | "ZohoCatalyst.cron.ALL" | "ZohoCatalyst.zcql.CREATE" | "ZohoCatalyst.projects.users.READ" | "ZohoCatalyst.projects.users.CREATE" | "ZohoCatalyst.projects.users.DELETE" | "ZohoCatalyst.projects.users.UPDATE" | "ZohoCatalyst.authentication.CREATE" | "ZohoCatalyst.email.CREATE" | "ZohoCatalyst.tables.ALL" | "ZohoCatalyst.tables.rows.ALL" | "ZohoCatalyst.tables.columns.ALL" | "ZohoCatalyst.tables.bulk.READ" | "ZohoCatalyst.tables.bulk.CREATE" | "ZohoCatalyst.nosql.READ" | "ZohoCatalyst.nosql.rows.ALL" | "ZohoCatalyst.folders.ALL" | "ZohoCatalyst.files.CREATE" | "ZohoCatalyst.files.READ" | "ZohoCatalyst.files.DELETE" | "ZohoCatalyst.functions.ALL" | "ZohoCatalyst.functions.EXECUTE" | "ZohoCatalyst.eventlistners.ALL" | "ZohoCatalyst.eventlisteners.produce" | "ZohoCatalyst.security.rules.Read" | "ZohoCatalyst.security.rules.Update" | "ZohoCatalyst.notifications.mobile" | "ZohoCatalyst.notifications.web" | "ZohoCatalyst.search.READ" | "ZohoCatalyst.mlkit.READ" | "QuickML.deployment.READ" | "ZohoCatalyst.pdfshot.execute" | "ZohoCatalyst.dataverse.execute" | "ZohoCatalyst.circuits.execute" | "ZohoCatalyst.circuits.execution.READ" | "ZohoCatalyst.circuits.execution.DELETE" | "ZohoCatalyst.appsail.Read" | "ZohoCatalyst.jobpool.READ" | "ZohoCatalyst.job.ALL")[];
|
|
2
|
+
SERVE: ("ZohoCatalyst.apigateway.apis.READ" | "ZohoCatalyst.apigateway.READ" | "ZohoCatalyst.segments.ALL" | "ZohoCatalyst.cache.READ" | "ZohoCatalyst.cache.CREATE" | "ZohoCatalyst.cache.DELETE" | "ZohoCatalyst.projects.ALL" | "ZohoCatalyst.cron.ALL" | "ZohoCatalyst.zcql.CREATE" | "ZohoCatalyst.projects.users.READ" | "ZohoCatalyst.projects.users.CREATE" | "ZohoCatalyst.projects.users.DELETE" | "ZohoCatalyst.projects.users.UPDATE" | "ZohoCatalyst.authentication.CREATE" | "ZohoCatalyst.email.CREATE" | "ZohoCatalyst.tables.ALL" | "ZohoCatalyst.tables.rows.ALL" | "ZohoCatalyst.tables.columns.ALL" | "ZohoCatalyst.tables.bulk.READ" | "ZohoCatalyst.tables.bulk.CREATE" | "ZohoCatalyst.nosql.READ" | "ZohoCatalyst.nosql.rows.ALL" | "ZohoCatalyst.folders.ALL" | "ZohoCatalyst.files.CREATE" | "ZohoCatalyst.files.READ" | "ZohoCatalyst.files.DELETE" | "ZohoCatalyst.functions.ALL" | "ZohoCatalyst.functions.EXECUTE" | "ZohoCatalyst.eventlistners.ALL" | "ZohoCatalyst.eventlisteners.produce" | "ZohoCatalyst.security.rules.Read" | "ZohoCatalyst.security.rules.Update" | "ZohoCatalyst.notifications.mobile" | "ZohoCatalyst.notifications.web" | "ZohoCatalyst.search.READ" | "ZohoCatalyst.mlkit.READ" | "QuickML.deployment.READ" | "ZohoCatalyst.pdfshot.execute" | "ZohoCatalyst.dataverse.execute" | "ZohoCatalyst.grid.READ" | "ZohoCatalyst.grid.terminate" | "ZohoCatalyst.circuits.execute" | "ZohoCatalyst.circuits.execution.READ" | "ZohoCatalyst.circuits.execution.DELETE" | "ZohoCatalyst.appsail.Read" | "ZohoCatalyst.jobpool.READ" | "ZohoCatalyst.job.ALL")[];
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
@@ -45,6 +45,8 @@ const serveScopes = [
|
|
|
45
45
|
scopes_1.default.quick_ml,
|
|
46
46
|
scopes_1.default.pdf_shot,
|
|
47
47
|
scopes_1.default.dataverse,
|
|
48
|
+
scopes_1.default.browser_grid_read,
|
|
49
|
+
scopes_1.default.browser_grid_terminate,
|
|
48
50
|
scopes_1.default.circuits_exe_delete,
|
|
49
51
|
scopes_1.default.circuits_exe_read,
|
|
50
52
|
scopes_1.default.circuits_execute,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcatalyst-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "Command Line Tool for CATALYST",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"catalyst": "
|
|
7
|
+
"catalyst": "lib/bin/catalyst.js"
|
|
8
8
|
},
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=14.0.0"
|