@gofynd/fdk-client-javascript 1.1.6 → 1.3.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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  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/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,55 +1,1046 @@
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
7
+ * @property {Object} [created_by] - Creator of the ticket
8
+ * @property {PriorityEnum} [priority]
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 CloseVideoRoomResponse
17
+ * @property {boolean} success - Denotes if operation was successfully
18
+ */
19
+ /**
20
+ * @typedef CreateCustomFormPayload
21
+ * @property {string} [description] - Description of the form
22
+ * @property {string} [header_image] - Header image that is to be shown for the form
23
+ * @property {Object[]} inputs - List of all the form components
24
+ * @property {PollForAssignment} [poll_for_assignment]
25
+ * @property {PriorityEnum} priority
26
+ * @property {boolean} [should_notify] - Indicates if staff should be notified
27
+ * when a response is received
28
+ * @property {string} slug - Slug for the form
29
+ * @property {string} [success_message] - Success message that will be shown on submission
30
+ * @property {string} title - Title for the form
31
+ */
32
+ /**
33
+ * @typedef CreatedOn
34
+ * @property {string} user_agent - Useragent details
35
+ */
36
+ /**
37
+ * @typedef CreateVideoRoomPayload
38
+ * @property {NotifyUser[]} [notify] - List of people to be notified
39
+ * @property {string} unique_name - Ticket id
40
+ */
41
+ /**
42
+ * @typedef CreateVideoRoomResponse
43
+ * @property {string} unique_name - Video Room's unique name
44
+ */
45
+ /**
46
+ * @typedef CustomForm
47
+ * @property {string} _id - Unique identifier for the form
48
+ * @property {string} application_id - Application ID for form
49
+ * @property {CreatedOn} [created_on]
50
+ * @property {string} [description] - Form description that will be shown to the user
51
+ * @property {string} [header_image] - Form header image that will be shown to the user
52
+ * @property {Object[]} inputs - List of all the form fields
53
+ * @property {boolean} login_required - Denotes if login is required to make a
54
+ * form response submission
55
+ * @property {PollForAssignment} [poll_for_assignment]
56
+ * @property {Priority} priority
57
+ * @property {boolean} should_notify - Denotes if new response submission for
58
+ * the form should be notified to the assignees
59
+ * @property {string} slug - Slug for the form, which is to be used for accessing the form
60
+ * @property {SubmitButton} [submit_button]
61
+ * @property {string} [success_message] - Message that is to be shown on
62
+ * succesfull form response submission
63
+ * @property {string} title - Form title that will be shown to the user
64
+ */
65
+ /**
66
+ * @typedef CustomFormList
67
+ * @property {CustomForm[]} [items] - List of forms
68
+ * @property {Page} [page]
69
+ */
70
+ /**
71
+ * @typedef Debug
72
+ * @property {string} [platform] - Platform of user
73
+ * @property {string} [source] - Source of user
74
+ */
75
+ /**
76
+ * @typedef EditCustomFormPayload
77
+ * @property {string} [description] - Description of the form
78
+ * @property {string} [header_image] - Header image that is to be shown for the form
79
+ * @property {Object[]} inputs - List of all the form components
80
+ * @property {boolean} [login_required] - Denotes if login is required to make a
81
+ * form response submission
82
+ * @property {PollForAssignment} [poll_for_assignment]
83
+ * @property {PriorityEnum} priority
84
+ * @property {boolean} [should_notify] - Indicates if staff should be notified
85
+ * when a response is received
86
+ * @property {string} [success_message] - Success message that will be shown on submission
87
+ * @property {string} title - Title for the form
88
+ */
89
+ /**
90
+ * @typedef EditTicketPayload
91
+ * @property {AgentChangePayload} [assigned_to]
92
+ * @property {string} [category] - Category assigned to the ticket
93
+ * @property {TicketContent} [content]
94
+ * @property {PriorityEnum} [priority]
95
+ * @property {string} [source] - Denotes if the ticket was created at company or
96
+ * application level
97
+ * @property {string} [status] - Denotes in what state is the ticket
98
+ * @property {string} [sub_category] - Sub-category assigned to the ticket
99
+ * @property {string[]} [tags] - Tags relevant to ticket
100
+ */
101
+ /**
102
+ * @typedef Email
103
+ * @property {boolean} [active] - Denotes if the email is active
104
+ * @property {string} [email] - Email Address
105
+ * @property {boolean} [primary] - Denotes it's the primary email for the account
106
+ * @property {boolean} [verified] - Denotes it's a verified email
107
+ */
108
+ /**
109
+ * @typedef FeedbackForm
110
+ * @property {Object} [inputs] - Input details for the feed back form
111
+ * @property {Object} [timestamps] - Gives details of category releted data
112
+ * @property {string} [title] - Title for the feed back form
113
+ */
114
+ /**
115
+ * @typedef FeedbackResponseItem
116
+ * @property {string} display - Question/Title of the form field
117
+ * @property {string} key - Key of the form field
118
+ * @property {string} value - User response value for the form field
119
+ */
120
+ /**
121
+ * @typedef Filter
122
+ * @property {Object[]} assignees - List of support staff availble for tickets assignment
123
+ * @property {TicketCategory[]} [categories] - List of possible categories for tickets
124
+ * @property {Priority[]} priorities - List of possible priorities for tickets
125
+ * @property {Status[]} statuses - List of possible statuses for tickets
126
+ */
127
+ /**
128
+ * @typedef GetParticipantsInsideVideoRoomResponse
129
+ * @property {Participant[]} participants - List of participants of the video room
130
+ */
131
+ /**
132
+ * @typedef GetTokenForVideoRoomResponse
133
+ * @property {string} access_token - Access token to be used for video room
134
+ */
135
+ /**
136
+ * @typedef NotifyUser
137
+ * @property {string} country_code - Country code
138
+ * @property {string} phone_number - Phone number
139
+ */
140
+ /**
141
+ * @typedef Page
142
+ * @property {number} [current]
143
+ * @property {boolean} [has_next]
144
+ * @property {boolean} [has_previous]
145
+ * @property {number} [item_total]
146
+ * @property {string} [next_id]
147
+ * @property {number} [size]
148
+ * @property {string} type
149
+ */
150
+ /**
151
+ * @typedef Participant
152
+ * @property {string} [identity] - Unique identifier of participant
153
+ * @property {string} [status] - Status of participant
154
+ * @property {UserSchema} [user]
155
+ */
156
+ /**
157
+ * @typedef PhoneNumber
158
+ * @property {boolean} [active] - Denotes if the phone number is active
159
+ * @property {number} [country_code] - Country code
160
+ * @property {string} [phone] - Phone number
161
+ * @property {boolean} [primary] - Denotes it's the primary phone number for the account
162
+ * @property {boolean} [verified] - Denotes it's a verified phone number
163
+ */
164
+ /**
165
+ * @typedef PollForAssignment
166
+ * @property {number} duration - Duration for polling of staff
167
+ * @property {string} failure_message - Message if polling failed
168
+ * @property {string} message - Message for polling
169
+ * @property {string} success_message - Message for successful polling
170
+ */
171
+ /**
172
+ * @typedef Priority
173
+ * @property {string} color - Color for priority
174
+ * @property {string} display - Display text for priority
175
+ * @property {PriorityEnum} key
176
+ */
177
+ /**
178
+ * @typedef Status
179
+ * @property {string} color - Color for status
180
+ * @property {string} display - Display text for status
181
+ * @property {string} key - Key for status
182
+ */
183
+ /**
184
+ * @typedef SubmitButton
185
+ * @property {string} background_color - Color for submit button
186
+ * @property {string} title - Title for submit button
187
+ * @property {string} title_color - Title color submit button
188
+ */
189
+ /**
190
+ * @typedef Ticket
191
+ * @property {Object} [_custom_json] - Custom json relevant to the ticket
192
+ * @property {string} _id - Unique identifier for the ticket
193
+ * @property {Object} [assigned_to] - Details of support staff to whom ticket is assigned
194
+ * @property {TicketCategory} category
195
+ * @property {TicketContent} [content]
196
+ * @property {TicketContext} [context]
197
+ * @property {string} [created_at] - Time when the ticket was created
198
+ * @property {Object} [created_by] - User details of ticket creator
199
+ * @property {CreatedOn} [created_on]
200
+ * @property {Object} [integration] - Integration type and its details of the ticket
201
+ * @property {boolean} [is_feedback_pending] - Denotes if feedback submission is
202
+ * pending for the ticket
203
+ * @property {Priority} priority
204
+ * @property {string} [response_id] - Details of company and application
205
+ * realated to the ticket
206
+ * @property {TicketSourceEnum} source
207
+ * @property {Status} status
208
+ * @property {string} [sub_category] - Sub-category assigned to the ticket
209
+ * @property {string[]} [tags] - Tags relevant to ticket
210
+ * @property {string} [updated_at] - Time when the ticket was last updated
211
+ */
212
+ /**
213
+ * @typedef TicketAsset
214
+ * @property {string} [display] - Display text for asset
215
+ * @property {TicketAssetTypeEnum} type
216
+ * @property {string} value - To be used for details
217
+ */
218
+ /**
219
+ * @typedef TicketCategory
220
+ * @property {string} display - Category display value identifier
221
+ * @property {FeedbackForm} [feedback_form]
222
+ * @property {number} [group_id] - Group id of category releted data
223
+ * @property {string} key - Category key value identifier
224
+ * @property {TicketCategory} [sub_categories]
225
+ */
226
+ /**
227
+ * @typedef TicketContent
228
+ * @property {TicketAsset[]} [attachments] - List of all attachments related to the ticket
229
+ * @property {string} [description] - Long description of issue
230
+ * @property {string} title - Title for ticket
231
+ */
232
+ /**
233
+ * @typedef TicketContext
234
+ * @property {string} [application_id] - Application ID related to the ticket
235
+ * @property {string} company_id - Company ID related to the ticket
236
+ */
237
+ /**
238
+ * @typedef TicketFeedback
239
+ * @property {string} _id - Unique identifier for the feedback
240
+ * @property {string} [category] - Category of the ticket
241
+ * @property {string} company_id - Company id for which ticket was raised
242
+ * @property {string} [created_at] - Time when the feedback was created
243
+ * @property {FeedbackResponseItem[]} response
244
+ * @property {string} ticket_id - Readable ticket number
245
+ * @property {string} [updated_at] - Time when the feedback was last updated
246
+ * @property {Object} [user] - User who submitted the feedback
247
+ */
248
+ /**
249
+ * @typedef TicketFeedbackList
250
+ * @property {TicketFeedback[]} [items] - List of all ticket feedback for the ticket
251
+ */
252
+ /**
253
+ * @typedef TicketFeedbackPayload
254
+ * @property {Object} [form_response] - Key-value pairs of all the form fields
255
+ * and their response
256
+ */
257
+ /**
258
+ * @typedef TicketHistory
259
+ * @property {string} _id - Unique identifier of the history event
260
+ * @property {string} [created_at] - Time of creation of the history event
261
+ * @property {Object} [created_by] - User who created the history event
262
+ * @property {CreatedOn} [created_on]
263
+ * @property {string} ticket_id - Readable ticket number
264
+ * @property {string} type - Type of the history event
265
+ * @property {string} [updated_at] - Time of last update of the history event
266
+ * @property {Object} value - Data of the history event
267
+ */
268
+ /**
269
+ * @typedef TicketHistoryList
270
+ * @property {TicketHistory[]} [items] - List of ticket history
271
+ * @property {Page} [page]
272
+ */
273
+ /**
274
+ * @typedef TicketHistoryPayload
275
+ * @property {HistoryTypeEnum} type
276
+ * @property {Object} value - Details of history event
277
+ */
278
+ /**
279
+ * @typedef TicketList
280
+ * @property {Filter} [filters]
281
+ * @property {Ticket[]} [items] - List of tickets
282
+ * @property {Page} [page]
283
+ */
284
+ /**
285
+ * @typedef UserSchema
286
+ * @property {string} [_id]
287
+ * @property {string} [account_type]
288
+ * @property {boolean} [active]
289
+ * @property {string} [application_id]
290
+ * @property {string} [created_at]
291
+ * @property {string} [dob]
292
+ * @property {Email[]} [emails]
293
+ * @property {string} [first_name]
294
+ * @property {string} [gender]
295
+ * @property {string} [last_name]
296
+ * @property {Object} [meta]
297
+ * @property {PhoneNumber[]} [phone_numbers]
298
+ * @property {string} [profile_pic_url]
299
+ * @property {string} [updated_at]
300
+ * @property {string} [user_id]
301
+ * @property {string} [username]
302
+ */
303
+ /** @typedef {"rating" | "log" | "comment"} HistoryTypeEnum */
304
+ /** @typedef {"low" | "medium" | "high" | "urgent"} PriorityEnum */
305
+ /**
306
+ * @typedef {| "image"
307
+ * | "video"
308
+ * | "file"
309
+ * | "youtube"
310
+ * | "product"
311
+ * | "collection"
312
+ * | "brand"
313
+ * | "shipment"
314
+ * | "order"} TicketAssetTypeEnum
315
+ */
316
+ /** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
317
+ declare class LeadPlatformModel {
55
318
  }
319
+ declare namespace LeadPlatformModel {
320
+ export { AddTicketPayload, AgentChangePayload, CloseVideoRoomResponse, CreateCustomFormPayload, CreatedOn, CreateVideoRoomPayload, CreateVideoRoomResponse, CustomForm, CustomFormList, Debug, EditCustomFormPayload, EditTicketPayload, Email, FeedbackForm, FeedbackResponseItem, Filter, GetParticipantsInsideVideoRoomResponse, GetTokenForVideoRoomResponse, NotifyUser, Page, Participant, PhoneNumber, PollForAssignment, Priority, Status, SubmitButton, Ticket, TicketAsset, TicketCategory, TicketContent, TicketContext, TicketFeedback, TicketFeedbackList, TicketFeedbackPayload, TicketHistory, TicketHistoryList, TicketHistoryPayload, TicketList, UserSchema, HistoryTypeEnum, PriorityEnum, TicketAssetTypeEnum, TicketSourceEnum };
321
+ }
322
+ /** @returns {AddTicketPayload} */
323
+ declare function AddTicketPayload(): AddTicketPayload;
324
+ type AddTicketPayload = {
325
+ /**
326
+ * - Optional custom data that needs to be sent
327
+ */
328
+ _custom_json?: any;
329
+ /**
330
+ * - Category of the ticket
331
+ */
332
+ category: string;
333
+ content: TicketContent;
334
+ /**
335
+ * - Creator of the ticket
336
+ */
337
+ created_by?: any;
338
+ priority?: PriorityEnum;
339
+ /**
340
+ * - Status of the ticket
341
+ */
342
+ status?: string;
343
+ };
344
+ /** @returns {AgentChangePayload} */
345
+ declare function AgentChangePayload(): AgentChangePayload;
346
+ type AgentChangePayload = {
347
+ /**
348
+ * - Agent's unique ID
349
+ */
350
+ agent_id: string;
351
+ };
352
+ /** @returns {CloseVideoRoomResponse} */
353
+ declare function CloseVideoRoomResponse(): CloseVideoRoomResponse;
354
+ type CloseVideoRoomResponse = {
355
+ /**
356
+ * - Denotes if operation was successfully
357
+ */
358
+ success: boolean;
359
+ };
360
+ /** @returns {CreateCustomFormPayload} */
361
+ declare function CreateCustomFormPayload(): CreateCustomFormPayload;
362
+ type CreateCustomFormPayload = {
363
+ /**
364
+ * - Description of the form
365
+ */
366
+ description?: string;
367
+ /**
368
+ * - Header image that is to be shown for the form
369
+ */
370
+ header_image?: string;
371
+ /**
372
+ * - List of all the form components
373
+ */
374
+ inputs: any[];
375
+ poll_for_assignment?: PollForAssignment;
376
+ priority: PriorityEnum;
377
+ /**
378
+ * - Indicates if staff should be notified
379
+ * when a response is received
380
+ */
381
+ should_notify?: boolean;
382
+ /**
383
+ * - Slug for the form
384
+ */
385
+ slug: string;
386
+ /**
387
+ * - Success message that will be shown on submission
388
+ */
389
+ success_message?: string;
390
+ /**
391
+ * - Title for the form
392
+ */
393
+ title: string;
394
+ };
395
+ /** @returns {CreatedOn} */
396
+ declare function CreatedOn(): CreatedOn;
397
+ type CreatedOn = {
398
+ /**
399
+ * - Useragent details
400
+ */
401
+ user_agent: string;
402
+ };
403
+ /** @returns {CreateVideoRoomPayload} */
404
+ declare function CreateVideoRoomPayload(): CreateVideoRoomPayload;
405
+ type CreateVideoRoomPayload = {
406
+ /**
407
+ * - List of people to be notified
408
+ */
409
+ notify?: NotifyUser[];
410
+ /**
411
+ * - Ticket id
412
+ */
413
+ unique_name: string;
414
+ };
415
+ /** @returns {CreateVideoRoomResponse} */
416
+ declare function CreateVideoRoomResponse(): CreateVideoRoomResponse;
417
+ type CreateVideoRoomResponse = {
418
+ /**
419
+ * - Video Room's unique name
420
+ */
421
+ unique_name: string;
422
+ };
423
+ /** @returns {CustomForm} */
424
+ declare function CustomForm(): CustomForm;
425
+ type CustomForm = {
426
+ /**
427
+ * - Unique identifier for the form
428
+ */
429
+ _id: string;
430
+ /**
431
+ * - Application ID for form
432
+ */
433
+ application_id: string;
434
+ created_on?: CreatedOn;
435
+ /**
436
+ * - Form description that will be shown to the user
437
+ */
438
+ description?: string;
439
+ /**
440
+ * - Form header image that will be shown to the user
441
+ */
442
+ header_image?: string;
443
+ /**
444
+ * - List of all the form fields
445
+ */
446
+ inputs: any[];
447
+ /**
448
+ * - Denotes if login is required to make a
449
+ * form response submission
450
+ */
451
+ login_required: boolean;
452
+ poll_for_assignment?: PollForAssignment;
453
+ priority: Priority;
454
+ /**
455
+ * - Denotes if new response submission for
456
+ * the form should be notified to the assignees
457
+ */
458
+ should_notify: boolean;
459
+ /**
460
+ * - Slug for the form, which is to be used for accessing the form
461
+ */
462
+ slug: string;
463
+ submit_button?: SubmitButton;
464
+ /**
465
+ * - Message that is to be shown on
466
+ * succesfull form response submission
467
+ */
468
+ success_message?: string;
469
+ /**
470
+ * - Form title that will be shown to the user
471
+ */
472
+ title: string;
473
+ };
474
+ /** @returns {CustomFormList} */
475
+ declare function CustomFormList(): CustomFormList;
476
+ type CustomFormList = {
477
+ /**
478
+ * - List of forms
479
+ */
480
+ items?: CustomForm[];
481
+ page?: Page;
482
+ };
483
+ /** @returns {Debug} */
484
+ declare function Debug(): Debug;
485
+ type Debug = {
486
+ /**
487
+ * - Platform of user
488
+ */
489
+ platform?: string;
490
+ /**
491
+ * - Source of user
492
+ */
493
+ source?: string;
494
+ };
495
+ /** @returns {EditCustomFormPayload} */
496
+ declare function EditCustomFormPayload(): EditCustomFormPayload;
497
+ type EditCustomFormPayload = {
498
+ /**
499
+ * - Description of the form
500
+ */
501
+ description?: string;
502
+ /**
503
+ * - Header image that is to be shown for the form
504
+ */
505
+ header_image?: string;
506
+ /**
507
+ * - List of all the form components
508
+ */
509
+ inputs: any[];
510
+ /**
511
+ * - Denotes if login is required to make a
512
+ * form response submission
513
+ */
514
+ login_required?: boolean;
515
+ poll_for_assignment?: PollForAssignment;
516
+ priority: PriorityEnum;
517
+ /**
518
+ * - Indicates if staff should be notified
519
+ * when a response is received
520
+ */
521
+ should_notify?: boolean;
522
+ /**
523
+ * - Success message that will be shown on submission
524
+ */
525
+ success_message?: string;
526
+ /**
527
+ * - Title for the form
528
+ */
529
+ title: string;
530
+ };
531
+ /** @returns {EditTicketPayload} */
532
+ declare function EditTicketPayload(): EditTicketPayload;
533
+ type EditTicketPayload = {
534
+ assigned_to?: AgentChangePayload;
535
+ /**
536
+ * - Category assigned to the ticket
537
+ */
538
+ category?: string;
539
+ content?: TicketContent;
540
+ priority?: PriorityEnum;
541
+ /**
542
+ * - Denotes if the ticket was created at company or
543
+ * application level
544
+ */
545
+ source?: string;
546
+ /**
547
+ * - Denotes in what state is the ticket
548
+ */
549
+ status?: string;
550
+ /**
551
+ * - Sub-category assigned to the ticket
552
+ */
553
+ sub_category?: string;
554
+ /**
555
+ * - Tags relevant to ticket
556
+ */
557
+ tags?: string[];
558
+ };
559
+ /** @returns {Email} */
560
+ declare function Email(): Email;
561
+ type Email = {
562
+ /**
563
+ * - Denotes if the email is active
564
+ */
565
+ active?: boolean;
566
+ /**
567
+ * - Email Address
568
+ */
569
+ email?: string;
570
+ /**
571
+ * - Denotes it's the primary email for the account
572
+ */
573
+ primary?: boolean;
574
+ /**
575
+ * - Denotes it's a verified email
576
+ */
577
+ verified?: boolean;
578
+ };
579
+ /** @returns {FeedbackForm} */
580
+ declare function FeedbackForm(): FeedbackForm;
581
+ type FeedbackForm = {
582
+ /**
583
+ * - Input details for the feed back form
584
+ */
585
+ inputs?: any;
586
+ /**
587
+ * - Gives details of category releted data
588
+ */
589
+ timestamps?: any;
590
+ /**
591
+ * - Title for the feed back form
592
+ */
593
+ title?: string;
594
+ };
595
+ /** @returns {FeedbackResponseItem} */
596
+ declare function FeedbackResponseItem(): FeedbackResponseItem;
597
+ type FeedbackResponseItem = {
598
+ /**
599
+ * - Question/Title of the form field
600
+ */
601
+ display: string;
602
+ /**
603
+ * - Key of the form field
604
+ */
605
+ key: string;
606
+ /**
607
+ * - User response value for the form field
608
+ */
609
+ value: string;
610
+ };
611
+ /** @returns {Filter} */
612
+ declare function Filter(): Filter;
613
+ type Filter = {
614
+ /**
615
+ * - List of support staff availble for tickets assignment
616
+ */
617
+ assignees: any[];
618
+ /**
619
+ * - List of possible categories for tickets
620
+ */
621
+ categories?: TicketCategory[];
622
+ /**
623
+ * - List of possible priorities for tickets
624
+ */
625
+ priorities: Priority[];
626
+ /**
627
+ * - List of possible statuses for tickets
628
+ */
629
+ statuses: Status[];
630
+ };
631
+ /** @returns {GetParticipantsInsideVideoRoomResponse} */
632
+ declare function GetParticipantsInsideVideoRoomResponse(): GetParticipantsInsideVideoRoomResponse;
633
+ type GetParticipantsInsideVideoRoomResponse = {
634
+ /**
635
+ * - List of participants of the video room
636
+ */
637
+ participants: Participant[];
638
+ };
639
+ /** @returns {GetTokenForVideoRoomResponse} */
640
+ declare function GetTokenForVideoRoomResponse(): GetTokenForVideoRoomResponse;
641
+ type GetTokenForVideoRoomResponse = {
642
+ /**
643
+ * - Access token to be used for video room
644
+ */
645
+ access_token: string;
646
+ };
647
+ /** @returns {NotifyUser} */
648
+ declare function NotifyUser(): NotifyUser;
649
+ type NotifyUser = {
650
+ /**
651
+ * - Country code
652
+ */
653
+ country_code: string;
654
+ /**
655
+ * - Phone number
656
+ */
657
+ phone_number: string;
658
+ };
659
+ /** @returns {Page} */
660
+ declare function Page(): Page;
661
+ type Page = {
662
+ current?: number;
663
+ has_next?: boolean;
664
+ has_previous?: boolean;
665
+ item_total?: number;
666
+ next_id?: string;
667
+ size?: number;
668
+ type: string;
669
+ };
670
+ /** @returns {Participant} */
671
+ declare function Participant(): Participant;
672
+ type Participant = {
673
+ /**
674
+ * - Unique identifier of participant
675
+ */
676
+ identity?: string;
677
+ /**
678
+ * - Status of participant
679
+ */
680
+ status?: string;
681
+ user?: UserSchema;
682
+ };
683
+ /** @returns {PhoneNumber} */
684
+ declare function PhoneNumber(): PhoneNumber;
685
+ type PhoneNumber = {
686
+ /**
687
+ * - Denotes if the phone number is active
688
+ */
689
+ active?: boolean;
690
+ /**
691
+ * - Country code
692
+ */
693
+ country_code?: number;
694
+ /**
695
+ * - Phone number
696
+ */
697
+ phone?: string;
698
+ /**
699
+ * - Denotes it's the primary phone number for the account
700
+ */
701
+ primary?: boolean;
702
+ /**
703
+ * - Denotes it's a verified phone number
704
+ */
705
+ verified?: boolean;
706
+ };
707
+ /** @returns {PollForAssignment} */
708
+ declare function PollForAssignment(): PollForAssignment;
709
+ type PollForAssignment = {
710
+ /**
711
+ * - Duration for polling of staff
712
+ */
713
+ duration: number;
714
+ /**
715
+ * - Message if polling failed
716
+ */
717
+ failure_message: string;
718
+ /**
719
+ * - Message for polling
720
+ */
721
+ message: string;
722
+ /**
723
+ * - Message for successful polling
724
+ */
725
+ success_message: string;
726
+ };
727
+ /** @returns {Priority} */
728
+ declare function Priority(): Priority;
729
+ type Priority = {
730
+ /**
731
+ * - Color for priority
732
+ */
733
+ color: string;
734
+ /**
735
+ * - Display text for priority
736
+ */
737
+ display: string;
738
+ key: PriorityEnum;
739
+ };
740
+ /** @returns {Status} */
741
+ declare function Status(): Status;
742
+ type Status = {
743
+ /**
744
+ * - Color for status
745
+ */
746
+ color: string;
747
+ /**
748
+ * - Display text for status
749
+ */
750
+ display: string;
751
+ /**
752
+ * - Key for status
753
+ */
754
+ key: string;
755
+ };
756
+ /** @returns {SubmitButton} */
757
+ declare function SubmitButton(): SubmitButton;
758
+ type SubmitButton = {
759
+ /**
760
+ * - Color for submit button
761
+ */
762
+ background_color: string;
763
+ /**
764
+ * - Title for submit button
765
+ */
766
+ title: string;
767
+ /**
768
+ * - Title color submit button
769
+ */
770
+ title_color: string;
771
+ };
772
+ /** @returns {Ticket} */
773
+ declare function Ticket(): Ticket;
774
+ type Ticket = {
775
+ /**
776
+ * - Custom json relevant to the ticket
777
+ */
778
+ _custom_json?: any;
779
+ /**
780
+ * - Unique identifier for the ticket
781
+ */
782
+ _id: string;
783
+ /**
784
+ * - Details of support staff to whom ticket is assigned
785
+ */
786
+ assigned_to?: any;
787
+ category: TicketCategory;
788
+ content?: TicketContent;
789
+ context?: TicketContext;
790
+ /**
791
+ * - Time when the ticket was created
792
+ */
793
+ created_at?: string;
794
+ /**
795
+ * - User details of ticket creator
796
+ */
797
+ created_by?: any;
798
+ created_on?: CreatedOn;
799
+ /**
800
+ * - Integration type and its details of the ticket
801
+ */
802
+ integration?: any;
803
+ /**
804
+ * - Denotes if feedback submission is
805
+ * pending for the ticket
806
+ */
807
+ is_feedback_pending?: boolean;
808
+ priority: Priority;
809
+ /**
810
+ * - Details of company and application
811
+ * realated to the ticket
812
+ */
813
+ response_id?: string;
814
+ source: TicketSourceEnum;
815
+ status: Status;
816
+ /**
817
+ * - Sub-category assigned to the ticket
818
+ */
819
+ sub_category?: string;
820
+ /**
821
+ * - Tags relevant to ticket
822
+ */
823
+ tags?: string[];
824
+ /**
825
+ * - Time when the ticket was last updated
826
+ */
827
+ updated_at?: string;
828
+ };
829
+ /** @returns {TicketAsset} */
830
+ declare function TicketAsset(): TicketAsset;
831
+ type TicketAsset = {
832
+ /**
833
+ * - Display text for asset
834
+ */
835
+ display?: string;
836
+ type: TicketAssetTypeEnum;
837
+ /**
838
+ * - To be used for details
839
+ */
840
+ value: string;
841
+ };
842
+ /** @returns {TicketCategory} */
843
+ declare function TicketCategory(): TicketCategory;
844
+ type TicketCategory = {
845
+ /**
846
+ * - Category display value identifier
847
+ */
848
+ display: string;
849
+ feedback_form?: FeedbackForm;
850
+ /**
851
+ * - Group id of category releted data
852
+ */
853
+ group_id?: number;
854
+ /**
855
+ * - Category key value identifier
856
+ */
857
+ key: string;
858
+ sub_categories?: TicketCategory;
859
+ };
860
+ /** @returns {TicketContent} */
861
+ declare function TicketContent(): TicketContent;
862
+ type TicketContent = {
863
+ /**
864
+ * - List of all attachments related to the ticket
865
+ */
866
+ attachments?: TicketAsset[];
867
+ /**
868
+ * - Long description of issue
869
+ */
870
+ description?: string;
871
+ /**
872
+ * - Title for ticket
873
+ */
874
+ title: string;
875
+ };
876
+ /** @returns {TicketContext} */
877
+ declare function TicketContext(): TicketContext;
878
+ type TicketContext = {
879
+ /**
880
+ * - Application ID related to the ticket
881
+ */
882
+ application_id?: string;
883
+ /**
884
+ * - Company ID related to the ticket
885
+ */
886
+ company_id: string;
887
+ };
888
+ /** @returns {TicketFeedback} */
889
+ declare function TicketFeedback(): TicketFeedback;
890
+ type TicketFeedback = {
891
+ /**
892
+ * - Unique identifier for the feedback
893
+ */
894
+ _id: string;
895
+ /**
896
+ * - Category of the ticket
897
+ */
898
+ category?: string;
899
+ /**
900
+ * - Company id for which ticket was raised
901
+ */
902
+ company_id: string;
903
+ /**
904
+ * - Time when the feedback was created
905
+ */
906
+ created_at?: string;
907
+ response: FeedbackResponseItem[];
908
+ /**
909
+ * - Readable ticket number
910
+ */
911
+ ticket_id: string;
912
+ /**
913
+ * - Time when the feedback was last updated
914
+ */
915
+ updated_at?: string;
916
+ /**
917
+ * - User who submitted the feedback
918
+ */
919
+ user?: any;
920
+ };
921
+ /** @returns {TicketFeedbackList} */
922
+ declare function TicketFeedbackList(): TicketFeedbackList;
923
+ type TicketFeedbackList = {
924
+ /**
925
+ * - List of all ticket feedback for the ticket
926
+ */
927
+ items?: TicketFeedback[];
928
+ };
929
+ /** @returns {TicketFeedbackPayload} */
930
+ declare function TicketFeedbackPayload(): TicketFeedbackPayload;
931
+ type TicketFeedbackPayload = {
932
+ /**
933
+ * - Key-value pairs of all the form fields
934
+ * and their response
935
+ */
936
+ form_response?: any;
937
+ };
938
+ /** @returns {TicketHistory} */
939
+ declare function TicketHistory(): TicketHistory;
940
+ type TicketHistory = {
941
+ /**
942
+ * - Unique identifier of the history event
943
+ */
944
+ _id: string;
945
+ /**
946
+ * - Time of creation of the history event
947
+ */
948
+ created_at?: string;
949
+ /**
950
+ * - User who created the history event
951
+ */
952
+ created_by?: any;
953
+ created_on?: CreatedOn;
954
+ /**
955
+ * - Readable ticket number
956
+ */
957
+ ticket_id: string;
958
+ /**
959
+ * - Type of the history event
960
+ */
961
+ type: string;
962
+ /**
963
+ * - Time of last update of the history event
964
+ */
965
+ updated_at?: string;
966
+ /**
967
+ * - Data of the history event
968
+ */
969
+ value: any;
970
+ };
971
+ /** @returns {TicketHistoryList} */
972
+ declare function TicketHistoryList(): TicketHistoryList;
973
+ type TicketHistoryList = {
974
+ /**
975
+ * - List of ticket history
976
+ */
977
+ items?: TicketHistory[];
978
+ page?: Page;
979
+ };
980
+ /** @returns {TicketHistoryPayload} */
981
+ declare function TicketHistoryPayload(): TicketHistoryPayload;
982
+ type TicketHistoryPayload = {
983
+ type: HistoryTypeEnum;
984
+ /**
985
+ * - Details of history event
986
+ */
987
+ value: any;
988
+ };
989
+ /** @returns {TicketList} */
990
+ declare function TicketList(): TicketList;
991
+ type TicketList = {
992
+ filters?: Filter;
993
+ /**
994
+ * - List of tickets
995
+ */
996
+ items?: Ticket[];
997
+ page?: Page;
998
+ };
999
+ /** @returns {UserSchema} */
1000
+ declare function UserSchema(): UserSchema;
1001
+ type UserSchema = {
1002
+ _id?: string;
1003
+ account_type?: string;
1004
+ active?: boolean;
1005
+ application_id?: string;
1006
+ created_at?: string;
1007
+ dob?: string;
1008
+ emails?: Email[];
1009
+ first_name?: string;
1010
+ gender?: string;
1011
+ last_name?: string;
1012
+ meta?: any;
1013
+ phone_numbers?: PhoneNumber[];
1014
+ profile_pic_url?: string;
1015
+ updated_at?: string;
1016
+ user_id?: string;
1017
+ username?: string;
1018
+ };
1019
+ /**
1020
+ * Enum: HistoryTypeEnum Used By: Lead
1021
+ *
1022
+ * @returns {HistoryTypeEnum}
1023
+ */
1024
+ declare function HistoryTypeEnum(): HistoryTypeEnum;
1025
+ type HistoryTypeEnum = "rating" | "log" | "comment";
1026
+ /**
1027
+ * Enum: PriorityEnum Used By: Lead
1028
+ *
1029
+ * @returns {PriorityEnum}
1030
+ */
1031
+ declare function PriorityEnum(): PriorityEnum;
1032
+ type PriorityEnum = "low" | "medium" | "high" | "urgent";
1033
+ /**
1034
+ * Enum: TicketAssetTypeEnum Used By: Lead
1035
+ *
1036
+ * @returns {TicketAssetTypeEnum}
1037
+ */
1038
+ declare function TicketAssetTypeEnum(): TicketAssetTypeEnum;
1039
+ type TicketAssetTypeEnum = "image" | "video" | "file" | "youtube" | "product" | "collection" | "brand" | "shipment" | "order";
1040
+ /**
1041
+ * Enum: TicketSourceEnum Used By: Lead
1042
+ *
1043
+ * @returns {TicketSourceEnum}
1044
+ */
1045
+ declare function TicketSourceEnum(): TicketSourceEnum;
1046
+ type TicketSourceEnum = "platform_panel" | "sales_channel";