@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  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 +81 -101
  6. package/sdk/application/Cart/CartApplicationClient.js +173 -511
  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 +61 -61
  16. package/sdk/application/Content/ContentApplicationClient.js +183 -366
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  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 +28 -117
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
  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 +10 -54
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
  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 +12 -12
  88. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  89. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  90. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  91. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  92. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
  94. package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
  96. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
  97. package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
  98. package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
  102. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
  103. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
  104. package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
  105. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
  106. package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
  108. package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
  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 +240 -376
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
  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 +330 -502
  120. package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
  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 -100
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
  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 -31
  128. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
  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 +562 -1289
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
  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 -248
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
  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 +2391 -924
  146. package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
  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 +406 -403
  180. package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
  181. package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
  182. package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
  183. package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
  184. package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
  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 +937 -2452
  191. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
  192. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -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 +1307 -3536
  196. package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
  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 -521
  209. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
  210. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
  211. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
  212. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
  213. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
  214. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
  215. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
  216. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
  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 -9
  222. package/sdk/platform/Share/SharePlatformModel.js +45 -5
  223. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
  224. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
  225. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
  226. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
  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 -0
  272. package/sdk/public/PublicClient.js +4 -0
  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 -0
  280. package/sdk/public/index.js +2 -0
  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
@@ -17,7 +17,7 @@ declare class FileStorage {
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<FileUploadComplete>;
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
@@ -35,7 +35,7 @@ declare class FileStorage {
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<FileUpload>;
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
 
@@ -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
 
@@ -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 = {};
@@ -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,17 +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;
9
+ getCourierPartners: string;
10
10
  getDeliveryPromise: string;
11
- getGeoAreas: string;
12
11
  getLocalities: string;
13
- getLocalitiesByPrefix: string;
14
12
  getLocality: string;
15
13
  getPincodeCity: string;
16
- getZones: string;
17
14
  validateAddress: string;
18
15
  };
19
16
  _urls: {};
@@ -21,50 +18,21 @@ declare class Logistic {
21
18
  /**
22
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
20
  * @param {import("../ApplicationAPIClient").Options} - Options
24
- * @returns {Promise<GenerateShipmentsAndCourierPartnerResponse>} - Success response
25
- * @name createShipments
26
- * @summary: Create and return shipments.
27
- * @description: Create and return shipments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/createShipments/).
28
- */
29
- createShipments({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GenerateShipmentsAndCourierPartnerResponse>;
30
- /**
31
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
32
- * @param {import("../ApplicationAPIClient").Options} - Options
33
- * @returns {Promise<CountryListResponse>} - Success response
21
+ * @returns {Promise<CountryResult>} - Success response
34
22
  * @name getAllCountries
35
23
  * @summary: Get deliverable countries
36
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/).
37
25
  */
38
- getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryListResponse>;
26
+ getAllCountries({ requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CountryResult>;
39
27
  /**
40
28
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
41
29
  * @param {import("../ApplicationAPIClient").Options} - Options
42
30
  * @returns {Promise<GetCountries>} - Success response
43
31
  * @name getCountries
44
- * @summary: Get all countries and associated data.
45
- * @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/).
46
34
  */
47
- getCountries({ onboard, pageNo, pageSize, q, hierarchy, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
48
- /**
49
- * @param {Object} arg - Arg object.
50
- * @param {boolean} [arg.onboard] - Only fetch countries which allowed for
51
- * onboard on Platform.
52
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
53
- * page. Default value is 12
54
- * @param {string} [arg.q] - The search string to search in the list of
55
- * countries by name.
56
- * @param {string} [arg.hierarchy] - The search filter to filter countries
57
- * based on their available hierarchy.
58
- * @returns {Paginator<GetCountries>}
59
- * @summary: Get all countries and associated data.
60
- * @description: Retrieve a list of countries for logistical purposes.
61
- */
62
- getCountriesPaginator({ onboard, pageSize, q, hierarchy }?: {
63
- onboard?: boolean;
64
- pageSize?: number;
65
- q?: string;
66
- hierarchy?: string;
67
- }): Paginator<GetCountries>;
35
+ getCountries({ onboarding, pageNo, pageSize, q, hierarchy, phoneCode, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountries>;
68
36
  /**
69
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
70
38
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -73,116 +41,59 @@ declare class Logistic {
73
41
  * @summary: Get country details
74
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/).
75
43
  */
76
- getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetCountry>;
44
+ getCountry({ countryIsoCode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetCountry>;
77
45
  /**
78
46
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
79
47
  * @param {import("../ApplicationAPIClient").Options} - Options
80
- * @returns {Promise<GetPromiseDetails>} - Success response
81
- * @name getDeliveryPromise
82
- * @summary: Get delivery promise
83
- * @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/).
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/).
84
52
  */
85
- getDeliveryPromise({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
53
+ getCourierPartners({ companyId, applicationId, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<ShipmentCourierPartnerResult>;
86
54
  /**
87
55
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
88
56
  * @param {import("../ApplicationAPIClient").Options} - Options
89
- * @returns {Promise<GeoAreaGetResponseBody>} - Success response
90
- * @name getGeoAreas
91
- * @summary: Get all geoareas in the current application.
92
- * @description: Retrieves a listing view of created GeoAreas. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getGeoAreas/).
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/).
93
61
  */
94
- getGeoAreas({ applicationId, companyId, pageSize, pageNo, type, isActive, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GeoAreaGetResponseBody>;
62
+ getDeliveryPromise({ xLocationDetail, xApplicationData, pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetPromiseDetails>;
95
63
  /**
96
64
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
97
65
  * @param {import("../ApplicationAPIClient").Options} - Options
98
- * @returns {Promise<GetLocalities>} - Success response
66
+ * @returns {Promise<GetLocalitiesApp>} - Success response
99
67
  * @name getLocalities
100
68
  * @summary: Get Localities
101
- * @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/).
69
+ * @description: Get Localities data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
102
70
  */
103
- getLocalities({ localityType, country, state, city, pageNo, pageSize, q, name, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
104
- /**
105
- * @param {Object} arg - Arg object.
106
- * @param {string} arg.localityType - Unique geographical division.
107
- * @param {string} [arg.country] - Country name.
108
- * @param {string} [arg.state] - State or the province.
109
- * @param {string} [arg.city] - City.
110
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
111
- * page. Default value is 12.
112
- * @param {string} [arg.q] - This parameter is used to filter or search the records.
113
- * @param {string} [arg.name] - Search for localities. Either provide a full
114
- * name or a search term.
115
- * @returns {Paginator<GetLocalities>}
116
- * @summary: Get Localities
117
- * @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.
118
- */
119
- getLocalitiesPaginator({ localityType, country, state, city, pageSize, q, name, }?: {
120
- localityType: string;
121
- country?: string;
122
- state?: string;
123
- city?: string;
124
- pageSize?: number;
125
- q?: string;
126
- name?: string;
127
- }): Paginator<GetLocalities>;
71
+ getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<GetLocalitiesApp>;
128
72
  /**
129
73
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
130
74
  * @param {import("../ApplicationAPIClient").Options} - Options
131
- * @returns {Promise<GetLocalities>} - Success response
132
- * @name getLocalitiesByPrefix
133
- * @summary: Get Localities by Name Prefix
134
- * @description: Get localities that start with a specified prefix. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalitiesByPrefix/).
135
- */
136
- getLocalitiesByPrefix({ companyId, pageNo, pageSize, q, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
137
- /**
138
- * @param {Object} arg - Arg object.
139
- * @param {number} arg.companyId - The unique identifier of the company.
140
- * @param {number} [arg.pageSize] - Number of items per page.
141
- * @param {string} [arg.q] - Localities starting with the specified prefix.
142
- * @returns {Paginator<GetLocalities>}
143
- * @summary: Get Localities by Name Prefix
144
- * @description: Get localities that start with a specified prefix.
145
- */
146
- getLocalitiesByPrefixPaginator({ companyId, pageSize, q }?: {
147
- companyId: number;
148
- pageSize?: number;
149
- q?: string;
150
- }): Paginator<GetLocalities>;
151
- /**
152
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
153
- * @param {import("../ApplicationAPIClient").Options} - Options
154
- * @returns {Promise<GetLocality>} - Success response
75
+ * @returns {Promise<GetLocalityApp>} - Success response
155
76
  * @name getLocality
156
- * @summary: Get locality detail
77
+ * @summary: Get Locality API
157
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/).
158
79
  */
159
- 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>;
160
81
  /**
161
82
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
162
83
  * @param {import("../ApplicationAPIClient").Options} - Options
163
- * @returns {Promise<PincodeApiResponse>} - Success response
84
+ * @returns {Promise<PincodeDetailsResult>} - Success response
164
85
  * @name getPincodeCity
165
- * @summary: Get Pincode API
86
+ * @summary: Get pincode details
166
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/).
167
88
  */
168
- getPincodeCity({ pincode, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PincodeApiResponse>;
169
- /**
170
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
171
- * @param {import("../ApplicationAPIClient").Options} - Options
172
- * @returns {Promise<ListViewResponseV2>} - Success response
173
- * @name getZones
174
- * @summary: Shows zones defined at the application level
175
- * @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/).
176
- */
177
- 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>;
178
90
  /**
179
91
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
180
92
  * @param {import("../ApplicationAPIClient").Options} - Options
181
- * @returns {Promise<ValidateAddressRequest>} - Success response
93
+ * @returns {Promise<ValidateAddressDetails>} - Success response
182
94
  * @name validateAddress
183
95
  * @summary: Validate address
184
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/).
185
97
  */
186
- 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>;
187
99
  }
188
- import Paginator = require("../../common/Paginator");