@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15-beta.3

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 (314) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +2 -3
  7. package/sdk/application/ApplicationClient.d.ts +2 -0
  8. package/sdk/application/ApplicationClient.js +2 -18
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
  10. package/sdk/application/Cart/CartApplicationClient.js +111 -1200
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
  13. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  14. package/sdk/application/Common/CommonApplicationClient.js +2 -92
  15. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  16. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  18. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
  19. package/sdk/application/Content/ContentApplicationClient.d.ts +52 -95
  20. package/sdk/application/Content/ContentApplicationClient.js +46 -990
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
  22. package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
  23. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  24. package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  26. package/sdk/application/Lead/LeadApplicationClient.js +5 -217
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
  28. package/sdk/application/Logistic/LogisticApplicationClient.js +89 -493
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
  30. package/sdk/application/Order/OrderApplicationClient.js +52 -507
  31. package/sdk/application/Payment/PaymentApplicationClient.d.ts +93 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
  33. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
  34. package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
  35. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  36. package/sdk/application/Share/ShareApplicationClient.js +7 -309
  37. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  38. package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
  39. package/sdk/application/User/UserApplicationClient.d.ts +87 -138
  40. package/sdk/application/User/UserApplicationClient.js +44 -1820
  41. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
  42. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
  43. package/sdk/application/index.d.ts +0 -18
  44. package/sdk/application/index.js +0 -33
  45. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  46. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  47. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
  48. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  49. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  50. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  51. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  52. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  53. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  55. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  61. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  62. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  63. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  64. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  65. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  66. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  67. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  68. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  69. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  70. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  71. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  73. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  75. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  81. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  82. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  83. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  84. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  85. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  86. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  87. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  89. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5046 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1979 -1217
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  98. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  104. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  105. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  106. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  107. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  124. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  126. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  128. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  130. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
  134. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  135. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  136. package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
  137. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  138. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  139. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  144. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  145. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  154. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  156. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  157. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  158. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  159. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  160. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  161. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  162. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  163. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  164. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  165. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
  167. package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  170. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  171. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  172. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  173. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  174. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  175. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  176. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  177. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  178. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  179. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  180. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  181. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  182. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  183. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  184. package/sdk/platform/PlatformClient.d.ts +0 -2
  185. package/sdk/platform/PlatformClient.js +0 -4
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  188. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  189. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  190. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  191. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  204. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  205. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  210. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  211. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  212. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  214. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  215. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  216. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  217. package/sdk/platform/User/UserPlatformModel.js +23 -23
  218. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  219. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  220. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  221. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  223. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  224. package/sdk/platform/index.d.ts +0 -1
  225. package/sdk/platform/index.js +0 -2
  226. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  227. package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -7
  228. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  229. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  230. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  231. package/sdk/public/Content/ContentPublicClient.js +795 -7
  232. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  233. package/sdk/public/Content/ContentPublicModel.js +649 -3
  234. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  235. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  236. package/sdk/public/Partner/PartnerPublicClient.js +4 -2
  237. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  238. package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
  239. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  240. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  241. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  242. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  243. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  244. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  245. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  246. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  247. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  248. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  249. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  250. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  251. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  252. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  253. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  254. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  255. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  256. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  257. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  258. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  259. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  260. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  261. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  262. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  263. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  264. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  265. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  266. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  267. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  268. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  269. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  270. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  271. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  272. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  273. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  274. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  275. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  276. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  277. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  278. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  279. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  280. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  281. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  282. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  283. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  284. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  285. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  286. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  287. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  288. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  289. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  290. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  291. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  292. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  293. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  294. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  295. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  296. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  297. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  298. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  299. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  300. package/sdk/application/User/UserApplicationModel.js +0 -1382
  301. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  302. package/sdk/application/User/UserApplicationValidator.js +0 -573
  303. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  304. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  305. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  306. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  307. package/sdk/common/Clickstream.d.ts +0 -1
  308. package/sdk/common/Clickstream.js +0 -464
  309. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  310. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  311. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  312. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  313. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  314. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -1,14 +1,6 @@
1
1
  const ApplicationAPIClient = require("../ApplicationAPIClient");
2
- const {
3
- FDKClientValidationError,
4
- FDKResponseValidationError,
5
- } = require("../../common/FDKError");
6
2
  const constructUrl = require("../constructUrl");
7
3
  const Paginator = require("../../common/Paginator");
8
- const LogisticApplicationValidator = require("./LogisticApplicationValidator");
9
- const LogisticApplicationModel = require("./LogisticApplicationModel");
10
- const { Logger } = require("./../../common/Logger");
11
- const Joi = require("joi");
12
4
 
13
5
  class Logistic {
14
6
  constructor(_conf) {
@@ -18,6 +10,10 @@ class Logistic {
18
10
  getCountries: "/service/application/logistics/v2.0/countries",
19
11
  getCountry:
20
12
  "/service/application/logistics/v1.0/countries/{country_iso_code}",
13
+ getCourierPartners:
14
+ "/service/application/logistics/v1.0/company/{company_id}/application/{application_id}/shipment/courier-partners",
15
+ getDeliveryPromise:
16
+ "/service/application/logistics/v1.0/delivery-promise",
21
17
  getLocalities:
22
18
  "/service/application/logistics/v1.0/localities/{locality_type}",
23
19
  getLocality:
@@ -48,10 +44,9 @@ class Logistic {
48
44
  }
49
45
 
50
46
  /**
51
- * @param {LogisticApplicationValidator.GetAllCountriesParam} arg - Arg object.
52
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
53
48
  * @param {import("../ApplicationAPIClient").Options} - Options
54
- * @returns {Promise<LogisticApplicationModel.CountryListResponse>} - Success response
49
+ * @returns {Promise<CountryListResult>} - Success response
55
50
  * @name getAllCountries
56
51
  * @summary: Get deliverable countries
57
52
  * @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/).
@@ -60,28 +55,6 @@ class Logistic {
60
55
  { requestHeaders } = { requestHeaders: {} },
61
56
  { responseHeaders } = { responseHeaders: false }
62
57
  ) {
63
- const { error } = LogisticApplicationValidator.getAllCountries().validate(
64
- {},
65
- { abortEarly: false, allowUnknown: true }
66
- );
67
- if (error) {
68
- return Promise.reject(new FDKClientValidationError(error));
69
- }
70
-
71
- // Showing warrnings if extra unknown parameters are found
72
- const {
73
- error: warrning,
74
- } = LogisticApplicationValidator.getAllCountries().validate(
75
- {},
76
- { abortEarly: false, allowUnknown: false }
77
- );
78
- if (warrning) {
79
- Logger({
80
- level: "WARN",
81
- message: `Parameter Validation warrnings for application > Logistic > getAllCountries \n ${warrning}`,
82
- });
83
- }
84
-
85
58
  const query_params = {};
86
59
 
87
60
  const xHeaders = {};
@@ -104,69 +77,29 @@ class Logistic {
104
77
  responseData = response[0];
105
78
  }
106
79
 
107
- const {
108
- error: res_error,
109
- } = LogisticApplicationModel.CountryListResponse().validate(responseData, {
110
- abortEarly: false,
111
- allowUnknown: true,
112
- });
113
-
114
- if (res_error) {
115
- if (this._conf.options.strictResponseCheck === true) {
116
- return Promise.reject(new FDKResponseValidationError(res_error));
117
- } else {
118
- Logger({
119
- level: "WARN",
120
- message: `Response Validation Warnings for application > Logistic > getAllCountries \n ${res_error}`,
121
- });
122
- }
123
- }
124
-
125
80
  return response;
126
81
  }
127
82
 
128
83
  /**
129
- * @param {LogisticApplicationValidator.GetCountriesParam} arg - Arg object.
130
84
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
131
85
  * @param {import("../ApplicationAPIClient").Options} - Options
132
- * @returns {Promise<LogisticApplicationModel.GetCountries>} - Success response
86
+ * @returns {Promise<GetCountries>} - Success response
133
87
  * @name getCountries
134
88
  * @summary: Get countries
135
89
  * @description: List of supported countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getCountries/).
136
90
  */
137
91
  async getCountries(
138
- { onboarding, pageNo, pageSize, q, requestHeaders } = {
92
+ { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
139
93
  requestHeaders: {},
140
94
  },
141
95
  { responseHeaders } = { responseHeaders: false }
142
96
  ) {
143
- const { error } = LogisticApplicationValidator.getCountries().validate(
144
- { onboarding, pageNo, pageSize, q },
145
- { abortEarly: false, allowUnknown: true }
146
- );
147
- if (error) {
148
- return Promise.reject(new FDKClientValidationError(error));
149
- }
150
-
151
- // Showing warrnings if extra unknown parameters are found
152
- const {
153
- error: warrning,
154
- } = LogisticApplicationValidator.getCountries().validate(
155
- { onboarding, pageNo, pageSize, q },
156
- { abortEarly: false, allowUnknown: false }
157
- );
158
- if (warrning) {
159
- Logger({
160
- level: "WARN",
161
- message: `Parameter Validation warrnings for application > Logistic > getCountries \n ${warrning}`,
162
- });
163
- }
164
-
165
97
  const query_params = {};
166
98
  query_params["onboarding"] = onboarding;
167
99
  query_params["page_no"] = pageNo;
168
100
  query_params["page_size"] = pageSize;
169
101
  query_params["q"] = q;
102
+ query_params["hierarchy"] = hierarchy;
170
103
 
171
104
  const xHeaders = {};
172
105
 
@@ -188,32 +121,13 @@ class Logistic {
188
121
  responseData = response[0];
189
122
  }
190
123
 
191
- const {
192
- error: res_error,
193
- } = LogisticApplicationModel.GetCountries().validate(responseData, {
194
- abortEarly: false,
195
- allowUnknown: true,
196
- });
197
-
198
- if (res_error) {
199
- if (this._conf.options.strictResponseCheck === true) {
200
- return Promise.reject(new FDKResponseValidationError(res_error));
201
- } else {
202
- Logger({
203
- level: "WARN",
204
- message: `Response Validation Warnings for application > Logistic > getCountries \n ${res_error}`,
205
- });
206
- }
207
- }
208
-
209
124
  return response;
210
125
  }
211
126
 
212
127
  /**
213
- * @param {LogisticApplicationValidator.GetCountryParam} arg - Arg object.
214
128
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
215
129
  * @param {import("../ApplicationAPIClient").Options} - Options
216
- * @returns {Promise<LogisticApplicationModel.GetCountry>} - Success response
130
+ * @returns {Promise<GetCountry>} - Success response
217
131
  * @name getCountry
218
132
  * @summary: Get country details
219
133
  * @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/).
@@ -222,29 +136,83 @@ class Logistic {
222
136
  { countryIsoCode, requestHeaders } = { requestHeaders: {} },
223
137
  { responseHeaders } = { responseHeaders: false }
224
138
  ) {
225
- const { error } = LogisticApplicationValidator.getCountry().validate(
226
- { countryIsoCode },
227
- { abortEarly: false, allowUnknown: true }
139
+ const query_params = {};
140
+
141
+ const xHeaders = {};
142
+
143
+ const response = await ApplicationAPIClient.execute(
144
+ this._conf,
145
+ "get",
146
+ constructUrl({
147
+ url: this._urls["getCountry"],
148
+ params: { countryIsoCode },
149
+ }),
150
+ query_params,
151
+ undefined,
152
+ { ...xHeaders, ...requestHeaders },
153
+ { responseHeaders }
228
154
  );
229
- if (error) {
230
- return Promise.reject(new FDKClientValidationError(error));
155
+
156
+ let responseData = response;
157
+ if (responseHeaders) {
158
+ responseData = response[0];
231
159
  }
232
160
 
233
- // Showing warrnings if extra unknown parameters are found
234
- const {
235
- error: warrning,
236
- } = LogisticApplicationValidator.getCountry().validate(
237
- { countryIsoCode },
238
- { abortEarly: false, allowUnknown: false }
161
+ return response;
162
+ }
163
+
164
+ /**
165
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
166
+ * @param {import("../ApplicationAPIClient").Options} - Options
167
+ * @returns {Promise<ShipmentCourierPartnerResult>} - Success response
168
+ * @name getCourierPartners
169
+ * @summary: Serviceable Courier Partners.
170
+ * @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/).
171
+ */
172
+ async getCourierPartners(
173
+ { companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
174
+ { responseHeaders } = { responseHeaders: false }
175
+ ) {
176
+ const query_params = {};
177
+
178
+ const xHeaders = {};
179
+
180
+ const response = await ApplicationAPIClient.execute(
181
+ this._conf,
182
+ "post",
183
+ constructUrl({
184
+ url: this._urls["getCourierPartners"],
185
+ params: { companyId, applicationId },
186
+ }),
187
+ query_params,
188
+ body,
189
+ { ...xHeaders, ...requestHeaders },
190
+ { responseHeaders }
239
191
  );
240
- if (warrning) {
241
- Logger({
242
- level: "WARN",
243
- message: `Parameter Validation warrnings for application > Logistic > getCountry \n ${warrning}`,
244
- });
192
+
193
+ let responseData = response;
194
+ if (responseHeaders) {
195
+ responseData = response[0];
245
196
  }
246
197
 
198
+ return response;
199
+ }
200
+
201
+ /**
202
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
203
+ * @param {import("../ApplicationAPIClient").Options} - Options
204
+ * @returns {Promise<GetPromiseDetails>} - Success response
205
+ * @name getDeliveryPromise
206
+ * @summary: Get delivery promise
207
+ * @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/).
208
+ */
209
+ async getDeliveryPromise(
210
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
211
+ { responseHeaders } = { responseHeaders: false }
212
+ ) {
247
213
  const query_params = {};
214
+ query_params["page_no"] = pageNo;
215
+ query_params["page_size"] = pageSize;
248
216
 
249
217
  const xHeaders = {};
250
218
 
@@ -252,8 +220,8 @@ class Logistic {
252
220
  this._conf,
253
221
  "get",
254
222
  constructUrl({
255
- url: this._urls["getCountry"],
256
- params: { countryIsoCode },
223
+ url: this._urls["getDeliveryPromise"],
224
+ params: {},
257
225
  }),
258
226
  query_params,
259
227
  undefined,
@@ -266,32 +234,13 @@ class Logistic {
266
234
  responseData = response[0];
267
235
  }
268
236
 
269
- const {
270
- error: res_error,
271
- } = LogisticApplicationModel.GetCountry().validate(responseData, {
272
- abortEarly: false,
273
- allowUnknown: true,
274
- });
275
-
276
- if (res_error) {
277
- if (this._conf.options.strictResponseCheck === true) {
278
- return Promise.reject(new FDKResponseValidationError(res_error));
279
- } else {
280
- Logger({
281
- level: "WARN",
282
- message: `Response Validation Warnings for application > Logistic > getCountry \n ${res_error}`,
283
- });
284
- }
285
- }
286
-
287
237
  return response;
288
238
  }
289
239
 
290
240
  /**
291
- * @param {LogisticApplicationValidator.GetLocalitiesParam} arg - Arg object.
292
241
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
293
242
  * @param {import("../ApplicationAPIClient").Options} - Options
294
- * @returns {Promise<LogisticApplicationModel.GetLocalities>} - Success response
243
+ * @returns {Promise<GetLocalities>} - Success response
295
244
  * @name getLocalities
296
245
  * @summary: Get localities
297
246
  * @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/).
@@ -309,28 +258,6 @@ class Logistic {
309
258
  } = { requestHeaders: {} },
310
259
  { responseHeaders } = { responseHeaders: false }
311
260
  ) {
312
- const { error } = LogisticApplicationValidator.getLocalities().validate(
313
- { localityType, country, state, city, pageNo, pageSize, q },
314
- { abortEarly: false, allowUnknown: true }
315
- );
316
- if (error) {
317
- return Promise.reject(new FDKClientValidationError(error));
318
- }
319
-
320
- // Showing warrnings if extra unknown parameters are found
321
- const {
322
- error: warrning,
323
- } = LogisticApplicationValidator.getLocalities().validate(
324
- { localityType, country, state, city, pageNo, pageSize, q },
325
- { abortEarly: false, allowUnknown: false }
326
- );
327
- if (warrning) {
328
- Logger({
329
- level: "WARN",
330
- message: `Parameter Validation warrnings for application > Logistic > getLocalities \n ${warrning}`,
331
- });
332
- }
333
-
334
261
  const query_params = {};
335
262
  query_params["country"] = country;
336
263
  query_params["state"] = state;
@@ -359,32 +286,13 @@ class Logistic {
359
286
  responseData = response[0];
360
287
  }
361
288
 
362
- const {
363
- error: res_error,
364
- } = LogisticApplicationModel.GetLocalities().validate(responseData, {
365
- abortEarly: false,
366
- allowUnknown: true,
367
- });
368
-
369
- if (res_error) {
370
- if (this._conf.options.strictResponseCheck === true) {
371
- return Promise.reject(new FDKResponseValidationError(res_error));
372
- } else {
373
- Logger({
374
- level: "WARN",
375
- message: `Response Validation Warnings for application > Logistic > getLocalities \n ${res_error}`,
376
- });
377
- }
378
- }
379
-
380
289
  return response;
381
290
  }
382
291
 
383
292
  /**
384
- * @param {LogisticApplicationValidator.GetLocalityParam} arg - Arg object.
385
293
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
386
294
  * @param {import("../ApplicationAPIClient").Options} - Options
387
- * @returns {Promise<LogisticApplicationModel.GetLocality>} - Success response
295
+ * @returns {Promise<GetLocality>} - Success response
388
296
  * @name getLocality
389
297
  * @summary: Get locality detail
390
298
  * @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/).
@@ -395,28 +303,6 @@ class Logistic {
395
303
  },
396
304
  { responseHeaders } = { responseHeaders: false }
397
305
  ) {
398
- const { error } = LogisticApplicationValidator.getLocality().validate(
399
- { localityType, localityValue, country, state, city },
400
- { abortEarly: false, allowUnknown: true }
401
- );
402
- if (error) {
403
- return Promise.reject(new FDKClientValidationError(error));
404
- }
405
-
406
- // Showing warrnings if extra unknown parameters are found
407
- const {
408
- error: warrning,
409
- } = LogisticApplicationValidator.getLocality().validate(
410
- { localityType, localityValue, country, state, city },
411
- { abortEarly: false, allowUnknown: false }
412
- );
413
- if (warrning) {
414
- Logger({
415
- level: "WARN",
416
- message: `Parameter Validation warrnings for application > Logistic > getLocality \n ${warrning}`,
417
- });
418
- }
419
-
420
306
  const query_params = {};
421
307
  query_params["country"] = country;
422
308
  query_params["state"] = state;
@@ -442,32 +328,13 @@ class Logistic {
442
328
  responseData = response[0];
443
329
  }
444
330
 
445
- const {
446
- error: res_error,
447
- } = LogisticApplicationModel.GetLocality().validate(responseData, {
448
- abortEarly: false,
449
- allowUnknown: true,
450
- });
451
-
452
- if (res_error) {
453
- if (this._conf.options.strictResponseCheck === true) {
454
- return Promise.reject(new FDKResponseValidationError(res_error));
455
- } else {
456
- Logger({
457
- level: "WARN",
458
- message: `Response Validation Warnings for application > Logistic > getLocality \n ${res_error}`,
459
- });
460
- }
461
- }
462
-
463
331
  return response;
464
332
  }
465
333
 
466
334
  /**
467
- * @param {LogisticApplicationValidator.GetLocationsParam} arg - Arg object.
468
335
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
469
336
  * @param {import("../ApplicationAPIClient").Options} - Options
470
- * @returns {Promise<LogisticApplicationModel.GetStoreResponse>} - Success response
337
+ * @returns {Promise<GetStoreResult>} - Success response
471
338
  * @name getLocations
472
339
  * @summary: Get available selling locations
473
340
  * @description: Get stores available for the application based on Delivery Zones and Order Orchestration rules. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocations/).
@@ -487,48 +354,6 @@ class Logistic {
487
354
  } = { requestHeaders: {} },
488
355
  { responseHeaders } = { responseHeaders: false }
489
356
  ) {
490
- const { error } = LogisticApplicationValidator.getLocations().validate(
491
- {
492
- xApplicationId,
493
- xApplicationData,
494
- country,
495
- state,
496
- city,
497
- pincode,
498
- sector,
499
- pageNo,
500
- pageSize,
501
- },
502
- { abortEarly: false, allowUnknown: true }
503
- );
504
- if (error) {
505
- return Promise.reject(new FDKClientValidationError(error));
506
- }
507
-
508
- // Showing warrnings if extra unknown parameters are found
509
- const {
510
- error: warrning,
511
- } = LogisticApplicationValidator.getLocations().validate(
512
- {
513
- xApplicationId,
514
- xApplicationData,
515
- country,
516
- state,
517
- city,
518
- pincode,
519
- sector,
520
- pageNo,
521
- pageSize,
522
- },
523
- { abortEarly: false, allowUnknown: false }
524
- );
525
- if (warrning) {
526
- Logger({
527
- level: "WARN",
528
- message: `Parameter Validation warrnings for application > Logistic > getLocations \n ${warrning}`,
529
- });
530
- }
531
-
532
357
  const query_params = {};
533
358
  query_params["x-application-id"] = xApplicationId;
534
359
  query_params["x-application-data"] = xApplicationData;
@@ -560,33 +385,13 @@ class Logistic {
560
385
  responseData = response[0];
561
386
  }
562
387
 
563
- const {
564
- error: res_error,
565
- } = LogisticApplicationModel.GetStoreResponse().validate(responseData, {
566
- abortEarly: false,
567
- allowUnknown: true,
568
- });
569
-
570
- if (res_error) {
571
- if (this._conf.options.strictResponseCheck === true) {
572
- return Promise.reject(new FDKResponseValidationError(res_error));
573
- } else {
574
- Logger({
575
- level: "WARN",
576
- message: `Response Validation Warnings for application > Logistic > getLocations \n ${res_error}`,
577
- });
578
- }
579
- }
580
-
581
388
  return response;
582
389
  }
583
390
 
584
391
  /**
585
- * @param {LogisticApplicationValidator.GetOptimalLocationsParam} arg - Arg object.
586
392
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
587
393
  * @param {import("../ApplicationAPIClient").Options} - Options
588
- * @returns {Promise<LogisticApplicationModel.ReAssignStoreResponse>} -
589
- * Success response
394
+ * @returns {Promise<ReAssignStoreResult>} - Success response
590
395
  * @name getOptimalLocations
591
396
  * @summary: Get selling locations
592
397
  * @description: Get optimal fulfillment centre for customers by analyzing their location, product availability, and inventory levels. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getOptimalLocations/).
@@ -595,30 +400,6 @@ class Logistic {
595
400
  { body, requestHeaders } = { requestHeaders: {} },
596
401
  { responseHeaders } = { responseHeaders: false }
597
402
  ) {
598
- const {
599
- error,
600
- } = LogisticApplicationValidator.getOptimalLocations().validate(
601
- { body },
602
- { abortEarly: false, allowUnknown: true }
603
- );
604
- if (error) {
605
- return Promise.reject(new FDKClientValidationError(error));
606
- }
607
-
608
- // Showing warrnings if extra unknown parameters are found
609
- const {
610
- error: warrning,
611
- } = LogisticApplicationValidator.getOptimalLocations().validate(
612
- { body },
613
- { abortEarly: false, allowUnknown: false }
614
- );
615
- if (warrning) {
616
- Logger({
617
- level: "WARN",
618
- message: `Parameter Validation warrnings for application > Logistic > getOptimalLocations \n ${warrning}`,
619
- });
620
- }
621
-
622
403
  const query_params = {};
623
404
 
624
405
  const xHeaders = {};
@@ -641,32 +422,13 @@ class Logistic {
641
422
  responseData = response[0];
642
423
  }
643
424
 
644
- const {
645
- error: res_error,
646
- } = LogisticApplicationModel.ReAssignStoreResponse().validate(
647
- responseData,
648
- { abortEarly: false, allowUnknown: true }
649
- );
650
-
651
- if (res_error) {
652
- if (this._conf.options.strictResponseCheck === true) {
653
- return Promise.reject(new FDKResponseValidationError(res_error));
654
- } else {
655
- Logger({
656
- level: "WARN",
657
- message: `Response Validation Warnings for application > Logistic > getOptimalLocations \n ${res_error}`,
658
- });
659
- }
660
- }
661
-
662
425
  return response;
663
426
  }
664
427
 
665
428
  /**
666
- * @param {LogisticApplicationValidator.GetPincodeCityParam} arg - Arg object.
667
429
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
668
430
  * @param {import("../ApplicationAPIClient").Options} - Options
669
- * @returns {Promise<LogisticApplicationModel.PincodeApiResponse>} - Success response
431
+ * @returns {Promise<PincodeDetails>} - Success response
670
432
  * @name getPincodeCity
671
433
  * @summary: Get pincode details
672
434
  * @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/).
@@ -675,28 +437,6 @@ class Logistic {
675
437
  { pincode, requestHeaders } = { requestHeaders: {} },
676
438
  { responseHeaders } = { responseHeaders: false }
677
439
  ) {
678
- const { error } = LogisticApplicationValidator.getPincodeCity().validate(
679
- { pincode },
680
- { abortEarly: false, allowUnknown: true }
681
- );
682
- if (error) {
683
- return Promise.reject(new FDKClientValidationError(error));
684
- }
685
-
686
- // Showing warrnings if extra unknown parameters are found
687
- const {
688
- error: warrning,
689
- } = LogisticApplicationValidator.getPincodeCity().validate(
690
- { pincode },
691
- { abortEarly: false, allowUnknown: false }
692
- );
693
- if (warrning) {
694
- Logger({
695
- level: "WARN",
696
- message: `Parameter Validation warrnings for application > Logistic > getPincodeCity \n ${warrning}`,
697
- });
698
- }
699
-
700
440
  const query_params = {};
701
441
 
702
442
  const xHeaders = {};
@@ -719,34 +459,13 @@ class Logistic {
719
459
  responseData = response[0];
720
460
  }
721
461
 
722
- const {
723
- error: res_error,
724
- } = LogisticApplicationModel.PincodeApiResponse().validate(responseData, {
725
- abortEarly: false,
726
- allowUnknown: true,
727
- });
728
-
729
- if (res_error) {
730
- if (this._conf.options.strictResponseCheck === true) {
731
- return Promise.reject(new FDKResponseValidationError(res_error));
732
- } else {
733
- Logger({
734
- level: "WARN",
735
- message: `Response Validation Warnings for application > Logistic > getPincodeCity \n ${res_error}`,
736
- });
737
- }
738
- }
739
-
740
462
  return response;
741
463
  }
742
464
 
743
465
  /**
744
- * @param {LogisticApplicationValidator.GetPincodeZonesParam} arg - Arg object.
745
466
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
746
467
  * @param {import("../ApplicationAPIClient").Options} - Options
747
- * @returns {Promise<LogisticApplicationModel.GetZoneFromPincodeViewResponse>}
748
- * - Success response
749
- *
468
+ * @returns {Promise<GetZoneFromPincodeViewResult>} - Success response
750
469
  * @name getPincodeZones
751
470
  * @summary: Get zones
752
471
  * @description: Get the delivery zone associated with a given pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getPincodeZones/).
@@ -755,28 +474,6 @@ class Logistic {
755
474
  { body, requestHeaders } = { requestHeaders: {} },
756
475
  { responseHeaders } = { responseHeaders: false }
757
476
  ) {
758
- const { error } = LogisticApplicationValidator.getPincodeZones().validate(
759
- { body },
760
- { abortEarly: false, allowUnknown: true }
761
- );
762
- if (error) {
763
- return Promise.reject(new FDKClientValidationError(error));
764
- }
765
-
766
- // Showing warrnings if extra unknown parameters are found
767
- const {
768
- error: warrning,
769
- } = LogisticApplicationValidator.getPincodeZones().validate(
770
- { body },
771
- { abortEarly: false, allowUnknown: false }
772
- );
773
- if (warrning) {
774
- Logger({
775
- level: "WARN",
776
- message: `Parameter Validation warrnings for application > Logistic > getPincodeZones \n ${warrning}`,
777
- });
778
- }
779
-
780
477
  const query_params = {};
781
478
 
782
479
  const xHeaders = {};
@@ -799,32 +496,13 @@ class Logistic {
799
496
  responseData = response[0];
800
497
  }
801
498
 
802
- const {
803
- error: res_error,
804
- } = LogisticApplicationModel.GetZoneFromPincodeViewResponse().validate(
805
- responseData,
806
- { abortEarly: false, allowUnknown: true }
807
- );
808
-
809
- if (res_error) {
810
- if (this._conf.options.strictResponseCheck === true) {
811
- return Promise.reject(new FDKResponseValidationError(res_error));
812
- } else {
813
- Logger({
814
- level: "WARN",
815
- message: `Response Validation Warnings for application > Logistic > getPincodeZones \n ${res_error}`,
816
- });
817
- }
818
- }
819
-
820
499
  return response;
821
500
  }
822
501
 
823
502
  /**
824
- * @param {LogisticApplicationValidator.GetTatProductParam} arg - Arg object.
825
503
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
826
504
  * @param {import("../ApplicationAPIClient").Options} - Options
827
- * @returns {Promise<LogisticApplicationModel.TATViewResponse>} - Success response
505
+ * @returns {Promise<TATViewResult>} - Success response
828
506
  * @name getTatProduct
829
507
  * @summary: Get product's turnaround time
830
508
  * @description: Get the estimated delivery time frame for a specific product from a designated store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getTatProduct/).
@@ -833,28 +511,6 @@ class Logistic {
833
511
  { body, requestHeaders } = { requestHeaders: {} },
834
512
  { responseHeaders } = { responseHeaders: false }
835
513
  ) {
836
- const { error } = LogisticApplicationValidator.getTatProduct().validate(
837
- { body },
838
- { abortEarly: false, allowUnknown: true }
839
- );
840
- if (error) {
841
- return Promise.reject(new FDKClientValidationError(error));
842
- }
843
-
844
- // Showing warrnings if extra unknown parameters are found
845
- const {
846
- error: warrning,
847
- } = LogisticApplicationValidator.getTatProduct().validate(
848
- { body },
849
- { abortEarly: false, allowUnknown: false }
850
- );
851
- if (warrning) {
852
- Logger({
853
- level: "WARN",
854
- message: `Parameter Validation warrnings for application > Logistic > getTatProduct \n ${warrning}`,
855
- });
856
- }
857
-
858
514
  const query_params = {};
859
515
 
860
516
  const xHeaders = {};
@@ -877,33 +533,13 @@ class Logistic {
877
533
  responseData = response[0];
878
534
  }
879
535
 
880
- const {
881
- error: res_error,
882
- } = LogisticApplicationModel.TATViewResponse().validate(responseData, {
883
- abortEarly: false,
884
- allowUnknown: true,
885
- });
886
-
887
- if (res_error) {
888
- if (this._conf.options.strictResponseCheck === true) {
889
- return Promise.reject(new FDKResponseValidationError(res_error));
890
- } else {
891
- Logger({
892
- level: "WARN",
893
- message: `Response Validation Warnings for application > Logistic > getTatProduct \n ${res_error}`,
894
- });
895
- }
896
- }
897
-
898
536
  return response;
899
537
  }
900
538
 
901
539
  /**
902
- * @param {LogisticApplicationValidator.ValidateAddressParam} arg - Arg object.
903
540
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
904
541
  * @param {import("../ApplicationAPIClient").Options} - Options
905
- * @returns {Promise<LogisticApplicationModel.ValidateAddressRequest>} -
906
- * Success response
542
+ * @returns {Promise<ValidateAddressDetails>} - Success response
907
543
  * @name validateAddress
908
544
  * @summary: Validate address
909
545
  * @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/).
@@ -914,28 +550,6 @@ class Logistic {
914
550
  },
915
551
  { responseHeaders } = { responseHeaders: false }
916
552
  ) {
917
- const { error } = LogisticApplicationValidator.validateAddress().validate(
918
- { countryIsoCode, templateName, body },
919
- { abortEarly: false, allowUnknown: true }
920
- );
921
- if (error) {
922
- return Promise.reject(new FDKClientValidationError(error));
923
- }
924
-
925
- // Showing warrnings if extra unknown parameters are found
926
- const {
927
- error: warrning,
928
- } = LogisticApplicationValidator.validateAddress().validate(
929
- { countryIsoCode, templateName, body },
930
- { abortEarly: false, allowUnknown: false }
931
- );
932
- if (warrning) {
933
- Logger({
934
- level: "WARN",
935
- message: `Parameter Validation warrnings for application > Logistic > validateAddress \n ${warrning}`,
936
- });
937
- }
938
-
939
553
  const query_params = {};
940
554
 
941
555
  const xHeaders = {};
@@ -958,24 +572,6 @@ class Logistic {
958
572
  responseData = response[0];
959
573
  }
960
574
 
961
- const {
962
- error: res_error,
963
- } = LogisticApplicationModel.ValidateAddressRequest().validate(
964
- responseData,
965
- { abortEarly: false, allowUnknown: true }
966
- );
967
-
968
- if (res_error) {
969
- if (this._conf.options.strictResponseCheck === true) {
970
- return Promise.reject(new FDKResponseValidationError(res_error));
971
- } else {
972
- Logger({
973
- level: "WARN",
974
- message: `Response Validation Warnings for application > Logistic > validateAddress \n ${res_error}`,
975
- });
976
- }
977
- }
978
-
979
575
  return response;
980
576
  }
981
577
  }