@gofynd/fdk-client-javascript 1.4.15-beta.13 → 1.4.15-beta.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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -34,19 +34,21 @@ class Catalog {
34
34
  "/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/count/",
35
35
  getHomeProducts: "/service/application/catalog/v1.0/home/listing/",
36
36
  getInStockLocations:
37
- "/service/application/catalog/v1.0/in-stock/locations/",
37
+ "/service/application/catalog/v2.0/in-stock/locations/",
38
38
  getLocationDetailsById:
39
- "/service/application/catalog/v1.0/locations/{location_id}/",
40
- getProductBundlesBySlug:
41
- "/service/application/catalog/v1.0/product-grouping/",
39
+ "/service/application/catalog/v2.0/locations/{location_id}/",
40
+ getProductBundleItems:
41
+ "/service/application/catalog/v1.0/products/{slug}/bundle/items",
42
+ getProductBundlesByChildSku:
43
+ "/service/application/catalog/v1.0/products/{slug}/size/{size}/bundle",
42
44
  getProductComparisonBySlugs:
43
45
  "/service/application/catalog/v1.0/products/compare/",
44
46
  getProductDetailBySlug:
45
47
  "/service/application/catalog/v1.0/products/{slug}/",
46
48
  getProductPriceBySlug:
47
- "/service/application/catalog/v3.0/products/{slug}/sizes/{size}/price/",
49
+ "/service/application/catalog/v4.0/products/{slug}/sizes/{size}/price/",
48
50
  getProductSellersBySlug:
49
- "/service/application/catalog/v3.0/products/{slug}/sizes/{size}/sellers/",
51
+ "/service/application/catalog/v4.0/products/{slug}/sizes/{size}/sellers/",
50
52
  getProductSizesBySlug:
51
53
  "/service/application/catalog/v1.0/products/{slug}/sizes/",
52
54
  getProductStockByIds:
@@ -56,12 +58,12 @@ class Catalog {
56
58
  getProductVariantsBySlug:
57
59
  "/service/application/catalog/v1.0/products/{slug}/variants/",
58
60
  getProducts: "/service/application/catalog/v1.0/products/",
59
- getProductsServiceability:
60
- "/service/application/catalog/v1.0/products/serviceability",
61
61
  getSearchResults: "/service/application/catalog/v1.0/auto-complete/",
62
62
  getSimilarComparisonProductBySlug:
63
63
  "/service/application/catalog/v1.0/products/{slug}/similar/compare/",
64
- getStores: "/service/application/catalog/v1.0/locations/",
64
+ getStores: "/service/application/catalog/v2.0/locations/",
65
+ listCountryCurrencyMappings:
66
+ "/service/application/catalog/v1.0/available-countries/",
65
67
  unfollowById:
66
68
  "/service/application/catalog/v1.0/follow/{collection_type}/{collection_id}/",
67
69
  };
@@ -84,10 +86,10 @@ class Catalog {
84
86
  /**
85
87
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
86
88
  * @param {import("../ApplicationAPIClient").Options} - Options
87
- * @returns {Promise<FollowPostResponse>} - Success response
89
+ * @returns {Promise<FollowPostResponseSchema>} - Success response
88
90
  * @name followById
89
91
  * @summary: Create item, brand, product
90
- * @description: Add a product, brand, or item to the user's followed list by collection Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/followById/).
92
+ * @description: Add a product, brand, or item to the user's followed list by collection Id. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/followById/).
91
93
  */
92
94
  async followById(
93
95
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
@@ -133,10 +135,10 @@ class Catalog {
133
135
  /**
134
136
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
135
137
  * @param {import("../ApplicationAPIClient").Options} - Options
136
- * @returns {Promise<BrandDetailResponse>} - Success response
138
+ * @returns {Promise<BrandDetailResponseSchema>} - Success response
137
139
  * @name getBrandDetailBySlug
138
140
  * @summary: Get a brand
139
- * @description: Get metadata of a brand such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrandDetailBySlug/).
141
+ * @description: Get metadata of a brand such as name, information, logo, banner, etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getBrandDetailBySlug/).
140
142
  */
141
143
  async getBrandDetailBySlug(
142
144
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -179,10 +181,10 @@ class Catalog {
179
181
  /**
180
182
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
181
183
  * @param {import("../ApplicationAPIClient").Options} - Options
182
- * @returns {Promise<BrandListingResponse>} - Success response
184
+ * @returns {Promise<BrandListingResponseSchema>} - Success response
183
185
  * @name getBrands
184
186
  * @summary: List brands
185
- * @description: Get a list of all the available brands. Filtering can be applied to the department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getBrands/).
187
+ * @description: Get a list of all the available brands. Filtering can be applied to the department. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getBrands/).
186
188
  */
187
189
  async getBrands(
188
190
  { department, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
@@ -223,7 +225,7 @@ class Catalog {
223
225
  * of available departments below. Also, you can get available departments
224
226
  * from the endpoint /service/application/catalog/v1.0/departments/.
225
227
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
226
- * @returns {Paginator<BrandListingResponse>}
228
+ * @returns {Paginator<BrandListingResponseSchema>}
227
229
  * @summary: List brands
228
230
  * @description: Get a list of all the available brands. Filtering can be applied to the department.
229
231
  */
@@ -251,10 +253,10 @@ class Catalog {
251
253
  /**
252
254
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
253
255
  * @param {import("../ApplicationAPIClient").Options} - Options
254
- * @returns {Promise<CategoryListingResponse>} - Success response
256
+ * @returns {Promise<CategoryListingResponseSchema>} - Success response
255
257
  * @name getCategories
256
258
  * @summary: List product categories
257
- * @description: List all available product categories. Also, users can filter the categories by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategories/).
259
+ * @description: List all available product categories. Also, users can filter the categories by department. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getCategories/).
258
260
  */
259
261
  async getCategories(
260
262
  { department, requestHeaders } = { requestHeaders: {} },
@@ -289,10 +291,10 @@ class Catalog {
289
291
  /**
290
292
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
291
293
  * @param {import("../ApplicationAPIClient").Options} - Options
292
- * @returns {Promise<CategoryMetaResponse>} - Success response
294
+ * @returns {Promise<CategoryMetaResponseSchema>} - Success response
293
295
  * @name getCategoryDetailBySlug
294
296
  * @summary: Get category by slug
295
- * @description: Get detailed information about a specific product category using its slug and get metadata of a category such as name, information, logo, banner, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCategoryDetailBySlug/).
297
+ * @description: Get detailed information about a specific product category using its slug and get metadata of a category such as name, information, logo, banner, etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getCategoryDetailBySlug/).
296
298
  */
297
299
  async getCategoryDetailBySlug(
298
300
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -335,10 +337,10 @@ class Catalog {
335
337
  /**
336
338
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
337
339
  * @param {import("../ApplicationAPIClient").Options} - Options
338
- * @returns {Promise<CollectionDetailResponse>} - Success response
340
+ * @returns {Promise<CollectionDetailResponseSchema>} - Success response
339
341
  * @name getCollectionDetailBySlug
340
342
  * @summary: Get a collection
341
- * @description: Get detailed information about a specific collection using its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionDetailBySlug/).
343
+ * @description: Get detailed information about a specific collection using its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getCollectionDetailBySlug/).
342
344
  */
343
345
  async getCollectionDetailBySlug(
344
346
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -381,10 +383,10 @@ class Catalog {
381
383
  /**
382
384
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
383
385
  * @param {import("../ApplicationAPIClient").Options} - Options
384
- * @returns {Promise<ProductListingResponse>} - Success response
386
+ * @returns {Promise<ProductListingResponseSchema>} - Success response
385
387
  * @name getCollectionItemsBySlug
386
388
  * @summary: Lists items of collection
387
- * @description: Fetch items within a particular collection identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollectionItemsBySlug/).
389
+ * @description: Fetch items within a particular collection identified by its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getCollectionItemsBySlug/).
388
390
  */
389
391
  async getCollectionItemsBySlug(
390
392
  {
@@ -457,10 +459,12 @@ class Catalog {
457
459
  * @param {boolean} [arg.filters] - True for fetching all filter parameters
458
460
  * and False for disabling the filter parameters.
459
461
  * @param {string} [arg.sortOn] - The order in which the list of products
460
- * should be sorted, e.g. popularity, price, latest and discount, in
461
- * either ascending or descending order. See the supported values below.
462
+ * should be sorted. Supported values include latest, popular, price_asc,
463
+ * price_dsc, discount_asc, discount_dsc. Custom sort keys configured via
464
+ * listing configuration (e.g., best_selling) are also supported for
465
+ * cohort-based sorting.
462
466
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
463
- * @returns {Paginator<ProductListingResponse>}
467
+ * @returns {Paginator<ProductListingResponseSchema>}
464
468
  * @summary: Lists items of collection
465
469
  * @description: Fetch items within a particular collection identified by its slug.
466
470
  */
@@ -501,10 +505,10 @@ class Catalog {
501
505
  /**
502
506
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
503
507
  * @param {import("../ApplicationAPIClient").Options} - Options
504
- * @returns {Promise<GetCollectionListingResponse>} - Success response
508
+ * @returns {Promise<GetCollectionListingResponseSchema>} - Success response
505
509
  * @name getCollections
506
510
  * @summary: List collections
507
- * @description: List of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollections/).
511
+ * @description: List of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getCollections/).
508
512
  */
509
513
  async getCollections(
510
514
  { pageNo, pageSize, tag, q, requestHeaders } = { requestHeaders: {} },
@@ -544,7 +548,7 @@ class Catalog {
544
548
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
545
549
  * @param {string[]} [arg.tag] - List of tags to filter collections.
546
550
  * @param {string} [arg.q] - Name of the collection to filter collection.
547
- * @returns {Paginator<GetCollectionListingResponse>}
551
+ * @returns {Paginator<GetCollectionListingResponseSchema>}
548
552
  * @summary: List collections
549
553
  * @description: List of curated product collections with filtering options based on tags and collection names.
550
554
  */
@@ -573,10 +577,11 @@ class Catalog {
573
577
  /**
574
578
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
575
579
  * @param {import("../ApplicationAPIClient").Options} - Options
576
- * @returns {Promise<ProductFrequentlyComparedSimilarResponse>} - Success response
580
+ * @returns {Promise<ProductFrequentlyComparedSimilarResponseSchema>} -
581
+ * Success response
577
582
  * @name getComparedFrequentlyProductBySlug
578
583
  * @summary: List frequent products
579
- * @description: Get products that are often compared to the product specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getComparedFrequentlyProductBySlug/).
584
+ * @description: Get products that are often compared to the product specified by its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getComparedFrequentlyProductBySlug/).
580
585
  */
581
586
  async getComparedFrequentlyProductBySlug(
582
587
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -619,10 +624,10 @@ class Catalog {
619
624
  /**
620
625
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
621
626
  * @param {import("../ApplicationAPIClient").Options} - Options
622
- * @returns {Promise<DepartmentResponse>} - Success response
627
+ * @returns {Promise<DepartmentResponseSchema>} - Success response
623
628
  * @name getDepartments
624
629
  * @summary: List departments
625
- * @description: List all departments associated with available products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getDepartments/).
630
+ * @description: List all departments associated with available products. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getDepartments/).
626
631
  */
627
632
  async getDepartments(
628
633
  { requestHeaders } = { requestHeaders: {} },
@@ -656,10 +661,10 @@ class Catalog {
656
661
  /**
657
662
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
658
663
  * @param {import("../ApplicationAPIClient").Options} - Options
659
- * @returns {Promise<FollowIdsResponse>} - Success response
664
+ * @returns {Promise<FollowIdsResponseSchema>} - Success response
660
665
  * @name getFollowIds
661
666
  * @summary: List Ids of followed item, brand, product
662
- * @description: Get the IDs of all items the user is currently following, such as Products, Brands, and Collections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowIds/).
667
+ * @description: Get the IDs of all items the user is currently following, such as Products, Brands, and Collections. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getFollowIds/).
663
668
  */
664
669
  async getFollowIds(
665
670
  { collectionType, requestHeaders } = { requestHeaders: {} },
@@ -694,10 +699,10 @@ class Catalog {
694
699
  /**
695
700
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
696
701
  * @param {import("../ApplicationAPIClient").Options} - Options
697
- * @returns {Promise<GetFollowListingResponse>} - Success response
702
+ * @returns {Promise<GetFollowListingResponseSchema>} - Success response
698
703
  * @name getFollowedListing
699
704
  * @summary: List followed products, brands
700
- * @description: Get a list of products or brands the user is following. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowedListing/).
705
+ * @description: Get a list of products or brands the user is following. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getFollowedListing/).
701
706
  */
702
707
  async getFollowedListing(
703
708
  { collectionType, pageId, pageSize, requestHeaders } = {
@@ -746,7 +751,7 @@ class Catalog {
746
751
  * @param {string} arg.collectionType - Type of collection followed, i.e.
747
752
  * products, brands, or collections.
748
753
  * @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
749
- * @returns {Paginator<GetFollowListingResponse>}
754
+ * @returns {Paginator<GetFollowListingResponseSchema>}
750
755
  * @summary: List followed products, brands
751
756
  * @description: Get a list of products or brands the user is following.
752
757
  */
@@ -774,10 +779,10 @@ class Catalog {
774
779
  /**
775
780
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
776
781
  * @param {import("../ApplicationAPIClient").Options} - Options
777
- * @returns {Promise<FollowerCountResponse>} - Success response
782
+ * @returns {Promise<FollowerCountResponseSchema>} - Success response
778
783
  * @name getFollowerCountById
779
784
  * @summary: Get follower count
780
- * @description: Get the total number of followers for a specific item by its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowerCountById/).
785
+ * @description: Get the total number of followers for a specific item by its ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getFollowerCountById/).
781
786
  */
782
787
  async getFollowerCountById(
783
788
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },
@@ -823,10 +828,10 @@ class Catalog {
823
828
  /**
824
829
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
825
830
  * @param {import("../ApplicationAPIClient").Options} - Options
826
- * @returns {Promise<HomeListingResponse>} - Success response
831
+ * @returns {Promise<HomeListingResponseSchema>} - Success response
827
832
  * @name getHomeProducts
828
833
  * @summary: List homepage-featured products
829
- * @description: List all the products associated with a brand, collection or category in a random order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getHomeProducts/).
834
+ * @description: List all the products associated with a brand, collection or category in a random order. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getHomeProducts/).
830
835
  */
831
836
  async getHomeProducts(
832
837
  { sortOn, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
@@ -866,7 +871,7 @@ class Catalog {
866
871
  * should be sorted, e.g. popularity, price, latest and discount, in
867
872
  * either ascending or descending order.
868
873
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
869
- * @returns {Paginator<HomeListingResponse>}
874
+ * @returns {Paginator<HomeListingResponseSchema>}
870
875
  * @summary: List homepage-featured products
871
876
  * @description: List all the products associated with a brand, collection or category in a random order.
872
877
  */
@@ -897,7 +902,7 @@ class Catalog {
897
902
  * @returns {Promise<ApplicationStoreListing>} - Success response
898
903
  * @name getInStockLocations
899
904
  * @summary: List stores with inventory
900
- * @description: List stores where specified products are currently in stock. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getInStockLocations/).
905
+ * @description: List stores where specified products are currently in stock. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getInStockLocations/).
901
906
  */
902
907
  async getInStockLocations(
903
908
  {
@@ -997,7 +1002,7 @@ class Catalog {
997
1002
  * @returns {Promise<StoreDetails>} - Success response
998
1003
  * @name getLocationDetailsById
999
1004
  * @summary: Get selling location
1000
- * @description: Get details about a store based on its location Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getLocationDetailsById/).
1005
+ * @description: Get details about a store based on its location Id. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getLocationDetailsById/).
1001
1006
  */
1002
1007
  async getLocationDetailsById(
1003
1008
  { locationId, requestHeaders } = { requestHeaders: {} },
@@ -1040,18 +1045,27 @@ class Catalog {
1040
1045
  /**
1041
1046
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1042
1047
  * @param {import("../ApplicationAPIClient").Options} - Options
1043
- * @returns {Promise<ProductBundle>} - Success response
1044
- * @name getProductBundlesBySlug
1045
- * @summary: List product bundles
1046
- * @description: Get products bundles to the one specified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductBundlesBySlug/).
1048
+ * @returns {Promise<ProductBundleItems>} - Success response
1049
+ * @name getProductBundleItems
1050
+ * @summary: Get children for a bundled product
1051
+ * @description: Retrieve bundle children for a given bundled product slug with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundleItems/).
1047
1052
  */
1048
- async getProductBundlesBySlug(
1049
- { slug, id, requestHeaders } = { requestHeaders: {} },
1053
+ async getProductBundleItems(
1054
+ { slug, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1050
1055
  { responseHeaders } = { responseHeaders: false }
1051
1056
  ) {
1057
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
1058
+ if (errors.length > 0) {
1059
+ const error = new FDKClientValidationError({
1060
+ message: "Missing required field",
1061
+ details: errors,
1062
+ });
1063
+ return Promise.reject(new FDKClientValidationError(error));
1064
+ }
1065
+
1052
1066
  const query_params = {};
1053
- query_params["slug"] = slug;
1054
- query_params["id"] = id;
1067
+ query_params["page_no"] = pageNo;
1068
+ query_params["page_size"] = pageSize;
1055
1069
 
1056
1070
  const xHeaders = {};
1057
1071
 
@@ -1059,8 +1073,8 @@ class Catalog {
1059
1073
  this._conf,
1060
1074
  "get",
1061
1075
  constructUrl({
1062
- url: this._urls["getProductBundlesBySlug"],
1063
- params: {},
1076
+ url: this._urls["getProductBundleItems"],
1077
+ params: { slug },
1064
1078
  }),
1065
1079
  query_params,
1066
1080
  undefined,
@@ -1079,10 +1093,58 @@ class Catalog {
1079
1093
  /**
1080
1094
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1081
1095
  * @param {import("../ApplicationAPIClient").Options} - Options
1082
- * @returns {Promise<ProductsComparisonResponse>} - Success response
1096
+ * @returns {Promise<ProductBundleItemsWithSlug>} - Success response
1097
+ * @name getProductBundlesByChildSku
1098
+ * @summary: Get bundled items for a specific product size
1099
+ * @description: Retrieve bundled items for a given product slug and size with pricing, brand, media, and seller information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductBundlesByChildSku/).
1100
+ */
1101
+ async getProductBundlesByChildSku(
1102
+ { slug, size, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
1103
+ { responseHeaders } = { responseHeaders: false }
1104
+ ) {
1105
+ const errors = validateRequiredParams(arguments[0], ["slug", "size"]);
1106
+ if (errors.length > 0) {
1107
+ const error = new FDKClientValidationError({
1108
+ message: "Missing required field",
1109
+ details: errors,
1110
+ });
1111
+ return Promise.reject(new FDKClientValidationError(error));
1112
+ }
1113
+
1114
+ const query_params = {};
1115
+ query_params["page_no"] = pageNo;
1116
+ query_params["page_size"] = pageSize;
1117
+
1118
+ const xHeaders = {};
1119
+
1120
+ const response = await ApplicationAPIClient.execute(
1121
+ this._conf,
1122
+ "get",
1123
+ constructUrl({
1124
+ url: this._urls["getProductBundlesByChildSku"],
1125
+ params: { slug, size },
1126
+ }),
1127
+ query_params,
1128
+ undefined,
1129
+ { ...xHeaders, ...requestHeaders },
1130
+ { responseHeaders }
1131
+ );
1132
+
1133
+ let responseData = response;
1134
+ if (responseHeaders) {
1135
+ responseData = response[0];
1136
+ }
1137
+
1138
+ return response;
1139
+ }
1140
+
1141
+ /**
1142
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1143
+ * @param {import("../ApplicationAPIClient").Options} - Options
1144
+ * @returns {Promise<ProductsComparisonResponseSchema>} - Success response
1083
1145
  * @name getProductComparisonBySlugs
1084
1146
  * @summary: List products for comparison
1085
- * @description: Get all the products that have the same category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductComparisonBySlugs/).
1147
+ * @description: Get all the products that have the same category. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductComparisonBySlugs/).
1086
1148
  */
1087
1149
  async getProductComparisonBySlugs(
1088
1150
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -1120,7 +1182,7 @@ class Catalog {
1120
1182
  * @returns {Promise<ProductDetail>} - Success response
1121
1183
  * @name getProductDetailBySlug
1122
1184
  * @summary: Get a product
1123
- * @description: Get product details such as price, attributes, HSN code, SKU code, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductDetailBySlug/).
1185
+ * @description: Get product details such as price, attributes, HSN code, SKU code, etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductDetailBySlug/).
1124
1186
  */
1125
1187
  async getProductDetailBySlug(
1126
1188
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -1163,13 +1225,15 @@ class Catalog {
1163
1225
  /**
1164
1226
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1165
1227
  * @param {import("../ApplicationAPIClient").Options} - Options
1166
- * @returns {Promise<ProductSizePriceResponseV3>} - Success response
1228
+ * @returns {Promise<ProductSizePriceResponseV4>} - Success response
1167
1229
  * @name getProductPriceBySlug
1168
1230
  * @summary: Get product price
1169
- * @description: Get the price of a product size at all the selling locations near to a PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductPriceBySlug/).
1231
+ * @description: Get the price of a product size at all the selling locations near to a PIN Code. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductPriceBySlug/).
1170
1232
  */
1171
1233
  async getProductPriceBySlug(
1172
- { slug, size, storeId, moq, requestHeaders } = { requestHeaders: {} },
1234
+ { slug, size, storeId, moq, fulfillmentOptionSlug, requestHeaders } = {
1235
+ requestHeaders: {},
1236
+ },
1173
1237
  { responseHeaders } = { responseHeaders: false }
1174
1238
  ) {
1175
1239
  const errors = validateRequiredParams(arguments[0], ["slug", "size"]);
@@ -1184,6 +1248,7 @@ class Catalog {
1184
1248
  const query_params = {};
1185
1249
  query_params["store_id"] = storeId;
1186
1250
  query_params["moq"] = moq;
1251
+ query_params["fulfillment_option_slug"] = fulfillmentOptionSlug;
1187
1252
 
1188
1253
  const xHeaders = {};
1189
1254
 
@@ -1211,15 +1276,21 @@ class Catalog {
1211
1276
  /**
1212
1277
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1213
1278
  * @param {import("../ApplicationAPIClient").Options} - Options
1214
- * @returns {Promise<ProductSizeSellersResponseV3>} - Success response
1279
+ * @returns {Promise<ProductSizeSellersResponseV4>} - Success response
1215
1280
  * @name getProductSellersBySlug
1216
1281
  * @summary: List sellers
1217
- * @description: List all sellers offering a specific product identified by its slug and size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSellersBySlug/).
1282
+ * @description: List all sellers offering a specific product identified by its slug and size. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSellersBySlug/).
1218
1283
  */
1219
1284
  async getProductSellersBySlug(
1220
- { slug, size, strategy, pageNo, pageSize, requestHeaders } = {
1221
- requestHeaders: {},
1222
- },
1285
+ {
1286
+ slug,
1287
+ size,
1288
+ strategy,
1289
+ fulfillmentOptionSlug,
1290
+ pageNo,
1291
+ pageSize,
1292
+ requestHeaders,
1293
+ } = { requestHeaders: {} },
1223
1294
  { responseHeaders } = { responseHeaders: false }
1224
1295
  ) {
1225
1296
  const errors = validateRequiredParams(arguments[0], ["slug", "size"]);
@@ -1233,6 +1304,7 @@ class Catalog {
1233
1304
 
1234
1305
  const query_params = {};
1235
1306
  query_params["strategy"] = strategy;
1307
+ query_params["fulfillment_option_slug"] = fulfillmentOptionSlug;
1236
1308
  query_params["page_no"] = pageNo;
1237
1309
  query_params["page_size"] = pageSize;
1238
1310
 
@@ -1269,12 +1341,20 @@ class Catalog {
1269
1341
  * /service/application/catalog/v1.0/products/sizes.
1270
1342
  * @param {string} [arg.strategy] - Sort stores on the basis of strategy.
1271
1343
  * eg, fast-delivery, low-price, optimal.
1344
+ * @param {string} [arg.fulfillmentOptionSlug] - Specifies the fulfillment
1345
+ * method, indicating whether an order is for home delivery or store pickup
1272
1346
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1273
- * @returns {Paginator<ProductSizeSellersResponseV3>}
1347
+ * @returns {Paginator<ProductSizeSellersResponseV4>}
1274
1348
  * @summary: List sellers
1275
1349
  * @description: List all sellers offering a specific product identified by its slug and size.
1276
1350
  */
1277
- getProductSellersBySlugPaginator({ slug, size, strategy, pageSize } = {}) {
1351
+ getProductSellersBySlugPaginator({
1352
+ slug,
1353
+ size,
1354
+ strategy,
1355
+ fulfillmentOptionSlug,
1356
+ pageSize,
1357
+ } = {}) {
1278
1358
  const paginator = new Paginator();
1279
1359
  const callback = async () => {
1280
1360
  const pageId = paginator.nextId;
@@ -1284,6 +1364,7 @@ class Catalog {
1284
1364
  slug: slug,
1285
1365
  size: size,
1286
1366
  strategy: strategy,
1367
+ fulfillmentOptionSlug: fulfillmentOptionSlug,
1287
1368
  pageNo: pageNo,
1288
1369
  pageSize: pageSize,
1289
1370
  });
@@ -1303,7 +1384,7 @@ class Catalog {
1303
1384
  * @returns {Promise<ProductSizes>} - Success response
1304
1385
  * @name getProductSizesBySlug
1305
1386
  * @summary: List sizes
1306
- * @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductSizesBySlug/).
1387
+ * @description: Provides detailed information about a product, including its availability (sellable), available sizes with quantities, dimensions, weight, availability status, price details (marked, effective, selling), minimum order quantity (MOQ). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductSizesBySlug/).
1307
1388
  */
1308
1389
  async getProductSizesBySlug(
1309
1390
  { slug, storeId, requestHeaders } = { requestHeaders: {} },
@@ -1347,10 +1428,10 @@ class Catalog {
1347
1428
  /**
1348
1429
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1349
1430
  * @param {import("../ApplicationAPIClient").Options} - Options
1350
- * @returns {Promise<ProductStockStatusResponse>} - Success response
1431
+ * @returns {Promise<ProductStockStatusResponseSchema>} - Success response
1351
1432
  * @name getProductStockByIds
1352
1433
  * @summary: Get product stocks
1353
- * @description: Get the current stock status for products identified by their IDs, such as SKU, ALU, EAN, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockByIds/).
1434
+ * @description: Get the current stock status for products identified by their IDs, such as SKU, ALU, EAN, etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductStockByIds/).
1354
1435
  */
1355
1436
  async getProductStockByIds(
1356
1437
  { itemId, alu, skuCode, ean, upc, requestHeaders } = { requestHeaders: {} },
@@ -1392,7 +1473,7 @@ class Catalog {
1392
1473
  * @returns {Promise<ProductStockPolling>} - Success response
1393
1474
  * @name getProductStockForTimeByIds
1394
1475
  * @summary: List future stock
1395
- * @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductStockForTimeByIds/).
1476
+ * @description: Get the available stock levels for all products associated with a particular sales channel at a specified future time. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductStockForTimeByIds/).
1396
1477
  */
1397
1478
  async getProductStockForTimeByIds(
1398
1479
  { timestamp, pageSize, pageId, requestHeaders } = { requestHeaders: {} },
@@ -1458,10 +1539,10 @@ class Catalog {
1458
1539
  /**
1459
1540
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1460
1541
  * @param {import("../ApplicationAPIClient").Options} - Options
1461
- * @returns {Promise<ProductVariantsResponse>} - Success response
1542
+ * @returns {Promise<ProductVariantsResponseSchema>} - Success response
1462
1543
  * @name getProductVariantsBySlug
1463
1544
  * @summary: List product variants
1464
- * @description: Get all available variants of a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductVariantsBySlug/).
1545
+ * @description: Get all available variants of a specific product identified by its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProductVariantsBySlug/).
1465
1546
  */
1466
1547
  async getProductVariantsBySlug(
1467
1548
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -1504,10 +1585,10 @@ class Catalog {
1504
1585
  /**
1505
1586
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1506
1587
  * @param {import("../ApplicationAPIClient").Options} - Options
1507
- * @returns {Promise<ProductListingResponse>} - Success response
1588
+ * @returns {Promise<ProductListingResponseSchema>} - Success response
1508
1589
  * @name getProducts
1509
1590
  * @summary: List products
1510
- * @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProducts/).
1591
+ * @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getProducts/).
1511
1592
  */
1512
1593
  async getProducts(
1513
1594
  {
@@ -1567,10 +1648,12 @@ class Catalog {
1567
1648
  * @param {boolean} [arg.filters] - True for fetching all filter parameters
1568
1649
  * and False for disabling the filter parameters.
1569
1650
  * @param {string} [arg.sortOn] - The order in which the list of products
1570
- * should be sorted, e.g. popularity, price, latest and discount, in
1571
- * either ascending or descending order. See the supported values below.
1651
+ * should be sorted. Supported values include latest, popular, price_asc,
1652
+ * price_dsc, discount_asc, discount_dsc. Custom sort keys configured via
1653
+ * listing configuration (e.g., best_selling) are also supported for
1654
+ * cohort-based sorting.
1572
1655
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
1573
- * @returns {Paginator<ProductListingResponse>}
1656
+ * @returns {Paginator<ProductListingResponseSchema>}
1574
1657
  * @summary: List products
1575
1658
  * @description: List all products available in the catalog. It supports filtering based on product name, brand, department, category, collection, and more, while also offering sorting options based on factors like price, ratings, discounts, and other relevant criteria.
1576
1659
  */
@@ -1603,47 +1686,10 @@ class Catalog {
1603
1686
  /**
1604
1687
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1605
1688
  * @param {import("../ApplicationAPIClient").Options} - Options
1606
- * @returns {Promise<ProductSizePriceServiceabilityResponse>} - Success response
1607
- * @name getProductsServiceability
1608
- * @summary: get size price for multiple products,For serviceability
1609
- * @description: Get size price for multiple products, For serviceability, with reduced size of response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductsServiceability/).
1610
- */
1611
- async getProductsServiceability(
1612
- { body, requestHeaders } = { requestHeaders: {} },
1613
- { responseHeaders } = { responseHeaders: false }
1614
- ) {
1615
- const query_params = {};
1616
-
1617
- const xHeaders = {};
1618
-
1619
- const response = await ApplicationAPIClient.execute(
1620
- this._conf,
1621
- "post",
1622
- constructUrl({
1623
- url: this._urls["getProductsServiceability"],
1624
- params: {},
1625
- }),
1626
- query_params,
1627
- body,
1628
- { ...xHeaders, ...requestHeaders },
1629
- { responseHeaders }
1630
- );
1631
-
1632
- let responseData = response;
1633
- if (responseHeaders) {
1634
- responseData = response[0];
1635
- }
1636
-
1637
- return response;
1638
- }
1639
-
1640
- /**
1641
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1642
- * @param {import("../ApplicationAPIClient").Options} - Options
1643
- * @returns {Promise<AutoCompleteResponse>} - Success response
1689
+ * @returns {Promise<AutoCompleteResponseSchema>} - Success response
1644
1690
  * @name getSearchResults
1645
1691
  * @summary: List product, brand, category
1646
- * @description: Get products, brands, or categories based on a search query, which can be a partial or full name match. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSearchResults/).
1692
+ * @description: Get products, brands, or categories based on a search query, which can be a partial or full name match. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getSearchResults/).
1647
1693
  */
1648
1694
  async getSearchResults(
1649
1695
  { q, requestHeaders } = { requestHeaders: {} },
@@ -1678,10 +1724,10 @@ class Catalog {
1678
1724
  /**
1679
1725
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1680
1726
  * @param {import("../ApplicationAPIClient").Options} - Options
1681
- * @returns {Promise<ProductCompareResponse>} - Success response
1727
+ * @returns {Promise<ProductCompareResponseSchema>} - Success response
1682
1728
  * @name getSimilarComparisonProductBySlug
1683
1729
  * @summary: List similar products
1684
- * @description: Get all products within the same category as the one specified by the provided slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getSimilarComparisonProductBySlug/).
1730
+ * @description: Get all products within the same category as the one specified by the provided slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getSimilarComparisonProductBySlug/).
1685
1731
  */
1686
1732
  async getSimilarComparisonProductBySlug(
1687
1733
  { slug, requestHeaders } = { requestHeaders: {} },
@@ -1724,10 +1770,10 @@ class Catalog {
1724
1770
  /**
1725
1771
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1726
1772
  * @param {import("../ApplicationAPIClient").Options} - Options
1727
- * @returns {Promise<StoreListingResponse>} - Success response
1773
+ * @returns {Promise<StoreListingResponseSchema>} - Success response
1728
1774
  * @name getStores
1729
1775
  * @summary: List available stores
1730
- * @description: List all stores associated with the sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getStores/).
1776
+ * @description: List all stores associated with the sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/getStores/).
1731
1777
  */
1732
1778
  async getStores(
1733
1779
  {
@@ -1788,7 +1834,7 @@ class Catalog {
1788
1834
  * @param {number} [arg.longitude] - Longitude of the location from where
1789
1835
  * one wants to retrieve the nearest stores, e.g. 19.1174114.
1790
1836
  * @param {string} [arg.tags] - Search stores based on tags.
1791
- * @returns {Paginator<StoreListingResponse>}
1837
+ * @returns {Paginator<StoreListingResponseSchema>}
1792
1838
  * @summary: List available stores
1793
1839
  * @description: List all stores associated with the sales channel.
1794
1840
  */
@@ -1829,10 +1875,47 @@ class Catalog {
1829
1875
  /**
1830
1876
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1831
1877
  * @param {import("../ApplicationAPIClient").Options} - Options
1832
- * @returns {Promise<FollowPostResponse>} - Success response
1878
+ * @returns {Promise<AvailableCountrySchema>} - Success response
1879
+ * @name listCountryCurrencyMappings
1880
+ * @summary: List country to currency mapping
1881
+ * @description: List all country-to-currencies mappings configured during the Price Factory setup for given application - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/listCountryCurrencyMappings/).
1882
+ */
1883
+ async listCountryCurrencyMappings(
1884
+ { requestHeaders } = { requestHeaders: {} },
1885
+ { responseHeaders } = { responseHeaders: false }
1886
+ ) {
1887
+ const query_params = {};
1888
+
1889
+ const xHeaders = {};
1890
+
1891
+ const response = await ApplicationAPIClient.execute(
1892
+ this._conf,
1893
+ "get",
1894
+ constructUrl({
1895
+ url: this._urls["listCountryCurrencyMappings"],
1896
+ params: {},
1897
+ }),
1898
+ query_params,
1899
+ undefined,
1900
+ { ...xHeaders, ...requestHeaders },
1901
+ { responseHeaders }
1902
+ );
1903
+
1904
+ let responseData = response;
1905
+ if (responseHeaders) {
1906
+ responseData = response[0];
1907
+ }
1908
+
1909
+ return response;
1910
+ }
1911
+
1912
+ /**
1913
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1914
+ * @param {import("../ApplicationAPIClient").Options} - Options
1915
+ * @returns {Promise<FollowPostResponseSchema>} - Success response
1833
1916
  * @name unfollowById
1834
1917
  * @summary: Delete item, brand, product
1835
- * @description: Remove a followed item, brand, or product using its collection ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/unfollowById/).
1918
+ * @description: Remove a followed item, brand, or product using its collection ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/catalog/unfollowById/).
1836
1919
  */
1837
1920
  async unfollowById(
1838
1921
  { collectionType, collectionId, requestHeaders } = { requestHeaders: {} },