zcatalyst-cli 1.18.0-beta.9 → 1.19.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 (148) hide show
  1. package/README.md +11 -6
  2. package/docs/commands/signals/generate/index.toml +19 -0
  3. package/docs/commands/slate/unlink.toml +9 -0
  4. package/docs/endpoints/lib/env.toml +3 -1
  5. package/docs/endpoints/lib/slate.toml +3 -0
  6. package/docs/serve/server/lib/slate/index.toml +14 -0
  7. package/docs/slate-utils.toml +4 -0
  8. package/docs/util_modules/config/lib/slate.toml +4 -0
  9. package/lib/archiver.js +18 -9
  10. package/lib/authentication/login.js +6 -5
  11. package/lib/code-deck.js +5 -6
  12. package/lib/command_needs/auth.js +1 -1
  13. package/lib/command_needs/rc.js +40 -3
  14. package/lib/commands/codelib/install.js +1 -0
  15. package/lib/commands/deploy/index.js +4 -0
  16. package/lib/commands/deploy/slate.js +58 -0
  17. package/lib/commands/event/generate/index.js +8 -2
  18. package/lib/commands/index.js +3 -3
  19. package/lib/commands/init.js +0 -10
  20. package/lib/commands/signals/generate/index.js +214 -0
  21. package/lib/commands/slate/create.js +59 -0
  22. package/lib/commands/slate/link.js +59 -0
  23. package/lib/commands/slate/unlink.js +75 -0
  24. package/lib/commands/zest/generate/index.js +1 -6
  25. package/lib/config-store.js +2 -1
  26. package/lib/deploy/features/index.js +3 -0
  27. package/lib/deploy/features/slate.js +123 -0
  28. package/lib/endpoints/index.js +8 -1
  29. package/lib/endpoints/lib/env.js +2 -1
  30. package/lib/endpoints/lib/sdk.js +2 -2
  31. package/lib/endpoints/lib/slate.js +107 -0
  32. package/lib/event_generate/cache.js +35 -33
  33. package/lib/event_generate/custom.js +15 -19
  34. package/lib/event_generate/datastore.js +60 -56
  35. package/lib/event_generate/filestore.js +51 -47
  36. package/lib/event_generate/github.js +19 -18
  37. package/lib/event_generate/stratus.js +52 -38
  38. package/lib/event_generate/user.js +33 -29
  39. package/lib/event_generate/webapp.js +33 -32
  40. package/lib/fn-utils/lib/common.js +1 -1
  41. package/lib/iac/status/deploy.js +1 -5
  42. package/lib/index.js +1 -1
  43. package/lib/init/features/appsail/index.js +3 -4
  44. package/lib/init/features/index.js +13 -1
  45. package/lib/init/features/project.js +1 -1
  46. package/lib/init/features/slate/index.js +313 -0
  47. package/lib/internal/api.js +1 -1
  48. package/lib/internal/command.js +10 -6
  49. package/lib/port-resolver.js +7 -0
  50. package/lib/prompt/index.js +22 -6
  51. package/lib/prompt/types/file-path.js +10 -7
  52. package/lib/serve/features/index.js +8 -1
  53. package/lib/serve/features/slate.js +47 -0
  54. package/lib/serve/server/index.js +61 -1
  55. package/lib/serve/server/lib/appsail/index.js +1 -1
  56. package/lib/serve/server/lib/master/appsail.js +7 -2
  57. package/lib/serve/server/lib/master/index.js +25 -21
  58. package/lib/serve/server/lib/master/slate.js +45 -0
  59. package/lib/serve/server/lib/master/utils.js +9 -3
  60. package/lib/serve/server/lib/slate/index.js +115 -0
  61. package/lib/serve/server/lib/slate/static-server.js +194 -0
  62. package/lib/serve/server/lib/web_client/server.js +2 -1
  63. package/lib/shell/dependencies/local-function.js +1 -1
  64. package/lib/slate-utils.js +212 -0
  65. package/lib/util_modules/config/index.js +3 -1
  66. package/lib/util_modules/config/lib/slate.js +98 -0
  67. package/lib/util_modules/constants/index.js +7 -1
  68. package/lib/util_modules/constants/lib/cliq-handlers.js +18 -10
  69. package/lib/util_modules/constants/lib/dc-type.js +8 -0
  70. package/lib/util_modules/constants/lib/default.js +4 -0
  71. package/lib/util_modules/constants/lib/file-names.js +7 -1
  72. package/lib/util_modules/constants/lib/folder-names.js +1 -0
  73. package/lib/util_modules/constants/lib/placeholders.js +18 -1
  74. package/lib/util_modules/constants/lib/scopes.js +1 -6
  75. package/lib/util_modules/constants/lib/signals-api-names.js +19 -0
  76. package/lib/util_modules/constants/lib/signals-publishers-type.js +27 -0
  77. package/lib/util_modules/constants/lib/signals-publishers.js +10 -0
  78. package/lib/util_modules/constants/lib/template.js +1 -0
  79. package/lib/util_modules/context-help.js +2 -2
  80. package/lib/util_modules/fs/lib/async.js +14 -3
  81. package/lib/util_modules/fs/lib/sync.js +6 -1
  82. package/lib/util_modules/parser/toml.js +20 -5
  83. package/package.json +3 -3
  84. package/templates/event/integ/cliq/bot/action_handler.json +13 -4
  85. package/templates/event/integ/cliq/bot/call_handler.json +41 -0
  86. package/templates/event/integ/cliq/bot/context_handler.json +11 -3
  87. package/templates/event/integ/cliq/bot/incomingwebhook_handler.json +11 -3
  88. package/templates/event/integ/cliq/bot/mention_handler.json +12 -4
  89. package/templates/event/integ/cliq/bot/message_handler.json +13 -4
  90. package/templates/event/integ/cliq/bot/participation_handler.json +13 -3
  91. package/templates/event/integ/cliq/bot/welcome_handler.json +12 -8
  92. package/templates/event/integ/cliq/command/execution_handler.json +12 -3
  93. package/templates/event/integ/cliq/command/suggestion_handler.json +18 -4
  94. package/templates/event/integ/cliq/{installation → extension}/installation_handler.json +13 -4
  95. package/templates/event/integ/cliq/{installation → extension}/installation_validator.json +13 -5
  96. package/templates/event/integ/cliq/extension/uninstallation_handler.json +37 -0
  97. package/templates/event/integ/cliq/function/button_handler.json +13 -5
  98. package/templates/event/integ/cliq/function/form_change_handler.json +9 -3
  99. package/templates/event/integ/cliq/function/form_handler.json +11 -3
  100. package/templates/event/integ/cliq/function/form_values_handler.json +9 -3
  101. package/templates/event/integ/cliq/function/form_view_handler.json +26 -0
  102. package/templates/event/integ/cliq/function/widget_button_handler.json +14 -5
  103. package/templates/event/integ/cliq/link_preview/action_handler.json +54 -0
  104. package/templates/event/integ/cliq/link_preview/after_send_handler.json +47 -0
  105. package/templates/event/integ/cliq/link_preview/menu_handler.json +47 -0
  106. package/templates/event/integ/cliq/link_preview/preview_handler.json +47 -0
  107. package/templates/event/integ/cliq/messageaction/execution_handler.json +11 -3
  108. package/templates/event/integ/cliq/widget/view_handler.json +12 -4
  109. package/templates/event/signals.json +26 -0
  110. package/templates/init/client/react/react_js/template/src/index.js +3 -3
  111. package/templates/init/client/react/react_ts/template/src/index.tsx +3 -3
  112. package/templates/init/client/react/react_ts/template.json +3 -3
  113. package/templates/init/functions/java/event/sample.java +4 -0
  114. package/templates/init/functions/java/integ/cliq/com/handlers/BotHandler.java +29 -23
  115. package/templates/init/functions/java/integ/cliq/com/handlers/CommandHandler.java +14 -17
  116. package/templates/init/functions/java/integ/cliq/com/handlers/ExtensionHandler.java +41 -0
  117. package/templates/init/functions/java/integ/cliq/com/handlers/FunctionHandler.java +74 -22
  118. package/templates/init/functions/java/integ/cliq/com/handlers/LinkPreviewHandler.java +108 -0
  119. package/templates/init/functions/java/integ/cliq/com/handlers/MessageActionHandler.java +6 -8
  120. package/templates/init/functions/java/integ/cliq/sample.java +10 -0
  121. package/templates/init/functions/node/aio/package.json +1 -1
  122. package/templates/init/functions/node/bio/package.json +1 -1
  123. package/templates/init/functions/node/cron/package.json +1 -1
  124. package/templates/init/functions/node/event/package.json +1 -1
  125. package/templates/init/functions/node/event/sample.js +1 -0
  126. package/templates/init/functions/node/event/types/event.d.ts +7 -0
  127. package/templates/init/functions/node/integ/cliq/handlers/bot-handler.js +4 -0
  128. package/templates/init/functions/node/integ/cliq/handlers/command-handler.js +3 -5
  129. package/templates/init/functions/node/integ/cliq/handlers/{installation-validator.js → extension-handler.js} +20 -3
  130. package/templates/init/functions/node/integ/cliq/handlers/function-handler.js +42 -0
  131. package/templates/init/functions/node/integ/cliq/handlers/link-preview-handler.js +73 -0
  132. package/templates/init/functions/node/integ/cliq/package.json +1 -1
  133. package/templates/init/functions/node/integ/convokraft/package.json +1 -1
  134. package/templates/init/functions/node/job/package.json +1 -1
  135. package/templates/init/functions/python/event/sample.py +9 -5
  136. package/templates/init/functions/python/integ/cliq/handlers/bot_handler.py +13 -3
  137. package/templates/init/functions/python/integ/cliq/handlers/command_handler.py +7 -7
  138. package/templates/init/functions/python/integ/cliq/handlers/extension_handler.py +25 -0
  139. package/templates/init/functions/python/integ/cliq/handlers/function_handler.py +54 -10
  140. package/templates/init/functions/python/integ/cliq/handlers/link_preview_handler.py +76 -0
  141. package/templates/init/functions/python/integ/cliq/handlers/widget_handler.py +10 -9
  142. package/templates/init/functions/python/integ/cliq/sample.py +2 -2
  143. package/templates/init.txt +2 -1
  144. package/templates/init/functions/java/integ/cliq/com/handlers/InstallationHandler.java +0 -20
  145. package/templates/init/functions/java/integ/cliq/com/handlers/InstallationValidator.java +0 -22
  146. package/templates/init/functions/node/integ/cliq/handlers/installation-handler.js +0 -15
  147. package/templates/init/functions/python/integ/cliq/handlers/installation_handler.py +0 -12
  148. package/templates/init/functions/python/integ/cliq/handlers/installation_validator.py +0 -16
@@ -8,10 +8,17 @@
8
8
  "timestamp": 1569520690703,
9
9
  "params" : {
10
10
  "environment" : {
11
- "data_center": "us"
11
+ "tld": ".com",
12
+ "data_center": "US",
13
+ "base_url": "https://cliq.zoho.com/company/123456456"
12
14
  },
13
15
  "access": {
14
- "user_id": "651652091",
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
- "data_center": "us"
9
+ "tld": ".com",
10
+ "data_center": "US",
11
+ "base_url": "https://cliq.zoho.com/company/123456456"
9
12
  },
10
- "access": {
11
- "user_id": "651652091",
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
- "data_center": "us"
9
+ "tld": ".com",
10
+ "data_center": "US",
11
+ "base_url": "https://cliq.zoho.com/company/123456456"
10
12
  },
11
13
  "access": {
12
- "user_id": "651652091",
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
- "data_center": "us"
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": "651652091",
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,
@@ -3,15 +3,21 @@
3
3
  "handler": {
4
4
  "type": "form_change_handler"
5
5
  },
6
- "response_url": "https://cliq.zoho.com/v2/extensions/2980/responses/17202823900615741410013820",
7
6
  "type": "function",
8
7
  "timestamp": 1569520690703,
9
8
  "params" : {
10
9
  "environment" : {
11
- "data_center": "us"
10
+ "tld": ".com",
11
+ "data_center": "US",
12
+ "base_url": "https://cliq.zoho.com/company/123456456"
12
13
  },
13
14
  "access": {
14
- "user_id": "651652091",
15
+ "user_id": "130720038",
16
+ "zoho_user_id": "130720038",
17
+ "organization": {
18
+ "type": "company",
19
+ "id": "123456456"
20
+ },
15
21
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
16
22
  "chat_id": "CT_2243226337559778047_661211447-B2"
17
23
  },
@@ -8,10 +8,17 @@
8
8
  "timestamp": 1569520690703,
9
9
  "params" : {
10
10
  "environment" : {
11
- "data_center": "us"
11
+ "tld": ".com",
12
+ "data_center": "US",
13
+ "base_url": "https://cliq.zoho.com/company/123456456"
12
14
  },
13
15
  "access": {
14
- "user_id": "651652091",
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",
@@ -3,15 +3,21 @@
3
3
  "handler": {
4
4
  "type": "form_values_handler"
5
5
  },
6
- "response_url": "https://cliq.zoho.com/v2/extensions/2980/responses/17202823900615741410013820",
7
6
  "type": "function",
8
7
  "timestamp": 1569520690703,
9
8
  "params" : {
10
9
  "environment" : {
11
- "data_center": "us"
10
+ "tld": ".com",
11
+ "data_center": "US",
12
+ "base_url": "https://cliq.zoho.com/company/123456456"
12
13
  },
13
14
  "access": {
14
- "user_id": "651652091",
15
+ "user_id": "130720038",
16
+ "zoho_user_id": "130720038",
17
+ "organization": {
18
+ "type": "company",
19
+ "id": "123456456"
20
+ },
15
21
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
16
22
  "chat_id": "CT_2243226337559778047_661211447-B2"
17
23
  },
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "Sample",
3
+ "handler": {
4
+ "type": "form_view_handler"
5
+ },
6
+ "type": "function",
7
+ "timestamp": 1569520690703,
8
+ "params" : {
9
+ "environment" : {
10
+ "tld": ".com",
11
+ "data_center": "US",
12
+ "base_url": "https://cliq.zoho.com/company/123456456"
13
+ },
14
+ "access": {
15
+ "user_id": "130720038",
16
+ "zoho_user_id": "130720038",
17
+ "organization": {
18
+ "type": "company",
19
+ "id": "123456456"
20
+ },
21
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
22
+ "chat_id": "CT_2243226337559778047_661211447-B2"
23
+ },
24
+ "params": {}
25
+ }
26
+ }
@@ -7,10 +7,17 @@
7
7
  "timestamp": 1569520690703,
8
8
  "params" : {
9
9
  "environment" : {
10
- "data_center": "us"
10
+ "tld": ".com",
11
+ "data_center": "US",
12
+ "base_url": "https://cliq.zoho.com/company/123456456"
11
13
  },
12
- "access": {
13
- "user_id": "651652091",
14
+ "access": {
15
+ "user_id": "130720038",
16
+ "zoho_user_id": "130720038",
17
+ "organization": {
18
+ "type": "company",
19
+ "id": "123456456"
20
+ },
14
21
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
15
22
  "chat_id": "CT_2243226337559778047_661211447-B2"
16
23
  },
@@ -23,12 +30,14 @@
23
30
  "id": "123456",
24
31
  "email": "scott.fisher@zylcal.com",
25
32
  "admin" : true,
26
- "organization_id" : "123456456"
33
+ "organization_id" : "123456456",
34
+ "zoho_user_id": "130720038"
27
35
  },
28
36
  "target": {
29
37
  "label": "click",
30
38
  "section_id": "1",
31
- "id": ""
39
+ "id": "",
40
+ "tab_id":""
32
41
  }
33
42
  }
34
43
  }
@@ -0,0 +1,54 @@
1
+ {
2
+ "handler": {
3
+ "type": "unfurl_button_action_handler"
4
+ },
5
+ "type": "link_preview",
6
+ "timestamp": 1569520690703,
7
+ "params" : {
8
+ "url": "https://www.zohowebstatic.com/sites/default/files/styles/product-home-page/public/catalyst-icon.png",
9
+ "domain": "zohowebstatic.com",
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
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
23
+ "chat_id": "CT_2243226337559778047_661211447-B2"
24
+ },
25
+ "user": {
26
+ "country": "us",
27
+ "timezone": "Asia/calcutta",
28
+ "last_name": "Fisher",
29
+ "first_name": "Scott",
30
+ "language": "en",
31
+ "id": "123456",
32
+ "email": "scott.fisher@zylcal.com",
33
+ "admin" : true,
34
+ "organization_id" : "123456456",
35
+ "zoho_user_id": "130720038"
36
+ },
37
+ "chat": {
38
+ "owner": "123456",
39
+ "chat_type": "channel",
40
+ "id": "CD_1256246524399772951_1741337",
41
+ "channel_id":"O3261041256000451268",
42
+ "type": "channel",
43
+ "channel_unique_name": "sample",
44
+ "title": "Sample"
45
+ },
46
+ "target": {
47
+ "label": "Delete",
48
+ "params": {
49
+ "action": "delete_note"
50
+ },
51
+ "hint": "Delete"
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "handler": {
3
+ "type": "unfurl_post_message_handler"
4
+ },
5
+ "type": "link_preview",
6
+ "timestamp": 1569520690703,
7
+ "params" : {
8
+ "url": "https://www.zohowebstatic.com/sites/default/files/styles/product-home-page/public/catalyst-icon.png",
9
+ "domain": "zohowebstatic.com",
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
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
23
+ "chat_id": "CT_2243226337559778047_661211447-B2"
24
+ },
25
+ "user": {
26
+ "country": "us",
27
+ "timezone": "Asia/calcutta",
28
+ "last_name": "Fisher",
29
+ "first_name": "Scott",
30
+ "language": "en",
31
+ "id": "123456",
32
+ "email": "scott.fisher@zylcal.com",
33
+ "admin" : true,
34
+ "organization_id" : "123456456",
35
+ "zoho_user_id": "130720038"
36
+ },
37
+ "chat": {
38
+ "owner": "123456",
39
+ "chat_type": "channel",
40
+ "id": "CD_1256246524399772951_1741337",
41
+ "channel_id":"O3261041256000451268",
42
+ "type": "channel",
43
+ "channel_unique_name": "sample",
44
+ "title": "Sample"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "handler": {
3
+ "type": "unfurl_dynamic_action_handler"
4
+ },
5
+ "type": "link_preview",
6
+ "timestamp": 1569520690703,
7
+ "params" : {
8
+ "url": "https://www.zohowebstatic.com/sites/default/files/styles/product-home-page/public/catalyst-icon.png",
9
+ "domain": "zohowebstatic.com",
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
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
23
+ "chat_id": "CT_2243226337559778047_661211447-B2"
24
+ },
25
+ "user": {
26
+ "country": "us",
27
+ "timezone": "Asia/calcutta",
28
+ "last_name": "Fisher",
29
+ "first_name": "Scott",
30
+ "language": "en",
31
+ "id": "123456",
32
+ "email": "scott.fisher@zylcal.com",
33
+ "admin" : true,
34
+ "organization_id" : "123456456",
35
+ "zoho_user_id": "130720038"
36
+ },
37
+ "chat": {
38
+ "owner": "123456",
39
+ "chat_type": "channel",
40
+ "id": "CD_1256246524399772951_1741337",
41
+ "channel_id":"O3261041256000451268",
42
+ "type": "channel",
43
+ "channel_unique_name": "sample",
44
+ "title": "Sample"
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "handler": {
3
+ "type": "unfurl_handler"
4
+ },
5
+ "type": "link_preview",
6
+ "timestamp": 1569520690703,
7
+ "params" : {
8
+ "url": "https://www.zohowebstatic.com/sites/default/files/styles/product-home-page/public/catalyst-icon.png",
9
+ "domain": "zohowebstatic.com",
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
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
23
+ "chat_id": "CT_2243226337559778047_661211447-B2"
24
+ },
25
+ "user": {
26
+ "country": "us",
27
+ "timezone": "Asia/calcutta",
28
+ "last_name": "Fisher",
29
+ "first_name": "Scott",
30
+ "language": "en",
31
+ "id": "123456",
32
+ "email": "scott.fisher@zylcal.com",
33
+ "admin" : true,
34
+ "organization_id" : "123456456",
35
+ "zoho_user_id": "130720038"
36
+ },
37
+ "chat": {
38
+ "owner": "123456",
39
+ "chat_type": "channel",
40
+ "id": "CD_1256246524399772951_1741337",
41
+ "channel_id":"O3261041256000451268",
42
+ "type": "channel",
43
+ "channel_unique_name": "sample",
44
+ "title": "Sample"
45
+ }
46
+ }
47
+ }
@@ -8,10 +8,17 @@
8
8
  "timestamp": 1569520690703,
9
9
  "params" : {
10
10
  "environment" : {
11
- "data_center": "us"
11
+ "tld": ".com",
12
+ "data_center": "US",
13
+ "base_url": "https://cliq.zoho.com/company/123456456"
12
14
  },
13
15
  "access": {
14
- "user_id": "651652091",
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
  },
@@ -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
  "mentions": [],
50
58
  "message": {
@@ -7,14 +7,21 @@
7
7
  "timestamp": 1569520690703,
8
8
  "params" : {
9
9
  "environment" : {
10
- "data_center": "us"
10
+ "tld": ".com",
11
+ "data_center": "US",
12
+ "base_url": "https://cliq.zoho.com/company/123456456"
11
13
  },
12
14
  "access": {
13
- "user_id": "651652091",
15
+ "user_id": "130720038",
16
+ "zoho_user_id": "130720038",
17
+ "organization": {
18
+ "type": "company",
19
+ "id": "123456456"
20
+ },
14
21
  "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0",
15
22
  "chat_id": "CT_2243226337559778047_661211447-B2"
16
23
  },
17
- "user": {
24
+ "user": {
18
25
  "country": "us",
19
26
  "timezone": "Asia/calcutta",
20
27
  "last_name": "Fisher",
@@ -23,7 +30,8 @@
23
30
  "id": "123456",
24
31
  "email": "scott.fisher@zylcal.com",
25
32
  "admin" : true,
26
- "organization_id" : "123456456"
33
+ "organization_id" : "123456456",
34
+ "zoho_user_id": "130720038"
27
35
  },
28
36
  "target": {},
29
37
  "event": "load",
@@ -0,0 +1,26 @@
1
+ {
2
+ "rule_id": "{{__RULE_ID__}}",
3
+ "target_id": "{{__TARGET_ID__}}",
4
+ "version": {{__VERSION__}},
5
+ "attempt": {{__ATTEMPT__}},
6
+ "account": {
7
+ "org_id": "{{__ORG_ID__}}",
8
+ "project": {
9
+ "environment": "{{__ENVIRONMENT__}}",
10
+ "name": "{{__PROJECT_NAME__}}",
11
+ "id": "{{__PROJECT_ID__}}"
12
+ }
13
+ },
14
+ "events": [
15
+ {
16
+ "data": {{__DATA__}},
17
+ "id": "{{__UUID__}}",
18
+ "time_in_ms": "{{__TIME_IN_MS__}}",
19
+ "source": "{{__SOURCE__}}",
20
+ "event_config": {
21
+ "api_name": "{{__SIGNAL_API_NAME__}}",
22
+ "id": "{{__SIGNAL_ID__}}"
23
+ }
24
+ }
25
+ ]
26
+ }
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import './index.css';
4
4
  import App from './App';
5
5
  import reportWebVitals from './reportWebVitals';
6
6
 
7
- ReactDOM.render(
7
+ const root = ReactDOM.createRoot(document.getElementById('root'));
8
+ root.render(
8
9
  <React.StrictMode>
9
10
  <App />
10
11
  </React.StrictMode>,
11
- document.getElementById('root')
12
12
  );
13
13
 
14
14
  // If you want to start measuring performance in your app, pass a function