zcatalyst-cli 1.18.0-beta.10 → 1.18.0-beta.11-slate
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/slate/unlink.toml +9 -0
- package/docs/option-filter.toml +5 -0
- package/docs/serve/server/lib/slate/index.toml +14 -0
- package/docs/slate-utils.toml +4 -0
- package/lib/archiver.js +18 -9
- package/lib/command_needs/auth.js +1 -1
- package/lib/command_needs/rc.js +40 -3
- package/lib/commands/deploy/index.js +6 -1
- package/lib/commands/deploy/slate.js +58 -0
- package/lib/commands/index.js +3 -0
- package/lib/commands/init.js +4 -0
- package/lib/commands/slate/create.js +60 -0
- package/lib/commands/slate/link.js +60 -0
- package/lib/commands/slate/unlink.js +74 -0
- package/lib/deploy/features/index.js +3 -0
- package/lib/deploy/features/slate.js +123 -0
- package/lib/endpoints/index.js +8 -1
- package/lib/endpoints/lib/slate.js +91 -0
- package/lib/fn-utils/lib/common.js +1 -1
- package/lib/init/features/appsail/index.js +1 -1
- package/lib/init/features/index.js +15 -2
- package/lib/init/features/project.js +1 -1
- package/lib/init/features/slate/index.js +308 -0
- package/lib/internal/api.js +1 -1
- package/lib/internal/command.js +9 -5
- package/lib/option-filter.js +8 -2
- package/lib/port-resolver.js +7 -0
- package/lib/prompt/types/file-path.js +8 -5
- package/lib/serve/features/index.js +8 -1
- package/lib/serve/features/slate.js +47 -0
- package/lib/serve/index.js +19 -0
- package/lib/serve/server/index.js +61 -1
- package/lib/serve/server/lib/appsail/index.js +1 -1
- package/lib/serve/server/lib/master/index.js +25 -21
- package/lib/serve/server/lib/master/slate.js +45 -0
- package/lib/serve/server/lib/master/utils.js +2 -2
- package/lib/serve/server/lib/slate/index.js +144 -0
- package/lib/serve/server/lib/slate/static-server.js +193 -0
- package/lib/slate-utils.js +212 -0
- package/lib/util_modules/config/index.js +3 -1
- package/lib/util_modules/config/lib/slate.js +94 -0
- package/lib/util_modules/constants/lib/cliq-handlers.js +18 -10
- package/lib/util_modules/constants/lib/default.js +4 -0
- package/lib/util_modules/constants/lib/file-names.js +7 -1
- package/lib/util_modules/constants/lib/folder-names.js +1 -0
- package/lib/util_modules/constants/lib/scopes.js +3 -1
- package/lib/util_modules/context-help.js +2 -2
- package/lib/util_modules/fs/lib/async.js +8 -1
- package/lib/util_modules/fs/lib/sync.js +6 -1
- package/lib/util_modules/parser/toml.js +20 -5
- package/package.json +2 -2
- package/templates/event/integ/cliq/bot/action_handler.json +13 -4
- package/templates/event/integ/cliq/bot/call_handler.json +41 -0
- package/templates/event/integ/cliq/bot/context_handler.json +11 -3
- package/templates/event/integ/cliq/bot/incomingwebhook_handler.json +11 -3
- package/templates/event/integ/cliq/bot/mention_handler.json +12 -4
- package/templates/event/integ/cliq/bot/message_handler.json +13 -4
- package/templates/event/integ/cliq/bot/participation_handler.json +13 -3
- package/templates/event/integ/cliq/bot/welcome_handler.json +12 -8
- package/templates/event/integ/cliq/command/execution_handler.json +12 -3
- package/templates/event/integ/cliq/command/suggestion_handler.json +18 -4
- package/templates/event/integ/cliq/{installation → extension}/installation_handler.json +13 -4
- package/templates/event/integ/cliq/{installation → extension}/installation_validator.json +13 -5
- package/templates/event/integ/cliq/extension/uninstallation_handler.json +37 -0
- package/templates/event/integ/cliq/function/button_handler.json +13 -5
- package/templates/event/integ/cliq/function/form_change_handler.json +9 -3
- package/templates/event/integ/cliq/function/form_handler.json +11 -3
- package/templates/event/integ/cliq/function/form_values_handler.json +9 -3
- package/templates/event/integ/cliq/function/form_view_handler.json +26 -0
- package/templates/event/integ/cliq/function/widget_button_handler.json +14 -5
- package/templates/event/integ/cliq/link_preview/action_handler.json +54 -0
- package/templates/event/integ/cliq/link_preview/after_send_handler.json +47 -0
- package/templates/event/integ/cliq/link_preview/menu_handler.json +47 -0
- package/templates/event/integ/cliq/link_preview/preview_handler.json +47 -0
- package/templates/event/integ/cliq/messageaction/execution_handler.json +11 -3
- package/templates/event/integ/cliq/widget/view_handler.json +12 -4
- package/templates/init/functions/java/integ/cliq/com/handlers/BotHandler.java +29 -23
- package/templates/init/functions/java/integ/cliq/com/handlers/CommandHandler.java +14 -17
- package/templates/init/functions/java/integ/cliq/com/handlers/ExtensionHandler.java +41 -0
- package/templates/init/functions/java/integ/cliq/com/handlers/FunctionHandler.java +74 -22
- package/templates/init/functions/java/integ/cliq/com/handlers/LinkPreviewHandler.java +108 -0
- package/templates/init/functions/java/integ/cliq/com/handlers/MessageActionHandler.java +6 -8
- package/templates/init/functions/java/integ/cliq/sample.java +10 -0
- package/templates/init/functions/node/integ/cliq/handlers/bot-handler.js +4 -0
- package/templates/init/functions/node/integ/cliq/handlers/command-handler.js +3 -5
- package/templates/init/functions/node/integ/cliq/handlers/{installation-validator.js → extension-handler.js} +20 -3
- package/templates/init/functions/node/integ/cliq/handlers/function-handler.js +42 -0
- package/templates/init/functions/node/integ/cliq/handlers/link-preview-handler.js +73 -0
- package/templates/init/functions/python/integ/cliq/handlers/bot_handler.py +13 -3
- package/templates/init/functions/python/integ/cliq/handlers/command_handler.py +7 -7
- package/templates/init/functions/python/integ/cliq/handlers/extension_handler.py +25 -0
- package/templates/init/functions/python/integ/cliq/handlers/function_handler.py +54 -10
- package/templates/init/functions/python/integ/cliq/handlers/link_preview_handler.py +76 -0
- package/templates/init/functions/python/integ/cliq/handlers/widget_handler.py +10 -9
- package/templates/init/functions/python/integ/cliq/sample.py +2 -2
- package/templates/init/functions/java/integ/cliq/com/handlers/InstallationHandler.java +0 -20
- package/templates/init/functions/java/integ/cliq/com/handlers/InstallationValidator.java +0 -22
- package/templates/init/functions/node/integ/cliq/handlers/installation-handler.js +0 -15
- package/templates/init/functions/python/integ/cliq/handlers/installation_handler.py +0 -12
- package/templates/init/functions/python/integ/cliq/handlers/installation_validator.py +0 -16
|
@@ -12,7 +12,7 @@ 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.chmod = exports.writeJSONFile = exports.readJSONFile = exports.emptyDir = exports.findAndReplace = exports.rename = exports.copyDir = exports.copyFiles = exports.copyFile = exports.deleteDir = exports.deleteFile = exports.ensureDir = exports.ensureFile = exports.walk = exports.dirList = exports.writeFile = exports.tempFile = exports.readFile = exports.fileExists = exports.dirExists = exports.isPathExists = void 0;
|
|
15
|
+
exports.isDirEmpty = exports.chmod = exports.writeJSONFile = exports.readJSONFile = exports.emptyDir = exports.findAndReplace = exports.rename = exports.copyDir = exports.copyFiles = exports.copyFile = exports.deleteDir = exports.deleteFile = exports.ensureDir = exports.ensureFile = exports.walk = exports.dirList = exports.writeFile = exports.tempFile = exports.readFile = exports.fileExists = exports.dirExists = exports.isPathExists = void 0;
|
|
16
16
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
17
17
|
const minimatch_1 = __importDefault(require("minimatch"));
|
|
18
18
|
const os_1 = __importDefault(require("os"));
|
|
@@ -249,3 +249,10 @@ function chmod(path, mode, { checkPath = true, recursive = false } = {}) {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
exports.chmod = chmod;
|
|
252
|
+
function isDirEmpty(pth) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const files = yield fs_extra_1.default.readdir(pth);
|
|
255
|
+
return files.length === 0;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
exports.isDirEmpty = isDirEmpty;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.writeJSONFile = exports.readJSONFile = exports.emptyDir = exports.copyDir = exports.copyFiles = exports.copyFile = exports.deleteTempDir = exports.tempFile = exports.deleteDir = exports.isPathInside = exports.isPathOutside = exports.renameFile = exports.modifyFileName = exports.appendFile = exports.writeFile = exports.ensureFile = exports.ensureDir = exports.readFile = exports.deleteFile = exports.getAllFiles = exports.getAllDirs = exports.dirExists = exports.pathExists = exports.fileExists = exports.readSymLink = exports.getReadStream = exports.getWriteStream = void 0;
|
|
6
|
+
exports.isDirEmpty = exports.writeJSONFile = exports.readJSONFile = exports.emptyDir = exports.copyDir = exports.copyFiles = exports.copyFile = exports.deleteTempDir = exports.tempFile = exports.deleteDir = exports.isPathInside = exports.isPathOutside = exports.renameFile = exports.modifyFileName = exports.appendFile = exports.writeFile = exports.ensureFile = exports.ensureDir = exports.readFile = exports.deleteFile = exports.getAllFiles = exports.getAllDirs = exports.dirExists = exports.pathExists = exports.fileExists = exports.readSymLink = exports.getReadStream = exports.getWriteStream = void 0;
|
|
7
7
|
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
8
8
|
const os_1 = __importDefault(require("os"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -180,3 +180,8 @@ function writeJSONFile(pth, object, opts) {
|
|
|
180
180
|
return fs_extra_1.default.writeJsonSync(pth, object, opts);
|
|
181
181
|
}
|
|
182
182
|
exports.writeJSONFile = writeJSONFile;
|
|
183
|
+
function isDirEmpty(pth) {
|
|
184
|
+
const files = fs_extra_1.default.readdirSync(pth);
|
|
185
|
+
return files.length === 0;
|
|
186
|
+
}
|
|
187
|
+
exports.isDirEmpty = isDirEmpty;
|
|
@@ -3,17 +3,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
6
|
+
exports.convertTOML = exports.parseTOML = void 0;
|
|
7
|
+
const toml_1 = __importDefault(require("@iarna/toml"));
|
|
7
8
|
const error_1 = __importDefault(require("../../error"));
|
|
8
|
-
|
|
9
|
+
function parseTOML(str) {
|
|
9
10
|
try {
|
|
10
|
-
return
|
|
11
|
+
return toml_1.default.parse(str);
|
|
11
12
|
}
|
|
12
13
|
catch (e) {
|
|
13
14
|
const err = error_1.default.getErrorInstance(e, {
|
|
14
|
-
message: 'TOML Parsing error'
|
|
15
|
+
message: 'TOML Parsing error' + e
|
|
15
16
|
});
|
|
16
17
|
err.exit = 2;
|
|
17
18
|
throw err;
|
|
18
19
|
}
|
|
19
|
-
}
|
|
20
|
+
}
|
|
21
|
+
exports.parseTOML = parseTOML;
|
|
22
|
+
function convertTOML(object) {
|
|
23
|
+
try {
|
|
24
|
+
return toml_1.default.stringify(object);
|
|
25
|
+
}
|
|
26
|
+
catch (e) {
|
|
27
|
+
const err = error_1.default.getErrorInstance(e, {
|
|
28
|
+
message: 'TOML Writing error'
|
|
29
|
+
});
|
|
30
|
+
err.exit = 2;
|
|
31
|
+
throw err;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.convertTOML = convertTOML;
|
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.11-slate",
|
|
4
4
|
"description": "Command Line Tool for CATALYST",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"homepage": "https://catalyst.zoho.com",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@iarna/toml": "^2.2.5",
|
|
28
29
|
"ansi-colors": "^4.1.3",
|
|
29
30
|
"app-module-path": "^2.2.0",
|
|
30
31
|
"better-queue": "^3.8.10",
|
|
@@ -51,7 +52,6 @@
|
|
|
51
52
|
"semver": "^7.3.7",
|
|
52
53
|
"string-width": "^4.2.3",
|
|
53
54
|
"strip-ansi": "^6.0.1",
|
|
54
|
-
"toml": "^3.0.0",
|
|
55
55
|
"update-notifier": "^5.1.0",
|
|
56
56
|
"winston": "^3.7.2",
|
|
57
57
|
"ws": "^8.5.0",
|
|
@@ -3,17 +3,25 @@
|
|
|
3
3
|
"unique_name": "sample_uniq",
|
|
4
4
|
"handler": {
|
|
5
5
|
"type": "action_handler",
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "Say Hi"
|
|
7
7
|
},
|
|
8
|
+
"sub_action": "",
|
|
8
9
|
"response_url": "https://cliq.zoho.com/v2/extensions/2980/responses/17202823900615741410013820",
|
|
9
10
|
"type": "bot",
|
|
10
11
|
"timestamp": 1569520690703,
|
|
11
12
|
"params" : {
|
|
12
13
|
"environment" : {
|
|
13
|
-
|
|
14
|
+
"tld": ".com",
|
|
15
|
+
"data_center": "US",
|
|
16
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
14
17
|
},
|
|
15
18
|
"access": {
|
|
16
|
-
"user_id": "
|
|
19
|
+
"user_id": "130720038",
|
|
20
|
+
"zoho_user_id": "130720038",
|
|
21
|
+
"organization": {
|
|
22
|
+
"type": "company",
|
|
23
|
+
"id": "123456456"
|
|
24
|
+
},
|
|
17
25
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
18
26
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
19
27
|
},
|
|
@@ -26,7 +34,8 @@
|
|
|
26
34
|
"id": "123456",
|
|
27
35
|
"email": "scott.fisher@zylcal.com",
|
|
28
36
|
"admin" : true,
|
|
29
|
-
"organization_id" : "123456456"
|
|
37
|
+
"organization_id" : "123456456",
|
|
38
|
+
"zoho_user_id": "130720038"
|
|
30
39
|
},
|
|
31
40
|
"chat": {
|
|
32
41
|
"owner": "123456",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Sample",
|
|
3
|
+
"unique_name": "sample_uniq",
|
|
4
|
+
"handler": {
|
|
5
|
+
"type": "alert_handler"
|
|
6
|
+
},
|
|
7
|
+
"type": "bot",
|
|
8
|
+
"timestamp": 1738312467537,
|
|
9
|
+
"params" : {
|
|
10
|
+
"environment" : {
|
|
11
|
+
"tld": ".com",
|
|
12
|
+
"data_center": "US",
|
|
13
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
14
|
+
},
|
|
15
|
+
"access": {
|
|
16
|
+
"user_id": "130720038",
|
|
17
|
+
"zoho_user_id": "130720038",
|
|
18
|
+
"organization": {
|
|
19
|
+
"type": "company",
|
|
20
|
+
"id": "123456456"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"operation": "ringing",
|
|
24
|
+
"user": {
|
|
25
|
+
"country": "us",
|
|
26
|
+
"timezone": "Asia/calcutta",
|
|
27
|
+
"last_name": "Fisher",
|
|
28
|
+
"first_name": "Scott",
|
|
29
|
+
"language": "en",
|
|
30
|
+
"id": "123456",
|
|
31
|
+
"email": "scott.fisher@zylcal.com",
|
|
32
|
+
"admin" : true,
|
|
33
|
+
"organization_id" : "123456456",
|
|
34
|
+
"zoho_user_id": "130720038"
|
|
35
|
+
},
|
|
36
|
+
"data": {
|
|
37
|
+
"call_id": "783719c0-54d1-423c-9033-588454522e9e",
|
|
38
|
+
"time": 1738312467509
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -9,10 +9,17 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
@@ -25,7 +32,8 @@
|
|
|
25
32
|
"id": "123456",
|
|
26
33
|
"email": "scott.fisher@zylcal.com",
|
|
27
34
|
"admin" : true,
|
|
28
|
-
"organization_id" : "123456456"
|
|
35
|
+
"organization_id" : "123456456",
|
|
36
|
+
"zoho_user_id": "130720038"
|
|
29
37
|
},
|
|
30
38
|
"chat": {
|
|
31
39
|
"owner": "123456",
|
|
@@ -9,10 +9,17 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
@@ -25,7 +32,8 @@
|
|
|
25
32
|
"id": "123456",
|
|
26
33
|
"email": "scott.fisher@zylcal.com",
|
|
27
34
|
"admin" : true,
|
|
28
|
-
"organization_id" : "123456456"
|
|
35
|
+
"organization_id" : "123456456",
|
|
36
|
+
"zoho_user_id": "130720038"
|
|
29
37
|
},
|
|
30
38
|
"headers": {},
|
|
31
39
|
"params": {},
|
|
@@ -9,10 +9,17 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
@@ -44,7 +51,8 @@
|
|
|
44
51
|
"id": "123456",
|
|
45
52
|
"email": "scott.fisher@zylcal.com",
|
|
46
53
|
"admin" : true,
|
|
47
|
-
"organization_id" : "123456456"
|
|
54
|
+
"organization_id" : "123456456",
|
|
55
|
+
"zoho_user_id": "130720038"
|
|
48
56
|
},
|
|
49
57
|
"chat": {
|
|
50
58
|
"owner": "123456",
|
|
@@ -66,7 +74,7 @@
|
|
|
66
74
|
],
|
|
67
75
|
"id": "CT_1256246524399772951_1741337",
|
|
68
76
|
"type": "channel",
|
|
69
|
-
"title": "",
|
|
77
|
+
"title": "Catalyst",
|
|
70
78
|
"recent_messages": []
|
|
71
79
|
},
|
|
72
80
|
"location": {
|
|
@@ -9,15 +9,22 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
19
26
|
"message_details": {
|
|
20
|
-
"message": { "mentions": [], "type": "text", "text": "Hi" },
|
|
27
|
+
"message": { "mentions": [], "type": "text", "text": "Hi", "comment":"Attached a file", "file": "File" },
|
|
21
28
|
"time": 1610351240458
|
|
22
29
|
},
|
|
23
30
|
"attachments": [],
|
|
@@ -41,7 +48,8 @@
|
|
|
41
48
|
"id": "123456",
|
|
42
49
|
"email": "scott.fisher@zylcal.com",
|
|
43
50
|
"admin" : true,
|
|
44
|
-
"organization_id" : "123456456"
|
|
51
|
+
"organization_id" : "123456456",
|
|
52
|
+
"zoho_user_id": "130720038"
|
|
45
53
|
},
|
|
46
54
|
"chat" : {
|
|
47
55
|
"owner": "123456",
|
|
@@ -63,6 +71,7 @@
|
|
|
63
71
|
],
|
|
64
72
|
"id": "CD_1256246524399772951_1741337",
|
|
65
73
|
"type": "channel",
|
|
74
|
+
"title": "Catalyst",
|
|
66
75
|
"recent_messages": []
|
|
67
76
|
},
|
|
68
77
|
"location": {
|
|
@@ -9,10 +9,17 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
@@ -25,7 +32,8 @@
|
|
|
25
32
|
"id": "123456",
|
|
26
33
|
"email": "scott.fisher@zylcal.com",
|
|
27
34
|
"admin" : true,
|
|
28
|
-
"organization_id" : "123456456"
|
|
35
|
+
"organization_id" : "123456456",
|
|
36
|
+
"zoho_user_id": "130720038"
|
|
29
37
|
},
|
|
30
38
|
"operation": "added",
|
|
31
39
|
"chat": {
|
|
@@ -48,9 +56,11 @@
|
|
|
48
56
|
],
|
|
49
57
|
"id": "CD_1256246524399772951_1741337",
|
|
50
58
|
"type": "channel",
|
|
59
|
+
"title": "Catalyst",
|
|
51
60
|
"recent_messages": []
|
|
52
61
|
},
|
|
53
62
|
"data": {
|
|
63
|
+
"message": { "mentions": [], "type": "text", "text": "Hi", "comment":"Attached a file" },
|
|
54
64
|
"time": 1569520690703
|
|
55
65
|
}
|
|
56
66
|
}
|
|
@@ -9,10 +9,17 @@
|
|
|
9
9
|
"timestamp": 1569520690703,
|
|
10
10
|
"params" : {
|
|
11
11
|
"environment" : {
|
|
12
|
-
|
|
12
|
+
"tld": ".com",
|
|
13
|
+
"data_center": "US",
|
|
14
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
13
15
|
},
|
|
14
16
|
"access": {
|
|
15
|
-
"user_id": "
|
|
17
|
+
"user_id": "130720038",
|
|
18
|
+
"zoho_user_id": "130720038",
|
|
19
|
+
"organization": {
|
|
20
|
+
"type": "company",
|
|
21
|
+
"id": "123456456"
|
|
22
|
+
},
|
|
16
23
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
17
24
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
18
25
|
},
|
|
@@ -25,12 +32,9 @@
|
|
|
25
32
|
"id": "123456",
|
|
26
33
|
"email": "scott.fisher@zylcal.com",
|
|
27
34
|
"admin" : true,
|
|
28
|
-
"organization_id" : "123456456"
|
|
35
|
+
"organization_id" : "123456456",
|
|
36
|
+
"zoho_user_id": "130720038"
|
|
29
37
|
},
|
|
30
|
-
"newuser": true
|
|
31
|
-
"mentions": [],
|
|
32
|
-
"options": {},
|
|
33
|
-
"selections": [],
|
|
34
|
-
"arguments": ""
|
|
38
|
+
"newuser": true
|
|
35
39
|
}
|
|
36
40
|
}
|
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
"timestamp": 1569520690703,
|
|
9
9
|
"params" : {
|
|
10
10
|
"environment" : {
|
|
11
|
-
|
|
11
|
+
"tld": ".com",
|
|
12
|
+
"data_center": "US",
|
|
13
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
12
14
|
},
|
|
13
15
|
"access": {
|
|
14
|
-
"user_id": "
|
|
16
|
+
"user_id": "130720038",
|
|
17
|
+
"zoho_user_id": "130720038",
|
|
18
|
+
"organization": {
|
|
19
|
+
"type": "company",
|
|
20
|
+
"id": "123456456"
|
|
21
|
+
},
|
|
15
22
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
16
23
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
17
24
|
},
|
|
@@ -24,7 +31,8 @@
|
|
|
24
31
|
"id": "123456",
|
|
25
32
|
"email": "scott.fisher@zylcal.com",
|
|
26
33
|
"admin" : true,
|
|
27
|
-
"organization_id" : "123456456"
|
|
34
|
+
"organization_id" : "123456456",
|
|
35
|
+
"zoho_user_id": "130720038"
|
|
28
36
|
},
|
|
29
37
|
"chat": {
|
|
30
38
|
"owner": "123456",
|
|
@@ -46,6 +54,7 @@
|
|
|
46
54
|
],
|
|
47
55
|
"id": "CD_1256246524399772951_1741337",
|
|
48
56
|
"type": "channel",
|
|
57
|
+
"channel_unique_name": "sample",
|
|
49
58
|
"title": "Sample"
|
|
50
59
|
},
|
|
51
60
|
"mentions": [],
|
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
"timestamp": 1569520690703,
|
|
9
9
|
"params" : {
|
|
10
10
|
"environment" : {
|
|
11
|
-
|
|
11
|
+
"tld": ".com",
|
|
12
|
+
"data_center": "US",
|
|
13
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
12
14
|
},
|
|
13
15
|
"access": {
|
|
14
|
-
"user_id": "
|
|
16
|
+
"user_id": "130720038",
|
|
17
|
+
"zoho_user_id": "130720038",
|
|
18
|
+
"organization": {
|
|
19
|
+
"type": "company",
|
|
20
|
+
"id": "123456456"
|
|
21
|
+
},
|
|
15
22
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
16
23
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
17
24
|
},
|
|
@@ -24,7 +31,8 @@
|
|
|
24
31
|
"id": "123456",
|
|
25
32
|
"email": "scott.fisher@zylcal.com",
|
|
26
33
|
"admin" : true,
|
|
27
|
-
"organization_id" : "123456456"
|
|
34
|
+
"organization_id" : "123456456",
|
|
35
|
+
"zoho_user_id": "130720038"
|
|
28
36
|
},
|
|
29
37
|
"chat": {
|
|
30
38
|
"owner": "123456",
|
|
@@ -51,7 +59,13 @@
|
|
|
51
59
|
"mentions": [],
|
|
52
60
|
"attachments": [],
|
|
53
61
|
"options": {},
|
|
54
|
-
"selections": [
|
|
62
|
+
"selections": [
|
|
63
|
+
{
|
|
64
|
+
"description": "Catalyst help documentation",
|
|
65
|
+
"imageurl": "https://www.zohowebstatic.com/sites/default/files/styles/product-home-page/public/catalyst-icon.png",
|
|
66
|
+
"title": "Help docs"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
55
69
|
"arguments": "",
|
|
56
70
|
"location": {
|
|
57
71
|
"latitude": 12.8282472,
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"type": "extension",
|
|
2
3
|
"handler": {
|
|
3
4
|
"type": "installation_handler"
|
|
4
5
|
},
|
|
5
6
|
"timestamp": 1569520690703,
|
|
6
7
|
"params" : {
|
|
7
8
|
"environment" : {
|
|
8
|
-
|
|
9
|
+
"tld": ".com",
|
|
10
|
+
"data_center": "US",
|
|
11
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
9
12
|
},
|
|
10
|
-
"access":
|
|
11
|
-
"user_id": "
|
|
13
|
+
"access":{
|
|
14
|
+
"user_id": "130720038",
|
|
15
|
+
"zoho_user_id": "130720038",
|
|
16
|
+
"organization": {
|
|
17
|
+
"type": "company",
|
|
18
|
+
"id": "123456456"
|
|
19
|
+
},
|
|
12
20
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
13
21
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
14
22
|
},
|
|
@@ -21,7 +29,8 @@
|
|
|
21
29
|
"id": "123456",
|
|
22
30
|
"email": "scott.fisher@zylcal.com",
|
|
23
31
|
"admin" : true,
|
|
24
|
-
"organization_id" : "123456456"
|
|
32
|
+
"organization_id" : "123456456",
|
|
33
|
+
"zoho_user_id": "130720038"
|
|
25
34
|
},
|
|
26
35
|
"app_info": {"current_version":"1.5", "type": "install"},
|
|
27
36
|
"form": {},
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"type": "extension",
|
|
3
3
|
"handler": {
|
|
4
4
|
"type": "installation_validator"
|
|
5
5
|
},
|
|
6
6
|
"timestamp": 1569520690703,
|
|
7
7
|
"params" : {
|
|
8
8
|
"environment" : {
|
|
9
|
-
|
|
9
|
+
"tld": ".com",
|
|
10
|
+
"data_center": "US",
|
|
11
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
10
12
|
},
|
|
11
13
|
"access": {
|
|
12
|
-
"user_id": "
|
|
14
|
+
"user_id": "130720038",
|
|
15
|
+
"zoho_user_id": "130720038",
|
|
16
|
+
"organization": {
|
|
17
|
+
"type": "company",
|
|
18
|
+
"id": "123456456"
|
|
19
|
+
},
|
|
13
20
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
14
21
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
15
22
|
},
|
|
16
|
-
"user":
|
|
23
|
+
"user":{
|
|
17
24
|
"country": "us",
|
|
18
25
|
"timezone": "Asia/calcutta",
|
|
19
26
|
"last_name": "Fisher",
|
|
@@ -22,7 +29,8 @@
|
|
|
22
29
|
"id": "123456",
|
|
23
30
|
"email": "scott.fisher@zylcal.com",
|
|
24
31
|
"admin" : true,
|
|
25
|
-
"organization_id" : "123456456"
|
|
32
|
+
"organization_id" : "123456456",
|
|
33
|
+
"zoho_user_id": "130720038"
|
|
26
34
|
},
|
|
27
35
|
"app_info": {"current_version":"1.5", "type": "install"}
|
|
28
36
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "extension",
|
|
3
|
+
"handler": {
|
|
4
|
+
"type": "uninstallation_handler"
|
|
5
|
+
},
|
|
6
|
+
"timestamp": 1569520690703,
|
|
7
|
+
"params" : {
|
|
8
|
+
"environment" : {
|
|
9
|
+
"tld": ".com",
|
|
10
|
+
"data_center": "US",
|
|
11
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
12
|
+
},
|
|
13
|
+
"access":{
|
|
14
|
+
"user_id": "130720038",
|
|
15
|
+
"zoho_user_id": "130720038",
|
|
16
|
+
"organization": {
|
|
17
|
+
"type": "company",
|
|
18
|
+
"id": "123456456"
|
|
19
|
+
},
|
|
20
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
21
|
+
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
22
|
+
},
|
|
23
|
+
"user": {
|
|
24
|
+
"country": "us",
|
|
25
|
+
"timezone": "Asia/calcutta",
|
|
26
|
+
"last_name": "Fisher",
|
|
27
|
+
"first_name": "Scott",
|
|
28
|
+
"language": "en",
|
|
29
|
+
"id": "123456",
|
|
30
|
+
"email": "scott.fisher@zylcal.com",
|
|
31
|
+
"admin" : true,
|
|
32
|
+
"organization_id" : "123456456",
|
|
33
|
+
"zoho_user_id": "130720038"
|
|
34
|
+
},
|
|
35
|
+
"app_info": {"current_version":"1.5", "type": "uninstall"}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -7,15 +7,22 @@
|
|
|
7
7
|
"type": "function",
|
|
8
8
|
"timestamp": 1569520690703,
|
|
9
9
|
"params" : {
|
|
10
|
-
"environment" :
|
|
11
|
-
|
|
10
|
+
"environment" :{
|
|
11
|
+
"tld": ".com",
|
|
12
|
+
"data_center": "US",
|
|
13
|
+
"base_url": "https://cliq.zoho.com/company/123456456"
|
|
12
14
|
},
|
|
13
15
|
"access": {
|
|
14
|
-
"user_id": "
|
|
16
|
+
"user_id": "130720038",
|
|
17
|
+
"zoho_user_id": "130720038",
|
|
18
|
+
"organization": {
|
|
19
|
+
"type": "company",
|
|
20
|
+
"id": "123456456"
|
|
21
|
+
},
|
|
15
22
|
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
|
|
16
23
|
"chat_id": "CT_2243226337559778047_661211447-B2"
|
|
17
24
|
},
|
|
18
|
-
"user":
|
|
25
|
+
"user":{
|
|
19
26
|
"country": "us",
|
|
20
27
|
"timezone": "Asia/calcutta",
|
|
21
28
|
"last_name": "Fisher",
|
|
@@ -24,7 +31,8 @@
|
|
|
24
31
|
"id": "123456",
|
|
25
32
|
"email": "scott.fisher@zylcal.com",
|
|
26
33
|
"admin" : true,
|
|
27
|
-
"organization_id" : "123456456"
|
|
34
|
+
"organization_id" : "123456456",
|
|
35
|
+
"zoho_user_id": "130720038"
|
|
28
36
|
},
|
|
29
37
|
"message": {
|
|
30
38
|
"is_read": false,
|