zcatalyst-cli 1.7.1 → 1.9.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/README.md +31 -10
- package/docs/apig-utils.toml +69 -0
- package/docs/authentication/index.toml +15 -0
- package/docs/authentication/login.toml +14 -0
- package/docs/client-utils.toml +24 -0
- package/docs/command_needs/auth.toml +4 -0
- package/docs/command_needs/rc.toml +24 -0
- package/docs/commands/apig/disable.toml +4 -0
- package/docs/commands/apig/enable.toml +4 -0
- package/docs/commands/apig/status.toml +4 -0
- package/docs/commands/client/delete.toml +34 -0
- package/docs/commands/ds/export.toml +4 -0
- package/docs/commands/ds/import.toml +15 -0
- package/docs/commands/ds/status.toml +9 -0
- package/docs/commands/event/generate/index.toml +29 -0
- package/docs/commands/event/generate/integ.toml +4 -0
- package/docs/commands/functions/config.toml +11 -0
- package/docs/commands/functions/delete.toml +29 -0
- package/docs/commands/project/use.toml +9 -0
- package/docs/dc.toml +4 -0
- package/docs/deploy/features/apig.toml +4 -0
- package/docs/deploy/features/functions/index.toml +4 -0
- package/docs/event_generate/cache.toml +4 -0
- package/docs/event_generate/custom.toml +4 -0
- package/docs/event_generate/datastore.toml +4 -0
- package/docs/event_generate/filestore.toml +4 -0
- package/docs/event_generate/integration/cliq.toml +9 -0
- package/docs/execute-script.toml +19 -0
- package/docs/fn-utils/lib/common.toml +25 -0
- package/docs/fn-utils/lib/java.toml +34 -0
- package/docs/fn-utils/lib/node.toml +4 -0
- package/docs/init/index.toml +4 -0
- package/docs/internal/command.toml +4 -0
- package/docs/internal/config.toml +9 -0
- package/docs/internal/credential.toml +14 -0
- package/docs/option-filter.toml +45 -0
- package/docs/port-resolver.toml +9 -0
- package/docs/pull/index.toml +4 -0
- package/docs/serve/index.toml +4 -0
- package/docs/shell/index.toml +4 -0
- package/docs/util_modules/project.toml +9 -0
- package/lib/apig-utils.js +133 -43
- package/lib/archiver.js +4 -2
- package/lib/authentication/index.js +44 -9
- package/lib/authentication/login.js +51 -8
- package/lib/bin/catalyst.js +14 -7
- package/lib/client-utils.js +47 -14
- package/lib/client.js +1 -1
- package/lib/command_needs/auth.js +5 -3
- package/lib/command_needs/rc.js +35 -13
- package/lib/commands/apig/disable.js +8 -3
- package/lib/commands/apig/enable.js +8 -3
- package/lib/commands/apig/status.js +29 -9
- package/lib/commands/client/delete.js +65 -26
- package/lib/commands/client/setup.js +2 -2
- package/lib/commands/deploy.js +2 -2
- package/lib/commands/ds/export.js +16 -8
- package/lib/commands/ds/import.js +20 -14
- package/lib/commands/ds/status.js +22 -11
- package/lib/commands/event/generate/index.js +62 -12
- package/lib/commands/event/generate/integ.js +7 -3
- package/lib/commands/functions/add.js +2 -2
- package/lib/commands/functions/config.js +11 -3
- package/lib/commands/functions/delete.js +36 -13
- package/lib/commands/functions/setup.js +2 -2
- package/lib/commands/functions/shell.js +2 -2
- package/lib/commands/help.js +1 -1
- package/lib/commands/index.js +2 -3
- package/lib/commands/init.js +4 -4
- package/lib/commands/login.js +2 -2
- package/lib/commands/logout.js +2 -2
- package/lib/commands/project/list.js +2 -2
- package/lib/commands/project/reset.js +1 -1
- package/lib/commands/project/use.js +18 -2
- package/lib/commands/pull.js +5 -5
- package/lib/commands/run.js +2 -2
- package/lib/commands/serve.js +7 -6
- package/lib/commands/token/generate.js +2 -2
- package/lib/commands/token/list.js +2 -2
- package/lib/commands/token/revoke.js +2 -2
- package/lib/commands/whoami.js +1 -1
- package/lib/dc.js +11 -1
- package/lib/deploy/features/apig.js +33 -33
- package/lib/deploy/features/client.js +12 -19
- package/lib/deploy/features/functions/index.js +14 -4
- package/lib/deploy/features/index.js +1 -1
- package/lib/deploy/index.js +2 -9
- package/lib/endpoints/index.js +5 -2
- package/lib/endpoints/lib/apig.js +15 -5
- package/lib/endpoints/lib/applogic.js +12 -4
- package/lib/endpoints/lib/cache.js +9 -3
- package/lib/endpoints/lib/catalyst-details.js +37 -0
- package/lib/endpoints/lib/client.js +15 -5
- package/lib/endpoints/lib/datastore.js +6 -2
- package/lib/endpoints/lib/ds-bulk.js +15 -5
- package/lib/endpoints/lib/env.js +3 -1
- package/lib/endpoints/lib/event-bus.js +3 -1
- package/lib/endpoints/lib/filestore.js +6 -2
- package/lib/endpoints/lib/functions.js +12 -4
- package/lib/endpoints/lib/project.js +9 -3
- package/lib/endpoints/lib/queue.js +9 -3
- package/lib/endpoints/lib/sdk.js +3 -1
- package/lib/endpoints/lib/zcql.js +3 -1
- package/lib/error.js +18 -0
- package/lib/errorOut.js +10 -7
- package/lib/event_generate/cache.js +9 -1
- package/lib/event_generate/custom.js +6 -1
- package/lib/event_generate/datastore.js +12 -2
- package/lib/event_generate/filestore.js +9 -1
- package/lib/event_generate/integration/cliq.js +10 -2
- package/lib/execute-script.js +35 -6
- package/lib/express_middlewares/unknownReqProxy.js +18 -7
- package/lib/fn-utils/index.js +1 -1
- package/lib/fn-utils/lib/common.js +95 -17
- package/lib/fn-utils/lib/integ.js +4 -3
- package/lib/fn-utils/lib/java.js +49 -13
- package/lib/fn-utils/lib/node.js +15 -6
- package/lib/fn-watcher.js +67 -0
- package/lib/index.js +13 -12
- package/lib/init/dependencies/package-json.js +3 -1
- package/lib/init/features/functions/index.js +41 -29
- package/lib/init/features/functions/languages/java.js +5 -4
- package/lib/init/features/functions/languages/node.js +6 -5
- package/lib/init/features/index.js +8 -4
- package/lib/init/index.js +10 -3
- package/lib/internal/api.js +9 -9
- package/lib/internal/command.js +19 -14
- package/lib/internal/config.js +15 -15
- package/lib/internal/credential.js +33 -7
- package/lib/internal/rc.js +18 -10
- package/lib/migration/global/1.4.0.js +4 -2
- package/lib/migration/global/1.6.2.js +4 -2
- package/lib/migration/index.js +1 -1
- package/lib/option-filter.js +79 -22
- package/lib/optional-import.js +1 -1
- package/lib/plugin-loader.js +1 -1
- package/lib/port-resolver.js +23 -3
- package/lib/prompt.js +1 -1
- package/lib/pull/features/functions/index.js +7 -7
- package/lib/pull/features/index.js +1 -1
- package/lib/pull/index.js +10 -3
- package/lib/repl-server.js +9 -5
- package/lib/serve/features/index.js +11 -2
- package/lib/serve/index.js +19 -9
- package/lib/serve/server/index.js +137 -60
- package/lib/serve/server/lib/client.js +1 -1
- package/lib/serve/server/lib/master.js +16 -3
- package/lib/serve/server/lib/node.js +1 -1
- package/lib/shell/dependencies/http-functions.js +120 -90
- package/lib/shell/dependencies/invoker/integ/node.js +1 -1
- package/lib/shell/dependencies/local-function.js +86 -119
- package/lib/shell/index.js +10 -10
- package/lib/shell/prepare/index.js +1 -4
- package/lib/shell/prepare/languages/index.js +15 -4
- package/lib/track.js +4 -1
- package/lib/util_modules/config/index.js +1 -1
- package/lib/util_modules/config/lib/apig.js +3 -3
- package/lib/util_modules/config/lib/client.js +3 -3
- package/lib/util_modules/config/lib/functions.js +5 -5
- package/lib/util_modules/constants/index.js +22 -20
- package/lib/util_modules/constants/lib/regex.js +3 -2
- package/lib/util_modules/constants/lib/runtime.js +9 -0
- package/lib/util_modules/contextHelp.js +63 -123
- package/lib/util_modules/fs/index.js +1 -1
- package/lib/util_modules/fs/lib/async.js +19 -2
- package/lib/util_modules/fs/lib/sync.js +13 -1
- package/lib/util_modules/logger.js +12 -20
- package/lib/util_modules/option.js +1 -13
- package/lib/util_modules/project.js +75 -26
- package/lib/util_modules/shell.js +8 -2
- package/package.json +45 -45
- package/scripts/postInstall.js +31 -0
- package/lib/cjson.js +0 -20
- package/lib/log-error.js +0 -18
- package/lib/util_modules/big-json.js +0 -16
- package/lib/util_modules/constants/lib/stack.js +0 -6
- package/templates/init/functions/.DS_Store +0 -0
- package/templates/init/functions/node/.DS_Store +0 -0
- package/templates/init/functions/node/integ/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ Then you need to install [Node.js](http://nodejs.org/) and [npm](https://npmjs.o
|
|
|
38
38
|
**NOTE**
|
|
39
39
|
|
|
40
40
|
1. Installing Node.js should install npm as well.
|
|
41
|
+
2. The ZCatalyst-CLI is compatible only with node versions >=12.
|
|
41
42
|
|
|
42
43
|
---
|
|
43
44
|
|
|
@@ -69,16 +70,36 @@ Certain command are project specific and for it to work you must be inside a pro
|
|
|
69
70
|
|
|
70
71
|
Command | Description
|
|
71
72
|
------- | -----------
|
|
72
|
-
**login** |
|
|
73
|
-
**
|
|
74
|
-
**
|
|
75
|
-
**
|
|
76
|
-
**
|
|
77
|
-
**
|
|
78
|
-
**
|
|
79
|
-
**
|
|
80
|
-
**
|
|
81
|
-
**
|
|
73
|
+
**login** | Log the CLI in to your Catalyst account. *Requires access to a web browser*.
|
|
74
|
+
**whoami** | Print the email address of the user currently logged in.
|
|
75
|
+
**token:generate** | Generate a token to authenticate accessing the CLI from a remote system.
|
|
76
|
+
**token:revoke** | Revoke a token generated in this CLI.
|
|
77
|
+
**token:list** | List all the available tokens generated in this CLI.
|
|
78
|
+
**project:list** | List all the Catalyst projects you have access to.
|
|
79
|
+
**project:use** | Set an active Catalyst project for your working directory.
|
|
80
|
+
**project:reset** | Clear an active project selection and reset to the base project.
|
|
81
|
+
**init** | Initialize a Catalyst project, function, and client resources in the local directory.
|
|
82
|
+
**pull** | Pull resources of your project from the remote console to the local directory.
|
|
83
|
+
**apig:status** | Obtain the current status of API Gateway for your project and the schedule progress.
|
|
84
|
+
**apig:enable** | Enable API Gateway for your project. *In both Console and Local*.
|
|
85
|
+
**apig:disable** | Disable API Gateway for your project. *In both Console and Local*.
|
|
86
|
+
**ds:import** | Bulk write records to a table in the Catalyst Data Store.
|
|
87
|
+
**ds:export** | Bulk read records from a table in the Catalyst Data Store.
|
|
88
|
+
**ds:status** | Display the job status of a Data Store import or export operation.
|
|
89
|
+
**client:setup** | Set up the client directory in your project directory.
|
|
90
|
+
**client:delete** | Delete a version of the client from the remote console or the local directory.
|
|
91
|
+
**functions:setup** | Set up the function directory in your project directory.
|
|
92
|
+
**functions:add** | Add a function of the required stack to the function directory.
|
|
93
|
+
**functions:shell** | Launch a node shell to test emulated functions of any stack or type, other than Advanced I/O functions.
|
|
94
|
+
**functions:config** | Configure the memory allocation of a function in your project.
|
|
95
|
+
**functions:delete** | Delete a function from the remote console or the local directory.
|
|
96
|
+
**event:generate \| generate:event** | Generate sample payloads from different components or custom event sources to test Event functions.
|
|
97
|
+
**event:generate:integ** | Generate sample payloads for the required integration service to test Integration functions.
|
|
98
|
+
**serve** | Serve Basic I/O and Advanced I/O functions, and the client, to test them locally.
|
|
99
|
+
**deploy** | Deploy the Catalyst project and project resources to the remote console from the local directory.
|
|
100
|
+
**help** | Display the command reference or help for a specific command.
|
|
101
|
+
**run-script \| run** | Run a particular command script defined in *catalyst.json*.
|
|
102
|
+
**logout** | Log the CLI out of your Catalyst account.
|
|
82
103
|
|
|
83
104
|
---
|
|
84
105
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[APIG-UTILS-1]
|
|
2
|
+
context = '''Unble to read the APIG rules file ${arg[0]}'''
|
|
3
|
+
aid = '''Please rectify the below error to continue: \n${arg[1]}\n'''
|
|
4
|
+
link = ''
|
|
5
|
+
|
|
6
|
+
[APIG-UTILS-2]
|
|
7
|
+
context = '''The APIG rules file ${arg[0]} is not found.'''
|
|
8
|
+
aid = '''Please create the file or specify a valid file name that contains the APIG rules, in the ${arg[1]} file.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#JSON'
|
|
10
|
+
|
|
11
|
+
[APIG-UTILS-3]
|
|
12
|
+
context = '''Detected an APIG rule without a name. An APIG rule must include a name mandatorily.'''
|
|
13
|
+
aid = '''Please provide a name for the below mentioned APIG rule: \n${arg[0]}'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#JSON'
|
|
15
|
+
|
|
16
|
+
[APIG-UTILS-4]
|
|
17
|
+
context = '''Detected duplicate APIG rule with the name ${arg[0]}. Duplicate APIG rule names are not allowed.'''
|
|
18
|
+
aid = '''Please change the name or delete the duplicate APIG rule.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#JSON'
|
|
20
|
+
|
|
21
|
+
[APIG-UTILS-5]
|
|
22
|
+
context = '''The APIG rule ${arg[0]} is missing the mandatory ${arg[1]} value.'''
|
|
23
|
+
aid = '''Please add the ${arg[1]} value to the APIG rule.'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routing'
|
|
25
|
+
|
|
26
|
+
[APIG-UTILS-6]
|
|
27
|
+
context = '''The APIG rule ${arg[0]} is found to have the same ${arg[1]}(${arg[2]}) as ${arg[3]}. The ${arg[1]} value should be unique to the APIG rule.'''
|
|
28
|
+
aid = '''Please modify the ${arg[1]} of any one of the conflicting APIG rules to ensure there's not more than one APIG rule with the same ${arg[1]} value.'''
|
|
29
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routing'
|
|
30
|
+
|
|
31
|
+
[APIG-UTILS-7]
|
|
32
|
+
context = '''The ${arg[0]} rule cannot be verified since the Client is not valid.'''
|
|
33
|
+
aid = '''Please rectify the errors in the Client to continue.'''
|
|
34
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html'
|
|
35
|
+
|
|
36
|
+
[APIG-UTILS-8]
|
|
37
|
+
context = '''The APIG rule ${arg[0]} with the target as Client cannot have authentication.'''
|
|
38
|
+
aid = '''Please remove the ${arg[1]} key from the APIG rule ${arg[0]}.'''
|
|
39
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Auth'
|
|
40
|
+
|
|
41
|
+
[APIG-UTILS-9]
|
|
42
|
+
context = '''The ${arg[0]} provided for the APIG rule ${arg[1]} contains an invalid Regular Expression.'''
|
|
43
|
+
aid = '''Please rectify the Regular Expression error to continue. \n${arg[0]}: ${arg[2]} \n${arg[3]}'''
|
|
44
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routingl'
|
|
45
|
+
|
|
46
|
+
[APIG-UTILS-10]
|
|
47
|
+
context = '''The ${arg[0]} provided for the APIG rule ${arg[1]} is invalid.'''
|
|
48
|
+
aid = '''Please rectify the below error to continue. \n${arg[0]}: ${arg[2]} \n${arg[3]}'''
|
|
49
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routing'
|
|
50
|
+
|
|
51
|
+
[APIG-UTILS-11]
|
|
52
|
+
context = '''The APIG rule ${arg[0]} is missing the ${arg[1]} value. The ${arg[1]} is a mandatory value for this APIG rule.'''
|
|
53
|
+
aid = '''Please specify the ${arg[1]} value for the APIG rule ${arg[0]}.'''
|
|
54
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routing'
|
|
55
|
+
|
|
56
|
+
[APIG-UTILS-12]
|
|
57
|
+
context = '''The APIG rule ${arg[0]} is missing both ${arg[1]} and ${arg[2]} values.'''
|
|
58
|
+
aid = '''Please define atleast one of the values for this APIG rule.'''
|
|
59
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html'
|
|
60
|
+
|
|
61
|
+
[APIG-UTILS-13]
|
|
62
|
+
context = '''The ${arg[0]} value(${arg[1]}) specified for the APIG rule ${arg[2]} is invalid.'''
|
|
63
|
+
aid = '''The valid ${arg[0]} values are: \n${arg[3]}'''
|
|
64
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html'
|
|
65
|
+
|
|
66
|
+
[APIG-UTILS-14]
|
|
67
|
+
context = '''Unable to recognise the ${arg[0]}(${arg[1]}) provided for the APIG rule ${arg[2]}.'''
|
|
68
|
+
aid = '''Please provide a valid Catalyst URL as the ${arg[0]}.'''
|
|
69
|
+
link = 'https://www.zoho.com/catalyst/help/api-gateway.html#Routing'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[IDX-1]
|
|
2
|
+
context = '''Oops!!! It looks like your tokens basket is empty.'''
|
|
3
|
+
aid = '''Please run the ${arg[0]} command, in order to create a new token.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-tokens.html#Generating'
|
|
5
|
+
|
|
6
|
+
[IDX-2]
|
|
7
|
+
context = '''Unable to retrieve the token with the given ID: ${arg[0]}'''
|
|
8
|
+
aid = '''The valid token IDs currently available are : \n${arg[1]} \nTo get more information on the available tokens use the ${arg[2]} command'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-tokens.html#Listing'
|
|
10
|
+
|
|
11
|
+
[IDX-3]
|
|
12
|
+
context = '''You're already logged out of Catalyst CLI.'''
|
|
13
|
+
aid = '''Please use the ${arg[0]} command to login.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-login.html'
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[LOGIN-1]
|
|
2
|
+
context = '''Unable to get the refresh_token from Zoho - LOGIN FAILURE.'''
|
|
3
|
+
aid = '''Please try logging in once again with the '--no-localhost' option. You can also find alternative ways to log in from the link below.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-login.html#Options'
|
|
5
|
+
|
|
6
|
+
[LOGIN-2]
|
|
7
|
+
context = '''Unable to get the refresh_token from Zoho - TOKEN GENERATION FAILURE.'''
|
|
8
|
+
aid = '''Please retry generating the token with the ${arg[0]} command.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-tokens.html#Generating'
|
|
10
|
+
|
|
11
|
+
[LOGIN-3]
|
|
12
|
+
context = '''Unable to get the code from Zoho - LOGIN FAILURE.'''
|
|
13
|
+
aid = '''Please try logging in once again with the '--no-localhost' option. You can also find alternative ways to log in from the link below.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-login.html#Options'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[CLIENT-UTILS-1]
|
|
2
|
+
context = '''The client source directory ${arg[0]} mentioned in the ${arg[1]} file does not exist.'''
|
|
3
|
+
aid = '''Please specify a valid source directory for the client or create a new Client by executing the ${arg[2]} command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-client.html'
|
|
5
|
+
|
|
6
|
+
[CLIENT-UTILS-2]
|
|
7
|
+
context = '''The ${arg[0]} file cannot be parsed.'''
|
|
8
|
+
aid = '''Please rectify the below error to continue: \n${arg[1]}'''
|
|
9
|
+
link = ''
|
|
10
|
+
|
|
11
|
+
[CLIENT-UTILS-3]
|
|
12
|
+
context = '''The ${arg[0]} file does not exist.'''
|
|
13
|
+
aid = '''Please create the ${arg[1]} file inside the Client source directory.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Client'
|
|
15
|
+
|
|
16
|
+
[CLIENT-UTILS-4]
|
|
17
|
+
context = '''The ${arg[0]} file seems to be corrupted.'''
|
|
18
|
+
aid = '''Please ensure that, the values supplied with ${arg[1]} and ${arg[2]} are valid.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Client'
|
|
20
|
+
|
|
21
|
+
[CLIENT-UTILS-5]
|
|
22
|
+
context = '''Error when ${arg[0]} the Client with the ${arg[1]} plugin.'''
|
|
23
|
+
aid = '''Please rectify the below error to continue. \n${arg[2]}'''
|
|
24
|
+
link = ''
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[RC-1]
|
|
2
|
+
context = '''The project(${arg[0]}) provided with the ${arg[1]} option is not available in the Catalyst remote console'''
|
|
3
|
+
aid = '''Please use one of the available projects with the ${arg[1]} option. \nThe available projects are: \n${arg[2]}'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-options.html#Project'
|
|
5
|
+
|
|
6
|
+
[RC-2]
|
|
7
|
+
context = '''Unable to load the ${arg[0]} file.'''
|
|
8
|
+
aid = '''Please try to rectify the errors to continue.'''
|
|
9
|
+
link = ''
|
|
10
|
+
|
|
11
|
+
[RC-3]
|
|
12
|
+
context = '''Oops!!! It looks like you're not inside a Catalyst app directory because we are unable to locate the ${arg[0]} file.'''
|
|
13
|
+
aid = '''Please run the ${arg[1]} command to initialise or specify a valid project with the ${arg[2]} option.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-init.html#Initialize_All'
|
|
15
|
+
|
|
16
|
+
[RC-4]
|
|
17
|
+
context = '''The ${arg[0]} file is corrupted.'''
|
|
18
|
+
aid = '''Please delete the ${arg[0]} file in the Catalyst app directory and initialise the project with the ${arg[1]} command or \nSpecify a valid project with the ${arg[2]} option.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/cli-init.html#Options'
|
|
20
|
+
|
|
21
|
+
[RC-5]
|
|
22
|
+
context = '''The project which is currently active doesn't seems to be present in Catalyst remote console.'''
|
|
23
|
+
aid = '''Use the ${arg[0]} command in order to change the existing active project.'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/cli-projects.html#Use'
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
[DIS-1]
|
|
2
|
+
context = '''Cannot disable API-Gateway now. There is an API-Gateway scheduler in progress.'''
|
|
3
|
+
aid = '''Please try again after some time. To know the status of the scheduled job use the ${arg[0]} command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#Status'
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
[EN-1]
|
|
2
|
+
context = '''Cannot enable API-Gateway now. There is an API-Gateway scheduler in progress.'''
|
|
3
|
+
aid = '''Please try again after some time. To know the status of the scheduled job use the ${arg[0]} command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#Status'
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[CDEL-1]
|
|
2
|
+
context = '''You cannot specify both ${arg[0]} and ${arg[1]} options in the same command'''
|
|
3
|
+
aid = '''Please use either the ${arg[0]} or the ${arg[1]} option at a time with this command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-client.html#Delete_Options'
|
|
5
|
+
|
|
6
|
+
[CDEL-2]
|
|
7
|
+
context = '''The specified version of the web client is not available in the local machine.'''
|
|
8
|
+
aid = '''The web client versions currently available in the local machine are: ${arg[0]}'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-client.html#Delete'
|
|
10
|
+
|
|
11
|
+
[CDEL-3]
|
|
12
|
+
context = '''No version of the web client is found in the local machine.'''
|
|
13
|
+
aid = '''Please use the ${arg[0]} command to create a new web client.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-client.html#Setup'
|
|
15
|
+
|
|
16
|
+
[CDEL-4]
|
|
17
|
+
context = '''Oops! It looks like you haven't deployed any web clients yet.'''
|
|
18
|
+
aid = '''You can deploy a web client to the Catalyst remote console with the ${arg[0]} command.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/cli-deploy.html'
|
|
20
|
+
|
|
21
|
+
[CDEL-5]
|
|
22
|
+
context = '''The version ${arg[0]} of the web client is not available in the Catalyst remote console.'''
|
|
23
|
+
aid = '''The web client versions you can delete are: \n${arg[1]}'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/cli-client.html#Delete'
|
|
25
|
+
|
|
26
|
+
[CDEL-6]
|
|
27
|
+
context = '''The version ${arg[0]} of the web client is currently in live, and a live web client cannot be deleted.'''
|
|
28
|
+
aid = '''You can either change your current live web client to some other version, or deploy a new version of the web client to delete the ${arg[0]} version.'''
|
|
29
|
+
link = 'https://www.zoho.com/catalyst/help/web-client-hosting.html#Older_Version'
|
|
30
|
+
|
|
31
|
+
[CDEL-7]
|
|
32
|
+
context = '''Only the live version(${arg[0]}) of the web client is available in the Catalyst Remote Console, and a live web client cannot be deleted.'''
|
|
33
|
+
aid = '''You can deploy a new version of the web client that will make the ${arg[0]} version eligible for deletion.'''
|
|
34
|
+
link = 'https://www.zoho.com/catalyst/help/web-client-hosting.html#Older_Version'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[IMP-1]
|
|
2
|
+
context = '''Table identifier is expected!'''
|
|
3
|
+
aid = '''Please provide the table identifier with the command or in the config file'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-import-export.html#Import'
|
|
5
|
+
|
|
6
|
+
[IMP-2]
|
|
7
|
+
context = '''File needed for import! A CSV file is mandatory for executing this command.'''
|
|
8
|
+
aid = '''Please provide the path of the CSV file present in the local machine with the command, or
|
|
9
|
+
provide the file_id of the file that is already uploaded to the File Store in the config json.'''
|
|
10
|
+
link = 'https://www.zoho.com/catalyst/help/cli-import-export.html#CSV'
|
|
11
|
+
|
|
12
|
+
[IMP-3]
|
|
13
|
+
context = '''No Folders present in the File Store! You must have atleast one folder in the File Store to upload the CSV file.'''
|
|
14
|
+
aid = '''Please create atleast one folder in the Catalyst File Store to proceed.'''
|
|
15
|
+
link = 'https://www.zoho.com/catalyst/help/file-store.html#Creating'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[STAT-1]
|
|
2
|
+
context = '''Oops! It looks like the job list is currently empty.'''
|
|
3
|
+
aid = '''Inorder to create a new job use ${arg[0]} command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-import-export.html'
|
|
5
|
+
|
|
6
|
+
[STAT-2]
|
|
7
|
+
context = '''Cannot find any Job with the Job ID : ${arg[0]}.'''
|
|
8
|
+
aid = '''Please run the ${arg[1]} command to view the available jobs.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-import-export.html#Check_Status'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[IDX-1]
|
|
2
|
+
context = '''The options provided ${arg[0]}(source) ${arg[1]}(action) are not in a pair.'''
|
|
3
|
+
aid = '''Please provide the options as key values in this format: ${arg[2]}'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html'
|
|
5
|
+
|
|
6
|
+
[IDX-2]
|
|
7
|
+
context = '''The provided input for source is invalid.'''
|
|
8
|
+
aid = '''The source must be one of the following: \n${arg[0]}'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html'
|
|
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 = 'https://www.zoho.com/catalyst/help/cli-generate-event.html'
|
|
15
|
+
|
|
16
|
+
[IDX-4]
|
|
17
|
+
context = '''Event bus name is missing, which is a mandatory input for a custom source.'''
|
|
18
|
+
aid = '''Please use the ${arg[0]} option to provide an event bus name. \nNote: The Default event bus cannot be used with custom events.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html#Custom'
|
|
20
|
+
|
|
21
|
+
[IDX-5]
|
|
22
|
+
context = '''The event bus with the name ${arg[0]} does not exist in the Catalyst remote console.'''
|
|
23
|
+
aid = '''The event buses available are: \n${arg[1]} \n\nNote: The Default event bus cannot be used with custom events.'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html#Custom'
|
|
25
|
+
|
|
26
|
+
[IDX-6]
|
|
27
|
+
context = '''The provided action is not compatible with the source: ${arg[0]} ${arg[1]} ${arg[2]} '''
|
|
28
|
+
aid = '''The compatible actions with the source ${arg[2]} are: \n${arg[3]}'''
|
|
29
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[CONF-1]
|
|
2
|
+
context = '''There are no functions present in the Catalyst remote console.'''
|
|
3
|
+
aid = '''The function configuration feature is only applicable for the functions present in Catalyst remote console.
|
|
4
|
+
Please deploy your functions to the Catalyst remote console to use this feature.'''
|
|
5
|
+
link = 'https://www.zoho.com/catalyst/help/cli-deploy.html'
|
|
6
|
+
|
|
7
|
+
[CONF-2]
|
|
8
|
+
context = '''The function ${arg[0]} is not present in the Catalyst remote console.'''
|
|
9
|
+
aid = '''The function should be available in the Catalyst remote console in order to use this feature.
|
|
10
|
+
The available functions are: \n${arg[1]}'''
|
|
11
|
+
link = ''
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[FDEL-1]
|
|
2
|
+
context = '''You cannot specify both ${arg[0]} and ${arg[1]} options in the same command.'''
|
|
3
|
+
aid = '''Please use either the ${arg[0]} or the ${arg[1]} option at a time with this command.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Delete_Options'
|
|
5
|
+
|
|
6
|
+
[FDEL-2]
|
|
7
|
+
context = '''No Catalyst functions found in the local machine.'''
|
|
8
|
+
aid = '''You can create new Catalyst functions with the ${arg[0]} command.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Add'
|
|
10
|
+
|
|
11
|
+
[FDEL-3]
|
|
12
|
+
context = '''Cannot use the Function ID with the functions in local machine.'''
|
|
13
|
+
aid = '''Use the function name instead, or use the command without specifying any function identifier.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Delete'
|
|
15
|
+
|
|
16
|
+
[FDEL-4]
|
|
17
|
+
context = '''The function ${arg[0]} is not available in local machine.'''
|
|
18
|
+
aid = '''The available functions are: \n${arg[1]}'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Delete'
|
|
20
|
+
|
|
21
|
+
[FDEL-5]
|
|
22
|
+
context = '''No Catalyst functions found in the Catalyst remote console.'''
|
|
23
|
+
aid = '''You can deploy the Catalyst functions to the Catalyst remote console using the ${arg[0]} command.'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/cli-deploy.html'
|
|
25
|
+
|
|
26
|
+
[FDEL-6]
|
|
27
|
+
context = '''The function ${arg[0]} is not available in the Catalyst remote console.'''
|
|
28
|
+
aid = '''The available functions are: \n${arg[1]}'''
|
|
29
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Delete'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[PROJ-USE-1]
|
|
2
|
+
context = '''Oops! It looks like you haven't created your first Catalyst project yet'''
|
|
3
|
+
aid = '''Please visit the below link to get started with your first catalyst project'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/catalyst-console.html#Projects'
|
|
5
|
+
|
|
6
|
+
[PROJ-USE-2]
|
|
7
|
+
context = '''The project ${arg[0]} does not exist in the Catalyst remote console.'''
|
|
8
|
+
aid = '''Please specify only the projects from this list : \n${arg[1]}'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-projects.html#Use'
|
package/docs/dc.toml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
[APIG-1]
|
|
2
|
+
context = '''Skipping deploy of API Gateway, since API Gateway is not enabled locally.'''
|
|
3
|
+
aid = '''Please enable API Gateway locally by executing the ${arg[0]} command and try deploying the API Gateway once again.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-apig.html#Enable'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[CLIQ-1]
|
|
2
|
+
context = '''Insufficient input value for event Integ ZohoCliq.'''
|
|
3
|
+
aid = '''The input should be in the format of ${arg[0]}, ex: bot,welcome_handler'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html#Integ'
|
|
5
|
+
|
|
6
|
+
[CLIQ-2]
|
|
7
|
+
context = '''Unknown combination of Cliq component: ${arg[0]} ${arg[1]} ${arg[2]}'''
|
|
8
|
+
aid = '''Please use the command without the ${arg[3]} option, and choose the appropriate combination of available Cliq components from the list provided.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-generate-event.html#Integ'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[EXEC-SCRIPT-1]
|
|
2
|
+
context = '''The given script command ${arg[0]} is not a valid one.'''
|
|
3
|
+
aid = '''Please specify the script command in this format --> ${arg[1]}.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/scripts.html'
|
|
5
|
+
|
|
6
|
+
[EXEC-SCRIPT-2]
|
|
7
|
+
context = '''The feature specified in the ${arg[0]} script command is not a valid Catalyst feature.'''
|
|
8
|
+
aid = '''The valid Catalyst features are: \n${arg[1]}'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/scripts.html#Run'
|
|
10
|
+
|
|
11
|
+
[EXEC-SCRIPT-3]
|
|
12
|
+
context = '''The script ${arg[0]} is not available in the ${arg[1]} file.'''
|
|
13
|
+
aid = '''The available scripts in the ${arg[1]} file are: \n${arg[2]}'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/scripts.html#Run'
|
|
15
|
+
|
|
16
|
+
[EXEC-SCRIPT-4]
|
|
17
|
+
context = '''The script ${arg[0]} exited with the exit code greater than 0 or with an error.'''
|
|
18
|
+
aid = 'Execution Info: \n${arg[1]}'
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/scripts.html#Run'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[COMMON-1]
|
|
2
|
+
context = '''There are no ${arg[0]} found under the functions key in the ${arg[1]} file.'''
|
|
3
|
+
aid = '''Please specify the function names as the ${arg[0]} in the ${arg[1]} file.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Catalyst_Json'
|
|
5
|
+
|
|
6
|
+
[COMMON-2]
|
|
7
|
+
context = '''The directory specifed as the functions source(${arg[0]}) in the ${arg[1]} file is not found in the project root directory.'''
|
|
8
|
+
aid = '''Please specify a valid directory as the source that is present inside the project root directory.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Catalyst_Json'
|
|
10
|
+
|
|
11
|
+
[COMMON-3]
|
|
12
|
+
context = '''${arg[0]} - these filter(s)/function(s) specified with the ${arg[1]} option is/are not found in the ${arg[2]} file.'''
|
|
13
|
+
aid = '''The valid targets from the ${arg[2]} file are: \n${arg[3]}'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Catalyst_Json'
|
|
15
|
+
|
|
16
|
+
[COMMON-4]
|
|
17
|
+
context = '''Error when ${arg[0]} the function with the plugin: \n Error: ${arg[1]}'''
|
|
18
|
+
aid = '''Please rectify the above error(s) to continue.'''
|
|
19
|
+
link = ''
|
|
20
|
+
|
|
21
|
+
[COMMON-5]
|
|
22
|
+
context = '''The value ${arg[0]} supplied with the ${arg[1]} option is not a valid number.'''
|
|
23
|
+
aid = '''Please specify a valid number with the ${arg[1]} option.'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/cli-functions.html#Memory'
|
|
25
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[JAVA-1]
|
|
2
|
+
context = '''Unable to find the JAR file in the path ${arg[0]} mentioned in the ${arg[1]} file.'''
|
|
3
|
+
aid = '''Please specify a valid path to the JAR file in the ${arg[1]} file.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Java'
|
|
5
|
+
|
|
6
|
+
[JAVA-2]
|
|
7
|
+
context = '''The ${arg[0]} file in the ${arg[1]} directory seems to be corrupted.'''
|
|
8
|
+
aid = '''Kindly delete the ${arg[0]} file in the ${arg[1]} directory and execute the command once again.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Java'
|
|
10
|
+
|
|
11
|
+
[JAVA-3]
|
|
12
|
+
context = '''The name of the project(${arg[0]}) in the ${arg[1]} file is different from the name of the function(${arg[2]}).'''
|
|
13
|
+
aid = '''Please change the project name in the ${arg[1]} file as the same as the function name(${arg[2]}).'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html'
|
|
15
|
+
|
|
16
|
+
[JAVA-4]
|
|
17
|
+
context = '''Unable to check the ${arg[0]} version.'''
|
|
18
|
+
aid = '''Please ensure that ${arg[0]} is installed and try again.'''
|
|
19
|
+
link = 'https://www.zoho.com/catalyst/help/installing-catalyst-cli.html#Pre-Requisites'
|
|
20
|
+
|
|
21
|
+
[JAVA-5]
|
|
22
|
+
context = '''${arg[0]} version is above the compatible version "${arg[1]}".'''
|
|
23
|
+
aid = '''Kindly downgrade to version ${arg[2]} or lower \nNote: You can verify your javac version by executing javac --version or javac -version'''
|
|
24
|
+
link = 'https://www.zoho.com/catalyst/help/installing-catalyst-cli.html#Pre-Requisites'
|
|
25
|
+
|
|
26
|
+
[JAVA-6]
|
|
27
|
+
context = '''The main file ${arg[0]} mentioned in the ${arg[1]} file does not exists in the function(${arg[2]}) directory.'''
|
|
28
|
+
aid = '''Please specify a valid main file in the ${arg[1]} file.'''
|
|
29
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Java'
|
|
30
|
+
|
|
31
|
+
[JAVA-7]
|
|
32
|
+
context = '''Java compilation error !!!'''
|
|
33
|
+
aid = '''Please fix the above error(s) to continue.'''
|
|
34
|
+
link = ''
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
[NODE-1]
|
|
2
|
+
context = '''The main file ${arg[0]} mentioned in the ${arg[1]} file does not exists in the function(${arg[2]}) directory.'''
|
|
3
|
+
aid = '''Please specify a valid main file in the ${arg[1]} file.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/project-directory-structure.html#Node'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
[CONFIG-1]
|
|
2
|
+
context = '''There was an error loading ${arg[0]} file.'''
|
|
3
|
+
aid = '''Please rectify this error to proceed : ${arg[1]}'''
|
|
4
|
+
link = ''
|
|
5
|
+
|
|
6
|
+
[CONFIG-2]
|
|
7
|
+
context = '''Not in a Catalyst app directory. Could not find the ${arg[0]} file.'''
|
|
8
|
+
aid = '''Initialise a project using the ${arg[1]} command to make this directory(${arg[2]}) a Catalyst app directory.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-init.html'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[CRED-1]
|
|
2
|
+
context = '''Invalid token passed for authentication. Token: ${arg[0]}'''
|
|
3
|
+
aid = '''Please provide a valid token with the ${arg[1]} option.'''
|
|
4
|
+
link = 'https://www.zoho.com/catalyst/help/cli-options.html#Token'
|
|
5
|
+
|
|
6
|
+
[CRED-2]
|
|
7
|
+
context = '''Authentication failure'''
|
|
8
|
+
aid = '''Please re-login with the ${arg[0]} command to re-authenticate.'''
|
|
9
|
+
link = 'https://www.zoho.com/catalyst/help/cli-login.html#Force_Login'
|
|
10
|
+
|
|
11
|
+
[CRED-3]
|
|
12
|
+
context = '''Oops! It looks like you haven't logged in yet.'''
|
|
13
|
+
aid = '''Please use the ${arg[0]} command to login.'''
|
|
14
|
+
link = 'https://www.zoho.com/catalyst/help/cli-login.html'
|