@gofynd/fdk-client-javascript 0.1.35

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 (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,1891 @@
1
+
2
+
3
+
4
+
5
+ ##### [Back to Application docs](./README.md)
6
+
7
+ ## Lead Methods
8
+ Handles communication between Staff and Users
9
+ * [getTicket](#getticket)
10
+ * [createHistory](#createhistory)
11
+ * [createTicket](#createticket)
12
+ * [getCustomForm](#getcustomform)
13
+ * [submitCustomForm](#submitcustomform)
14
+ * [getParticipantsInsideVideoRoom](#getparticipantsinsidevideoroom)
15
+ * [getTokenForVideoRoom](#gettokenforvideoroom)
16
+
17
+
18
+
19
+ ## Methods with example and description
20
+
21
+
22
+ ### getTicket
23
+ Get Ticket with the specific id
24
+
25
+
26
+
27
+ ```javascript
28
+ // Promise
29
+ const promise = lead.getTicket({ id : value });
30
+
31
+ // Async/Await
32
+ const data = await lead.getTicket({ id : value });
33
+ ```
34
+
35
+
36
+
37
+
38
+
39
+ | Argument | Type | Required | Description |
40
+ | --------- | ----- | -------- | ----------- |
41
+ | id | string | yes | ID of ticket to be retrieved |
42
+
43
+
44
+
45
+ Get Ticket with the specific id, this is used to view the ticket details
46
+
47
+ *Returned Response:*
48
+
49
+
50
+
51
+
52
+ [Ticket](#Ticket)
53
+
54
+ Success
55
+
56
+
57
+
58
+
59
+ <details>
60
+ <summary><i>&nbsp; Examples:</i></summary>
61
+
62
+
63
+ <details>
64
+ <summary><i>&nbsp; Default</i></summary>
65
+
66
+ ```json
67
+ {
68
+ "value": {
69
+ "context": {
70
+ "application_id": "000000000000000000000003",
71
+ "company_id": "884"
72
+ },
73
+ "content": {
74
+ "title": "SOme title Response",
75
+ "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
76
+ "attachments": []
77
+ },
78
+ "status": {
79
+ "display": "In Progress",
80
+ "color": "#ffa951",
81
+ "key": "in_progress"
82
+ },
83
+ "priority": {
84
+ "display": "Medium",
85
+ "color": "#f37736",
86
+ "key": "medium"
87
+ },
88
+ "assigned_to": {
89
+ "agent_id": "5d1363adf599d850df93175e",
90
+ "gender": "male",
91
+ "accountType": "user",
92
+ "active": true,
93
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
94
+ "hasOldPasswordHash": false,
95
+ "_id": "5d1363adf599d850df93175e",
96
+ "phoneNumbers": [
97
+ {
98
+ "active": true,
99
+ "primary": true,
100
+ "verified": true,
101
+ "countryCode": 91,
102
+ "phone": "9890425946"
103
+ }
104
+ ],
105
+ "firstName": "Nikhil",
106
+ "lastName": "Manapure",
107
+ "emails": [
108
+ {
109
+ "active": true,
110
+ "primary": true,
111
+ "verified": true,
112
+ "email": "nikhilmshchs@gmail.com"
113
+ }
114
+ ],
115
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
116
+ "createdAt": "2019-01-01T17:22:38.528Z",
117
+ "updatedAt": "2021-01-22T10:02:42.258Z",
118
+ "uid": "20500281",
119
+ "__v": 56
120
+ },
121
+ "tags": [
122
+ "some-title"
123
+ ],
124
+ "_id": "6012f38557751ee8fc162cf7",
125
+ "created_on": {
126
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
127
+ "platform": "web",
128
+ "meta": {
129
+ "browser": {
130
+ "name": "Chrome",
131
+ "version": "88.0.4324.96"
132
+ },
133
+ "os": {
134
+ "name": "macOS",
135
+ "version": "10.15.7",
136
+ "versionName": "Catalina"
137
+ },
138
+ "platform": {
139
+ "type": "desktop",
140
+ "vendor": "Apple"
141
+ },
142
+ "engine": {
143
+ "name": "Blink"
144
+ }
145
+ }
146
+ },
147
+ "source": "sales_channel",
148
+ "created_by": {
149
+ "id": "5d1363adf599d850df93175e",
150
+ "user": {
151
+ "gender": "male",
152
+ "accountType": "user",
153
+ "active": true,
154
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
155
+ "hasOldPasswordHash": false,
156
+ "_id": "5d1363adf599d850df93175e",
157
+ "phoneNumbers": [
158
+ {
159
+ "active": true,
160
+ "primary": true,
161
+ "verified": true,
162
+ "countryCode": 91,
163
+ "phone": "9890425946"
164
+ }
165
+ ],
166
+ "firstName": "Nikhil",
167
+ "lastName": "Manapure",
168
+ "emails": [
169
+ {
170
+ "active": true,
171
+ "primary": true,
172
+ "verified": true,
173
+ "email": "nikhilmshchs@gmail.com"
174
+ }
175
+ ],
176
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
177
+ "createdAt": "2019-01-01T17:22:38.528Z",
178
+ "updatedAt": "2021-01-22T10:02:42.258Z",
179
+ "uid": "20500281",
180
+ "__v": 56
181
+ }
182
+ },
183
+ "response_id": "6012f38457751e0fb8162cf6",
184
+ "category": {
185
+ "form": {
186
+ "login_required": false,
187
+ "should_notify": false,
188
+ "inputs": [
189
+ {
190
+ "required": false,
191
+ "type": "text",
192
+ "enum": [],
193
+ "display": "Single lineeee",
194
+ "key": "single-lineeee",
195
+ "showRegexInput": false
196
+ },
197
+ {
198
+ "required": false,
199
+ "type": "email",
200
+ "enum": [],
201
+ "display": "Email",
202
+ "regex": "\\S+@\\S+\\.\\S+",
203
+ "key": "email",
204
+ "showRegexInput": true
205
+ },
206
+ {
207
+ "required": false,
208
+ "type": "text",
209
+ "enum": [],
210
+ "display": "dfsdf",
211
+ "key": "dfsdf",
212
+ "showRegexInput": false
213
+ }
214
+ ],
215
+ "available_assignees": [
216
+ "5b9b98150df588546aaea6d2",
217
+ "5c45d78395d7504f76c2cb37"
218
+ ],
219
+ "_id": "5fd72db3dc250f8decfc61b2",
220
+ "title": "SOme title",
221
+ "description": "SOme big description",
222
+ "slug": "some-title",
223
+ "application_id": "000000000000000000000003",
224
+ "created_on": {
225
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
226
+ "platform": "web",
227
+ "meta": {
228
+ "browser": {
229
+ "name": "Chrome",
230
+ "version": "87.0.4280.88"
231
+ },
232
+ "os": {
233
+ "name": "macOS",
234
+ "version": "10.15.6",
235
+ "versionName": "Catalina"
236
+ },
237
+ "platform": {
238
+ "type": "desktop",
239
+ "vendor": "Apple"
240
+ },
241
+ "engine": {
242
+ "name": "Blink"
243
+ }
244
+ }
245
+ },
246
+ "created_by": "5d1363adf599d850df93175e",
247
+ "createdAt": "2020-12-14T09:17:39.953Z",
248
+ "updatedAt": "2021-01-28T18:48:07.717Z",
249
+ "__v": 0
250
+ },
251
+ "key": "some-title",
252
+ "display": "SOme title"
253
+ },
254
+ "ticket_id": "43",
255
+ "createdAt": "2021-01-28T17:25:25.013Z",
256
+ "updatedAt": "2021-01-28T17:25:33.396Z",
257
+ "__v": 0,
258
+ "video_room_id": "6012f38557751ee8fc162cf7"
259
+ }
260
+ }
261
+ ```
262
+ </details>
263
+
264
+ </details>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+ ---
275
+
276
+
277
+ ### createHistory
278
+ Create history for specific Ticket
279
+
280
+
281
+
282
+ ```javascript
283
+ // Promise
284
+ const promise = lead.createHistory({ id : value,
285
+ body : value });
286
+
287
+ // Async/Await
288
+ const data = await lead.createHistory({ id : value,
289
+ body : value });
290
+ ```
291
+
292
+
293
+
294
+
295
+
296
+ | Argument | Type | Required | Description |
297
+ | --------- | ----- | -------- | ----------- |
298
+ | id | string | yes | Ticket ID for which history is created |
299
+ | body | [TicketHistoryPayload](#TicketHistoryPayload) | yes | Request body |
300
+
301
+
302
+ Create history for specific Ticket, this history is seen on ticket detail page, this can be comment, log or rating.
303
+
304
+ *Returned Response:*
305
+
306
+
307
+
308
+
309
+ [TicketHistory](#TicketHistory)
310
+
311
+ Success
312
+
313
+
314
+
315
+
316
+ <details>
317
+ <summary><i>&nbsp; Examples:</i></summary>
318
+
319
+
320
+ <details>
321
+ <summary><i>&nbsp; Default</i></summary>
322
+
323
+ ```json
324
+ {
325
+ "value": {
326
+ "_id": "601a9d52c26687d086c499ef",
327
+ "ticket_id": "41",
328
+ "type": "comment",
329
+ "value": {
330
+ "text": "d",
331
+ "media": []
332
+ },
333
+ "created_on": {
334
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
335
+ "platform": "web",
336
+ "meta": {
337
+ "browser": {
338
+ "name": "Chrome",
339
+ "version": "88.0.4324.96"
340
+ },
341
+ "os": {
342
+ "name": "macOS",
343
+ "version": "10.15.7",
344
+ "versionName": "Catalina"
345
+ },
346
+ "platform": {
347
+ "type": "desktop",
348
+ "vendor": "Apple"
349
+ },
350
+ "engine": {
351
+ "name": "Blink"
352
+ }
353
+ }
354
+ },
355
+ "created_by": "5d1363adf599d850df93175e",
356
+ "createdAt": "2021-02-03T12:55:46.808Z",
357
+ "updatedAt": "2021-02-03T12:55:46.808Z",
358
+ "__v": 0
359
+ }
360
+ }
361
+ ```
362
+ </details>
363
+
364
+ </details>
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+ ---
375
+
376
+
377
+ ### createTicket
378
+ Create Ticket
379
+
380
+
381
+
382
+ ```javascript
383
+ // Promise
384
+ const promise = lead.createTicket({ body : value });
385
+
386
+ // Async/Await
387
+ const data = await lead.createTicket({ body : value });
388
+ ```
389
+
390
+
391
+
392
+
393
+
394
+ | Argument | Type | Required | Description |
395
+ | --------- | ----- | -------- | ----------- |
396
+ | body | [AddTicketPayload](#AddTicketPayload) | yes | Request body |
397
+
398
+
399
+ This is used to Create Ticket.
400
+
401
+ *Returned Response:*
402
+
403
+
404
+
405
+
406
+ [Ticket](#Ticket)
407
+
408
+ Success
409
+
410
+
411
+
412
+
413
+ <details>
414
+ <summary><i>&nbsp; Examples:</i></summary>
415
+
416
+
417
+ <details>
418
+ <summary><i>&nbsp; Default</i></summary>
419
+
420
+ ```json
421
+ {
422
+ "value": {
423
+ "context": {
424
+ "application_id": "000000000000000000000003",
425
+ "company_id": "884"
426
+ },
427
+ "content": {
428
+ "title": "SOme title Response",
429
+ "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
430
+ "attachments": []
431
+ },
432
+ "status": {
433
+ "display": "In Progress",
434
+ "color": "#ffa951",
435
+ "key": "in_progress"
436
+ },
437
+ "priority": {
438
+ "display": "Medium",
439
+ "color": "#f37736",
440
+ "key": "medium"
441
+ },
442
+ "assigned_to": {
443
+ "agent_id": "5d1363adf599d850df93175e",
444
+ "gender": "male",
445
+ "accountType": "user",
446
+ "active": true,
447
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
448
+ "hasOldPasswordHash": false,
449
+ "_id": "5d1363adf599d850df93175e",
450
+ "phoneNumbers": [
451
+ {
452
+ "active": true,
453
+ "primary": true,
454
+ "verified": true,
455
+ "countryCode": 91,
456
+ "phone": "9890425946"
457
+ }
458
+ ],
459
+ "firstName": "Nikhil",
460
+ "lastName": "Manapure",
461
+ "emails": [
462
+ {
463
+ "active": true,
464
+ "primary": true,
465
+ "verified": true,
466
+ "email": "nikhilmshchs@gmail.com"
467
+ }
468
+ ],
469
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
470
+ "createdAt": "2019-01-01T17:22:38.528Z",
471
+ "updatedAt": "2021-01-22T10:02:42.258Z",
472
+ "uid": "20500281",
473
+ "__v": 56
474
+ },
475
+ "tags": [
476
+ "some-title"
477
+ ],
478
+ "_id": "6012f38557751ee8fc162cf7",
479
+ "created_on": {
480
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
481
+ "platform": "web",
482
+ "meta": {
483
+ "browser": {
484
+ "name": "Chrome",
485
+ "version": "88.0.4324.96"
486
+ },
487
+ "os": {
488
+ "name": "macOS",
489
+ "version": "10.15.7",
490
+ "versionName": "Catalina"
491
+ },
492
+ "platform": {
493
+ "type": "desktop",
494
+ "vendor": "Apple"
495
+ },
496
+ "engine": {
497
+ "name": "Blink"
498
+ }
499
+ }
500
+ },
501
+ "source": "sales_channel",
502
+ "created_by": {
503
+ "id": "5d1363adf599d850df93175e",
504
+ "user": {
505
+ "gender": "male",
506
+ "accountType": "user",
507
+ "active": true,
508
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
509
+ "hasOldPasswordHash": false,
510
+ "_id": "5d1363adf599d850df93175e",
511
+ "phoneNumbers": [
512
+ {
513
+ "active": true,
514
+ "primary": true,
515
+ "verified": true,
516
+ "countryCode": 91,
517
+ "phone": "9890425946"
518
+ }
519
+ ],
520
+ "firstName": "Nikhil",
521
+ "lastName": "Manapure",
522
+ "emails": [
523
+ {
524
+ "active": true,
525
+ "primary": true,
526
+ "verified": true,
527
+ "email": "nikhilmshchs@gmail.com"
528
+ }
529
+ ],
530
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
531
+ "createdAt": "2019-01-01T17:22:38.528Z",
532
+ "updatedAt": "2021-01-22T10:02:42.258Z",
533
+ "uid": "20500281",
534
+ "__v": 56
535
+ }
536
+ },
537
+ "response_id": "6012f38457751e0fb8162cf6",
538
+ "category": {
539
+ "form": {
540
+ "login_required": false,
541
+ "should_notify": false,
542
+ "inputs": [
543
+ {
544
+ "required": false,
545
+ "type": "text",
546
+ "enum": [],
547
+ "display": "Single lineeee",
548
+ "key": "single-lineeee",
549
+ "showRegexInput": false
550
+ },
551
+ {
552
+ "required": false,
553
+ "type": "email",
554
+ "enum": [],
555
+ "display": "Email",
556
+ "regex": "\\S+@\\S+\\.\\S+",
557
+ "key": "email",
558
+ "showRegexInput": true
559
+ },
560
+ {
561
+ "required": false,
562
+ "type": "text",
563
+ "enum": [],
564
+ "display": "dfsdf",
565
+ "key": "dfsdf",
566
+ "showRegexInput": false
567
+ }
568
+ ],
569
+ "available_assignees": [
570
+ "5b9b98150df588546aaea6d2",
571
+ "5c45d78395d7504f76c2cb37"
572
+ ],
573
+ "_id": "5fd72db3dc250f8decfc61b2",
574
+ "title": "SOme title",
575
+ "description": "SOme big description",
576
+ "slug": "some-title",
577
+ "application_id": "000000000000000000000003",
578
+ "created_on": {
579
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
580
+ "platform": "web",
581
+ "meta": {
582
+ "browser": {
583
+ "name": "Chrome",
584
+ "version": "87.0.4280.88"
585
+ },
586
+ "os": {
587
+ "name": "macOS",
588
+ "version": "10.15.6",
589
+ "versionName": "Catalina"
590
+ },
591
+ "platform": {
592
+ "type": "desktop",
593
+ "vendor": "Apple"
594
+ },
595
+ "engine": {
596
+ "name": "Blink"
597
+ }
598
+ }
599
+ },
600
+ "created_by": "5d1363adf599d850df93175e",
601
+ "createdAt": "2020-12-14T09:17:39.953Z",
602
+ "updatedAt": "2021-01-28T18:48:07.717Z",
603
+ "__v": 0
604
+ },
605
+ "key": "some-title",
606
+ "display": "SOme title"
607
+ },
608
+ "ticket_id": "43",
609
+ "createdAt": "2021-01-28T17:25:25.013Z",
610
+ "updatedAt": "2021-01-28T17:25:33.396Z",
611
+ "__v": 0,
612
+ "video_room_id": "6012f38557751ee8fc162cf7"
613
+ }
614
+ }
615
+ ```
616
+ </details>
617
+
618
+ </details>
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+ ---
629
+
630
+
631
+ ### getCustomForm
632
+ Get specific Custom Form using it's slug
633
+
634
+
635
+
636
+ ```javascript
637
+ // Promise
638
+ const promise = lead.getCustomForm({ slug : value });
639
+
640
+ // Async/Await
641
+ const data = await lead.getCustomForm({ slug : value });
642
+ ```
643
+
644
+
645
+
646
+
647
+
648
+ | Argument | Type | Required | Description |
649
+ | --------- | ----- | -------- | ----------- |
650
+ | slug | string | yes | Slug of form whose response is getting submitted |
651
+
652
+
653
+
654
+ Get specific Custom Form using it's slug, this is used to view the form.
655
+
656
+ *Returned Response:*
657
+
658
+
659
+
660
+
661
+ [CustomForm](#CustomForm)
662
+
663
+ Success
664
+
665
+
666
+
667
+
668
+ <details>
669
+ <summary><i>&nbsp; Examples:</i></summary>
670
+
671
+
672
+ <details>
673
+ <summary><i>&nbsp; Default</i></summary>
674
+
675
+ ```json
676
+ {
677
+ "value": {
678
+ "login_required": false,
679
+ "should_notify": false,
680
+ "inputs": [
681
+ {
682
+ "required": false,
683
+ "type": "text",
684
+ "display": "Name",
685
+ "placeholder": "Please enter your name",
686
+ "key": "name"
687
+ }
688
+ ],
689
+ "available_assignees": [],
690
+ "_id": "5fd258a9088f957f34c288fc",
691
+ "title": "trail form",
692
+ "description": "Trail form description",
693
+ "slug": "trail-form",
694
+ "application_id": "000000000000000000000003",
695
+ "created_on": {
696
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
697
+ "platform": "web",
698
+ "meta": {
699
+ "browser": {
700
+ "name": "Chrome",
701
+ "version": "87.0.4280.88"
702
+ },
703
+ "os": {
704
+ "name": "macOS",
705
+ "version": "10.15.6",
706
+ "versionName": "Catalina"
707
+ },
708
+ "platform": {
709
+ "type": "desktop",
710
+ "vendor": "Apple"
711
+ },
712
+ "engine": {
713
+ "name": "Blink"
714
+ }
715
+ }
716
+ },
717
+ "created_by": "5d1363adf599d850df93175e",
718
+ "createdAt": "2020-12-10T17:19:37.515Z",
719
+ "updatedAt": "2020-12-10T17:19:43.214Z",
720
+ "__v": 0
721
+ }
722
+ }
723
+ ```
724
+ </details>
725
+
726
+ </details>
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+ ---
737
+
738
+
739
+ ### submitCustomForm
740
+ Submit Response for a specific Custom Form using it's slug
741
+
742
+
743
+
744
+ ```javascript
745
+ // Promise
746
+ const promise = lead.submitCustomForm({ slug : value,
747
+ body : value });
748
+
749
+ // Async/Await
750
+ const data = await lead.submitCustomForm({ slug : value,
751
+ body : value });
752
+ ```
753
+
754
+
755
+
756
+
757
+
758
+ | Argument | Type | Required | Description |
759
+ | --------- | ----- | -------- | ----------- |
760
+ | slug | string | yes | Slug of form whose response is getting submitted |
761
+ | body | [CustomFormSubmissionPayload](#CustomFormSubmissionPayload) | yes | Request body |
762
+
763
+
764
+ Submit Response for a specific Custom Form using it's slug, this response is then used to create a ticket on behalf of the user.
765
+
766
+ *Returned Response:*
767
+
768
+
769
+
770
+
771
+ [SubmitCustomFormResponse](#SubmitCustomFormResponse)
772
+
773
+ Success
774
+
775
+
776
+
777
+
778
+ <details>
779
+ <summary><i>&nbsp; Examples:</i></summary>
780
+
781
+
782
+ <details>
783
+ <summary><i>&nbsp; Default</i></summary>
784
+
785
+ ```json
786
+ {
787
+ "value": {
788
+ "ticket": {
789
+ "context": {
790
+ "application_id": "000000000000000000000003",
791
+ "company_id": "884"
792
+ },
793
+ "content": {
794
+ "title": "SOme title Response",
795
+ "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
796
+ "attachments": []
797
+ },
798
+ "status": {
799
+ "display": "In Progress",
800
+ "color": "#ffa951",
801
+ "key": "in_progress"
802
+ },
803
+ "priority": {
804
+ "display": "Medium",
805
+ "color": "#f37736",
806
+ "key": "medium"
807
+ },
808
+ "assigned_to": {
809
+ "agent_id": "5d1363adf599d850df93175e",
810
+ "gender": "male",
811
+ "accountType": "user",
812
+ "active": true,
813
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
814
+ "hasOldPasswordHash": false,
815
+ "_id": "5d1363adf599d850df93175e",
816
+ "phoneNumbers": [
817
+ {
818
+ "active": true,
819
+ "primary": true,
820
+ "verified": true,
821
+ "countryCode": 91,
822
+ "phone": "9890425946"
823
+ }
824
+ ],
825
+ "firstName": "Nikhil",
826
+ "lastName": "Manapure",
827
+ "emails": [
828
+ {
829
+ "active": true,
830
+ "primary": true,
831
+ "verified": true,
832
+ "email": "nikhilmshchs@gmail.com"
833
+ }
834
+ ],
835
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
836
+ "createdAt": "2019-01-01T17:22:38.528Z",
837
+ "updatedAt": "2021-01-22T10:02:42.258Z",
838
+ "uid": "20500281",
839
+ "__v": 56
840
+ },
841
+ "tags": [
842
+ "some-title"
843
+ ],
844
+ "_id": "6012f38557751ee8fc162cf7",
845
+ "created_on": {
846
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36",
847
+ "platform": "web",
848
+ "meta": {
849
+ "browser": {
850
+ "name": "Chrome",
851
+ "version": "88.0.4324.96"
852
+ },
853
+ "os": {
854
+ "name": "macOS",
855
+ "version": "10.15.7",
856
+ "versionName": "Catalina"
857
+ },
858
+ "platform": {
859
+ "type": "desktop",
860
+ "vendor": "Apple"
861
+ },
862
+ "engine": {
863
+ "name": "Blink"
864
+ }
865
+ }
866
+ },
867
+ "source": "sales_channel",
868
+ "created_by": {
869
+ "id": "5d1363adf599d850df93175e",
870
+ "user": {
871
+ "gender": "male",
872
+ "accountType": "user",
873
+ "active": true,
874
+ "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
875
+ "hasOldPasswordHash": false,
876
+ "_id": "5d1363adf599d850df93175e",
877
+ "phoneNumbers": [
878
+ {
879
+ "active": true,
880
+ "primary": true,
881
+ "verified": true,
882
+ "countryCode": 91,
883
+ "phone": "9890425946"
884
+ }
885
+ ],
886
+ "firstName": "Nikhil",
887
+ "lastName": "Manapure",
888
+ "emails": [
889
+ {
890
+ "active": true,
891
+ "primary": true,
892
+ "verified": true,
893
+ "email": "nikhilmshchs@gmail.com"
894
+ }
895
+ ],
896
+ "username": "nikhilmshchs_gmail_com_38425_20500281",
897
+ "createdAt": "2019-01-01T17:22:38.528Z",
898
+ "updatedAt": "2021-01-22T10:02:42.258Z",
899
+ "uid": "20500281",
900
+ "__v": 56
901
+ }
902
+ },
903
+ "response_id": "6012f38457751e0fb8162cf6",
904
+ "category": {
905
+ "form": {
906
+ "login_required": false,
907
+ "should_notify": false,
908
+ "inputs": [
909
+ {
910
+ "required": false,
911
+ "type": "text",
912
+ "enum": [],
913
+ "display": "Single lineeee",
914
+ "key": "single-lineeee",
915
+ "showRegexInput": false
916
+ },
917
+ {
918
+ "required": false,
919
+ "type": "email",
920
+ "enum": [],
921
+ "display": "Email",
922
+ "regex": "\\S+@\\S+\\.\\S+",
923
+ "key": "email",
924
+ "showRegexInput": true
925
+ },
926
+ {
927
+ "required": false,
928
+ "type": "text",
929
+ "enum": [],
930
+ "display": "dfsdf",
931
+ "key": "dfsdf",
932
+ "showRegexInput": false
933
+ }
934
+ ],
935
+ "available_assignees": [
936
+ "5b9b98150df588546aaea6d2",
937
+ "5c45d78395d7504f76c2cb37"
938
+ ],
939
+ "_id": "5fd72db3dc250f8decfc61b2",
940
+ "title": "SOme title",
941
+ "description": "SOme big description",
942
+ "slug": "some-title",
943
+ "application_id": "000000000000000000000003",
944
+ "created_on": {
945
+ "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
946
+ "platform": "web",
947
+ "meta": {
948
+ "browser": {
949
+ "name": "Chrome",
950
+ "version": "87.0.4280.88"
951
+ },
952
+ "os": {
953
+ "name": "macOS",
954
+ "version": "10.15.6",
955
+ "versionName": "Catalina"
956
+ },
957
+ "platform": {
958
+ "type": "desktop",
959
+ "vendor": "Apple"
960
+ },
961
+ "engine": {
962
+ "name": "Blink"
963
+ }
964
+ }
965
+ },
966
+ "created_by": "5d1363adf599d850df93175e",
967
+ "createdAt": "2020-12-14T09:17:39.953Z",
968
+ "updatedAt": "2021-01-28T18:48:07.717Z",
969
+ "__v": 0
970
+ },
971
+ "key": "some-title",
972
+ "display": "SOme title"
973
+ },
974
+ "ticket_id": "43",
975
+ "createdAt": "2021-01-28T17:25:25.013Z",
976
+ "updatedAt": "2021-01-28T17:25:33.396Z",
977
+ "__v": 0,
978
+ "video_room_id": "6012f38557751ee8fc162cf7"
979
+ }
980
+ }
981
+ }
982
+ ```
983
+ </details>
984
+
985
+ </details>
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+ ---
996
+
997
+
998
+ ### getParticipantsInsideVideoRoom
999
+ Get participants of a specific Video Room using it's unique name
1000
+
1001
+
1002
+
1003
+ ```javascript
1004
+ // Promise
1005
+ const promise = lead.getParticipantsInsideVideoRoom({ uniqueName : value });
1006
+
1007
+ // Async/Await
1008
+ const data = await lead.getParticipantsInsideVideoRoom({ uniqueName : value });
1009
+ ```
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ | Argument | Type | Required | Description |
1016
+ | --------- | ----- | -------- | ----------- |
1017
+ | uniqueName | string | yes | Unique name of Video Room |
1018
+
1019
+
1020
+
1021
+ Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names.
1022
+
1023
+ *Returned Response:*
1024
+
1025
+
1026
+
1027
+
1028
+ [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
1029
+
1030
+ Success
1031
+
1032
+
1033
+
1034
+
1035
+ <details>
1036
+ <summary><i>&nbsp; Examples:</i></summary>
1037
+
1038
+
1039
+ <details>
1040
+ <summary><i>&nbsp; Default</i></summary>
1041
+
1042
+ ```json
1043
+ {
1044
+ "value": {
1045
+ "participants": []
1046
+ }
1047
+ }
1048
+ ```
1049
+ </details>
1050
+
1051
+ </details>
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+ ---
1062
+
1063
+
1064
+ ### getTokenForVideoRoom
1065
+ Get Token to join a specific Video Room using it's unqiue name
1066
+
1067
+
1068
+
1069
+ ```javascript
1070
+ // Promise
1071
+ const promise = lead.getTokenForVideoRoom({ uniqueName : value });
1072
+
1073
+ // Async/Await
1074
+ const data = await lead.getTokenForVideoRoom({ uniqueName : value });
1075
+ ```
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+ | Argument | Type | Required | Description |
1082
+ | --------- | ----- | -------- | ----------- |
1083
+ | uniqueName | string | yes | Unique name of Video Room |
1084
+
1085
+
1086
+
1087
+ Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there.
1088
+
1089
+ *Returned Response:*
1090
+
1091
+
1092
+
1093
+
1094
+ [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
1095
+
1096
+ Success
1097
+
1098
+
1099
+
1100
+
1101
+ <details>
1102
+ <summary><i>&nbsp; Examples:</i></summary>
1103
+
1104
+
1105
+ <details>
1106
+ <summary><i>&nbsp; Default</i></summary>
1107
+
1108
+ ```json
1109
+ {
1110
+ "value": {
1111
+ "access_token": "your_token_to_the_room"
1112
+ }
1113
+ }
1114
+ ```
1115
+ </details>
1116
+
1117
+ </details>
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+ ---
1128
+
1129
+
1130
+
1131
+ ### Schemas
1132
+
1133
+
1134
+
1135
+ #### [TicketList](#TicketList)
1136
+
1137
+ | Properties | Type | Nullable | Description |
1138
+ | ---------- | ---- | -------- | ----------- |
1139
+ | items | [[Ticket](#Ticket)] | no | List of tickets |
1140
+ | filters | [Filter](#Filter) | no | All the filters available for tickets |
1141
+ | page | [Page](#Page) | no | Describes the pagination state |
1142
+
1143
+ ---
1144
+
1145
+
1146
+
1147
+
1148
+ #### [Page](#Page)
1149
+
1150
+ | Properties | Type | Nullable | Description |
1151
+ | ---------- | ---- | -------- | ----------- |
1152
+ | item_total | number | no | |
1153
+ | next_id | string | no | |
1154
+ | has_previous | boolean | no | |
1155
+ | has_next | boolean | no | |
1156
+ | current | number | no | |
1157
+ | type | string | yes | |
1158
+ | size | number | no | |
1159
+
1160
+ ---
1161
+
1162
+
1163
+
1164
+
1165
+ #### [TicketHistoryList](#TicketHistoryList)
1166
+
1167
+ | Properties | Type | Nullable | Description |
1168
+ | ---------- | ---- | -------- | ----------- |
1169
+ | items | [[TicketHistory](#TicketHistory)] | no | List of ticket history |
1170
+ | page | [Page](#Page) | no | Describes the pagination state |
1171
+
1172
+ ---
1173
+
1174
+
1175
+
1176
+
1177
+ #### [CustomFormList](#CustomFormList)
1178
+
1179
+ | Properties | Type | Nullable | Description |
1180
+ | ---------- | ---- | -------- | ----------- |
1181
+ | items | [[CustomForm](#CustomForm)] | no | List of forms |
1182
+ | page | [Page](#Page) | no | Describes the pagination state |
1183
+
1184
+ ---
1185
+
1186
+
1187
+
1188
+
1189
+ #### [CreateCustomFormPayload](#CreateCustomFormPayload)
1190
+
1191
+ | Properties | Type | Nullable | Description |
1192
+ | ---------- | ---- | -------- | ----------- |
1193
+ | slug | string | yes | Slug for the form |
1194
+ | title | string | yes | Title for the form |
1195
+ | inputs | [string] | yes | List of all the form components |
1196
+ | description | string | no | Description of the form |
1197
+ | header_image | string | no | Header image that is to be shown for the form |
1198
+ | priority | [PriorityEnum](#PriorityEnum) | yes | Describes the priority of the tickets created by the form |
1199
+ | should_notify | boolean | no | Indicates if staff should be notified when a response is received |
1200
+ | success_message | string | no | Success message that will be shown on submission |
1201
+ | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Describes how polling will be done for the tickets createds |
1202
+
1203
+ ---
1204
+
1205
+
1206
+
1207
+
1208
+ #### [EditCustomFormPayload](#EditCustomFormPayload)
1209
+
1210
+ | Properties | Type | Nullable | Description |
1211
+ | ---------- | ---- | -------- | ----------- |
1212
+ | title | string | yes | Title for the form |
1213
+ | inputs | [string] | yes | List of all the form components |
1214
+ | description | string | no | Description of the form |
1215
+ | priority | [PriorityEnum](#PriorityEnum) | yes | Describes the priority of the tickets created by the form |
1216
+ | header_image | string | no | Header image that is to be shown for the form |
1217
+ | should_notify | boolean | no | Indicates if staff should be notified when a response is received |
1218
+ | login_required | boolean | no | Denotes if login is required to make a form response submission |
1219
+ | success_message | string | no | Success message that will be shown on submission |
1220
+ | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Describes how polling will be done for the tickets createds |
1221
+
1222
+ ---
1223
+
1224
+
1225
+
1226
+
1227
+ #### [EditTicketPayload](#EditTicketPayload)
1228
+
1229
+ | Properties | Type | Nullable | Description |
1230
+ | ---------- | ---- | -------- | ----------- |
1231
+ | content | [TicketContent](#TicketContent) | no | Ticket conetent details |
1232
+ | category | string | no | Category assigned to the ticket |
1233
+ | sub_category | string | no | Sub-category assigned to the ticket |
1234
+ | source | string | no | Denotes if the ticket was created at company or application level |
1235
+ | status | string | no | Denotes in what state is the ticket |
1236
+ | priority | [PriorityEnum](#PriorityEnum) | no | Denotes the priority of ticket |
1237
+ | assigned_to | [AgentChangePayload](#AgentChangePayload) | no | Details of support staff to whom ticket is assigned |
1238
+ | tags | [string] | no | Tags relevant to ticket |
1239
+
1240
+ ---
1241
+
1242
+
1243
+
1244
+
1245
+ #### [AgentChangePayload](#AgentChangePayload)
1246
+
1247
+ | Properties | Type | Nullable | Description |
1248
+ | ---------- | ---- | -------- | ----------- |
1249
+ | agent_id | string | yes | Agent's unique ID |
1250
+
1251
+ ---
1252
+
1253
+
1254
+
1255
+
1256
+ #### [CreateVideoRoomResponse](#CreateVideoRoomResponse)
1257
+
1258
+ | Properties | Type | Nullable | Description |
1259
+ | ---------- | ---- | -------- | ----------- |
1260
+ | unique_name | string | yes | Video Room's unique name |
1261
+
1262
+ ---
1263
+
1264
+
1265
+
1266
+
1267
+ #### [CloseVideoRoomResponse](#CloseVideoRoomResponse)
1268
+
1269
+ | Properties | Type | Nullable | Description |
1270
+ | ---------- | ---- | -------- | ----------- |
1271
+ | success | boolean | yes | Denotes if operation was successfully |
1272
+
1273
+ ---
1274
+
1275
+
1276
+
1277
+
1278
+ #### [CreateVideoRoomPayload](#CreateVideoRoomPayload)
1279
+
1280
+ | Properties | Type | Nullable | Description |
1281
+ | ---------- | ---- | -------- | ----------- |
1282
+ | unique_name | string | yes | Ticket id |
1283
+ | notify | [[NotifyUser](#NotifyUser)] | no | List of people to be notified |
1284
+
1285
+ ---
1286
+
1287
+
1288
+
1289
+
1290
+ #### [NotifyUser](#NotifyUser)
1291
+
1292
+ | Properties | Type | Nullable | Description |
1293
+ | ---------- | ---- | -------- | ----------- |
1294
+ | country_code | string | yes | Country code |
1295
+ | phone_number | string | yes | Phone number |
1296
+
1297
+ ---
1298
+
1299
+
1300
+
1301
+
1302
+ #### [Filter](#Filter)
1303
+
1304
+ | Properties | Type | Nullable | Description |
1305
+ | ---------- | ---- | -------- | ----------- |
1306
+ | priorities | [[Priority](#Priority)] | yes | List of possible priorities for tickets |
1307
+ | categories | [[TicketCategory](#TicketCategory)] | no | List of possible categories for tickets |
1308
+ | statuses | [[Status](#Status)] | yes | List of possible statuses for tickets |
1309
+ | assignees | [string] | yes | List of support staff availble for tickets assignment |
1310
+
1311
+ ---
1312
+
1313
+
1314
+
1315
+
1316
+ #### [TicketHistoryPayload](#TicketHistoryPayload)
1317
+
1318
+ | Properties | Type | Nullable | Description |
1319
+ | ---------- | ---- | -------- | ----------- |
1320
+ | value | string | yes | Details of history event |
1321
+ | type | [HistoryTypeEnum](#HistoryTypeEnum) | yes | Type of history event |
1322
+
1323
+ ---
1324
+
1325
+
1326
+
1327
+
1328
+ #### [CustomFormSubmissionPayload](#CustomFormSubmissionPayload)
1329
+
1330
+ | Properties | Type | Nullable | Description |
1331
+ | ---------- | ---- | -------- | ----------- |
1332
+ | response | [string] | yes | Form response |
1333
+ | attachments | [[TicketAsset](#TicketAsset)] | no | List of all attachments related to the form |
1334
+
1335
+ ---
1336
+
1337
+
1338
+
1339
+
1340
+ #### [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
1341
+
1342
+ | Properties | Type | Nullable | Description |
1343
+ | ---------- | ---- | -------- | ----------- |
1344
+ | access_token | string | yes | Access token to be used for video room |
1345
+
1346
+ ---
1347
+
1348
+
1349
+
1350
+
1351
+ #### [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
1352
+
1353
+ | Properties | Type | Nullable | Description |
1354
+ | ---------- | ---- | -------- | ----------- |
1355
+ | participants | [[Participant](#Participant)] | yes | List of participants of the video room |
1356
+
1357
+ ---
1358
+
1359
+
1360
+
1361
+
1362
+ #### [Participant](#Participant)
1363
+
1364
+ | Properties | Type | Nullable | Description |
1365
+ | ---------- | ---- | -------- | ----------- |
1366
+ | user | [UserSchema](#UserSchema) | no | Details of participant |
1367
+ | identity | string | no | Unique identifier of participant |
1368
+ | status | string | no | Status of participant |
1369
+
1370
+ ---
1371
+
1372
+
1373
+
1374
+
1375
+ #### [UserSchema](#UserSchema)
1376
+
1377
+ | Properties | Type | Nullable | Description |
1378
+ | ---------- | ---- | -------- | ----------- |
1379
+ | first_name | string | no | First name |
1380
+ | last_name | string | no | Last name |
1381
+ | phone_numbers | [[PhoneNumber](#PhoneNumber)] | no | List of phone numbers |
1382
+ | emails | [[Email](#Email)] | no | List of email addresses |
1383
+ | gender | string | no | Gender of user |
1384
+ | active | boolean | no | Is account active |
1385
+ | profile_pic_url | string | no | URL for profile pic |
1386
+ | username | string | no | username of user |
1387
+ | account_type | string | no | Type of account |
1388
+ | uid | string | no | Unique identifier of user |
1389
+ | debug | [Debug](#Debug) | no | Used for debugging |
1390
+ | has_old_password_hash | boolean | no | Denotes if user has old password hash |
1391
+ | _id | string | no | Unique identifier of user |
1392
+ | created_at | string | no | Time of user creation |
1393
+ | updated_at | string | no | Last time of user details update |
1394
+
1395
+ ---
1396
+
1397
+
1398
+
1399
+
1400
+ #### [PhoneNumber](#PhoneNumber)
1401
+
1402
+ | Properties | Type | Nullable | Description |
1403
+ | ---------- | ---- | -------- | ----------- |
1404
+ | active | boolean | no | Denotes if the phone number is active |
1405
+ | primary | boolean | no | Denotes it's the primary phone number for the account |
1406
+ | verified | boolean | no | Denotes it's a verified phone number |
1407
+ | phone | string | no | Phone number |
1408
+ | country_code | number | no | Country code |
1409
+
1410
+ ---
1411
+
1412
+
1413
+
1414
+
1415
+ #### [Email](#Email)
1416
+
1417
+ | Properties | Type | Nullable | Description |
1418
+ | ---------- | ---- | -------- | ----------- |
1419
+ | primary | boolean | no | Denotes it's the primary email for the account |
1420
+ | verified | boolean | no | Denotes it's a verified email |
1421
+ | email | string | no | Email Address |
1422
+ | active | boolean | no | Denotes if the email is active |
1423
+
1424
+ ---
1425
+
1426
+
1427
+
1428
+
1429
+ #### [Debug](#Debug)
1430
+
1431
+ | Properties | Type | Nullable | Description |
1432
+ | ---------- | ---- | -------- | ----------- |
1433
+ | source | string | no | Source of user |
1434
+ | platform | string | no | Platform of user |
1435
+
1436
+ ---
1437
+
1438
+
1439
+
1440
+
1441
+ #### [SubmitCustomFormResponse](#SubmitCustomFormResponse)
1442
+
1443
+ | Properties | Type | Nullable | Description |
1444
+ | ---------- | ---- | -------- | ----------- |
1445
+ | message | string | yes | Success message for form submission |
1446
+ | ticket | [Ticket](#Ticket) | yes | Ticket created on form submission |
1447
+
1448
+ ---
1449
+
1450
+
1451
+
1452
+
1453
+ #### [TicketContext](#TicketContext)
1454
+
1455
+ | Properties | Type | Nullable | Description |
1456
+ | ---------- | ---- | -------- | ----------- |
1457
+ | application_id | string | no | Application ID related to the ticket |
1458
+ | company_id | string | yes | Company ID related to the ticket |
1459
+
1460
+ ---
1461
+
1462
+
1463
+
1464
+
1465
+ #### [CreatedOn](#CreatedOn)
1466
+
1467
+ | Properties | Type | Nullable | Description |
1468
+ | ---------- | ---- | -------- | ----------- |
1469
+ | user_agent | string | yes | Useragent details |
1470
+
1471
+ ---
1472
+
1473
+
1474
+
1475
+
1476
+ #### [TicketAsset](#TicketAsset)
1477
+
1478
+ | Properties | Type | Nullable | Description |
1479
+ | ---------- | ---- | -------- | ----------- |
1480
+ | display | string | no | Display text for asset |
1481
+ | value | string | yes | To be used for details |
1482
+ | type | [TicketAssetTypeEnum](#TicketAssetTypeEnum) | yes | Type of asset |
1483
+
1484
+ ---
1485
+
1486
+
1487
+
1488
+
1489
+ #### [TicketContent](#TicketContent)
1490
+
1491
+ | Properties | Type | Nullable | Description |
1492
+ | ---------- | ---- | -------- | ----------- |
1493
+ | title | string | yes | Title for ticket |
1494
+ | description | string | no | Long description of issue |
1495
+ | attachments | [[TicketAsset](#TicketAsset)] | no | List of all attachments related to the ticket |
1496
+
1497
+ ---
1498
+
1499
+
1500
+
1501
+
1502
+ #### [AddTicketPayload](#AddTicketPayload)
1503
+
1504
+ | Properties | Type | Nullable | Description |
1505
+ | ---------- | ---- | -------- | ----------- |
1506
+ | created_by | string | no | Creator of the ticket |
1507
+ | status | string | no | Status of the ticket |
1508
+ | priority | [PriorityEnum](#PriorityEnum) | no | Priority of the ticket |
1509
+ | category | string | yes | Category of the ticket |
1510
+ | content | [TicketContent](#TicketContent) | yes | Content for the ticket |
1511
+ | _custom_json | string | no | optional custom data that needs to be sent |
1512
+
1513
+ ---
1514
+
1515
+
1516
+
1517
+
1518
+ #### [Priority](#Priority)
1519
+
1520
+ | Properties | Type | Nullable | Description |
1521
+ | ---------- | ---- | -------- | ----------- |
1522
+ | key | [PriorityEnum](#PriorityEnum) | yes | Key for priority |
1523
+ | display | string | yes | Display text for priority |
1524
+ | color | string | yes | Color for priority |
1525
+
1526
+ ---
1527
+
1528
+
1529
+
1530
+
1531
+ #### [Status](#Status)
1532
+
1533
+ | Properties | Type | Nullable | Description |
1534
+ | ---------- | ---- | -------- | ----------- |
1535
+ | key | string | yes | Key for status |
1536
+ | display | string | yes | Display text for status |
1537
+ | color | string | yes | Color for status |
1538
+
1539
+ ---
1540
+
1541
+
1542
+
1543
+
1544
+ #### [TicketFeedbackForm](#TicketFeedbackForm)
1545
+
1546
+ | Properties | Type | Nullable | Description |
1547
+ | ---------- | ---- | -------- | ----------- |
1548
+ | title | string | yes | Feedback form title that will be shown to the user |
1549
+ | display | [string] | no | List of all the form fields |
1550
+
1551
+ ---
1552
+
1553
+
1554
+
1555
+
1556
+ #### [TicketFeedbackList](#TicketFeedbackList)
1557
+
1558
+ | Properties | Type | Nullable | Description |
1559
+ | ---------- | ---- | -------- | ----------- |
1560
+ | items | [[TicketFeedback](#TicketFeedback)] | no | List of all ticket feedback for the ticket |
1561
+
1562
+ ---
1563
+
1564
+
1565
+
1566
+
1567
+ #### [TicketFeedbackPayload](#TicketFeedbackPayload)
1568
+
1569
+ | Properties | Type | Nullable | Description |
1570
+ | ---------- | ---- | -------- | ----------- |
1571
+ | form_response | string | no | Key-value pairs of all the form fields and their response |
1572
+
1573
+ ---
1574
+
1575
+
1576
+
1577
+
1578
+ #### [SubmitButton](#SubmitButton)
1579
+
1580
+ | Properties | Type | Nullable | Description |
1581
+ | ---------- | ---- | -------- | ----------- |
1582
+ | title | string | yes | Title for submit button |
1583
+ | title_color | string | yes | Title color submit button |
1584
+ | background_color | string | yes | Color for submit button |
1585
+
1586
+ ---
1587
+
1588
+
1589
+
1590
+
1591
+ #### [PollForAssignment](#PollForAssignment)
1592
+
1593
+ | Properties | Type | Nullable | Description |
1594
+ | ---------- | ---- | -------- | ----------- |
1595
+ | duration | number | yes | Duration for polling of staff |
1596
+ | message | string | yes | Message for polling |
1597
+ | success_message | string | yes | Message for successful polling |
1598
+ | failure_message | string | yes | Message if polling failed |
1599
+
1600
+ ---
1601
+
1602
+
1603
+
1604
+
1605
+ #### [CustomForm](#CustomForm)
1606
+
1607
+ | Properties | Type | Nullable | Description |
1608
+ | ---------- | ---- | -------- | ----------- |
1609
+ | application_id | string | yes | Application ID for form |
1610
+ | slug | string | yes | Slug for the form, which is to be used for accessing the form |
1611
+ | header_image | string | no | Form header image that will be shown to the user |
1612
+ | title | string | yes | Form title that will be shown to the user |
1613
+ | description | string | no | Form description that will be shown to the user |
1614
+ | priority | [Priority](#Priority) | yes | Sets priority of tickets created by form response |
1615
+ | login_required | boolean | yes | Denotes if login is required to make a form response submission |
1616
+ | should_notify | boolean | yes | Denotes if new response submission for the form should be notified to the assignees |
1617
+ | success_message | string | no | Message that is to be shown on succesfull form response submission |
1618
+ | submit_button | [SubmitButton](#SubmitButton) | no | Details for submit button |
1619
+ | inputs | [string] | yes | List of all the form fields |
1620
+ | created_on | [CreatedOn](#CreatedOn) | no | Gives details of when the form was created |
1621
+ | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Details of how polling should be done for support |
1622
+ | _id | string | yes | Unique identifier for the form |
1623
+
1624
+ ---
1625
+
1626
+
1627
+
1628
+
1629
+ #### [CommunicationDetails](#CommunicationDetails)
1630
+
1631
+ | Properties | Type | Nullable | Description |
1632
+ | ---------- | ---- | -------- | ----------- |
1633
+ | type | string | no | Enum type for the communication method |
1634
+ | title | string | no | Title for the communication method |
1635
+ | value | string | no | Value for the communication method |
1636
+ | description | string | no | Short description for the communication method |
1637
+ | enabled | boolean | no | Denotes if this communication method has to be shown |
1638
+
1639
+ ---
1640
+
1641
+
1642
+
1643
+
1644
+ #### [SupportGeneralConfig](#SupportGeneralConfig)
1645
+
1646
+ | Properties | Type | Nullable | Description |
1647
+ | ---------- | ---- | -------- | ----------- |
1648
+ | _id | string | no | Unique id |
1649
+ | support_email | [CommunicationDetails](#CommunicationDetails) | no | Support e-mail details |
1650
+ | support_phone | [CommunicationDetails](#CommunicationDetails) | no | Support Phone number details |
1651
+ | support_faq | [CommunicationDetails](#CommunicationDetails) | no | Support FAQ details |
1652
+ | show_communication_info | boolean | no | Denotes if support communication info should be shown |
1653
+ | support_communication | [CommunicationDetails](#CommunicationDetails) | no | Support communication array list details |
1654
+ | show_support_dris | boolean | no | Denotes if support DRIS info should be shown |
1655
+ | integration | string | no | Contains integrations basic information |
1656
+
1657
+ ---
1658
+
1659
+
1660
+
1661
+
1662
+ #### [FeedbackForm](#FeedbackForm)
1663
+
1664
+ | Properties | Type | Nullable | Description |
1665
+ | ---------- | ---- | -------- | ----------- |
1666
+ | inputs | string | no | Input details for the feed back form |
1667
+ | title | string | no | Title for the feed back form |
1668
+ | timestamps | string | no | Gives details of category releted data |
1669
+
1670
+ ---
1671
+
1672
+
1673
+
1674
+
1675
+ #### [TicketSubCategory](#TicketSubCategory)
1676
+
1677
+ | Properties | Type | Nullable | Description |
1678
+ | ---------- | ---- | -------- | ----------- |
1679
+ | key | string | yes | Key for sub-category |
1680
+ | display | string | yes | Display text for sub-category |
1681
+ | sub_categories | [TicketSubCategory](#TicketSubCategory) | no | |
1682
+
1683
+ ---
1684
+
1685
+
1686
+
1687
+
1688
+ #### [TicketCategory](#TicketCategory)
1689
+
1690
+ | Properties | Type | Nullable | Description |
1691
+ | ---------- | ---- | -------- | ----------- |
1692
+ | display | string | yes | Category display value identifier |
1693
+ | key | string | yes | Category key value identifier |
1694
+ | sub_categories | [TicketCategory](#TicketCategory) | no | Support category array list details |
1695
+ | group_id | number | no | Group id of category releted data |
1696
+ | feedback_form | [FeedbackForm](#FeedbackForm) | no | Support category array list details |
1697
+
1698
+ ---
1699
+
1700
+
1701
+
1702
+
1703
+ #### [CategoryData](#CategoryData)
1704
+
1705
+ | Properties | Type | Nullable | Description |
1706
+ | ---------- | ---- | -------- | ----------- |
1707
+ | list | [TicketCategory](#TicketCategory) | no | |
1708
+
1709
+ ---
1710
+
1711
+
1712
+
1713
+
1714
+ #### [IntegrationConfig](#IntegrationConfig)
1715
+
1716
+ | Properties | Type | Nullable | Description |
1717
+ | ---------- | ---- | -------- | ----------- |
1718
+ | _id | string | no | Unique id |
1719
+ | integration_type | string | yes | Enum string values for integration |
1720
+ | base_url | string | no | Integration base url for validate and create ticket |
1721
+ | create_ticket_apikey | string | no | Integration apikey to validate and create ticket |
1722
+ | update_ticket_apikey | string | no | Integration apikey to update ticket |
1723
+ | category_sync_apikey | string | no | Integration apikey to sync category of selected type |
1724
+ | category_data | [CategoryData](#CategoryData) | no | Support category array list details |
1725
+ | webhook_apikey | string | no | Integration webhook apikey to got callbacks from integration type dashboard like freshdesk, etc |
1726
+ | config_completed | boolean | no | Denotes the current intergration is completed or partially done |
1727
+ | allow_ticket_creation | boolean | yes | Denotes ticket creation enable or disable on platform |
1728
+ | show_listing | boolean | yes | Denotes ticket listing enable or disable on platform |
1729
+
1730
+ ---
1731
+
1732
+
1733
+
1734
+
1735
+ #### [FeedbackResponseItem](#FeedbackResponseItem)
1736
+
1737
+ | Properties | Type | Nullable | Description |
1738
+ | ---------- | ---- | -------- | ----------- |
1739
+ | display | string | yes | Question/Title of the form field |
1740
+ | key | string | yes | Key of the form field |
1741
+ | value | string | yes | User response value for the form field |
1742
+
1743
+ ---
1744
+
1745
+
1746
+
1747
+
1748
+ #### [TicketFeedback](#TicketFeedback)
1749
+
1750
+ | Properties | Type | Nullable | Description |
1751
+ | ---------- | ---- | -------- | ----------- |
1752
+ | _id | string | yes | Unique identifier for the feedback |
1753
+ | ticket_id | string | yes | Readable ticket number |
1754
+ | company_id | string | yes | Company id for which ticket was raised |
1755
+ | response | [[FeedbackResponseItem](#FeedbackResponseItem)] | yes | |
1756
+ | category | string | no | Category of the ticket |
1757
+ | user | string | no | User who submitted the feedback |
1758
+ | updated_at | string | no | Time when the feedback was last updated |
1759
+ | created_at | string | no | Time when the feedback was created |
1760
+
1761
+ ---
1762
+
1763
+
1764
+
1765
+
1766
+ #### [TicketHistory](#TicketHistory)
1767
+
1768
+ | Properties | Type | Nullable | Description |
1769
+ | ---------- | ---- | -------- | ----------- |
1770
+ | type | string | yes | Type of the history event |
1771
+ | value | string | yes | Data of the history event |
1772
+ | ticket_id | string | yes | Readable ticket number |
1773
+ | created_on | [CreatedOn](#CreatedOn) | no | Time of creation of the history event |
1774
+ | created_by | string | no | User who created the history event |
1775
+ | _id | string | yes | Unique identifier of the history event |
1776
+ | updated_at | string | no | Time of last update of the history event |
1777
+ | created_at | string | no | Time of creation of the history event |
1778
+
1779
+ ---
1780
+
1781
+
1782
+
1783
+
1784
+ #### [Ticket](#Ticket)
1785
+
1786
+ | Properties | Type | Nullable | Description |
1787
+ | ---------- | ---- | -------- | ----------- |
1788
+ | context | [TicketContext](#TicketContext) | no | Details of company and application realated to the ticket |
1789
+ | created_on | [CreatedOn](#CreatedOn) | no | Details of company and application realated to the ticket |
1790
+ | response_id | string | no | Details of company and application realated to the ticket |
1791
+ | content | [TicketContent](#TicketContent) | no | Ticket conetent details |
1792
+ | category | string | yes | Category assigned to the ticket |
1793
+ | sub_category | string | no | Sub-category assigned to the ticket |
1794
+ | source | [TicketSourceEnum](#TicketSourceEnum) | yes | Denotes if the ticket was created at company or application level |
1795
+ | status | [Status](#Status) | yes | Denotes in what state is the ticket |
1796
+ | priority | [Priority](#Priority) | yes | Denotes the priority of ticket |
1797
+ | created_by | string | no | User details of ticket creator |
1798
+ | assigned_to | string | no | Details of support staff to whom ticket is assigned |
1799
+ | tags | [string] | no | Tags relevant to ticket |
1800
+ | _custom_json | string | no | custom json relevant to the ticket |
1801
+ | is_feedback_pending | boolean | no | Denotes if feedback submission is pending for the ticket |
1802
+ | integration | string | no | Integration type and its details of the ticket |
1803
+ | _id | string | yes | Unique identifier for the ticket |
1804
+ | updated_at | string | no | Time when the ticket was last updated |
1805
+ | created_at | string | no | Time when the ticket was created |
1806
+
1807
+ ---
1808
+
1809
+
1810
+
1811
+
1812
+ ### Enums
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+ #### [PriorityEnum](#PriorityEnum)
1819
+ Type : string
1820
+
1821
+ | Name | Value | Description |
1822
+ | ---- | ----- | ----------- |
1823
+ | low | low | This means ticket is low priority |
1824
+ | medium | medium | This means ticket is medium priority |
1825
+ | high | high | This means ticket is high priority |
1826
+ | urgent | urgent | This means ticket is of urgent priority |
1827
+
1828
+ ---
1829
+
1830
+
1831
+
1832
+ #### [HistoryTypeEnum](#HistoryTypeEnum)
1833
+ Type : string
1834
+
1835
+ | Name | Value | Description |
1836
+ | ---- | ----- | ----------- |
1837
+ | rating | rating | This means history event is a rating |
1838
+ | log | log | This means history event is a changelog |
1839
+ | comment | comment | This means history event is a comment |
1840
+
1841
+ ---
1842
+
1843
+
1844
+
1845
+ #### [TicketAssetTypeEnum](#TicketAssetTypeEnum)
1846
+ Type : string
1847
+
1848
+ | Name | Value | Description |
1849
+ | ---- | ----- | ----------- |
1850
+ | image | image | Denotes asset is of image type |
1851
+ | video | video | Denotes asset is of video type |
1852
+ | file | file | Denotes asset is of file type |
1853
+ | youtube | youtube | Denotes asset is an youtube link |
1854
+ | product | product | Denotes asset is of product type |
1855
+ | collection | collection | Denotes asset is of collection type |
1856
+ | brand | brand | Denotes asset is of brand type |
1857
+ | shipment | shipment | Denotes asset is of shipment type |
1858
+ | order | order | Denotes asset is of order type |
1859
+
1860
+ ---
1861
+
1862
+
1863
+
1864
+ #### [TicketSourceEnum](#TicketSourceEnum)
1865
+ Type : string
1866
+
1867
+ | Name | Value | Description |
1868
+ | ---- | ----- | ----------- |
1869
+ | platformPanel | platform_panel | This means it is company level ticket |
1870
+ | salesChannel | sales_channel | This means it is a application/sales channel level ticket |
1871
+
1872
+ ---
1873
+
1874
+
1875
+
1876
+ #### [TicketIntegrationDetails](#TicketIntegrationDetails)
1877
+ Type : string
1878
+
1879
+ | Name | Value | Description |
1880
+ | ---- | ----- | ----------- |
1881
+ | defaultCase | default | This means it is default level ticket integration |
1882
+ | freshdesk | freshdesk | This means it is default level freshdesk integration |
1883
+ | kapture | kapture | This means it is default level kapture integration |
1884
+
1885
+ ---
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+