@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,55 +1,1404 @@
1
- export = LeadModel;
2
- declare class LeadModel {
3
- static AddTicketPayload(): any;
4
- static AgentChangePayload(): any;
5
- static CategoryData(): any;
6
- static CloseVideoRoomResponse(): any;
7
- static CommunicationDetails(): any;
8
- static CreateCustomFormPayload(): any;
9
- static CreatedOn(): any;
10
- static CreateVideoRoomPayload(): any;
11
- static CreateVideoRoomResponse(): any;
12
- static CustomForm(): any;
13
- static CustomFormList(): any;
14
- static CustomFormSubmissionPayload(): any;
15
- static Debug(): any;
16
- static EditCustomFormPayload(): any;
17
- static EditTicketPayload(): any;
18
- static Email(): any;
19
- static FeedbackForm(): any;
20
- static FeedbackResponseItem(): any;
21
- static Filter(): any;
22
- static GetParticipantsInsideVideoRoomResponse(): any;
23
- static GetTokenForVideoRoomResponse(): any;
24
- static IntegrationConfig(): any;
25
- static NotifyUser(): any;
26
- static Page(): any;
27
- static Participant(): any;
28
- static PhoneNumber(): any;
29
- static PollForAssignment(): any;
30
- static Priority(): any;
31
- static Status(): any;
32
- static SubmitButton(): any;
33
- static SubmitCustomFormResponse(): any;
34
- static SupportGeneralConfig(): any;
35
- static Ticket(): any;
36
- static TicketAsset(): any;
37
- static TicketCategory(): any;
38
- static TicketContent(): any;
39
- static TicketContext(): any;
40
- static TicketFeedback(): any;
41
- static TicketFeedbackForm(): any;
42
- static TicketFeedbackList(): any;
43
- static TicketFeedbackPayload(): any;
44
- static TicketHistory(): any;
45
- static TicketHistoryList(): any;
46
- static TicketHistoryPayload(): any;
47
- static TicketList(): any;
48
- static TicketSubCategory(): any;
49
- static UserSchema(): any;
50
- static HistoryTypeEnum(): any;
51
- static PriorityEnum(): any;
52
- static TicketAssetTypeEnum(): any;
53
- static TicketIntegrationDetails(): any;
54
- static TicketSourceEnum(): any;
1
+ export = LeadPlatformModel;
2
+ /**
3
+ * @typedef AddTicketPayload
4
+ * @property {Object} [_custom_json] - Optional custom data that needs to be sent
5
+ * @property {string} category - Category of the ticket
6
+ * @property {TicketContent} content - Content for the ticket
7
+ * @property {Object} [created_by] - Creator of the ticket
8
+ * @property {PriorityEnum} [priority] - Priority of the ticket
9
+ * @property {string} [status] - Status of the ticket
10
+ */
11
+ /**
12
+ * @typedef AgentChangePayload
13
+ * @property {string} agent_id - Agent's unique ID
14
+ */
15
+ /**
16
+ * @typedef CategoryData
17
+ * @property {TicketCategory} [list]
18
+ */
19
+ /**
20
+ * @typedef CloseVideoRoomResponse
21
+ * @property {boolean} success - Denotes if operation was successfully
22
+ */
23
+ /**
24
+ * @typedef CommunicationDetails
25
+ * @property {string} [description] - Short description for the communication method
26
+ * @property {boolean} [enabled] - Denotes if this communication method has to be shown
27
+ * @property {string} [title] - Title for the communication method
28
+ * @property {string} [type] - Enum type for the communication method
29
+ * @property {string} [value] - Value for the communication method
30
+ */
31
+ /**
32
+ * @typedef CreateCustomFormPayload
33
+ * @property {string} [description] - Description of the form
34
+ * @property {string} [header_image] - Header image that is to be shown for the form
35
+ * @property {Object[]} inputs - List of all the form components
36
+ * @property {PollForAssignment} [poll_for_assignment] - Describes how polling
37
+ * will be done for the tickets createds
38
+ * @property {PriorityEnum} priority - Describes the priority of the tickets
39
+ * created by the form
40
+ * @property {boolean} [should_notify] - Indicates if staff should be notified
41
+ * when a response is received
42
+ * @property {string} slug - Slug for the form
43
+ * @property {string} [success_message] - Success message that will be shown on submission
44
+ * @property {string} title - Title for the form
45
+ */
46
+ /**
47
+ * @typedef CreatedOn
48
+ * @property {string} user_agent - Useragent details
49
+ */
50
+ /**
51
+ * @typedef CreateVideoRoomPayload
52
+ * @property {NotifyUser[]} [notify] - List of people to be notified
53
+ * @property {string} unique_name - Ticket id
54
+ */
55
+ /**
56
+ * @typedef CreateVideoRoomResponse
57
+ * @property {string} unique_name - Video Room's unique name
58
+ */
59
+ /**
60
+ * @typedef CustomForm
61
+ * @property {string} _id - Unique identifier for the form
62
+ * @property {string} application_id - Application ID for form
63
+ * @property {CreatedOn} [created_on] - Gives details of when the form was created
64
+ * @property {string} [description] - Form description that will be shown to the user
65
+ * @property {string} [header_image] - Form header image that will be shown to the user
66
+ * @property {Object[]} inputs - List of all the form fields
67
+ * @property {boolean} login_required - Denotes if login is required to make a
68
+ * form response submission
69
+ * @property {PollForAssignment} [poll_for_assignment] - Details of how polling
70
+ * should be done for support
71
+ * @property {Priority} priority - Sets priority of tickets created by form response
72
+ * @property {boolean} should_notify - Denotes if new response submission for
73
+ * the form should be notified to the assignees
74
+ * @property {string} slug - Slug for the form, which is to be used for accessing the form
75
+ * @property {SubmitButton} [submit_button] - Details for submit button
76
+ * @property {string} [success_message] - Message that is to be shown on
77
+ * succesfull form response submission
78
+ * @property {string} title - Form title that will be shown to the user
79
+ */
80
+ /**
81
+ * @typedef CustomFormList
82
+ * @property {CustomForm[]} [items] - List of forms
83
+ * @property {Page} [page] - Describes the pagination state
84
+ */
85
+ /**
86
+ * @typedef CustomFormSubmissionPayload
87
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to the form
88
+ * @property {Object[]} response - Form response
89
+ */
90
+ /**
91
+ * @typedef Debug
92
+ * @property {string} [platform] - Platform of user
93
+ * @property {string} [source] - Source of user
94
+ */
95
+ /**
96
+ * @typedef EditCustomFormPayload
97
+ * @property {string} [description] - Description of the form
98
+ * @property {string} [header_image] - Header image that is to be shown for the form
99
+ * @property {Object[]} inputs - List of all the form components
100
+ * @property {boolean} [login_required] - Denotes if login is required to make a
101
+ * form response submission
102
+ * @property {PollForAssignment} [poll_for_assignment] - Describes how polling
103
+ * will be done for the tickets createds
104
+ * @property {PriorityEnum} priority - Describes the priority of the tickets
105
+ * created by the form
106
+ * @property {boolean} [should_notify] - Indicates if staff should be notified
107
+ * when a response is received
108
+ * @property {string} [success_message] - Success message that will be shown on submission
109
+ * @property {string} title - Title for the form
110
+ */
111
+ /**
112
+ * @typedef EditTicketPayload
113
+ * @property {AgentChangePayload} [assigned_to] - Details of support staff to
114
+ * whom ticket is assigned
115
+ * @property {string} [category] - Category assigned to the ticket
116
+ * @property {TicketContent} [content] - Ticket conetent details
117
+ * @property {PriorityEnum} [priority] - Denotes the priority of ticket
118
+ * @property {string} [source] - Denotes if the ticket was created at company or
119
+ * application level
120
+ * @property {string} [status] - Denotes in what state is the ticket
121
+ * @property {string} [sub_category] - Sub-category assigned to the ticket
122
+ * @property {string[]} [tags] - Tags relevant to ticket
123
+ */
124
+ /**
125
+ * @typedef Email
126
+ * @property {boolean} [active] - Denotes if the email is active
127
+ * @property {string} [email] - Email Address
128
+ * @property {boolean} [primary] - Denotes it's the primary email for the account
129
+ * @property {boolean} [verified] - Denotes it's a verified email
130
+ */
131
+ /**
132
+ * @typedef FeedbackForm
133
+ * @property {Object} [inputs] - Input details for the feed back form
134
+ * @property {Object} [timestamps] - Gives details of category releted data
135
+ * @property {string} [title] - Title for the feed back form
136
+ */
137
+ /**
138
+ * @typedef FeedbackResponseItem
139
+ * @property {string} display - Question/Title of the form field
140
+ * @property {string} key - Key of the form field
141
+ * @property {string} value - User response value for the form field
142
+ */
143
+ /**
144
+ * @typedef Filter
145
+ * @property {Object[]} assignees - List of support staff availble for tickets assignment
146
+ * @property {TicketCategory[]} [categories] - List of possible categories for tickets
147
+ * @property {Priority[]} priorities - List of possible priorities for tickets
148
+ * @property {Status[]} statuses - List of possible statuses for tickets
149
+ */
150
+ /**
151
+ * @typedef GetParticipantsInsideVideoRoomResponse
152
+ * @property {Participant[]} participants - List of participants of the video room
153
+ */
154
+ /**
155
+ * @typedef GetTokenForVideoRoomResponse
156
+ * @property {string} access_token - Access token to be used for video room
157
+ */
158
+ /**
159
+ * @typedef IntegrationConfig
160
+ * @property {string} [_id] - Unique id
161
+ * @property {boolean} allow_ticket_creation - Denotes ticket creation enable or
162
+ * disable on platform
163
+ * @property {string} [base_url] - Integration base url for validate and create ticket
164
+ * @property {CategoryData} [category_data] - Support category array list details
165
+ * @property {string} [category_sync_apikey] - Integration apikey to sync
166
+ * category of selected type
167
+ * @property {boolean} [config_completed] - Denotes the current intergration is
168
+ * completed or partially done
169
+ * @property {string} [create_ticket_apikey] - Integration apikey to validate
170
+ * and create ticket
171
+ * @property {string} integration_type - Enum string values for integration
172
+ * @property {boolean} show_listing - Denotes ticket listing enable or disable on platform
173
+ * @property {string} [update_ticket_apikey] - Integration apikey to update ticket
174
+ * @property {string} [webhook_apikey] - Integration webhook apikey to got
175
+ * callbacks from integration type dashboard like freshdesk, etc
176
+ */
177
+ /**
178
+ * @typedef NotifyUser
179
+ * @property {string} country_code - Country code
180
+ * @property {string} phone_number - Phone number
181
+ */
182
+ /**
183
+ * @typedef Page
184
+ * @property {number} [current]
185
+ * @property {boolean} [has_next]
186
+ * @property {boolean} [has_previous]
187
+ * @property {number} [item_total]
188
+ * @property {string} [next_id]
189
+ * @property {number} [size]
190
+ * @property {string} type
191
+ */
192
+ /**
193
+ * @typedef Participant
194
+ * @property {string} [identity] - Unique identifier of participant
195
+ * @property {string} [status] - Status of participant
196
+ * @property {UserSchema} [user] - Details of participant
197
+ */
198
+ /**
199
+ * @typedef PhoneNumber
200
+ * @property {boolean} [active] - Denotes if the phone number is active
201
+ * @property {number} [country_code] - Country code
202
+ * @property {string} [phone] - Phone number
203
+ * @property {boolean} [primary] - Denotes it's the primary phone number for the account
204
+ * @property {boolean} [verified] - Denotes it's a verified phone number
205
+ */
206
+ /**
207
+ * @typedef PollForAssignment
208
+ * @property {number} duration - Duration for polling of staff
209
+ * @property {string} failure_message - Message if polling failed
210
+ * @property {string} message - Message for polling
211
+ * @property {string} success_message - Message for successful polling
212
+ */
213
+ /**
214
+ * @typedef Priority
215
+ * @property {string} color - Color for priority
216
+ * @property {string} display - Display text for priority
217
+ * @property {PriorityEnum} key - Key for priority
218
+ */
219
+ /**
220
+ * @typedef Status
221
+ * @property {string} color - Color for status
222
+ * @property {string} display - Display text for status
223
+ * @property {string} key - Key for status
224
+ */
225
+ /**
226
+ * @typedef SubmitButton
227
+ * @property {string} background_color - Color for submit button
228
+ * @property {string} title - Title for submit button
229
+ * @property {string} title_color - Title color submit button
230
+ */
231
+ /**
232
+ * @typedef SubmitCustomFormResponse
233
+ * @property {string} message - Success message for form submission
234
+ * @property {Ticket} [ticket] - Ticket created on form submission
235
+ */
236
+ /**
237
+ * @typedef SupportGeneralConfig
238
+ * @property {string} [_id] - Unique id
239
+ * @property {Object} [integration] - Contains integrations basic information
240
+ * @property {boolean} [show_communication_info] - Denotes if support
241
+ * communication info should be shown
242
+ * @property {boolean} [show_support_dris] - Denotes if support DRIS info should be shown
243
+ * @property {CommunicationDetails} [support_communication] - Support
244
+ * communication array list details
245
+ * @property {CommunicationDetails} [support_email] - Support e-mail details
246
+ * @property {CommunicationDetails} [support_faq] - Support FAQ details
247
+ * @property {CommunicationDetails} [support_phone] - Support Phone number details
248
+ * @property {string} [type] - The enity/platform for which the config is stored
249
+ */
250
+ /**
251
+ * @typedef Ticket
252
+ * @property {Object} [_custom_json] - Custom json relevant to the ticket
253
+ * @property {string} _id - Unique identifier for the ticket
254
+ * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
255
+ * @property {TicketCategory} category - Category assigned to the ticket
256
+ * @property {TicketContent} [content] - Ticket conetent details
257
+ * @property {TicketContext} [context] - Details of company and application
258
+ * realated to the ticket
259
+ * @property {string} [created_at] - Time when the ticket was created
260
+ * @property {Object} [created_by] - User details of ticket creator
261
+ * @property {CreatedOn} [created_on] - Details of company and application
262
+ * realated to the ticket
263
+ * @property {Object} [integration] - Integration type and its details of the ticket
264
+ * @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
265
+ * pending for the ticket
266
+ * @property {Priority} priority - Denotes the priority of ticket
267
+ * @property {string} [response_id] - Details of company and application
268
+ * realated to the ticket
269
+ * @property {TicketSourceEnum} source - Denotes if the ticket was created at
270
+ * company or application level
271
+ * @property {Status} status - Denotes in what state is the ticket
272
+ * @property {string} [sub_category] - Sub-category assigned to the ticket
273
+ * @property {string[]} [tags] - Tags relevant to ticket
274
+ * @property {string} [updated_at] - Time when the ticket was last updated
275
+ */
276
+ /**
277
+ * @typedef TicketAsset
278
+ * @property {string} [display] - Display text for asset
279
+ * @property {TicketAssetTypeEnum} type - Type of asset
280
+ * @property {string} value - To be used for details
281
+ */
282
+ /**
283
+ * @typedef TicketCategory
284
+ * @property {string} display - Category display value identifier
285
+ * @property {FeedbackForm} [feedback_form] - Support category array list details
286
+ * @property {number} [group_id] - Group id of category releted data
287
+ * @property {string} key - Category key value identifier
288
+ * @property {TicketCategory} [sub_categories] - Support category array list details
289
+ */
290
+ /**
291
+ * @typedef TicketContent
292
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
293
+ * @property {string} [description] - Long description of issue
294
+ * @property {string} title - Title for ticket
295
+ */
296
+ /**
297
+ * @typedef TicketContext
298
+ * @property {string} [application_id] - Application ID related to the ticket
299
+ * @property {string} company_id - Company ID related to the ticket
300
+ */
301
+ /**
302
+ * @typedef TicketFeedback
303
+ * @property {string} _id - Unique identifier for the feedback
304
+ * @property {string} [category] - Category of the ticket
305
+ * @property {string} company_id - Company id for which ticket was raised
306
+ * @property {string} [created_at] - Time when the feedback was created
307
+ * @property {FeedbackResponseItem[]} response
308
+ * @property {string} ticket_id - Readable ticket number
309
+ * @property {string} [updated_at] - Time when the feedback was last updated
310
+ * @property {Object} [user] - User who submitted the feedback
311
+ */
312
+ /**
313
+ * @typedef TicketFeedbackForm
314
+ * @property {Object[]} [display] - List of all the form fields
315
+ * @property {string} title - Feedback form title that will be shown to the user
316
+ */
317
+ /**
318
+ * @typedef TicketFeedbackList
319
+ * @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
320
+ */
321
+ /**
322
+ * @typedef TicketFeedbackPayload
323
+ * @property {Object} [form_response] - Key-value pairs of all the form fields
324
+ * and their response
325
+ */
326
+ /**
327
+ * @typedef TicketHistory
328
+ * @property {string} _id - Unique identifier of the history event
329
+ * @property {string} [created_at] - Time of creation of the history event
330
+ * @property {Object} [created_by] - User who created the history event
331
+ * @property {CreatedOn} [created_on] - Time of creation of the history event
332
+ * @property {string} ticket_id - Readable ticket number
333
+ * @property {string} type - Type of the history event
334
+ * @property {string} [updated_at] - Time of last update of the history event
335
+ * @property {Object} value - Data of the history event
336
+ */
337
+ /**
338
+ * @typedef TicketHistoryList
339
+ * @property {TicketHistory[]} [items] - List of ticket history
340
+ * @property {Page} [page] - Describes the pagination state
341
+ */
342
+ /**
343
+ * @typedef TicketHistoryPayload
344
+ * @property {HistoryTypeEnum} type - Type of history event
345
+ * @property {Object} value - Details of history event
346
+ */
347
+ /**
348
+ * @typedef TicketList
349
+ * @property {Filter} [filters] - All the filters available for tickets
350
+ * @property {Ticket[]} [items] - List of tickets
351
+ * @property {Page} [page] - Describes the pagination state
352
+ */
353
+ /**
354
+ * @typedef TicketSubCategory
355
+ * @property {string} display - Display text for sub-category
356
+ * @property {string} key - Key for sub-category
357
+ * @property {TicketSubCategory} [sub_categories]
358
+ */
359
+ /**
360
+ * @typedef UserSchema
361
+ * @property {string} [_id]
362
+ * @property {string} [account_type]
363
+ * @property {boolean} [active]
364
+ * @property {string} [application_id]
365
+ * @property {string} [created_at]
366
+ * @property {string} [dob]
367
+ * @property {Email[]} [emails]
368
+ * @property {string} [first_name]
369
+ * @property {string} [gender]
370
+ * @property {string} [last_name]
371
+ * @property {Object} [meta]
372
+ * @property {PhoneNumber[]} [phone_numbers]
373
+ * @property {string} [profile_pic_url]
374
+ * @property {string} [updated_at]
375
+ * @property {string} [user_id]
376
+ * @property {string} [username]
377
+ */
378
+ /** @typedef {"rating" | "log" | "comment"} HistoryTypeEnum */
379
+ /** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
380
+ /**
381
+ * @typedef {| "image"
382
+ * | "video"
383
+ * | "file"
384
+ * | "youtube"
385
+ * | "product"
386
+ * | "collection"
387
+ * | "brand"
388
+ * | "shipment"
389
+ * | "order"} TicketAssetTypeEnum
390
+ */
391
+ /** @typedef {"default" | "freshdesk" | "kapture"} TicketIntegrationDetails */
392
+ /** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
393
+ declare class LeadPlatformModel {
55
394
  }
395
+ declare namespace LeadPlatformModel {
396
+ export { AddTicketPayload, AgentChangePayload, CategoryData, CloseVideoRoomResponse, CommunicationDetails, CreateCustomFormPayload, CreatedOn, CreateVideoRoomPayload, CreateVideoRoomResponse, CustomForm, CustomFormList, CustomFormSubmissionPayload, Debug, EditCustomFormPayload, EditTicketPayload, Email, FeedbackForm, FeedbackResponseItem, Filter, GetParticipantsInsideVideoRoomResponse, GetTokenForVideoRoomResponse, IntegrationConfig, NotifyUser, Page, Participant, PhoneNumber, PollForAssignment, Priority, Status, SubmitButton, SubmitCustomFormResponse, SupportGeneralConfig, Ticket, TicketAsset, TicketCategory, TicketContent, TicketContext, TicketFeedback, TicketFeedbackForm, TicketFeedbackList, TicketFeedbackPayload, TicketHistory, TicketHistoryList, TicketHistoryPayload, TicketList, TicketSubCategory, UserSchema, HistoryTypeEnum, PriorityEnum, TicketAssetTypeEnum, TicketIntegrationDetails, TicketSourceEnum };
397
+ }
398
+ /** @returns {AddTicketPayload} */
399
+ declare function AddTicketPayload(): AddTicketPayload;
400
+ type AddTicketPayload = {
401
+ /**
402
+ * - Optional custom data that needs to be sent
403
+ */
404
+ _custom_json?: any;
405
+ /**
406
+ * - Category of the ticket
407
+ */
408
+ category: string;
409
+ /**
410
+ * - Content for the ticket
411
+ */
412
+ content: TicketContent;
413
+ /**
414
+ * - Creator of the ticket
415
+ */
416
+ created_by?: any;
417
+ /**
418
+ * - Priority of the ticket
419
+ */
420
+ priority?: PriorityEnum;
421
+ /**
422
+ * - Status of the ticket
423
+ */
424
+ status?: string;
425
+ };
426
+ /** @returns {AgentChangePayload} */
427
+ declare function AgentChangePayload(): AgentChangePayload;
428
+ type AgentChangePayload = {
429
+ /**
430
+ * - Agent's unique ID
431
+ */
432
+ agent_id: string;
433
+ };
434
+ /** @returns {CategoryData} */
435
+ declare function CategoryData(): CategoryData;
436
+ type CategoryData = {
437
+ list?: TicketCategory;
438
+ };
439
+ /** @returns {CloseVideoRoomResponse} */
440
+ declare function CloseVideoRoomResponse(): CloseVideoRoomResponse;
441
+ type CloseVideoRoomResponse = {
442
+ /**
443
+ * - Denotes if operation was successfully
444
+ */
445
+ success: boolean;
446
+ };
447
+ /** @returns {CommunicationDetails} */
448
+ declare function CommunicationDetails(): CommunicationDetails;
449
+ type CommunicationDetails = {
450
+ /**
451
+ * - Short description for the communication method
452
+ */
453
+ description?: string;
454
+ /**
455
+ * - Denotes if this communication method has to be shown
456
+ */
457
+ enabled?: boolean;
458
+ /**
459
+ * - Title for the communication method
460
+ */
461
+ title?: string;
462
+ /**
463
+ * - Enum type for the communication method
464
+ */
465
+ type?: string;
466
+ /**
467
+ * - Value for the communication method
468
+ */
469
+ value?: string;
470
+ };
471
+ /** @returns {CreateCustomFormPayload} */
472
+ declare function CreateCustomFormPayload(): CreateCustomFormPayload;
473
+ type CreateCustomFormPayload = {
474
+ /**
475
+ * - Description of the form
476
+ */
477
+ description?: string;
478
+ /**
479
+ * - Header image that is to be shown for the form
480
+ */
481
+ header_image?: string;
482
+ /**
483
+ * - List of all the form components
484
+ */
485
+ inputs: any[];
486
+ /**
487
+ * - Describes how polling
488
+ * will be done for the tickets createds
489
+ */
490
+ poll_for_assignment?: PollForAssignment;
491
+ /**
492
+ * - Describes the priority of the tickets
493
+ * created by the form
494
+ */
495
+ priority: PriorityEnum;
496
+ /**
497
+ * - Indicates if staff should be notified
498
+ * when a response is received
499
+ */
500
+ should_notify?: boolean;
501
+ /**
502
+ * - Slug for the form
503
+ */
504
+ slug: string;
505
+ /**
506
+ * - Success message that will be shown on submission
507
+ */
508
+ success_message?: string;
509
+ /**
510
+ * - Title for the form
511
+ */
512
+ title: string;
513
+ };
514
+ /** @returns {CreatedOn} */
515
+ declare function CreatedOn(): CreatedOn;
516
+ type CreatedOn = {
517
+ /**
518
+ * - Useragent details
519
+ */
520
+ user_agent: string;
521
+ };
522
+ /** @returns {CreateVideoRoomPayload} */
523
+ declare function CreateVideoRoomPayload(): CreateVideoRoomPayload;
524
+ type CreateVideoRoomPayload = {
525
+ /**
526
+ * - List of people to be notified
527
+ */
528
+ notify?: NotifyUser[];
529
+ /**
530
+ * - Ticket id
531
+ */
532
+ unique_name: string;
533
+ };
534
+ /** @returns {CreateVideoRoomResponse} */
535
+ declare function CreateVideoRoomResponse(): CreateVideoRoomResponse;
536
+ type CreateVideoRoomResponse = {
537
+ /**
538
+ * - Video Room's unique name
539
+ */
540
+ unique_name: string;
541
+ };
542
+ /** @returns {CustomForm} */
543
+ declare function CustomForm(): CustomForm;
544
+ type CustomForm = {
545
+ /**
546
+ * - Unique identifier for the form
547
+ */
548
+ _id: string;
549
+ /**
550
+ * - Application ID for form
551
+ */
552
+ application_id: string;
553
+ /**
554
+ * - Gives details of when the form was created
555
+ */
556
+ created_on?: CreatedOn;
557
+ /**
558
+ * - Form description that will be shown to the user
559
+ */
560
+ description?: string;
561
+ /**
562
+ * - Form header image that will be shown to the user
563
+ */
564
+ header_image?: string;
565
+ /**
566
+ * - List of all the form fields
567
+ */
568
+ inputs: any[];
569
+ /**
570
+ * - Denotes if login is required to make a
571
+ * form response submission
572
+ */
573
+ login_required: boolean;
574
+ /**
575
+ * - Details of how polling
576
+ * should be done for support
577
+ */
578
+ poll_for_assignment?: PollForAssignment;
579
+ /**
580
+ * - Sets priority of tickets created by form response
581
+ */
582
+ priority: Priority;
583
+ /**
584
+ * - Denotes if new response submission for
585
+ * the form should be notified to the assignees
586
+ */
587
+ should_notify: boolean;
588
+ /**
589
+ * - Slug for the form, which is to be used for accessing the form
590
+ */
591
+ slug: string;
592
+ /**
593
+ * - Details for submit button
594
+ */
595
+ submit_button?: SubmitButton;
596
+ /**
597
+ * - Message that is to be shown on
598
+ * succesfull form response submission
599
+ */
600
+ success_message?: string;
601
+ /**
602
+ * - Form title that will be shown to the user
603
+ */
604
+ title: string;
605
+ };
606
+ /** @returns {CustomFormList} */
607
+ declare function CustomFormList(): CustomFormList;
608
+ type CustomFormList = {
609
+ /**
610
+ * - List of forms
611
+ */
612
+ items?: CustomForm[];
613
+ /**
614
+ * - Describes the pagination state
615
+ */
616
+ page?: Page;
617
+ };
618
+ /** @returns {CustomFormSubmissionPayload} */
619
+ declare function CustomFormSubmissionPayload(): CustomFormSubmissionPayload;
620
+ type CustomFormSubmissionPayload = {
621
+ /**
622
+ * - List of all attachments related to the form
623
+ */
624
+ attachments?: TicketAsset[];
625
+ /**
626
+ * - Form response
627
+ */
628
+ response: any[];
629
+ };
630
+ /** @returns {Debug} */
631
+ declare function Debug(): Debug;
632
+ type Debug = {
633
+ /**
634
+ * - Platform of user
635
+ */
636
+ platform?: string;
637
+ /**
638
+ * - Source of user
639
+ */
640
+ source?: string;
641
+ };
642
+ /** @returns {EditCustomFormPayload} */
643
+ declare function EditCustomFormPayload(): EditCustomFormPayload;
644
+ type EditCustomFormPayload = {
645
+ /**
646
+ * - Description of the form
647
+ */
648
+ description?: string;
649
+ /**
650
+ * - Header image that is to be shown for the form
651
+ */
652
+ header_image?: string;
653
+ /**
654
+ * - List of all the form components
655
+ */
656
+ inputs: any[];
657
+ /**
658
+ * - Denotes if login is required to make a
659
+ * form response submission
660
+ */
661
+ login_required?: boolean;
662
+ /**
663
+ * - Describes how polling
664
+ * will be done for the tickets createds
665
+ */
666
+ poll_for_assignment?: PollForAssignment;
667
+ /**
668
+ * - Describes the priority of the tickets
669
+ * created by the form
670
+ */
671
+ priority: PriorityEnum;
672
+ /**
673
+ * - Indicates if staff should be notified
674
+ * when a response is received
675
+ */
676
+ should_notify?: boolean;
677
+ /**
678
+ * - Success message that will be shown on submission
679
+ */
680
+ success_message?: string;
681
+ /**
682
+ * - Title for the form
683
+ */
684
+ title: string;
685
+ };
686
+ /** @returns {EditTicketPayload} */
687
+ declare function EditTicketPayload(): EditTicketPayload;
688
+ type EditTicketPayload = {
689
+ /**
690
+ * - Details of support staff to
691
+ * whom ticket is assigned
692
+ */
693
+ assigned_to?: AgentChangePayload;
694
+ /**
695
+ * - Category assigned to the ticket
696
+ */
697
+ category?: string;
698
+ /**
699
+ * - Ticket conetent details
700
+ */
701
+ content?: TicketContent;
702
+ /**
703
+ * - Denotes the priority of ticket
704
+ */
705
+ priority?: PriorityEnum;
706
+ /**
707
+ * - Denotes if the ticket was created at company or
708
+ * application level
709
+ */
710
+ source?: string;
711
+ /**
712
+ * - Denotes in what state is the ticket
713
+ */
714
+ status?: string;
715
+ /**
716
+ * - Sub-category assigned to the ticket
717
+ */
718
+ sub_category?: string;
719
+ /**
720
+ * - Tags relevant to ticket
721
+ */
722
+ tags?: string[];
723
+ };
724
+ /** @returns {Email} */
725
+ declare function Email(): Email;
726
+ type Email = {
727
+ /**
728
+ * - Denotes if the email is active
729
+ */
730
+ active?: boolean;
731
+ /**
732
+ * - Email Address
733
+ */
734
+ email?: string;
735
+ /**
736
+ * - Denotes it's the primary email for the account
737
+ */
738
+ primary?: boolean;
739
+ /**
740
+ * - Denotes it's a verified email
741
+ */
742
+ verified?: boolean;
743
+ };
744
+ /** @returns {FeedbackForm} */
745
+ declare function FeedbackForm(): FeedbackForm;
746
+ type FeedbackForm = {
747
+ /**
748
+ * - Input details for the feed back form
749
+ */
750
+ inputs?: any;
751
+ /**
752
+ * - Gives details of category releted data
753
+ */
754
+ timestamps?: any;
755
+ /**
756
+ * - Title for the feed back form
757
+ */
758
+ title?: string;
759
+ };
760
+ /** @returns {FeedbackResponseItem} */
761
+ declare function FeedbackResponseItem(): FeedbackResponseItem;
762
+ type FeedbackResponseItem = {
763
+ /**
764
+ * - Question/Title of the form field
765
+ */
766
+ display: string;
767
+ /**
768
+ * - Key of the form field
769
+ */
770
+ key: string;
771
+ /**
772
+ * - User response value for the form field
773
+ */
774
+ value: string;
775
+ };
776
+ /** @returns {Filter} */
777
+ declare function Filter(): Filter;
778
+ type Filter = {
779
+ /**
780
+ * - List of support staff availble for tickets assignment
781
+ */
782
+ assignees: any[];
783
+ /**
784
+ * - List of possible categories for tickets
785
+ */
786
+ categories?: TicketCategory[];
787
+ /**
788
+ * - List of possible priorities for tickets
789
+ */
790
+ priorities: Priority[];
791
+ /**
792
+ * - List of possible statuses for tickets
793
+ */
794
+ statuses: Status[];
795
+ };
796
+ /** @returns {GetParticipantsInsideVideoRoomResponse} */
797
+ declare function GetParticipantsInsideVideoRoomResponse(): GetParticipantsInsideVideoRoomResponse;
798
+ type GetParticipantsInsideVideoRoomResponse = {
799
+ /**
800
+ * - List of participants of the video room
801
+ */
802
+ participants: Participant[];
803
+ };
804
+ /** @returns {GetTokenForVideoRoomResponse} */
805
+ declare function GetTokenForVideoRoomResponse(): GetTokenForVideoRoomResponse;
806
+ type GetTokenForVideoRoomResponse = {
807
+ /**
808
+ * - Access token to be used for video room
809
+ */
810
+ access_token: string;
811
+ };
812
+ /** @returns {IntegrationConfig} */
813
+ declare function IntegrationConfig(): IntegrationConfig;
814
+ type IntegrationConfig = {
815
+ /**
816
+ * - Unique id
817
+ */
818
+ _id?: string;
819
+ /**
820
+ * - Denotes ticket creation enable or
821
+ * disable on platform
822
+ */
823
+ allow_ticket_creation: boolean;
824
+ /**
825
+ * - Integration base url for validate and create ticket
826
+ */
827
+ base_url?: string;
828
+ /**
829
+ * - Support category array list details
830
+ */
831
+ category_data?: CategoryData;
832
+ /**
833
+ * - Integration apikey to sync
834
+ * category of selected type
835
+ */
836
+ category_sync_apikey?: string;
837
+ /**
838
+ * - Denotes the current intergration is
839
+ * completed or partially done
840
+ */
841
+ config_completed?: boolean;
842
+ /**
843
+ * - Integration apikey to validate
844
+ * and create ticket
845
+ */
846
+ create_ticket_apikey?: string;
847
+ /**
848
+ * - Enum string values for integration
849
+ */
850
+ integration_type: string;
851
+ /**
852
+ * - Denotes ticket listing enable or disable on platform
853
+ */
854
+ show_listing: boolean;
855
+ /**
856
+ * - Integration apikey to update ticket
857
+ */
858
+ update_ticket_apikey?: string;
859
+ /**
860
+ * - Integration webhook apikey to got
861
+ * callbacks from integration type dashboard like freshdesk, etc
862
+ */
863
+ webhook_apikey?: string;
864
+ };
865
+ /** @returns {NotifyUser} */
866
+ declare function NotifyUser(): NotifyUser;
867
+ type NotifyUser = {
868
+ /**
869
+ * - Country code
870
+ */
871
+ country_code: string;
872
+ /**
873
+ * - Phone number
874
+ */
875
+ phone_number: string;
876
+ };
877
+ /** @returns {Page} */
878
+ declare function Page(): Page;
879
+ type Page = {
880
+ current?: number;
881
+ has_next?: boolean;
882
+ has_previous?: boolean;
883
+ item_total?: number;
884
+ next_id?: string;
885
+ size?: number;
886
+ type: string;
887
+ };
888
+ /** @returns {Participant} */
889
+ declare function Participant(): Participant;
890
+ type Participant = {
891
+ /**
892
+ * - Unique identifier of participant
893
+ */
894
+ identity?: string;
895
+ /**
896
+ * - Status of participant
897
+ */
898
+ status?: string;
899
+ /**
900
+ * - Details of participant
901
+ */
902
+ user?: UserSchema;
903
+ };
904
+ /** @returns {PhoneNumber} */
905
+ declare function PhoneNumber(): PhoneNumber;
906
+ type PhoneNumber = {
907
+ /**
908
+ * - Denotes if the phone number is active
909
+ */
910
+ active?: boolean;
911
+ /**
912
+ * - Country code
913
+ */
914
+ country_code?: number;
915
+ /**
916
+ * - Phone number
917
+ */
918
+ phone?: string;
919
+ /**
920
+ * - Denotes it's the primary phone number for the account
921
+ */
922
+ primary?: boolean;
923
+ /**
924
+ * - Denotes it's a verified phone number
925
+ */
926
+ verified?: boolean;
927
+ };
928
+ /** @returns {PollForAssignment} */
929
+ declare function PollForAssignment(): PollForAssignment;
930
+ type PollForAssignment = {
931
+ /**
932
+ * - Duration for polling of staff
933
+ */
934
+ duration: number;
935
+ /**
936
+ * - Message if polling failed
937
+ */
938
+ failure_message: string;
939
+ /**
940
+ * - Message for polling
941
+ */
942
+ message: string;
943
+ /**
944
+ * - Message for successful polling
945
+ */
946
+ success_message: string;
947
+ };
948
+ /** @returns {Priority} */
949
+ declare function Priority(): Priority;
950
+ type Priority = {
951
+ /**
952
+ * - Color for priority
953
+ */
954
+ color: string;
955
+ /**
956
+ * - Display text for priority
957
+ */
958
+ display: string;
959
+ /**
960
+ * - Key for priority
961
+ */
962
+ key: PriorityEnum;
963
+ };
964
+ /** @returns {Status} */
965
+ declare function Status(): Status;
966
+ type Status = {
967
+ /**
968
+ * - Color for status
969
+ */
970
+ color: string;
971
+ /**
972
+ * - Display text for status
973
+ */
974
+ display: string;
975
+ /**
976
+ * - Key for status
977
+ */
978
+ key: string;
979
+ };
980
+ /** @returns {SubmitButton} */
981
+ declare function SubmitButton(): SubmitButton;
982
+ type SubmitButton = {
983
+ /**
984
+ * - Color for submit button
985
+ */
986
+ background_color: string;
987
+ /**
988
+ * - Title for submit button
989
+ */
990
+ title: string;
991
+ /**
992
+ * - Title color submit button
993
+ */
994
+ title_color: string;
995
+ };
996
+ /** @returns {SubmitCustomFormResponse} */
997
+ declare function SubmitCustomFormResponse(): SubmitCustomFormResponse;
998
+ type SubmitCustomFormResponse = {
999
+ /**
1000
+ * - Success message for form submission
1001
+ */
1002
+ message: string;
1003
+ /**
1004
+ * - Ticket created on form submission
1005
+ */
1006
+ ticket?: Ticket;
1007
+ };
1008
+ /** @returns {SupportGeneralConfig} */
1009
+ declare function SupportGeneralConfig(): SupportGeneralConfig;
1010
+ type SupportGeneralConfig = {
1011
+ /**
1012
+ * - Unique id
1013
+ */
1014
+ _id?: string;
1015
+ /**
1016
+ * - Contains integrations basic information
1017
+ */
1018
+ integration?: any;
1019
+ /**
1020
+ * - Denotes if support
1021
+ * communication info should be shown
1022
+ */
1023
+ show_communication_info?: boolean;
1024
+ /**
1025
+ * - Denotes if support DRIS info should be shown
1026
+ */
1027
+ show_support_dris?: boolean;
1028
+ /**
1029
+ * - Support
1030
+ * communication array list details
1031
+ */
1032
+ support_communication?: CommunicationDetails;
1033
+ /**
1034
+ * - Support e-mail details
1035
+ */
1036
+ support_email?: CommunicationDetails;
1037
+ /**
1038
+ * - Support FAQ details
1039
+ */
1040
+ support_faq?: CommunicationDetails;
1041
+ /**
1042
+ * - Support Phone number details
1043
+ */
1044
+ support_phone?: CommunicationDetails;
1045
+ /**
1046
+ * - The enity/platform for which the config is stored
1047
+ */
1048
+ type?: string;
1049
+ };
1050
+ /** @returns {Ticket} */
1051
+ declare function Ticket(): Ticket;
1052
+ type Ticket = {
1053
+ /**
1054
+ * - Custom json relevant to the ticket
1055
+ */
1056
+ _custom_json?: any;
1057
+ /**
1058
+ * - Unique identifier for the ticket
1059
+ */
1060
+ _id: string;
1061
+ /**
1062
+ * - Details of support staff to whom ticket is assigned
1063
+ */
1064
+ assigned_to?: any;
1065
+ /**
1066
+ * - Category assigned to the ticket
1067
+ */
1068
+ category: TicketCategory;
1069
+ /**
1070
+ * - Ticket conetent details
1071
+ */
1072
+ content?: TicketContent;
1073
+ /**
1074
+ * - Details of company and application
1075
+ * realated to the ticket
1076
+ */
1077
+ context?: TicketContext;
1078
+ /**
1079
+ * - Time when the ticket was created
1080
+ */
1081
+ created_at?: string;
1082
+ /**
1083
+ * - User details of ticket creator
1084
+ */
1085
+ created_by?: any;
1086
+ /**
1087
+ * - Details of company and application
1088
+ * realated to the ticket
1089
+ */
1090
+ created_on?: CreatedOn;
1091
+ /**
1092
+ * - Integration type and its details of the ticket
1093
+ */
1094
+ integration?: any;
1095
+ /**
1096
+ * - Denotes if feedback submission is
1097
+ * pending for the ticket
1098
+ */
1099
+ is_feedback_pending?: boolean;
1100
+ /**
1101
+ * - Denotes the priority of ticket
1102
+ */
1103
+ priority: Priority;
1104
+ /**
1105
+ * - Details of company and application
1106
+ * realated to the ticket
1107
+ */
1108
+ response_id?: string;
1109
+ /**
1110
+ * - Denotes if the ticket was created at
1111
+ * company or application level
1112
+ */
1113
+ source: TicketSourceEnum;
1114
+ /**
1115
+ * - Denotes in what state is the ticket
1116
+ */
1117
+ status: Status;
1118
+ /**
1119
+ * - Sub-category assigned to the ticket
1120
+ */
1121
+ sub_category?: string;
1122
+ /**
1123
+ * - Tags relevant to ticket
1124
+ */
1125
+ tags?: string[];
1126
+ /**
1127
+ * - Time when the ticket was last updated
1128
+ */
1129
+ updated_at?: string;
1130
+ };
1131
+ /** @returns {TicketAsset} */
1132
+ declare function TicketAsset(): TicketAsset;
1133
+ type TicketAsset = {
1134
+ /**
1135
+ * - Display text for asset
1136
+ */
1137
+ display?: string;
1138
+ /**
1139
+ * - Type of asset
1140
+ */
1141
+ type: TicketAssetTypeEnum;
1142
+ /**
1143
+ * - To be used for details
1144
+ */
1145
+ value: string;
1146
+ };
1147
+ /** @returns {TicketCategory} */
1148
+ declare function TicketCategory(): TicketCategory;
1149
+ type TicketCategory = {
1150
+ /**
1151
+ * - Category display value identifier
1152
+ */
1153
+ display: string;
1154
+ /**
1155
+ * - Support category array list details
1156
+ */
1157
+ feedback_form?: FeedbackForm;
1158
+ /**
1159
+ * - Group id of category releted data
1160
+ */
1161
+ group_id?: number;
1162
+ /**
1163
+ * - Category key value identifier
1164
+ */
1165
+ key: string;
1166
+ /**
1167
+ * - Support category array list details
1168
+ */
1169
+ sub_categories?: TicketCategory;
1170
+ };
1171
+ /** @returns {TicketContent} */
1172
+ declare function TicketContent(): TicketContent;
1173
+ type TicketContent = {
1174
+ /**
1175
+ * - List of all attachments related to the ticket
1176
+ */
1177
+ attachments?: TicketAsset[];
1178
+ /**
1179
+ * - Long description of issue
1180
+ */
1181
+ description?: string;
1182
+ /**
1183
+ * - Title for ticket
1184
+ */
1185
+ title: string;
1186
+ };
1187
+ /** @returns {TicketContext} */
1188
+ declare function TicketContext(): TicketContext;
1189
+ type TicketContext = {
1190
+ /**
1191
+ * - Application ID related to the ticket
1192
+ */
1193
+ application_id?: string;
1194
+ /**
1195
+ * - Company ID related to the ticket
1196
+ */
1197
+ company_id: string;
1198
+ };
1199
+ /** @returns {TicketFeedback} */
1200
+ declare function TicketFeedback(): TicketFeedback;
1201
+ type TicketFeedback = {
1202
+ /**
1203
+ * - Unique identifier for the feedback
1204
+ */
1205
+ _id: string;
1206
+ /**
1207
+ * - Category of the ticket
1208
+ */
1209
+ category?: string;
1210
+ /**
1211
+ * - Company id for which ticket was raised
1212
+ */
1213
+ company_id: string;
1214
+ /**
1215
+ * - Time when the feedback was created
1216
+ */
1217
+ created_at?: string;
1218
+ response: FeedbackResponseItem[];
1219
+ /**
1220
+ * - Readable ticket number
1221
+ */
1222
+ ticket_id: string;
1223
+ /**
1224
+ * - Time when the feedback was last updated
1225
+ */
1226
+ updated_at?: string;
1227
+ /**
1228
+ * - User who submitted the feedback
1229
+ */
1230
+ user?: any;
1231
+ };
1232
+ /** @returns {TicketFeedbackForm} */
1233
+ declare function TicketFeedbackForm(): TicketFeedbackForm;
1234
+ type TicketFeedbackForm = {
1235
+ /**
1236
+ * - List of all the form fields
1237
+ */
1238
+ display?: any[];
1239
+ /**
1240
+ * - Feedback form title that will be shown to the user
1241
+ */
1242
+ title: string;
1243
+ };
1244
+ /** @returns {TicketFeedbackList} */
1245
+ declare function TicketFeedbackList(): TicketFeedbackList;
1246
+ type TicketFeedbackList = {
1247
+ /**
1248
+ * - List of all ticket feedback for the ticket
1249
+ */
1250
+ items?: TicketFeedback[];
1251
+ };
1252
+ /** @returns {TicketFeedbackPayload} */
1253
+ declare function TicketFeedbackPayload(): TicketFeedbackPayload;
1254
+ type TicketFeedbackPayload = {
1255
+ /**
1256
+ * - Key-value pairs of all the form fields
1257
+ * and their response
1258
+ */
1259
+ form_response?: any;
1260
+ };
1261
+ /** @returns {TicketHistory} */
1262
+ declare function TicketHistory(): TicketHistory;
1263
+ type TicketHistory = {
1264
+ /**
1265
+ * - Unique identifier of the history event
1266
+ */
1267
+ _id: string;
1268
+ /**
1269
+ * - Time of creation of the history event
1270
+ */
1271
+ created_at?: string;
1272
+ /**
1273
+ * - User who created the history event
1274
+ */
1275
+ created_by?: any;
1276
+ /**
1277
+ * - Time of creation of the history event
1278
+ */
1279
+ created_on?: CreatedOn;
1280
+ /**
1281
+ * - Readable ticket number
1282
+ */
1283
+ ticket_id: string;
1284
+ /**
1285
+ * - Type of the history event
1286
+ */
1287
+ type: string;
1288
+ /**
1289
+ * - Time of last update of the history event
1290
+ */
1291
+ updated_at?: string;
1292
+ /**
1293
+ * - Data of the history event
1294
+ */
1295
+ value: any;
1296
+ };
1297
+ /** @returns {TicketHistoryList} */
1298
+ declare function TicketHistoryList(): TicketHistoryList;
1299
+ type TicketHistoryList = {
1300
+ /**
1301
+ * - List of ticket history
1302
+ */
1303
+ items?: TicketHistory[];
1304
+ /**
1305
+ * - Describes the pagination state
1306
+ */
1307
+ page?: Page;
1308
+ };
1309
+ /** @returns {TicketHistoryPayload} */
1310
+ declare function TicketHistoryPayload(): TicketHistoryPayload;
1311
+ type TicketHistoryPayload = {
1312
+ /**
1313
+ * - Type of history event
1314
+ */
1315
+ type: HistoryTypeEnum;
1316
+ /**
1317
+ * - Details of history event
1318
+ */
1319
+ value: any;
1320
+ };
1321
+ /** @returns {TicketList} */
1322
+ declare function TicketList(): TicketList;
1323
+ type TicketList = {
1324
+ /**
1325
+ * - All the filters available for tickets
1326
+ */
1327
+ filters?: Filter;
1328
+ /**
1329
+ * - List of tickets
1330
+ */
1331
+ items?: Ticket[];
1332
+ /**
1333
+ * - Describes the pagination state
1334
+ */
1335
+ page?: Page;
1336
+ };
1337
+ /** @returns {TicketSubCategory} */
1338
+ declare function TicketSubCategory(): TicketSubCategory;
1339
+ type TicketSubCategory = {
1340
+ /**
1341
+ * - Display text for sub-category
1342
+ */
1343
+ display: string;
1344
+ /**
1345
+ * - Key for sub-category
1346
+ */
1347
+ key: string;
1348
+ sub_categories?: TicketSubCategory;
1349
+ };
1350
+ /** @returns {UserSchema} */
1351
+ declare function UserSchema(): UserSchema;
1352
+ type UserSchema = {
1353
+ _id?: string;
1354
+ account_type?: string;
1355
+ active?: boolean;
1356
+ application_id?: string;
1357
+ created_at?: string;
1358
+ dob?: string;
1359
+ emails?: Email[];
1360
+ first_name?: string;
1361
+ gender?: string;
1362
+ last_name?: string;
1363
+ meta?: any;
1364
+ phone_numbers?: PhoneNumber[];
1365
+ profile_pic_url?: string;
1366
+ updated_at?: string;
1367
+ user_id?: string;
1368
+ username?: string;
1369
+ };
1370
+ /**
1371
+ * Enum: HistoryTypeEnum Used By: Lead
1372
+ *
1373
+ * @returns {HistoryTypeEnum}
1374
+ */
1375
+ declare function HistoryTypeEnum(): HistoryTypeEnum;
1376
+ type HistoryTypeEnum = "rating" | "log" | "comment";
1377
+ /**
1378
+ * Enum: PriorityEnum Used By: Lead
1379
+ *
1380
+ * @returns {PriorityEnum}
1381
+ */
1382
+ declare function PriorityEnum(): PriorityEnum;
1383
+ type PriorityEnum = "low" | "medium" | "high" | "urgent";
1384
+ /**
1385
+ * Enum: TicketAssetTypeEnum Used By: Lead
1386
+ *
1387
+ * @returns {TicketAssetTypeEnum}
1388
+ */
1389
+ declare function TicketAssetTypeEnum(): TicketAssetTypeEnum;
1390
+ type TicketAssetTypeEnum = "image" | "video" | "file" | "youtube" | "product" | "collection" | "brand" | "shipment" | "order";
1391
+ /**
1392
+ * Enum: TicketIntegrationDetails Used By: Lead
1393
+ *
1394
+ * @returns {TicketIntegrationDetails}
1395
+ */
1396
+ declare function TicketIntegrationDetails(): TicketIntegrationDetails;
1397
+ type TicketIntegrationDetails = "default" | "freshdesk" | "kapture";
1398
+ /**
1399
+ * Enum: TicketSourceEnum Used By: Lead
1400
+ *
1401
+ * @returns {TicketSourceEnum}
1402
+ */
1403
+ declare function TicketSourceEnum(): TicketSourceEnum;
1404
+ type TicketSourceEnum = "platform_panel" | "sales_channel";