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