@gofynd/fdk-client-javascript 1.0.2 → 1.0.4

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 (346) hide show
  1. package/README.md +31 -2
  2. package/index.d.ts +4 -4
  3. package/index.js +9 -10
  4. package/package.json +14 -14
  5. package/sdk/APIClient.d.ts +11 -0
  6. package/sdk/APIClient.js +35 -0
  7. package/sdk/Client.d.ts +6 -0
  8. package/sdk/Client.js +17 -0
  9. package/sdk/Config.d.ts +9 -0
  10. package/sdk/Config.js +17 -0
  11. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  12. package/sdk/application/Cart/CartApplicationClient.js +595 -594
  13. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  14. package/sdk/application/Cart/CartApplicationModel.js +490 -885
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  16. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  17. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  18. package/sdk/application/Catalog/CatalogApplicationClient.js +1079 -1078
  19. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  20. package/sdk/application/Catalog/CatalogApplicationModel.js +683 -1249
  21. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  22. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  23. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  24. package/sdk/application/Common/CommonApplicationClient.js +43 -42
  25. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  26. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  27. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  28. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  29. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  30. package/sdk/application/Communication/CommunicationApplicationClient.js +32 -31
  31. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  32. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  33. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  34. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.js +350 -349
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  41. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  42. package/sdk/application/Content/ContentApplicationClient.js +216 -215
  43. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  44. package/sdk/application/Content/ContentApplicationModel.js +468 -884
  45. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  46. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.js +65 -64
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  53. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  54. package/sdk/application/Lead/LeadApplicationClient.js +109 -108
  55. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  56. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  57. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  58. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  59. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +31 -22
  60. package/sdk/application/Logistic/LogisticApplicationClient.js +115 -49
  61. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  62. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  63. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  64. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -9
  65. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  66. package/sdk/application/Order/OrderApplicationClient.js +247 -246
  67. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  68. package/sdk/application/Order/OrderApplicationModel.js +361 -656
  69. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  70. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  71. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  72. package/sdk/application/Payment/PaymentApplicationClient.js +781 -780
  73. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  74. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  75. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  76. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  77. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  78. package/sdk/application/PosCart/PosCartApplicationClient.js +646 -645
  79. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  80. package/sdk/application/PosCart/PosCartApplicationModel.js +476 -870
  81. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  82. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  83. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  84. package/sdk/application/Rewards/RewardsApplicationClient.js +122 -121
  85. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  86. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  87. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  88. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  89. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  90. package/sdk/application/Share/ShareApplicationClient.js +94 -93
  91. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  92. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  93. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  94. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  95. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  96. package/sdk/application/Theme/ThemeApplicationClient.js +38 -37
  97. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  98. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  99. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  100. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  101. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  102. package/sdk/application/User/UserApplicationClient.js +619 -618
  103. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  104. package/sdk/application/User/UserApplicationModel.js +440 -689
  105. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  106. package/sdk/application/User/UserApplicationValidator.js +89 -89
  107. package/sdk/common/AxiosHelper.js +18 -7
  108. package/sdk/constructUrl.d.ts +5 -0
  109. package/sdk/constructUrl.js +13 -0
  110. package/sdk/index.d.ts +3 -0
  111. package/sdk/index.js +5 -0
  112. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +182 -180
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  115. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +21 -21
  116. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  117. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  118. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  119. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +44 -43
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  124. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  125. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +7 -6
  126. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  127. package/sdk/platform/Billing/BillingPlatformClient.js +184 -183
  128. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  129. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  130. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  131. package/sdk/platform/Billing/BillingPlatformValidator.js +26 -25
  132. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +192 -165
  133. package/sdk/platform/Cart/CartPlatformApplicationClient.js +686 -510
  134. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +14 -11
  135. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +77 -61
  136. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  137. package/sdk/platform/Cart/CartPlatformModel.js +676 -1206
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1558 -1556
  140. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  141. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  142. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +688 -688
  143. package/sdk/platform/Catalog/CatalogPlatformClient.js +1556 -1559
  144. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  145. package/sdk/platform/Catalog/CatalogPlatformModel.js +2133 -3910
  146. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  147. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -228
  148. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  149. package/sdk/platform/Common/CommonPlatformClient.js +40 -51
  150. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  151. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  152. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  153. package/sdk/platform/Common/CommonPlatformValidator.js +7 -6
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +945 -943
  156. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  157. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +88 -88
  158. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  159. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  160. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +217 -216
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -24
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +617 -552
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +70 -64
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +348 -347
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +39 -38
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +524 -534
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1287 -1346
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +49 -50
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +153 -159
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  183. package/sdk/platform/Content/ContentPlatformModel.js +485 -907
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +219 -218
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +30 -29
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +25 -25
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +83 -61
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +9 -9
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +53 -53
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +147 -125
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +12 -11
  200. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  201. package/sdk/platform/Inventory/InventoryPlatformClient.js +231 -230
  202. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  203. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  204. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  205. package/sdk/platform/Inventory/InventoryPlatformValidator.js +29 -28
  206. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  207. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +203 -201
  208. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  209. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +29 -29
  210. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  211. package/sdk/platform/Lead/LeadPlatformClient.js +215 -214
  212. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  213. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  214. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  215. package/sdk/platform/Lead/LeadPlatformValidator.js +25 -24
  216. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  217. package/sdk/platform/Order/OrderPlatformApplicationClient.js +68 -66
  218. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +7 -7
  220. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  221. package/sdk/platform/Order/OrderPlatformClient.js +1046 -1033
  222. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  223. package/sdk/platform/Order/OrderPlatformModel.js +1575 -2861
  224. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  225. package/sdk/platform/Order/OrderPlatformValidator.js +161 -160
  226. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  227. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  228. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  229. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  230. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +58 -58
  231. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +178 -178
  232. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  233. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +24 -24
  234. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  235. package/sdk/platform/Payment/PaymentPlatformClient.js +156 -155
  236. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  237. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  238. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  239. package/sdk/platform/Payment/PaymentPlatformValidator.js +22 -21
  240. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  241. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  242. package/sdk/platform/PlatformClient.d.ts +7972 -7888
  243. package/sdk/platform/PlatformClient.js +8678 -10107
  244. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +85 -85
  245. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +299 -280
  246. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  247. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +35 -35
  248. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  249. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  250. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  251. package/sdk/platform/Share/SharePlatformApplicationClient.js +62 -60
  252. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  253. package/sdk/platform/Share/SharePlatformApplicationValidator.js +7 -7
  254. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  255. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  256. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  257. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +314 -312
  258. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  259. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +45 -45
  260. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  261. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  262. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  263. package/sdk/platform/User/UserPlatformApplicationClient.js +507 -166
  264. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  265. package/sdk/platform/User/UserPlatformApplicationValidator.js +62 -24
  266. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  267. package/sdk/platform/User/UserPlatformModel.js +440 -689
  268. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  269. package/sdk/platform/Webhook/WebhookPlatformClient.js +91 -90
  270. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  271. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  272. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  273. package/sdk/platform/Webhook/WebhookPlatformValidator.js +15 -14
  274. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  275. package/sdk/public/Configuration/ConfigurationPublicClient.js +40 -38
  276. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  277. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  278. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  279. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  280. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  281. package/sdk/public/Inventory/InventoryPublicClient.js +115 -113
  282. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  283. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  284. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  285. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  286. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  287. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  288. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  289. package/.github/workflows/on_create_release.yml +0 -23
  290. package/.github/workflows/on_merge_main.yml +0 -38
  291. package/.github/workflows/on_pull_request.yml +0 -35
  292. package/.prettierrc +0 -5
  293. package/documentation/application/CART.md +0 -7339
  294. package/documentation/application/CATALOG.md +0 -9597
  295. package/documentation/application/COMMON.md +0 -452
  296. package/documentation/application/COMMUNICATION.md +0 -467
  297. package/documentation/application/CONFIGURATION.md +0 -2906
  298. package/documentation/application/CONTENT.md +0 -3351
  299. package/documentation/application/FILESTORAGE.md +0 -578
  300. package/documentation/application/LEAD.md +0 -1895
  301. package/documentation/application/LOGISTIC.md +0 -765
  302. package/documentation/application/ORDER.md +0 -3432
  303. package/documentation/application/PAYMENT.md +0 -5221
  304. package/documentation/application/POSCART.md +0 -7938
  305. package/documentation/application/README.md +0 -21
  306. package/documentation/application/REWARDS.md +0 -708
  307. package/documentation/application/SHARE.md +0 -733
  308. package/documentation/application/THEME.md +0 -5800
  309. package/documentation/application/USER.md +0 -4335
  310. package/documentation/platform/ANALYTICS.md +0 -1154
  311. package/documentation/platform/AUDITTRAIL.md +0 -576
  312. package/documentation/platform/BILLING.md +0 -2400
  313. package/documentation/platform/CART.md +0 -5559
  314. package/documentation/platform/CATALOG.md +0 -23261
  315. package/documentation/platform/COMMON.md +0 -452
  316. package/documentation/platform/COMMUNICATION.md +0 -5718
  317. package/documentation/platform/COMPANYPROFILE.md +0 -2031
  318. package/documentation/platform/CONFIGURATION.md +0 -7339
  319. package/documentation/platform/CONTENT.md +0 -9098
  320. package/documentation/platform/DISCOUNT.md +0 -863
  321. package/documentation/platform/FILESTORAGE.md +0 -1081
  322. package/documentation/platform/INVENTORY.md +0 -1779
  323. package/documentation/platform/LEAD.md +0 -4740
  324. package/documentation/platform/ORDER.md +0 -8486
  325. package/documentation/platform/PARTNER.md +0 -220
  326. package/documentation/platform/PAYMENT.md +0 -3448
  327. package/documentation/platform/README.md +0 -27
  328. package/documentation/platform/REWARDS.md +0 -1083
  329. package/documentation/platform/SHARE.md +0 -606
  330. package/documentation/platform/THEME.md +0 -35729
  331. package/documentation/platform/USER.md +0 -2319
  332. package/documentation/platform/WEBHOOK.md +0 -591
  333. package/documentation/public/CONFIGURATION.md +0 -452
  334. package/documentation/public/INVENTORY.md +0 -690
  335. package/documentation/public/WEBHOOK.md +0 -352
  336. package/jest.config.d.ts +0 -4
  337. package/jest.config.js +0 -6
  338. package/tests/application/catalog.spec.js +0 -47
  339. package/tests/common/action-url.spec.js +0 -35
  340. package/tests/common/schema/action-url.json +0 -178
  341. package/tests/common/schema/url-action.json +0 -683
  342. package/tests/common/url-action.spec.js +0 -48
  343. package/tests/helpers/cookie.helper.js +0 -31
  344. package/tests/helpers/oauth.helper.js +0 -43
  345. package/tests/platform/catalog.spec.js +0 -49
  346. package/tests/public/location.spec.js +0 -39
@@ -1,4740 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## Lead Methods
9
- Handles communication between Administrator <-> Staff and Staff <-> Users
10
-
11
- * [getTickets](#gettickets)
12
- * [createTicket](#createticket)
13
- * [getTickets](#gettickets)
14
- * [getTicket](#getticket)
15
- * [editTicket](#editticket)
16
- * [getTicket](#getticket)
17
- * [editTicket](#editticket)
18
- * [createHistory](#createhistory)
19
- * [getTicketHistory](#gettickethistory)
20
- * [getFeedbacks](#getfeedbacks)
21
- * [submitFeedback](#submitfeedback)
22
- * [createHistory](#createhistory)
23
- * [getTicketHistory](#gettickethistory)
24
- * [getCustomForm](#getcustomform)
25
- * [editCustomForm](#editcustomform)
26
- * [getCustomForms](#getcustomforms)
27
- * [createCustomForm](#createcustomform)
28
- * [getTokenForVideoRoom](#gettokenforvideoroom)
29
- * [getTokenForVideoRoom](#gettokenforvideoroom)
30
- * [getVideoParticipants](#getvideoparticipants)
31
- * [getVideoParticipants](#getvideoparticipants)
32
- * [openVideoRoom](#openvideoroom)
33
- * [closeVideoRoom](#closevideoroom)
34
- * [getGeneralConfig](#getgeneralconfig)
35
-
36
-
37
-
38
- ## Methods with example and description
39
-
40
-
41
-
42
-
43
- ### getTickets
44
- Gets the list of company level tickets and/or ticket filters depending on query params
45
-
46
-
47
-
48
- ```javascript
49
- // Promise
50
- const promise = client.lead.getTickets({ items : value,
51
- filters : value,
52
- q : value,
53
- status : value,
54
- priority : value,
55
- category : value,
56
- pageNo : value,
57
- pageSize : value });
58
-
59
- // Async/Await
60
- const data = await client.lead.getTickets({ items : value,
61
- filters : value,
62
- q : value,
63
- status : value,
64
- priority : value,
65
- category : value,
66
- pageNo : value,
67
- pageSize : value });
68
- ```
69
-
70
-
71
-
72
-
73
-
74
- | Argument | Type | Required | Description |
75
- | --------- | ----- | -------- | ----------- |
76
- | items | boolean | no | Decides that the reponse will contain the list of tickets |
77
- | filters | boolean | no | Decides that the reponse will contain the ticket filters |
78
- | q | string | no | Search through ticket titles and description |
79
- | status | string | no | Filter tickets on status |
80
- | priority | PriorityEnum | no | Filter tickets on priority |
81
- | category | string | no | Filter tickets on category |
82
- | pageNo | number | no | The page number to navigate through the given set of results. |
83
- | pageSize | number | no | Number of items to retrieve in each page. Default is 12. |
84
-
85
-
86
-
87
- Gets the list of company level tickets and/or ticket filters
88
-
89
- *Returned Response:*
90
-
91
-
92
-
93
-
94
- [TicketList](#TicketList)
95
-
96
- Success
97
-
98
-
99
-
100
-
101
- <details>
102
- <summary><i>&nbsp; Examples:</i></summary>
103
-
104
-
105
- <details>
106
- <summary><i>&nbsp; Without items</i></summary>
107
-
108
- ```json
109
- {
110
- "value": {
111
- "filters": {
112
- "statuses": [
113
- {
114
- "display": "Pending",
115
- "color": "#eae22b",
116
- "key": "pending"
117
- },
118
- {
119
- "display": "In Progress",
120
- "color": "#ffa951",
121
- "key": "in_progress"
122
- },
123
- {
124
- "display": "Resolved",
125
- "color": "#20c3a6",
126
- "key": "resolved"
127
- },
128
- {
129
- "display": "Closed",
130
- "color": "#41434c",
131
- "key": "closed"
132
- }
133
- ],
134
- "priorities": [
135
- {
136
- "display": "Low",
137
- "color": "#fed766",
138
- "key": "low"
139
- },
140
- {
141
- "display": "Medium",
142
- "color": "#f37736",
143
- "key": "medium"
144
- },
145
- {
146
- "display": "High",
147
- "color": "#fe4a49",
148
- "key": "high"
149
- }
150
- ],
151
- "assignees": [],
152
- "categories": [
153
- {
154
- "form": {
155
- "login_required": false,
156
- "should_notify": false,
157
- "inputs": [
158
- {
159
- "type": "email",
160
- "showRegexInput": false,
161
- "enum": [],
162
- "regex": "\\S+@\\S+\\.\\S+",
163
- "display": "email",
164
- "required": true,
165
- "key": "email"
166
- }
167
- ],
168
- "available_assignees": [],
169
- "_id": "602e900a2042255c03cadaf0",
170
- "title": "service-test-satyen",
171
- "description": "testing form from service",
172
- "slug": "service-test-satyen",
173
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
174
- "application_id": "000000000000000000000001",
175
- "created_on": {
176
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
177
- "platform": "web",
178
- "meta": {
179
- "browser": {
180
- "name": "Chrome",
181
- "version": "88.0.4324.150"
182
- },
183
- "os": {
184
- "name": "macOS",
185
- "version": "11.2.0"
186
- },
187
- "platform": {
188
- "type": "desktop",
189
- "vendor": "Apple"
190
- },
191
- "engine": {
192
- "name": "Blink"
193
- }
194
- }
195
- },
196
- "created_by": "5f8147abbd1a0a870f61f1a6",
197
- "createdAt": "2021-02-18T16:04:26.495Z",
198
- "updatedAt": "2021-02-18T16:04:26.495Z",
199
- "__v": 0
200
- },
201
- "key": "service-test-satyen",
202
- "display": "service-test-satyen"
203
- }
204
- ]
205
- }
206
- }
207
- }
208
- ```
209
- </details>
210
-
211
- <details>
212
- <summary><i>&nbsp; With items</i></summary>
213
-
214
- ```json
215
- {
216
- "value": {
217
- "docs": [
218
- {
219
- "_id": "602d2652ce284d0b008d5c97",
220
- "status": {
221
- "display": "Pending",
222
- "color": "#eae22b",
223
- "key": "pending"
224
- },
225
- "priority": {
226
- "display": "Medium",
227
- "color": "#f37736",
228
- "key": "medium"
229
- },
230
- "assigned_to": {
231
- "agent_id": "5e79e721768c6bf54b783146",
232
- "gender": "male",
233
- "accountType": "user",
234
- "active": true,
235
- "profilePicUrl": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
236
- "hasOldPasswordHash": false,
237
- "_id": "5e79e721768c6bf54b783146",
238
- "emails": [
239
- {
240
- "active": true,
241
- "primary": true,
242
- "verified": true,
243
- "email": "niktest@xyz.com"
244
- },
245
- {
246
- "active": true,
247
- "primary": false,
248
- "verified": true,
249
- "email": "xyz@xyz.com"
250
- },
251
- {
252
- "active": true,
253
- "primary": false,
254
- "verified": true,
255
- "email": "xyz@xyz.com"
256
- },
257
- {
258
- "active": true,
259
- "primary": false,
260
- "verified": true,
261
- "email": "xyz@xyz.com"
262
- }
263
- ],
264
- "phoneNumbers": [
265
- {
266
- "active": true,
267
- "primary": true,
268
- "verified": true,
269
- "countryCode": 91,
270
- "phone": "9999999999"
271
- }
272
- ],
273
- "firstName": "Nikhil",
274
- "lastName": "Manapure",
275
- "username": "xyz_xyz_com",
276
- "createdAt": "2020-03-24T10:55:29.298Z",
277
- "updatedAt": "2020-05-12T07:46:41.816Z",
278
- "uid": "5567",
279
- "__v": 2
280
- },
281
- "tags": [
282
- "asdf444"
283
- ],
284
- "context": {
285
- "application_id": "000000000000000000000001",
286
- "company_id": "1"
287
- },
288
- "created_on": {
289
- "user_agent": "Fynd Platform/0.0.1 (com.fynd.platform; build:3; iOS 14.2.0) Alamofire/5.0.2",
290
- "platform": "web",
291
- "meta": {
292
- "browser": {
293
- "name": "Fynd Platform",
294
- "version": "0.0.1"
295
- }
296
- }
297
- },
298
- "source": "sales_channel",
299
- "content": {
300
- "title": "asdf444 Response",
301
- "description": "",
302
- "attachments": []
303
- },
304
- "response_id": "602d2652ce284dee3c8d5c96",
305
- "category": {
306
- "form": {
307
- "login_required": false,
308
- "should_notify": true,
309
- "inputs": [
310
- {
311
- "type": "text",
312
- "showRegexInput": false,
313
- "enum": [],
314
- "display": "asdf",
315
- "key": "asdf"
316
- },
317
- {
318
- "type": "mobile",
319
- "showRegexInput": false,
320
- "enum": [],
321
- "display": "mob num",
322
- "regex": "[0-9]{10}$",
323
- "key": "mob-num"
324
- }
325
- ],
326
- "available_assignees": [
327
- "5e79e721768c6bf54b783146"
328
- ],
329
- "_id": "60124e4a4d2bc363625e1bf4",
330
- "title": "asdf444",
331
- "description": "adf",
332
- "slug": "asdf444",
333
- "application_id": "000000000000000000000001",
334
- "created_on": {
335
- "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",
336
- "platform": "web",
337
- "meta": {
338
- "browser": {
339
- "name": "Chrome",
340
- "version": "88.0.4324.96"
341
- },
342
- "os": {
343
- "name": "macOS",
344
- "version": "10.15.7",
345
- "versionName": "Catalina"
346
- },
347
- "platform": {
348
- "type": "desktop",
349
- "vendor": "Apple"
350
- },
351
- "engine": {
352
- "name": "Blink"
353
- }
354
- }
355
- },
356
- "created_by": "5e79e721768c6bf54b783146",
357
- "createdAt": "2021-01-28T05:40:26.271Z",
358
- "updatedAt": "2021-02-18T16:02:32.086Z",
359
- "__v": 0,
360
- "poll_for_assignment": {
361
- "duration": 20,
362
- "message": "We are looking for executive to connect you",
363
- "success_message": "Executive found",
364
- "failure_message": "All our executives are busy at the moment, We have accepted your request and someone will connect with you soon!"
365
- }
366
- },
367
- "key": "asdf444",
368
- "display": "asdf444"
369
- },
370
- "ticket_id": "472",
371
- "createdAt": "2021-02-17T14:21:06.774Z",
372
- "updatedAt": "2021-02-17T14:21:06.774Z",
373
- "__v": 0,
374
- "id": "602d2652ce284d0b008d5c97"
375
- }
376
- ],
377
- "total": 472,
378
- "limit": 10,
379
- "page": 1,
380
- "pages": 48,
381
- "filters": {
382
- "statuses": [
383
- {
384
- "display": "Pending",
385
- "color": "#eae22b",
386
- "key": "pending"
387
- },
388
- {
389
- "display": "In Progress",
390
- "color": "#ffa951",
391
- "key": "in_progress"
392
- },
393
- {
394
- "display": "Resolved",
395
- "color": "#20c3a6",
396
- "key": "resolved"
397
- },
398
- {
399
- "display": "Closed",
400
- "color": "#41434c",
401
- "key": "closed"
402
- }
403
- ],
404
- "priorities": [
405
- {
406
- "display": "Low",
407
- "color": "#fed766",
408
- "key": "low"
409
- },
410
- {
411
- "display": "Medium",
412
- "color": "#f37736",
413
- "key": "medium"
414
- },
415
- {
416
- "display": "High",
417
- "color": "#fe4a49",
418
- "key": "high"
419
- }
420
- ],
421
- "assignees": [],
422
- "categories": [
423
- {
424
- "form": {
425
- "login_required": false,
426
- "should_notify": false,
427
- "inputs": [
428
- {
429
- "type": "email",
430
- "showRegexInput": false,
431
- "enum": [],
432
- "regex": "\\S+@\\S+\\.\\S+",
433
- "display": "email",
434
- "required": true,
435
- "key": "email"
436
- }
437
- ],
438
- "available_assignees": [],
439
- "_id": "602e900a2042255c03cadaf0",
440
- "title": "service-test-satyen",
441
- "description": "testing form from service",
442
- "slug": "service-test-satyen",
443
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
444
- "application_id": "000000000000000000000001",
445
- "created_on": {
446
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
447
- "platform": "web",
448
- "meta": {
449
- "browser": {
450
- "name": "Chrome",
451
- "version": "88.0.4324.150"
452
- },
453
- "os": {
454
- "name": "macOS",
455
- "version": "11.2.0"
456
- },
457
- "platform": {
458
- "type": "desktop",
459
- "vendor": "Apple"
460
- },
461
- "engine": {
462
- "name": "Blink"
463
- }
464
- }
465
- },
466
- "created_by": "5f8147abbd1a0a870f61f1a6",
467
- "createdAt": "2021-02-18T16:04:26.495Z",
468
- "updatedAt": "2021-02-18T16:04:26.495Z",
469
- "__v": 0
470
- },
471
- "key": "service-test-satyen",
472
- "display": "service-test-satyen"
473
- }
474
- ]
475
- }
476
- }
477
- }
478
- ```
479
- </details>
480
-
481
- </details>
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
- ---
492
-
493
-
494
- ### createTicket
495
- Creates a company level ticket
496
-
497
-
498
-
499
- ```javascript
500
- // Promise
501
- const promise = client.lead.createTicket({ body : value });
502
-
503
- // Async/Await
504
- const data = await client.lead.createTicket({ body : value });
505
- ```
506
-
507
-
508
-
509
-
510
-
511
- | Argument | Type | Required | Description |
512
- | --------- | ----- | -------- | ----------- |
513
- | body | [AddTicketPayload](#AddTicketPayload) | yes | Request body |
514
-
515
-
516
- Creates a company level ticket
517
-
518
- *Returned Response:*
519
-
520
-
521
-
522
-
523
- [Ticket](#Ticket)
524
-
525
- Success
526
-
527
-
528
-
529
-
530
- <details>
531
- <summary><i>&nbsp; Examples:</i></summary>
532
-
533
-
534
- <details>
535
- <summary><i>&nbsp; Default</i></summary>
536
-
537
- ```json
538
- {
539
- "value": {
540
- "context": {
541
- "company_id": "884"
542
- },
543
- "content": {
544
- "title": "SOme title Response",
545
- "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
546
- "attachments": []
547
- },
548
- "status": {
549
- "display": "In Progress",
550
- "color": "#ffa951",
551
- "key": "in_progress"
552
- },
553
- "priority": {
554
- "display": "Medium",
555
- "color": "#f37736",
556
- "key": "medium"
557
- },
558
- "assigned_to": {
559
- "agent_id": "5d1363adf599d850df93175e",
560
- "gender": "male",
561
- "accountType": "user",
562
- "active": true,
563
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
564
- "hasOldPasswordHash": false,
565
- "_id": "5d1363adf599d850df93175e",
566
- "phoneNumbers": [
567
- {
568
- "active": true,
569
- "primary": true,
570
- "verified": true,
571
- "countryCode": 91,
572
- "phone": "9999999999"
573
- }
574
- ],
575
- "firstName": "Nikhil",
576
- "lastName": "Manapure",
577
- "emails": [
578
- {
579
- "active": true,
580
- "primary": true,
581
- "verified": true,
582
- "email": "niktest@xyz.com"
583
- }
584
- ],
585
- "username": "niktest_xyz_com_38425_20500281",
586
- "createdAt": "2019-01-01T17:22:38.528Z",
587
- "updatedAt": "2021-01-22T10:02:42.258Z",
588
- "uid": "20500281",
589
- "__v": 56
590
- },
591
- "tags": [
592
- "some-title"
593
- ],
594
- "_id": "6012f38557751ee8fc162cf7",
595
- "created_on": {
596
- "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",
597
- "platform": "web",
598
- "meta": {
599
- "browser": {
600
- "name": "Chrome",
601
- "version": "88.0.4324.96"
602
- },
603
- "os": {
604
- "name": "macOS",
605
- "version": "10.15.7",
606
- "versionName": "Catalina"
607
- },
608
- "platform": {
609
- "type": "desktop",
610
- "vendor": "Apple"
611
- },
612
- "engine": {
613
- "name": "Blink"
614
- }
615
- }
616
- },
617
- "source": "sales_channel",
618
- "created_by": {
619
- "id": "5d1363adf599d850df93175e",
620
- "user": {
621
- "gender": "male",
622
- "accountType": "user",
623
- "active": true,
624
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
625
- "hasOldPasswordHash": false,
626
- "_id": "5d1363adf599d850df93175e",
627
- "phoneNumbers": [
628
- {
629
- "active": true,
630
- "primary": true,
631
- "verified": true,
632
- "countryCode": 91,
633
- "phone": "9999999999"
634
- }
635
- ],
636
- "firstName": "Nikhil",
637
- "lastName": "Manapure",
638
- "emails": [
639
- {
640
- "active": true,
641
- "primary": true,
642
- "verified": true,
643
- "email": "niktest@xyz.com"
644
- }
645
- ],
646
- "username": "niktest_xyz_com_38425_20500281",
647
- "createdAt": "2019-01-01T17:22:38.528Z",
648
- "updatedAt": "2021-01-22T10:02:42.258Z",
649
- "uid": "20500281",
650
- "__v": 56
651
- }
652
- },
653
- "response_id": "6012f38457751e0fb8162cf6",
654
- "category": {
655
- "form": {
656
- "login_required": false,
657
- "should_notify": false,
658
- "inputs": [
659
- {
660
- "required": false,
661
- "type": "text",
662
- "enum": [],
663
- "display": "Single lineeee",
664
- "key": "single-lineeee",
665
- "showRegexInput": false
666
- },
667
- {
668
- "required": false,
669
- "type": "email",
670
- "enum": [],
671
- "display": "Email",
672
- "regex": "\\S+@\\S+\\.\\S+",
673
- "key": "email",
674
- "showRegexInput": true
675
- },
676
- {
677
- "required": false,
678
- "type": "text",
679
- "enum": [],
680
- "display": "dfsdf",
681
- "key": "dfsdf",
682
- "showRegexInput": false
683
- }
684
- ],
685
- "available_assignees": [
686
- "5b9b98150df588546aaea6d2",
687
- "5c45d78395d7504f76c2cb37"
688
- ],
689
- "_id": "5fd72db3dc250f8decfc61b2",
690
- "title": "SOme title",
691
- "description": "SOme big description",
692
- "slug": "some-title",
693
- "application_id": "000000000000000000000003",
694
- "created_on": {
695
- "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",
696
- "platform": "web",
697
- "meta": {
698
- "browser": {
699
- "name": "Chrome",
700
- "version": "87.0.4280.88"
701
- },
702
- "os": {
703
- "name": "macOS",
704
- "version": "10.15.6",
705
- "versionName": "Catalina"
706
- },
707
- "platform": {
708
- "type": "desktop",
709
- "vendor": "Apple"
710
- },
711
- "engine": {
712
- "name": "Blink"
713
- }
714
- }
715
- },
716
- "created_by": "5d1363adf599d850df93175e",
717
- "createdAt": "2020-12-14T09:17:39.953Z",
718
- "updatedAt": "2021-01-28T18:48:07.717Z",
719
- "__v": 0
720
- },
721
- "key": "some-title",
722
- "display": "SOme title"
723
- },
724
- "ticket_id": "43",
725
- "createdAt": "2021-01-28T17:25:25.013Z",
726
- "updatedAt": "2021-01-28T17:25:33.396Z",
727
- "__v": 0,
728
- "video_room_id": "6012f38557751ee8fc162cf7"
729
- }
730
- }
731
- ```
732
- </details>
733
-
734
- </details>
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
- ---
745
-
746
-
747
- ### getTickets
748
- Gets the list of Application level Tickets and/or ticket filters depending on query params
749
-
750
-
751
-
752
- ```javascript
753
- // Promise
754
- const promise = client.application("<APPLICATION_ID>").lead.getTickets({ items : value,
755
- filters : value,
756
- q : value,
757
- status : value,
758
- priority : value,
759
- category : value });
760
-
761
- // Async/Await
762
- const data = await client.application("<APPLICATION_ID>").lead.getTickets({ items : value,
763
- filters : value,
764
- q : value,
765
- status : value,
766
- priority : value,
767
- category : value });
768
- ```
769
-
770
-
771
-
772
-
773
-
774
- | Argument | Type | Required | Description |
775
- | --------- | ----- | -------- | ----------- |
776
- | items | boolean | no | Decides that the reponse will contain the list of tickets |
777
- | filters | boolean | no | Decides that the reponse will contain the ticket filters |
778
- | q | string | no | Search through ticket titles and description |
779
- | status | string | no | Filter tickets on status |
780
- | priority | PriorityEnum | no | Filter tickets on priority |
781
- | category | string | no | Filter tickets on category |
782
-
783
-
784
-
785
- Gets the list of Application level Tickets and/or ticket filters
786
-
787
- *Returned Response:*
788
-
789
-
790
-
791
-
792
- [TicketList](#TicketList)
793
-
794
- Success
795
-
796
-
797
-
798
-
799
- <details>
800
- <summary><i>&nbsp; Examples:</i></summary>
801
-
802
-
803
- <details>
804
- <summary><i>&nbsp; Without items</i></summary>
805
-
806
- ```json
807
- {
808
- "value": {
809
- "filters": {
810
- "statuses": [
811
- {
812
- "display": "Pending",
813
- "color": "#eae22b",
814
- "key": "pending"
815
- },
816
- {
817
- "display": "In Progress",
818
- "color": "#ffa951",
819
- "key": "in_progress"
820
- },
821
- {
822
- "display": "Resolved",
823
- "color": "#20c3a6",
824
- "key": "resolved"
825
- },
826
- {
827
- "display": "Closed",
828
- "color": "#41434c",
829
- "key": "closed"
830
- }
831
- ],
832
- "priorities": [
833
- {
834
- "display": "Low",
835
- "color": "#fed766",
836
- "key": "low"
837
- },
838
- {
839
- "display": "Medium",
840
- "color": "#f37736",
841
- "key": "medium"
842
- },
843
- {
844
- "display": "High",
845
- "color": "#fe4a49",
846
- "key": "high"
847
- }
848
- ],
849
- "assignees": [],
850
- "categories": [
851
- {
852
- "form": {
853
- "login_required": false,
854
- "should_notify": false,
855
- "inputs": [
856
- {
857
- "type": "email",
858
- "showRegexInput": false,
859
- "enum": [],
860
- "regex": "\\S+@\\S+\\.\\S+",
861
- "display": "email",
862
- "required": true,
863
- "key": "email"
864
- }
865
- ],
866
- "available_assignees": [],
867
- "_id": "602e900a2042255c03cadaf0",
868
- "title": "service-test-satyen",
869
- "description": "testing form from service",
870
- "slug": "service-test-satyen",
871
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
872
- "application_id": "000000000000000000000001",
873
- "created_on": {
874
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
875
- "platform": "web",
876
- "meta": {
877
- "browser": {
878
- "name": "Chrome",
879
- "version": "88.0.4324.150"
880
- },
881
- "os": {
882
- "name": "macOS",
883
- "version": "11.2.0"
884
- },
885
- "platform": {
886
- "type": "desktop",
887
- "vendor": "Apple"
888
- },
889
- "engine": {
890
- "name": "Blink"
891
- }
892
- }
893
- },
894
- "created_by": "5f8147abbd1a0a870f61f1a6",
895
- "createdAt": "2021-02-18T16:04:26.495Z",
896
- "updatedAt": "2021-02-18T16:04:26.495Z",
897
- "__v": 0
898
- },
899
- "key": "service-test-satyen",
900
- "display": "service-test-satyen"
901
- }
902
- ]
903
- }
904
- }
905
- }
906
- ```
907
- </details>
908
-
909
- <details>
910
- <summary><i>&nbsp; With items</i></summary>
911
-
912
- ```json
913
- {
914
- "value": {
915
- "docs": [
916
- {
917
- "_id": "602d2652ce284d0b008d5c97",
918
- "status": {
919
- "display": "Pending",
920
- "color": "#eae22b",
921
- "key": "pending"
922
- },
923
- "priority": {
924
- "display": "Medium",
925
- "color": "#f37736",
926
- "key": "medium"
927
- },
928
- "assigned_to": {
929
- "agent_id": "5e79e721768c6bf54b783146",
930
- "gender": "male",
931
- "accountType": "user",
932
- "active": true,
933
- "profilePicUrl": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
934
- "hasOldPasswordHash": false,
935
- "_id": "5e79e721768c6bf54b783146",
936
- "emails": [
937
- {
938
- "active": true,
939
- "primary": true,
940
- "verified": true,
941
- "email": "niktest@xyz.com"
942
- },
943
- {
944
- "active": true,
945
- "primary": false,
946
- "verified": true,
947
- "email": "xyz@xyz.com"
948
- },
949
- {
950
- "active": true,
951
- "primary": false,
952
- "verified": true,
953
- "email": "xyz@xyz.com"
954
- },
955
- {
956
- "active": true,
957
- "primary": false,
958
- "verified": true,
959
- "email": "xyz@xyz.com"
960
- }
961
- ],
962
- "phoneNumbers": [
963
- {
964
- "active": true,
965
- "primary": true,
966
- "verified": true,
967
- "countryCode": 91,
968
- "phone": "9999999999"
969
- }
970
- ],
971
- "firstName": "Nikhil",
972
- "lastName": "Manapure",
973
- "username": "xyz_xyz_com",
974
- "createdAt": "2020-03-24T10:55:29.298Z",
975
- "updatedAt": "2020-05-12T07:46:41.816Z",
976
- "uid": "5567",
977
- "__v": 2
978
- },
979
- "tags": [
980
- "asdf444"
981
- ],
982
- "context": {
983
- "application_id": "000000000000000000000001",
984
- "company_id": "1"
985
- },
986
- "created_on": {
987
- "user_agent": "Fynd Platform/0.0.1 (com.fynd.platform; build:3; iOS 14.2.0) Alamofire/5.0.2",
988
- "platform": "web",
989
- "meta": {
990
- "browser": {
991
- "name": "Fynd Platform",
992
- "version": "0.0.1"
993
- }
994
- }
995
- },
996
- "source": "sales_channel",
997
- "content": {
998
- "title": "asdf444 Response",
999
- "description": "",
1000
- "attachments": []
1001
- },
1002
- "response_id": "602d2652ce284dee3c8d5c96",
1003
- "category": {
1004
- "form": {
1005
- "login_required": false,
1006
- "should_notify": true,
1007
- "inputs": [
1008
- {
1009
- "type": "text",
1010
- "showRegexInput": false,
1011
- "enum": [],
1012
- "display": "asdf",
1013
- "key": "asdf"
1014
- },
1015
- {
1016
- "type": "mobile",
1017
- "showRegexInput": false,
1018
- "enum": [],
1019
- "display": "mob num",
1020
- "regex": "[0-9]{10}$",
1021
- "key": "mob-num"
1022
- }
1023
- ],
1024
- "available_assignees": [
1025
- "5e79e721768c6bf54b783146"
1026
- ],
1027
- "_id": "60124e4a4d2bc363625e1bf4",
1028
- "title": "asdf444",
1029
- "description": "adf",
1030
- "slug": "asdf444",
1031
- "application_id": "000000000000000000000001",
1032
- "created_on": {
1033
- "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",
1034
- "platform": "web",
1035
- "meta": {
1036
- "browser": {
1037
- "name": "Chrome",
1038
- "version": "88.0.4324.96"
1039
- },
1040
- "os": {
1041
- "name": "macOS",
1042
- "version": "10.15.7",
1043
- "versionName": "Catalina"
1044
- },
1045
- "platform": {
1046
- "type": "desktop",
1047
- "vendor": "Apple"
1048
- },
1049
- "engine": {
1050
- "name": "Blink"
1051
- }
1052
- }
1053
- },
1054
- "created_by": "5e79e721768c6bf54b783146",
1055
- "createdAt": "2021-01-28T05:40:26.271Z",
1056
- "updatedAt": "2021-02-18T16:02:32.086Z",
1057
- "__v": 0,
1058
- "poll_for_assignment": {
1059
- "duration": 20,
1060
- "message": "We are looking for executive to connect you",
1061
- "success_message": "Executive found",
1062
- "failure_message": "All our executives are busy at the moment, We have accepted your request and someone will connect with you soon!"
1063
- }
1064
- },
1065
- "key": "asdf444",
1066
- "display": "asdf444"
1067
- },
1068
- "ticket_id": "472",
1069
- "createdAt": "2021-02-17T14:21:06.774Z",
1070
- "updatedAt": "2021-02-17T14:21:06.774Z",
1071
- "__v": 0,
1072
- "id": "602d2652ce284d0b008d5c97"
1073
- }
1074
- ],
1075
- "total": 472,
1076
- "limit": 10,
1077
- "page": 1,
1078
- "pages": 48,
1079
- "filters": {
1080
- "statuses": [
1081
- {
1082
- "display": "Pending",
1083
- "color": "#eae22b",
1084
- "key": "pending"
1085
- },
1086
- {
1087
- "display": "In Progress",
1088
- "color": "#ffa951",
1089
- "key": "in_progress"
1090
- },
1091
- {
1092
- "display": "Resolved",
1093
- "color": "#20c3a6",
1094
- "key": "resolved"
1095
- },
1096
- {
1097
- "display": "Closed",
1098
- "color": "#41434c",
1099
- "key": "closed"
1100
- }
1101
- ],
1102
- "priorities": [
1103
- {
1104
- "display": "Low",
1105
- "color": "#fed766",
1106
- "key": "low"
1107
- },
1108
- {
1109
- "display": "Medium",
1110
- "color": "#f37736",
1111
- "key": "medium"
1112
- },
1113
- {
1114
- "display": "High",
1115
- "color": "#fe4a49",
1116
- "key": "high"
1117
- }
1118
- ],
1119
- "assignees": [],
1120
- "categories": [
1121
- {
1122
- "form": {
1123
- "login_required": false,
1124
- "should_notify": false,
1125
- "inputs": [
1126
- {
1127
- "type": "email",
1128
- "showRegexInput": false,
1129
- "enum": [],
1130
- "regex": "\\S+@\\S+\\.\\S+",
1131
- "display": "email",
1132
- "required": true,
1133
- "key": "email"
1134
- }
1135
- ],
1136
- "available_assignees": [],
1137
- "_id": "602e900a2042255c03cadaf0",
1138
- "title": "service-test-satyen",
1139
- "description": "testing form from service",
1140
- "slug": "service-test-satyen",
1141
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
1142
- "application_id": "000000000000000000000001",
1143
- "created_on": {
1144
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
1145
- "platform": "web",
1146
- "meta": {
1147
- "browser": {
1148
- "name": "Chrome",
1149
- "version": "88.0.4324.150"
1150
- },
1151
- "os": {
1152
- "name": "macOS",
1153
- "version": "11.2.0"
1154
- },
1155
- "platform": {
1156
- "type": "desktop",
1157
- "vendor": "Apple"
1158
- },
1159
- "engine": {
1160
- "name": "Blink"
1161
- }
1162
- }
1163
- },
1164
- "created_by": "5f8147abbd1a0a870f61f1a6",
1165
- "createdAt": "2021-02-18T16:04:26.495Z",
1166
- "updatedAt": "2021-02-18T16:04:26.495Z",
1167
- "__v": 0
1168
- },
1169
- "key": "service-test-satyen",
1170
- "display": "service-test-satyen"
1171
- }
1172
- ]
1173
- }
1174
- }
1175
- }
1176
- ```
1177
- </details>
1178
-
1179
- </details>
1180
-
1181
-
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
-
1189
- ---
1190
-
1191
-
1192
- ### getTicket
1193
- Retreives ticket details of a company level ticket with ticket ID
1194
-
1195
-
1196
-
1197
- ```javascript
1198
- // Promise
1199
- const promise = client.lead.getTicket({ id : value });
1200
-
1201
- // Async/Await
1202
- const data = await client.lead.getTicket({ id : value });
1203
- ```
1204
-
1205
-
1206
-
1207
-
1208
-
1209
- | Argument | Type | Required | Description |
1210
- | --------- | ----- | -------- | ----------- |
1211
- | id | string | yes | Tiket ID of the ticket to be fetched |
1212
-
1213
-
1214
-
1215
- Retreives ticket details of a company level ticket
1216
-
1217
- *Returned Response:*
1218
-
1219
-
1220
-
1221
-
1222
- [Ticket](#Ticket)
1223
-
1224
- Success
1225
-
1226
-
1227
-
1228
-
1229
- <details>
1230
- <summary><i>&nbsp; Examples:</i></summary>
1231
-
1232
-
1233
- <details>
1234
- <summary><i>&nbsp; Default</i></summary>
1235
-
1236
- ```json
1237
- {
1238
- "value": {
1239
- "context": {
1240
- "company_id": "1"
1241
- },
1242
- "content": {
1243
- "title": "SOme title Response",
1244
- "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
1245
- "attachments": []
1246
- },
1247
- "status": {
1248
- "display": "In Progress",
1249
- "color": "#ffa951",
1250
- "key": "in_progress"
1251
- },
1252
- "priority": {
1253
- "display": "Medium",
1254
- "color": "#f37736",
1255
- "key": "medium"
1256
- },
1257
- "assigned_to": {
1258
- "agent_id": "5d1363adf599d850df93175e",
1259
- "gender": "male",
1260
- "accountType": "user",
1261
- "active": true,
1262
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1263
- "hasOldPasswordHash": false,
1264
- "_id": "5d1363adf599d850df93175e",
1265
- "phoneNumbers": [
1266
- {
1267
- "active": true,
1268
- "primary": true,
1269
- "verified": true,
1270
- "countryCode": 91,
1271
- "phone": "9999999999"
1272
- }
1273
- ],
1274
- "firstName": "Nikhil",
1275
- "lastName": "Manapure",
1276
- "emails": [
1277
- {
1278
- "active": true,
1279
- "primary": true,
1280
- "verified": true,
1281
- "email": "niktest@xyz.com"
1282
- }
1283
- ],
1284
- "username": "niktest_xyz_com_38425_20500281",
1285
- "createdAt": "2019-01-01T17:22:38.528Z",
1286
- "updatedAt": "2021-01-22T10:02:42.258Z",
1287
- "uid": "20500281",
1288
- "__v": 56
1289
- },
1290
- "tags": [
1291
- "some-title"
1292
- ],
1293
- "_id": "6012f38557751ee8fc162cf7",
1294
- "created_on": {
1295
- "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",
1296
- "platform": "web",
1297
- "meta": {
1298
- "browser": {
1299
- "name": "Chrome",
1300
- "version": "88.0.4324.96"
1301
- },
1302
- "os": {
1303
- "name": "macOS",
1304
- "version": "10.15.7",
1305
- "versionName": "Catalina"
1306
- },
1307
- "platform": {
1308
- "type": "desktop",
1309
- "vendor": "Apple"
1310
- },
1311
- "engine": {
1312
- "name": "Blink"
1313
- }
1314
- }
1315
- },
1316
- "source": "sales_channel",
1317
- "created_by": {
1318
- "id": "5d1363adf599d850df93175e",
1319
- "user": {
1320
- "gender": "male",
1321
- "accountType": "user",
1322
- "active": true,
1323
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1324
- "hasOldPasswordHash": false,
1325
- "_id": "5d1363adf599d850df93175e",
1326
- "phoneNumbers": [
1327
- {
1328
- "active": true,
1329
- "primary": true,
1330
- "verified": true,
1331
- "countryCode": 91,
1332
- "phone": "9999999999"
1333
- }
1334
- ],
1335
- "firstName": "Nikhil",
1336
- "lastName": "Manapure",
1337
- "emails": [
1338
- {
1339
- "active": true,
1340
- "primary": true,
1341
- "verified": true,
1342
- "email": "niktest@xyz.com"
1343
- }
1344
- ],
1345
- "username": "niktest_xyz_com_38425_20500281",
1346
- "createdAt": "2019-01-01T17:22:38.528Z",
1347
- "updatedAt": "2021-01-22T10:02:42.258Z",
1348
- "uid": "20500281",
1349
- "__v": 56
1350
- }
1351
- },
1352
- "response_id": "6012f38457751e0fb8162cf6",
1353
- "category": {
1354
- "form": {
1355
- "login_required": false,
1356
- "should_notify": false,
1357
- "inputs": [
1358
- {
1359
- "required": false,
1360
- "type": "text",
1361
- "enum": [],
1362
- "display": "Single lineeee",
1363
- "key": "single-lineeee",
1364
- "showRegexInput": false
1365
- },
1366
- {
1367
- "required": false,
1368
- "type": "email",
1369
- "enum": [],
1370
- "display": "Email",
1371
- "regex": "\\S+@\\S+\\.\\S+",
1372
- "key": "email",
1373
- "showRegexInput": true
1374
- },
1375
- {
1376
- "required": false,
1377
- "type": "text",
1378
- "enum": [],
1379
- "display": "dfsdf",
1380
- "key": "dfsdf",
1381
- "showRegexInput": false
1382
- }
1383
- ],
1384
- "available_assignees": [
1385
- "5b9b98150df588546aaea6d2",
1386
- "5c45d78395d7504f76c2cb37"
1387
- ],
1388
- "_id": "5fd72db3dc250f8decfc61b2",
1389
- "title": "SOme title",
1390
- "description": "SOme big description",
1391
- "slug": "some-title",
1392
- "application_id": "000000000000000000000003",
1393
- "created_on": {
1394
- "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",
1395
- "platform": "web",
1396
- "meta": {
1397
- "browser": {
1398
- "name": "Chrome",
1399
- "version": "87.0.4280.88"
1400
- },
1401
- "os": {
1402
- "name": "macOS",
1403
- "version": "10.15.6",
1404
- "versionName": "Catalina"
1405
- },
1406
- "platform": {
1407
- "type": "desktop",
1408
- "vendor": "Apple"
1409
- },
1410
- "engine": {
1411
- "name": "Blink"
1412
- }
1413
- }
1414
- },
1415
- "created_by": "5d1363adf599d850df93175e",
1416
- "createdAt": "2020-12-14T09:17:39.953Z",
1417
- "updatedAt": "2021-01-28T18:48:07.717Z",
1418
- "__v": 0
1419
- },
1420
- "key": "some-title",
1421
- "display": "SOme title"
1422
- },
1423
- "ticket_id": "43",
1424
- "createdAt": "2021-01-28T17:25:25.013Z",
1425
- "updatedAt": "2021-01-28T17:25:33.396Z",
1426
- "__v": 0,
1427
- "video_room_id": "6012f38557751ee8fc162cf7"
1428
- }
1429
- }
1430
- ```
1431
- </details>
1432
-
1433
- </details>
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
- ---
1444
-
1445
-
1446
- ### editTicket
1447
- Edits ticket details of a company level ticket
1448
-
1449
-
1450
-
1451
- ```javascript
1452
- // Promise
1453
- const promise = client.lead.editTicket({ id : value,
1454
- body : value });
1455
-
1456
- // Async/Await
1457
- const data = await client.lead.editTicket({ id : value,
1458
- body : value });
1459
- ```
1460
-
1461
-
1462
-
1463
-
1464
-
1465
- | Argument | Type | Required | Description |
1466
- | --------- | ----- | -------- | ----------- |
1467
- | id | string | yes | Ticket ID of ticket to be edited |
1468
- | body | [EditTicketPayload](#EditTicketPayload) | yes | Request body |
1469
-
1470
-
1471
- Edits ticket details of a company level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes
1472
-
1473
- *Returned Response:*
1474
-
1475
-
1476
-
1477
-
1478
- [Ticket](#Ticket)
1479
-
1480
- Success
1481
-
1482
-
1483
-
1484
-
1485
- <details>
1486
- <summary><i>&nbsp; Examples:</i></summary>
1487
-
1488
-
1489
- <details>
1490
- <summary><i>&nbsp; Default</i></summary>
1491
-
1492
- ```json
1493
- {
1494
- "value": {
1495
- "context": {
1496
- "company_id": "1"
1497
- },
1498
- "content": {
1499
- "title": "SOme title Response",
1500
- "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
1501
- "attachments": []
1502
- },
1503
- "status": {
1504
- "display": "In Progress",
1505
- "color": "#ffa951",
1506
- "key": "in_progress"
1507
- },
1508
- "priority": {
1509
- "display": "Medium",
1510
- "color": "#f37736",
1511
- "key": "medium"
1512
- },
1513
- "assigned_to": {
1514
- "agent_id": "5d1363adf599d850df93175e",
1515
- "gender": "male",
1516
- "accountType": "user",
1517
- "active": true,
1518
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1519
- "hasOldPasswordHash": false,
1520
- "_id": "5d1363adf599d850df93175e",
1521
- "phoneNumbers": [
1522
- {
1523
- "active": true,
1524
- "primary": true,
1525
- "verified": true,
1526
- "countryCode": 91,
1527
- "phone": "9999999999"
1528
- }
1529
- ],
1530
- "firstName": "Nikhil",
1531
- "lastName": "Manapure",
1532
- "emails": [
1533
- {
1534
- "active": true,
1535
- "primary": true,
1536
- "verified": true,
1537
- "email": "niktest@xyz.com"
1538
- }
1539
- ],
1540
- "username": "niktest_xyz_com_38425_20500281",
1541
- "createdAt": "2019-01-01T17:22:38.528Z",
1542
- "updatedAt": "2021-01-22T10:02:42.258Z",
1543
- "uid": "20500281",
1544
- "__v": 56
1545
- },
1546
- "tags": [
1547
- "some-title"
1548
- ],
1549
- "_id": "6012f38557751ee8fc162cf7",
1550
- "created_on": {
1551
- "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",
1552
- "platform": "web",
1553
- "meta": {
1554
- "browser": {
1555
- "name": "Chrome",
1556
- "version": "88.0.4324.96"
1557
- },
1558
- "os": {
1559
- "name": "macOS",
1560
- "version": "10.15.7",
1561
- "versionName": "Catalina"
1562
- },
1563
- "platform": {
1564
- "type": "desktop",
1565
- "vendor": "Apple"
1566
- },
1567
- "engine": {
1568
- "name": "Blink"
1569
- }
1570
- }
1571
- },
1572
- "source": "sales_channel",
1573
- "created_by": {
1574
- "id": "5d1363adf599d850df93175e",
1575
- "user": {
1576
- "gender": "male",
1577
- "accountType": "user",
1578
- "active": true,
1579
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1580
- "hasOldPasswordHash": false,
1581
- "_id": "5d1363adf599d850df93175e",
1582
- "phoneNumbers": [
1583
- {
1584
- "active": true,
1585
- "primary": true,
1586
- "verified": true,
1587
- "countryCode": 91,
1588
- "phone": "9999999999"
1589
- }
1590
- ],
1591
- "firstName": "Nikhil",
1592
- "lastName": "Manapure",
1593
- "emails": [
1594
- {
1595
- "active": true,
1596
- "primary": true,
1597
- "verified": true,
1598
- "email": "niktest@xyz.com"
1599
- }
1600
- ],
1601
- "username": "niktest_xyz_com_38425_20500281",
1602
- "createdAt": "2019-01-01T17:22:38.528Z",
1603
- "updatedAt": "2021-01-22T10:02:42.258Z",
1604
- "uid": "20500281",
1605
- "__v": 56
1606
- }
1607
- },
1608
- "response_id": "6012f38457751e0fb8162cf6",
1609
- "category": {
1610
- "form": {
1611
- "login_required": false,
1612
- "should_notify": false,
1613
- "inputs": [
1614
- {
1615
- "required": false,
1616
- "type": "text",
1617
- "enum": [],
1618
- "display": "Single lineeee",
1619
- "key": "single-lineeee",
1620
- "showRegexInput": false
1621
- },
1622
- {
1623
- "required": false,
1624
- "type": "email",
1625
- "enum": [],
1626
- "display": "Email",
1627
- "regex": "\\S+@\\S+\\.\\S+",
1628
- "key": "email",
1629
- "showRegexInput": true
1630
- },
1631
- {
1632
- "required": false,
1633
- "type": "text",
1634
- "enum": [],
1635
- "display": "dfsdf",
1636
- "key": "dfsdf",
1637
- "showRegexInput": false
1638
- }
1639
- ],
1640
- "available_assignees": [
1641
- "5b9b98150df588546aaea6d2",
1642
- "5c45d78395d7504f76c2cb37"
1643
- ],
1644
- "_id": "5fd72db3dc250f8decfc61b2",
1645
- "title": "SOme title",
1646
- "description": "SOme big description",
1647
- "slug": "some-title",
1648
- "application_id": "000000000000000000000003",
1649
- "created_on": {
1650
- "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",
1651
- "platform": "web",
1652
- "meta": {
1653
- "browser": {
1654
- "name": "Chrome",
1655
- "version": "87.0.4280.88"
1656
- },
1657
- "os": {
1658
- "name": "macOS",
1659
- "version": "10.15.6",
1660
- "versionName": "Catalina"
1661
- },
1662
- "platform": {
1663
- "type": "desktop",
1664
- "vendor": "Apple"
1665
- },
1666
- "engine": {
1667
- "name": "Blink"
1668
- }
1669
- }
1670
- },
1671
- "created_by": "5d1363adf599d850df93175e",
1672
- "createdAt": "2020-12-14T09:17:39.953Z",
1673
- "updatedAt": "2021-01-28T18:48:07.717Z",
1674
- "__v": 0
1675
- },
1676
- "key": "some-title",
1677
- "display": "SOme title"
1678
- },
1679
- "ticket_id": "43",
1680
- "createdAt": "2021-01-28T17:25:25.013Z",
1681
- "updatedAt": "2021-01-28T17:25:33.396Z",
1682
- "__v": 0,
1683
- "video_room_id": "6012f38557751ee8fc162cf7"
1684
- }
1685
- }
1686
- ```
1687
- </details>
1688
-
1689
- </details>
1690
-
1691
-
1692
-
1693
-
1694
-
1695
-
1696
-
1697
-
1698
-
1699
- ---
1700
-
1701
-
1702
- ### getTicket
1703
- Retreives ticket details of a application level ticket
1704
-
1705
-
1706
-
1707
- ```javascript
1708
- // Promise
1709
- const promise = client.application("<APPLICATION_ID>").lead.getTicket({ id : value });
1710
-
1711
- // Async/Await
1712
- const data = await client.application("<APPLICATION_ID>").lead.getTicket({ id : value });
1713
- ```
1714
-
1715
-
1716
-
1717
-
1718
-
1719
- | Argument | Type | Required | Description |
1720
- | --------- | ----- | -------- | ----------- |
1721
- | id | string | yes | Tiket ID of the ticket to be fetched |
1722
-
1723
-
1724
-
1725
- Retreives ticket details of a application level ticket with ticket ID
1726
-
1727
- *Returned Response:*
1728
-
1729
-
1730
-
1731
-
1732
- [Ticket](#Ticket)
1733
-
1734
- Success
1735
-
1736
-
1737
-
1738
-
1739
- <details>
1740
- <summary><i>&nbsp; Examples:</i></summary>
1741
-
1742
-
1743
- <details>
1744
- <summary><i>&nbsp; Default</i></summary>
1745
-
1746
- ```json
1747
- {
1748
- "value": {
1749
- "context": {
1750
- "application_id": "000000000000000000000003",
1751
- "company_id": "884"
1752
- },
1753
- "content": {
1754
- "title": "SOme title Response",
1755
- "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
1756
- "attachments": []
1757
- },
1758
- "status": {
1759
- "display": "In Progress",
1760
- "color": "#ffa951",
1761
- "key": "in_progress"
1762
- },
1763
- "priority": {
1764
- "display": "Medium",
1765
- "color": "#f37736",
1766
- "key": "medium"
1767
- },
1768
- "assigned_to": {
1769
- "agent_id": "5d1363adf599d850df93175e",
1770
- "gender": "male",
1771
- "accountType": "user",
1772
- "active": true,
1773
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1774
- "hasOldPasswordHash": false,
1775
- "_id": "5d1363adf599d850df93175e",
1776
- "phoneNumbers": [
1777
- {
1778
- "active": true,
1779
- "primary": true,
1780
- "verified": true,
1781
- "countryCode": 91,
1782
- "phone": "9999999999"
1783
- }
1784
- ],
1785
- "firstName": "Nikhil",
1786
- "lastName": "Manapure",
1787
- "emails": [
1788
- {
1789
- "active": true,
1790
- "primary": true,
1791
- "verified": true,
1792
- "email": "niktest@xyz.com"
1793
- }
1794
- ],
1795
- "username": "niktest_xyz_com_38425_20500281",
1796
- "createdAt": "2019-01-01T17:22:38.528Z",
1797
- "updatedAt": "2021-01-22T10:02:42.258Z",
1798
- "uid": "20500281",
1799
- "__v": 56
1800
- },
1801
- "tags": [
1802
- "some-title"
1803
- ],
1804
- "_id": "6012f38557751ee8fc162cf7",
1805
- "created_on": {
1806
- "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",
1807
- "platform": "web",
1808
- "meta": {
1809
- "browser": {
1810
- "name": "Chrome",
1811
- "version": "88.0.4324.96"
1812
- },
1813
- "os": {
1814
- "name": "macOS",
1815
- "version": "10.15.7",
1816
- "versionName": "Catalina"
1817
- },
1818
- "platform": {
1819
- "type": "desktop",
1820
- "vendor": "Apple"
1821
- },
1822
- "engine": {
1823
- "name": "Blink"
1824
- }
1825
- }
1826
- },
1827
- "source": "sales_channel",
1828
- "created_by": {
1829
- "id": "5d1363adf599d850df93175e",
1830
- "user": {
1831
- "gender": "male",
1832
- "accountType": "user",
1833
- "active": true,
1834
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
1835
- "hasOldPasswordHash": false,
1836
- "_id": "5d1363adf599d850df93175e",
1837
- "phoneNumbers": [
1838
- {
1839
- "active": true,
1840
- "primary": true,
1841
- "verified": true,
1842
- "countryCode": 91,
1843
- "phone": "9999999999"
1844
- }
1845
- ],
1846
- "firstName": "Nikhil",
1847
- "lastName": "Manapure",
1848
- "emails": [
1849
- {
1850
- "active": true,
1851
- "primary": true,
1852
- "verified": true,
1853
- "email": "niktest@xyz.com"
1854
- }
1855
- ],
1856
- "username": "niktest_xyz_com_38425_20500281",
1857
- "createdAt": "2019-01-01T17:22:38.528Z",
1858
- "updatedAt": "2021-01-22T10:02:42.258Z",
1859
- "uid": "20500281",
1860
- "__v": 56
1861
- }
1862
- },
1863
- "response_id": "6012f38457751e0fb8162cf6",
1864
- "category": {
1865
- "form": {
1866
- "login_required": false,
1867
- "should_notify": false,
1868
- "inputs": [
1869
- {
1870
- "required": false,
1871
- "type": "text",
1872
- "enum": [],
1873
- "display": "Single lineeee",
1874
- "key": "single-lineeee",
1875
- "showRegexInput": false
1876
- },
1877
- {
1878
- "required": false,
1879
- "type": "email",
1880
- "enum": [],
1881
- "display": "Email",
1882
- "regex": "\\S+@\\S+\\.\\S+",
1883
- "key": "email",
1884
- "showRegexInput": true
1885
- },
1886
- {
1887
- "required": false,
1888
- "type": "text",
1889
- "enum": [],
1890
- "display": "dfsdf",
1891
- "key": "dfsdf",
1892
- "showRegexInput": false
1893
- }
1894
- ],
1895
- "available_assignees": [
1896
- "5b9b98150df588546aaea6d2",
1897
- "5c45d78395d7504f76c2cb37"
1898
- ],
1899
- "_id": "5fd72db3dc250f8decfc61b2",
1900
- "title": "SOme title",
1901
- "description": "SOme big description",
1902
- "slug": "some-title",
1903
- "application_id": "000000000000000000000003",
1904
- "created_on": {
1905
- "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",
1906
- "platform": "web",
1907
- "meta": {
1908
- "browser": {
1909
- "name": "Chrome",
1910
- "version": "87.0.4280.88"
1911
- },
1912
- "os": {
1913
- "name": "macOS",
1914
- "version": "10.15.6",
1915
- "versionName": "Catalina"
1916
- },
1917
- "platform": {
1918
- "type": "desktop",
1919
- "vendor": "Apple"
1920
- },
1921
- "engine": {
1922
- "name": "Blink"
1923
- }
1924
- }
1925
- },
1926
- "created_by": "5d1363adf599d850df93175e",
1927
- "createdAt": "2020-12-14T09:17:39.953Z",
1928
- "updatedAt": "2021-01-28T18:48:07.717Z",
1929
- "__v": 0
1930
- },
1931
- "key": "some-title",
1932
- "display": "SOme title"
1933
- },
1934
- "ticket_id": "43",
1935
- "createdAt": "2021-01-28T17:25:25.013Z",
1936
- "updatedAt": "2021-01-28T17:25:33.396Z",
1937
- "__v": 0,
1938
- "video_room_id": "6012f38557751ee8fc162cf7"
1939
- }
1940
- }
1941
- ```
1942
- </details>
1943
-
1944
- </details>
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
- ---
1955
-
1956
-
1957
- ### editTicket
1958
- Edits ticket details of a application level ticket
1959
-
1960
-
1961
-
1962
- ```javascript
1963
- // Promise
1964
- const promise = client.application("<APPLICATION_ID>").lead.editTicket({ id : value,
1965
- body : value });
1966
-
1967
- // Async/Await
1968
- const data = await client.application("<APPLICATION_ID>").lead.editTicket({ id : value,
1969
- body : value });
1970
- ```
1971
-
1972
-
1973
-
1974
-
1975
-
1976
- | Argument | Type | Required | Description |
1977
- | --------- | ----- | -------- | ----------- |
1978
- | id | string | yes | Ticket ID of ticket to be edited |
1979
- | body | [EditTicketPayload](#EditTicketPayload) | yes | Request body |
1980
-
1981
-
1982
- Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes
1983
-
1984
- *Returned Response:*
1985
-
1986
-
1987
-
1988
-
1989
- [Ticket](#Ticket)
1990
-
1991
- Success
1992
-
1993
-
1994
-
1995
-
1996
- <details>
1997
- <summary><i>&nbsp; Examples:</i></summary>
1998
-
1999
-
2000
- <details>
2001
- <summary><i>&nbsp; Default</i></summary>
2002
-
2003
- ```json
2004
- {
2005
- "value": {
2006
- "context": {
2007
- "application_id": "000000000000000000000003",
2008
- "company_id": "884"
2009
- },
2010
- "content": {
2011
- "title": "SOme title Response",
2012
- "description": "<b>Single lineeee</b>: asdf<br><b>Email</b>: asdf@asdf.com<br><b>dfsdf</b>: asdf<br>",
2013
- "attachments": []
2014
- },
2015
- "status": {
2016
- "display": "In Progress",
2017
- "color": "#ffa951",
2018
- "key": "in_progress"
2019
- },
2020
- "priority": {
2021
- "display": "Medium",
2022
- "color": "#f37736",
2023
- "key": "medium"
2024
- },
2025
- "assigned_to": {
2026
- "agent_id": "5d1363adf599d850df93175e",
2027
- "gender": "male",
2028
- "accountType": "user",
2029
- "active": true,
2030
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
2031
- "hasOldPasswordHash": false,
2032
- "_id": "5d1363adf599d850df93175e",
2033
- "phoneNumbers": [
2034
- {
2035
- "active": true,
2036
- "primary": true,
2037
- "verified": true,
2038
- "countryCode": 91,
2039
- "phone": "9999999999"
2040
- }
2041
- ],
2042
- "firstName": "Nikhil",
2043
- "lastName": "Manapure",
2044
- "emails": [
2045
- {
2046
- "active": true,
2047
- "primary": true,
2048
- "verified": true,
2049
- "email": "niktest@xyz.com"
2050
- }
2051
- ],
2052
- "username": "niktest_xyz_com_38425_20500281",
2053
- "createdAt": "2019-01-01T17:22:38.528Z",
2054
- "updatedAt": "2021-01-22T10:02:42.258Z",
2055
- "uid": "20500281",
2056
- "__v": 56
2057
- },
2058
- "tags": [
2059
- "some-title"
2060
- ],
2061
- "_id": "6012f38557751ee8fc162cf7",
2062
- "created_on": {
2063
- "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",
2064
- "platform": "web",
2065
- "meta": {
2066
- "browser": {
2067
- "name": "Chrome",
2068
- "version": "88.0.4324.96"
2069
- },
2070
- "os": {
2071
- "name": "macOS",
2072
- "version": "10.15.7",
2073
- "versionName": "Catalina"
2074
- },
2075
- "platform": {
2076
- "type": "desktop",
2077
- "vendor": "Apple"
2078
- },
2079
- "engine": {
2080
- "name": "Blink"
2081
- }
2082
- }
2083
- },
2084
- "source": "sales_channel",
2085
- "created_by": {
2086
- "id": "5d1363adf599d850df93175e",
2087
- "user": {
2088
- "gender": "male",
2089
- "accountType": "user",
2090
- "active": true,
2091
- "profilePicUrl": "https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=2136700473091190&height=400&width=400&ext=1554542761&hash=AeS6cuWIdjDdJJ-b",
2092
- "hasOldPasswordHash": false,
2093
- "_id": "5d1363adf599d850df93175e",
2094
- "phoneNumbers": [
2095
- {
2096
- "active": true,
2097
- "primary": true,
2098
- "verified": true,
2099
- "countryCode": 91,
2100
- "phone": "9999999999"
2101
- }
2102
- ],
2103
- "firstName": "Nikhil",
2104
- "lastName": "Manapure",
2105
- "emails": [
2106
- {
2107
- "active": true,
2108
- "primary": true,
2109
- "verified": true,
2110
- "email": "niktest@xyz.com"
2111
- }
2112
- ],
2113
- "username": "niktest_xyz_com_38425_20500281",
2114
- "createdAt": "2019-01-01T17:22:38.528Z",
2115
- "updatedAt": "2021-01-22T10:02:42.258Z",
2116
- "uid": "20500281",
2117
- "__v": 56
2118
- }
2119
- },
2120
- "response_id": "6012f38457751e0fb8162cf6",
2121
- "category": {
2122
- "form": {
2123
- "login_required": false,
2124
- "should_notify": false,
2125
- "inputs": [
2126
- {
2127
- "required": false,
2128
- "type": "text",
2129
- "enum": [],
2130
- "display": "Single lineeee",
2131
- "key": "single-lineeee",
2132
- "showRegexInput": false
2133
- },
2134
- {
2135
- "required": false,
2136
- "type": "email",
2137
- "enum": [],
2138
- "display": "Email",
2139
- "regex": "\\S+@\\S+\\.\\S+",
2140
- "key": "email",
2141
- "showRegexInput": true
2142
- },
2143
- {
2144
- "required": false,
2145
- "type": "text",
2146
- "enum": [],
2147
- "display": "dfsdf",
2148
- "key": "dfsdf",
2149
- "showRegexInput": false
2150
- }
2151
- ],
2152
- "available_assignees": [
2153
- "5b9b98150df588546aaea6d2",
2154
- "5c45d78395d7504f76c2cb37"
2155
- ],
2156
- "_id": "5fd72db3dc250f8decfc61b2",
2157
- "title": "SOme title",
2158
- "description": "SOme big description",
2159
- "slug": "some-title",
2160
- "application_id": "000000000000000000000003",
2161
- "created_on": {
2162
- "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",
2163
- "platform": "web",
2164
- "meta": {
2165
- "browser": {
2166
- "name": "Chrome",
2167
- "version": "87.0.4280.88"
2168
- },
2169
- "os": {
2170
- "name": "macOS",
2171
- "version": "10.15.6",
2172
- "versionName": "Catalina"
2173
- },
2174
- "platform": {
2175
- "type": "desktop",
2176
- "vendor": "Apple"
2177
- },
2178
- "engine": {
2179
- "name": "Blink"
2180
- }
2181
- }
2182
- },
2183
- "created_by": "5d1363adf599d850df93175e",
2184
- "createdAt": "2020-12-14T09:17:39.953Z",
2185
- "updatedAt": "2021-01-28T18:48:07.717Z",
2186
- "__v": 0
2187
- },
2188
- "key": "some-title",
2189
- "display": "SOme title"
2190
- },
2191
- "ticket_id": "43",
2192
- "createdAt": "2021-01-28T17:25:25.013Z",
2193
- "updatedAt": "2021-01-28T17:25:33.396Z",
2194
- "__v": 0,
2195
- "video_room_id": "6012f38557751ee8fc162cf7"
2196
- }
2197
- }
2198
- ```
2199
- </details>
2200
-
2201
- </details>
2202
-
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
- ---
2212
-
2213
-
2214
- ### createHistory
2215
- Create history for specific company level ticket
2216
-
2217
-
2218
-
2219
- ```javascript
2220
- // Promise
2221
- const promise = client.lead.createHistory({ id : value,
2222
- body : value });
2223
-
2224
- // Async/Await
2225
- const data = await client.lead.createHistory({ id : value,
2226
- body : value });
2227
- ```
2228
-
2229
-
2230
-
2231
-
2232
-
2233
- | Argument | Type | Required | Description |
2234
- | --------- | ----- | -------- | ----------- |
2235
- | id | string | yes | Ticket ID for which history is created |
2236
- | body | [TicketHistoryPayload](#TicketHistoryPayload) | yes | Request body |
2237
-
2238
-
2239
- Create history for specific company level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
2240
-
2241
- *Returned Response:*
2242
-
2243
-
2244
-
2245
-
2246
- [TicketHistory](#TicketHistory)
2247
-
2248
- Success
2249
-
2250
-
2251
-
2252
-
2253
- <details>
2254
- <summary><i>&nbsp; Examples:</i></summary>
2255
-
2256
-
2257
- <details>
2258
- <summary><i>&nbsp; Default</i></summary>
2259
-
2260
- ```json
2261
- {
2262
- "value": {
2263
- "_id": "601a9d52c26687d086c499ef",
2264
- "ticket_id": "43",
2265
- "type": "comment",
2266
- "value": {
2267
- "text": "d",
2268
- "media": []
2269
- },
2270
- "created_on": {
2271
- "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",
2272
- "platform": "web",
2273
- "meta": {
2274
- "browser": {
2275
- "name": "Chrome",
2276
- "version": "88.0.4324.96"
2277
- },
2278
- "os": {
2279
- "name": "macOS",
2280
- "version": "10.15.7",
2281
- "versionName": "Catalina"
2282
- },
2283
- "platform": {
2284
- "type": "desktop",
2285
- "vendor": "Apple"
2286
- },
2287
- "engine": {
2288
- "name": "Blink"
2289
- }
2290
- }
2291
- },
2292
- "created_by": "5d1363adf599d850df93175e",
2293
- "createdAt": "2021-02-03T12:55:46.808Z",
2294
- "updatedAt": "2021-02-03T12:55:46.808Z",
2295
- "__v": 0
2296
- }
2297
- }
2298
- ```
2299
- </details>
2300
-
2301
- </details>
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
-
2309
-
2310
-
2311
- ---
2312
-
2313
-
2314
- ### getTicketHistory
2315
- Gets history list for specific company level ticket
2316
-
2317
-
2318
-
2319
- ```javascript
2320
- // Promise
2321
- const promise = client.lead.getTicketHistory({ id : value });
2322
-
2323
- // Async/Await
2324
- const data = await client.lead.getTicketHistory({ id : value });
2325
- ```
2326
-
2327
-
2328
-
2329
-
2330
-
2331
- | Argument | Type | Required | Description |
2332
- | --------- | ----- | -------- | ----------- |
2333
- | id | string | yes | Ticket ID for which history is to be fetched |
2334
-
2335
-
2336
-
2337
- Gets history list for specific company level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
2338
-
2339
- *Returned Response:*
2340
-
2341
-
2342
-
2343
-
2344
- [TicketHistoryList](#TicketHistoryList)
2345
-
2346
- Success
2347
-
2348
-
2349
-
2350
-
2351
- <details>
2352
- <summary><i>&nbsp; Examples:</i></summary>
2353
-
2354
-
2355
- <details>
2356
- <summary><i>&nbsp; Default</i></summary>
2357
-
2358
- ```json
2359
- {
2360
- "value": {
2361
- "docs": [
2362
- {
2363
- "_id": "602e5384204225eed5cadae7",
2364
- "ticket_id": "41",
2365
- "type": "comment",
2366
- "value": {
2367
- "text": "hello service",
2368
- "media": []
2369
- },
2370
- "created_on": {
2371
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
2372
- "platform": "web",
2373
- "meta": {
2374
- "browser": {
2375
- "name": "Chrome",
2376
- "version": "88.0.4324.150"
2377
- },
2378
- "os": {
2379
- "name": "macOS",
2380
- "version": "11.2.0"
2381
- },
2382
- "platform": {
2383
- "type": "desktop",
2384
- "vendor": "Apple"
2385
- },
2386
- "engine": {
2387
- "name": "Blink"
2388
- }
2389
- }
2390
- },
2391
- "created_by": {
2392
- "gender": "male",
2393
- "accountType": "user",
2394
- "active": true,
2395
- "profilePicUrl": "https://hdn-1.fynd.com/company/884/applications/000000000000000000000001/theme/pictures/free/original/default-profile_nxhzui.png",
2396
- "hasOldPasswordHash": false,
2397
- "_id": "5f8147abbd1a0a870f61f1a6",
2398
- "phoneNumbers": [
2399
- {
2400
- "active": true,
2401
- "primary": true,
2402
- "verified": true,
2403
- "phone": "9999999999",
2404
- "countryCode": 91
2405
- }
2406
- ],
2407
- "firstName": "Satyen",
2408
- "lastName": "Maurya",
2409
- "emails": [
2410
- {
2411
- "active": true,
2412
- "primary": true,
2413
- "verified": true,
2414
- "email": "sattest@xyz.com"
2415
- }
2416
- ],
2417
- "username": "sat5_xyz_com_11118",
2418
- "createdAt": "2020-10-10T05:33:31.119Z",
2419
- "updatedAt": "2020-10-10T05:33:31.119Z",
2420
- "uid": "5678",
2421
- "__v": 0
2422
- },
2423
- "createdAt": "2021-02-18T11:46:12.522Z",
2424
- "updatedAt": "2021-02-18T11:46:12.522Z",
2425
- "__v": 0,
2426
- "id": "602e5384204225eed5cadae7"
2427
- },
2428
- {
2429
- "_id": "60372aa78a046d4d79c46e15",
2430
- "ticket_id": "41",
2431
- "type": "diff",
2432
- "value": {
2433
- "status": [
2434
- "pending",
2435
- "in_progress"
2436
- ]
2437
- },
2438
- "created_by": {
2439
- "gender": "male",
2440
- "accountType": "user",
2441
- "active": true,
2442
- "profilePicUrl": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2443
- "hasOldPasswordHash": false,
2444
- "_id": "5e79e721768c6bf54b783146",
2445
- "emails": [
2446
- {
2447
- "active": true,
2448
- "primary": true,
2449
- "verified": true,
2450
- "email": "niktest@xyz.com"
2451
- },
2452
- {
2453
- "active": true,
2454
- "primary": false,
2455
- "verified": true,
2456
- "email": "xyz@xyz.com"
2457
- },
2458
- {
2459
- "active": true,
2460
- "primary": false,
2461
- "verified": true,
2462
- "email": "xyz@xyz.com"
2463
- },
2464
- {
2465
- "active": true,
2466
- "primary": false,
2467
- "verified": true,
2468
- "email": "xyz@xyz.com"
2469
- }
2470
- ],
2471
- "phoneNumbers": [
2472
- {
2473
- "active": true,
2474
- "primary": true,
2475
- "verified": true,
2476
- "countryCode": 91,
2477
- "phone": "9999999999"
2478
- }
2479
- ],
2480
- "firstName": "Nikhil",
2481
- "lastName": "Manapure",
2482
- "username": "xyz_xyz_com",
2483
- "createdAt": "2020-03-24T10:55:29.298Z",
2484
- "updatedAt": "2020-05-12T07:46:41.816Z",
2485
- "uid": "5567",
2486
- "__v": 2
2487
- },
2488
- "createdAt": "2021-02-25T04:42:15.225Z",
2489
- "updatedAt": "2021-02-25T04:42:15.225Z",
2490
- "__v": 0,
2491
- "id": "60372aa78a046d4d79c46e15"
2492
- }
2493
- ],
2494
- "total": 2,
2495
- "limit": 100,
2496
- "page": 1,
2497
- "pages": 1
2498
- }
2499
- }
2500
- ```
2501
- </details>
2502
-
2503
- </details>
2504
-
2505
-
2506
-
2507
-
2508
-
2509
-
2510
-
2511
-
2512
-
2513
- ---
2514
-
2515
-
2516
- ### getFeedbacks
2517
- Gets a list of feedback submitted against that ticket
2518
-
2519
-
2520
-
2521
- ```javascript
2522
- // Promise
2523
- const promise = client.lead.getFeedbacks({ id : value });
2524
-
2525
- // Async/Await
2526
- const data = await client.lead.getFeedbacks({ id : value });
2527
- ```
2528
-
2529
-
2530
-
2531
-
2532
-
2533
- | Argument | Type | Required | Description |
2534
- | --------- | ----- | -------- | ----------- |
2535
- | id | string | yes | Ticket ID for which feedbacks are to be fetched |
2536
-
2537
-
2538
-
2539
- Gets a list of feedback submitted against that ticket
2540
-
2541
- *Returned Response:*
2542
-
2543
-
2544
-
2545
-
2546
- [TicketFeedbackList](#TicketFeedbackList)
2547
-
2548
- Success
2549
-
2550
-
2551
-
2552
-
2553
- <details>
2554
- <summary><i>&nbsp; Examples:</i></summary>
2555
-
2556
-
2557
- <details>
2558
- <summary><i>&nbsp; Default</i></summary>
2559
-
2560
- ```json
2561
- {
2562
- "value": {
2563
- "items": [
2564
- {
2565
- "_id": "60c255bf00ecabfad19e9601",
2566
- "company_id": "1",
2567
- "ticket_id": "6095812876d2bf17143cb3b3",
2568
- "user": {
2569
- "_id": "5f8147abbd1a0a870f61f1a6",
2570
- "authenticated": true,
2571
- "user_id": "5f8147abbd1a0a870f61f1a6"
2572
- },
2573
- "category": "customers",
2574
- "response": {
2575
- "audio": 2,
2576
- "video": 6
2577
- },
2578
- "createdAt": "2021-06-10T18:11:11.349Z",
2579
- "updatedAt": "2021-06-10T18:11:11.349Z",
2580
- "__v": 0
2581
- }
2582
- ]
2583
- }
2584
- }
2585
- ```
2586
- </details>
2587
-
2588
- </details>
2589
-
2590
-
2591
-
2592
-
2593
-
2594
-
2595
-
2596
-
2597
-
2598
- ---
2599
-
2600
-
2601
- ### submitFeedback
2602
- Submit a response for feeback form against that ticket
2603
-
2604
-
2605
-
2606
- ```javascript
2607
- // Promise
2608
- const promise = client.lead.submitFeedback({ id : value,
2609
- body : value });
2610
-
2611
- // Async/Await
2612
- const data = await client.lead.submitFeedback({ id : value,
2613
- body : value });
2614
- ```
2615
-
2616
-
2617
-
2618
-
2619
-
2620
- | Argument | Type | Required | Description |
2621
- | --------- | ----- | -------- | ----------- |
2622
- | id | string | yes | Ticket ID for which feedback is to be submitted |
2623
- | body | [TicketFeedbackPayload](#TicketFeedbackPayload) | yes | Request body |
2624
-
2625
-
2626
- Submit a response for feeback form against that ticket
2627
-
2628
- *Returned Response:*
2629
-
2630
-
2631
-
2632
-
2633
- [TicketFeedback](#TicketFeedback)
2634
-
2635
- Success
2636
-
2637
-
2638
-
2639
-
2640
- <details>
2641
- <summary><i>&nbsp; Examples:</i></summary>
2642
-
2643
-
2644
- <details>
2645
- <summary><i>&nbsp; Default</i></summary>
2646
-
2647
- ```json
2648
- {
2649
- "value": {
2650
- "_id": "60c255bf00ecabfad19e9601",
2651
- "company_id": "1",
2652
- "ticket_id": "6095812876d2bf17143cb3b3",
2653
- "user": {
2654
- "_id": "5f8147abbd1a0a870f61f1a6",
2655
- "authenticated": true,
2656
- "user_id": "5f8147abbd1a0a870f61f1a6"
2657
- },
2658
- "category": "customers",
2659
- "response": {
2660
- "audio": 2,
2661
- "video": 6
2662
- },
2663
- "createdAt": "2021-06-10T18:11:11.349Z",
2664
- "updatedAt": "2021-06-10T18:11:11.349Z",
2665
- "__v": 0
2666
- }
2667
- }
2668
- ```
2669
- </details>
2670
-
2671
- </details>
2672
-
2673
-
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
-
2681
- ---
2682
-
2683
-
2684
- ### createHistory
2685
- Create history for specific application level ticket
2686
-
2687
-
2688
-
2689
- ```javascript
2690
- // Promise
2691
- const promise = client.application("<APPLICATION_ID>").lead.createHistory({ id : value,
2692
- body : value });
2693
-
2694
- // Async/Await
2695
- const data = await client.application("<APPLICATION_ID>").lead.createHistory({ id : value,
2696
- body : value });
2697
- ```
2698
-
2699
-
2700
-
2701
-
2702
-
2703
- | Argument | Type | Required | Description |
2704
- | --------- | ----- | -------- | ----------- |
2705
- | id | string | yes | Ticket ID for which history is created |
2706
- | body | [TicketHistoryPayload](#TicketHistoryPayload) | yes | Request body |
2707
-
2708
-
2709
- Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
2710
-
2711
- *Returned Response:*
2712
-
2713
-
2714
-
2715
-
2716
- [TicketHistory](#TicketHistory)
2717
-
2718
- Success
2719
-
2720
-
2721
-
2722
-
2723
- <details>
2724
- <summary><i>&nbsp; Examples:</i></summary>
2725
-
2726
-
2727
- <details>
2728
- <summary><i>&nbsp; Default</i></summary>
2729
-
2730
- ```json
2731
- {
2732
- "value": {
2733
- "_id": "601a9d52c26687d086c499ef",
2734
- "ticket_id": "41",
2735
- "type": "comment",
2736
- "value": {
2737
- "text": "d",
2738
- "media": []
2739
- },
2740
- "created_on": {
2741
- "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",
2742
- "platform": "web",
2743
- "meta": {
2744
- "browser": {
2745
- "name": "Chrome",
2746
- "version": "88.0.4324.96"
2747
- },
2748
- "os": {
2749
- "name": "macOS",
2750
- "version": "10.15.7",
2751
- "versionName": "Catalina"
2752
- },
2753
- "platform": {
2754
- "type": "desktop",
2755
- "vendor": "Apple"
2756
- },
2757
- "engine": {
2758
- "name": "Blink"
2759
- }
2760
- }
2761
- },
2762
- "created_by": "5d1363adf599d850df93175e",
2763
- "createdAt": "2021-02-03T12:55:46.808Z",
2764
- "updatedAt": "2021-02-03T12:55:46.808Z",
2765
- "__v": 0
2766
- }
2767
- }
2768
- ```
2769
- </details>
2770
-
2771
- </details>
2772
-
2773
-
2774
-
2775
-
2776
-
2777
-
2778
-
2779
-
2780
-
2781
- ---
2782
-
2783
-
2784
- ### getTicketHistory
2785
- Gets history list for specific application level ticket
2786
-
2787
-
2788
-
2789
- ```javascript
2790
- // Promise
2791
- const promise = client.application("<APPLICATION_ID>").lead.getTicketHistory({ id : value });
2792
-
2793
- // Async/Await
2794
- const data = await client.application("<APPLICATION_ID>").lead.getTicketHistory({ id : value });
2795
- ```
2796
-
2797
-
2798
-
2799
-
2800
-
2801
- | Argument | Type | Required | Description |
2802
- | --------- | ----- | -------- | ----------- |
2803
- | id | string | yes | Ticket ID for which history is to be fetched |
2804
-
2805
-
2806
-
2807
- Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
2808
-
2809
- *Returned Response:*
2810
-
2811
-
2812
-
2813
-
2814
- [TicketHistoryList](#TicketHistoryList)
2815
-
2816
- Success
2817
-
2818
-
2819
-
2820
-
2821
- <details>
2822
- <summary><i>&nbsp; Examples:</i></summary>
2823
-
2824
-
2825
- <details>
2826
- <summary><i>&nbsp; Default</i></summary>
2827
-
2828
- ```json
2829
- {
2830
- "value": {
2831
- "docs": [
2832
- {
2833
- "_id": "602e5384204225eed5cadae7",
2834
- "ticket_id": "41",
2835
- "type": "comment",
2836
- "value": {
2837
- "text": "hello service",
2838
- "media": []
2839
- },
2840
- "created_on": {
2841
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
2842
- "platform": "web",
2843
- "meta": {
2844
- "browser": {
2845
- "name": "Chrome",
2846
- "version": "88.0.4324.150"
2847
- },
2848
- "os": {
2849
- "name": "macOS",
2850
- "version": "11.2.0"
2851
- },
2852
- "platform": {
2853
- "type": "desktop",
2854
- "vendor": "Apple"
2855
- },
2856
- "engine": {
2857
- "name": "Blink"
2858
- }
2859
- }
2860
- },
2861
- "created_by": {
2862
- "gender": "male",
2863
- "accountType": "user",
2864
- "active": true,
2865
- "profilePicUrl": "https://hdn-1.fynd.com/company/884/applications/000000000000000000000001/theme/pictures/free/original/default-profile_nxhzui.png",
2866
- "hasOldPasswordHash": false,
2867
- "_id": "5f8147abbd1a0a870f61f1a6",
2868
- "phoneNumbers": [
2869
- {
2870
- "active": true,
2871
- "primary": true,
2872
- "verified": true,
2873
- "phone": "9999999999",
2874
- "countryCode": 91
2875
- }
2876
- ],
2877
- "firstName": "Satyen",
2878
- "lastName": "Maurya",
2879
- "emails": [
2880
- {
2881
- "active": true,
2882
- "primary": true,
2883
- "verified": true,
2884
- "email": "sattest@xyz.com"
2885
- }
2886
- ],
2887
- "username": "sat5_xyz_com_11118",
2888
- "createdAt": "2020-10-10T05:33:31.119Z",
2889
- "updatedAt": "2020-10-10T05:33:31.119Z",
2890
- "uid": "5678",
2891
- "__v": 0
2892
- },
2893
- "createdAt": "2021-02-18T11:46:12.522Z",
2894
- "updatedAt": "2021-02-18T11:46:12.522Z",
2895
- "__v": 0,
2896
- "id": "602e5384204225eed5cadae7"
2897
- },
2898
- {
2899
- "_id": "60372aa78a046d4d79c46e15",
2900
- "ticket_id": "41",
2901
- "type": "diff",
2902
- "value": {
2903
- "status": [
2904
- "pending",
2905
- "in_progress"
2906
- ]
2907
- },
2908
- "created_by": {
2909
- "gender": "male",
2910
- "accountType": "user",
2911
- "active": true,
2912
- "profilePicUrl": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2913
- "hasOldPasswordHash": false,
2914
- "_id": "5e79e721768c6bf54b783146",
2915
- "emails": [
2916
- {
2917
- "active": true,
2918
- "primary": true,
2919
- "verified": true,
2920
- "email": "niktest@xyz.com"
2921
- },
2922
- {
2923
- "active": true,
2924
- "primary": false,
2925
- "verified": true,
2926
- "email": "xyz@xyz.com"
2927
- },
2928
- {
2929
- "active": true,
2930
- "primary": false,
2931
- "verified": true,
2932
- "email": "xyz@xyz.com"
2933
- },
2934
- {
2935
- "active": true,
2936
- "primary": false,
2937
- "verified": true,
2938
- "email": "xyz@xyz.com"
2939
- }
2940
- ],
2941
- "phoneNumbers": [
2942
- {
2943
- "active": true,
2944
- "primary": true,
2945
- "verified": true,
2946
- "countryCode": 91,
2947
- "phone": "9999999999"
2948
- }
2949
- ],
2950
- "firstName": "Nikhil",
2951
- "lastName": "Manapure",
2952
- "username": "xyz_xyz_com",
2953
- "createdAt": "2020-03-24T10:55:29.298Z",
2954
- "updatedAt": "2020-05-12T07:46:41.816Z",
2955
- "uid": "5567",
2956
- "__v": 2
2957
- },
2958
- "createdAt": "2021-02-25T04:42:15.225Z",
2959
- "updatedAt": "2021-02-25T04:42:15.225Z",
2960
- "__v": 0,
2961
- "id": "60372aa78a046d4d79c46e15"
2962
- }
2963
- ],
2964
- "total": 2,
2965
- "limit": 100,
2966
- "page": 1,
2967
- "pages": 1
2968
- }
2969
- }
2970
- ```
2971
- </details>
2972
-
2973
- </details>
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
- ---
2984
-
2985
-
2986
- ### getCustomForm
2987
- Get specific custom form using it's slug
2988
-
2989
-
2990
-
2991
- ```javascript
2992
- // Promise
2993
- const promise = client.application("<APPLICATION_ID>").lead.getCustomForm({ slug : value });
2994
-
2995
- // Async/Await
2996
- const data = await client.application("<APPLICATION_ID>").lead.getCustomForm({ slug : value });
2997
- ```
2998
-
2999
-
3000
-
3001
-
3002
-
3003
- | Argument | Type | Required | Description |
3004
- | --------- | ----- | -------- | ----------- |
3005
- | slug | string | yes | Slug of form whose response is getting submitted |
3006
-
3007
-
3008
-
3009
- Get specific custom form using it's slug, this is used to view the form.
3010
-
3011
- *Returned Response:*
3012
-
3013
-
3014
-
3015
-
3016
- [CustomForm](#CustomForm)
3017
-
3018
- Success
3019
-
3020
-
3021
-
3022
-
3023
- <details>
3024
- <summary><i>&nbsp; Examples:</i></summary>
3025
-
3026
-
3027
- <details>
3028
- <summary><i>&nbsp; Default</i></summary>
3029
-
3030
- ```json
3031
- {
3032
- "value": {
3033
- "login_required": false,
3034
- "should_notify": false,
3035
- "inputs": [
3036
- {
3037
- "required": false,
3038
- "type": "text",
3039
- "display": "Name",
3040
- "placeholder": "Please enter your name",
3041
- "key": "name"
3042
- }
3043
- ],
3044
- "available_assignees": [],
3045
- "_id": "5fd258a9088f957f34c288fc",
3046
- "title": "trail form",
3047
- "description": "Trail form description",
3048
- "slug": "trail-form",
3049
- "application_id": "000000000000000000000003",
3050
- "created_on": {
3051
- "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",
3052
- "platform": "web",
3053
- "meta": {
3054
- "browser": {
3055
- "name": "Chrome",
3056
- "version": "87.0.4280.88"
3057
- },
3058
- "os": {
3059
- "name": "macOS",
3060
- "version": "10.15.6",
3061
- "versionName": "Catalina"
3062
- },
3063
- "platform": {
3064
- "type": "desktop",
3065
- "vendor": "Apple"
3066
- },
3067
- "engine": {
3068
- "name": "Blink"
3069
- }
3070
- }
3071
- },
3072
- "created_by": "5d1363adf599d850df93175e",
3073
- "createdAt": "2020-12-10T17:19:37.515Z",
3074
- "updatedAt": "2020-12-10T17:19:43.214Z",
3075
- "__v": 0
3076
- }
3077
- }
3078
- ```
3079
- </details>
3080
-
3081
- </details>
3082
-
3083
-
3084
-
3085
-
3086
-
3087
-
3088
-
3089
-
3090
-
3091
- ---
3092
-
3093
-
3094
- ### editCustomForm
3095
- Edit the given custom form
3096
-
3097
-
3098
-
3099
- ```javascript
3100
- // Promise
3101
- const promise = client.application("<APPLICATION_ID>").lead.editCustomForm({ slug : value,
3102
- body : value });
3103
-
3104
- // Async/Await
3105
- const data = await client.application("<APPLICATION_ID>").lead.editCustomForm({ slug : value,
3106
- body : value });
3107
- ```
3108
-
3109
-
3110
-
3111
-
3112
-
3113
- | Argument | Type | Required | Description |
3114
- | --------- | ----- | -------- | ----------- |
3115
- | slug | string | yes | Slug of form whose response is getting submitted |
3116
- | body | [EditCustomFormPayload](#EditCustomFormPayload) | yes | Request body |
3117
-
3118
-
3119
- Edit the given custom form field such as adding or deleting input, assignee, title, decription, notification and polling information.
3120
-
3121
- *Returned Response:*
3122
-
3123
-
3124
-
3125
-
3126
- [CustomForm](#CustomForm)
3127
-
3128
- Success
3129
-
3130
-
3131
-
3132
-
3133
- <details>
3134
- <summary><i>&nbsp; Examples:</i></summary>
3135
-
3136
-
3137
- <details>
3138
- <summary><i>&nbsp; Default</i></summary>
3139
-
3140
- ```json
3141
- {
3142
- "value": {
3143
- "login_required": false,
3144
- "should_notify": false,
3145
- "inputs": [
3146
- {
3147
- "type": "email",
3148
- "showRegexInput": true,
3149
- "enum": [],
3150
- "regex": "\\S+@\\S+\\.\\S+",
3151
- "display": "email",
3152
- "required": true,
3153
- "key": "email"
3154
- },
3155
- {
3156
- "type": "number",
3157
- "showRegexInput": false,
3158
- "enum": [],
3159
- "display": "Enter your fav number",
3160
- "placeholder": "123",
3161
- "key": "enter-your-fav-number"
3162
- }
3163
- ],
3164
- "available_assignees": [],
3165
- "_id": "602e900a2042255c03cadaf0",
3166
- "title": "service-test-satyen",
3167
- "description": "testing form from service",
3168
- "slug": "service-test-satyen",
3169
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
3170
- "application_id": "000000000000000000000001",
3171
- "created_on": {
3172
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
3173
- "platform": "web",
3174
- "meta": {
3175
- "browser": {
3176
- "name": "Chrome",
3177
- "version": "88.0.4324.150"
3178
- },
3179
- "os": {
3180
- "name": "macOS",
3181
- "version": "11.2.0"
3182
- },
3183
- "platform": {
3184
- "type": "desktop",
3185
- "vendor": "Apple"
3186
- },
3187
- "engine": {
3188
- "name": "Blink"
3189
- }
3190
- }
3191
- },
3192
- "created_by": "5f8147abbd1a0a870f61f1a6",
3193
- "createdAt": "2021-02-18T16:04:26.495Z",
3194
- "updatedAt": "2021-02-26T10:16:49.272Z",
3195
- "__v": 0
3196
- }
3197
- }
3198
- ```
3199
- </details>
3200
-
3201
- </details>
3202
-
3203
-
3204
-
3205
-
3206
-
3207
-
3208
-
3209
-
3210
-
3211
- ---
3212
-
3213
-
3214
- ### getCustomForms
3215
- Get list of custom form
3216
-
3217
-
3218
-
3219
- ```javascript
3220
- // Promise
3221
- const promise = client.application("<APPLICATION_ID>").lead.getCustomForms();
3222
-
3223
- // Async/Await
3224
- const data = await client.application("<APPLICATION_ID>").lead.getCustomForms();
3225
- ```
3226
-
3227
-
3228
-
3229
-
3230
-
3231
-
3232
- Get list of custom form for given application
3233
-
3234
- *Returned Response:*
3235
-
3236
-
3237
-
3238
-
3239
- [CustomFormList](#CustomFormList)
3240
-
3241
- Success
3242
-
3243
-
3244
-
3245
-
3246
- <details>
3247
- <summary><i>&nbsp; Examples:</i></summary>
3248
-
3249
-
3250
- <details>
3251
- <summary><i>&nbsp; Default</i></summary>
3252
-
3253
- ```json
3254
- {
3255
- "value": {
3256
- "docs": [
3257
- {
3258
- "_id": "602e900a2042255c03cadaf0",
3259
- "login_required": false,
3260
- "should_notify": false,
3261
- "inputs": [
3262
- {
3263
- "type": "email",
3264
- "showRegexInput": true,
3265
- "enum": [],
3266
- "regex": "\\S+@\\S+\\.\\S+",
3267
- "display": "email",
3268
- "required": true,
3269
- "key": "email"
3270
- },
3271
- {
3272
- "type": "number",
3273
- "showRegexInput": false,
3274
- "enum": [],
3275
- "display": "Enter your fav number",
3276
- "placeholder": "123",
3277
- "key": "enter-your-fav-number"
3278
- },
3279
- {
3280
- "type": "textarea",
3281
- "showRegexInput": false,
3282
- "enum": [],
3283
- "display": "kjhgjhvjb",
3284
- "required": true,
3285
- "key": "kjhgjhvjb"
3286
- }
3287
- ],
3288
- "available_assignees": [],
3289
- "title": "service-test-satyen",
3290
- "description": "testing form from service",
3291
- "slug": "service-test-satyen",
3292
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
3293
- "application_id": "000000000000000000000001",
3294
- "created_on": {
3295
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
3296
- "platform": "web",
3297
- "meta": {
3298
- "browser": {
3299
- "name": "Chrome",
3300
- "version": "88.0.4324.150"
3301
- },
3302
- "os": {
3303
- "name": "macOS",
3304
- "version": "11.2.0"
3305
- },
3306
- "platform": {
3307
- "type": "desktop",
3308
- "vendor": "Apple"
3309
- },
3310
- "engine": {
3311
- "name": "Blink"
3312
- }
3313
- }
3314
- },
3315
- "created_by": "5f8147abbd1a0a870f61f1a6",
3316
- "createdAt": "2021-02-18T16:04:26.495Z",
3317
- "updatedAt": "2021-02-24T15:49:56.256Z",
3318
- "__v": 0,
3319
- "id": "602e900a2042255c03cadaf0"
3320
- },
3321
- {
3322
- "_id": "60124e4a4d2bc363625e1bf4",
3323
- "login_required": false,
3324
- "should_notify": true,
3325
- "inputs": [
3326
- {
3327
- "type": "text",
3328
- "showRegexInput": false,
3329
- "enum": [],
3330
- "display": "asdf",
3331
- "key": "asdf"
3332
- },
3333
- {
3334
- "type": "mobile",
3335
- "showRegexInput": false,
3336
- "enum": [],
3337
- "display": "mob num",
3338
- "regex": "[0-9]{10}$",
3339
- "key": "mob-num"
3340
- }
3341
- ],
3342
- "available_assignees": [
3343
- "5e79e721768c6bf54b783146"
3344
- ],
3345
- "title": "asdf444",
3346
- "description": "adf",
3347
- "slug": "asdf444",
3348
- "application_id": "000000000000000000000001",
3349
- "created_on": {
3350
- "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",
3351
- "platform": "web",
3352
- "meta": {
3353
- "browser": {
3354
- "name": "Chrome",
3355
- "version": "88.0.4324.96"
3356
- },
3357
- "os": {
3358
- "name": "macOS",
3359
- "version": "10.15.7",
3360
- "versionName": "Catalina"
3361
- },
3362
- "platform": {
3363
- "type": "desktop",
3364
- "vendor": "Apple"
3365
- },
3366
- "engine": {
3367
- "name": "Blink"
3368
- }
3369
- }
3370
- },
3371
- "created_by": "5e79e721768c6bf54b783146",
3372
- "createdAt": "2021-01-28T05:40:26.271Z",
3373
- "updatedAt": "2021-02-18T16:02:32.086Z",
3374
- "__v": 0,
3375
- "poll_for_assignment": {
3376
- "duration": 20,
3377
- "message": "We are looking for executive to connect you",
3378
- "success_message": "Executive found",
3379
- "failure_message": "All our executives are busy at the moment, We have accepted your request and someone will connect with you soon!"
3380
- },
3381
- "id": "60124e4a4d2bc363625e1bf4"
3382
- }
3383
- ],
3384
- "total": 2,
3385
- "limit": 10,
3386
- "page": 1,
3387
- "pages": 1
3388
- }
3389
- }
3390
- ```
3391
- </details>
3392
-
3393
- </details>
3394
-
3395
-
3396
-
3397
-
3398
-
3399
-
3400
-
3401
-
3402
-
3403
- ---
3404
-
3405
-
3406
- ### createCustomForm
3407
- Creates a new custom form
3408
-
3409
-
3410
-
3411
- ```javascript
3412
- // Promise
3413
- const promise = client.application("<APPLICATION_ID>").lead.createCustomForm({ body : value });
3414
-
3415
- // Async/Await
3416
- const data = await client.application("<APPLICATION_ID>").lead.createCustomForm({ body : value });
3417
- ```
3418
-
3419
-
3420
-
3421
-
3422
-
3423
- | Argument | Type | Required | Description |
3424
- | --------- | ----- | -------- | ----------- |
3425
- | body | [CreateCustomFormPayload](#CreateCustomFormPayload) | yes | Request body |
3426
-
3427
-
3428
- Creates a new custom form for given application
3429
-
3430
- *Returned Response:*
3431
-
3432
-
3433
-
3434
-
3435
- [CustomForm](#CustomForm)
3436
-
3437
- Success
3438
-
3439
-
3440
-
3441
-
3442
- <details>
3443
- <summary><i>&nbsp; Examples:</i></summary>
3444
-
3445
-
3446
- <details>
3447
- <summary><i>&nbsp; Default</i></summary>
3448
-
3449
- ```json
3450
- {
3451
- "value": {
3452
- "login_required": false,
3453
- "should_notify": false,
3454
- "inputs": [
3455
- {
3456
- "type": "email",
3457
- "showRegexInput": true,
3458
- "enum": [],
3459
- "regex": "\\S+@\\S+\\.\\S+",
3460
- "display": "email",
3461
- "required": true,
3462
- "key": "email"
3463
- },
3464
- {
3465
- "type": "number",
3466
- "showRegexInput": false,
3467
- "enum": [],
3468
- "display": "Enter your fav number",
3469
- "placeholder": "123",
3470
- "key": "enter-your-fav-number"
3471
- }
3472
- ],
3473
- "available_assignees": [],
3474
- "_id": "602e900a2042255c03cadaf0",
3475
- "title": "service-test-satyen",
3476
- "description": "testing form from service",
3477
- "slug": "service-test-satyen",
3478
- "header_image": "https://hdn-1.addsale.com/x0/support-ticket/files/free/original/KZL86aN5l-service-test-satyen.jpeg",
3479
- "application_id": "000000000000000000000001",
3480
- "created_on": {
3481
- "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
3482
- "platform": "web",
3483
- "meta": {
3484
- "browser": {
3485
- "name": "Chrome",
3486
- "version": "88.0.4324.150"
3487
- },
3488
- "os": {
3489
- "name": "macOS",
3490
- "version": "11.2.0"
3491
- },
3492
- "platform": {
3493
- "type": "desktop",
3494
- "vendor": "Apple"
3495
- },
3496
- "engine": {
3497
- "name": "Blink"
3498
- }
3499
- }
3500
- },
3501
- "created_by": "5f8147abbd1a0a870f61f1a6",
3502
- "createdAt": "2021-02-18T16:04:26.495Z",
3503
- "updatedAt": "2021-02-26T10:16:49.272Z",
3504
- "__v": 0
3505
- }
3506
- }
3507
- ```
3508
- </details>
3509
-
3510
- </details>
3511
-
3512
-
3513
-
3514
-
3515
-
3516
-
3517
-
3518
-
3519
-
3520
- ---
3521
-
3522
-
3523
- ### getTokenForVideoRoom
3524
- Get Token to join a specific Video Room using it's unqiue name
3525
-
3526
-
3527
-
3528
- ```javascript
3529
- // Promise
3530
- const promise = client.lead.getTokenForVideoRoom({ uniqueName : value });
3531
-
3532
- // Async/Await
3533
- const data = await client.lead.getTokenForVideoRoom({ uniqueName : value });
3534
- ```
3535
-
3536
-
3537
-
3538
-
3539
-
3540
- | Argument | Type | Required | Description |
3541
- | --------- | ----- | -------- | ----------- |
3542
- | uniqueName | string | yes | Unique name of video room |
3543
-
3544
-
3545
-
3546
- 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.
3547
-
3548
- *Returned Response:*
3549
-
3550
-
3551
-
3552
-
3553
- [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
3554
-
3555
- Success
3556
-
3557
-
3558
-
3559
-
3560
- <details>
3561
- <summary><i>&nbsp; Examples:</i></summary>
3562
-
3563
-
3564
- <details>
3565
- <summary><i>&nbsp; Default</i></summary>
3566
-
3567
- ```json
3568
- {
3569
- "value": {
3570
- "access_token": "your_token_to_the_room"
3571
- }
3572
- }
3573
- ```
3574
- </details>
3575
-
3576
- </details>
3577
-
3578
-
3579
-
3580
-
3581
-
3582
-
3583
-
3584
-
3585
-
3586
- ---
3587
-
3588
-
3589
- ### getTokenForVideoRoom
3590
- Get Token to join a specific Video Room using it's unqiue name
3591
-
3592
-
3593
-
3594
- ```javascript
3595
- // Promise
3596
- const promise = client.application("<APPLICATION_ID>").lead.getTokenForVideoRoom({ uniqueName : value });
3597
-
3598
- // Async/Await
3599
- const data = await client.application("<APPLICATION_ID>").lead.getTokenForVideoRoom({ uniqueName : value });
3600
- ```
3601
-
3602
-
3603
-
3604
-
3605
-
3606
- | Argument | Type | Required | Description |
3607
- | --------- | ----- | -------- | ----------- |
3608
- | uniqueName | string | yes | Unique name of video room |
3609
-
3610
-
3611
-
3612
- 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.
3613
-
3614
- *Returned Response:*
3615
-
3616
-
3617
-
3618
-
3619
- [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
3620
-
3621
- Success
3622
-
3623
-
3624
-
3625
-
3626
- <details>
3627
- <summary><i>&nbsp; Examples:</i></summary>
3628
-
3629
-
3630
- <details>
3631
- <summary><i>&nbsp; Default</i></summary>
3632
-
3633
- ```json
3634
- {
3635
- "value": {
3636
- "access_token": "your_token_to_the_room"
3637
- }
3638
- }
3639
- ```
3640
- </details>
3641
-
3642
- </details>
3643
-
3644
-
3645
-
3646
-
3647
-
3648
-
3649
-
3650
-
3651
-
3652
- ---
3653
-
3654
-
3655
- ### getVideoParticipants
3656
- Get participants of a specific Video Room using it's unique name
3657
-
3658
-
3659
-
3660
- ```javascript
3661
- // Promise
3662
- const promise = client.lead.getVideoParticipants({ uniqueName : value });
3663
-
3664
- // Async/Await
3665
- const data = await client.lead.getVideoParticipants({ uniqueName : value });
3666
- ```
3667
-
3668
-
3669
-
3670
-
3671
-
3672
- | Argument | Type | Required | Description |
3673
- | --------- | ----- | -------- | ----------- |
3674
- | uniqueName | string | yes | Unique name of Video Room |
3675
-
3676
-
3677
-
3678
- 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.
3679
-
3680
- *Returned Response:*
3681
-
3682
-
3683
-
3684
-
3685
- [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
3686
-
3687
- Success
3688
-
3689
-
3690
-
3691
-
3692
- <details>
3693
- <summary><i>&nbsp; Examples:</i></summary>
3694
-
3695
-
3696
- <details>
3697
- <summary><i>&nbsp; Default</i></summary>
3698
-
3699
- ```json
3700
- {
3701
- "value": {
3702
- "participants": []
3703
- }
3704
- }
3705
- ```
3706
- </details>
3707
-
3708
- </details>
3709
-
3710
-
3711
-
3712
-
3713
-
3714
-
3715
-
3716
-
3717
-
3718
- ---
3719
-
3720
-
3721
- ### getVideoParticipants
3722
- Get participants of a specific Video Room using it's unique name
3723
-
3724
-
3725
-
3726
- ```javascript
3727
- // Promise
3728
- const promise = client.application("<APPLICATION_ID>").lead.getVideoParticipants({ uniqueName : value });
3729
-
3730
- // Async/Await
3731
- const data = await client.application("<APPLICATION_ID>").lead.getVideoParticipants({ uniqueName : value });
3732
- ```
3733
-
3734
-
3735
-
3736
-
3737
-
3738
- | Argument | Type | Required | Description |
3739
- | --------- | ----- | -------- | ----------- |
3740
- | uniqueName | string | yes | Unique name of Video Room |
3741
-
3742
-
3743
-
3744
- 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.
3745
-
3746
- *Returned Response:*
3747
-
3748
-
3749
-
3750
-
3751
- [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
3752
-
3753
- Success
3754
-
3755
-
3756
-
3757
-
3758
- <details>
3759
- <summary><i>&nbsp; Examples:</i></summary>
3760
-
3761
-
3762
- <details>
3763
- <summary><i>&nbsp; Default</i></summary>
3764
-
3765
- ```json
3766
- {
3767
- "value": {
3768
- "participants": []
3769
- }
3770
- }
3771
- ```
3772
- </details>
3773
-
3774
- </details>
3775
-
3776
-
3777
-
3778
-
3779
-
3780
-
3781
-
3782
-
3783
-
3784
- ---
3785
-
3786
-
3787
- ### openVideoRoom
3788
- Open a video room.
3789
-
3790
-
3791
-
3792
- ```javascript
3793
- // Promise
3794
- const promise = client.application("<APPLICATION_ID>").lead.openVideoRoom({ body : value });
3795
-
3796
- // Async/Await
3797
- const data = await client.application("<APPLICATION_ID>").lead.openVideoRoom({ body : value });
3798
- ```
3799
-
3800
-
3801
-
3802
-
3803
-
3804
- | Argument | Type | Required | Description |
3805
- | --------- | ----- | -------- | ----------- |
3806
- | body | [CreateVideoRoomPayload](#CreateVideoRoomPayload) | yes | Request body |
3807
-
3808
-
3809
- Open a video room.
3810
-
3811
- *Returned Response:*
3812
-
3813
-
3814
-
3815
-
3816
- [CreateVideoRoomResponse](#CreateVideoRoomResponse)
3817
-
3818
- Success
3819
-
3820
-
3821
-
3822
-
3823
- <details>
3824
- <summary><i>&nbsp; Examples:</i></summary>
3825
-
3826
-
3827
- <details>
3828
- <summary><i>&nbsp; Default</i></summary>
3829
-
3830
- ```json
3831
- {
3832
- "value": {
3833
- "unique_name": "alphanumeric123"
3834
- }
3835
- }
3836
- ```
3837
- </details>
3838
-
3839
- </details>
3840
-
3841
-
3842
-
3843
-
3844
-
3845
-
3846
-
3847
-
3848
-
3849
- ---
3850
-
3851
-
3852
- ### closeVideoRoom
3853
- Close the video room and force all participants to leave.
3854
-
3855
-
3856
-
3857
- ```javascript
3858
- // Promise
3859
- const promise = client.application("<APPLICATION_ID>").lead.closeVideoRoom({ uniqueName : value });
3860
-
3861
- // Async/Await
3862
- const data = await client.application("<APPLICATION_ID>").lead.closeVideoRoom({ uniqueName : value });
3863
- ```
3864
-
3865
-
3866
-
3867
-
3868
-
3869
- | Argument | Type | Required | Description |
3870
- | --------- | ----- | -------- | ----------- |
3871
- | uniqueName | string | yes | Unique name of Video Room |
3872
-
3873
-
3874
-
3875
- Close the video room and force all participants to leave.
3876
-
3877
- *Returned Response:*
3878
-
3879
-
3880
-
3881
-
3882
- [CloseVideoRoomResponse](#CloseVideoRoomResponse)
3883
-
3884
- Success
3885
-
3886
-
3887
-
3888
-
3889
- <details>
3890
- <summary><i>&nbsp; Examples:</i></summary>
3891
-
3892
-
3893
- <details>
3894
- <summary><i>&nbsp; Default</i></summary>
3895
-
3896
- ```json
3897
- {
3898
- "value": {
3899
- "success": true
3900
- }
3901
- }
3902
- ```
3903
- </details>
3904
-
3905
- </details>
3906
-
3907
-
3908
-
3909
-
3910
-
3911
-
3912
-
3913
-
3914
-
3915
- ---
3916
-
3917
-
3918
- ### getGeneralConfig
3919
- Get general support configuration.
3920
-
3921
-
3922
-
3923
- ```javascript
3924
- // Promise
3925
- const promise = client.lead.getGeneralConfig();
3926
-
3927
- // Async/Await
3928
- const data = await client.lead.getGeneralConfig();
3929
- ```
3930
-
3931
-
3932
-
3933
-
3934
-
3935
-
3936
- Get general support configuration.
3937
-
3938
- *Returned Response:*
3939
-
3940
-
3941
-
3942
-
3943
- [CloseVideoRoomResponse](#CloseVideoRoomResponse)
3944
-
3945
- Success
3946
-
3947
-
3948
-
3949
-
3950
- <details>
3951
- <summary><i>&nbsp; Examples:</i></summary>
3952
-
3953
-
3954
- <details>
3955
- <summary><i>&nbsp; Default</i></summary>
3956
-
3957
- ```json
3958
- {
3959
- "value": {
3960
- "success": true
3961
- }
3962
- }
3963
- ```
3964
- </details>
3965
-
3966
- </details>
3967
-
3968
-
3969
-
3970
-
3971
-
3972
-
3973
-
3974
-
3975
-
3976
- ---
3977
-
3978
-
3979
-
3980
- ### Schemas
3981
-
3982
-
3983
-
3984
- #### [TicketList](#TicketList)
3985
-
3986
- | Properties | Type | Nullable | Description |
3987
- | ---------- | ---- | -------- | ----------- |
3988
- | items | [[Ticket](#Ticket)] | no | List of tickets |
3989
- | filters | [Filter](#Filter) | no | All the filters available for tickets |
3990
- | page | [Page](#Page) | no | Describes the pagination state |
3991
-
3992
- ---
3993
-
3994
-
3995
-
3996
-
3997
- #### [Page](#Page)
3998
-
3999
- | Properties | Type | Nullable | Description |
4000
- | ---------- | ---- | -------- | ----------- |
4001
- | item_total | number | no | |
4002
- | next_id | string | no | |
4003
- | has_previous | boolean | no | |
4004
- | has_next | boolean | no | |
4005
- | current | number | no | |
4006
- | type | string | yes | |
4007
- | size | number | no | |
4008
-
4009
- ---
4010
-
4011
-
4012
-
4013
-
4014
- #### [TicketHistoryList](#TicketHistoryList)
4015
-
4016
- | Properties | Type | Nullable | Description |
4017
- | ---------- | ---- | -------- | ----------- |
4018
- | items | [[TicketHistory](#TicketHistory)] | no | List of ticket history |
4019
- | page | [Page](#Page) | no | Describes the pagination state |
4020
-
4021
- ---
4022
-
4023
-
4024
-
4025
-
4026
- #### [CustomFormList](#CustomFormList)
4027
-
4028
- | Properties | Type | Nullable | Description |
4029
- | ---------- | ---- | -------- | ----------- |
4030
- | items | [[CustomForm](#CustomForm)] | no | List of forms |
4031
- | page | [Page](#Page) | no | Describes the pagination state |
4032
-
4033
- ---
4034
-
4035
-
4036
-
4037
-
4038
- #### [CreateCustomFormPayload](#CreateCustomFormPayload)
4039
-
4040
- | Properties | Type | Nullable | Description |
4041
- | ---------- | ---- | -------- | ----------- |
4042
- | slug | string | yes | Slug for the form |
4043
- | title | string | yes | Title for the form |
4044
- | inputs | [string] | yes | List of all the form components |
4045
- | description | string | no | Description of the form |
4046
- | header_image | string | no | Header image that is to be shown for the form |
4047
- | priority | [PriorityEnum](#PriorityEnum) | yes | Describes the priority of the tickets created by the form |
4048
- | should_notify | boolean | no | Indicates if staff should be notified when a response is received |
4049
- | success_message | string | no | Success message that will be shown on submission |
4050
- | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Describes how polling will be done for the tickets createds |
4051
-
4052
- ---
4053
-
4054
-
4055
-
4056
-
4057
- #### [EditCustomFormPayload](#EditCustomFormPayload)
4058
-
4059
- | Properties | Type | Nullable | Description |
4060
- | ---------- | ---- | -------- | ----------- |
4061
- | title | string | yes | Title for the form |
4062
- | inputs | [string] | yes | List of all the form components |
4063
- | description | string | no | Description of the form |
4064
- | priority | [PriorityEnum](#PriorityEnum) | yes | Describes the priority of the tickets created by the form |
4065
- | header_image | string | no | Header image that is to be shown for the form |
4066
- | should_notify | boolean | no | Indicates if staff should be notified when a response is received |
4067
- | login_required | boolean | no | Denotes if login is required to make a form response submission |
4068
- | success_message | string | no | Success message that will be shown on submission |
4069
- | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Describes how polling will be done for the tickets createds |
4070
-
4071
- ---
4072
-
4073
-
4074
-
4075
-
4076
- #### [EditTicketPayload](#EditTicketPayload)
4077
-
4078
- | Properties | Type | Nullable | Description |
4079
- | ---------- | ---- | -------- | ----------- |
4080
- | content | [TicketContent](#TicketContent) | no | Ticket conetent details |
4081
- | category | string | no | Category assigned to the ticket |
4082
- | sub_category | string | no | Sub-category assigned to the ticket |
4083
- | source | string | no | Denotes if the ticket was created at company or application level |
4084
- | status | string | no | Denotes in what state is the ticket |
4085
- | priority | [PriorityEnum](#PriorityEnum) | no | Denotes the priority of ticket |
4086
- | assigned_to | [AgentChangePayload](#AgentChangePayload) | no | Details of support staff to whom ticket is assigned |
4087
- | tags | [string] | no | Tags relevant to ticket |
4088
-
4089
- ---
4090
-
4091
-
4092
-
4093
-
4094
- #### [AgentChangePayload](#AgentChangePayload)
4095
-
4096
- | Properties | Type | Nullable | Description |
4097
- | ---------- | ---- | -------- | ----------- |
4098
- | agent_id | string | yes | Agent's unique ID |
4099
-
4100
- ---
4101
-
4102
-
4103
-
4104
-
4105
- #### [CreateVideoRoomResponse](#CreateVideoRoomResponse)
4106
-
4107
- | Properties | Type | Nullable | Description |
4108
- | ---------- | ---- | -------- | ----------- |
4109
- | unique_name | string | yes | Video Room's unique name |
4110
-
4111
- ---
4112
-
4113
-
4114
-
4115
-
4116
- #### [CloseVideoRoomResponse](#CloseVideoRoomResponse)
4117
-
4118
- | Properties | Type | Nullable | Description |
4119
- | ---------- | ---- | -------- | ----------- |
4120
- | success | boolean | yes | Denotes if operation was successfully |
4121
-
4122
- ---
4123
-
4124
-
4125
-
4126
-
4127
- #### [CreateVideoRoomPayload](#CreateVideoRoomPayload)
4128
-
4129
- | Properties | Type | Nullable | Description |
4130
- | ---------- | ---- | -------- | ----------- |
4131
- | unique_name | string | yes | Ticket id |
4132
- | notify | [[NotifyUser](#NotifyUser)] | no | List of people to be notified |
4133
-
4134
- ---
4135
-
4136
-
4137
-
4138
-
4139
- #### [NotifyUser](#NotifyUser)
4140
-
4141
- | Properties | Type | Nullable | Description |
4142
- | ---------- | ---- | -------- | ----------- |
4143
- | country_code | string | yes | Country code |
4144
- | phone_number | string | yes | Phone number |
4145
-
4146
- ---
4147
-
4148
-
4149
-
4150
-
4151
- #### [Filter](#Filter)
4152
-
4153
- | Properties | Type | Nullable | Description |
4154
- | ---------- | ---- | -------- | ----------- |
4155
- | priorities | [[Priority](#Priority)] | yes | List of possible priorities for tickets |
4156
- | categories | [[TicketCategory](#TicketCategory)] | no | List of possible categories for tickets |
4157
- | statuses | [[Status](#Status)] | yes | List of possible statuses for tickets |
4158
- | assignees | [string] | yes | List of support staff availble for tickets assignment |
4159
-
4160
- ---
4161
-
4162
-
4163
-
4164
-
4165
- #### [TicketHistoryPayload](#TicketHistoryPayload)
4166
-
4167
- | Properties | Type | Nullable | Description |
4168
- | ---------- | ---- | -------- | ----------- |
4169
- | value | string | yes | Details of history event |
4170
- | type | [HistoryTypeEnum](#HistoryTypeEnum) | yes | Type of history event |
4171
-
4172
- ---
4173
-
4174
-
4175
-
4176
-
4177
- #### [CustomFormSubmissionPayload](#CustomFormSubmissionPayload)
4178
-
4179
- | Properties | Type | Nullable | Description |
4180
- | ---------- | ---- | -------- | ----------- |
4181
- | response | [string] | yes | Form response |
4182
- | attachments | [[TicketAsset](#TicketAsset)] | no | List of all attachments related to the form |
4183
-
4184
- ---
4185
-
4186
-
4187
-
4188
-
4189
- #### [GetTokenForVideoRoomResponse](#GetTokenForVideoRoomResponse)
4190
-
4191
- | Properties | Type | Nullable | Description |
4192
- | ---------- | ---- | -------- | ----------- |
4193
- | access_token | string | yes | Access token to be used for video room |
4194
-
4195
- ---
4196
-
4197
-
4198
-
4199
-
4200
- #### [GetParticipantsInsideVideoRoomResponse](#GetParticipantsInsideVideoRoomResponse)
4201
-
4202
- | Properties | Type | Nullable | Description |
4203
- | ---------- | ---- | -------- | ----------- |
4204
- | participants | [[Participant](#Participant)] | yes | List of participants of the video room |
4205
-
4206
- ---
4207
-
4208
-
4209
-
4210
-
4211
- #### [Participant](#Participant)
4212
-
4213
- | Properties | Type | Nullable | Description |
4214
- | ---------- | ---- | -------- | ----------- |
4215
- | user | [UserSchema](#UserSchema) | no | Details of participant |
4216
- | identity | string | no | Unique identifier of participant |
4217
- | status | string | no | Status of participant |
4218
-
4219
- ---
4220
-
4221
-
4222
-
4223
-
4224
- #### [UserSchema](#UserSchema)
4225
-
4226
- | Properties | Type | Nullable | Description |
4227
- | ---------- | ---- | -------- | ----------- |
4228
- | first_name | string | no | First name |
4229
- | last_name | string | no | Last name |
4230
- | phone_numbers | [[PhoneNumber](#PhoneNumber)] | no | List of phone numbers |
4231
- | emails | [[Email](#Email)] | no | List of email addresses |
4232
- | gender | string | no | Gender of user |
4233
- | active | boolean | no | Is account active |
4234
- | profile_pic_url | string | no | URL for profile pic |
4235
- | username | string | no | username of user |
4236
- | account_type | string | no | Type of account |
4237
- | uid | string | no | Unique identifier of user |
4238
- | debug | [Debug](#Debug) | no | Used for debugging |
4239
- | has_old_password_hash | boolean | no | Denotes if user has old password hash |
4240
- | _id | string | no | Unique identifier of user |
4241
- | created_at | string | no | Time of user creation |
4242
- | updated_at | string | no | Last time of user details update |
4243
-
4244
- ---
4245
-
4246
-
4247
-
4248
-
4249
- #### [PhoneNumber](#PhoneNumber)
4250
-
4251
- | Properties | Type | Nullable | Description |
4252
- | ---------- | ---- | -------- | ----------- |
4253
- | active | boolean | no | Denotes if the phone number is active |
4254
- | primary | boolean | no | Denotes it's the primary phone number for the account |
4255
- | verified | boolean | no | Denotes it's a verified phone number |
4256
- | phone | string | no | Phone number |
4257
- | country_code | number | no | Country code |
4258
-
4259
- ---
4260
-
4261
-
4262
-
4263
-
4264
- #### [Email](#Email)
4265
-
4266
- | Properties | Type | Nullable | Description |
4267
- | ---------- | ---- | -------- | ----------- |
4268
- | primary | boolean | no | Denotes it's the primary email for the account |
4269
- | verified | boolean | no | Denotes it's a verified email |
4270
- | email | string | no | Email Address |
4271
- | active | boolean | no | Denotes if the email is active |
4272
-
4273
- ---
4274
-
4275
-
4276
-
4277
-
4278
- #### [Debug](#Debug)
4279
-
4280
- | Properties | Type | Nullable | Description |
4281
- | ---------- | ---- | -------- | ----------- |
4282
- | source | string | no | Source of user |
4283
- | platform | string | no | Platform of user |
4284
-
4285
- ---
4286
-
4287
-
4288
-
4289
-
4290
- #### [SubmitCustomFormResponse](#SubmitCustomFormResponse)
4291
-
4292
- | Properties | Type | Nullable | Description |
4293
- | ---------- | ---- | -------- | ----------- |
4294
- | message | string | yes | Success message for form submission |
4295
- | ticket | [Ticket](#Ticket) | no | Ticket created on form submission |
4296
-
4297
- ---
4298
-
4299
-
4300
-
4301
-
4302
- #### [TicketContext](#TicketContext)
4303
-
4304
- | Properties | Type | Nullable | Description |
4305
- | ---------- | ---- | -------- | ----------- |
4306
- | application_id | string | no | Application ID related to the ticket |
4307
- | company_id | string | yes | Company ID related to the ticket |
4308
-
4309
- ---
4310
-
4311
-
4312
-
4313
-
4314
- #### [CreatedOn](#CreatedOn)
4315
-
4316
- | Properties | Type | Nullable | Description |
4317
- | ---------- | ---- | -------- | ----------- |
4318
- | user_agent | string | yes | Useragent details |
4319
-
4320
- ---
4321
-
4322
-
4323
-
4324
-
4325
- #### [TicketAsset](#TicketAsset)
4326
-
4327
- | Properties | Type | Nullable | Description |
4328
- | ---------- | ---- | -------- | ----------- |
4329
- | display | string | no | Display text for asset |
4330
- | value | string | yes | To be used for details |
4331
- | type | [TicketAssetTypeEnum](#TicketAssetTypeEnum) | yes | Type of asset |
4332
-
4333
- ---
4334
-
4335
-
4336
-
4337
-
4338
- #### [TicketContent](#TicketContent)
4339
-
4340
- | Properties | Type | Nullable | Description |
4341
- | ---------- | ---- | -------- | ----------- |
4342
- | title | string | yes | Title for ticket |
4343
- | description | string | no | Long description of issue |
4344
- | attachments | [[TicketAsset](#TicketAsset)] | no | List of all attachments related to the ticket |
4345
-
4346
- ---
4347
-
4348
-
4349
-
4350
-
4351
- #### [AddTicketPayload](#AddTicketPayload)
4352
-
4353
- | Properties | Type | Nullable | Description |
4354
- | ---------- | ---- | -------- | ----------- |
4355
- | created_by | string | no | Creator of the ticket |
4356
- | status | string | no | Status of the ticket |
4357
- | priority | [PriorityEnum](#PriorityEnum) | no | Priority of the ticket |
4358
- | category | string | yes | Category of the ticket |
4359
- | content | [TicketContent](#TicketContent) | yes | Content for the ticket |
4360
- | _custom_json | string | no | optional custom data that needs to be sent |
4361
-
4362
- ---
4363
-
4364
-
4365
-
4366
-
4367
- #### [Priority](#Priority)
4368
-
4369
- | Properties | Type | Nullable | Description |
4370
- | ---------- | ---- | -------- | ----------- |
4371
- | key | [PriorityEnum](#PriorityEnum) | yes | Key for priority |
4372
- | display | string | yes | Display text for priority |
4373
- | color | string | yes | Color for priority |
4374
-
4375
- ---
4376
-
4377
-
4378
-
4379
-
4380
- #### [Status](#Status)
4381
-
4382
- | Properties | Type | Nullable | Description |
4383
- | ---------- | ---- | -------- | ----------- |
4384
- | key | string | yes | Key for status |
4385
- | display | string | yes | Display text for status |
4386
- | color | string | yes | Color for status |
4387
-
4388
- ---
4389
-
4390
-
4391
-
4392
-
4393
- #### [TicketFeedbackForm](#TicketFeedbackForm)
4394
-
4395
- | Properties | Type | Nullable | Description |
4396
- | ---------- | ---- | -------- | ----------- |
4397
- | title | string | yes | Feedback form title that will be shown to the user |
4398
- | display | [string] | no | List of all the form fields |
4399
-
4400
- ---
4401
-
4402
-
4403
-
4404
-
4405
- #### [TicketFeedbackList](#TicketFeedbackList)
4406
-
4407
- | Properties | Type | Nullable | Description |
4408
- | ---------- | ---- | -------- | ----------- |
4409
- | items | [[TicketFeedback](#TicketFeedback)] | no | List of all ticket feedback for the ticket |
4410
-
4411
- ---
4412
-
4413
-
4414
-
4415
-
4416
- #### [TicketFeedbackPayload](#TicketFeedbackPayload)
4417
-
4418
- | Properties | Type | Nullable | Description |
4419
- | ---------- | ---- | -------- | ----------- |
4420
- | form_response | string | no | Key-value pairs of all the form fields and their response |
4421
-
4422
- ---
4423
-
4424
-
4425
-
4426
-
4427
- #### [SubmitButton](#SubmitButton)
4428
-
4429
- | Properties | Type | Nullable | Description |
4430
- | ---------- | ---- | -------- | ----------- |
4431
- | title | string | yes | Title for submit button |
4432
- | title_color | string | yes | Title color submit button |
4433
- | background_color | string | yes | Color for submit button |
4434
-
4435
- ---
4436
-
4437
-
4438
-
4439
-
4440
- #### [PollForAssignment](#PollForAssignment)
4441
-
4442
- | Properties | Type | Nullable | Description |
4443
- | ---------- | ---- | -------- | ----------- |
4444
- | duration | number | yes | Duration for polling of staff |
4445
- | message | string | yes | Message for polling |
4446
- | success_message | string | yes | Message for successful polling |
4447
- | failure_message | string | yes | Message if polling failed |
4448
-
4449
- ---
4450
-
4451
-
4452
-
4453
-
4454
- #### [CustomForm](#CustomForm)
4455
-
4456
- | Properties | Type | Nullable | Description |
4457
- | ---------- | ---- | -------- | ----------- |
4458
- | application_id | string | yes | Application ID for form |
4459
- | slug | string | yes | Slug for the form, which is to be used for accessing the form |
4460
- | header_image | string | no | Form header image that will be shown to the user |
4461
- | title | string | yes | Form title that will be shown to the user |
4462
- | description | string | no | Form description that will be shown to the user |
4463
- | priority | [Priority](#Priority) | yes | Sets priority of tickets created by form response |
4464
- | login_required | boolean | yes | Denotes if login is required to make a form response submission |
4465
- | should_notify | boolean | yes | Denotes if new response submission for the form should be notified to the assignees |
4466
- | success_message | string | no | Message that is to be shown on succesfull form response submission |
4467
- | submit_button | [SubmitButton](#SubmitButton) | no | Details for submit button |
4468
- | inputs | [string] | yes | List of all the form fields |
4469
- | created_on | [CreatedOn](#CreatedOn) | no | Gives details of when the form was created |
4470
- | poll_for_assignment | [PollForAssignment](#PollForAssignment) | no | Details of how polling should be done for support |
4471
- | _id | string | yes | Unique identifier for the form |
4472
-
4473
- ---
4474
-
4475
-
4476
-
4477
-
4478
- #### [CommunicationDetails](#CommunicationDetails)
4479
-
4480
- | Properties | Type | Nullable | Description |
4481
- | ---------- | ---- | -------- | ----------- |
4482
- | type | string | no | Enum type for the communication method |
4483
- | title | string | no | Title for the communication method |
4484
- | value | string | no | Value for the communication method |
4485
- | description | string | no | Short description for the communication method |
4486
- | enabled | boolean | no | Denotes if this communication method has to be shown |
4487
-
4488
- ---
4489
-
4490
-
4491
-
4492
-
4493
- #### [SupportGeneralConfig](#SupportGeneralConfig)
4494
-
4495
- | Properties | Type | Nullable | Description |
4496
- | ---------- | ---- | -------- | ----------- |
4497
- | _id | string | no | Unique id |
4498
- | support_email | [CommunicationDetails](#CommunicationDetails) | no | Support e-mail details |
4499
- | support_phone | [CommunicationDetails](#CommunicationDetails) | no | Support Phone number details |
4500
- | support_faq | [CommunicationDetails](#CommunicationDetails) | no | Support FAQ details |
4501
- | show_communication_info | boolean | no | Denotes if support communication info should be shown |
4502
- | support_communication | [CommunicationDetails](#CommunicationDetails) | no | Support communication array list details |
4503
- | show_support_dris | boolean | no | Denotes if support DRIS info should be shown |
4504
- | integration | string | no | Contains integrations basic information |
4505
-
4506
- ---
4507
-
4508
-
4509
-
4510
-
4511
- #### [FeedbackForm](#FeedbackForm)
4512
-
4513
- | Properties | Type | Nullable | Description |
4514
- | ---------- | ---- | -------- | ----------- |
4515
- | inputs | string | no | Input details for the feed back form |
4516
- | title | string | no | Title for the feed back form |
4517
- | timestamps | string | no | Gives details of category releted data |
4518
-
4519
- ---
4520
-
4521
-
4522
-
4523
-
4524
- #### [TicketSubCategory](#TicketSubCategory)
4525
-
4526
- | Properties | Type | Nullable | Description |
4527
- | ---------- | ---- | -------- | ----------- |
4528
- | key | string | yes | Key for sub-category |
4529
- | display | string | yes | Display text for sub-category |
4530
- | sub_categories | [TicketSubCategory](#TicketSubCategory) | no | |
4531
-
4532
- ---
4533
-
4534
-
4535
-
4536
-
4537
- #### [TicketCategory](#TicketCategory)
4538
-
4539
- | Properties | Type | Nullable | Description |
4540
- | ---------- | ---- | -------- | ----------- |
4541
- | display | string | yes | Category display value identifier |
4542
- | key | string | yes | Category key value identifier |
4543
- | sub_categories | [TicketCategory](#TicketCategory) | no | Support category array list details |
4544
- | group_id | number | no | Group id of category releted data |
4545
- | feedback_form | [FeedbackForm](#FeedbackForm) | no | Support category array list details |
4546
-
4547
- ---
4548
-
4549
-
4550
-
4551
-
4552
- #### [CategoryData](#CategoryData)
4553
-
4554
- | Properties | Type | Nullable | Description |
4555
- | ---------- | ---- | -------- | ----------- |
4556
- | list | [TicketCategory](#TicketCategory) | no | |
4557
-
4558
- ---
4559
-
4560
-
4561
-
4562
-
4563
- #### [IntegrationConfig](#IntegrationConfig)
4564
-
4565
- | Properties | Type | Nullable | Description |
4566
- | ---------- | ---- | -------- | ----------- |
4567
- | _id | string | no | Unique id |
4568
- | integration_type | string | yes | Enum string values for integration |
4569
- | base_url | string | no | Integration base url for validate and create ticket |
4570
- | create_ticket_apikey | string | no | Integration apikey to validate and create ticket |
4571
- | update_ticket_apikey | string | no | Integration apikey to update ticket |
4572
- | category_sync_apikey | string | no | Integration apikey to sync category of selected type |
4573
- | category_data | [CategoryData](#CategoryData) | no | Support category array list details |
4574
- | webhook_apikey | string | no | Integration webhook apikey to got callbacks from integration type dashboard like freshdesk, etc |
4575
- | config_completed | boolean | no | Denotes the current intergration is completed or partially done |
4576
- | allow_ticket_creation | boolean | yes | Denotes ticket creation enable or disable on platform |
4577
- | show_listing | boolean | yes | Denotes ticket listing enable or disable on platform |
4578
-
4579
- ---
4580
-
4581
-
4582
-
4583
-
4584
- #### [FeedbackResponseItem](#FeedbackResponseItem)
4585
-
4586
- | Properties | Type | Nullable | Description |
4587
- | ---------- | ---- | -------- | ----------- |
4588
- | display | string | yes | Question/Title of the form field |
4589
- | key | string | yes | Key of the form field |
4590
- | value | string | yes | User response value for the form field |
4591
-
4592
- ---
4593
-
4594
-
4595
-
4596
-
4597
- #### [TicketFeedback](#TicketFeedback)
4598
-
4599
- | Properties | Type | Nullable | Description |
4600
- | ---------- | ---- | -------- | ----------- |
4601
- | _id | string | yes | Unique identifier for the feedback |
4602
- | ticket_id | string | yes | Readable ticket number |
4603
- | company_id | string | yes | Company id for which ticket was raised |
4604
- | response | [[FeedbackResponseItem](#FeedbackResponseItem)] | yes | |
4605
- | category | string | no | Category of the ticket |
4606
- | user | string | no | User who submitted the feedback |
4607
- | updated_at | string | no | Time when the feedback was last updated |
4608
- | created_at | string | no | Time when the feedback was created |
4609
-
4610
- ---
4611
-
4612
-
4613
-
4614
-
4615
- #### [TicketHistory](#TicketHistory)
4616
-
4617
- | Properties | Type | Nullable | Description |
4618
- | ---------- | ---- | -------- | ----------- |
4619
- | type | string | yes | Type of the history event |
4620
- | value | string | yes | Data of the history event |
4621
- | ticket_id | string | yes | Readable ticket number |
4622
- | created_on | [CreatedOn](#CreatedOn) | no | Time of creation of the history event |
4623
- | created_by | string | no | User who created the history event |
4624
- | _id | string | yes | Unique identifier of the history event |
4625
- | updated_at | string | no | Time of last update of the history event |
4626
- | created_at | string | no | Time of creation of the history event |
4627
-
4628
- ---
4629
-
4630
-
4631
-
4632
-
4633
- #### [Ticket](#Ticket)
4634
-
4635
- | Properties | Type | Nullable | Description |
4636
- | ---------- | ---- | -------- | ----------- |
4637
- | context | [TicketContext](#TicketContext) | no | Details of company and application realated to the ticket |
4638
- | created_on | [CreatedOn](#CreatedOn) | no | Details of company and application realated to the ticket |
4639
- | response_id | string | no | Details of company and application realated to the ticket |
4640
- | content | [TicketContent](#TicketContent) | no | Ticket conetent details |
4641
- | category | [TicketCategory](#TicketCategory) | yes | Category assigned to the ticket |
4642
- | sub_category | string | no | Sub-category assigned to the ticket |
4643
- | source | [TicketSourceEnum](#TicketSourceEnum) | yes | Denotes if the ticket was created at company or application level |
4644
- | status | [Status](#Status) | yes | Denotes in what state is the ticket |
4645
- | priority | [Priority](#Priority) | yes | Denotes the priority of ticket |
4646
- | created_by | string | no | User details of ticket creator |
4647
- | assigned_to | string | no | Details of support staff to whom ticket is assigned |
4648
- | tags | [string] | no | Tags relevant to ticket |
4649
- | _custom_json | string | no | custom json relevant to the ticket |
4650
- | is_feedback_pending | boolean | no | Denotes if feedback submission is pending for the ticket |
4651
- | integration | string | no | Integration type and its details of the ticket |
4652
- | _id | string | yes | Unique identifier for the ticket |
4653
- | updated_at | string | no | Time when the ticket was last updated |
4654
- | created_at | string | no | Time when the ticket was created |
4655
-
4656
- ---
4657
-
4658
-
4659
-
4660
-
4661
- ### Enums
4662
-
4663
-
4664
-
4665
-
4666
-
4667
- #### [PriorityEnum](#PriorityEnum)
4668
- Type : string
4669
-
4670
- | Name | Value | Description |
4671
- | ---- | ----- | ----------- |
4672
- | low | low | This means ticket is low priority |
4673
- | medium | medium | This means ticket is medium priority |
4674
- | high | high | This means ticket is high priority |
4675
- | urgent | urgent | This means ticket is of urgent priority |
4676
-
4677
- ---
4678
-
4679
-
4680
-
4681
- #### [HistoryTypeEnum](#HistoryTypeEnum)
4682
- Type : string
4683
-
4684
- | Name | Value | Description |
4685
- | ---- | ----- | ----------- |
4686
- | rating | rating | This means history event is a rating |
4687
- | log | log | This means history event is a changelog |
4688
- | comment | comment | This means history event is a comment |
4689
-
4690
- ---
4691
-
4692
-
4693
-
4694
- #### [TicketAssetTypeEnum](#TicketAssetTypeEnum)
4695
- Type : string
4696
-
4697
- | Name | Value | Description |
4698
- | ---- | ----- | ----------- |
4699
- | image | image | Denotes asset is of image type |
4700
- | video | video | Denotes asset is of video type |
4701
- | file | file | Denotes asset is of file type |
4702
- | youtube | youtube | Denotes asset is an youtube link |
4703
- | product | product | Denotes asset is of product type |
4704
- | collection | collection | Denotes asset is of collection type |
4705
- | brand | brand | Denotes asset is of brand type |
4706
- | shipment | shipment | Denotes asset is of shipment type |
4707
- | order | order | Denotes asset is of order type |
4708
-
4709
- ---
4710
-
4711
-
4712
-
4713
- #### [TicketSourceEnum](#TicketSourceEnum)
4714
- Type : string
4715
-
4716
- | Name | Value | Description |
4717
- | ---- | ----- | ----------- |
4718
- | platformPanel | platform_panel | This means it is company level ticket |
4719
- | salesChannel | sales_channel | This means it is a application/sales channel level ticket |
4720
-
4721
- ---
4722
-
4723
-
4724
-
4725
- #### [TicketIntegrationDetails](#TicketIntegrationDetails)
4726
- Type : string
4727
-
4728
- | Name | Value | Description |
4729
- | ---- | ----- | ----------- |
4730
- | defaultCase | default | This means it is default level ticket integration |
4731
- | freshdesk | freshdesk | This means it is default level freshdesk integration |
4732
- | kapture | kapture | This means it is default level kapture integration |
4733
-
4734
- ---
4735
-
4736
-
4737
-
4738
-
4739
-
4740
-