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