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

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 +108 -1199
  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 +48 -111
  20. package/sdk/application/Content/ContentApplicationClient.js +43 -1065
  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 +91 -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 +103 -213
  32. package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
  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 +157 -30
  56. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
  57. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
  58. package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
  59. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
  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 +407 -112
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
  91. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
  92. package/sdk/platform/Cart/CartPlatformModel.d.ts +5060 -1300
  93. package/sdk/platform/Cart/CartPlatformModel.js +1985 -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 +178 -117
  99. package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
  100. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
  101. package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
  103. package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -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 +122 -191
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
  132. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
  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 +1233 -476
  137. package/sdk/platform/Content/ContentPlatformModel.js +514 -487
  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 +424 -198
  166. package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
  167. package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
  168. package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
  169. package/sdk/platform/Order/OrderPlatformValidator.js +145 -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 +132 -44
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -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
@@ -18,7 +18,7 @@ class Serviceability {
18
18
  * @param {ServiceabilityPlatformValidator.BulkServiceabilityParam} arg - Arg object
19
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
20
  * @param {import("../PlatformAPIClient").Options} - Options
21
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResponseItemData>}
21
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResultItemData>}
22
22
  * - Success response
23
23
  *
24
24
  * @name bulkServiceability
@@ -82,7 +82,7 @@ class Serviceability {
82
82
 
83
83
  const {
84
84
  error: res_error,
85
- } = ServiceabilityPlatformModel.BulkRegionResponseItemData().validate(
85
+ } = ServiceabilityPlatformModel.BulkRegionResultItemData().validate(
86
86
  responseData,
87
87
  { abortEarly: false, allowUnknown: true }
88
88
  );
@@ -105,7 +105,7 @@ class Serviceability {
105
105
  * @param {ServiceabilityPlatformValidator.BulkTatParam} arg - Arg object
106
106
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
107
107
  * @param {import("../PlatformAPIClient").Options} - Options
108
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResponseItemData>}
108
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResultItemData>}
109
109
  * - Success response
110
110
  *
111
111
  * @name bulkTat
@@ -168,7 +168,7 @@ class Serviceability {
168
168
 
169
169
  const {
170
170
  error: res_error,
171
- } = ServiceabilityPlatformModel.BulkRegionResponseItemData().validate(
171
+ } = ServiceabilityPlatformModel.BulkRegionResultItemData().validate(
172
172
  responseData,
173
173
  { abortEarly: false, allowUnknown: true }
174
174
  );
@@ -271,14 +271,98 @@ class Serviceability {
271
271
  }
272
272
 
273
273
  /**
274
- * @param {ServiceabilityPlatformValidator.CreatePackageMaterialParam} arg
274
+ * @param {ServiceabilityPlatformValidator.CreateCourierPartnerSchemeParam} arg
275
275
  * - Arg object
276
276
  *
277
277
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
278
278
  * @param {import("../PlatformAPIClient").Options} - Options
279
- * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResponse>}
279
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
280
280
  * - Success response
281
281
  *
282
+ * @name createCourierPartnerScheme
283
+ * @summary: Create Scheme for courier partner extension
284
+ * @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerScheme/).
285
+ */
286
+ async createCourierPartnerScheme(
287
+ { body, requestHeaders } = { requestHeaders: {} },
288
+ { responseHeaders } = { responseHeaders: false }
289
+ ) {
290
+ const {
291
+ error,
292
+ } = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
293
+ {
294
+ body,
295
+ },
296
+ { abortEarly: false, allowUnknown: true }
297
+ );
298
+ if (error) {
299
+ return Promise.reject(new FDKClientValidationError(error));
300
+ }
301
+
302
+ // Showing warrnings if extra unknown parameters are found
303
+ const {
304
+ error: warrning,
305
+ } = ServiceabilityPlatformValidator.createCourierPartnerScheme().validate(
306
+ {
307
+ body,
308
+ },
309
+ { abortEarly: false, allowUnknown: false }
310
+ );
311
+ if (warrning) {
312
+ Logger({
313
+ level: "WARN",
314
+ message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerScheme \n ${warrning}`,
315
+ });
316
+ }
317
+
318
+ const query_params = {};
319
+
320
+ const xHeaders = {};
321
+
322
+ const response = await PlatformAPIClient.execute(
323
+ this.config,
324
+ "post",
325
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
326
+ query_params,
327
+ body,
328
+ { ...xHeaders, ...requestHeaders },
329
+ { responseHeaders }
330
+ );
331
+
332
+ let responseData = response;
333
+ if (responseHeaders) {
334
+ responseData = response[0];
335
+ }
336
+
337
+ const {
338
+ error: res_error,
339
+ } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
340
+ responseData,
341
+ { abortEarly: false, allowUnknown: true }
342
+ );
343
+
344
+ if (res_error) {
345
+ if (this.config.options.strictResponseCheck === true) {
346
+ return Promise.reject(new FDKResponseValidationError(res_error));
347
+ } else {
348
+ Logger({
349
+ level: "WARN",
350
+ message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerScheme \n ${res_error}`,
351
+ });
352
+ }
353
+ }
354
+
355
+ return response;
356
+ }
357
+
358
+ /**
359
+ * @param {ServiceabilityPlatformValidator.CreatePackageMaterialParam} arg
360
+ * - Arg object
361
+ *
362
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
363
+ * @param {import("../PlatformAPIClient").Options} - Options
364
+ * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
365
+ * Success response
282
366
  * @name createPackageMaterial
283
367
  * @summary: Create packaging material
284
368
  * @description: Creates a packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createPackageMaterial/).
@@ -336,7 +420,7 @@ class Serviceability {
336
420
 
337
421
  const {
338
422
  error: res_error,
339
- } = ServiceabilityPlatformModel.PackageMaterialResponse().validate(
423
+ } = ServiceabilityPlatformModel.PackageMaterialResult().validate(
340
424
  responseData,
341
425
  { abortEarly: false, allowUnknown: true }
342
426
  );
@@ -361,7 +445,7 @@ class Serviceability {
361
445
  *
362
446
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
363
447
  * @param {import("../PlatformAPIClient").Options} - Options
364
- * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResponse>} -
448
+ * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
365
449
  * Success response
366
450
  * @name createPackageMaterialRule
367
451
  * @summary: Create packaging rule
@@ -420,10 +504,10 @@ class Serviceability {
420
504
 
421
505
  const {
422
506
  error: res_error,
423
- } = ServiceabilityPlatformModel.PackageRuleResponse().validate(
424
- responseData,
425
- { abortEarly: false, allowUnknown: true }
426
- );
507
+ } = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
508
+ abortEarly: false,
509
+ allowUnknown: true,
510
+ });
427
511
 
428
512
  if (res_error) {
429
513
  if (this.config.options.strictResponseCheck === true) {
@@ -443,7 +527,7 @@ class Serviceability {
443
527
  * @param {ServiceabilityPlatformValidator.CreateZoneParam} arg - Arg object
444
528
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
445
529
  * @param {import("../PlatformAPIClient").Options} - Options
446
- * @returns {Promise<ServiceabilityPlatformModel.ZoneResponse>} - Success response
530
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneResult>} - Success response
447
531
  * @name createZone
448
532
  * @summary: Create zone
449
533
  * @description: Creates a delivery zone. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createZone/).
@@ -499,7 +583,7 @@ class Serviceability {
499
583
 
500
584
  const {
501
585
  error: res_error,
502
- } = ServiceabilityPlatformModel.ZoneResponse().validate(responseData, {
586
+ } = ServiceabilityPlatformModel.ZoneResult().validate(responseData, {
503
587
  abortEarly: false,
504
588
  allowUnknown: true,
505
589
  });
@@ -522,7 +606,7 @@ class Serviceability {
522
606
  * @param {ServiceabilityPlatformValidator.GetAllStoresParam} arg - Arg object
523
607
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
524
608
  * @param {import("../PlatformAPIClient").Options} - Options
525
- * @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResponse>} -
609
+ * @returns {Promise<ServiceabilityPlatformModel.GetStoresViewResult>} -
526
610
  * Success response
527
611
  * @name getAllStores
528
612
  * @summary: Get all stores
@@ -575,7 +659,7 @@ class Serviceability {
575
659
 
576
660
  const {
577
661
  error: res_error,
578
- } = ServiceabilityPlatformModel.GetStoresViewResponse().validate(
662
+ } = ServiceabilityPlatformModel.GetStoresViewResult().validate(
579
663
  responseData,
580
664
  { abortEarly: false, allowUnknown: true }
581
665
  );
@@ -600,8 +684,7 @@ class Serviceability {
600
684
  *
601
685
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
602
686
  * @param {import("../PlatformAPIClient").Options} - Options
603
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResponse>} -
604
- * Success response
687
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResult>} - Success response
605
688
  * @name getBulkServiceability
606
689
  * @summary: Bulk update history
607
690
  * @description: Retrieves the history of changes made to serviceability settings for a scheme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkServiceability/).
@@ -701,10 +784,10 @@ class Serviceability {
701
784
 
702
785
  const {
703
786
  error: res_error,
704
- } = ServiceabilityPlatformModel.BulkRegionResponse().validate(
705
- responseData,
706
- { abortEarly: false, allowUnknown: true }
707
- );
787
+ } = ServiceabilityPlatformModel.BulkRegionResult().validate(responseData, {
788
+ abortEarly: false,
789
+ allowUnknown: true,
790
+ });
708
791
 
709
792
  if (res_error) {
710
793
  if (this.config.options.strictResponseCheck === true) {
@@ -724,8 +807,7 @@ class Serviceability {
724
807
  * @param {ServiceabilityPlatformValidator.GetBulkTatParam} arg - Arg object
725
808
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
726
809
  * @param {import("../PlatformAPIClient").Options} - Options
727
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResponse>} -
728
- * Success response
810
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionResult>} - Success response
729
811
  * @name getBulkTat
730
812
  * @summary: Locality TAT change history
731
813
  * @description: Retrieves the history of changes made to TAT(Turn Around Time) for scheme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getBulkTat/).
@@ -823,10 +905,10 @@ class Serviceability {
823
905
 
824
906
  const {
825
907
  error: res_error,
826
- } = ServiceabilityPlatformModel.BulkRegionResponse().validate(
827
- responseData,
828
- { abortEarly: false, allowUnknown: true }
829
- );
908
+ } = ServiceabilityPlatformModel.BulkRegionResult().validate(responseData, {
909
+ abortEarly: false,
910
+ allowUnknown: true,
911
+ });
830
912
 
831
913
  if (res_error) {
832
914
  if (this.config.options.strictResponseCheck === true) {
@@ -921,13 +1003,107 @@ class Serviceability {
921
1003
  return response;
922
1004
  }
923
1005
 
1006
+ /**
1007
+ * @param {ServiceabilityPlatformValidator.GetCountriesParam} arg - Arg object
1008
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1009
+ * @param {import("../PlatformAPIClient").Options} - Options
1010
+ * @returns {Promise<ServiceabilityPlatformModel.GetCountries>} - Success response
1011
+ * @name getCountries
1012
+ * @summary: Get countries
1013
+ * @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCountries/).
1014
+ */
1015
+ async getCountries(
1016
+ { onboarding, pageNo, pageSize, q, hierarchy, requestHeaders } = {
1017
+ requestHeaders: {},
1018
+ },
1019
+ { responseHeaders } = { responseHeaders: false }
1020
+ ) {
1021
+ const { error } = ServiceabilityPlatformValidator.getCountries().validate(
1022
+ {
1023
+ onboarding,
1024
+ pageNo,
1025
+ pageSize,
1026
+ q,
1027
+ hierarchy,
1028
+ },
1029
+ { abortEarly: false, allowUnknown: true }
1030
+ );
1031
+ if (error) {
1032
+ return Promise.reject(new FDKClientValidationError(error));
1033
+ }
1034
+
1035
+ // Showing warrnings if extra unknown parameters are found
1036
+ const {
1037
+ error: warrning,
1038
+ } = ServiceabilityPlatformValidator.getCountries().validate(
1039
+ {
1040
+ onboarding,
1041
+ pageNo,
1042
+ pageSize,
1043
+ q,
1044
+ hierarchy,
1045
+ },
1046
+ { abortEarly: false, allowUnknown: false }
1047
+ );
1048
+ if (warrning) {
1049
+ Logger({
1050
+ level: "WARN",
1051
+ message: `Parameter Validation warrnings for platform > Serviceability > getCountries \n ${warrning}`,
1052
+ });
1053
+ }
1054
+
1055
+ const query_params = {};
1056
+ query_params["onboarding"] = onboarding;
1057
+ query_params["page_no"] = pageNo;
1058
+ query_params["page_size"] = pageSize;
1059
+ query_params["q"] = q;
1060
+ query_params["hierarchy"] = hierarchy;
1061
+
1062
+ const xHeaders = {};
1063
+
1064
+ const response = await PlatformAPIClient.execute(
1065
+ this.config,
1066
+ "get",
1067
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/countries`,
1068
+ query_params,
1069
+ undefined,
1070
+ { ...xHeaders, ...requestHeaders },
1071
+ { responseHeaders }
1072
+ );
1073
+
1074
+ let responseData = response;
1075
+ if (responseHeaders) {
1076
+ responseData = response[0];
1077
+ }
1078
+
1079
+ const {
1080
+ error: res_error,
1081
+ } = ServiceabilityPlatformModel.GetCountries().validate(responseData, {
1082
+ abortEarly: false,
1083
+ allowUnknown: true,
1084
+ });
1085
+
1086
+ if (res_error) {
1087
+ if (this.config.options.strictResponseCheck === true) {
1088
+ return Promise.reject(new FDKResponseValidationError(res_error));
1089
+ } else {
1090
+ Logger({
1091
+ level: "WARN",
1092
+ message: `Response Validation Warnings for platform > Serviceability > getCountries \n ${res_error}`,
1093
+ });
1094
+ }
1095
+ }
1096
+
1097
+ return response;
1098
+ }
1099
+
924
1100
  /**
925
1101
  * @param {ServiceabilityPlatformValidator.GetCourierPartnerAccountParam} arg
926
1102
  * - Arg object
927
1103
  *
928
1104
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
929
1105
  * @param {import("../PlatformAPIClient").Options} - Options
930
- * @returns {Promise<ServiceabilityPlatformModel.CourierAccountResponse>} -
1106
+ * @returns {Promise<ServiceabilityPlatformModel.CourierAccountResult>} -
931
1107
  * Success response
932
1108
  * @name getCourierPartnerAccount
933
1109
  * @summary: Get courier account
@@ -986,7 +1162,7 @@ class Serviceability {
986
1162
 
987
1163
  const {
988
1164
  error: res_error,
989
- } = ServiceabilityPlatformModel.CourierAccountResponse().validate(
1165
+ } = ServiceabilityPlatformModel.CourierAccountResult().validate(
990
1166
  responseData,
991
1167
  { abortEarly: false, allowUnknown: true }
992
1168
  );
@@ -1011,7 +1187,7 @@ class Serviceability {
1011
1187
  *
1012
1188
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1013
1189
  * @param {import("../PlatformAPIClient").Options} - Options
1014
- * @returns {Promise<ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResponse>}
1190
+ * @returns {Promise<ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResult>}
1015
1191
  * - Success response
1016
1192
  *
1017
1193
  * @name getCourierPartnerAccounts
@@ -1086,7 +1262,185 @@ class Serviceability {
1086
1262
 
1087
1263
  const {
1088
1264
  error: res_error,
1089
- } = ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResponse().validate(
1265
+ } = ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResult().validate(
1266
+ responseData,
1267
+ { abortEarly: false, allowUnknown: true }
1268
+ );
1269
+
1270
+ if (res_error) {
1271
+ if (this.config.options.strictResponseCheck === true) {
1272
+ return Promise.reject(new FDKResponseValidationError(res_error));
1273
+ } else {
1274
+ Logger({
1275
+ level: "WARN",
1276
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerAccounts \n ${res_error}`,
1277
+ });
1278
+ }
1279
+ }
1280
+
1281
+ return response;
1282
+ }
1283
+
1284
+ /**
1285
+ * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemeParam} arg
1286
+ * - Arg object
1287
+ *
1288
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1289
+ * @param {import("../PlatformAPIClient").Options} - Options
1290
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
1291
+ * - Success response
1292
+ *
1293
+ * @name getCourierPartnerScheme
1294
+ * @summary: Get Scheme for courier partner extension by Id
1295
+ * @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerScheme/).
1296
+ */
1297
+ async getCourierPartnerScheme(
1298
+ { schemeId, requestHeaders } = { requestHeaders: {} },
1299
+ { responseHeaders } = { responseHeaders: false }
1300
+ ) {
1301
+ const {
1302
+ error,
1303
+ } = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
1304
+ { schemeId },
1305
+ { abortEarly: false, allowUnknown: true }
1306
+ );
1307
+ if (error) {
1308
+ return Promise.reject(new FDKClientValidationError(error));
1309
+ }
1310
+
1311
+ // Showing warrnings if extra unknown parameters are found
1312
+ const {
1313
+ error: warrning,
1314
+ } = ServiceabilityPlatformValidator.getCourierPartnerScheme().validate(
1315
+ { schemeId },
1316
+ { abortEarly: false, allowUnknown: false }
1317
+ );
1318
+ if (warrning) {
1319
+ Logger({
1320
+ level: "WARN",
1321
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerScheme \n ${warrning}`,
1322
+ });
1323
+ }
1324
+
1325
+ const query_params = {};
1326
+
1327
+ const xHeaders = {};
1328
+
1329
+ const response = await PlatformAPIClient.execute(
1330
+ this.config,
1331
+ "get",
1332
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
1333
+ query_params,
1334
+ undefined,
1335
+ { ...xHeaders, ...requestHeaders },
1336
+ { responseHeaders }
1337
+ );
1338
+
1339
+ let responseData = response;
1340
+ if (responseHeaders) {
1341
+ responseData = response[0];
1342
+ }
1343
+
1344
+ const {
1345
+ error: res_error,
1346
+ } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
1347
+ responseData,
1348
+ { abortEarly: false, allowUnknown: true }
1349
+ );
1350
+
1351
+ if (res_error) {
1352
+ if (this.config.options.strictResponseCheck === true) {
1353
+ return Promise.reject(new FDKResponseValidationError(res_error));
1354
+ } else {
1355
+ Logger({
1356
+ level: "WARN",
1357
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerScheme \n ${res_error}`,
1358
+ });
1359
+ }
1360
+ }
1361
+
1362
+ return response;
1363
+ }
1364
+
1365
+ /**
1366
+ * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemesParam} arg
1367
+ * - Arg object
1368
+ *
1369
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1370
+ * @param {import("../PlatformAPIClient").Options} - Options
1371
+ * @returns {Promise<ServiceabilityPlatformModel.courierPartnerSchemeV2List>}
1372
+ * - Success response
1373
+ *
1374
+ * @name getCourierPartnerSchemes
1375
+ * @summary: Get created Schemes for courier partner
1376
+ * @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerSchemes/).
1377
+ */
1378
+ async getCourierPartnerSchemes(
1379
+ { schemeType, paymentMode, capabilities, schemeIds, requestHeaders } = {
1380
+ requestHeaders: {},
1381
+ },
1382
+ { responseHeaders } = { responseHeaders: false }
1383
+ ) {
1384
+ const {
1385
+ error,
1386
+ } = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
1387
+ {
1388
+ schemeType,
1389
+ paymentMode,
1390
+ capabilities,
1391
+ schemeIds,
1392
+ },
1393
+ { abortEarly: false, allowUnknown: true }
1394
+ );
1395
+ if (error) {
1396
+ return Promise.reject(new FDKClientValidationError(error));
1397
+ }
1398
+
1399
+ // Showing warrnings if extra unknown parameters are found
1400
+ const {
1401
+ error: warrning,
1402
+ } = ServiceabilityPlatformValidator.getCourierPartnerSchemes().validate(
1403
+ {
1404
+ schemeType,
1405
+ paymentMode,
1406
+ capabilities,
1407
+ schemeIds,
1408
+ },
1409
+ { abortEarly: false, allowUnknown: false }
1410
+ );
1411
+ if (warrning) {
1412
+ Logger({
1413
+ level: "WARN",
1414
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerSchemes \n ${warrning}`,
1415
+ });
1416
+ }
1417
+
1418
+ const query_params = {};
1419
+ query_params["scheme_type"] = schemeType;
1420
+ query_params["payment_mode"] = paymentMode;
1421
+ query_params["capabilities"] = capabilities;
1422
+ query_params["scheme_ids"] = schemeIds;
1423
+
1424
+ const xHeaders = {};
1425
+
1426
+ const response = await PlatformAPIClient.execute(
1427
+ this.config,
1428
+ "get",
1429
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme`,
1430
+ query_params,
1431
+ undefined,
1432
+ { ...xHeaders, ...requestHeaders },
1433
+ { responseHeaders }
1434
+ );
1435
+
1436
+ let responseData = response;
1437
+ if (responseHeaders) {
1438
+ responseData = response[0];
1439
+ }
1440
+
1441
+ const {
1442
+ error: res_error,
1443
+ } = ServiceabilityPlatformModel.courierPartnerSchemeV2List().validate(
1090
1444
  responseData,
1091
1445
  { abortEarly: false, allowUnknown: true }
1092
1446
  );
@@ -1097,7 +1451,7 @@ class Serviceability {
1097
1451
  } else {
1098
1452
  Logger({
1099
1453
  level: "WARN",
1100
- message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerAccounts \n ${res_error}`,
1454
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerSchemes \n ${res_error}`,
1101
1455
  });
1102
1456
  }
1103
1457
  }
@@ -1109,9 +1463,8 @@ class Serviceability {
1109
1463
  * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
1110
1464
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1111
1465
  * @param {import("../PlatformAPIClient").Options} - Options
1112
- * @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResponse>}
1113
- * - Success response
1114
- *
1466
+ * @returns {Promise<ServiceabilityPlatformModel.OptimalLocationsResult>} -
1467
+ * Success response
1115
1468
  * @name getOptimalLocations
1116
1469
  * @summary: Get selling locations
1117
1470
  * @description: Retrieves a list selling locations which are best suited to fullfil an order for a customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getOptimalLocations/).
@@ -1169,7 +1522,7 @@ class Serviceability {
1169
1522
 
1170
1523
  const {
1171
1524
  error: res_error,
1172
- } = ServiceabilityPlatformModel.OptimalLocationsResponse().validate(
1525
+ } = ServiceabilityPlatformModel.OptimalLocationsResult().validate(
1173
1526
  responseData,
1174
1527
  { abortEarly: false, allowUnknown: true }
1175
1528
  );
@@ -1293,7 +1646,7 @@ class Serviceability {
1293
1646
  *
1294
1647
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1295
1648
  * @param {import("../PlatformAPIClient").Options} - Options
1296
- * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResponse>} -
1649
+ * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
1297
1650
  * Success response
1298
1651
  * @name getPackageMaterialRule
1299
1652
  * @summary: Get packaging material rule
@@ -1352,10 +1705,10 @@ class Serviceability {
1352
1705
 
1353
1706
  const {
1354
1707
  error: res_error,
1355
- } = ServiceabilityPlatformModel.PackageRuleResponse().validate(
1356
- responseData,
1357
- { abortEarly: false, allowUnknown: true }
1358
- );
1708
+ } = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
1709
+ abortEarly: false,
1710
+ allowUnknown: true,
1711
+ });
1359
1712
 
1360
1713
  if (res_error) {
1361
1714
  if (this.config.options.strictResponseCheck === true) {
@@ -1467,9 +1820,8 @@ class Serviceability {
1467
1820
  * @param {ServiceabilityPlatformValidator.GetPackageMaterialsParam} arg - Arg object
1468
1821
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1469
1822
  * @param {import("../PlatformAPIClient").Options} - Options
1470
- * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResponse>}
1471
- * - Success response
1472
- *
1823
+ * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
1824
+ * Success response
1473
1825
  * @name getPackageMaterials
1474
1826
  * @summary: Get packaging material
1475
1827
  * @description: Retrieve a single packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterials/).
@@ -1527,7 +1879,7 @@ class Serviceability {
1527
1879
 
1528
1880
  const {
1529
1881
  error: res_error,
1530
- } = ServiceabilityPlatformModel.PackageMaterialResponse().validate(
1882
+ } = ServiceabilityPlatformModel.PackageMaterialResult().validate(
1531
1883
  responseData,
1532
1884
  { abortEarly: false, allowUnknown: true }
1533
1885
  );
@@ -1546,6 +1898,98 @@ class Serviceability {
1546
1898
  return response;
1547
1899
  }
1548
1900
 
1901
+ /**
1902
+ * @param {ServiceabilityPlatformValidator.GetSampleFileServiceabilityStatusParam} arg
1903
+ * - Arg object
1904
+ *
1905
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1906
+ * @param {import("../PlatformAPIClient").Options} - Options
1907
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult>}
1908
+ * - Success response
1909
+ *
1910
+ * @name getSampleFileServiceabilityStatus
1911
+ * @summary: Get Serviceability TAT sample files generator status
1912
+ * @description: Get Serviceability TAT sample file generator status - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSampleFileServiceabilityStatus/).
1913
+ */
1914
+ async getSampleFileServiceabilityStatus(
1915
+ { pageNo, pageSize, batchId, requestHeaders } = { requestHeaders: {} },
1916
+ { responseHeaders } = { responseHeaders: false }
1917
+ ) {
1918
+ const {
1919
+ error,
1920
+ } = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
1921
+ {
1922
+ pageNo,
1923
+ pageSize,
1924
+ batchId,
1925
+ },
1926
+ { abortEarly: false, allowUnknown: true }
1927
+ );
1928
+ if (error) {
1929
+ return Promise.reject(new FDKClientValidationError(error));
1930
+ }
1931
+
1932
+ // Showing warrnings if extra unknown parameters are found
1933
+ const {
1934
+ error: warrning,
1935
+ } = ServiceabilityPlatformValidator.getSampleFileServiceabilityStatus().validate(
1936
+ {
1937
+ pageNo,
1938
+ pageSize,
1939
+ batchId,
1940
+ },
1941
+ { abortEarly: false, allowUnknown: false }
1942
+ );
1943
+ if (warrning) {
1944
+ Logger({
1945
+ level: "WARN",
1946
+ message: `Parameter Validation warrnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${warrning}`,
1947
+ });
1948
+ }
1949
+
1950
+ const query_params = {};
1951
+ query_params["page_no"] = pageNo;
1952
+ query_params["page_size"] = pageSize;
1953
+ query_params["batch_id"] = batchId;
1954
+
1955
+ const xHeaders = {};
1956
+
1957
+ const response = await PlatformAPIClient.execute(
1958
+ this.config,
1959
+ "get",
1960
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
1961
+ query_params,
1962
+ undefined,
1963
+ { ...xHeaders, ...requestHeaders },
1964
+ { responseHeaders }
1965
+ );
1966
+
1967
+ let responseData = response;
1968
+ if (responseHeaders) {
1969
+ responseData = response[0];
1970
+ }
1971
+
1972
+ const {
1973
+ error: res_error,
1974
+ } = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult().validate(
1975
+ responseData,
1976
+ { abortEarly: false, allowUnknown: true }
1977
+ );
1978
+
1979
+ if (res_error) {
1980
+ if (this.config.options.strictResponseCheck === true) {
1981
+ return Promise.reject(new FDKResponseValidationError(res_error));
1982
+ } else {
1983
+ Logger({
1984
+ level: "WARN",
1985
+ message: `Response Validation Warnings for platform > Serviceability > getSampleFileServiceabilityStatus \n ${res_error}`,
1986
+ });
1987
+ }
1988
+ }
1989
+
1990
+ return response;
1991
+ }
1992
+
1549
1993
  /**
1550
1994
  * @param {ServiceabilityPlatformValidator.GetServiceabilityParam} arg - Arg object
1551
1995
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1718,7 +2162,7 @@ class Serviceability {
1718
2162
  * @param {ServiceabilityPlatformValidator.GetZonesParam} arg - Arg object
1719
2163
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1720
2164
  * @param {import("../PlatformAPIClient").Options} - Options
1721
- * @returns {Promise<ServiceabilityPlatformModel.ListViewResponse>} - Success response
2165
+ * @returns {Promise<ServiceabilityPlatformModel.ListViewResult>} - Success response
1722
2166
  * @name getZones
1723
2167
  * @summary: Get zones
1724
2168
  * @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
@@ -1814,7 +2258,7 @@ class Serviceability {
1814
2258
 
1815
2259
  const {
1816
2260
  error: res_error,
1817
- } = ServiceabilityPlatformModel.ListViewResponse().validate(responseData, {
2261
+ } = ServiceabilityPlatformModel.ListViewResult().validate(responseData, {
1818
2262
  abortEarly: false,
1819
2263
  allowUnknown: true,
1820
2264
  });
@@ -1833,6 +2277,91 @@ class Serviceability {
1833
2277
  return response;
1834
2278
  }
1835
2279
 
2280
+ /**
2281
+ * @param {ServiceabilityPlatformValidator.SampleFileServiceabilityParam} arg
2282
+ * - Arg object
2283
+ *
2284
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2285
+ * @param {import("../PlatformAPIClient").Options} - Options
2286
+ * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData>}
2287
+ * - Success response
2288
+ *
2289
+ * @name sampleFileServiceability
2290
+ * @summary: Sample File Download
2291
+ * @description: Sample File Download - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/sampleFileServiceability/).
2292
+ */
2293
+ async sampleFileServiceability(
2294
+ { body, requestHeaders } = { requestHeaders: {} },
2295
+ { responseHeaders } = { responseHeaders: false }
2296
+ ) {
2297
+ const {
2298
+ error,
2299
+ } = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
2300
+ {
2301
+ body,
2302
+ },
2303
+ { abortEarly: false, allowUnknown: true }
2304
+ );
2305
+ if (error) {
2306
+ return Promise.reject(new FDKClientValidationError(error));
2307
+ }
2308
+
2309
+ // Showing warrnings if extra unknown parameters are found
2310
+ const {
2311
+ error: warrning,
2312
+ } = ServiceabilityPlatformValidator.sampleFileServiceability().validate(
2313
+ {
2314
+ body,
2315
+ },
2316
+ { abortEarly: false, allowUnknown: false }
2317
+ );
2318
+ if (warrning) {
2319
+ Logger({
2320
+ level: "WARN",
2321
+ message: `Parameter Validation warrnings for platform > Serviceability > sampleFileServiceability \n ${warrning}`,
2322
+ });
2323
+ }
2324
+
2325
+ const query_params = {};
2326
+
2327
+ const xHeaders = {};
2328
+
2329
+ const response = await PlatformAPIClient.execute(
2330
+ this.config,
2331
+ "post",
2332
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/localities/bulk-sample`,
2333
+ query_params,
2334
+ body,
2335
+ { ...xHeaders, ...requestHeaders },
2336
+ { responseHeaders }
2337
+ );
2338
+
2339
+ let responseData = response;
2340
+ if (responseHeaders) {
2341
+ responseData = response[0];
2342
+ }
2343
+
2344
+ const {
2345
+ error: res_error,
2346
+ } = ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData().validate(
2347
+ responseData,
2348
+ { abortEarly: false, allowUnknown: true }
2349
+ );
2350
+
2351
+ if (res_error) {
2352
+ if (this.config.options.strictResponseCheck === true) {
2353
+ return Promise.reject(new FDKResponseValidationError(res_error));
2354
+ } else {
2355
+ Logger({
2356
+ level: "WARN",
2357
+ message: `Response Validation Warnings for platform > Serviceability > sampleFileServiceability \n ${res_error}`,
2358
+ });
2359
+ }
2360
+ }
2361
+
2362
+ return response;
2363
+ }
2364
+
1836
2365
  /**
1837
2366
  * @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
1838
2367
  * - Arg object
@@ -1922,7 +2451,7 @@ class Serviceability {
1922
2451
  *
1923
2452
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1924
2453
  * @param {import("../PlatformAPIClient").Options} - Options
1925
- * @returns {Promise<ServiceabilityPlatformModel.CourierAccountResponse>} -
2454
+ * @returns {Promise<ServiceabilityPlatformModel.CourierAccountResult>} -
1926
2455
  * Success response
1927
2456
  * @name updateCourierPartnerAccount
1928
2457
  * @summary: Update courier account
@@ -1983,7 +2512,7 @@ class Serviceability {
1983
2512
 
1984
2513
  const {
1985
2514
  error: res_error,
1986
- } = ServiceabilityPlatformModel.CourierAccountResponse().validate(
2515
+ } = ServiceabilityPlatformModel.CourierAccountResult().validate(
1987
2516
  responseData,
1988
2517
  { abortEarly: false, allowUnknown: true }
1989
2518
  );
@@ -2002,13 +2531,102 @@ class Serviceability {
2002
2531
  return response;
2003
2532
  }
2004
2533
 
2534
+ /**
2535
+ * @param {ServiceabilityPlatformValidator.UpdateCourierPartnerSchemeParam} arg
2536
+ * - Arg object
2537
+ *
2538
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2539
+ * @param {import("../PlatformAPIClient").Options} - Options
2540
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
2541
+ * - Success response
2542
+ *
2543
+ * @name updateCourierPartnerScheme
2544
+ * @summary: Update Scheme for courier partner extension
2545
+ * @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerScheme/).
2546
+ */
2547
+ async updateCourierPartnerScheme(
2548
+ { schemeId, body, requestHeaders } = { requestHeaders: {} },
2549
+ { responseHeaders } = { responseHeaders: false }
2550
+ ) {
2551
+ const {
2552
+ error,
2553
+ } = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
2554
+ {
2555
+ schemeId,
2556
+
2557
+ body,
2558
+ },
2559
+ { abortEarly: false, allowUnknown: true }
2560
+ );
2561
+ if (error) {
2562
+ return Promise.reject(new FDKClientValidationError(error));
2563
+ }
2564
+
2565
+ // Showing warrnings if extra unknown parameters are found
2566
+ const {
2567
+ error: warrning,
2568
+ } = ServiceabilityPlatformValidator.updateCourierPartnerScheme().validate(
2569
+ {
2570
+ schemeId,
2571
+
2572
+ body,
2573
+ },
2574
+ { abortEarly: false, allowUnknown: false }
2575
+ );
2576
+ if (warrning) {
2577
+ Logger({
2578
+ level: "WARN",
2579
+ message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerScheme \n ${warrning}`,
2580
+ });
2581
+ }
2582
+
2583
+ const query_params = {};
2584
+
2585
+ const xHeaders = {};
2586
+
2587
+ const response = await PlatformAPIClient.execute(
2588
+ this.config,
2589
+ "put",
2590
+ `/service/platform/logistics/v2.0/company/${this.config.companyId}/courier-partner/scheme/${schemeId}`,
2591
+ query_params,
2592
+ body,
2593
+ { ...xHeaders, ...requestHeaders },
2594
+ { responseHeaders }
2595
+ );
2596
+
2597
+ let responseData = response;
2598
+ if (responseHeaders) {
2599
+ responseData = response[0];
2600
+ }
2601
+
2602
+ const {
2603
+ error: res_error,
2604
+ } = ServiceabilityPlatformModel.CourierPartnerV2SchemeModel().validate(
2605
+ responseData,
2606
+ { abortEarly: false, allowUnknown: true }
2607
+ );
2608
+
2609
+ if (res_error) {
2610
+ if (this.config.options.strictResponseCheck === true) {
2611
+ return Promise.reject(new FDKResponseValidationError(res_error));
2612
+ } else {
2613
+ Logger({
2614
+ level: "WARN",
2615
+ message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerScheme \n ${res_error}`,
2616
+ });
2617
+ }
2618
+ }
2619
+
2620
+ return response;
2621
+ }
2622
+
2005
2623
  /**
2006
2624
  * @param {ServiceabilityPlatformValidator.UpdatePackageMaterialRuleParam} arg
2007
2625
  * - Arg object
2008
2626
  *
2009
2627
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2010
2628
  * @param {import("../PlatformAPIClient").Options} - Options
2011
- * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResponse>} -
2629
+ * @returns {Promise<ServiceabilityPlatformModel.PackageRuleResult>} -
2012
2630
  * Success response
2013
2631
  * @name updatePackageMaterialRule
2014
2632
  * @summary: Update packaging rule
@@ -2069,10 +2687,10 @@ class Serviceability {
2069
2687
 
2070
2688
  const {
2071
2689
  error: res_error,
2072
- } = ServiceabilityPlatformModel.PackageRuleResponse().validate(
2073
- responseData,
2074
- { abortEarly: false, allowUnknown: true }
2075
- );
2690
+ } = ServiceabilityPlatformModel.PackageRuleResult().validate(responseData, {
2691
+ abortEarly: false,
2692
+ allowUnknown: true,
2693
+ });
2076
2694
 
2077
2695
  if (res_error) {
2078
2696
  if (this.config.options.strictResponseCheck === true) {
@@ -2094,9 +2712,8 @@ class Serviceability {
2094
2712
  *
2095
2713
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2096
2714
  * @param {import("../PlatformAPIClient").Options} - Options
2097
- * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResponse>}
2098
- * - Success response
2099
- *
2715
+ * @returns {Promise<ServiceabilityPlatformModel.PackageMaterialResult>} -
2716
+ * Success response
2100
2717
  * @name updatePackageMaterials
2101
2718
  * @summary: Update packaging material
2102
2719
  * @description: Update an existing packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePackageMaterials/).
@@ -2156,7 +2773,7 @@ class Serviceability {
2156
2773
 
2157
2774
  const {
2158
2775
  error: res_error,
2159
- } = ServiceabilityPlatformModel.PackageMaterialResponse().validate(
2776
+ } = ServiceabilityPlatformModel.PackageMaterialResult().validate(
2160
2777
  responseData,
2161
2778
  { abortEarly: false, allowUnknown: true }
2162
2779
  );
@@ -2269,7 +2886,7 @@ class Serviceability {
2269
2886
  * @param {ServiceabilityPlatformValidator.UpdateZoneByIdParam} arg - Arg object
2270
2887
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2271
2888
  * @param {import("../PlatformAPIClient").Options} - Options
2272
- * @returns {Promise<ServiceabilityPlatformModel.ZoneSuccessResponse>} -
2889
+ * @returns {Promise<ServiceabilityPlatformModel.ZoneSuccessResult>} -
2273
2890
  * Success response
2274
2891
  * @name updateZoneById
2275
2892
  * @summary: Update a zone
@@ -2328,10 +2945,10 @@ class Serviceability {
2328
2945
 
2329
2946
  const {
2330
2947
  error: res_error,
2331
- } = ServiceabilityPlatformModel.ZoneSuccessResponse().validate(
2332
- responseData,
2333
- { abortEarly: false, allowUnknown: true }
2334
- );
2948
+ } = ServiceabilityPlatformModel.ZoneSuccessResult().validate(responseData, {
2949
+ abortEarly: false,
2950
+ allowUnknown: true,
2951
+ });
2335
2952
 
2336
2953
  if (res_error) {
2337
2954
  if (this.config.options.strictResponseCheck === true) {