@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.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 (310) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
  6. package/sdk/application/Cart/CartApplicationClient.js +157 -530
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -19
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
  16. package/sdk/application/Content/ContentApplicationClient.js +211 -341
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
  22. package/sdk/application/Lead/LeadApplicationClient.js +24 -55
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
  26. package/sdk/application/Order/OrderApplicationClient.js +89 -293
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
  28. package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
  29. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
  30. package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
  31. package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
  32. package/sdk/application/Share/ShareApplicationClient.js +35 -89
  33. package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
  34. package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
  35. package/sdk/application/User/UserApplicationClient.d.ts +23 -13
  36. package/sdk/application/User/UserApplicationClient.js +49 -407
  37. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  38. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
  39. package/sdk/common/Utility.d.ts +1 -1
  40. package/sdk/common/Utility.js +10 -7
  41. package/sdk/common/Validator.d.ts +1 -0
  42. package/sdk/common/Validator.js +20 -0
  43. package/sdk/common/utils.d.ts +0 -1
  44. package/sdk/common/utils.js +0 -14
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +18 -62
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  52. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
  54. package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
  55. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
  57. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
  59. package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  61. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
  62. package/sdk/partner/PartnerClient.d.ts +0 -6
  63. package/sdk/partner/PartnerClient.js +0 -9
  64. package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
  65. package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
  66. package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
  67. package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
  68. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
  69. package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
  70. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  71. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  72. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
  73. package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
  74. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  75. package/sdk/partner/index.d.ts +0 -3
  76. package/sdk/partner/index.js +0 -6
  77. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  78. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  79. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
  80. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  82. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  87. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
  88. package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
  90. package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
  98. package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
  109. package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
  110. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  111. package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
  112. package/sdk/platform/Common/CommonPlatformModel.js +11 -14
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
  117. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
  118. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
  119. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
  121. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
  122. package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
  132. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
  143. package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
  144. package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
  145. package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
  146. package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
  147. package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
  148. package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
  149. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
  150. package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
  151. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
  152. package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
  153. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  154. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  155. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
  156. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
  157. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
  158. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
  159. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  160. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  161. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
  162. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
  163. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  164. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  165. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  166. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  167. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  168. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  169. package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
  170. package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
  171. package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
  172. package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
  173. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
  174. package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
  175. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
  176. package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
  177. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
  178. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
  179. package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
  180. package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
  182. package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
  185. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  186. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  187. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
  188. package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
  189. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
  190. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
  193. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
  194. package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
  195. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
  197. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
  198. package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
  199. package/sdk/platform/PlatformClient.d.ts +0 -2
  200. package/sdk/platform/PlatformClient.js +0 -4
  201. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  202. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  203. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  204. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  205. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
  206. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
  217. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
  218. package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
  219. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
  220. package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
  221. package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -3
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
  227. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
  228. package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
  229. package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
  230. package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
  231. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
  232. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
  233. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
  234. package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
  235. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
  236. package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
  237. package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
  238. package/sdk/platform/User/UserPlatformModel.js +253 -210
  239. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  240. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  241. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
  242. package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
  243. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  244. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  245. package/sdk/platform/index.d.ts +0 -1
  246. package/sdk/platform/index.js +0 -2
  247. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  248. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  249. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  250. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  251. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  252. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  253. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
  254. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
  255. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
  256. package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
  257. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
  258. package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
  259. package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
  260. package/sdk/public/Content/ContentPublicClient.js +254 -280
  261. package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
  262. package/sdk/public/Content/ContentPublicModel.js +98 -44
  263. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
  264. package/sdk/public/Content/ContentPublicValidator.js +26 -19
  265. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  266. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  267. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  268. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  269. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  270. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  271. package/sdk/public/PublicClient.d.ts +2 -2
  272. package/sdk/public/PublicClient.js +2 -2
  273. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  274. package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
  275. package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
  276. package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
  277. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  278. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  279. package/sdk/public/index.d.ts +1 -1
  280. package/sdk/public/index.js +1 -1
  281. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
  282. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
  283. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
  284. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
  285. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
  286. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
  287. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
  288. package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
  289. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
  290. package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
  291. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
  292. package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
  293. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
  294. package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
  295. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
  296. package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
  297. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
  298. package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
  299. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  300. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  301. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
  302. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
  303. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  304. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  305. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  306. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  307. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  308. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  309. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  310. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -12,30 +12,30 @@ declare class FileStorage {
12
12
  /**
13
13
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
14
14
  * @param {import("../ApplicationAPIClient").Options} - Options
15
- * @returns {Promise<CompleteResponse>} - Success response
15
+ * @returns {Promise<FileUploadComplete>} - Success response
16
16
  * @name completeUpload
17
17
  * @summary: Finalizes upload process.
18
18
  * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
19
19
  */
20
- completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CompleteResponse>;
20
+ completeUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<FileUploadComplete>;
21
21
  /**
22
22
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
23
  * @param {import("../ApplicationAPIClient").Options} - Options
24
- * @returns {Promise<SignUrlResponse>} - Success response
24
+ * @returns {Promise<SignUrlResult>} - Success response
25
25
  * @name signUrls
26
26
  * @summary: Signs file URLs.
27
27
  * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
28
28
  */
29
- signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SignUrlResponse>;
29
+ signUrls({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SignUrlResult>;
30
30
  /**
31
31
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
32
32
  * @param {import("../ApplicationAPIClient").Options} - Options
33
- * @returns {Promise<StartResponse>} - Success response
33
+ * @returns {Promise<FileUpload>} - Success response
34
34
  * @name startUpload
35
35
  * @summary: Initiates file upload
36
36
  * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
37
37
  */
38
- startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<StartResponse>;
38
+ startUpload({ namespace, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<FileUpload>;
39
39
  /**
40
40
  * @param data
41
41
  * @param {string} file_name
@@ -6,6 +6,7 @@ const {
6
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
7
7
  const constructUrl = require("../constructUrl");
8
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
9
10
 
10
11
  const { fdkAxios } = require("../../common/AxiosHelper.js");
11
12
 
@@ -38,7 +39,7 @@ class FileStorage {
38
39
  /**
39
40
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
40
41
  * @param {import("../ApplicationAPIClient").Options} - Options
41
- * @returns {Promise<CompleteResponse>} - Success response
42
+ * @returns {Promise<FileUploadComplete>} - Success response
42
43
  * @name completeUpload
43
44
  * @summary: Finalizes upload process.
44
45
  * @description: Complete the file upload and store the file details such as name, size, content type, and namespace to maintain integrity within the system's database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/completeUpload/).
@@ -47,18 +48,12 @@ class FileStorage {
47
48
  { namespace, body, requestHeaders } = { requestHeaders: {} },
48
49
  { responseHeaders } = { responseHeaders: false }
49
50
  ) {
50
- let invalidInput = [];
51
-
52
- if (!namespace) {
53
- invalidInput.push({
54
- message: `The 'namespace' field is required.`,
55
- path: ["namespace"],
51
+ const errors = validateRequiredParams(arguments[0], ["namespace"]);
52
+ if (errors.length > 0) {
53
+ const error = new FDKClientValidationError({
54
+ message: "Missing required field",
55
+ details: errors,
56
56
  });
57
- }
58
- if (invalidInput.length) {
59
- const error = new Error();
60
- error.message = "Missing required field";
61
- error.details = invalidInput;
62
57
  return Promise.reject(new FDKClientValidationError(error));
63
58
  }
64
59
 
@@ -90,7 +85,7 @@ class FileStorage {
90
85
  /**
91
86
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
92
87
  * @param {import("../ApplicationAPIClient").Options} - Options
93
- * @returns {Promise<SignUrlResponse>} - Success response
88
+ * @returns {Promise<SignUrlResult>} - Success response
94
89
  * @name signUrls
95
90
  * @summary: Signs file URLs.
96
91
  * @description: Generates secure, signed URLs that is valid for certain expiry time for accessing stored files. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/signUrls/).
@@ -99,14 +94,6 @@ class FileStorage {
99
94
  { body, requestHeaders } = { requestHeaders: {} },
100
95
  { responseHeaders } = { responseHeaders: false }
101
96
  ) {
102
- let invalidInput = [];
103
- if (invalidInput.length) {
104
- const error = new Error();
105
- error.message = "Missing required field";
106
- error.details = invalidInput;
107
- return Promise.reject(new FDKClientValidationError(error));
108
- }
109
-
110
97
  const query_params = {};
111
98
 
112
99
  const xHeaders = {};
@@ -135,7 +122,7 @@ class FileStorage {
135
122
  /**
136
123
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
137
124
  * @param {import("../ApplicationAPIClient").Options} - Options
138
- * @returns {Promise<StartResponse>} - Success response
125
+ * @returns {Promise<FileUpload>} - Success response
139
126
  * @name startUpload
140
127
  * @summary: Initiates file upload
141
128
  * @description: Starts the process of uploading a file to storage location, and returns a signed url in response. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/filestorage/startUpload/).
@@ -144,18 +131,12 @@ class FileStorage {
144
131
  { namespace, body, requestHeaders } = { requestHeaders: {} },
145
132
  { responseHeaders } = { responseHeaders: false }
146
133
  ) {
147
- let invalidInput = [];
148
-
149
- if (!namespace) {
150
- invalidInput.push({
151
- message: `The 'namespace' field is required.`,
152
- path: ["namespace"],
134
+ const errors = validateRequiredParams(arguments[0], ["namespace"]);
135
+ if (errors.length > 0) {
136
+ const error = new FDKClientValidationError({
137
+ message: "Missing required field",
138
+ details: errors,
153
139
  });
154
- }
155
- if (invalidInput.length) {
156
- const error = new Error();
157
- error.message = "Missing required field";
158
- error.details = invalidInput;
159
140
  return Promise.reject(new FDKClientValidationError(error));
160
141
  }
161
142
 
@@ -0,0 +1,29 @@
1
+ export = Finance;
2
+ declare class Finance {
3
+ constructor(_conf: any);
4
+ _conf: any;
5
+ _relativeUrls: {
6
+ customerCreditBalance: string;
7
+ lockUnlockCreditNote: string;
8
+ };
9
+ _urls: {};
10
+ updateUrls(urls: any): void;
11
+ /**
12
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
+ * @param {import("../ApplicationAPIClient").Options} - Options
14
+ * @returns {Promise<CustomerCreditBalanceResponseSchema>} - Success response
15
+ * @name customerCreditBalance
16
+ * @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
17
+ * @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
18
+ */
19
+ customerCreditBalance({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomerCreditBalanceResponseSchema>;
20
+ /**
21
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
22
+ * @param {import("../ApplicationAPIClient").Options} - Options
23
+ * @returns {Promise<LockUnlockResponseSchema>} - Success response
24
+ * @name lockUnlockCreditNote
25
+ * @summary: Lock or Unlock requested credit note.
26
+ * @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
27
+ */
28
+ lockUnlockCreditNote({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LockUnlockResponseSchema>;
29
+ }
@@ -0,0 +1,111 @@
1
+ const {
2
+ FDKClientValidationError,
3
+ FDKResponseValidationError,
4
+ } = require("../../common/FDKError");
5
+
6
+ const ApplicationAPIClient = require("../ApplicationAPIClient");
7
+ const constructUrl = require("../constructUrl");
8
+ const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
10
+
11
+ class Finance {
12
+ constructor(_conf) {
13
+ this._conf = _conf;
14
+ this._relativeUrls = {
15
+ customerCreditBalance:
16
+ "/service/application/finance/v1.0/customer-credit-balance",
17
+ lockUnlockCreditNote:
18
+ "/service/application/finance/v1.0/lock-unlock-credit-note",
19
+ };
20
+ this._urls = Object.entries(this._relativeUrls).reduce(
21
+ (urls, [method, relativeUrl]) => {
22
+ urls[method] = `${_conf.domain}${relativeUrl}`;
23
+ return urls;
24
+ },
25
+ {}
26
+ );
27
+ }
28
+
29
+ updateUrls(urls) {
30
+ this._urls = {
31
+ ...this._urls,
32
+ ...urls,
33
+ };
34
+ }
35
+
36
+ /**
37
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
+ * @param {import("../ApplicationAPIClient").Options} - Options
39
+ * @returns {Promise<CustomerCreditBalanceResponseSchema>} - Success response
40
+ * @name customerCreditBalance
41
+ * @summary: This API will provide customer's credit balance against phone number or email and seller*affiliate id
42
+ * @description: This API will provide customer's credit balance against phone number or email and seller*affiliate id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/customerCreditBalance/).
43
+ */
44
+ async customerCreditBalance(
45
+ { body, requestHeaders } = { requestHeaders: {} },
46
+ { responseHeaders } = { responseHeaders: false }
47
+ ) {
48
+ const query_params = {};
49
+
50
+ const xHeaders = {};
51
+
52
+ const response = await ApplicationAPIClient.execute(
53
+ this._conf,
54
+ "post",
55
+ constructUrl({
56
+ url: this._urls["customerCreditBalance"],
57
+ params: {},
58
+ }),
59
+ query_params,
60
+ body,
61
+ { ...xHeaders, ...requestHeaders },
62
+ { responseHeaders }
63
+ );
64
+
65
+ let responseData = response;
66
+ if (responseHeaders) {
67
+ responseData = response[0];
68
+ }
69
+
70
+ return response;
71
+ }
72
+
73
+ /**
74
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
75
+ * @param {import("../ApplicationAPIClient").Options} - Options
76
+ * @returns {Promise<LockUnlockResponseSchema>} - Success response
77
+ * @name lockUnlockCreditNote
78
+ * @summary: Lock or Unlock requested credit note.
79
+ * @description: Used to lock or unlock requested credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/finance/lockUnlockCreditNote/).
80
+ */
81
+ async lockUnlockCreditNote(
82
+ { body, requestHeaders } = { requestHeaders: {} },
83
+ { responseHeaders } = { responseHeaders: false }
84
+ ) {
85
+ const query_params = {};
86
+
87
+ const xHeaders = {};
88
+
89
+ const response = await ApplicationAPIClient.execute(
90
+ this._conf,
91
+ "post",
92
+ constructUrl({
93
+ url: this._urls["lockUnlockCreditNote"],
94
+ params: {},
95
+ }),
96
+ query_params,
97
+ body,
98
+ { ...xHeaders, ...requestHeaders },
99
+ { responseHeaders }
100
+ );
101
+
102
+ let responseData = response;
103
+ if (responseHeaders) {
104
+ responseData = response[0];
105
+ }
106
+
107
+ return response;
108
+ }
109
+ }
110
+
111
+ module.exports = Finance;
@@ -16,10 +16,10 @@ declare class Lead {
16
16
  * @param {import("../ApplicationAPIClient").Options} - Options
17
17
  * @returns {Promise<TicketHistory>} - Success response
18
18
  * @name createHistory
19
- * @summary: Logs ticket history.
19
+ * @summary: Log ticket history
20
20
  * @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
21
21
  */
22
- createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<TicketHistory>;
22
+ createHistory({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<TicketHistory>;
23
23
  /**
24
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
25
25
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -37,7 +37,7 @@ declare class Lead {
37
37
  * @summary: Get custom form
38
38
  * @description: Get a customizable form template for data collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getCustomForm/).
39
39
  */
40
- getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CustomForm>;
40
+ getCustomForm({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<CustomForm>;
41
41
  /**
42
42
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
43
43
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -46,14 +46,14 @@ declare class Lead {
46
46
  * @summary: Get a support ticket
47
47
  * @description: Get details of a specific customer support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/getTicket/).
48
48
  */
49
- getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Ticket>;
49
+ getTicket({ id, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<Ticket>;
50
50
  /**
51
51
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
52
52
  * @param {import("../ApplicationAPIClient").Options} - Options
53
- * @returns {Promise<SubmitCustomFormResponse>} - Success response
53
+ * @returns {Promise<SubmitCustomFormDetails>} - Success response
54
54
  * @name submitCustomForm
55
55
  * @summary: Submits form data
56
56
  * @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
57
57
  */
58
- submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SubmitCustomFormResponse>;
58
+ submitCustomForm({ slug, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<SubmitCustomFormDetails>;
59
59
  }
@@ -6,13 +6,14 @@ const {
6
6
  const ApplicationAPIClient = require("../ApplicationAPIClient");
7
7
  const constructUrl = require("../constructUrl");
8
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
9
10
 
10
11
  class Lead {
11
12
  constructor(_conf) {
12
13
  this._conf = _conf;
13
14
  this._relativeUrls = {
14
15
  createHistory: "/service/application/lead/v1.0/ticket/{id}/history",
15
- createTicket: "/service/application/lead/v1.0/ticket",
16
+ createTicket: "/service/application/lead/v1.0/ticket/",
16
17
  getCustomForm: "/service/application/lead/v1.0/form/{slug}",
17
18
  getTicket: "/service/application/lead/v1.0/ticket/{id}",
18
19
  submitCustomForm: "/service/application/lead/v1.0/form/{slug}/submit",
@@ -38,25 +39,19 @@ class Lead {
38
39
  * @param {import("../ApplicationAPIClient").Options} - Options
39
40
  * @returns {Promise<TicketHistory>} - Success response
40
41
  * @name createHistory
41
- * @summary: Logs ticket history.
42
+ * @summary: Log ticket history
42
43
  * @description: Create a history entry for a specific support ticket. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/createHistory/).
43
44
  */
44
45
  async createHistory(
45
46
  { id, body, requestHeaders } = { requestHeaders: {} },
46
47
  { responseHeaders } = { responseHeaders: false }
47
48
  ) {
48
- let invalidInput = [];
49
-
50
- if (!id) {
51
- invalidInput.push({
52
- message: `The 'id' field is required.`,
53
- path: ["id"],
49
+ const errors = validateRequiredParams(arguments[0], ["id"]);
50
+ if (errors.length > 0) {
51
+ const error = new FDKClientValidationError({
52
+ message: "Missing required field",
53
+ details: errors,
54
54
  });
55
- }
56
- if (invalidInput.length) {
57
- const error = new Error();
58
- error.message = "Missing required field";
59
- error.details = invalidInput;
60
55
  return Promise.reject(new FDKClientValidationError(error));
61
56
  }
62
57
 
@@ -97,14 +92,6 @@ class Lead {
97
92
  { body, requestHeaders } = { requestHeaders: {} },
98
93
  { responseHeaders } = { responseHeaders: false }
99
94
  ) {
100
- let invalidInput = [];
101
- if (invalidInput.length) {
102
- const error = new Error();
103
- error.message = "Missing required field";
104
- error.details = invalidInput;
105
- return Promise.reject(new FDKClientValidationError(error));
106
- }
107
-
108
95
  const query_params = {};
109
96
 
110
97
  const xHeaders = {};
@@ -142,18 +129,12 @@ class Lead {
142
129
  { slug, requestHeaders } = { requestHeaders: {} },
143
130
  { responseHeaders } = { responseHeaders: false }
144
131
  ) {
145
- let invalidInput = [];
146
-
147
- if (!slug) {
148
- invalidInput.push({
149
- message: `The 'slug' field is required.`,
150
- path: ["slug"],
132
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
133
+ if (errors.length > 0) {
134
+ const error = new FDKClientValidationError({
135
+ message: "Missing required field",
136
+ details: errors,
151
137
  });
152
- }
153
- if (invalidInput.length) {
154
- const error = new Error();
155
- error.message = "Missing required field";
156
- error.details = invalidInput;
157
138
  return Promise.reject(new FDKClientValidationError(error));
158
139
  }
159
140
 
@@ -194,18 +175,12 @@ class Lead {
194
175
  { id, requestHeaders } = { requestHeaders: {} },
195
176
  { responseHeaders } = { responseHeaders: false }
196
177
  ) {
197
- let invalidInput = [];
198
-
199
- if (!id) {
200
- invalidInput.push({
201
- message: `The 'id' field is required.`,
202
- path: ["id"],
178
+ const errors = validateRequiredParams(arguments[0], ["id"]);
179
+ if (errors.length > 0) {
180
+ const error = new FDKClientValidationError({
181
+ message: "Missing required field",
182
+ details: errors,
203
183
  });
204
- }
205
- if (invalidInput.length) {
206
- const error = new Error();
207
- error.message = "Missing required field";
208
- error.details = invalidInput;
209
184
  return Promise.reject(new FDKClientValidationError(error));
210
185
  }
211
186
 
@@ -237,7 +212,7 @@ class Lead {
237
212
  /**
238
213
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
239
214
  * @param {import("../ApplicationAPIClient").Options} - Options
240
- * @returns {Promise<SubmitCustomFormResponse>} - Success response
215
+ * @returns {Promise<SubmitCustomFormDetails>} - Success response
241
216
  * @name submitCustomForm
242
217
  * @summary: Submits form data
243
218
  * @description: Create user-entered data from a custom form for processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/lead/submitCustomForm/).
@@ -246,18 +221,12 @@ class Lead {
246
221
  { slug, body, requestHeaders } = { requestHeaders: {} },
247
222
  { responseHeaders } = { responseHeaders: false }
248
223
  ) {
249
- let invalidInput = [];
250
-
251
- if (!slug) {
252
- invalidInput.push({
253
- message: `The 'slug' field is required.`,
254
- path: ["slug"],
224
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
225
+ if (errors.length > 0) {
226
+ const error = new FDKClientValidationError({
227
+ message: "Missing required field",
228
+ details: errors,
255
229
  });
256
- }
257
- if (invalidInput.length) {
258
- const error = new Error();
259
- error.message = "Missing required field";
260
- error.details = invalidInput;
261
230
  return Promise.reject(new FDKClientValidationError(error));
262
231
  }
263
232
 
@@ -3,15 +3,14 @@ declare class Logistic {
3
3
  constructor(_conf: any);
4
4
  _conf: any;
5
5
  _relativeUrls: {
6
- createShipments: string;
7
6
  getAllCountries: string;
8
7
  getCountries: string;
9
8
  getCountry: string;
10
- getGeoAreas: string;
9
+ getCourierPartners: string;
10
+ getDeliveryPromise: string;
11
11
  getLocalities: string;
12
12
  getLocality: string;
13
13
  getPincodeCity: string;
14
- getZones: string;
15
14
  validateAddress: string;
16
15
  };
17
16
  _urls: {};
@@ -19,50 +18,21 @@ declare class Logistic {
19
18
  /**
20
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
21
20
  * @param {import("../ApplicationAPIClient").Options} - Options
22
- * @returns {Promise<GenerateShipmentsAndCourierPartnerResponse>} - Success response
23
- * @name createShipments
24
- * @summary: Create and return shipments.
25
- * @description: Create and return shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/createShipments/).
26
- */
27
- createShipments({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GenerateShipmentsAndCourierPartnerResponse>;
28
- /**
29
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
30
- * @param {import("../ApplicationAPIClient").Options} - Options
31
- * @returns {Promise<CountryListResponse>} - Success response
21
+ * @returns {Promise<CountryResult>} - Success response
32
22
  * @name getAllCountries
33
23
  * @summary: Get deliverable countries
34
24
  * @description: Get a list of countries within the specified delivery zones for that application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getAllCountries/).
35
25
  */
36
- getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryListResponse>;
26
+ getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryResult>;
37
27
  /**
38
28
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
39
29
  * @param {import("../ApplicationAPIClient").Options} - Options
40
30
  * @returns {Promise<GetCountries>} - Success response
41
31
  * @name getCountries
42
- * @summary: Get all countries and associated data.
43
- * @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
32
+ * @summary: Get countries
33
+ * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
44
34
  */
45
- getCountries({ onboard, pageNo, pageSize, q, hierarchy, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
46
- /**
47
- * @param {Object} arg - Arg object.
48
- * @param {boolean} [arg.onboard] - Only fetch countries which allowed for
49
- * onboard on Platform.
50
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
51
- * page. Default value is 12
52
- * @param {string} [arg.q] - The search string to search in the list of
53
- * countries by name.
54
- * @param {string} [arg.hierarchy] - The search filter to filter countries
55
- * based on their available hierarchy.
56
- * @returns {Paginator<GetCountries>}
57
- * @summary: Get all countries and associated data.
58
- * @description: Retrieve a list of countries for logistical purposes.
59
- */
60
- getCountriesPaginator({ onboard, pageSize, q, hierarchy }?: {
61
- onboard?: boolean;
62
- pageSize?: number;
63
- q?: string;
64
- hierarchy?: string;
65
- }): Paginator<GetCountries>;
35
+ getCountries({ onboarding, pageNo, pageSize, q, hierarchy, phoneCode, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
66
36
  /**
67
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
68
38
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -71,84 +41,59 @@ declare class Logistic {
71
41
  * @summary: Get country details
72
42
  * @description: Get details about a particular country and its address format customized for different business scenarios. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountry/).
73
43
  */
74
- getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountry>;
44
+ getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetCountry>;
75
45
  /**
76
46
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
77
47
  * @param {import("../ApplicationAPIClient").Options} - Options
78
- * @returns {Promise<GeoAreaGetResponseBody>} - Success response
79
- * @name getGeoAreas
80
- * @summary: Get all geoareas in the current application.
81
- * @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getGeoAreas/).
48
+ * @returns {Promise<ShipmentCourierPartnerResult>} - Success response
49
+ * @name getCourierPartners
50
+ * @summary: Serviceable Courier Partners
51
+ * @description: Get all the serviceable courier partners of a destination and the shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCourierPartners/).
82
52
  */
83
- getGeoAreas({ applicationId, companyId, pageSize, pageNo, type, isActive, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GeoAreaGetResponseBody>;
53
+ getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentCourierPartnerResult>;
84
54
  /**
85
55
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
86
56
  * @param {import("../ApplicationAPIClient").Options} - Options
87
- * @returns {Promise<GetLocalities>} - Success response
88
- * @name getLocalities
89
- * @summary: Get Localities
90
- * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
57
+ * @returns {Promise<GetPromiseDetails>} - Success response
58
+ * @name getDeliveryPromise
59
+ * @summary: Get delivery promise
60
+ * @description: Get delivery promises for both global and store levels based on a specific locality type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getDeliveryPromise/).
91
61
  */
92
- getLocalities({ localityType, country, state, city, pageNo, pageSize, q, name, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
62
+ getDeliveryPromise({ xLocationDetail, xApplicationData, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
93
63
  /**
94
- * @param {Object} arg - Arg object.
95
- * @param {string} arg.localityType - Unique geographical division.
96
- * @param {string} [arg.country] - Country name.
97
- * @param {string} [arg.state] - State or the province.
98
- * @param {string} [arg.city] - City.
99
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
100
- * page. Default value is 12.
101
- * @param {string} [arg.q] - This parameter is used to filter or search the records.
102
- * @param {string} [arg.name] - Search for localities. Either provide a full
103
- * name or a search term.
104
- * @returns {Paginator<GetLocalities>}
64
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
65
+ * @param {import("../ApplicationAPIClient").Options} - Options
66
+ * @returns {Promise<GetLocalitiesApp>} - Success response
67
+ * @name getLocalities
105
68
  * @summary: Get Localities
106
- * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state.
69
+ * @description: Get Localities data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
107
70
  */
108
- getLocalitiesPaginator({ localityType, country, state, city, pageSize, q, name, }?: {
109
- localityType: string;
110
- country?: string;
111
- state?: string;
112
- city?: string;
113
- pageSize?: number;
114
- q?: string;
115
- name?: string;
116
- }): Paginator<GetLocalities>;
71
+ getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalitiesApp>;
117
72
  /**
118
73
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
119
74
  * @param {import("../ApplicationAPIClient").Options} - Options
120
- * @returns {Promise<GetLocality>} - Success response
75
+ * @returns {Promise<GetLocalityApp>} - Success response
121
76
  * @name getLocality
122
- * @summary: Get locality detail
77
+ * @summary: Get Locality API
123
78
  * @description: Get detailed geographical data for a specific locality, such as a pincode. For example, for a pincode value of 400603, the service returns its parent locations, including city, state, and country details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocality/).
124
79
  */
125
- getLocality({ localityType, localityValue, country, state, city, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocality>;
80
+ getLocality({ localityType, localityValue, country, state, city, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalityApp>;
126
81
  /**
127
82
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
128
83
  * @param {import("../ApplicationAPIClient").Options} - Options
129
- * @returns {Promise<PincodeApiResponse>} - Success response
84
+ * @returns {Promise<PincodeDetailsResult>} - Success response
130
85
  * @name getPincodeCity
131
- * @summary: Get Pincode API
86
+ * @summary: Get pincode details
132
87
  * @description: Get details of a specific pincode, such as obtaining its city and state information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeCity/).
133
88
  */
134
- getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PincodeApiResponse>;
135
- /**
136
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
137
- * @param {import("../ApplicationAPIClient").Options} - Options
138
- * @returns {Promise<ListViewResponseV2>} - Success response
139
- * @name getZones
140
- * @summary: Shows zones defined at the application level
141
- * @description: Displays the list of zones defined at the application level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getZones/).
142
- */
143
- getZones({ companyId, applicationId, stage, type, pageSize, pageNo, isActive, q, countryIsoCode, pincode, state, city, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ListViewResponseV2>;
89
+ getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<PincodeDetailsResult>;
144
90
  /**
145
91
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
146
92
  * @param {import("../ApplicationAPIClient").Options} - Options
147
- * @returns {Promise<ValidateAddressRequest>} - Success response
93
+ * @returns {Promise<ValidateAddressDetails>} - Success response
148
94
  * @name validateAddress
149
95
  * @summary: Validate address
150
96
  * @description: Validate addresses using specific templates customized for each country and tailored to various business scenarios. This validation ensures that the data conforms to the information currently stored in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/validateAddress/).
151
97
  */
152
- validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateAddressRequest>;
98
+ validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ValidateAddressDetails>;
153
99
  }
154
- import Paginator = require("../../common/Paginator");