@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1

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 (298) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
  198. package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
  253. package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
  254. package/sdk/platform/User/UserPlatformModel.js +204 -65
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -15,23 +15,21 @@ class Catalog {
15
15
  }
16
16
 
17
17
  /**
18
- * @param {CatalogPlatformValidator.AddInventoryParam} arg - Arg object
18
+ * @param {CatalogPlatformValidator.AllSizesParam} arg - Arg object
19
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
20
  * @param {import("../PlatformAPIClient").Options} - Options
21
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
22
- * @name addInventory
23
- * @summary: Create Inventory
24
- * @description: Allows add Inventory for particular size and selling location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/addInventory/).
21
+ * @returns {Promise<CatalogPlatformModel.GetAllSizes>} - Success response
22
+ * @name allSizes
23
+ * @summary: Get all product sizes.
24
+ * @description: Retrieve all available sizes for a product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/allSizes/).
25
25
  */
26
- async addInventory(
27
- { itemId, size, body, requestHeaders } = { requestHeaders: {} },
26
+ async allSizes(
27
+ { itemId, requestHeaders } = { requestHeaders: {} },
28
28
  { responseHeaders } = { responseHeaders: false }
29
29
  ) {
30
- const { error } = CatalogPlatformValidator.addInventory().validate(
30
+ const { error } = CatalogPlatformValidator.allSizes().validate(
31
31
  {
32
32
  itemId,
33
- size,
34
- body,
35
33
  },
36
34
  { abortEarly: false, allowUnknown: true }
37
35
  );
@@ -40,20 +38,16 @@ class Catalog {
40
38
  }
41
39
 
42
40
  // Showing warrnings if extra unknown parameters are found
43
- const {
44
- error: warrning,
45
- } = CatalogPlatformValidator.addInventory().validate(
41
+ const { error: warrning } = CatalogPlatformValidator.allSizes().validate(
46
42
  {
47
43
  itemId,
48
- size,
49
- body,
50
44
  },
51
45
  { abortEarly: false, allowUnknown: false }
52
46
  );
53
47
  if (warrning) {
54
48
  Logger({
55
49
  level: "WARN",
56
- message: `Parameter Validation warrnings for platform > Catalog > addInventory \n ${warrning}`,
50
+ message: `Parameter Validation warrnings for platform > Catalog > allSizes \n ${warrning}`,
57
51
  });
58
52
  }
59
53
 
@@ -63,10 +57,10 @@ class Catalog {
63
57
 
64
58
  const response = await PlatformAPIClient.execute(
65
59
  this.config,
66
- "post",
67
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
60
+ "get",
61
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/all_sizes`,
68
62
  query_params,
69
- body,
63
+ undefined,
70
64
  { ...xHeaders, ...requestHeaders },
71
65
  { responseHeaders }
72
66
  );
@@ -78,7 +72,7 @@ class Catalog {
78
72
 
79
73
  const {
80
74
  error: res_error,
81
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
75
+ } = CatalogPlatformModel.GetAllSizes().validate(responseData, {
82
76
  abortEarly: false,
83
77
  allowUnknown: true,
84
78
  });
@@ -89,7 +83,7 @@ class Catalog {
89
83
  } else {
90
84
  Logger({
91
85
  level: "WARN",
92
- message: `Response Validation Warnings for platform > Catalog > addInventory \n ${res_error}`,
86
+ message: `Response Validation Warnings for platform > Catalog > allSizes \n ${res_error}`,
93
87
  });
94
88
  }
95
89
  }
@@ -98,21 +92,22 @@ class Catalog {
98
92
  }
99
93
 
100
94
  /**
101
- * @param {CatalogPlatformValidator.AllSizesParam} arg - Arg object
95
+ * @param {CatalogPlatformValidator.CreateBulkInventoryParam} arg - Arg object
102
96
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
103
97
  * @param {import("../PlatformAPIClient").Options} - Options
104
- * @returns {Promise<CatalogPlatformModel.GetAllSizes>} - Success response
105
- * @name allSizes
106
- * @summary: Get product sizes
107
- * @description: Retrieve all available sizes for a product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/allSizes/).
98
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
99
+ * @name createBulkInventory
100
+ * @summary: Create bulk inventory.
101
+ * @description: Helps to create products in bulk push to kafka for approval/creation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventory/).
108
102
  */
109
- async allSizes(
110
- { itemId, requestHeaders } = { requestHeaders: {} },
103
+ async createBulkInventory(
104
+ { batchId, body, requestHeaders } = { requestHeaders: {} },
111
105
  { responseHeaders } = { responseHeaders: false }
112
106
  ) {
113
- const { error } = CatalogPlatformValidator.allSizes().validate(
107
+ const { error } = CatalogPlatformValidator.createBulkInventory().validate(
114
108
  {
115
- itemId,
109
+ batchId,
110
+ body,
116
111
  },
117
112
  { abortEarly: false, allowUnknown: true }
118
113
  );
@@ -121,16 +116,19 @@ class Catalog {
121
116
  }
122
117
 
123
118
  // Showing warrnings if extra unknown parameters are found
124
- const { error: warrning } = CatalogPlatformValidator.allSizes().validate(
119
+ const {
120
+ error: warrning,
121
+ } = CatalogPlatformValidator.createBulkInventory().validate(
125
122
  {
126
- itemId,
123
+ batchId,
124
+ body,
127
125
  },
128
126
  { abortEarly: false, allowUnknown: false }
129
127
  );
130
128
  if (warrning) {
131
129
  Logger({
132
130
  level: "WARN",
133
- message: `Parameter Validation warrnings for platform > Catalog > allSizes \n ${warrning}`,
131
+ message: `Parameter Validation warrnings for platform > Catalog > createBulkInventory \n ${warrning}`,
134
132
  });
135
133
  }
136
134
 
@@ -140,10 +138,10 @@ class Catalog {
140
138
 
141
139
  const response = await PlatformAPIClient.execute(
142
140
  this.config,
143
- "get",
144
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/all_sizes`,
141
+ "post",
142
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}`,
145
143
  query_params,
146
- undefined,
144
+ body,
147
145
  { ...xHeaders, ...requestHeaders },
148
146
  { responseHeaders }
149
147
  );
@@ -155,7 +153,7 @@ class Catalog {
155
153
 
156
154
  const {
157
155
  error: res_error,
158
- } = CatalogPlatformModel.GetAllSizes().validate(responseData, {
156
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
159
157
  abortEarly: false,
160
158
  allowUnknown: true,
161
159
  });
@@ -166,7 +164,7 @@ class Catalog {
166
164
  } else {
167
165
  Logger({
168
166
  level: "WARN",
169
- message: `Response Validation Warnings for platform > Catalog > allSizes \n ${res_error}`,
167
+ message: `Response Validation Warnings for platform > Catalog > createBulkInventory \n ${res_error}`,
170
168
  });
171
169
  }
172
170
  }
@@ -175,19 +173,21 @@ class Catalog {
175
173
  }
176
174
 
177
175
  /**
178
- * @param {CatalogPlatformValidator.BulkHsnCodeParam} arg - Arg object
176
+ * @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object
179
177
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
180
178
  * @param {import("../PlatformAPIClient").Options} - Options
181
- * @returns {Promise<CatalogPlatformModel.BulkHsnResponseSchema>} - Success response
182
- * @name bulkHsnCode
183
- * @summary: Create Bulk update HSN
184
- * @description: Execute bulk updates for HSN codes across multiple products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/bulkHsnCode/).
179
+ * @returns {Promise<CatalogPlatformModel.InventoryBulkResponse>} - Success response
180
+ * @name createBulkInventoryJob
181
+ * @summary: Create bulk inventory upload job.
182
+ * @description: Helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/).
185
183
  */
186
- async bulkHsnCode(
184
+ async createBulkInventoryJob(
187
185
  { body, requestHeaders } = { requestHeaders: {} },
188
186
  { responseHeaders } = { responseHeaders: false }
189
187
  ) {
190
- const { error } = CatalogPlatformValidator.bulkHsnCode().validate(
188
+ const {
189
+ error,
190
+ } = CatalogPlatformValidator.createBulkInventoryJob().validate(
191
191
  {
192
192
  body,
193
193
  },
@@ -198,7 +198,9 @@ class Catalog {
198
198
  }
199
199
 
200
200
  // Showing warrnings if extra unknown parameters are found
201
- const { error: warrning } = CatalogPlatformValidator.bulkHsnCode().validate(
201
+ const {
202
+ error: warrning,
203
+ } = CatalogPlatformValidator.createBulkInventoryJob().validate(
202
204
  {
203
205
  body,
204
206
  },
@@ -207,7 +209,7 @@ class Catalog {
207
209
  if (warrning) {
208
210
  Logger({
209
211
  level: "WARN",
210
- message: `Parameter Validation warrnings for platform > Catalog > bulkHsnCode \n ${warrning}`,
212
+ message: `Parameter Validation warrnings for platform > Catalog > createBulkInventoryJob \n ${warrning}`,
211
213
  });
212
214
  }
213
215
 
@@ -218,7 +220,7 @@ class Catalog {
218
220
  const response = await PlatformAPIClient.execute(
219
221
  this.config,
220
222
  "post",
221
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/bulk/`,
223
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk`,
222
224
  query_params,
223
225
  body,
224
226
  { ...xHeaders, ...requestHeaders },
@@ -232,7 +234,7 @@ class Catalog {
232
234
 
233
235
  const {
234
236
  error: res_error,
235
- } = CatalogPlatformModel.BulkHsnResponseSchema().validate(responseData, {
237
+ } = CatalogPlatformModel.InventoryBulkResponse().validate(responseData, {
236
238
  abortEarly: false,
237
239
  allowUnknown: true,
238
240
  });
@@ -243,7 +245,7 @@ class Catalog {
243
245
  } else {
244
246
  Logger({
245
247
  level: "WARN",
246
- message: `Response Validation Warnings for platform > Catalog > bulkHsnCode \n ${res_error}`,
248
+ message: `Response Validation Warnings for platform > Catalog > createBulkInventoryJob \n ${res_error}`,
247
249
  });
248
250
  }
249
251
  }
@@ -252,21 +254,22 @@ class Catalog {
252
254
  }
253
255
 
254
256
  /**
255
- * @param {CatalogPlatformValidator.CreateBulkInventoryParam} arg - Arg object
257
+ * @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object
256
258
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
257
259
  * @param {import("../PlatformAPIClient").Options} - Options
258
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
259
- * @name createBulkInventory
260
- * @summary: Create bulk inventory
261
- * @description: Helps to create products in bulk push to kafka for approval/creation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventory/).
260
+ * @returns {Promise<CatalogPlatformModel.ProductBulkResponse>} - Success response
261
+ * @name createBulkProductUploadJob
262
+ * @summary: Create a Bulk product to upload job.
263
+ * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkProductUploadJob/).
262
264
  */
263
- async createBulkInventory(
264
- { batchId, body, requestHeaders } = { requestHeaders: {} },
265
+ async createBulkProductUploadJob(
266
+ { body, requestHeaders } = { requestHeaders: {} },
265
267
  { responseHeaders } = { responseHeaders: false }
266
268
  ) {
267
- const { error } = CatalogPlatformValidator.createBulkInventory().validate(
269
+ const {
270
+ error,
271
+ } = CatalogPlatformValidator.createBulkProductUploadJob().validate(
268
272
  {
269
- batchId,
270
273
  body,
271
274
  },
272
275
  { abortEarly: false, allowUnknown: true }
@@ -278,9 +281,8 @@ class Catalog {
278
281
  // Showing warrnings if extra unknown parameters are found
279
282
  const {
280
283
  error: warrning,
281
- } = CatalogPlatformValidator.createBulkInventory().validate(
284
+ } = CatalogPlatformValidator.createBulkProductUploadJob().validate(
282
285
  {
283
- batchId,
284
286
  body,
285
287
  },
286
288
  { abortEarly: false, allowUnknown: false }
@@ -288,7 +290,7 @@ class Catalog {
288
290
  if (warrning) {
289
291
  Logger({
290
292
  level: "WARN",
291
- message: `Parameter Validation warrnings for platform > Catalog > createBulkInventory \n ${warrning}`,
293
+ message: `Parameter Validation warrnings for platform > Catalog > createBulkProductUploadJob \n ${warrning}`,
292
294
  });
293
295
  }
294
296
 
@@ -299,7 +301,7 @@ class Catalog {
299
301
  const response = await PlatformAPIClient.execute(
300
302
  this.config,
301
303
  "post",
302
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`,
304
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk`,
303
305
  query_params,
304
306
  body,
305
307
  { ...xHeaders, ...requestHeaders },
@@ -313,7 +315,7 @@ class Catalog {
313
315
 
314
316
  const {
315
317
  error: res_error,
316
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
318
+ } = CatalogPlatformModel.ProductBulkResponse().validate(responseData, {
317
319
  abortEarly: false,
318
320
  allowUnknown: true,
319
321
  });
@@ -324,7 +326,7 @@ class Catalog {
324
326
  } else {
325
327
  Logger({
326
328
  level: "WARN",
327
- message: `Response Validation Warnings for platform > Catalog > createBulkInventory \n ${res_error}`,
329
+ message: `Response Validation Warnings for platform > Catalog > createBulkProductUploadJob \n ${res_error}`,
328
330
  });
329
331
  }
330
332
  }
@@ -333,21 +335,19 @@ class Catalog {
333
335
  }
334
336
 
335
337
  /**
336
- * @param {CatalogPlatformValidator.CreateBulkInventoryJobParam} arg - Arg object
338
+ * @param {CatalogPlatformValidator.CreateCategoriesParam} arg - Arg object
337
339
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
340
  * @param {import("../PlatformAPIClient").Options} - Options
339
- * @returns {Promise<CatalogPlatformModel.BulkResponseSchema>} - Success response
340
- * @name createBulkInventoryJob
341
- * @summary: Create bulk inventory upload job
342
- * @description: Helps to create a bulk Inventory upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkInventoryJob/).
341
+ * @returns {Promise<CatalogPlatformModel.CategoryCreateResponse>} - Success response
342
+ * @name createCategories
343
+ * @summary: Create categories.
344
+ * @description: Lets user create product categories on for the seller on the platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createCategories/).
343
345
  */
344
- async createBulkInventoryJob(
346
+ async createCategories(
345
347
  { body, requestHeaders } = { requestHeaders: {} },
346
348
  { responseHeaders } = { responseHeaders: false }
347
349
  ) {
348
- const {
349
- error,
350
- } = CatalogPlatformValidator.createBulkInventoryJob().validate(
350
+ const { error } = CatalogPlatformValidator.createCategories().validate(
351
351
  {
352
352
  body,
353
353
  },
@@ -360,7 +360,7 @@ class Catalog {
360
360
  // Showing warrnings if extra unknown parameters are found
361
361
  const {
362
362
  error: warrning,
363
- } = CatalogPlatformValidator.createBulkInventoryJob().validate(
363
+ } = CatalogPlatformValidator.createCategories().validate(
364
364
  {
365
365
  body,
366
366
  },
@@ -369,7 +369,7 @@ class Catalog {
369
369
  if (warrning) {
370
370
  Logger({
371
371
  level: "WARN",
372
- message: `Parameter Validation warrnings for platform > Catalog > createBulkInventoryJob \n ${warrning}`,
372
+ message: `Parameter Validation warrnings for platform > Catalog > createCategories \n ${warrning}`,
373
373
  });
374
374
  }
375
375
 
@@ -380,7 +380,7 @@ class Catalog {
380
380
  const response = await PlatformAPIClient.execute(
381
381
  this.config,
382
382
  "post",
383
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/`,
383
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/category`,
384
384
  query_params,
385
385
  body,
386
386
  { ...xHeaders, ...requestHeaders },
@@ -394,7 +394,7 @@ class Catalog {
394
394
 
395
395
  const {
396
396
  error: res_error,
397
- } = CatalogPlatformModel.BulkResponseSchema().validate(responseData, {
397
+ } = CatalogPlatformModel.CategoryCreateResponse().validate(responseData, {
398
398
  abortEarly: false,
399
399
  allowUnknown: true,
400
400
  });
@@ -405,7 +405,7 @@ class Catalog {
405
405
  } else {
406
406
  Logger({
407
407
  level: "WARN",
408
- message: `Response Validation Warnings for platform > Catalog > createBulkInventoryJob \n ${res_error}`,
408
+ message: `Response Validation Warnings for platform > Catalog > createCategories \n ${res_error}`,
409
409
  });
410
410
  }
411
411
  }
@@ -414,21 +414,20 @@ class Catalog {
414
414
  }
415
415
 
416
416
  /**
417
- * @param {CatalogPlatformValidator.CreateBulkProductUploadJobParam} arg - Arg object
417
+ * @param {CatalogPlatformValidator.CreateDepartmentsParam} arg - Arg object
418
418
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
419
419
  * @param {import("../PlatformAPIClient").Options} - Options
420
- * @returns {Promise<CatalogPlatformModel.BulkResponseSchema>} - Success response
421
- * @name createBulkProductUploadJob
422
- * @summary: Create products bulk upload
423
- * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createBulkProductUploadJob/).
420
+ * @returns {Promise<CatalogPlatformModel.DepartmentCreateResponse>} -
421
+ * Success response
422
+ * @name createDepartments
423
+ * @summary: Create departments.
424
+ * @description: Create departments with this resource. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createDepartments/).
424
425
  */
425
- async createBulkProductUploadJob(
426
+ async createDepartments(
426
427
  { body, requestHeaders } = { requestHeaders: {} },
427
428
  { responseHeaders } = { responseHeaders: false }
428
429
  ) {
429
- const {
430
- error,
431
- } = CatalogPlatformValidator.createBulkProductUploadJob().validate(
430
+ const { error } = CatalogPlatformValidator.createDepartments().validate(
432
431
  {
433
432
  body,
434
433
  },
@@ -441,7 +440,7 @@ class Catalog {
441
440
  // Showing warrnings if extra unknown parameters are found
442
441
  const {
443
442
  error: warrning,
444
- } = CatalogPlatformValidator.createBulkProductUploadJob().validate(
443
+ } = CatalogPlatformValidator.createDepartments().validate(
445
444
  {
446
445
  body,
447
446
  },
@@ -450,7 +449,7 @@ class Catalog {
450
449
  if (warrning) {
451
450
  Logger({
452
451
  level: "WARN",
453
- message: `Parameter Validation warrnings for platform > Catalog > createBulkProductUploadJob \n ${warrning}`,
452
+ message: `Parameter Validation warrnings for platform > Catalog > createDepartments \n ${warrning}`,
454
453
  });
455
454
  }
456
455
 
@@ -461,7 +460,7 @@ class Catalog {
461
460
  const response = await PlatformAPIClient.execute(
462
461
  this.config,
463
462
  "post",
464
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/bulk`,
463
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments`,
465
464
  query_params,
466
465
  body,
467
466
  { ...xHeaders, ...requestHeaders },
@@ -475,7 +474,7 @@ class Catalog {
475
474
 
476
475
  const {
477
476
  error: res_error,
478
- } = CatalogPlatformModel.BulkResponseSchema().validate(responseData, {
477
+ } = CatalogPlatformModel.DepartmentCreateResponse().validate(responseData, {
479
478
  abortEarly: false,
480
479
  allowUnknown: true,
481
480
  });
@@ -486,7 +485,7 @@ class Catalog {
486
485
  } else {
487
486
  Logger({
488
487
  level: "WARN",
489
- message: `Response Validation Warnings for platform > Catalog > createBulkProductUploadJob \n ${res_error}`,
488
+ message: `Response Validation Warnings for platform > Catalog > createDepartments \n ${res_error}`,
490
489
  });
491
490
  }
492
491
  }
@@ -498,11 +497,10 @@ class Catalog {
498
497
  * @param {CatalogPlatformValidator.CreateInventoryExportParam} arg - Arg object
499
498
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
500
499
  * @param {import("../PlatformAPIClient").Options} - Options
501
- * @returns {Promise<CatalogPlatformModel.InventoryExportResponseSchema>} -
502
- * Success response
500
+ * @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
503
501
  * @name createInventoryExport
504
- * @summary: Create inventory export
505
- * @description: creates export job for inventory data associated with a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExport/).
502
+ * @summary: Create inventory export.
503
+ * @description: Helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExport/).
506
504
  */
507
505
  async createInventoryExport(
508
506
  { body, requestHeaders } = { requestHeaders: {} },
@@ -541,7 +539,7 @@ class Catalog {
541
539
  const response = await PlatformAPIClient.execute(
542
540
  this.config,
543
541
  "post",
544
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`,
542
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download`,
545
543
  query_params,
546
544
  body,
547
545
  { ...xHeaders, ...requestHeaders },
@@ -555,10 +553,10 @@ class Catalog {
555
553
 
556
554
  const {
557
555
  error: res_error,
558
- } = CatalogPlatformModel.InventoryExportResponseSchema().validate(
559
- responseData,
560
- { abortEarly: false, allowUnknown: true }
561
- );
556
+ } = CatalogPlatformModel.InventoryExportResponse().validate(responseData, {
557
+ abortEarly: false,
558
+ allowUnknown: true,
559
+ });
562
560
 
563
561
  if (res_error) {
564
562
  if (this.config.options.strictResponseCheck === true) {
@@ -578,10 +576,9 @@ class Catalog {
578
576
  * @param {CatalogPlatformValidator.CreateInventoryExportJobParam} arg - Arg object
579
577
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
580
578
  * @param {import("../PlatformAPIClient").Options} - Options
581
- * @returns {Promise<CatalogPlatformModel.InventoryExportResponseSchema>} -
582
- * Success response
579
+ * @returns {Promise<CatalogPlatformModel.InventoryExportResponse>} - Success response
583
580
  * @name createInventoryExportJob
584
- * @summary: Create inventory export job
581
+ * @summary: Create inventory export job.
585
582
  * @description: Helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createInventoryExportJob/).
586
583
  */
587
584
  async createInventoryExportJob(
@@ -623,7 +620,7 @@ class Catalog {
623
620
  const response = await PlatformAPIClient.execute(
624
621
  this.config,
625
622
  "post",
626
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`,
623
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download`,
627
624
  query_params,
628
625
  body,
629
626
  { ...xHeaders, ...requestHeaders },
@@ -637,10 +634,10 @@ class Catalog {
637
634
 
638
635
  const {
639
636
  error: res_error,
640
- } = CatalogPlatformModel.InventoryExportResponseSchema().validate(
641
- responseData,
642
- { abortEarly: false, allowUnknown: true }
643
- );
637
+ } = CatalogPlatformModel.InventoryExportResponse().validate(responseData, {
638
+ abortEarly: false,
639
+ allowUnknown: true,
640
+ });
644
641
 
645
642
  if (res_error) {
646
643
  if (this.config.options.strictResponseCheck === true) {
@@ -660,22 +657,22 @@ class Catalog {
660
657
  * @param {CatalogPlatformValidator.CreateMarketplaceOptinParam} arg - Arg object
661
658
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
662
659
  * @param {import("../PlatformAPIClient").Options} - Options
663
- * @returns {Promise<CatalogPlatformModel.CreateMarketplaceOptinResponseSchema>}
660
+ * @returns {Promise<CatalogPlatformModel.CreateMarketplaceOptinResponse>}
664
661
  * - Success response
665
662
  *
666
663
  * @name createMarketplaceOptin
667
- * @summary: Create or Update opt-in infomation
668
- * @description: Allows to create opt-in information for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/).
664
+ * @summary: Update marketplace optin
665
+ * @description: This API allows to create marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createMarketplaceOptin/).
669
666
  */
670
667
  async createMarketplaceOptin(
671
- { marketplaceSlug, body, requestHeaders } = { requestHeaders: {} },
668
+ { marketplace, body, requestHeaders } = { requestHeaders: {} },
672
669
  { responseHeaders } = { responseHeaders: false }
673
670
  ) {
674
671
  const {
675
672
  error,
676
673
  } = CatalogPlatformValidator.createMarketplaceOptin().validate(
677
674
  {
678
- marketplaceSlug,
675
+ marketplace,
679
676
  body,
680
677
  },
681
678
  { abortEarly: false, allowUnknown: true }
@@ -689,7 +686,7 @@ class Catalog {
689
686
  error: warrning,
690
687
  } = CatalogPlatformValidator.createMarketplaceOptin().validate(
691
688
  {
692
- marketplaceSlug,
689
+ marketplace,
693
690
  body,
694
691
  },
695
692
  { abortEarly: false, allowUnknown: false }
@@ -708,7 +705,7 @@ class Catalog {
708
705
  const response = await PlatformAPIClient.execute(
709
706
  this.config,
710
707
  "post",
711
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplaceSlug}/opt-in`,
708
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplace}/opt-in`,
712
709
  query_params,
713
710
  body,
714
711
  { ...xHeaders, ...requestHeaders },
@@ -722,7 +719,7 @@ class Catalog {
722
719
 
723
720
  const {
724
721
  error: res_error,
725
- } = CatalogPlatformModel.CreateMarketplaceOptinResponseSchema().validate(
722
+ } = CatalogPlatformModel.CreateMarketplaceOptinResponse().validate(
726
723
  responseData,
727
724
  { abortEarly: false, allowUnknown: true }
728
725
  );
@@ -745,10 +742,10 @@ class Catalog {
745
742
  * @param {CatalogPlatformValidator.CreateProductParam} arg - Arg object
746
743
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
747
744
  * @param {import("../PlatformAPIClient").Options} - Options
748
- * @returns {Promise<CatalogPlatformModel.SuccessResponseObject>} - Success response
745
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse1>} - Success response
749
746
  * @name createProduct
750
- * @summary: Create product
751
- * @description: Users can create a product using this API, associating it with the provided company ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/).
747
+ * @summary: Create a product.
748
+ * @description: Allows to create product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProduct/).
752
749
  */
753
750
  async createProduct(
754
751
  { body, requestHeaders } = { requestHeaders: {} },
@@ -787,7 +784,7 @@ class Catalog {
787
784
  const response = await PlatformAPIClient.execute(
788
785
  this.config,
789
786
  "post",
790
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`,
787
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products`,
791
788
  query_params,
792
789
  body,
793
790
  { ...xHeaders, ...requestHeaders },
@@ -801,7 +798,7 @@ class Catalog {
801
798
 
802
799
  const {
803
800
  error: res_error,
804
- } = CatalogPlatformModel.SuccessResponseObject().validate(responseData, {
801
+ } = CatalogPlatformModel.SuccessResponse1().validate(responseData, {
805
802
  abortEarly: false,
806
803
  allowUnknown: true,
807
804
  });
@@ -824,9 +821,9 @@ class Catalog {
824
821
  * @param {CatalogPlatformValidator.CreateProductAssetsInBulkParam} arg - Arg object
825
822
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
826
823
  * @param {import("../PlatformAPIClient").Options} - Options
827
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
824
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
828
825
  * @name createProductAssetsInBulk
829
- * @summary: Create product assets in bulk
826
+ * @summary: Create product assets in bulk.
830
827
  * @description: Helps to create a bulk asset upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductAssetsInBulk/).
831
828
  */
832
829
  async createProductAssetsInBulk(
@@ -868,7 +865,7 @@ class Catalog {
868
865
  const response = await PlatformAPIClient.execute(
869
866
  this.config,
870
867
  "post",
871
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`,
868
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk`,
872
869
  query_params,
873
870
  body,
874
871
  { ...xHeaders, ...requestHeaders },
@@ -882,7 +879,7 @@ class Catalog {
882
879
 
883
880
  const {
884
881
  error: res_error,
885
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
882
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
886
883
  abortEarly: false,
887
884
  allowUnknown: true,
888
885
  });
@@ -905,12 +902,12 @@ class Catalog {
905
902
  * @param {CatalogPlatformValidator.CreateProductBundleParam} arg - Arg object
906
903
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
907
904
  * @param {import("../PlatformAPIClient").Options} - Options
908
- * @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponseSchema>}
905
+ * @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
909
906
  * - Success response
910
907
  *
911
908
  * @name createProductBundle
912
- * @summary: Create product bundle
913
- * @description: Create product bundle in the catalog associated to a specific company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductBundle/).
909
+ * @summary: Create a product bundle.
910
+ * @description: Create product bundle in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductBundle/).
914
911
  */
915
912
  async createProductBundle(
916
913
  { body, requestHeaders } = { requestHeaders: {} },
@@ -949,7 +946,7 @@ class Catalog {
949
946
  const response = await PlatformAPIClient.execute(
950
947
  this.config,
951
948
  "post",
952
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`,
949
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/product-bundle`,
953
950
  query_params,
954
951
  body,
955
952
  { ...xHeaders, ...requestHeaders },
@@ -963,7 +960,7 @@ class Catalog {
963
960
 
964
961
  const {
965
962
  error: res_error,
966
- } = CatalogPlatformModel.GetProductBundleCreateResponseSchema().validate(
963
+ } = CatalogPlatformModel.GetProductBundleCreateResponse().validate(
967
964
  responseData,
968
965
  { abortEarly: false, allowUnknown: true }
969
966
  );
@@ -986,12 +983,12 @@ class Catalog {
986
983
  * @param {CatalogPlatformValidator.CreateProductExportJobParam} arg - Arg object
987
984
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
988
985
  * @param {import("../PlatformAPIClient").Options} - Options
989
- * @returns {Promise<CatalogPlatformModel.ProductDownloadsResponseSchema>}
986
+ * @returns {Promise<CatalogPlatformModel.CreateProductDownloadsResponse>}
990
987
  * - Success response
991
988
  *
992
989
  * @name createProductExportJob
993
- * @summary: Create product export job
994
- * @description: Allows to create a product export job for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/).
990
+ * @summary: Create product export job.
991
+ * @description: Helps to create a Inventory export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductExportJob/).
995
992
  */
996
993
  async createProductExportJob(
997
994
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1032,7 +1029,7 @@ class Catalog {
1032
1029
  const response = await PlatformAPIClient.execute(
1033
1030
  this.config,
1034
1031
  "post",
1035
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`,
1032
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads`,
1036
1033
  query_params,
1037
1034
  body,
1038
1035
  { ...xHeaders, ...requestHeaders },
@@ -1046,7 +1043,7 @@ class Catalog {
1046
1043
 
1047
1044
  const {
1048
1045
  error: res_error,
1049
- } = CatalogPlatformModel.ProductDownloadsResponseSchema().validate(
1046
+ } = CatalogPlatformModel.CreateProductDownloadsResponse().validate(
1050
1047
  responseData,
1051
1048
  { abortEarly: false, allowUnknown: true }
1052
1049
  );
@@ -1069,9 +1066,9 @@ class Catalog {
1069
1066
  * @param {CatalogPlatformValidator.CreateProductsInBulkParam} arg - Arg object
1070
1067
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1071
1068
  * @param {import("../PlatformAPIClient").Options} - Options
1072
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1069
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1073
1070
  * @name createProductsInBulk
1074
- * @summary: Create products in bulk
1071
+ * @summary: Create products in bulk.
1075
1072
  * @description: Helps to create products in bulk push to kafka for approval/creation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createProductsInBulk/).
1076
1073
  */
1077
1074
  async createProductsInBulk(
@@ -1127,7 +1124,7 @@ class Catalog {
1127
1124
 
1128
1125
  const {
1129
1126
  error: res_error,
1130
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1127
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1131
1128
  abortEarly: false,
1132
1129
  allowUnknown: true,
1133
1130
  });
@@ -1150,10 +1147,10 @@ class Catalog {
1150
1147
  * @param {CatalogPlatformValidator.CreateSizeGuideParam} arg - Arg object
1151
1148
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1152
1149
  * @param {import("../PlatformAPIClient").Options} - Options
1153
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1150
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1154
1151
  * @name createSizeGuide
1155
- * @summary: Create size guide
1156
- * @description: Allows to create a size guide associated to a seller - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSizeGuide/).
1152
+ * @summary: Create a size guide.
1153
+ * @description: Allows to create a size guide associated to a brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/createSizeGuide/).
1157
1154
  */
1158
1155
  async createSizeGuide(
1159
1156
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1206,7 +1203,7 @@ class Catalog {
1206
1203
 
1207
1204
  const {
1208
1205
  error: res_error,
1209
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1206
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1210
1207
  abortEarly: false,
1211
1208
  allowUnknown: true,
1212
1209
  });
@@ -1229,9 +1226,9 @@ class Catalog {
1229
1226
  * @param {CatalogPlatformValidator.DeleteBulkInventoryJobParam} arg - Arg object
1230
1227
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1231
1228
  * @param {import("../PlatformAPIClient").Options} - Options
1232
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1229
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1233
1230
  * @name deleteBulkInventoryJob
1234
- * @summary: Delete inventory bulk upload job
1231
+ * @summary: Delete inventory bulk upload job.
1235
1232
  * @description: Allows to delete bulk Inventory job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteBulkInventoryJob/).
1236
1233
  */
1237
1234
  async deleteBulkInventoryJob(
@@ -1273,7 +1270,7 @@ class Catalog {
1273
1270
  const response = await PlatformAPIClient.execute(
1274
1271
  this.config,
1275
1272
  "delete",
1276
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}/`,
1273
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/${batchId}`,
1277
1274
  query_params,
1278
1275
  undefined,
1279
1276
  { ...xHeaders, ...requestHeaders },
@@ -1287,7 +1284,7 @@ class Catalog {
1287
1284
 
1288
1285
  const {
1289
1286
  error: res_error,
1290
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1287
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1291
1288
  abortEarly: false,
1292
1289
  allowUnknown: true,
1293
1290
  });
@@ -1310,19 +1307,18 @@ class Catalog {
1310
1307
  * @param {CatalogPlatformValidator.DeleteProductParam} arg - Arg object
1311
1308
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1312
1309
  * @param {import("../PlatformAPIClient").Options} - Options
1313
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1310
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1314
1311
  * @name deleteProduct
1315
- * @summary: Delete product
1316
- * @description: Users can delete a product by providing the item_id and company_id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProduct/).
1312
+ * @summary: Delete a product.
1313
+ * @description: Remove a specific product in the catalog - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProduct/).
1317
1314
  */
1318
1315
  async deleteProduct(
1319
- { itemId, body, requestHeaders } = { requestHeaders: {} },
1316
+ { itemId, requestHeaders } = { requestHeaders: {} },
1320
1317
  { responseHeaders } = { responseHeaders: false }
1321
1318
  ) {
1322
1319
  const { error } = CatalogPlatformValidator.deleteProduct().validate(
1323
1320
  {
1324
1321
  itemId,
1325
- body,
1326
1322
  },
1327
1323
  { abortEarly: false, allowUnknown: true }
1328
1324
  );
@@ -1336,7 +1332,6 @@ class Catalog {
1336
1332
  } = CatalogPlatformValidator.deleteProduct().validate(
1337
1333
  {
1338
1334
  itemId,
1339
- body,
1340
1335
  },
1341
1336
  { abortEarly: false, allowUnknown: false }
1342
1337
  );
@@ -1354,9 +1349,9 @@ class Catalog {
1354
1349
  const response = await PlatformAPIClient.execute(
1355
1350
  this.config,
1356
1351
  "delete",
1357
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
1352
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`,
1358
1353
  query_params,
1359
- body,
1354
+ undefined,
1360
1355
  { ...xHeaders, ...requestHeaders },
1361
1356
  { responseHeaders }
1362
1357
  );
@@ -1368,7 +1363,7 @@ class Catalog {
1368
1363
 
1369
1364
  const {
1370
1365
  error: res_error,
1371
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1366
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1372
1367
  abortEarly: false,
1373
1368
  allowUnknown: true,
1374
1369
  });
@@ -1391,9 +1386,9 @@ class Catalog {
1391
1386
  * @param {CatalogPlatformValidator.DeleteProductBulkJobParam} arg - Arg object
1392
1387
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1393
1388
  * @param {import("../PlatformAPIClient").Options} - Options
1394
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1389
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1395
1390
  * @name deleteProductBulkJob
1396
- * @summary: Delete product bulk-upload job
1391
+ * @summary: Delete product bulk upload job.
1397
1392
  * @description: Allows to delete bulk product job associated with company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteProductBulkJob/).
1398
1393
  */
1399
1394
  async deleteProductBulkJob(
@@ -1447,7 +1442,7 @@ class Catalog {
1447
1442
 
1448
1443
  const {
1449
1444
  error: res_error,
1450
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1445
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1451
1446
  abortEarly: false,
1452
1447
  allowUnknown: true,
1453
1448
  });
@@ -1470,11 +1465,10 @@ class Catalog {
1470
1465
  * @param {CatalogPlatformValidator.DeleteRealtimeInventoryParam} arg - Arg object
1471
1466
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1472
1467
  * @param {import("../PlatformAPIClient").Options} - Options
1473
- * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponseSchema>} -
1474
- * Success response
1468
+ * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
1475
1469
  * @name deleteRealtimeInventory
1476
- * @summary: Delete an inventory
1477
- * @description: You can use this API to delete inventory linked to a particular product size. When you make the API call, the inventory associated with that size will be removed as part of api process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteRealtimeInventory/).
1470
+ * @summary: Delete realtime inventory.
1471
+ * @description: Remove specific realtime inventory data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteRealtimeInventory/).
1478
1472
  */
1479
1473
  async deleteRealtimeInventory(
1480
1474
  { itemId, sellerIdentifier, body, requestHeaders } = { requestHeaders: {} },
@@ -1533,10 +1527,10 @@ class Catalog {
1533
1527
 
1534
1528
  const {
1535
1529
  error: res_error,
1536
- } = CatalogPlatformModel.InventoryUpdateResponseSchema().validate(
1537
- responseData,
1538
- { abortEarly: false, allowUnknown: true }
1539
- );
1530
+ } = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
1531
+ abortEarly: false,
1532
+ allowUnknown: true,
1533
+ });
1540
1534
 
1541
1535
  if (res_error) {
1542
1536
  if (this.config.options.strictResponseCheck === true) {
@@ -1556,11 +1550,10 @@ class Catalog {
1556
1550
  * @param {CatalogPlatformValidator.DeleteSizeParam} arg - Arg object
1557
1551
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1558
1552
  * @param {import("../PlatformAPIClient").Options} - Options
1559
- * @returns {Promise<CatalogPlatformModel.ProductSizeDeleteResponseSchema>}
1560
- * - Success response
1561
- *
1553
+ * @returns {Promise<CatalogPlatformModel.ProductSizeDeleteResponse>} -
1554
+ * Success response
1562
1555
  * @name deleteSize
1563
- * @summary: Delete product size
1556
+ * @summary: Delete product size.
1564
1557
  * @description: Allows to delete size associated with product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/deleteSize/).
1565
1558
  */
1566
1559
  async deleteSize(
@@ -1614,7 +1607,7 @@ class Catalog {
1614
1607
 
1615
1608
  const {
1616
1609
  error: res_error,
1617
- } = CatalogPlatformModel.ProductSizeDeleteResponseSchema().validate(
1610
+ } = CatalogPlatformModel.ProductSizeDeleteResponse().validate(
1618
1611
  responseData,
1619
1612
  { abortEarly: false, allowUnknown: true }
1620
1613
  );
@@ -1641,18 +1634,18 @@ class Catalog {
1641
1634
  * @param {import("../PlatformAPIClient").Options} - Options
1642
1635
  * @returns {Promise<string>} - Success response
1643
1636
  * @name downloadInventoryTemplateView
1644
- * @summary: Download inventory template data
1645
- * @description: Allows you to download inventory product template data for a specific company in formats like csv and excel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadInventoryTemplateView/).
1637
+ * @summary: Download inventory template view.
1638
+ * @description: Allows you to download product template data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadInventoryTemplateView/).
1646
1639
  */
1647
1640
  async downloadInventoryTemplateView(
1648
- { itemType, requestHeaders } = { requestHeaders: {} },
1641
+ { type, requestHeaders } = { requestHeaders: {} },
1649
1642
  { responseHeaders } = { responseHeaders: false }
1650
1643
  ) {
1651
1644
  const {
1652
1645
  error,
1653
1646
  } = CatalogPlatformValidator.downloadInventoryTemplateView().validate(
1654
1647
  {
1655
- itemType,
1648
+ type,
1656
1649
  },
1657
1650
  { abortEarly: false, allowUnknown: true }
1658
1651
  );
@@ -1665,7 +1658,7 @@ class Catalog {
1665
1658
  error: warrning,
1666
1659
  } = CatalogPlatformValidator.downloadInventoryTemplateView().validate(
1667
1660
  {
1668
- itemType,
1661
+ type,
1669
1662
  },
1670
1663
  { abortEarly: false, allowUnknown: false }
1671
1664
  );
@@ -1677,14 +1670,14 @@ class Catalog {
1677
1670
  }
1678
1671
 
1679
1672
  const query_params = {};
1680
- query_params["item_type"] = itemType;
1673
+ query_params["type"] = type;
1681
1674
 
1682
1675
  const xHeaders = {};
1683
1676
 
1684
1677
  const response = await PlatformAPIClient.execute(
1685
1678
  this.config,
1686
1679
  "get",
1687
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/download/`,
1680
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/download`,
1688
1681
  query_params,
1689
1682
  undefined,
1690
1683
  { ...xHeaders, ...requestHeaders },
@@ -1722,8 +1715,8 @@ class Catalog {
1722
1715
  * @param {import("../PlatformAPIClient").Options} - Options
1723
1716
  * @returns {Promise<string>} - Success response
1724
1717
  * @name downloadProductTemplateViews
1725
- * @summary: Download product template view
1726
- * @description: Allows you to download product template data by its slug for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadProductTemplateViews/).
1718
+ * @summary: Download product template views.
1719
+ * @description: Allows you to download product template data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/downloadProductTemplateViews/).
1727
1720
  */
1728
1721
  async downloadProductTemplateViews(
1729
1722
  { slug, itemType, type, requestHeaders } = { requestHeaders: {} },
@@ -1770,7 +1763,7 @@ class Catalog {
1770
1763
  const response = await PlatformAPIClient.execute(
1771
1764
  this.config,
1772
1765
  "get",
1773
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/download/`,
1766
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/download`,
1774
1767
  query_params,
1775
1768
  undefined,
1776
1769
  { ...xHeaders, ...requestHeaders },
@@ -1804,9 +1797,9 @@ class Catalog {
1804
1797
  * @param {CatalogPlatformValidator.EditProductParam} arg - Arg object
1805
1798
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1806
1799
  * @param {import("../PlatformAPIClient").Options} - Options
1807
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
1800
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
1808
1801
  * @name editProduct
1809
- * @summary: Update a product
1802
+ * @summary: Edit a product.
1810
1803
  * @description: Modify the details and settings of an existing product in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/editProduct/).
1811
1804
  */
1812
1805
  async editProduct(
@@ -1846,7 +1839,7 @@ class Catalog {
1846
1839
  const response = await PlatformAPIClient.execute(
1847
1840
  this.config,
1848
1841
  "put",
1849
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
1842
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`,
1850
1843
  query_params,
1851
1844
  body,
1852
1845
  { ...xHeaders, ...requestHeaders },
@@ -1860,7 +1853,7 @@ class Catalog {
1860
1853
 
1861
1854
  const {
1862
1855
  error: res_error,
1863
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
1856
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
1864
1857
  abortEarly: false,
1865
1858
  allowUnknown: true,
1866
1859
  });
@@ -1885,16 +1878,16 @@ class Catalog {
1885
1878
  * @param {import("../PlatformAPIClient").Options} - Options
1886
1879
  * @returns {Promise<CatalogPlatformModel.InventoryConfig>} - Success response
1887
1880
  * @name exportInventoryConfig
1888
- * @summary: Get export inventory configuration
1881
+ * @summary: Export inventory configuration.
1889
1882
  * @description: Retrieve List of different filters like brand, store, and type for inventory export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/exportInventoryConfig/).
1890
1883
  */
1891
1884
  async exportInventoryConfig(
1892
- { filterType, requestHeaders } = { requestHeaders: {} },
1885
+ { filter, requestHeaders } = { requestHeaders: {} },
1893
1886
  { responseHeaders } = { responseHeaders: false }
1894
1887
  ) {
1895
1888
  const { error } = CatalogPlatformValidator.exportInventoryConfig().validate(
1896
1889
  {
1897
- filterType,
1890
+ filter,
1898
1891
  },
1899
1892
  { abortEarly: false, allowUnknown: true }
1900
1893
  );
@@ -1907,7 +1900,7 @@ class Catalog {
1907
1900
  error: warrning,
1908
1901
  } = CatalogPlatformValidator.exportInventoryConfig().validate(
1909
1902
  {
1910
- filterType,
1903
+ filter,
1911
1904
  },
1912
1905
  { abortEarly: false, allowUnknown: false }
1913
1906
  );
@@ -1919,14 +1912,14 @@ class Catalog {
1919
1912
  }
1920
1913
 
1921
1914
  const query_params = {};
1922
- query_params["filter_type"] = filterType;
1915
+ query_params["filter"] = filter;
1923
1916
 
1924
1917
  const xHeaders = {};
1925
1918
 
1926
1919
  const response = await PlatformAPIClient.execute(
1927
1920
  this.config,
1928
1921
  "get",
1929
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/configuration/`,
1922
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/configuration`,
1930
1923
  query_params,
1931
1924
  undefined,
1932
1925
  { ...xHeaders, ...requestHeaders },
@@ -1967,8 +1960,8 @@ class Catalog {
1967
1960
  * - Success response
1968
1961
  *
1969
1962
  * @name getAllProductHsnCodes
1970
- * @summary: List product HSN codes
1971
- * @description: Retrieve all HSN codes associated with company products and provide search capabilities based on HSN code, reporting HSN, etc - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllProductHsnCodes/).
1963
+ * @summary: Get all product HSN codes.
1964
+ * @description: Retrieve all HSN codes associated with products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAllProductHsnCodes/).
1972
1965
  */
1973
1966
  async getAllProductHsnCodes(
1974
1967
  { pageNo, pageSize, q, type, requestHeaders } = { requestHeaders: {} },
@@ -2017,7 +2010,7 @@ class Catalog {
2017
2010
  const response = await PlatformAPIClient.execute(
2018
2011
  this.config,
2019
2012
  "get",
2020
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn/`,
2013
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/hsn`,
2021
2014
  query_params,
2022
2015
  undefined,
2023
2016
  { ...xHeaders, ...requestHeaders },
@@ -2051,21 +2044,21 @@ class Catalog {
2051
2044
  }
2052
2045
 
2053
2046
  /**
2054
- * @param {CatalogPlatformValidator.GetAttributeParam} arg - Arg object
2047
+ * @param {CatalogPlatformValidator.GetCategoryDataParam} arg - Arg object
2055
2048
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2056
2049
  * @param {import("../PlatformAPIClient").Options} - Options
2057
- * @returns {Promise<CatalogPlatformModel.AttributeDetail>} - Success response
2058
- * @name getAttribute
2059
- * @summary: Get attribute detail by slug
2060
- * @description: Retrieve the attribute detail for catalog listings by attribute slug passed for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAttribute/).
2050
+ * @returns {Promise<CatalogPlatformModel.SingleCategoryResponse>} - Success response
2051
+ * @name getCategoryData
2052
+ * @summary: Get category data.
2053
+ * @description: Retrieve detailed information about a specific category with the associated meta. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategoryData/).
2061
2054
  */
2062
- async getAttribute(
2063
- { attributeSlug, requestHeaders } = { requestHeaders: {} },
2055
+ async getCategoryData(
2056
+ { uid, requestHeaders } = { requestHeaders: {} },
2064
2057
  { responseHeaders } = { responseHeaders: false }
2065
2058
  ) {
2066
- const { error } = CatalogPlatformValidator.getAttribute().validate(
2059
+ const { error } = CatalogPlatformValidator.getCategoryData().validate(
2067
2060
  {
2068
- attributeSlug,
2061
+ uid,
2069
2062
  },
2070
2063
  { abortEarly: false, allowUnknown: true }
2071
2064
  );
@@ -2076,16 +2069,16 @@ class Catalog {
2076
2069
  // Showing warrnings if extra unknown parameters are found
2077
2070
  const {
2078
2071
  error: warrning,
2079
- } = CatalogPlatformValidator.getAttribute().validate(
2072
+ } = CatalogPlatformValidator.getCategoryData().validate(
2080
2073
  {
2081
- attributeSlug,
2074
+ uid,
2082
2075
  },
2083
2076
  { abortEarly: false, allowUnknown: false }
2084
2077
  );
2085
2078
  if (warrning) {
2086
2079
  Logger({
2087
2080
  level: "WARN",
2088
- message: `Parameter Validation warrnings for platform > Catalog > getAttribute \n ${warrning}`,
2081
+ message: `Parameter Validation warrnings for platform > Catalog > getCategoryData \n ${warrning}`,
2089
2082
  });
2090
2083
  }
2091
2084
 
@@ -2096,7 +2089,7 @@ class Catalog {
2096
2089
  const response = await PlatformAPIClient.execute(
2097
2090
  this.config,
2098
2091
  "get",
2099
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/${attributeSlug}`,
2092
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}`,
2100
2093
  query_params,
2101
2094
  undefined,
2102
2095
  { ...xHeaders, ...requestHeaders },
@@ -2110,7 +2103,7 @@ class Catalog {
2110
2103
 
2111
2104
  const {
2112
2105
  error: res_error,
2113
- } = CatalogPlatformModel.AttributeDetail().validate(responseData, {
2106
+ } = CatalogPlatformModel.SingleCategoryResponse().validate(responseData, {
2114
2107
  abortEarly: false,
2115
2108
  allowUnknown: true,
2116
2109
  });
@@ -2121,7 +2114,7 @@ class Catalog {
2121
2114
  } else {
2122
2115
  Logger({
2123
2116
  level: "WARN",
2124
- message: `Response Validation Warnings for platform > Catalog > getAttribute \n ${res_error}`,
2117
+ message: `Response Validation Warnings for platform > Catalog > getCategoryData \n ${res_error}`,
2125
2118
  });
2126
2119
  }
2127
2120
  }
@@ -2130,22 +2123,28 @@ class Catalog {
2130
2123
  }
2131
2124
 
2132
2125
  /**
2133
- * @param {CatalogPlatformValidator.GetCategoryDataParam} arg - Arg object
2126
+ * @param {CatalogPlatformValidator.GetCompanyBrandDetailParam} arg - Arg object
2134
2127
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2135
2128
  * @param {import("../PlatformAPIClient").Options} - Options
2136
- * @returns {Promise<CatalogPlatformModel.SingleCategoryResponseSchema>} -
2129
+ * @returns {Promise<CatalogPlatformModel.OptinCompanyBrandDetailsView>} -
2137
2130
  * Success response
2138
- * @name getCategoryData
2139
- * @summary: Get category by uid
2140
- * @description: Retrieve detailed information about a specific category by its uid for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCategoryData/).
2131
+ * @name getCompanyBrandDetail
2132
+ * @summary: Get the Company Brand details of Optin.
2133
+ * @description: Get the details of the Brands associated with the given company_id passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyBrandDetail/).
2141
2134
  */
2142
- async getCategoryData(
2143
- { uid, requestHeaders } = { requestHeaders: {} },
2135
+ async getCompanyBrandDetail(
2136
+ { isActive, q, pageNo, pageSize, marketplace, requestHeaders } = {
2137
+ requestHeaders: {},
2138
+ },
2144
2139
  { responseHeaders } = { responseHeaders: false }
2145
2140
  ) {
2146
- const { error } = CatalogPlatformValidator.getCategoryData().validate(
2141
+ const { error } = CatalogPlatformValidator.getCompanyBrandDetail().validate(
2147
2142
  {
2148
- uid,
2143
+ isActive,
2144
+ q,
2145
+ pageNo,
2146
+ pageSize,
2147
+ marketplace,
2149
2148
  },
2150
2149
  { abortEarly: false, allowUnknown: true }
2151
2150
  );
@@ -2156,27 +2155,36 @@ class Catalog {
2156
2155
  // Showing warrnings if extra unknown parameters are found
2157
2156
  const {
2158
2157
  error: warrning,
2159
- } = CatalogPlatformValidator.getCategoryData().validate(
2158
+ } = CatalogPlatformValidator.getCompanyBrandDetail().validate(
2160
2159
  {
2161
- uid,
2160
+ isActive,
2161
+ q,
2162
+ pageNo,
2163
+ pageSize,
2164
+ marketplace,
2162
2165
  },
2163
2166
  { abortEarly: false, allowUnknown: false }
2164
2167
  );
2165
2168
  if (warrning) {
2166
2169
  Logger({
2167
2170
  level: "WARN",
2168
- message: `Parameter Validation warrnings for platform > Catalog > getCategoryData \n ${warrning}`,
2171
+ message: `Parameter Validation warrnings for platform > Catalog > getCompanyBrandDetail \n ${warrning}`,
2169
2172
  });
2170
2173
  }
2171
2174
 
2172
2175
  const query_params = {};
2176
+ query_params["is_active"] = isActive;
2177
+ query_params["q"] = q;
2178
+ query_params["page_no"] = pageNo;
2179
+ query_params["page_size"] = pageSize;
2180
+ query_params["marketplace"] = marketplace;
2173
2181
 
2174
2182
  const xHeaders = {};
2175
2183
 
2176
2184
  const response = await PlatformAPIClient.execute(
2177
2185
  this.config,
2178
2186
  "get",
2179
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}/`,
2187
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-brand-details`,
2180
2188
  query_params,
2181
2189
  undefined,
2182
2190
  { ...xHeaders, ...requestHeaders },
@@ -2190,7 +2198,7 @@ class Catalog {
2190
2198
 
2191
2199
  const {
2192
2200
  error: res_error,
2193
- } = CatalogPlatformModel.SingleCategoryResponseSchema().validate(
2201
+ } = CatalogPlatformModel.OptinCompanyBrandDetailsView().validate(
2194
2202
  responseData,
2195
2203
  { abortEarly: false, allowUnknown: true }
2196
2204
  );
@@ -2201,7 +2209,7 @@ class Catalog {
2201
2209
  } else {
2202
2210
  Logger({
2203
2211
  level: "WARN",
2204
- message: `Response Validation Warnings for platform > Catalog > getCategoryData \n ${res_error}`,
2212
+ message: `Response Validation Warnings for platform > Catalog > getCompanyBrandDetail \n ${res_error}`,
2205
2213
  });
2206
2214
  }
2207
2215
  }
@@ -2210,28 +2218,23 @@ class Catalog {
2210
2218
  }
2211
2219
 
2212
2220
  /**
2213
- * @param {CatalogPlatformValidator.GetCompanyBrandDetailParam} arg - Arg object
2221
+ * @param {CatalogPlatformValidator.GetCompanyBrandsDRIParam} arg - Arg object
2214
2222
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2215
2223
  * @param {import("../PlatformAPIClient").Options} - Options
2216
- * @returns {Promise<CatalogPlatformModel.OptinCompanyBrandDetailsView>} -
2224
+ * @returns {Promise<CatalogPlatformModel.CompanyDRIListResponseSchema>} -
2217
2225
  * Success response
2218
- * @name getCompanyBrandDetail
2219
- * @summary: list Company Brand of Optin
2220
- * @description: Get the details of the Brands associated with the given company_id passed which has opt-in. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyBrandDetail/).
2226
+ * @name getCompanyBrandsDRI
2227
+ * @summary: Get support representative's associated to a company
2228
+ * @description: This API helps to view support representative's associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyBrandsDRI/).
2221
2229
  */
2222
- async getCompanyBrandDetail(
2223
- { isActive, q, pageNo, pageSize, marketplace, requestHeaders } = {
2224
- requestHeaders: {},
2225
- },
2230
+ async getCompanyBrandsDRI(
2231
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2226
2232
  { responseHeaders } = { responseHeaders: false }
2227
2233
  ) {
2228
- const { error } = CatalogPlatformValidator.getCompanyBrandDetail().validate(
2234
+ const { error } = CatalogPlatformValidator.getCompanyBrandsDRI().validate(
2229
2235
  {
2230
- isActive,
2231
- q,
2232
2236
  pageNo,
2233
2237
  pageSize,
2234
- marketplace,
2235
2238
  },
2236
2239
  { abortEarly: false, allowUnknown: true }
2237
2240
  );
@@ -2242,36 +2245,30 @@ class Catalog {
2242
2245
  // Showing warrnings if extra unknown parameters are found
2243
2246
  const {
2244
2247
  error: warrning,
2245
- } = CatalogPlatformValidator.getCompanyBrandDetail().validate(
2248
+ } = CatalogPlatformValidator.getCompanyBrandsDRI().validate(
2246
2249
  {
2247
- isActive,
2248
- q,
2249
2250
  pageNo,
2250
2251
  pageSize,
2251
- marketplace,
2252
2252
  },
2253
2253
  { abortEarly: false, allowUnknown: false }
2254
2254
  );
2255
2255
  if (warrning) {
2256
2256
  Logger({
2257
2257
  level: "WARN",
2258
- message: `Parameter Validation warrnings for platform > Catalog > getCompanyBrandDetail \n ${warrning}`,
2258
+ message: `Parameter Validation warrnings for platform > Catalog > getCompanyBrandsDRI \n ${warrning}`,
2259
2259
  });
2260
2260
  }
2261
2261
 
2262
2262
  const query_params = {};
2263
- query_params["is_active"] = isActive;
2264
- query_params["q"] = q;
2265
2263
  query_params["page_no"] = pageNo;
2266
2264
  query_params["page_size"] = pageSize;
2267
- query_params["marketplace"] = marketplace;
2268
2265
 
2269
2266
  const xHeaders = {};
2270
2267
 
2271
2268
  const response = await PlatformAPIClient.execute(
2272
2269
  this.config,
2273
2270
  "get",
2274
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-brand-details/`,
2271
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/poc`,
2275
2272
  query_params,
2276
2273
  undefined,
2277
2274
  { ...xHeaders, ...requestHeaders },
@@ -2285,7 +2282,7 @@ class Catalog {
2285
2282
 
2286
2283
  const {
2287
2284
  error: res_error,
2288
- } = CatalogPlatformModel.OptinCompanyBrandDetailsView().validate(
2285
+ } = CatalogPlatformModel.CompanyDRIListResponseSchema().validate(
2289
2286
  responseData,
2290
2287
  { abortEarly: false, allowUnknown: true }
2291
2288
  );
@@ -2296,7 +2293,7 @@ class Catalog {
2296
2293
  } else {
2297
2294
  Logger({
2298
2295
  level: "WARN",
2299
- message: `Response Validation Warnings for platform > Catalog > getCompanyBrandDetail \n ${res_error}`,
2296
+ message: `Response Validation Warnings for platform > Catalog > getCompanyBrandsDRI \n ${res_error}`,
2300
2297
  });
2301
2298
  }
2302
2299
  }
@@ -2310,8 +2307,8 @@ class Catalog {
2310
2307
  * @param {import("../PlatformAPIClient").Options} - Options
2311
2308
  * @returns {Promise<CatalogPlatformModel.OptinCompanyDetail>} - Success response
2312
2309
  * @name getCompanyDetail
2313
- * @summary: Get Company
2314
- * @description: Get the details of the company associated with the given company_id passed which has opt-in. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyDetail/).
2310
+ * @summary: Get the Company details.
2311
+ * @description: Get the details of the company associated with the given company_id passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyDetail/).
2315
2312
  */
2316
2313
  async getCompanyDetail(
2317
2314
  { requestHeaders } = { requestHeaders: {} },
@@ -2346,7 +2343,7 @@ class Catalog {
2346
2343
  const response = await PlatformAPIClient.execute(
2347
2344
  this.config,
2348
2345
  "get",
2349
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-details/`,
2346
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/marketplaces/company-details`,
2350
2347
  query_params,
2351
2348
  undefined,
2352
2349
  { ...xHeaders, ...requestHeaders },
@@ -2385,8 +2382,8 @@ class Catalog {
2385
2382
  * @param {import("../PlatformAPIClient").Options} - Options
2386
2383
  * @returns {Promise<CatalogPlatformModel.OptinCompanyMetrics>} - Success response
2387
2384
  * @name getCompanyMetrics
2388
- * @summary: Get company metrics
2389
- * @description: Allows viewing company metrics, including brand and store status, as well as the number of verified and unverified products, company documents, and store documents. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyMetrics/).
2385
+ * @summary: Get company metrics.
2386
+ * @description: Allows to view the company metrics, i.e. the status of its brand and stores. Also its allows to view the number of products, company documents & store documents which are verified and unverified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyMetrics/).
2390
2387
  */
2391
2388
  async getCompanyMetrics(
2392
2389
  { requestHeaders } = { requestHeaders: {} },
@@ -2421,7 +2418,7 @@ class Catalog {
2421
2418
  const response = await PlatformAPIClient.execute(
2422
2419
  this.config,
2423
2420
  "get",
2424
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-metrics/`,
2421
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/company-metrics`,
2425
2422
  query_params,
2426
2423
  undefined,
2427
2424
  { ...xHeaders, ...requestHeaders },
@@ -2455,22 +2452,26 @@ class Catalog {
2455
2452
  }
2456
2453
 
2457
2454
  /**
2458
- * @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object
2455
+ * @param {CatalogPlatformValidator.GetCompanyVerificationParam} arg - Arg object
2459
2456
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2460
2457
  * @param {import("../PlatformAPIClient").Options} - Options
2461
- * @returns {Promise<CatalogPlatformModel.DepartmentsResponseSchema>} -
2458
+ * @returns {Promise<CatalogPlatformModel.CompanyVerificationResponse>} -
2462
2459
  * Success response
2463
- * @name getDepartmentData
2464
- * @summary: Get department by uid
2465
- * @description: Retrieve detailed information about a specific department for a specific company by uid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartmentData/).
2460
+ * @name getCompanyVerification
2461
+ * @summary: Get company verification status
2462
+ * @description: This API gets company verification details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getCompanyVerification/).
2466
2463
  */
2467
- async getDepartmentData(
2468
- { uid, requestHeaders } = { requestHeaders: {} },
2464
+ async getCompanyVerification(
2465
+ { q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2469
2466
  { responseHeaders } = { responseHeaders: false }
2470
2467
  ) {
2471
- const { error } = CatalogPlatformValidator.getDepartmentData().validate(
2468
+ const {
2469
+ error,
2470
+ } = CatalogPlatformValidator.getCompanyVerification().validate(
2472
2471
  {
2473
- uid,
2472
+ q,
2473
+ pageNo,
2474
+ pageSize,
2474
2475
  },
2475
2476
  { abortEarly: false, allowUnknown: true }
2476
2477
  );
@@ -2481,27 +2482,32 @@ class Catalog {
2481
2482
  // Showing warrnings if extra unknown parameters are found
2482
2483
  const {
2483
2484
  error: warrning,
2484
- } = CatalogPlatformValidator.getDepartmentData().validate(
2485
+ } = CatalogPlatformValidator.getCompanyVerification().validate(
2485
2486
  {
2486
- uid,
2487
+ q,
2488
+ pageNo,
2489
+ pageSize,
2487
2490
  },
2488
2491
  { abortEarly: false, allowUnknown: false }
2489
2492
  );
2490
2493
  if (warrning) {
2491
2494
  Logger({
2492
2495
  level: "WARN",
2493
- message: `Parameter Validation warrnings for platform > Catalog > getDepartmentData \n ${warrning}`,
2496
+ message: `Parameter Validation warrnings for platform > Catalog > getCompanyVerification \n ${warrning}`,
2494
2497
  });
2495
2498
  }
2496
2499
 
2497
2500
  const query_params = {};
2501
+ query_params["q"] = q;
2502
+ query_params["page_no"] = pageNo;
2503
+ query_params["page_size"] = pageSize;
2498
2504
 
2499
2505
  const xHeaders = {};
2500
2506
 
2501
2507
  const response = await PlatformAPIClient.execute(
2502
2508
  this.config,
2503
2509
  "get",
2504
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}/`,
2510
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/verification`,
2505
2511
  query_params,
2506
2512
  undefined,
2507
2513
  { ...xHeaders, ...requestHeaders },
@@ -2515,7 +2521,7 @@ class Catalog {
2515
2521
 
2516
2522
  const {
2517
2523
  error: res_error,
2518
- } = CatalogPlatformModel.DepartmentsResponseSchema().validate(
2524
+ } = CatalogPlatformModel.CompanyVerificationResponse().validate(
2519
2525
  responseData,
2520
2526
  { abortEarly: false, allowUnknown: true }
2521
2527
  );
@@ -2526,7 +2532,7 @@ class Catalog {
2526
2532
  } else {
2527
2533
  Logger({
2528
2534
  level: "WARN",
2529
- message: `Response Validation Warnings for platform > Catalog > getDepartmentData \n ${res_error}`,
2535
+ message: `Response Validation Warnings for platform > Catalog > getCompanyVerification \n ${res_error}`,
2530
2536
  });
2531
2537
  }
2532
2538
  }
@@ -2535,13 +2541,171 @@ class Catalog {
2535
2541
  }
2536
2542
 
2537
2543
  /**
2538
- * @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
2544
+ * @param {CatalogPlatformValidator.GetDepartmentDataParam} arg - Arg object
2539
2545
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2540
2546
  * @param {import("../PlatformAPIClient").Options} - Options
2541
- * @returns {Promise<CatalogPlatformModel.HsnCode>} - Success response
2542
- * @name getHsnCode
2543
- * @summary: List HSN code
2544
- * @description: Retrieve the HSN code for a product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getHsnCode/).
2547
+ * @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
2548
+ * @name getDepartmentData
2549
+ * @summary: Get department data.
2550
+ * @description: Retrieve detailed information about a specific department by UID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getDepartmentData/).
2551
+ */
2552
+ async getDepartmentData(
2553
+ { uid, requestHeaders } = { requestHeaders: {} },
2554
+ { responseHeaders } = { responseHeaders: false }
2555
+ ) {
2556
+ const { error } = CatalogPlatformValidator.getDepartmentData().validate(
2557
+ {
2558
+ uid,
2559
+ },
2560
+ { abortEarly: false, allowUnknown: true }
2561
+ );
2562
+ if (error) {
2563
+ return Promise.reject(new FDKClientValidationError(error));
2564
+ }
2565
+
2566
+ // Showing warrnings if extra unknown parameters are found
2567
+ const {
2568
+ error: warrning,
2569
+ } = CatalogPlatformValidator.getDepartmentData().validate(
2570
+ {
2571
+ uid,
2572
+ },
2573
+ { abortEarly: false, allowUnknown: false }
2574
+ );
2575
+ if (warrning) {
2576
+ Logger({
2577
+ level: "WARN",
2578
+ message: `Parameter Validation warrnings for platform > Catalog > getDepartmentData \n ${warrning}`,
2579
+ });
2580
+ }
2581
+
2582
+ const query_params = {};
2583
+
2584
+ const xHeaders = {};
2585
+
2586
+ const response = await PlatformAPIClient.execute(
2587
+ this.config,
2588
+ "get",
2589
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}`,
2590
+ query_params,
2591
+ undefined,
2592
+ { ...xHeaders, ...requestHeaders },
2593
+ { responseHeaders }
2594
+ );
2595
+
2596
+ let responseData = response;
2597
+ if (responseHeaders) {
2598
+ responseData = response[0];
2599
+ }
2600
+
2601
+ const {
2602
+ error: res_error,
2603
+ } = CatalogPlatformModel.DepartmentsResponse().validate(responseData, {
2604
+ abortEarly: false,
2605
+ allowUnknown: true,
2606
+ });
2607
+
2608
+ if (res_error) {
2609
+ if (this.config.options.strictResponseCheck === true) {
2610
+ return Promise.reject(new FDKResponseValidationError(res_error));
2611
+ } else {
2612
+ Logger({
2613
+ level: "WARN",
2614
+ message: `Response Validation Warnings for platform > Catalog > getDepartmentData \n ${res_error}`,
2615
+ });
2616
+ }
2617
+ }
2618
+
2619
+ return response;
2620
+ }
2621
+
2622
+ /**
2623
+ * @param {CatalogPlatformValidator.GetGenderAttributeParam} arg - Arg object
2624
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2625
+ * @param {import("../PlatformAPIClient").Options} - Options
2626
+ * @returns {Promise<CatalogPlatformModel.GenderDetail>} - Success response
2627
+ * @name getGenderAttribute
2628
+ * @summary: Get gender attribute.
2629
+ * @description: Retrieve the gender attribute for catalog listings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getGenderAttribute/).
2630
+ */
2631
+ async getGenderAttribute(
2632
+ { attributeSlug, requestHeaders } = { requestHeaders: {} },
2633
+ { responseHeaders } = { responseHeaders: false }
2634
+ ) {
2635
+ const { error } = CatalogPlatformValidator.getGenderAttribute().validate(
2636
+ {
2637
+ attributeSlug,
2638
+ },
2639
+ { abortEarly: false, allowUnknown: true }
2640
+ );
2641
+ if (error) {
2642
+ return Promise.reject(new FDKClientValidationError(error));
2643
+ }
2644
+
2645
+ // Showing warrnings if extra unknown parameters are found
2646
+ const {
2647
+ error: warrning,
2648
+ } = CatalogPlatformValidator.getGenderAttribute().validate(
2649
+ {
2650
+ attributeSlug,
2651
+ },
2652
+ { abortEarly: false, allowUnknown: false }
2653
+ );
2654
+ if (warrning) {
2655
+ Logger({
2656
+ level: "WARN",
2657
+ message: `Parameter Validation warrnings for platform > Catalog > getGenderAttribute \n ${warrning}`,
2658
+ });
2659
+ }
2660
+
2661
+ const query_params = {};
2662
+
2663
+ const xHeaders = {};
2664
+
2665
+ const response = await PlatformAPIClient.execute(
2666
+ this.config,
2667
+ "get",
2668
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/${attributeSlug}`,
2669
+ query_params,
2670
+ undefined,
2671
+ { ...xHeaders, ...requestHeaders },
2672
+ { responseHeaders }
2673
+ );
2674
+
2675
+ let responseData = response;
2676
+ if (responseHeaders) {
2677
+ responseData = response[0];
2678
+ }
2679
+
2680
+ const {
2681
+ error: res_error,
2682
+ } = CatalogPlatformModel.GenderDetail().validate(responseData, {
2683
+ abortEarly: false,
2684
+ allowUnknown: true,
2685
+ });
2686
+
2687
+ if (res_error) {
2688
+ if (this.config.options.strictResponseCheck === true) {
2689
+ return Promise.reject(new FDKResponseValidationError(res_error));
2690
+ } else {
2691
+ Logger({
2692
+ level: "WARN",
2693
+ message: `Response Validation Warnings for platform > Catalog > getGenderAttribute \n ${res_error}`,
2694
+ });
2695
+ }
2696
+ }
2697
+
2698
+ return response;
2699
+ }
2700
+
2701
+ /**
2702
+ * @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
2703
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2704
+ * @param {import("../PlatformAPIClient").Options} - Options
2705
+ * @returns {Promise<CatalogPlatformModel.HsnCode>} - Success response
2706
+ * @name getHsnCode
2707
+ * @summary: Get HSN code.
2708
+ * @description: Retrieve the HSN code for a product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getHsnCode/).
2545
2709
  */
2546
2710
  async getHsnCode(
2547
2711
  { id, requestHeaders } = { requestHeaders: {} },
@@ -2578,7 +2742,7 @@ class Catalog {
2578
2742
  const response = await PlatformAPIClient.execute(
2579
2743
  this.config,
2580
2744
  "get",
2581
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`,
2745
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}`,
2582
2746
  query_params,
2583
2747
  undefined,
2584
2748
  { ...xHeaders, ...requestHeaders },
@@ -2615,11 +2779,10 @@ class Catalog {
2615
2779
  * @param {CatalogPlatformValidator.GetInventoriesParam} arg - Arg object
2616
2780
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2617
2781
  * @param {import("../PlatformAPIClient").Options} - Options
2618
- * @returns {Promise<CatalogPlatformModel.GetInventoriesResponseSchema>} -
2619
- * Success response
2782
+ * @returns {Promise<CatalogPlatformModel.GetInventoriesResponse>} - Success response
2620
2783
  * @name getInventories
2621
- * @summary: List Inventory
2622
- * @description: Allows to get Inventories data for particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventories/).
2784
+ * @summary: Retrieve inventories.
2785
+ * @description: Allows to get Inventories data for particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventories/).
2623
2786
  */
2624
2787
  async getInventories(
2625
2788
  {
@@ -2634,9 +2797,8 @@ class Catalog {
2634
2797
  storeIds,
2635
2798
  brandIds,
2636
2799
  sellerIdentifiers,
2637
- qtyGt,
2638
- qtyLt,
2639
- qtyType,
2800
+ minSellable,
2801
+ maxSellable,
2640
2802
  fromDate,
2641
2803
  toDate,
2642
2804
  sizeIdentifier,
@@ -2657,9 +2819,8 @@ class Catalog {
2657
2819
  storeIds,
2658
2820
  brandIds,
2659
2821
  sellerIdentifiers,
2660
- qtyGt,
2661
- qtyLt,
2662
- qtyType,
2822
+ minSellable,
2823
+ maxSellable,
2663
2824
  fromDate,
2664
2825
  toDate,
2665
2826
  sizeIdentifier,
@@ -2686,9 +2847,8 @@ class Catalog {
2686
2847
  storeIds,
2687
2848
  brandIds,
2688
2849
  sellerIdentifiers,
2689
- qtyGt,
2690
- qtyLt,
2691
- qtyType,
2850
+ minSellable,
2851
+ maxSellable,
2692
2852
  fromDate,
2693
2853
  toDate,
2694
2854
  sizeIdentifier,
@@ -2714,9 +2874,8 @@ class Catalog {
2714
2874
  query_params["store_ids"] = storeIds;
2715
2875
  query_params["brand_ids"] = brandIds;
2716
2876
  query_params["seller_identifiers"] = sellerIdentifiers;
2717
- query_params["qty_gt"] = qtyGt;
2718
- query_params["qty_lt"] = qtyLt;
2719
- query_params["qty_type"] = qtyType;
2877
+ query_params["min_sellable"] = minSellable;
2878
+ query_params["max_sellable"] = maxSellable;
2720
2879
  query_params["from_date"] = fromDate;
2721
2880
  query_params["to_date"] = toDate;
2722
2881
  query_params["size_identifier"] = sizeIdentifier;
@@ -2740,10 +2899,10 @@ class Catalog {
2740
2899
 
2741
2900
  const {
2742
2901
  error: res_error,
2743
- } = CatalogPlatformModel.GetInventoriesResponseSchema().validate(
2744
- responseData,
2745
- { abortEarly: false, allowUnknown: true }
2746
- );
2902
+ } = CatalogPlatformModel.GetInventoriesResponse().validate(responseData, {
2903
+ abortEarly: false,
2904
+ allowUnknown: true,
2905
+ });
2747
2906
 
2748
2907
  if (res_error) {
2749
2908
  if (this.config.options.strictResponseCheck === true) {
@@ -2759,87 +2918,6 @@ class Catalog {
2759
2918
  return response;
2760
2919
  }
2761
2920
 
2762
- /**
2763
- * @param {Object} arg - Arg object.
2764
- * @param {string} [arg.itemId] - Item code of the product of which size is to be get.
2765
- * @param {string} [arg.size] - Size of which inventory is to get.
2766
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
2767
- * page. Default is 12.
2768
- * @param {string} [arg.q] - Search with help of store code.
2769
- * @param {boolean} [arg.sellable] - Filter on whether product is in stock or not.
2770
- * @param {number[]} [arg.storeIds] - The Store Id of products to fetch inventory.
2771
- * @param {number[]} [arg.brandIds] - The Brand Id of products to fetch inventory.
2772
- * @param {string[]} [arg.sellerIdentifiers] - The Seller Identifier or
2773
- * Primary Identifier of the inventory.
2774
- * @param {number} [arg.qtyGt] - This field allows you to filter for
2775
- * inventories that have quantity greater than to the specified value
2776
- * based on qty_type filter.
2777
- * @param {number} [arg.qtyLt] - This field allows you to filter for
2778
- * inventories that have a quantity less than to the specified value based
2779
- * on qty_type filter.
2780
- * @param {string} [arg.qtyType] - This field provides flexibility in
2781
- * selecting filter for inventory quantity counts and date queries. For
2782
- * example, you might use this field to specify "total" or "sellable" quantity.
2783
- * @param {string} [arg.fromDate] - Inventory updated on filter to get
2784
- * inventories greater then or equal to provided date based on qty_type value.
2785
- * @param {string} [arg.toDate] - Inventory updated on filter to get
2786
- * inventories less then or equal to provided date based on qty_type value.
2787
- * @param {string} [arg.sizeIdentifier] - Size Identifier (Seller Identifier
2788
- * or Primary Identifier) of which inventory is to get.
2789
- * @returns {Paginator<CatalogPlatformModel.GetInventoriesResponseSchema>}
2790
- * @summary: List Inventory
2791
- * @description: Allows to get Inventories data for particular company.
2792
- */
2793
- getInventoriesPaginator({
2794
- itemId,
2795
- size,
2796
- pageSize,
2797
- q,
2798
- sellable,
2799
- storeIds,
2800
- brandIds,
2801
- sellerIdentifiers,
2802
- qtyGt,
2803
- qtyLt,
2804
- qtyType,
2805
- fromDate,
2806
- toDate,
2807
- sizeIdentifier,
2808
- } = {}) {
2809
- const paginator = new Paginator();
2810
- const callback = async () => {
2811
- const pageId = paginator.nextId;
2812
- const pageNo = paginator.pageNo;
2813
- const pageType = "cursor";
2814
- const data = await this.getInventories({
2815
- itemId: itemId,
2816
- size: size,
2817
- pageNo: pageNo,
2818
- pageSize: pageSize,
2819
- pageId: pageId,
2820
- pageType: pageType,
2821
- q: q,
2822
- sellable: sellable,
2823
- storeIds: storeIds,
2824
- brandIds: brandIds,
2825
- sellerIdentifiers: sellerIdentifiers,
2826
- qtyGt: qtyGt,
2827
- qtyLt: qtyLt,
2828
- qtyType: qtyType,
2829
- fromDate: fromDate,
2830
- toDate: toDate,
2831
- sizeIdentifier: sizeIdentifier,
2832
- });
2833
- paginator.setPaginator({
2834
- hasNext: data.page.has_next ? true : false,
2835
- nextId: data.page.next_id,
2836
- });
2837
- return data;
2838
- };
2839
- paginator.setCallback(callback.bind(this));
2840
- return paginator;
2841
- }
2842
-
2843
2921
  /**
2844
2922
  * @param {CatalogPlatformValidator.GetInventoryBulkUploadHistoryParam} arg
2845
2923
  * - Arg object
@@ -2848,11 +2926,11 @@ class Catalog {
2848
2926
  * @param {import("../PlatformAPIClient").Options} - Options
2849
2927
  * @returns {Promise<CatalogPlatformModel.BulkInventoryGet>} - Success response
2850
2928
  * @name getInventoryBulkUploadHistory
2851
- * @summary: List bulk inventory upload history
2852
- * @description: Helps to get bulk Inventory upload jobs status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBulkUploadHistory/).
2929
+ * @summary: Retrieve inventory bulk upload history.
2930
+ * @description: Helps to get bulk Inventory upload jobs data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBulkUploadHistory/).
2853
2931
  */
2854
2932
  async getInventoryBulkUploadHistory(
2855
- { pageNo, pageSize, search, requestHeaders } = { requestHeaders: {} },
2933
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
2856
2934
  { responseHeaders } = { responseHeaders: false }
2857
2935
  ) {
2858
2936
  const {
@@ -2861,7 +2939,6 @@ class Catalog {
2861
2939
  {
2862
2940
  pageNo,
2863
2941
  pageSize,
2864
- search,
2865
2942
  },
2866
2943
  { abortEarly: false, allowUnknown: true }
2867
2944
  );
@@ -2876,7 +2953,6 @@ class Catalog {
2876
2953
  {
2877
2954
  pageNo,
2878
2955
  pageSize,
2879
- search,
2880
2956
  },
2881
2957
  { abortEarly: false, allowUnknown: false }
2882
2958
  );
@@ -2890,14 +2966,13 @@ class Catalog {
2890
2966
  const query_params = {};
2891
2967
  query_params["page_no"] = pageNo;
2892
2968
  query_params["page_size"] = pageSize;
2893
- query_params["search"] = search;
2894
2969
 
2895
2970
  const xHeaders = {};
2896
2971
 
2897
2972
  const response = await PlatformAPIClient.execute(
2898
2973
  this.config,
2899
2974
  "get",
2900
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk/`,
2975
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/bulk`,
2901
2976
  query_params,
2902
2977
  undefined,
2903
2978
  { ...xHeaders, ...requestHeaders },
@@ -2930,36 +3005,6 @@ class Catalog {
2930
3005
  return response;
2931
3006
  }
2932
3007
 
2933
- /**
2934
- * @param {Object} arg - Arg object.
2935
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
2936
- * page. Default is 12.
2937
- * @param {string} [arg.search] - Search string to filter the results by batch id
2938
- * @returns {Paginator<CatalogPlatformModel.BulkInventoryGet>}
2939
- * @summary: List bulk inventory upload history
2940
- * @description: Helps to get bulk Inventory upload jobs status.
2941
- */
2942
- getInventoryBulkUploadHistoryPaginator({ pageSize, search } = {}) {
2943
- const paginator = new Paginator();
2944
- const callback = async () => {
2945
- const pageId = paginator.nextId;
2946
- const pageNo = paginator.pageNo;
2947
- const pageType = "number";
2948
- const data = await this.getInventoryBulkUploadHistory({
2949
- pageNo: pageNo,
2950
- pageSize: pageSize,
2951
- search: search,
2952
- });
2953
- paginator.setPaginator({
2954
- hasNext: data.page.has_next ? true : false,
2955
- nextId: data.page.next_id,
2956
- });
2957
- return data;
2958
- };
2959
- paginator.setCallback(callback.bind(this));
2960
- return paginator;
2961
- }
2962
-
2963
3008
  /**
2964
3009
  * @param {CatalogPlatformValidator.GetInventoryBySizeParam} arg - Arg object
2965
3010
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -2967,8 +3012,8 @@ class Catalog {
2967
3012
  * @returns {Promise<CatalogPlatformModel.InventoryResponsePaginated>} -
2968
3013
  * Success response
2969
3014
  * @name getInventoryBySize
2970
- * @summary: List inventory by size
2971
- * @description: Retrieve inventory data for a specific company, item ID, and size. The API supports search capabilities based on selling location (store) code and product availability (in stock or not)." - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySize/).
3015
+ * @summary: Get inventory by size.
3016
+ * @description: Allows to retrieve Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySize/).
2972
3017
  */
2973
3018
  async getInventoryBySize(
2974
3019
  { itemId, size, pageNo, pageSize, q, sellable, requestHeaders } = {
@@ -3023,7 +3068,7 @@ class Catalog {
3023
3068
  const response = await PlatformAPIClient.execute(
3024
3069
  this.config,
3025
3070
  "get",
3026
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
3071
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/sizes/${size}`,
3027
3072
  query_params,
3028
3073
  undefined,
3029
3074
  { ...xHeaders, ...requestHeaders },
@@ -3056,42 +3101,6 @@ class Catalog {
3056
3101
  return response;
3057
3102
  }
3058
3103
 
3059
- /**
3060
- * @param {Object} arg - Arg object.
3061
- * @param {number} arg.itemId - Item code of the product of which size is to be get.
3062
- * @param {string} arg.size - Size of which inventory is to get.
3063
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
3064
- * page. Default is 12.
3065
- * @param {string} [arg.q] - Search with help of store code.
3066
- * @param {boolean} [arg.sellable] - Filter on whether product is in stock or not.
3067
- * @returns {Paginator<CatalogPlatformModel.InventoryResponsePaginated>}
3068
- * @summary: List inventory by size
3069
- * @description: Retrieve inventory data for a specific company, item ID, and size. The API supports search capabilities based on selling location (store) code and product availability (in stock or not)."
3070
- */
3071
- getInventoryBySizePaginator({ itemId, size, pageSize, q, sellable } = {}) {
3072
- const paginator = new Paginator();
3073
- const callback = async () => {
3074
- const pageId = paginator.nextId;
3075
- const pageNo = paginator.pageNo;
3076
- const pageType = "number";
3077
- const data = await this.getInventoryBySize({
3078
- itemId: itemId,
3079
- size: size,
3080
- pageNo: pageNo,
3081
- pageSize: pageSize,
3082
- q: q,
3083
- sellable: sellable,
3084
- });
3085
- paginator.setPaginator({
3086
- hasNext: data.page.has_next ? true : false,
3087
- nextId: data.page.next_id,
3088
- });
3089
- return data;
3090
- };
3091
- paginator.setCallback(callback.bind(this));
3092
- return paginator;
3093
- }
3094
-
3095
3104
  /**
3096
3105
  * @param {CatalogPlatformValidator.GetInventoryBySizeIdentifierParam} arg
3097
3106
  * - Arg object
@@ -3102,8 +3111,8 @@ class Catalog {
3102
3111
  * - Success response
3103
3112
  *
3104
3113
  * @name getInventoryBySizeIdentifier
3105
- * @summary: List inventory by size
3106
- * @description: Retrieve inventory data for a specific company, item ID, and seller identifier. The API supports search capabilities using store codes and location IDs. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySizeIdentifier/).
3114
+ * @summary: Get inventory by size identifier.
3115
+ * @description: Allows to retrieve Inventory data for particular company grouped by size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryBySizeIdentifier/).
3107
3116
  */
3108
3117
  async getInventoryBySizeIdentifier(
3109
3118
  {
@@ -3199,57 +3208,15 @@ class Catalog {
3199
3208
  return response;
3200
3209
  }
3201
3210
 
3202
- /**
3203
- * @param {Object} arg - Arg object.
3204
- * @param {number} arg.itemId - Item code of the product of which size is to be get.
3205
- * @param {string} arg.sizeIdentifier - Size Identifier (Seller Identifier
3206
- * or Primary Identifier) of which inventory is to get.
3207
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
3208
- * page. Default is 12.
3209
- * @param {string} [arg.q] - Search with help of store code.
3210
- * @param {number[]} [arg.locationIds] - Search by store ids.
3211
- * @returns {Paginator<CatalogPlatformModel.InventorySellerIdentifierResponsePaginated>}
3212
- * @summary: List inventory by size
3213
- * @description: Retrieve inventory data for a specific company, item ID, and seller identifier. The API supports search capabilities using store codes and location IDs.
3214
- */
3215
- getInventoryBySizeIdentifierPaginator({
3216
- itemId,
3217
- sizeIdentifier,
3218
- pageSize,
3219
- q,
3220
- locationIds,
3221
- } = {}) {
3222
- const paginator = new Paginator();
3223
- const callback = async () => {
3224
- const pageId = paginator.nextId;
3225
- const pageNo = paginator.pageNo;
3226
- const pageType = "number";
3227
- const data = await this.getInventoryBySizeIdentifier({
3228
- itemId: itemId,
3229
- sizeIdentifier: sizeIdentifier,
3230
- pageNo: pageNo,
3231
- pageSize: pageSize,
3232
- q: q,
3233
- locationIds: locationIds,
3234
- });
3235
- paginator.setPaginator({
3236
- hasNext: data.page.has_next ? true : false,
3237
- nextId: data.page.next_id,
3238
- });
3239
- return data;
3240
- };
3241
- paginator.setCallback(callback.bind(this));
3242
- return paginator;
3243
- }
3244
-
3245
3211
  /**
3246
3212
  * @param {CatalogPlatformValidator.GetInventoryExportParam} arg - Arg object
3247
3213
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3248
3214
  * @param {import("../PlatformAPIClient").Options} - Options
3249
- * @returns {Promise<CatalogPlatformModel.InventoryExportJob>} - Success response
3215
+ * @returns {Promise<CatalogPlatformModel.InventoryExportJobResponse>} -
3216
+ * Success response
3250
3217
  * @name getInventoryExport
3251
- * @summary: list product inventory
3252
- * @description: Retrieves inventory for all products for that particular company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExport/).
3218
+ * @summary: Retrieve inventory export data.
3219
+ * @description: Helps to retrieve Inventory export history. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExport/).
3253
3220
  */
3254
3221
  async getInventoryExport(
3255
3222
  { requestHeaders } = { requestHeaders: {} },
@@ -3284,7 +3251,7 @@ class Catalog {
3284
3251
  const response = await PlatformAPIClient.execute(
3285
3252
  this.config,
3286
3253
  "get",
3287
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download/`,
3254
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/download`,
3288
3255
  query_params,
3289
3256
  undefined,
3290
3257
  { ...xHeaders, ...requestHeaders },
@@ -3298,10 +3265,10 @@ class Catalog {
3298
3265
 
3299
3266
  const {
3300
3267
  error: res_error,
3301
- } = CatalogPlatformModel.InventoryExportJob().validate(responseData, {
3302
- abortEarly: false,
3303
- allowUnknown: true,
3304
- });
3268
+ } = CatalogPlatformModel.InventoryExportJobResponse().validate(
3269
+ responseData,
3270
+ { abortEarly: false, allowUnknown: true }
3271
+ );
3305
3272
 
3306
3273
  if (res_error) {
3307
3274
  if (this.config.options.strictResponseCheck === true) {
@@ -3318,22 +3285,26 @@ class Catalog {
3318
3285
  }
3319
3286
 
3320
3287
  /**
3321
- * @param {CatalogPlatformValidator.GetMarketplaceOptinDetailParam} arg - Arg object
3288
+ * @param {CatalogPlatformValidator.GetInventoryExportDetailParam} arg - Arg object
3322
3289
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3323
3290
  * @param {import("../PlatformAPIClient").Options} - Options
3324
- * @returns {Promise<CatalogPlatformModel.GetOptInPlatform>} - Success response
3325
- * @name getMarketplaceOptinDetail
3326
- * @summary: Get opt-in
3327
- * @description: Allows to fetch opt-in information for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaceOptinDetail/).
3291
+ * @returns {Promise<CatalogPlatformModel.EditInventoryDownloadsResponse>}
3292
+ * - Success response
3293
+ *
3294
+ * @name getInventoryExportDetail
3295
+ * @summary: Get Detail Product export detail.
3296
+ * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getInventoryExportDetail/).
3328
3297
  */
3329
- async getMarketplaceOptinDetail(
3330
- { requestHeaders } = { requestHeaders: {} },
3298
+ async getInventoryExportDetail(
3299
+ { jobId, requestHeaders } = { requestHeaders: {} },
3331
3300
  { responseHeaders } = { responseHeaders: false }
3332
3301
  ) {
3333
3302
  const {
3334
3303
  error,
3335
- } = CatalogPlatformValidator.getMarketplaceOptinDetail().validate(
3336
- {},
3304
+ } = CatalogPlatformValidator.getInventoryExportDetail().validate(
3305
+ {
3306
+ jobId,
3307
+ },
3337
3308
  { abortEarly: false, allowUnknown: true }
3338
3309
  );
3339
3310
  if (error) {
@@ -3343,14 +3314,16 @@ class Catalog {
3343
3314
  // Showing warrnings if extra unknown parameters are found
3344
3315
  const {
3345
3316
  error: warrning,
3346
- } = CatalogPlatformValidator.getMarketplaceOptinDetail().validate(
3347
- {},
3317
+ } = CatalogPlatformValidator.getInventoryExportDetail().validate(
3318
+ {
3319
+ jobId,
3320
+ },
3348
3321
  { abortEarly: false, allowUnknown: false }
3349
3322
  );
3350
3323
  if (warrning) {
3351
3324
  Logger({
3352
3325
  level: "WARN",
3353
- message: `Parameter Validation warrnings for platform > Catalog > getMarketplaceOptinDetail \n ${warrning}`,
3326
+ message: `Parameter Validation warrnings for platform > Catalog > getInventoryExportDetail \n ${warrning}`,
3354
3327
  });
3355
3328
  }
3356
3329
 
@@ -3361,7 +3334,7 @@ class Catalog {
3361
3334
  const response = await PlatformAPIClient.execute(
3362
3335
  this.config,
3363
3336
  "get",
3364
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/`,
3337
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/${jobId}`,
3365
3338
  query_params,
3366
3339
  undefined,
3367
3340
  { ...xHeaders, ...requestHeaders },
@@ -3375,10 +3348,10 @@ class Catalog {
3375
3348
 
3376
3349
  const {
3377
3350
  error: res_error,
3378
- } = CatalogPlatformModel.GetOptInPlatform().validate(responseData, {
3379
- abortEarly: false,
3380
- allowUnknown: true,
3381
- });
3351
+ } = CatalogPlatformModel.EditInventoryDownloadsResponse().validate(
3352
+ responseData,
3353
+ { abortEarly: false, allowUnknown: true }
3354
+ );
3382
3355
 
3383
3356
  if (res_error) {
3384
3357
  if (this.config.options.strictResponseCheck === true) {
@@ -3386,7 +3359,7 @@ class Catalog {
3386
3359
  } else {
3387
3360
  Logger({
3388
3361
  level: "WARN",
3389
- message: `Response Validation Warnings for platform > Catalog > getMarketplaceOptinDetail \n ${res_error}`,
3362
+ message: `Response Validation Warnings for platform > Catalog > getInventoryExportDetail \n ${res_error}`,
3390
3363
  });
3391
3364
  }
3392
3365
  }
@@ -3395,19 +3368,19 @@ class Catalog {
3395
3368
  }
3396
3369
 
3397
3370
  /**
3398
- * @param {CatalogPlatformValidator.GetMarketplacesParam} arg - Arg object
3371
+ * @param {CatalogPlatformValidator.GetLocationTagsParam} arg - Arg object
3399
3372
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3400
3373
  * @param {import("../PlatformAPIClient").Options} - Options
3401
- * @returns {Promise<CatalogPlatformModel.GetAllMarketplaces>} - Success response
3402
- * @name getMarketplaces
3403
- * @summary: List marketplaces
3404
- * @description: Allows to get all marketplaces information for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaces/).
3374
+ * @returns {Promise<CatalogPlatformModel.StoreTagsResponseSchema>} - Success response
3375
+ * @name getLocationTags
3376
+ * @summary: Get tags associated with locations for a company.
3377
+ * @description: This API fetches all the tags associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getLocationTags/).
3405
3378
  */
3406
- async getMarketplaces(
3379
+ async getLocationTags(
3407
3380
  { requestHeaders } = { requestHeaders: {} },
3408
3381
  { responseHeaders } = { responseHeaders: false }
3409
3382
  ) {
3410
- const { error } = CatalogPlatformValidator.getMarketplaces().validate(
3383
+ const { error } = CatalogPlatformValidator.getLocationTags().validate(
3411
3384
  {},
3412
3385
  { abortEarly: false, allowUnknown: true }
3413
3386
  );
@@ -3418,14 +3391,14 @@ class Catalog {
3418
3391
  // Showing warrnings if extra unknown parameters are found
3419
3392
  const {
3420
3393
  error: warrning,
3421
- } = CatalogPlatformValidator.getMarketplaces().validate(
3394
+ } = CatalogPlatformValidator.getLocationTags().validate(
3422
3395
  {},
3423
3396
  { abortEarly: false, allowUnknown: false }
3424
3397
  );
3425
3398
  if (warrning) {
3426
3399
  Logger({
3427
3400
  level: "WARN",
3428
- message: `Parameter Validation warrnings for platform > Catalog > getMarketplaces \n ${warrning}`,
3401
+ message: `Parameter Validation warrnings for platform > Catalog > getLocationTags \n ${warrning}`,
3429
3402
  });
3430
3403
  }
3431
3404
 
@@ -3436,7 +3409,7 @@ class Catalog {
3436
3409
  const response = await PlatformAPIClient.execute(
3437
3410
  this.config,
3438
3411
  "get",
3439
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel`,
3412
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/tags`,
3440
3413
  query_params,
3441
3414
  undefined,
3442
3415
  { ...xHeaders, ...requestHeaders },
@@ -3450,7 +3423,7 @@ class Catalog {
3450
3423
 
3451
3424
  const {
3452
3425
  error: res_error,
3453
- } = CatalogPlatformModel.GetAllMarketplaces().validate(responseData, {
3426
+ } = CatalogPlatformModel.StoreTagsResponseSchema().validate(responseData, {
3454
3427
  abortEarly: false,
3455
3428
  allowUnknown: true,
3456
3429
  });
@@ -3461,7 +3434,7 @@ class Catalog {
3461
3434
  } else {
3462
3435
  Logger({
3463
3436
  level: "WARN",
3464
- message: `Response Validation Warnings for platform > Catalog > getMarketplaces \n ${res_error}`,
3437
+ message: `Response Validation Warnings for platform > Catalog > getLocationTags \n ${res_error}`,
3465
3438
  });
3466
3439
  }
3467
3440
  }
@@ -3470,23 +3443,20 @@ class Catalog {
3470
3443
  }
3471
3444
 
3472
3445
  /**
3473
- * @param {CatalogPlatformValidator.GetOptimalLocationsParam} arg - Arg object
3446
+ * @param {CatalogPlatformValidator.GetMarketplacesParam} arg - Arg object
3474
3447
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3475
3448
  * @param {import("../PlatformAPIClient").Options} - Options
3476
- * @returns {Promise<CatalogPlatformModel.StoreAssignResponseSchema>} -
3477
- * Success response
3478
- * @name getOptimalLocations
3479
- * @summary: Get optimal locations
3480
- * @description: This API returns the optimal locations where inventory is available for the given articles. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getOptimalLocations/).
3449
+ * @returns {Promise<CatalogPlatformModel.GetAllMarketplaces>} - Success response
3450
+ * @name getMarketplaces
3451
+ * @summary: List all marketplaces
3452
+ * @description: This API allows to get marketplace information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getMarketplaces/).
3481
3453
  */
3482
- async getOptimalLocations(
3483
- { body, requestHeaders } = { requestHeaders: {} },
3454
+ async getMarketplaces(
3455
+ { requestHeaders } = { requestHeaders: {} },
3484
3456
  { responseHeaders } = { responseHeaders: false }
3485
3457
  ) {
3486
- const { error } = CatalogPlatformValidator.getOptimalLocations().validate(
3487
- {
3488
- body,
3489
- },
3458
+ const { error } = CatalogPlatformValidator.getMarketplaces().validate(
3459
+ {},
3490
3460
  { abortEarly: false, allowUnknown: true }
3491
3461
  );
3492
3462
  if (error) {
@@ -3496,16 +3466,14 @@ class Catalog {
3496
3466
  // Showing warrnings if extra unknown parameters are found
3497
3467
  const {
3498
3468
  error: warrning,
3499
- } = CatalogPlatformValidator.getOptimalLocations().validate(
3500
- {
3501
- body,
3502
- },
3469
+ } = CatalogPlatformValidator.getMarketplaces().validate(
3470
+ {},
3503
3471
  { abortEarly: false, allowUnknown: false }
3504
3472
  );
3505
3473
  if (warrning) {
3506
3474
  Logger({
3507
3475
  level: "WARN",
3508
- message: `Parameter Validation warrnings for platform > Catalog > getOptimalLocations \n ${warrning}`,
3476
+ message: `Parameter Validation warrnings for platform > Catalog > getMarketplaces \n ${warrning}`,
3509
3477
  });
3510
3478
  }
3511
3479
 
@@ -3515,10 +3483,10 @@ class Catalog {
3515
3483
 
3516
3484
  const response = await PlatformAPIClient.execute(
3517
3485
  this.config,
3518
- "post",
3519
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/reassign/`,
3486
+ "get",
3487
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel`,
3520
3488
  query_params,
3521
- body,
3489
+ undefined,
3522
3490
  { ...xHeaders, ...requestHeaders },
3523
3491
  { responseHeaders }
3524
3492
  );
@@ -3530,10 +3498,10 @@ class Catalog {
3530
3498
 
3531
3499
  const {
3532
3500
  error: res_error,
3533
- } = CatalogPlatformModel.StoreAssignResponseSchema().validate(
3534
- responseData,
3535
- { abortEarly: false, allowUnknown: true }
3536
- );
3501
+ } = CatalogPlatformModel.GetAllMarketplaces().validate(responseData, {
3502
+ abortEarly: false,
3503
+ allowUnknown: true,
3504
+ });
3537
3505
 
3538
3506
  if (res_error) {
3539
3507
  if (this.config.options.strictResponseCheck === true) {
@@ -3541,7 +3509,7 @@ class Catalog {
3541
3509
  } else {
3542
3510
  Logger({
3543
3511
  level: "WARN",
3544
- message: `Response Validation Warnings for platform > Catalog > getOptimalLocations \n ${res_error}`,
3512
+ message: `Response Validation Warnings for platform > Catalog > getMarketplaces \n ${res_error}`,
3545
3513
  });
3546
3514
  }
3547
3515
  }
@@ -3553,10 +3521,9 @@ class Catalog {
3553
3521
  * @param {CatalogPlatformValidator.GetProductParam} arg - Arg object
3554
3522
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3555
3523
  * @param {import("../PlatformAPIClient").Options} - Options
3556
- * @returns {Promise<CatalogPlatformModel.SingleProductResponseSchema>} -
3557
- * Success response
3524
+ * @returns {Promise<CatalogPlatformModel.SingleProductResponse>} - Success response
3558
3525
  * @name getProduct
3559
- * @summary: Get a product
3526
+ * @summary: Get product details.
3560
3527
  * @description: Retrieve data associated to a particular product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProduct/).
3561
3528
  */
3562
3529
  async getProduct(
@@ -3600,7 +3567,7 @@ class Catalog {
3600
3567
  const response = await PlatformAPIClient.execute(
3601
3568
  this.config,
3602
3569
  "get",
3603
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}/`,
3570
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/${itemId}`,
3604
3571
  query_params,
3605
3572
  undefined,
3606
3573
  { ...xHeaders, ...requestHeaders },
@@ -3614,10 +3581,10 @@ class Catalog {
3614
3581
 
3615
3582
  const {
3616
3583
  error: res_error,
3617
- } = CatalogPlatformModel.SingleProductResponseSchema().validate(
3618
- responseData,
3619
- { abortEarly: false, allowUnknown: true }
3620
- );
3584
+ } = CatalogPlatformModel.SingleProductResponse().validate(responseData, {
3585
+ abortEarly: false,
3586
+ allowUnknown: true,
3587
+ });
3621
3588
 
3622
3589
  if (res_error) {
3623
3590
  if (this.config.options.strictResponseCheck === true) {
@@ -3637,9 +3604,9 @@ class Catalog {
3637
3604
  * @param {CatalogPlatformValidator.GetProductAssetsInBulkParam} arg - Arg object
3638
3605
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3639
3606
  * @param {import("../PlatformAPIClient").Options} - Options
3640
- * @returns {Promise<CatalogPlatformModel.BulkAssetResponseSchema>} - Success response
3607
+ * @returns {Promise<CatalogPlatformModel.BulkAssetResponse>} - Success response
3641
3608
  * @name getProductAssetsInBulk
3642
- * @summary: Get product assets
3609
+ * @summary: Retrieve product assets in bulk.
3643
3610
  * @description: Helps to retrieve bulk asset jobs data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAssetsInBulk/).
3644
3611
  */
3645
3612
  async getProductAssetsInBulk(
@@ -3685,7 +3652,7 @@ class Catalog {
3685
3652
  const response = await PlatformAPIClient.execute(
3686
3653
  this.config,
3687
3654
  "get",
3688
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk/`,
3655
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/assets/bulk`,
3689
3656
  query_params,
3690
3657
  undefined,
3691
3658
  { ...xHeaders, ...requestHeaders },
@@ -3699,7 +3666,7 @@ class Catalog {
3699
3666
 
3700
3667
  const {
3701
3668
  error: res_error,
3702
- } = CatalogPlatformModel.BulkAssetResponseSchema().validate(responseData, {
3669
+ } = CatalogPlatformModel.BulkAssetResponse().validate(responseData, {
3703
3670
  abortEarly: false,
3704
3671
  allowUnknown: true,
3705
3672
  });
@@ -3718,44 +3685,15 @@ class Catalog {
3718
3685
  return response;
3719
3686
  }
3720
3687
 
3721
- /**
3722
- * @param {Object} arg - Arg object.
3723
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
3724
- * page. Default is 12.
3725
- * @returns {Paginator<CatalogPlatformModel.BulkAssetResponseSchema>}
3726
- * @summary: Get product assets
3727
- * @description: Helps to retrieve bulk asset jobs data associated to a particular company.
3728
- */
3729
- getProductAssetsInBulkPaginator({ pageSize } = {}) {
3730
- const paginator = new Paginator();
3731
- const callback = async () => {
3732
- const pageId = paginator.nextId;
3733
- const pageNo = paginator.pageNo;
3734
- const pageType = "number";
3735
- const data = await this.getProductAssetsInBulk({
3736
- pageNo: pageNo,
3737
- pageSize: pageSize,
3738
- });
3739
- paginator.setPaginator({
3740
- hasNext: data.page.has_next ? true : false,
3741
- nextId: data.page.next_id,
3742
- });
3743
- return data;
3744
- };
3745
- paginator.setCallback(callback.bind(this));
3746
- return paginator;
3747
- }
3748
-
3749
3688
  /**
3750
3689
  * @param {CatalogPlatformValidator.GetProductAttributesParam} arg - Arg object
3751
3690
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3752
3691
  * @param {import("../PlatformAPIClient").Options} - Options
3753
- * @returns {Promise<CatalogPlatformModel.ProductAttributesResponseSchema>}
3754
- * - Success response
3755
- *
3692
+ * @returns {Promise<CatalogPlatformModel.ProductAttributesResponse>} -
3693
+ * Success response
3756
3694
  * @name getProductAttributes
3757
- * @summary: List product attributes
3758
- * @description: Retrieve attributes attached to products based on their L3 category. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAttributes/).
3695
+ * @summary: Get product attributes.
3696
+ * @description: List all the attributes by their L3 categories. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductAttributes/).
3759
3697
  */
3760
3698
  async getProductAttributes(
3761
3699
  { category, filter, requestHeaders } = { requestHeaders: {} },
@@ -3798,7 +3736,7 @@ class Catalog {
3798
3736
  const response = await PlatformAPIClient.execute(
3799
3737
  this.config,
3800
3738
  "get",
3801
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes/`,
3739
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-attributes`,
3802
3740
  query_params,
3803
3741
  undefined,
3804
3742
  { ...xHeaders, ...requestHeaders },
@@ -3812,7 +3750,7 @@ class Catalog {
3812
3750
 
3813
3751
  const {
3814
3752
  error: res_error,
3815
- } = CatalogPlatformModel.ProductAttributesResponseSchema().validate(
3753
+ } = CatalogPlatformModel.ProductAttributesResponse().validate(
3816
3754
  responseData,
3817
3755
  { abortEarly: false, allowUnknown: true }
3818
3756
  );
@@ -3837,7 +3775,7 @@ class Catalog {
3837
3775
  * @param {import("../PlatformAPIClient").Options} - Options
3838
3776
  * @returns {Promise<CatalogPlatformModel.ProductBulkRequestList>} - Success response
3839
3777
  * @name getProductBulkUploadHistory
3840
- * @summary: List product bulk upload history
3778
+ * @summary: Retrieve product bulk upload history.
3841
3779
  * @description: Helps to get bulk product upload jobs data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBulkUploadHistory/).
3842
3780
  */
3843
3781
  async getProductBulkUploadHistory(
@@ -3919,46 +3857,16 @@ class Catalog {
3919
3857
  return response;
3920
3858
  }
3921
3859
 
3922
- /**
3923
- * @param {Object} arg - Arg object.
3924
- * @param {string} [arg.search] - Search string to filter the results by batch id
3925
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
3926
- * page. Default is 12.
3927
- * @returns {Paginator<CatalogPlatformModel.ProductBulkRequestList>}
3928
- * @summary: List product bulk upload history
3929
- * @description: Helps to get bulk product upload jobs data.
3930
- */
3931
- getProductBulkUploadHistoryPaginator({ search, pageSize } = {}) {
3932
- const paginator = new Paginator();
3933
- const callback = async () => {
3934
- const pageId = paginator.nextId;
3935
- const pageNo = paginator.pageNo;
3936
- const pageType = "number";
3937
- const data = await this.getProductBulkUploadHistory({
3938
- search: search,
3939
- pageNo: pageNo,
3940
- pageSize: pageSize,
3941
- });
3942
- paginator.setPaginator({
3943
- hasNext: data.page.has_next ? true : false,
3944
- nextId: data.page.next_id,
3945
- });
3946
- return data;
3947
- };
3948
- paginator.setCallback(callback.bind(this));
3949
- return paginator;
3950
- }
3951
-
3952
3860
  /**
3953
3861
  * @param {CatalogPlatformValidator.GetProductBundleParam} arg - Arg object
3954
3862
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3955
3863
  * @param {import("../PlatformAPIClient").Options} - Options
3956
- * @returns {Promise<CatalogPlatformModel.GetProductBundleListingResponseSchema>}
3864
+ * @returns {Promise<CatalogPlatformModel.GetProductBundleListingResponse>}
3957
3865
  * - Success response
3958
3866
  *
3959
3867
  * @name getProductBundle
3960
- * @summary: List product bundles
3961
- * @description: Retrieve a list of product bundles available in the catalog associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/).
3868
+ * @summary: Retrieve product bundles.
3869
+ * @description: Retrieve a list of product bundles available in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundle/).
3962
3870
  */
3963
3871
  async getProductBundle(
3964
3872
  { q, slug, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
@@ -4007,7 +3915,7 @@ class Catalog {
4007
3915
  const response = await PlatformAPIClient.execute(
4008
3916
  this.config,
4009
3917
  "get",
4010
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/`,
3918
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/product-bundle`,
4011
3919
  query_params,
4012
3920
  undefined,
4013
3921
  { ...xHeaders, ...requestHeaders },
@@ -4021,7 +3929,7 @@ class Catalog {
4021
3929
 
4022
3930
  const {
4023
3931
  error: res_error,
4024
- } = CatalogPlatformModel.GetProductBundleListingResponseSchema().validate(
3932
+ } = CatalogPlatformModel.GetProductBundleListingResponse().validate(
4025
3933
  responseData,
4026
3934
  { abortEarly: false, allowUnknown: true }
4027
3935
  );
@@ -4044,12 +3952,11 @@ class Catalog {
4044
3952
  * @param {CatalogPlatformValidator.GetProductBundleDetailParam} arg - Arg object
4045
3953
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4046
3954
  * @param {import("../PlatformAPIClient").Options} - Options
4047
- * @returns {Promise<CatalogPlatformModel.GetProductBundleResponseSchema>}
4048
- * - Success response
4049
- *
3955
+ * @returns {Promise<CatalogPlatformModel.GetProductBundleResponse>} -
3956
+ * Success response
4050
3957
  * @name getProductBundleDetail
4051
- * @summary: Get product bundle
4052
- * @description: Retrieve detailed information about a specific product bundle associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundleDetail/).
3958
+ * @summary: Get product bundle details.
3959
+ * @description: Retrieve detailed information about a specific product bundle. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductBundleDetail/).
4053
3960
  */
4054
3961
  async getProductBundleDetail(
4055
3962
  { id, requestHeaders } = { requestHeaders: {} },
@@ -4090,7 +3997,89 @@ class Catalog {
4090
3997
  const response = await PlatformAPIClient.execute(
4091
3998
  this.config,
4092
3999
  "get",
4093
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`,
4000
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/product-bundle/${id}`,
4001
+ query_params,
4002
+ undefined,
4003
+ { ...xHeaders, ...requestHeaders },
4004
+ { responseHeaders }
4005
+ );
4006
+
4007
+ let responseData = response;
4008
+ if (responseHeaders) {
4009
+ responseData = response[0];
4010
+ }
4011
+
4012
+ const {
4013
+ error: res_error,
4014
+ } = CatalogPlatformModel.GetProductBundleResponse().validate(responseData, {
4015
+ abortEarly: false,
4016
+ allowUnknown: true,
4017
+ });
4018
+
4019
+ if (res_error) {
4020
+ if (this.config.options.strictResponseCheck === true) {
4021
+ return Promise.reject(new FDKResponseValidationError(res_error));
4022
+ } else {
4023
+ Logger({
4024
+ level: "WARN",
4025
+ message: `Response Validation Warnings for platform > Catalog > getProductBundleDetail \n ${res_error}`,
4026
+ });
4027
+ }
4028
+ }
4029
+
4030
+ return response;
4031
+ }
4032
+
4033
+ /**
4034
+ * @param {CatalogPlatformValidator.GetProductExportDetailParam} arg - Arg object
4035
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4036
+ * @param {import("../PlatformAPIClient").Options} - Options
4037
+ * @returns {Promise<CatalogPlatformModel.GetProductDownloadsResponse>} -
4038
+ * Success response
4039
+ * @name getProductExportDetail
4040
+ * @summary: Get Detail Product export detail.
4041
+ * @description: This API helps to get detail of Product export. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportDetail/).
4042
+ */
4043
+ async getProductExportDetail(
4044
+ { jobId, requestHeaders } = { requestHeaders: {} },
4045
+ { responseHeaders } = { responseHeaders: false }
4046
+ ) {
4047
+ const {
4048
+ error,
4049
+ } = CatalogPlatformValidator.getProductExportDetail().validate(
4050
+ {
4051
+ jobId,
4052
+ },
4053
+ { abortEarly: false, allowUnknown: true }
4054
+ );
4055
+ if (error) {
4056
+ return Promise.reject(new FDKClientValidationError(error));
4057
+ }
4058
+
4059
+ // Showing warrnings if extra unknown parameters are found
4060
+ const {
4061
+ error: warrning,
4062
+ } = CatalogPlatformValidator.getProductExportDetail().validate(
4063
+ {
4064
+ jobId,
4065
+ },
4066
+ { abortEarly: false, allowUnknown: false }
4067
+ );
4068
+ if (warrning) {
4069
+ Logger({
4070
+ level: "WARN",
4071
+ message: `Parameter Validation warrnings for platform > Catalog > getProductExportDetail \n ${warrning}`,
4072
+ });
4073
+ }
4074
+
4075
+ const query_params = {};
4076
+
4077
+ const xHeaders = {};
4078
+
4079
+ const response = await PlatformAPIClient.execute(
4080
+ this.config,
4081
+ "get",
4082
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/${jobId}`,
4094
4083
  query_params,
4095
4084
  undefined,
4096
4085
  { ...xHeaders, ...requestHeaders },
@@ -4104,7 +4093,7 @@ class Catalog {
4104
4093
 
4105
4094
  const {
4106
4095
  error: res_error,
4107
- } = CatalogPlatformModel.GetProductBundleResponseSchema().validate(
4096
+ } = CatalogPlatformModel.GetProductDownloadsResponse().validate(
4108
4097
  responseData,
4109
4098
  { abortEarly: false, allowUnknown: true }
4110
4099
  );
@@ -4115,7 +4104,184 @@ class Catalog {
4115
4104
  } else {
4116
4105
  Logger({
4117
4106
  level: "WARN",
4118
- message: `Response Validation Warnings for platform > Catalog > getProductBundleDetail \n ${res_error}`,
4107
+ message: `Response Validation Warnings for platform > Catalog > getProductExportDetail \n ${res_error}`,
4108
+ });
4109
+ }
4110
+ }
4111
+
4112
+ return response;
4113
+ }
4114
+
4115
+ /**
4116
+ * @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object
4117
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4118
+ * @param {import("../PlatformAPIClient").Options} - Options
4119
+ * @returns {Promise<CatalogPlatformModel.ProductDownloadsResponse>} -
4120
+ * Success response
4121
+ * @name getProductExportJobs
4122
+ * @summary: Retrieve product export jobs.
4123
+ * @description: View details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/).
4124
+ */
4125
+ async getProductExportJobs(
4126
+ { status, fromDate, toDate, q, pageNo, pageSize, requestHeaders } = {
4127
+ requestHeaders: {},
4128
+ },
4129
+ { responseHeaders } = { responseHeaders: false }
4130
+ ) {
4131
+ const { error } = CatalogPlatformValidator.getProductExportJobs().validate(
4132
+ {
4133
+ status,
4134
+ fromDate,
4135
+ toDate,
4136
+ q,
4137
+ pageNo,
4138
+ pageSize,
4139
+ },
4140
+ { abortEarly: false, allowUnknown: true }
4141
+ );
4142
+ if (error) {
4143
+ return Promise.reject(new FDKClientValidationError(error));
4144
+ }
4145
+
4146
+ // Showing warrnings if extra unknown parameters are found
4147
+ const {
4148
+ error: warrning,
4149
+ } = CatalogPlatformValidator.getProductExportJobs().validate(
4150
+ {
4151
+ status,
4152
+ fromDate,
4153
+ toDate,
4154
+ q,
4155
+ pageNo,
4156
+ pageSize,
4157
+ },
4158
+ { abortEarly: false, allowUnknown: false }
4159
+ );
4160
+ if (warrning) {
4161
+ Logger({
4162
+ level: "WARN",
4163
+ message: `Parameter Validation warrnings for platform > Catalog > getProductExportJobs \n ${warrning}`,
4164
+ });
4165
+ }
4166
+
4167
+ const query_params = {};
4168
+ query_params["status"] = status;
4169
+ query_params["from_date"] = fromDate;
4170
+ query_params["to_date"] = toDate;
4171
+ query_params["q"] = q;
4172
+ query_params["page_no"] = pageNo;
4173
+ query_params["page_size"] = pageSize;
4174
+
4175
+ const xHeaders = {};
4176
+
4177
+ const response = await PlatformAPIClient.execute(
4178
+ this.config,
4179
+ "get",
4180
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads`,
4181
+ query_params,
4182
+ undefined,
4183
+ { ...xHeaders, ...requestHeaders },
4184
+ { responseHeaders }
4185
+ );
4186
+
4187
+ let responseData = response;
4188
+ if (responseHeaders) {
4189
+ responseData = response[0];
4190
+ }
4191
+
4192
+ const {
4193
+ error: res_error,
4194
+ } = CatalogPlatformModel.ProductDownloadsResponse().validate(responseData, {
4195
+ abortEarly: false,
4196
+ allowUnknown: true,
4197
+ });
4198
+
4199
+ if (res_error) {
4200
+ if (this.config.options.strictResponseCheck === true) {
4201
+ return Promise.reject(new FDKResponseValidationError(res_error));
4202
+ } else {
4203
+ Logger({
4204
+ level: "WARN",
4205
+ message: `Response Validation Warnings for platform > Catalog > getProductExportJobs \n ${res_error}`,
4206
+ });
4207
+ }
4208
+ }
4209
+
4210
+ return response;
4211
+ }
4212
+
4213
+ /**
4214
+ * @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object
4215
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4216
+ * @param {import("../PlatformAPIClient").Options} - Options
4217
+ * @returns {Promise<CatalogPlatformModel.Product>} - Success response
4218
+ * @name getProductSize
4219
+ * @summary: Get product size details.
4220
+ * @description: Retrieve data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/).
4221
+ */
4222
+ async getProductSize(
4223
+ { itemId, requestHeaders } = { requestHeaders: {} },
4224
+ { responseHeaders } = { responseHeaders: false }
4225
+ ) {
4226
+ const { error } = CatalogPlatformValidator.getProductSize().validate(
4227
+ {
4228
+ itemId,
4229
+ },
4230
+ { abortEarly: false, allowUnknown: true }
4231
+ );
4232
+ if (error) {
4233
+ return Promise.reject(new FDKClientValidationError(error));
4234
+ }
4235
+
4236
+ // Showing warrnings if extra unknown parameters are found
4237
+ const {
4238
+ error: warrning,
4239
+ } = CatalogPlatformValidator.getProductSize().validate(
4240
+ {
4241
+ itemId,
4242
+ },
4243
+ { abortEarly: false, allowUnknown: false }
4244
+ );
4245
+ if (warrning) {
4246
+ Logger({
4247
+ level: "WARN",
4248
+ message: `Parameter Validation warrnings for platform > Catalog > getProductSize \n ${warrning}`,
4249
+ });
4250
+ }
4251
+
4252
+ const query_params = {};
4253
+
4254
+ const xHeaders = {};
4255
+
4256
+ const response = await PlatformAPIClient.execute(
4257
+ this.config,
4258
+ "get",
4259
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes`,
4260
+ query_params,
4261
+ undefined,
4262
+ { ...xHeaders, ...requestHeaders },
4263
+ { responseHeaders }
4264
+ );
4265
+
4266
+ let responseData = response;
4267
+ if (responseHeaders) {
4268
+ responseData = response[0];
4269
+ }
4270
+
4271
+ const {
4272
+ error: res_error,
4273
+ } = CatalogPlatformModel.Product().validate(responseData, {
4274
+ abortEarly: false,
4275
+ allowUnknown: true,
4276
+ });
4277
+
4278
+ if (res_error) {
4279
+ if (this.config.options.strictResponseCheck === true) {
4280
+ return Promise.reject(new FDKResponseValidationError(res_error));
4281
+ } else {
4282
+ Logger({
4283
+ level: "WARN",
4284
+ message: `Response Validation Warnings for platform > Catalog > getProductSize \n ${res_error}`,
4119
4285
  });
4120
4286
  }
4121
4287
  }
@@ -4124,31 +4290,20 @@ class Catalog {
4124
4290
  }
4125
4291
 
4126
4292
  /**
4127
- * @param {CatalogPlatformValidator.GetProductExportJobsParam} arg - Arg object
4293
+ * @param {CatalogPlatformValidator.GetProductTagsParam} arg - Arg object
4128
4294
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4129
4295
  * @param {import("../PlatformAPIClient").Options} - Options
4130
- * @returns {Promise<CatalogPlatformModel.ProductDownloadsResponseSchema>}
4131
- * - Success response
4132
- *
4133
- * @name getProductExportJobs
4134
- * @summary: Get product export jobs
4135
- * @description: Get product export jobs specific to a company based on queries like query param, date range and status. View details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductExportJobs/).
4296
+ * @returns {Promise<CatalogPlatformModel.ProductTagsViewResponse>} - Success response
4297
+ * @name getProductTags
4298
+ * @summary: Get product tags.
4299
+ * @description: Retrieve tags data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTags/).
4136
4300
  */
4137
- async getProductExportJobs(
4138
- { status, fromDate, toDate, q, pageNo, pageSize, requestHeaders } = {
4139
- requestHeaders: {},
4140
- },
4301
+ async getProductTags(
4302
+ { requestHeaders } = { requestHeaders: {} },
4141
4303
  { responseHeaders } = { responseHeaders: false }
4142
4304
  ) {
4143
- const { error } = CatalogPlatformValidator.getProductExportJobs().validate(
4144
- {
4145
- status,
4146
- fromDate,
4147
- toDate,
4148
- q,
4149
- pageNo,
4150
- pageSize,
4151
- },
4305
+ const { error } = CatalogPlatformValidator.getProductTags().validate(
4306
+ {},
4152
4307
  { abortEarly: false, allowUnknown: true }
4153
4308
  );
4154
4309
  if (error) {
@@ -4158,38 +4313,25 @@ class Catalog {
4158
4313
  // Showing warrnings if extra unknown parameters are found
4159
4314
  const {
4160
4315
  error: warrning,
4161
- } = CatalogPlatformValidator.getProductExportJobs().validate(
4162
- {
4163
- status,
4164
- fromDate,
4165
- toDate,
4166
- q,
4167
- pageNo,
4168
- pageSize,
4169
- },
4316
+ } = CatalogPlatformValidator.getProductTags().validate(
4317
+ {},
4170
4318
  { abortEarly: false, allowUnknown: false }
4171
4319
  );
4172
4320
  if (warrning) {
4173
4321
  Logger({
4174
4322
  level: "WARN",
4175
- message: `Parameter Validation warrnings for platform > Catalog > getProductExportJobs \n ${warrning}`,
4323
+ message: `Parameter Validation warrnings for platform > Catalog > getProductTags \n ${warrning}`,
4176
4324
  });
4177
4325
  }
4178
4326
 
4179
4327
  const query_params = {};
4180
- query_params["status"] = status;
4181
- query_params["from_date"] = fromDate;
4182
- query_params["to_date"] = toDate;
4183
- query_params["q"] = q;
4184
- query_params["page_no"] = pageNo;
4185
- query_params["page_size"] = pageSize;
4186
4328
 
4187
4329
  const xHeaders = {};
4188
4330
 
4189
4331
  const response = await PlatformAPIClient.execute(
4190
4332
  this.config,
4191
4333
  "get",
4192
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/`,
4334
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/tags`,
4193
4335
  query_params,
4194
4336
  undefined,
4195
4337
  { ...xHeaders, ...requestHeaders },
@@ -4203,10 +4345,10 @@ class Catalog {
4203
4345
 
4204
4346
  const {
4205
4347
  error: res_error,
4206
- } = CatalogPlatformModel.ProductDownloadsResponseSchema().validate(
4207
- responseData,
4208
- { abortEarly: false, allowUnknown: true }
4209
- );
4348
+ } = CatalogPlatformModel.ProductTagsViewResponse().validate(responseData, {
4349
+ abortEarly: false,
4350
+ allowUnknown: true,
4351
+ });
4210
4352
 
4211
4353
  if (res_error) {
4212
4354
  if (this.config.options.strictResponseCheck === true) {
@@ -4214,7 +4356,7 @@ class Catalog {
4214
4356
  } else {
4215
4357
  Logger({
4216
4358
  level: "WARN",
4217
- message: `Response Validation Warnings for platform > Catalog > getProductExportJobs \n ${res_error}`,
4359
+ message: `Response Validation Warnings for platform > Catalog > getProductTags \n ${res_error}`,
4218
4360
  });
4219
4361
  }
4220
4362
  }
@@ -4223,27 +4365,25 @@ class Catalog {
4223
4365
  }
4224
4366
 
4225
4367
  /**
4226
- * @param {CatalogPlatformValidator.GetProductSizeParam} arg - Arg object
4368
+ * @param {CatalogPlatformValidator.GetProductTemplateBySlugParam} arg - Arg object
4227
4369
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4228
4370
  * @param {import("../PlatformAPIClient").Options} - Options
4229
- * @returns {Promise<CatalogPlatformModel.ProductListingResponseSchema>} -
4230
- * Success response
4231
- * @name getProductSize
4232
- * @summary: List product size
4233
- * @description: Retrieve data associated to a particular product size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductSize/).
4371
+ * @returns {Promise<CatalogPlatformModel.GetProductTemplateSlugResponse>}
4372
+ * - Success response
4373
+ *
4374
+ * @name getProductTemplateBySlug
4375
+ * @summary: Update marketplace optin
4376
+ * @description: This API retrieves template for a given slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTemplateBySlug/).
4234
4377
  */
4235
- async getProductSize(
4236
- { itemId, itemCode, brandUid, uid, requestHeaders } = {
4237
- requestHeaders: {},
4238
- },
4378
+ async getProductTemplateBySlug(
4379
+ { slug, requestHeaders } = { requestHeaders: {} },
4239
4380
  { responseHeaders } = { responseHeaders: false }
4240
4381
  ) {
4241
- const { error } = CatalogPlatformValidator.getProductSize().validate(
4382
+ const {
4383
+ error,
4384
+ } = CatalogPlatformValidator.getProductTemplateBySlug().validate(
4242
4385
  {
4243
- itemId,
4244
- itemCode,
4245
- brandUid,
4246
- uid,
4386
+ slug,
4247
4387
  },
4248
4388
  { abortEarly: false, allowUnknown: true }
4249
4389
  );
@@ -4254,33 +4394,27 @@ class Catalog {
4254
4394
  // Showing warrnings if extra unknown parameters are found
4255
4395
  const {
4256
4396
  error: warrning,
4257
- } = CatalogPlatformValidator.getProductSize().validate(
4397
+ } = CatalogPlatformValidator.getProductTemplateBySlug().validate(
4258
4398
  {
4259
- itemId,
4260
- itemCode,
4261
- brandUid,
4262
- uid,
4399
+ slug,
4263
4400
  },
4264
4401
  { abortEarly: false, allowUnknown: false }
4265
4402
  );
4266
4403
  if (warrning) {
4267
4404
  Logger({
4268
4405
  level: "WARN",
4269
- message: `Parameter Validation warrnings for platform > Catalog > getProductSize \n ${warrning}`,
4406
+ message: `Parameter Validation warrnings for platform > Catalog > getProductTemplateBySlug \n ${warrning}`,
4270
4407
  });
4271
4408
  }
4272
4409
 
4273
4410
  const query_params = {};
4274
- query_params["item_code"] = itemCode;
4275
- query_params["brand_uid"] = brandUid;
4276
- query_params["uid"] = uid;
4277
4411
 
4278
4412
  const xHeaders = {};
4279
4413
 
4280
4414
  const response = await PlatformAPIClient.execute(
4281
4415
  this.config,
4282
4416
  "get",
4283
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/${itemId}/sizes/`,
4417
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}`,
4284
4418
  query_params,
4285
4419
  undefined,
4286
4420
  { ...xHeaders, ...requestHeaders },
@@ -4294,7 +4428,7 @@ class Catalog {
4294
4428
 
4295
4429
  const {
4296
4430
  error: res_error,
4297
- } = CatalogPlatformModel.ProductListingResponseSchema().validate(
4431
+ } = CatalogPlatformModel.GetProductTemplateSlugResponse().validate(
4298
4432
  responseData,
4299
4433
  { abortEarly: false, allowUnknown: true }
4300
4434
  );
@@ -4305,7 +4439,7 @@ class Catalog {
4305
4439
  } else {
4306
4440
  Logger({
4307
4441
  level: "WARN",
4308
- message: `Response Validation Warnings for platform > Catalog > getProductSize \n ${res_error}`,
4442
+ message: `Response Validation Warnings for platform > Catalog > getProductTemplateBySlug \n ${res_error}`,
4309
4443
  });
4310
4444
  }
4311
4445
  }
@@ -4314,21 +4448,23 @@ class Catalog {
4314
4448
  }
4315
4449
 
4316
4450
  /**
4317
- * @param {CatalogPlatformValidator.GetProductTagsParam} arg - Arg object
4451
+ * @param {CatalogPlatformValidator.GetProductValidationParam} arg - Arg object
4318
4452
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4319
4453
  * @param {import("../PlatformAPIClient").Options} - Options
4320
- * @returns {Promise<CatalogPlatformModel.ProductTagsViewResponseSchema>} -
4321
- * Success response
4322
- * @name getProductTags
4323
- * @summary: List product tags
4324
- * @description: Retrieve tags data associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductTags/).
4454
+ * @returns {Promise<CatalogPlatformModel.ValidateProduct>} - Success response
4455
+ * @name getProductValidation
4456
+ * @summary: Get product validation.
4457
+ * @description: Retrieve validation data for a specific product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductValidation/).
4325
4458
  */
4326
- async getProductTags(
4327
- { requestHeaders } = { requestHeaders: {} },
4459
+ async getProductValidation(
4460
+ { type, slug, requestHeaders } = { requestHeaders: {} },
4328
4461
  { responseHeaders } = { responseHeaders: false }
4329
4462
  ) {
4330
- const { error } = CatalogPlatformValidator.getProductTags().validate(
4331
- {},
4463
+ const { error } = CatalogPlatformValidator.getProductValidation().validate(
4464
+ {
4465
+ type,
4466
+ slug,
4467
+ },
4332
4468
  { abortEarly: false, allowUnknown: true }
4333
4469
  );
4334
4470
  if (error) {
@@ -4338,25 +4474,30 @@ class Catalog {
4338
4474
  // Showing warrnings if extra unknown parameters are found
4339
4475
  const {
4340
4476
  error: warrning,
4341
- } = CatalogPlatformValidator.getProductTags().validate(
4342
- {},
4477
+ } = CatalogPlatformValidator.getProductValidation().validate(
4478
+ {
4479
+ type,
4480
+ slug,
4481
+ },
4343
4482
  { abortEarly: false, allowUnknown: false }
4344
4483
  );
4345
4484
  if (warrning) {
4346
4485
  Logger({
4347
4486
  level: "WARN",
4348
- message: `Parameter Validation warrnings for platform > Catalog > getProductTags \n ${warrning}`,
4487
+ message: `Parameter Validation warrnings for platform > Catalog > getProductValidation \n ${warrning}`,
4349
4488
  });
4350
4489
  }
4351
4490
 
4352
4491
  const query_params = {};
4492
+ query_params["type"] = type;
4493
+ query_params["slug"] = slug;
4353
4494
 
4354
4495
  const xHeaders = {};
4355
4496
 
4356
4497
  const response = await PlatformAPIClient.execute(
4357
4498
  this.config,
4358
4499
  "get",
4359
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/tags`,
4500
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/validation`,
4360
4501
  query_params,
4361
4502
  undefined,
4362
4503
  { ...xHeaders, ...requestHeaders },
@@ -4370,10 +4511,10 @@ class Catalog {
4370
4511
 
4371
4512
  const {
4372
4513
  error: res_error,
4373
- } = CatalogPlatformModel.ProductTagsViewResponseSchema().validate(
4374
- responseData,
4375
- { abortEarly: false, allowUnknown: true }
4376
- );
4514
+ } = CatalogPlatformModel.ValidateProduct().validate(responseData, {
4515
+ abortEarly: false,
4516
+ allowUnknown: true,
4517
+ });
4377
4518
 
4378
4519
  if (res_error) {
4379
4520
  if (this.config.options.strictResponseCheck === true) {
@@ -4381,7 +4522,7 @@ class Catalog {
4381
4522
  } else {
4382
4523
  Logger({
4383
4524
  level: "WARN",
4384
- message: `Response Validation Warnings for platform > Catalog > getProductTags \n ${res_error}`,
4525
+ message: `Response Validation Warnings for platform > Catalog > getProductValidation \n ${res_error}`,
4385
4526
  });
4386
4527
  }
4387
4528
  }
@@ -4390,20 +4531,27 @@ class Catalog {
4390
4531
  }
4391
4532
 
4392
4533
  /**
4393
- * @param {CatalogPlatformValidator.GetProductValidationParam} arg - Arg object
4534
+ * @param {CatalogPlatformValidator.GetProductVerificationDetailsParam} arg
4535
+ * - Arg object
4536
+ *
4394
4537
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4395
4538
  * @param {import("../PlatformAPIClient").Options} - Options
4396
- * @returns {Promise<CatalogPlatformModel.ValidateProduct>} - Success response
4397
- * @name getProductValidation
4398
- * @summary: Get valid products
4399
- * @description: Retrieve validation data for products at company level. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductValidation/).
4539
+ * @returns {Promise<CatalogPlatformModel.ProductVerificationModel>} -
4540
+ * Success response
4541
+ * @name getProductVerificationDetails
4542
+ * @summary: Get the verification detail of a product
4543
+ * @description: Get the verification detail of a product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProductVerificationDetails/).
4400
4544
  */
4401
- async getProductValidation(
4402
- { requestHeaders } = { requestHeaders: {} },
4545
+ async getProductVerificationDetails(
4546
+ { itemId, requestHeaders } = { requestHeaders: {} },
4403
4547
  { responseHeaders } = { responseHeaders: false }
4404
4548
  ) {
4405
- const { error } = CatalogPlatformValidator.getProductValidation().validate(
4406
- {},
4549
+ const {
4550
+ error,
4551
+ } = CatalogPlatformValidator.getProductVerificationDetails().validate(
4552
+ {
4553
+ itemId,
4554
+ },
4407
4555
  { abortEarly: false, allowUnknown: true }
4408
4556
  );
4409
4557
  if (error) {
@@ -4413,14 +4561,16 @@ class Catalog {
4413
4561
  // Showing warrnings if extra unknown parameters are found
4414
4562
  const {
4415
4563
  error: warrning,
4416
- } = CatalogPlatformValidator.getProductValidation().validate(
4417
- {},
4564
+ } = CatalogPlatformValidator.getProductVerificationDetails().validate(
4565
+ {
4566
+ itemId,
4567
+ },
4418
4568
  { abortEarly: false, allowUnknown: false }
4419
4569
  );
4420
4570
  if (warrning) {
4421
4571
  Logger({
4422
4572
  level: "WARN",
4423
- message: `Parameter Validation warrnings for platform > Catalog > getProductValidation \n ${warrning}`,
4573
+ message: `Parameter Validation warrnings for platform > Catalog > getProductVerificationDetails \n ${warrning}`,
4424
4574
  });
4425
4575
  }
4426
4576
 
@@ -4431,7 +4581,7 @@ class Catalog {
4431
4581
  const response = await PlatformAPIClient.execute(
4432
4582
  this.config,
4433
4583
  "get",
4434
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/validation/`,
4584
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/verification/products/${itemId}`,
4435
4585
  query_params,
4436
4586
  undefined,
4437
4587
  { ...xHeaders, ...requestHeaders },
@@ -4445,7 +4595,7 @@ class Catalog {
4445
4595
 
4446
4596
  const {
4447
4597
  error: res_error,
4448
- } = CatalogPlatformModel.ValidateProduct().validate(responseData, {
4598
+ } = CatalogPlatformModel.ProductVerificationModel().validate(responseData, {
4449
4599
  abortEarly: false,
4450
4600
  allowUnknown: true,
4451
4601
  });
@@ -4456,7 +4606,7 @@ class Catalog {
4456
4606
  } else {
4457
4607
  Logger({
4458
4608
  level: "WARN",
4459
- message: `Response Validation Warnings for platform > Catalog > getProductValidation \n ${res_error}`,
4609
+ message: `Response Validation Warnings for platform > Catalog > getProductVerificationDetails \n ${res_error}`,
4460
4610
  });
4461
4611
  }
4462
4612
  }
@@ -4471,12 +4621,13 @@ class Catalog {
4471
4621
  * @returns {Promise<CatalogPlatformModel.ProductListingResponseV2>} -
4472
4622
  * Success response
4473
4623
  * @name getProducts
4474
- * @summary: List products
4475
- * @description: Retrieve a list of available products - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProducts/).
4624
+ * @summary: Retrieve products.
4625
+ * @description: Retrieve a list of products available - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getProducts/).
4476
4626
  */
4477
4627
  async getProducts(
4478
4628
  {
4479
4629
  brandIds,
4630
+ multiSize,
4480
4631
  categoryIds,
4481
4632
  itemIds,
4482
4633
  departmentIds,
@@ -4498,6 +4649,7 @@ class Catalog {
4498
4649
  const { error } = CatalogPlatformValidator.getProducts().validate(
4499
4650
  {
4500
4651
  brandIds,
4652
+ multiSize,
4501
4653
  categoryIds,
4502
4654
  itemIds,
4503
4655
  departmentIds,
@@ -4523,6 +4675,7 @@ class Catalog {
4523
4675
  const { error: warrning } = CatalogPlatformValidator.getProducts().validate(
4524
4676
  {
4525
4677
  brandIds,
4678
+ multiSize,
4526
4679
  categoryIds,
4527
4680
  itemIds,
4528
4681
  departmentIds,
@@ -4549,6 +4702,7 @@ class Catalog {
4549
4702
 
4550
4703
  const query_params = {};
4551
4704
  query_params["brand_ids"] = brandIds;
4705
+ query_params["multi_size"] = multiSize;
4552
4706
  query_params["category_ids"] = categoryIds;
4553
4707
  query_params["item_ids"] = itemIds;
4554
4708
  query_params["department_ids"] = departmentIds;
@@ -4569,7 +4723,7 @@ class Catalog {
4569
4723
  const response = await PlatformAPIClient.execute(
4570
4724
  this.config,
4571
4725
  "get",
4572
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/`,
4726
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products`,
4573
4727
  query_params,
4574
4728
  undefined,
4575
4729
  { ...xHeaders, ...requestHeaders },
@@ -4602,84 +4756,14 @@ class Catalog {
4602
4756
  return response;
4603
4757
  }
4604
4758
 
4605
- /**
4606
- * @param {Object} arg - Arg object.
4607
- * @param {number[]} [arg.brandIds] - Get multiple products filtered by Brand Ids
4608
- * @param {number[]} [arg.categoryIds] - Get multiple products filtered by
4609
- * Category Ids
4610
- * @param {number[]} [arg.itemIds] - Get multiple products filtered by Item Ids
4611
- * @param {number[]} [arg.departmentIds] - Get multiple products filtered by
4612
- * Department Ids
4613
- * @param {string[]} [arg.itemCode] - Get multiple products filtered by Item Code
4614
- * @param {string} [arg.name] - Get multiple products filtered by Name (Pattern Match)
4615
- * @param {string} [arg.slug] - Get multiple products filtered by Slug
4616
- * @param {string[]} [arg.allIdentifiers] - Get multiple products filtered
4617
- * by All Identifiers
4618
- * @param {string} [arg.q] - Get multiple products filtered by q string
4619
- * @param {string[]} [arg.tags] - Get multiple products filtered by tags
4620
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
4621
- * page. Default is 10.
4622
- * @param {string} [arg.sortOn] - Field which is to be used for sorting,
4623
- * default is latest. Value can be latest (modified_on) or created (record id)
4624
- * @returns {Paginator<CatalogPlatformModel.ProductListingResponseV2>}
4625
- * @summary: List products
4626
- * @description: Retrieve a list of available products
4627
- */
4628
- getProductsPaginator({
4629
- brandIds,
4630
- categoryIds,
4631
- itemIds,
4632
- departmentIds,
4633
- itemCode,
4634
- name,
4635
- slug,
4636
- allIdentifiers,
4637
- q,
4638
- tags,
4639
- pageSize,
4640
- sortOn,
4641
- } = {}) {
4642
- const paginator = new Paginator();
4643
- const callback = async () => {
4644
- const pageId = paginator.nextId;
4645
- const pageNo = paginator.pageNo;
4646
- const pageType = "cursor";
4647
- const data = await this.getProducts({
4648
- brandIds: brandIds,
4649
- categoryIds: categoryIds,
4650
- itemIds: itemIds,
4651
- departmentIds: departmentIds,
4652
- itemCode: itemCode,
4653
- name: name,
4654
- slug: slug,
4655
- allIdentifiers: allIdentifiers,
4656
- q: q,
4657
- tags: tags,
4658
- pageNo: pageNo,
4659
- pageSize: pageSize,
4660
- pageType: pageType,
4661
- sortOn: sortOn,
4662
- pageId: pageId,
4663
- });
4664
- paginator.setPaginator({
4665
- hasNext: data.page.has_next ? true : false,
4666
- nextId: data.page.next_id,
4667
- });
4668
- return data;
4669
- };
4670
- paginator.setCallback(callback.bind(this));
4671
- return paginator;
4672
- }
4673
-
4674
4759
  /**
4675
4760
  * @param {CatalogPlatformValidator.GetSellerInsightsParam} arg - Arg object
4676
4761
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4677
4762
  * @param {import("../PlatformAPIClient").Options} - Options
4678
- * @returns {Promise<CatalogPlatformModel.CrossSellingResponseSchema>} -
4679
- * Success response
4763
+ * @returns {Promise<CatalogPlatformModel.CrossSellingResponse>} - Success response
4680
4764
  * @name getSellerInsights
4681
- * @summary: Get seller catalog counts
4682
- * @description: Retrieve the count of catalog related data for sellers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSellerInsights/).
4765
+ * @summary: Get seller insights.
4766
+ * @description: Retrieve insights and analytics related to sellers within the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSellerInsights/).
4683
4767
  */
4684
4768
  async getSellerInsights(
4685
4769
  { sellerAppId, requestHeaders } = { requestHeaders: {} },
@@ -4718,7 +4802,7 @@ class Catalog {
4718
4802
  const response = await PlatformAPIClient.execute(
4719
4803
  this.config,
4720
4804
  "get",
4721
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/cross-selling/${sellerAppId}/analytics/insights/`,
4805
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/cross-selling/${sellerAppId}/analytics/insights`,
4722
4806
  query_params,
4723
4807
  undefined,
4724
4808
  { ...xHeaders, ...requestHeaders },
@@ -4732,10 +4816,10 @@ class Catalog {
4732
4816
 
4733
4817
  const {
4734
4818
  error: res_error,
4735
- } = CatalogPlatformModel.CrossSellingResponseSchema().validate(
4736
- responseData,
4737
- { abortEarly: false, allowUnknown: true }
4738
- );
4819
+ } = CatalogPlatformModel.CrossSellingResponse().validate(responseData, {
4820
+ abortEarly: false,
4821
+ allowUnknown: true,
4822
+ });
4739
4823
 
4740
4824
  if (res_error) {
4741
4825
  if (this.config.options.strictResponseCheck === true) {
@@ -4757,8 +4841,8 @@ class Catalog {
4757
4841
  * @param {import("../PlatformAPIClient").Options} - Options
4758
4842
  * @returns {Promise<CatalogPlatformModel.HSNDataInsertV2>} - Success response
4759
4843
  * @name getSingleProductHSNCode
4760
- * @summary: Get product HSN code
4761
- * @description: Retrieve HSN details associated with company ID and reporting HSN - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSingleProductHSNCode/).
4844
+ * @summary: Get single product HSN code.
4845
+ * @description: Retrieve the HSN code for a single product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSingleProductHSNCode/).
4762
4846
  */
4763
4847
  async getSingleProductHSNCode(
4764
4848
  { reportingHsn, requestHeaders } = { requestHeaders: {} },
@@ -4832,19 +4916,17 @@ class Catalog {
4832
4916
  * @param {CatalogPlatformValidator.GetSizeGuideParam} arg - Arg object
4833
4917
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4834
4918
  * @param {import("../PlatformAPIClient").Options} - Options
4835
- * @returns {Promise<CatalogPlatformModel.SizeGuideResponseSchema>} - Success response
4919
+ * @returns {Promise<CatalogPlatformModel.SizeGuideResponse>} - Success response
4836
4920
  * @name getSizeGuide
4837
- * @summary: Get size guide
4838
- * @description: Retrieve data associated about a specific size guide. It contains meta deta like header values like for shoulder, head, etc. and measurement unit like cm and values contains sizes for the same. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuide/).
4921
+ * @summary: Get size guide details.
4922
+ * @description: Retrieve data associated about a specific size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuide/).
4839
4923
  */
4840
4924
  async getSizeGuide(
4841
4925
  { id, requestHeaders } = { requestHeaders: {} },
4842
4926
  { responseHeaders } = { responseHeaders: false }
4843
4927
  ) {
4844
4928
  const { error } = CatalogPlatformValidator.getSizeGuide().validate(
4845
- {
4846
- id,
4847
- },
4929
+ { id },
4848
4930
  { abortEarly: false, allowUnknown: true }
4849
4931
  );
4850
4932
  if (error) {
@@ -4855,9 +4937,7 @@ class Catalog {
4855
4937
  const {
4856
4938
  error: warrning,
4857
4939
  } = CatalogPlatformValidator.getSizeGuide().validate(
4858
- {
4859
- id,
4860
- },
4940
+ { id },
4861
4941
  { abortEarly: false, allowUnknown: false }
4862
4942
  );
4863
4943
  if (warrning) {
@@ -4874,7 +4954,7 @@ class Catalog {
4874
4954
  const response = await PlatformAPIClient.execute(
4875
4955
  this.config,
4876
4956
  "get",
4877
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`,
4957
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}`,
4878
4958
  query_params,
4879
4959
  undefined,
4880
4960
  { ...xHeaders, ...requestHeaders },
@@ -4888,7 +4968,7 @@ class Catalog {
4888
4968
 
4889
4969
  const {
4890
4970
  error: res_error,
4891
- } = CatalogPlatformModel.SizeGuideResponseSchema().validate(responseData, {
4971
+ } = CatalogPlatformModel.SizeGuideResponse().validate(responseData, {
4892
4972
  abortEarly: false,
4893
4973
  allowUnknown: true,
4894
4974
  });
@@ -4913,11 +4993,11 @@ class Catalog {
4913
4993
  * @param {import("../PlatformAPIClient").Options} - Options
4914
4994
  * @returns {Promise<CatalogPlatformModel.ListSizeGuide>} - Success response
4915
4995
  * @name getSizeGuides
4916
- * @summary: List size guides
4917
- * @description: Allows to view all the size guides associated to the seller. Each size guide contains meta deta like header values like for shoulder, head, etc. and measurement unit like cm and values contains sizes for the same. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuides/).
4996
+ * @summary: Retrieve size guides.
4997
+ * @description: Allows to view all the size guides associated to the seller. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getSizeGuides/).
4918
4998
  */
4919
4999
  async getSizeGuides(
4920
- { active, q, tag, pageNo, pageSize, brandId, requestHeaders } = {
5000
+ { active, q, brandId, tag, pageNo, pageSize, requestHeaders } = {
4921
5001
  requestHeaders: {},
4922
5002
  },
4923
5003
  { responseHeaders } = { responseHeaders: false }
@@ -4926,10 +5006,10 @@ class Catalog {
4926
5006
  {
4927
5007
  active,
4928
5008
  q,
5009
+ brandId,
4929
5010
  tag,
4930
5011
  pageNo,
4931
5012
  pageSize,
4932
- brandId,
4933
5013
  },
4934
5014
  { abortEarly: false, allowUnknown: true }
4935
5015
  );
@@ -4944,10 +5024,10 @@ class Catalog {
4944
5024
  {
4945
5025
  active,
4946
5026
  q,
5027
+ brandId,
4947
5028
  tag,
4948
5029
  pageNo,
4949
5030
  pageSize,
4950
- brandId,
4951
5031
  },
4952
5032
  { abortEarly: false, allowUnknown: false }
4953
5033
  );
@@ -4961,10 +5041,10 @@ class Catalog {
4961
5041
  const query_params = {};
4962
5042
  query_params["active"] = active;
4963
5043
  query_params["q"] = q;
5044
+ query_params["brand_id"] = brandId;
4964
5045
  query_params["tag"] = tag;
4965
5046
  query_params["page_no"] = pageNo;
4966
5047
  query_params["page_size"] = pageSize;
4967
- query_params["brand_id"] = brandId;
4968
5048
 
4969
5049
  const xHeaders = {};
4970
5050
 
@@ -5010,8 +5090,8 @@ class Catalog {
5010
5090
  * @param {import("../PlatformAPIClient").Options} - Options
5011
5091
  * @returns {Promise<CatalogPlatformModel.OptinStoreDetails>} - Success response
5012
5092
  * @name getStoreDetail
5013
- * @summary: Get selling location
5014
- * @description: Retrieve the details of the selling location (store) associated with a specific company passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getStoreDetail/).
5093
+ * @summary: Get the Store details.
5094
+ * @description: Get the details of the store associated with the company ID passed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getStoreDetail/).
5015
5095
  */
5016
5096
  async getStoreDetail(
5017
5097
  { q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
@@ -5057,7 +5137,7 @@ class Catalog {
5057
5137
  const response = await PlatformAPIClient.execute(
5058
5138
  this.config,
5059
5139
  "get",
5060
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/marketplaces/location-details/`,
5140
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/marketplaces/location-details`,
5061
5141
  query_params,
5062
5142
  undefined,
5063
5143
  { ...xHeaders, ...requestHeaders },
@@ -5091,43 +5171,92 @@ class Catalog {
5091
5171
  }
5092
5172
 
5093
5173
  /**
5094
- * @param {Object} arg - Arg object.
5095
- * @param {string} [arg.q] - The search related the store for the company id.
5096
- * @param {number} [arg.pageSize] - Number of records that can be seen on
5097
- * the page for the company id.
5098
- * @returns {Paginator<CatalogPlatformModel.OptinStoreDetails>}
5099
- * @summary: Get selling location
5100
- * @description: Retrieve the details of the selling location (store) associated with a specific company passed.
5174
+ * @param {CatalogPlatformValidator.GetVariantTypesParam} arg - Arg object
5175
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5176
+ * @param {import("../PlatformAPIClient").Options} - Options
5177
+ * @returns {Promise<CatalogPlatformModel.VariantTypesResponse>} - Success response
5178
+ * @name getVariantTypes
5179
+ * @summary: Get variant type list
5180
+ * @description: This API gets meta associated to products. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantTypes/).
5101
5181
  */
5102
- getStoreDetailPaginator({ q, pageSize } = {}) {
5103
- const paginator = new Paginator();
5104
- const callback = async () => {
5105
- const pageId = paginator.nextId;
5106
- const pageNo = paginator.pageNo;
5107
- const pageType = "number";
5108
- const data = await this.getStoreDetail({
5109
- q: q,
5110
- pageNo: pageNo,
5111
- pageSize: pageSize,
5112
- });
5113
- paginator.setPaginator({
5114
- hasNext: data.page.has_next ? true : false,
5115
- nextId: data.page.next_id,
5182
+ async getVariantTypes(
5183
+ { templateTag, requestHeaders } = { requestHeaders: {} },
5184
+ { responseHeaders } = { responseHeaders: false }
5185
+ ) {
5186
+ const { error } = CatalogPlatformValidator.getVariantTypes().validate(
5187
+ {
5188
+ templateTag,
5189
+ },
5190
+ { abortEarly: false, allowUnknown: true }
5191
+ );
5192
+ if (error) {
5193
+ return Promise.reject(new FDKClientValidationError(error));
5194
+ }
5195
+
5196
+ // Showing warrnings if extra unknown parameters are found
5197
+ const {
5198
+ error: warrning,
5199
+ } = CatalogPlatformValidator.getVariantTypes().validate(
5200
+ {
5201
+ templateTag,
5202
+ },
5203
+ { abortEarly: false, allowUnknown: false }
5204
+ );
5205
+ if (warrning) {
5206
+ Logger({
5207
+ level: "WARN",
5208
+ message: `Parameter Validation warrnings for platform > Catalog > getVariantTypes \n ${warrning}`,
5116
5209
  });
5117
- return data;
5118
- };
5119
- paginator.setCallback(callback.bind(this));
5120
- return paginator;
5210
+ }
5211
+
5212
+ const query_params = {};
5213
+ query_params["template_tag"] = templateTag;
5214
+
5215
+ const xHeaders = {};
5216
+
5217
+ const response = await PlatformAPIClient.execute(
5218
+ this.config,
5219
+ "get",
5220
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/variant-types`,
5221
+ query_params,
5222
+ undefined,
5223
+ { ...xHeaders, ...requestHeaders },
5224
+ { responseHeaders }
5225
+ );
5226
+
5227
+ let responseData = response;
5228
+ if (responseHeaders) {
5229
+ responseData = response[0];
5230
+ }
5231
+
5232
+ const {
5233
+ error: res_error,
5234
+ } = CatalogPlatformModel.VariantTypesResponse().validate(responseData, {
5235
+ abortEarly: false,
5236
+ allowUnknown: true,
5237
+ });
5238
+
5239
+ if (res_error) {
5240
+ if (this.config.options.strictResponseCheck === true) {
5241
+ return Promise.reject(new FDKResponseValidationError(res_error));
5242
+ } else {
5243
+ Logger({
5244
+ level: "WARN",
5245
+ message: `Response Validation Warnings for platform > Catalog > getVariantTypes \n ${res_error}`,
5246
+ });
5247
+ }
5248
+ }
5249
+
5250
+ return response;
5121
5251
  }
5122
5252
 
5123
5253
  /**
5124
5254
  * @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object
5125
5255
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5126
5256
  * @param {import("../PlatformAPIClient").Options} - Options
5127
- * @returns {Promise<CatalogPlatformModel.ProductVariantsResponseSchema>} -
5128
- * Success response
5257
+ * @returns {Promise<CatalogPlatformModel.ProductVariantsResponse>} - Success response
5129
5258
  * @name getVariantsOfProducts
5130
- * @summary: Get variants
5259
+ * @summary: Get variants of products.
5131
5260
  * @description: Retrieve variants of a specific product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getVariantsOfProducts/).
5132
5261
  */
5133
5262
  async getVariantsOfProducts(
@@ -5191,10 +5320,10 @@ class Catalog {
5191
5320
 
5192
5321
  const {
5193
5322
  error: res_error,
5194
- } = CatalogPlatformModel.ProductVariantsResponseSchema().validate(
5195
- responseData,
5196
- { abortEarly: false, allowUnknown: true }
5197
- );
5323
+ } = CatalogPlatformModel.ProductVariantsResponse().validate(responseData, {
5324
+ abortEarly: false,
5325
+ allowUnknown: true,
5326
+ });
5198
5327
 
5199
5328
  if (res_error) {
5200
5329
  if (this.config.options.strictResponseCheck === true) {
@@ -5210,49 +5339,17 @@ class Catalog {
5210
5339
  return response;
5211
5340
  }
5212
5341
 
5213
- /**
5214
- * @param {Object} arg - Arg object.
5215
- * @param {number} arg.itemId - Get list of variants of item Id
5216
- * @param {string} arg.variantType - Get multiple products filtered by variant type
5217
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
5218
- * page. Default is 10.
5219
- * @returns {Paginator<CatalogPlatformModel.ProductVariantsResponseSchema>}
5220
- * @summary: Get variants
5221
- * @description: Retrieve variants of a specific product.
5222
- */
5223
- getVariantsOfProductsPaginator({ itemId, variantType, pageSize } = {}) {
5224
- const paginator = new Paginator();
5225
- const callback = async () => {
5226
- const pageId = paginator.nextId;
5227
- const pageNo = paginator.pageNo;
5228
- const pageType = "number";
5229
- const data = await this.getVariantsOfProducts({
5230
- itemId: itemId,
5231
- variantType: variantType,
5232
- pageNo: pageNo,
5233
- pageSize: pageSize,
5234
- });
5235
- paginator.setPaginator({
5236
- hasNext: data.page.has_next ? true : false,
5237
- nextId: data.page.next_id,
5238
- });
5239
- return data;
5240
- };
5241
- paginator.setCallback(callback.bind(this));
5242
- return paginator;
5243
- }
5244
-
5245
5342
  /**
5246
5343
  * @param {CatalogPlatformValidator.ListCategoriesParam} arg - Arg object
5247
5344
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5248
5345
  * @param {import("../PlatformAPIClient").Options} - Options
5249
- * @returns {Promise<CatalogPlatformModel.CategoryResponseSchema>} - Success response
5346
+ * @returns {Promise<CatalogPlatformModel.CategoryResponse>} - Success response
5250
5347
  * @name listCategories
5251
- * @summary: List categories
5252
- * @description: Retrieve a list of categories data associated to a specific company and queries passed in the request. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/).
5348
+ * @summary: List categories.
5349
+ * @description: Retrieve a list of meta associated available product categories in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listCategories/).
5253
5350
  */
5254
5351
  async listCategories(
5255
- { level, department, q, pageNo, pageSize, uids, slug, requestHeaders } = {
5352
+ { level, department, q, pageNo, pageSize, uids, requestHeaders } = {
5256
5353
  requestHeaders: {},
5257
5354
  },
5258
5355
  { responseHeaders } = { responseHeaders: false }
@@ -5265,7 +5362,6 @@ class Catalog {
5265
5362
  pageNo,
5266
5363
  pageSize,
5267
5364
  uids,
5268
- slug,
5269
5365
  },
5270
5366
  { abortEarly: false, allowUnknown: true }
5271
5367
  );
@@ -5284,7 +5380,6 @@ class Catalog {
5284
5380
  pageNo,
5285
5381
  pageSize,
5286
5382
  uids,
5287
- slug,
5288
5383
  },
5289
5384
  { abortEarly: false, allowUnknown: false }
5290
5385
  );
@@ -5302,14 +5397,13 @@ class Catalog {
5302
5397
  query_params["page_no"] = pageNo;
5303
5398
  query_params["page_size"] = pageSize;
5304
5399
  query_params["uids"] = uids;
5305
- query_params["slug"] = slug;
5306
5400
 
5307
5401
  const xHeaders = {};
5308
5402
 
5309
5403
  const response = await PlatformAPIClient.execute(
5310
5404
  this.config,
5311
5405
  "get",
5312
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/`,
5406
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/category`,
5313
5407
  query_params,
5314
5408
  undefined,
5315
5409
  { ...xHeaders, ...requestHeaders },
@@ -5323,7 +5417,7 @@ class Catalog {
5323
5417
 
5324
5418
  const {
5325
5419
  error: res_error,
5326
- } = CatalogPlatformModel.CategoryResponseSchema().validate(responseData, {
5420
+ } = CatalogPlatformModel.CategoryResponse().validate(responseData, {
5327
5421
  abortEarly: false,
5328
5422
  allowUnknown: true,
5329
5423
  });
@@ -5342,53 +5436,14 @@ class Catalog {
5342
5436
  return response;
5343
5437
  }
5344
5438
 
5345
- /**
5346
- * @param {Object} arg - Arg object.
5347
- * @param {string} [arg.level] - Get category for multiple levels
5348
- * @param {number} [arg.department] - Get category for multiple departments filtered
5349
- * @param {string} [arg.q] - Get multiple categories filtered by search string
5350
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
5351
- * page. Default is 10.
5352
- * @param {number[]} [arg.uids] - Get multiple categories filtered by category uids.
5353
- * @param {string} [arg.slug] - Get category by slug
5354
- * @returns {Paginator<CatalogPlatformModel.CategoryResponseSchema>}
5355
- * @summary: List categories
5356
- * @description: Retrieve a list of categories data associated to a specific company and queries passed in the request.
5357
- */
5358
- listCategoriesPaginator({ level, department, q, pageSize, uids, slug } = {}) {
5359
- const paginator = new Paginator();
5360
- const callback = async () => {
5361
- const pageId = paginator.nextId;
5362
- const pageNo = paginator.pageNo;
5363
- const pageType = "number";
5364
- const data = await this.listCategories({
5365
- level: level,
5366
- department: department,
5367
- q: q,
5368
- pageNo: pageNo,
5369
- pageSize: pageSize,
5370
- uids: uids,
5371
- slug: slug,
5372
- });
5373
- paginator.setPaginator({
5374
- hasNext: data.page.has_next ? true : false,
5375
- nextId: data.page.next_id,
5376
- });
5377
- return data;
5378
- };
5379
- paginator.setCallback(callback.bind(this));
5380
- return paginator;
5381
- }
5382
-
5383
5439
  /**
5384
5440
  * @param {CatalogPlatformValidator.ListDepartmentsDataParam} arg - Arg object
5385
5441
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5386
5442
  * @param {import("../PlatformAPIClient").Options} - Options
5387
- * @returns {Promise<CatalogPlatformModel.DepartmentsResponseSchema>} -
5388
- * Success response
5443
+ * @returns {Promise<CatalogPlatformModel.DepartmentsResponse>} - Success response
5389
5444
  * @name listDepartmentsData
5390
- * @summary: List company department
5391
- * @description: Allows you to list all departments data for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listDepartmentsData/).
5445
+ * @summary: List department data.
5446
+ * @description: Allows you to list all departments, also can search using name and filter active and incative departments, and item type. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listDepartmentsData/).
5392
5447
  */
5393
5448
  async listDepartmentsData(
5394
5449
  {
@@ -5398,7 +5453,7 @@ class Catalog {
5398
5453
  name,
5399
5454
  search,
5400
5455
  isActive,
5401
- slug,
5456
+ uids,
5402
5457
  requestHeaders,
5403
5458
  } = { requestHeaders: {} },
5404
5459
  { responseHeaders } = { responseHeaders: false }
@@ -5411,7 +5466,7 @@ class Catalog {
5411
5466
  name,
5412
5467
  search,
5413
5468
  isActive,
5414
- slug,
5469
+ uids,
5415
5470
  },
5416
5471
  { abortEarly: false, allowUnknown: true }
5417
5472
  );
@@ -5430,7 +5485,7 @@ class Catalog {
5430
5485
  name,
5431
5486
  search,
5432
5487
  isActive,
5433
- slug,
5488
+ uids,
5434
5489
  },
5435
5490
  { abortEarly: false, allowUnknown: false }
5436
5491
  );
@@ -5448,14 +5503,14 @@ class Catalog {
5448
5503
  query_params["name"] = name;
5449
5504
  query_params["search"] = search;
5450
5505
  query_params["is_active"] = isActive;
5451
- query_params["slug"] = slug;
5506
+ query_params["uids"] = uids;
5452
5507
 
5453
5508
  const xHeaders = {};
5454
5509
 
5455
5510
  const response = await PlatformAPIClient.execute(
5456
5511
  this.config,
5457
5512
  "get",
5458
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/`,
5513
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments`,
5459
5514
  query_params,
5460
5515
  undefined,
5461
5516
  { ...xHeaders, ...requestHeaders },
@@ -5469,10 +5524,10 @@ class Catalog {
5469
5524
 
5470
5525
  const {
5471
5526
  error: res_error,
5472
- } = CatalogPlatformModel.DepartmentsResponseSchema().validate(
5473
- responseData,
5474
- { abortEarly: false, allowUnknown: true }
5475
- );
5527
+ } = CatalogPlatformModel.DepartmentsResponse().validate(responseData, {
5528
+ abortEarly: false,
5529
+ allowUnknown: true,
5530
+ });
5476
5531
 
5477
5532
  if (res_error) {
5478
5533
  if (this.config.options.strictResponseCheck === true) {
@@ -5488,62 +5543,14 @@ class Catalog {
5488
5543
  return response;
5489
5544
  }
5490
5545
 
5491
- /**
5492
- * @param {Object} arg - Arg object.
5493
- * @param {string} [arg.itemType] - A `item_type` is a type of product eg.
5494
- * set, standard, digital
5495
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
5496
- * page. Default is 10.
5497
- * @param {string} [arg.name] - Can search departments by passing name.
5498
- * @param {string} [arg.search] - Can search departments by passing name of
5499
- * the department in search parameter.
5500
- * @param {boolean} [arg.isActive] - Can query for departments based on
5501
- * whether they are active or inactive.
5502
- * @param {string} [arg.slug] - Can filter by slug
5503
- * @returns {Paginator<CatalogPlatformModel.DepartmentsResponseSchema>}
5504
- * @summary: List company department
5505
- * @description: Allows you to list all departments data for a specific company.
5506
- */
5507
- listDepartmentsDataPaginator({
5508
- itemType,
5509
- pageSize,
5510
- name,
5511
- search,
5512
- isActive,
5513
- slug,
5514
- } = {}) {
5515
- const paginator = new Paginator();
5516
- const callback = async () => {
5517
- const pageId = paginator.nextId;
5518
- const pageNo = paginator.pageNo;
5519
- const pageType = "number";
5520
- const data = await this.listDepartmentsData({
5521
- pageNo: pageNo,
5522
- itemType: itemType,
5523
- pageSize: pageSize,
5524
- name: name,
5525
- search: search,
5526
- isActive: isActive,
5527
- slug: slug,
5528
- });
5529
- paginator.setPaginator({
5530
- hasNext: data.page.has_next ? true : false,
5531
- nextId: data.page.next_id,
5532
- });
5533
- return data;
5534
- };
5535
- paginator.setCallback(callback.bind(this));
5536
- return paginator;
5537
- }
5538
-
5539
5546
  /**
5540
5547
  * @param {CatalogPlatformValidator.ListHSNCodesParam} arg - Arg object
5541
5548
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5542
5549
  * @param {import("../PlatformAPIClient").Options} - Options
5543
- * @returns {Promise<CatalogPlatformModel.HSNCodesResponseSchema>} - Success response
5550
+ * @returns {Promise<CatalogPlatformModel.HSNCodesResponse>} - Success response
5544
5551
  * @name listHSNCodes
5545
- * @summary: List HSN codes
5546
- * @description: Retrieve a list of Harmonized System Nomenclature (HSN) codes for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listHSNCodes/).
5552
+ * @summary: List HSN codes.
5553
+ * @description: Retrieve a list of Harmonized System Nomenclature (HSN) codes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listHSNCodes/).
5547
5554
  */
5548
5555
  async listHSNCodes(
5549
5556
  { requestHeaders } = { requestHeaders: {} },
@@ -5578,7 +5585,7 @@ class Catalog {
5578
5585
  const response = await PlatformAPIClient.execute(
5579
5586
  this.config,
5580
5587
  "get",
5581
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/hsn/`,
5588
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/hsn`,
5582
5589
  query_params,
5583
5590
  undefined,
5584
5591
  { ...xHeaders, ...requestHeaders },
@@ -5592,7 +5599,7 @@ class Catalog {
5592
5599
 
5593
5600
  const {
5594
5601
  error: res_error,
5595
- } = CatalogPlatformModel.HSNCodesResponseSchema().validate(responseData, {
5602
+ } = CatalogPlatformModel.HSNCodesResponse().validate(responseData, {
5596
5603
  abortEarly: false,
5597
5604
  allowUnknown: true,
5598
5605
  });
@@ -5615,12 +5622,12 @@ class Catalog {
5615
5622
  * @param {CatalogPlatformValidator.ListInventoryExportParam} arg - Arg object
5616
5623
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5617
5624
  * @param {import("../PlatformAPIClient").Options} - Options
5618
- * @returns {Promise<CatalogPlatformModel.InventoryExportJobListResponseSchema>}
5625
+ * @returns {Promise<CatalogPlatformModel.InventoryExportJobListResponse>}
5619
5626
  * - Success response
5620
5627
  *
5621
5628
  * @name listInventoryExport
5622
- * @summary: List inventory export jobs
5623
- * @description: Retrieve the history of inventory export jobs associated with the company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listInventoryExport/).
5629
+ * @summary: List inventory exports.
5630
+ * @description: Helps you the retrieve the history of inventory jobs depending on the filtered criteria. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listInventoryExport/).
5624
5631
  */
5625
5632
  async listInventoryExport(
5626
5633
  { status, fromDate, toDate, q, pageNo, pageSize, requestHeaders } = {
@@ -5677,7 +5684,7 @@ class Catalog {
5677
5684
  const response = await PlatformAPIClient.execute(
5678
5685
  this.config,
5679
5686
  "get",
5680
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/`,
5687
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download`,
5681
5688
  query_params,
5682
5689
  undefined,
5683
5690
  { ...xHeaders, ...requestHeaders },
@@ -5691,7 +5698,7 @@ class Catalog {
5691
5698
 
5692
5699
  const {
5693
5700
  error: res_error,
5694
- } = CatalogPlatformModel.InventoryExportJobListResponseSchema().validate(
5701
+ } = CatalogPlatformModel.InventoryExportJobListResponse().validate(
5695
5702
  responseData,
5696
5703
  { abortEarly: false, allowUnknown: true }
5697
5704
  );
@@ -5714,10 +5721,10 @@ class Catalog {
5714
5721
  * @param {CatalogPlatformValidator.ListProductTemplateParam} arg - Arg object
5715
5722
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5716
5723
  * @param {import("../PlatformAPIClient").Options} - Options
5717
- * @returns {Promise<CatalogPlatformModel.TemplatesResponseSchema>} - Success response
5724
+ * @returns {Promise<CatalogPlatformModel.TemplatesResponse>} - Success response
5718
5725
  * @name listProductTemplate
5719
- * @summary: List product templates
5720
- * @description: Allows you to list all product templates for a specific company. also can filter by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplate/).
5726
+ * @summary: List product templates.
5727
+ * @description: Allows you to list all product templates, also can filter by department. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplate/).
5721
5728
  */
5722
5729
  async listProductTemplate(
5723
5730
  { department, requestHeaders } = { requestHeaders: {} },
@@ -5757,7 +5764,7 @@ class Catalog {
5757
5764
  const response = await PlatformAPIClient.execute(
5758
5765
  this.config,
5759
5766
  "get",
5760
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/`,
5767
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates`,
5761
5768
  query_params,
5762
5769
  undefined,
5763
5770
  { ...xHeaders, ...requestHeaders },
@@ -5771,7 +5778,7 @@ class Catalog {
5771
5778
 
5772
5779
  const {
5773
5780
  error: res_error,
5774
- } = CatalogPlatformModel.TemplatesResponseSchema().validate(responseData, {
5781
+ } = CatalogPlatformModel.TemplatesResponse().validate(responseData, {
5775
5782
  abortEarly: false,
5776
5783
  allowUnknown: true,
5777
5784
  });
@@ -5796,15 +5803,17 @@ class Catalog {
5796
5803
  *
5797
5804
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5798
5805
  * @param {import("../PlatformAPIClient").Options} - Options
5799
- * @returns {Promise<CatalogPlatformModel.ProdcutTemplateCategoriesResponseSchema>}
5806
+ * @returns {Promise<CatalogPlatformModel.ProdcutTemplateCategoriesResponse>}
5800
5807
  * - Success response
5801
5808
  *
5802
5809
  * @name listProductTemplateCategories
5803
- * @summary: List product template categories
5804
- * @description: Allows you to list all product template categories values for the departments specified for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateCategories/).
5810
+ * @summary: List product template categories.
5811
+ * @description: Allows you to list all product categories values for the departments specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateCategories/).
5805
5812
  */
5806
5813
  async listProductTemplateCategories(
5807
- { departments, itemType, requestHeaders } = { requestHeaders: {} },
5814
+ { departments, itemType, pageSize, pageNo, q, requestHeaders } = {
5815
+ requestHeaders: {},
5816
+ },
5808
5817
  { responseHeaders } = { responseHeaders: false }
5809
5818
  ) {
5810
5819
  const {
@@ -5813,6 +5822,9 @@ class Catalog {
5813
5822
  {
5814
5823
  departments,
5815
5824
  itemType,
5825
+ pageSize,
5826
+ pageNo,
5827
+ q,
5816
5828
  },
5817
5829
  { abortEarly: false, allowUnknown: true }
5818
5830
  );
@@ -5827,6 +5839,9 @@ class Catalog {
5827
5839
  {
5828
5840
  departments,
5829
5841
  itemType,
5842
+ pageSize,
5843
+ pageNo,
5844
+ q,
5830
5845
  },
5831
5846
  { abortEarly: false, allowUnknown: false }
5832
5847
  );
@@ -5840,13 +5855,16 @@ class Catalog {
5840
5855
  const query_params = {};
5841
5856
  query_params["departments"] = departments;
5842
5857
  query_params["item_type"] = itemType;
5858
+ query_params["page_size"] = pageSize;
5859
+ query_params["page_no"] = pageNo;
5860
+ query_params["q"] = q;
5843
5861
 
5844
5862
  const xHeaders = {};
5845
5863
 
5846
5864
  const response = await PlatformAPIClient.execute(
5847
5865
  this.config,
5848
5866
  "get",
5849
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/categories/`,
5867
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/categories`,
5850
5868
  query_params,
5851
5869
  undefined,
5852
5870
  { ...xHeaders, ...requestHeaders },
@@ -5860,7 +5878,7 @@ class Catalog {
5860
5878
 
5861
5879
  const {
5862
5880
  error: res_error,
5863
- } = CatalogPlatformModel.ProdcutTemplateCategoriesResponseSchema().validate(
5881
+ } = CatalogPlatformModel.ProdcutTemplateCategoriesResponse().validate(
5864
5882
  responseData,
5865
5883
  { abortEarly: false, allowUnknown: true }
5866
5884
  );
@@ -5880,26 +5898,27 @@ class Catalog {
5880
5898
  }
5881
5899
 
5882
5900
  /**
5883
- * @param {CatalogPlatformValidator.ListProductTemplateExportDetailsParam} arg
5884
- * - Arg object
5885
- *
5901
+ * @param {CatalogPlatformValidator.ListTemplateBrandTypeValuesParam} arg - Arg object
5886
5902
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5887
5903
  * @param {import("../PlatformAPIClient").Options} - Options
5888
- * @returns {Promise<CatalogPlatformModel.ProductDownloadsResponseSchema>}
5889
- * - Success response
5890
- *
5891
- * @name listProductTemplateExportDetails
5892
- * @summary: List export product templates
5893
- * @description: Retrieve export details related to product templates for a specific company. Can view details including trigger data, task id , etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listProductTemplateExportDetails/).
5904
+ * @returns {Promise<CatalogPlatformModel.ProductConfigurationDownloads>} -
5905
+ * Success response
5906
+ * @name listTemplateBrandTypeValues
5907
+ * @summary: List template brand type values.
5908
+ * @description: Retrieve values related to template brand types. The filter type query parameter defines what type of data to return. The type of query returns the valid values for the same - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listTemplateBrandTypeValues/).
5894
5909
  */
5895
- async listProductTemplateExportDetails(
5896
- { requestHeaders } = { requestHeaders: {} },
5910
+ async listTemplateBrandTypeValues(
5911
+ { filter, templateTag, itemType, requestHeaders } = { requestHeaders: {} },
5897
5912
  { responseHeaders } = { responseHeaders: false }
5898
5913
  ) {
5899
5914
  const {
5900
5915
  error,
5901
- } = CatalogPlatformValidator.listProductTemplateExportDetails().validate(
5902
- {},
5916
+ } = CatalogPlatformValidator.listTemplateBrandTypeValues().validate(
5917
+ {
5918
+ filter,
5919
+ templateTag,
5920
+ itemType,
5921
+ },
5903
5922
  { abortEarly: false, allowUnknown: true }
5904
5923
  );
5905
5924
  if (error) {
@@ -5909,25 +5928,32 @@ class Catalog {
5909
5928
  // Showing warrnings if extra unknown parameters are found
5910
5929
  const {
5911
5930
  error: warrning,
5912
- } = CatalogPlatformValidator.listProductTemplateExportDetails().validate(
5913
- {},
5931
+ } = CatalogPlatformValidator.listTemplateBrandTypeValues().validate(
5932
+ {
5933
+ filter,
5934
+ templateTag,
5935
+ itemType,
5936
+ },
5914
5937
  { abortEarly: false, allowUnknown: false }
5915
5938
  );
5916
5939
  if (warrning) {
5917
5940
  Logger({
5918
5941
  level: "WARN",
5919
- message: `Parameter Validation warrnings for platform > Catalog > listProductTemplateExportDetails \n ${warrning}`,
5942
+ message: `Parameter Validation warrnings for platform > Catalog > listTemplateBrandTypeValues \n ${warrning}`,
5920
5943
  });
5921
5944
  }
5922
5945
 
5923
5946
  const query_params = {};
5947
+ query_params["filter"] = filter;
5948
+ query_params["template_tag"] = templateTag;
5949
+ query_params["item_type"] = itemType;
5924
5950
 
5925
5951
  const xHeaders = {};
5926
5952
 
5927
5953
  const response = await PlatformAPIClient.execute(
5928
5954
  this.config,
5929
5955
  "get",
5930
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/downloads/`,
5956
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/downloads/configuration`,
5931
5957
  query_params,
5932
5958
  undefined,
5933
5959
  { ...xHeaders, ...requestHeaders },
@@ -5941,7 +5967,7 @@ class Catalog {
5941
5967
 
5942
5968
  const {
5943
5969
  error: res_error,
5944
- } = CatalogPlatformModel.ProductDownloadsResponseSchema().validate(
5970
+ } = CatalogPlatformModel.ProductConfigurationDownloads().validate(
5945
5971
  responseData,
5946
5972
  { abortEarly: false, allowUnknown: true }
5947
5973
  );
@@ -5952,7 +5978,7 @@ class Catalog {
5952
5978
  } else {
5953
5979
  Logger({
5954
5980
  level: "WARN",
5955
- message: `Response Validation Warnings for platform > Catalog > listProductTemplateExportDetails \n ${res_error}`,
5981
+ message: `Response Validation Warnings for platform > Catalog > listTemplateBrandTypeValues \n ${res_error}`,
5956
5982
  });
5957
5983
  }
5958
5984
  }
@@ -5961,26 +5987,26 @@ class Catalog {
5961
5987
  }
5962
5988
 
5963
5989
  /**
5964
- * @param {CatalogPlatformValidator.ListTemplateBrandTypeValuesParam} arg - Arg object
5990
+ * @param {CatalogPlatformValidator.PatchInventoryExportDetailParam} arg - Arg object
5965
5991
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
5966
5992
  * @param {import("../PlatformAPIClient").Options} - Options
5967
- * @returns {Promise<CatalogPlatformModel.ProductConfigurationDownloads>} -
5968
- * Success response
5969
- * @name listTemplateBrandTypeValues
5970
- * @summary: List template brand
5971
- * @description: Retrieve values related to template brand types for a specific company. The filter type query parameter defines what type of data to return. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/listTemplateBrandTypeValues/).
5993
+ * @returns {Promise<CatalogPlatformModel.EditInventoryDownloadsResponse>}
5994
+ * - Success response
5995
+ *
5996
+ * @name patchInventoryExportDetail
5997
+ * @summary: Edit notification_emails and status of export job.
5998
+ * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchInventoryExportDetail/).
5972
5999
  */
5973
- async listTemplateBrandTypeValues(
5974
- { filter, templateTag, itemType, requestHeaders } = { requestHeaders: {} },
6000
+ async patchInventoryExportDetail(
6001
+ { jobId, body, requestHeaders } = { requestHeaders: {} },
5975
6002
  { responseHeaders } = { responseHeaders: false }
5976
6003
  ) {
5977
6004
  const {
5978
6005
  error,
5979
- } = CatalogPlatformValidator.listTemplateBrandTypeValues().validate(
6006
+ } = CatalogPlatformValidator.patchInventoryExportDetail().validate(
5980
6007
  {
5981
- filter,
5982
- templateTag,
5983
- itemType,
6008
+ jobId,
6009
+ body,
5984
6010
  },
5985
6011
  { abortEarly: false, allowUnknown: true }
5986
6012
  );
@@ -5991,34 +6017,30 @@ class Catalog {
5991
6017
  // Showing warrnings if extra unknown parameters are found
5992
6018
  const {
5993
6019
  error: warrning,
5994
- } = CatalogPlatformValidator.listTemplateBrandTypeValues().validate(
6020
+ } = CatalogPlatformValidator.patchInventoryExportDetail().validate(
5995
6021
  {
5996
- filter,
5997
- templateTag,
5998
- itemType,
6022
+ jobId,
6023
+ body,
5999
6024
  },
6000
6025
  { abortEarly: false, allowUnknown: false }
6001
6026
  );
6002
6027
  if (warrning) {
6003
6028
  Logger({
6004
6029
  level: "WARN",
6005
- message: `Parameter Validation warrnings for platform > Catalog > listTemplateBrandTypeValues \n ${warrning}`,
6030
+ message: `Parameter Validation warrnings for platform > Catalog > patchInventoryExportDetail \n ${warrning}`,
6006
6031
  });
6007
6032
  }
6008
6033
 
6009
6034
  const query_params = {};
6010
- query_params["filter"] = filter;
6011
- query_params["template_tag"] = templateTag;
6012
- query_params["item_type"] = itemType;
6013
6035
 
6014
6036
  const xHeaders = {};
6015
6037
 
6016
6038
  const response = await PlatformAPIClient.execute(
6017
6039
  this.config,
6018
- "get",
6019
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/downloads/configuration/`,
6040
+ "put",
6041
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/download/${jobId}`,
6020
6042
  query_params,
6021
- undefined,
6043
+ body,
6022
6044
  { ...xHeaders, ...requestHeaders },
6023
6045
  { responseHeaders }
6024
6046
  );
@@ -6030,7 +6052,7 @@ class Catalog {
6030
6052
 
6031
6053
  const {
6032
6054
  error: res_error,
6033
- } = CatalogPlatformModel.ProductConfigurationDownloads().validate(
6055
+ } = CatalogPlatformModel.EditInventoryDownloadsResponse().validate(
6034
6056
  responseData,
6035
6057
  { abortEarly: false, allowUnknown: true }
6036
6058
  );
@@ -6041,7 +6063,7 @@ class Catalog {
6041
6063
  } else {
6042
6064
  Logger({
6043
6065
  level: "WARN",
6044
- message: `Response Validation Warnings for platform > Catalog > listTemplateBrandTypeValues \n ${res_error}`,
6066
+ message: `Response Validation Warnings for platform > Catalog > patchInventoryExportDetail \n ${res_error}`,
6045
6067
  });
6046
6068
  }
6047
6069
  }
@@ -6050,21 +6072,24 @@ class Catalog {
6050
6072
  }
6051
6073
 
6052
6074
  /**
6053
- * @param {CatalogPlatformValidator.UpdateHsnCodeParam} arg - Arg object
6075
+ * @param {CatalogPlatformValidator.PatchProductExportDetailParam} arg - Arg object
6054
6076
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6055
6077
  * @param {import("../PlatformAPIClient").Options} - Options
6056
- * @returns {Promise<CatalogPlatformModel.HsnCode>} - Success response
6057
- * @name updateHsnCode
6058
- * @summary: Update HSN code
6059
- * @description: Modify the HSN code associated with a product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateHsnCode/).
6078
+ * @returns {Promise<CatalogPlatformModel.PatchProductDownloadsResponse>} -
6079
+ * Success response
6080
+ * @name patchProductExportDetail
6081
+ * @summary: Edit notification_emails and status of export job.
6082
+ * @description: This API helps to edit notification_emails and status of export job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/patchProductExportDetail/).
6060
6083
  */
6061
- async updateHsnCode(
6062
- { id, body, requestHeaders } = { requestHeaders: {} },
6084
+ async patchProductExportDetail(
6085
+ { jobId, body, requestHeaders } = { requestHeaders: {} },
6063
6086
  { responseHeaders } = { responseHeaders: false }
6064
6087
  ) {
6065
- const { error } = CatalogPlatformValidator.updateHsnCode().validate(
6088
+ const {
6089
+ error,
6090
+ } = CatalogPlatformValidator.patchProductExportDetail().validate(
6066
6091
  {
6067
- id,
6092
+ jobId,
6068
6093
  body,
6069
6094
  },
6070
6095
  { abortEarly: false, allowUnknown: true }
@@ -6076,9 +6101,9 @@ class Catalog {
6076
6101
  // Showing warrnings if extra unknown parameters are found
6077
6102
  const {
6078
6103
  error: warrning,
6079
- } = CatalogPlatformValidator.updateHsnCode().validate(
6104
+ } = CatalogPlatformValidator.patchProductExportDetail().validate(
6080
6105
  {
6081
- id,
6106
+ jobId,
6082
6107
  body,
6083
6108
  },
6084
6109
  { abortEarly: false, allowUnknown: false }
@@ -6086,7 +6111,7 @@ class Catalog {
6086
6111
  if (warrning) {
6087
6112
  Logger({
6088
6113
  level: "WARN",
6089
- message: `Parameter Validation warrnings for platform > Catalog > updateHsnCode \n ${warrning}`,
6114
+ message: `Parameter Validation warrnings for platform > Catalog > patchProductExportDetail \n ${warrning}`,
6090
6115
  });
6091
6116
  }
6092
6117
 
@@ -6096,8 +6121,8 @@ class Catalog {
6096
6121
 
6097
6122
  const response = await PlatformAPIClient.execute(
6098
6123
  this.config,
6099
- "put",
6100
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/hsn/${id}/`,
6124
+ "patch",
6125
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/products/downloads/${jobId}`,
6101
6126
  query_params,
6102
6127
  body,
6103
6128
  { ...xHeaders, ...requestHeaders },
@@ -6111,10 +6136,10 @@ class Catalog {
6111
6136
 
6112
6137
  const {
6113
6138
  error: res_error,
6114
- } = CatalogPlatformModel.HsnCode().validate(responseData, {
6115
- abortEarly: false,
6116
- allowUnknown: true,
6117
- });
6139
+ } = CatalogPlatformModel.PatchProductDownloadsResponse().validate(
6140
+ responseData,
6141
+ { abortEarly: false, allowUnknown: true }
6142
+ );
6118
6143
 
6119
6144
  if (res_error) {
6120
6145
  if (this.config.options.strictResponseCheck === true) {
@@ -6122,7 +6147,7 @@ class Catalog {
6122
6147
  } else {
6123
6148
  Logger({
6124
6149
  level: "WARN",
6125
- message: `Response Validation Warnings for platform > Catalog > updateHsnCode \n ${res_error}`,
6150
+ message: `Response Validation Warnings for platform > Catalog > patchProductExportDetail \n ${res_error}`,
6126
6151
  });
6127
6152
  }
6128
6153
  }
@@ -6131,21 +6156,21 @@ class Catalog {
6131
6156
  }
6132
6157
 
6133
6158
  /**
6134
- * @param {CatalogPlatformValidator.UpdateInventoriesParam} arg - Arg object
6159
+ * @param {CatalogPlatformValidator.UpdateCategoryParam} arg - Arg object
6135
6160
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6136
6161
  * @param {import("../PlatformAPIClient").Options} - Options
6137
- * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponseSchema>} -
6138
- * Success response
6139
- * @name updateInventories
6140
- * @summary: Update inventories
6141
- * @description: Allows to add Inventory for particular size and selling location. for associated companies - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateInventories/).
6162
+ * @returns {Promise<CatalogPlatformModel.CategoryUpdateResponse>} - Success response
6163
+ * @name updateCategory
6164
+ * @summary: Update category data.
6165
+ * @description: Modify data for an existing category in the catalog. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateCategory/).
6142
6166
  */
6143
- async updateInventories(
6144
- { body, requestHeaders } = { requestHeaders: {} },
6167
+ async updateCategory(
6168
+ { uid, body, requestHeaders } = { requestHeaders: {} },
6145
6169
  { responseHeaders } = { responseHeaders: false }
6146
6170
  ) {
6147
- const { error } = CatalogPlatformValidator.updateInventories().validate(
6171
+ const { error } = CatalogPlatformValidator.updateCategory().validate(
6148
6172
  {
6173
+ uid,
6149
6174
  body,
6150
6175
  },
6151
6176
  { abortEarly: false, allowUnknown: true }
@@ -6157,8 +6182,9 @@ class Catalog {
6157
6182
  // Showing warrnings if extra unknown parameters are found
6158
6183
  const {
6159
6184
  error: warrning,
6160
- } = CatalogPlatformValidator.updateInventories().validate(
6185
+ } = CatalogPlatformValidator.updateCategory().validate(
6161
6186
  {
6187
+ uid,
6162
6188
  body,
6163
6189
  },
6164
6190
  { abortEarly: false, allowUnknown: false }
@@ -6166,7 +6192,7 @@ class Catalog {
6166
6192
  if (warrning) {
6167
6193
  Logger({
6168
6194
  level: "WARN",
6169
- message: `Parameter Validation warrnings for platform > Catalog > updateInventories \n ${warrning}`,
6195
+ message: `Parameter Validation warrnings for platform > Catalog > updateCategory \n ${warrning}`,
6170
6196
  });
6171
6197
  }
6172
6198
 
@@ -6176,8 +6202,8 @@ class Catalog {
6176
6202
 
6177
6203
  const response = await PlatformAPIClient.execute(
6178
6204
  this.config,
6179
- "post",
6180
- `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory/`,
6205
+ "put",
6206
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/category/${uid}`,
6181
6207
  query_params,
6182
6208
  body,
6183
6209
  { ...xHeaders, ...requestHeaders },
@@ -6191,10 +6217,10 @@ class Catalog {
6191
6217
 
6192
6218
  const {
6193
6219
  error: res_error,
6194
- } = CatalogPlatformModel.InventoryUpdateResponseSchema().validate(
6195
- responseData,
6196
- { abortEarly: false, allowUnknown: true }
6197
- );
6220
+ } = CatalogPlatformModel.CategoryUpdateResponse().validate(responseData, {
6221
+ abortEarly: false,
6222
+ allowUnknown: true,
6223
+ });
6198
6224
 
6199
6225
  if (res_error) {
6200
6226
  if (this.config.options.strictResponseCheck === true) {
@@ -6202,7 +6228,7 @@ class Catalog {
6202
6228
  } else {
6203
6229
  Logger({
6204
6230
  level: "WARN",
6205
- message: `Response Validation Warnings for platform > Catalog > updateInventories \n ${res_error}`,
6231
+ message: `Response Validation Warnings for platform > Catalog > updateCategory \n ${res_error}`,
6206
6232
  });
6207
6233
  }
6208
6234
  }
@@ -6211,26 +6237,21 @@ class Catalog {
6211
6237
  }
6212
6238
 
6213
6239
  /**
6214
- * @param {CatalogPlatformValidator.UpdateLocationPriceParam} arg - Arg object
6240
+ * @param {CatalogPlatformValidator.UpdateDepartmentParam} arg - Arg object
6215
6241
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6216
6242
  * @param {import("../PlatformAPIClient").Options} - Options
6217
- * @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
6218
- * - Success response
6219
- *
6220
- * @name updateLocationPrice
6221
- * @summary: Update an Article Price
6222
- * @description: enables you to update article price for a specific size and selling location (store). The price updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationPrice/).
6243
+ * @returns {Promise<CatalogPlatformModel.DepartmentModel>} - Success response
6244
+ * @name updateDepartment
6245
+ * @summary: Update department data.
6246
+ * @description: Modify the department by their uid using this API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateDepartment/).
6223
6247
  */
6224
- async updateLocationPrice(
6225
- { storeId, sellerIdentifier, body, requestHeaders } = {
6226
- requestHeaders: {},
6227
- },
6248
+ async updateDepartment(
6249
+ { uid, body, requestHeaders } = { requestHeaders: {} },
6228
6250
  { responseHeaders } = { responseHeaders: false }
6229
6251
  ) {
6230
- const { error } = CatalogPlatformValidator.updateLocationPrice().validate(
6252
+ const { error } = CatalogPlatformValidator.updateDepartment().validate(
6231
6253
  {
6232
- storeId,
6233
- sellerIdentifier,
6254
+ uid,
6234
6255
  body,
6235
6256
  },
6236
6257
  { abortEarly: false, allowUnknown: true }
@@ -6242,10 +6263,9 @@ class Catalog {
6242
6263
  // Showing warrnings if extra unknown parameters are found
6243
6264
  const {
6244
6265
  error: warrning,
6245
- } = CatalogPlatformValidator.updateLocationPrice().validate(
6266
+ } = CatalogPlatformValidator.updateDepartment().validate(
6246
6267
  {
6247
- storeId,
6248
- sellerIdentifier,
6268
+ uid,
6249
6269
  body,
6250
6270
  },
6251
6271
  { abortEarly: false, allowUnknown: false }
@@ -6253,7 +6273,7 @@ class Catalog {
6253
6273
  if (warrning) {
6254
6274
  Logger({
6255
6275
  level: "WARN",
6256
- message: `Parameter Validation warrnings for platform > Catalog > updateLocationPrice \n ${warrning}`,
6276
+ message: `Parameter Validation warrnings for platform > Catalog > updateDepartment \n ${warrning}`,
6257
6277
  });
6258
6278
  }
6259
6279
 
@@ -6263,8 +6283,8 @@ class Catalog {
6263
6283
 
6264
6284
  const response = await PlatformAPIClient.execute(
6265
6285
  this.config,
6266
- "post",
6267
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/store/${storeId}/identifier/${sellerIdentifier}/price`,
6286
+ "put",
6287
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/departments/${uid}`,
6268
6288
  query_params,
6269
6289
  body,
6270
6290
  { ...xHeaders, ...requestHeaders },
@@ -6278,10 +6298,10 @@ class Catalog {
6278
6298
 
6279
6299
  const {
6280
6300
  error: res_error,
6281
- } = CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema().validate(
6282
- responseData,
6283
- { abortEarly: false, allowUnknown: true }
6284
- );
6301
+ } = CatalogPlatformModel.DepartmentModel().validate(responseData, {
6302
+ abortEarly: false,
6303
+ allowUnknown: true,
6304
+ });
6285
6305
 
6286
6306
  if (res_error) {
6287
6307
  if (this.config.options.strictResponseCheck === true) {
@@ -6289,7 +6309,7 @@ class Catalog {
6289
6309
  } else {
6290
6310
  Logger({
6291
6311
  level: "WARN",
6292
- message: `Response Validation Warnings for platform > Catalog > updateLocationPrice \n ${res_error}`,
6312
+ message: `Response Validation Warnings for platform > Catalog > updateDepartment \n ${res_error}`,
6293
6313
  });
6294
6314
  }
6295
6315
  }
@@ -6298,28 +6318,20 @@ class Catalog {
6298
6318
  }
6299
6319
 
6300
6320
  /**
6301
- * @param {CatalogPlatformValidator.UpdateLocationQuantityParam} arg - Arg object
6321
+ * @param {CatalogPlatformValidator.UpdateInventoriesParam} arg - Arg object
6302
6322
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6303
6323
  * @param {import("../PlatformAPIClient").Options} - Options
6304
- * @returns {Promise<CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema>}
6305
- * - Success response
6306
- *
6307
- * @name updateLocationQuantity
6308
- * @summary: Update an Article Quantity
6309
- * @description: enables you to update article quantity for a specific size and selling location (store). The quantity updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateLocationQuantity/).
6324
+ * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
6325
+ * @name updateInventories
6326
+ * @summary: Update inventories.
6327
+ * @description: Allows to add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateInventories/).
6310
6328
  */
6311
- async updateLocationQuantity(
6312
- { storeId, sellerIdentifier, body, requestHeaders } = {
6313
- requestHeaders: {},
6314
- },
6329
+ async updateInventories(
6330
+ { body, requestHeaders } = { requestHeaders: {} },
6315
6331
  { responseHeaders } = { responseHeaders: false }
6316
6332
  ) {
6317
- const {
6318
- error,
6319
- } = CatalogPlatformValidator.updateLocationQuantity().validate(
6333
+ const { error } = CatalogPlatformValidator.updateInventories().validate(
6320
6334
  {
6321
- storeId,
6322
- sellerIdentifier,
6323
6335
  body,
6324
6336
  },
6325
6337
  { abortEarly: false, allowUnknown: true }
@@ -6331,10 +6343,8 @@ class Catalog {
6331
6343
  // Showing warrnings if extra unknown parameters are found
6332
6344
  const {
6333
6345
  error: warrning,
6334
- } = CatalogPlatformValidator.updateLocationQuantity().validate(
6346
+ } = CatalogPlatformValidator.updateInventories().validate(
6335
6347
  {
6336
- storeId,
6337
- sellerIdentifier,
6338
6348
  body,
6339
6349
  },
6340
6350
  { abortEarly: false, allowUnknown: false }
@@ -6342,7 +6352,7 @@ class Catalog {
6342
6352
  if (warrning) {
6343
6353
  Logger({
6344
6354
  level: "WARN",
6345
- message: `Parameter Validation warrnings for platform > Catalog > updateLocationQuantity \n ${warrning}`,
6355
+ message: `Parameter Validation warrnings for platform > Catalog > updateInventories \n ${warrning}`,
6346
6356
  });
6347
6357
  }
6348
6358
 
@@ -6353,7 +6363,7 @@ class Catalog {
6353
6363
  const response = await PlatformAPIClient.execute(
6354
6364
  this.config,
6355
6365
  "post",
6356
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/store/${storeId}/identifier/${sellerIdentifier}/quantity`,
6366
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/inventory`,
6357
6367
  query_params,
6358
6368
  body,
6359
6369
  { ...xHeaders, ...requestHeaders },
@@ -6367,10 +6377,10 @@ class Catalog {
6367
6377
 
6368
6378
  const {
6369
6379
  error: res_error,
6370
- } = CatalogPlatformModel.LocationPriceQuantitySuccessResponseSchema().validate(
6371
- responseData,
6372
- { abortEarly: false, allowUnknown: true }
6373
- );
6380
+ } = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
6381
+ abortEarly: false,
6382
+ allowUnknown: true,
6383
+ });
6374
6384
 
6375
6385
  if (res_error) {
6376
6386
  if (this.config.options.strictResponseCheck === true) {
@@ -6378,7 +6388,7 @@ class Catalog {
6378
6388
  } else {
6379
6389
  Logger({
6380
6390
  level: "WARN",
6381
- message: `Response Validation Warnings for platform > Catalog > updateLocationQuantity \n ${res_error}`,
6391
+ message: `Response Validation Warnings for platform > Catalog > updateInventories \n ${res_error}`,
6382
6392
  });
6383
6393
  }
6384
6394
  }
@@ -6390,22 +6400,22 @@ class Catalog {
6390
6400
  * @param {CatalogPlatformValidator.UpdateMarketplaceOptinParam} arg - Arg object
6391
6401
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6392
6402
  * @param {import("../PlatformAPIClient").Options} - Options
6393
- * @returns {Promise<CatalogPlatformModel.UpdateMarketplaceOptinResponseSchema>}
6403
+ * @returns {Promise<CatalogPlatformModel.UpdateMarketplaceOptinResponse>}
6394
6404
  * - Success response
6395
6405
  *
6396
6406
  * @name updateMarketplaceOptin
6397
6407
  * @summary: Update marketplace optin
6398
- * @description: Allows to update marketplace optin for a company by marketplace_slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMarketplaceOptin/).
6408
+ * @description: This API allows to update marketplace optin for a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateMarketplaceOptin/).
6399
6409
  */
6400
6410
  async updateMarketplaceOptin(
6401
- { marketplaceSlug, body, requestHeaders } = { requestHeaders: {} },
6411
+ { marketplace, body, requestHeaders } = { requestHeaders: {} },
6402
6412
  { responseHeaders } = { responseHeaders: false }
6403
6413
  ) {
6404
6414
  const {
6405
6415
  error,
6406
6416
  } = CatalogPlatformValidator.updateMarketplaceOptin().validate(
6407
6417
  {
6408
- marketplaceSlug,
6418
+ marketplace,
6409
6419
  body,
6410
6420
  },
6411
6421
  { abortEarly: false, allowUnknown: true }
@@ -6419,7 +6429,7 @@ class Catalog {
6419
6429
  error: warrning,
6420
6430
  } = CatalogPlatformValidator.updateMarketplaceOptin().validate(
6421
6431
  {
6422
- marketplaceSlug,
6432
+ marketplace,
6423
6433
  body,
6424
6434
  },
6425
6435
  { abortEarly: false, allowUnknown: false }
@@ -6438,7 +6448,7 @@ class Catalog {
6438
6448
  const response = await PlatformAPIClient.execute(
6439
6449
  this.config,
6440
6450
  "put",
6441
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplaceSlug}/opt-in`,
6451
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/channel/${marketplace}/opt-in`,
6442
6452
  query_params,
6443
6453
  body,
6444
6454
  { ...xHeaders, ...requestHeaders },
@@ -6452,7 +6462,7 @@ class Catalog {
6452
6462
 
6453
6463
  const {
6454
6464
  error: res_error,
6455
- } = CatalogPlatformModel.UpdateMarketplaceOptinResponseSchema().validate(
6465
+ } = CatalogPlatformModel.UpdateMarketplaceOptinResponse().validate(
6456
6466
  responseData,
6457
6467
  { abortEarly: false, allowUnknown: true }
6458
6468
  );
@@ -6475,12 +6485,12 @@ class Catalog {
6475
6485
  * @param {CatalogPlatformValidator.UpdateProductBundleParam} arg - Arg object
6476
6486
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6477
6487
  * @param {import("../PlatformAPIClient").Options} - Options
6478
- * @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponseSchema>}
6488
+ * @returns {Promise<CatalogPlatformModel.GetProductBundleCreateResponse>}
6479
6489
  * - Success response
6480
6490
  *
6481
6491
  * @name updateProductBundle
6482
- * @summary: Update product bundle
6483
- * @description: Modify the details of an existing product bundle in the catalog associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateProductBundle/).
6492
+ * @summary: Update a product bundle.
6493
+ * @description: Modify the details of an existing product bundle. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateProductBundle/).
6484
6494
  */
6485
6495
  async updateProductBundle(
6486
6496
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -6521,7 +6531,7 @@ class Catalog {
6521
6531
  const response = await PlatformAPIClient.execute(
6522
6532
  this.config,
6523
6533
  "put",
6524
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/product-bundle/${id}/`,
6534
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/product-bundle/${id}`,
6525
6535
  query_params,
6526
6536
  body,
6527
6537
  { ...xHeaders, ...requestHeaders },
@@ -6535,7 +6545,7 @@ class Catalog {
6535
6545
 
6536
6546
  const {
6537
6547
  error: res_error,
6538
- } = CatalogPlatformModel.GetProductBundleCreateResponseSchema().validate(
6548
+ } = CatalogPlatformModel.GetProductBundleCreateResponse().validate(
6539
6549
  responseData,
6540
6550
  { abortEarly: false, allowUnknown: true }
6541
6551
  );
@@ -6558,11 +6568,10 @@ class Catalog {
6558
6568
  * @param {CatalogPlatformValidator.UpdateRealtimeInventoryParam} arg - Arg object
6559
6569
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6560
6570
  * @param {import("../PlatformAPIClient").Options} - Options
6561
- * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponseSchema>} -
6562
- * Success response
6571
+ * @returns {Promise<CatalogPlatformModel.InventoryUpdateResponse>} - Success response
6563
6572
  * @name updateRealtimeInventory
6564
- * @summary: Update an inventory
6565
- * @description: enables you to add inventory for a specific size and selling location (store). The inventory updates will be reflected instantly after the API call. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateRealtimeInventory/).
6573
+ * @summary: Update realtime inventory.
6574
+ * @description: Allows to add Inventory for particular size and store. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateRealtimeInventory/).
6566
6575
  */
6567
6576
  async updateRealtimeInventory(
6568
6577
  { itemId, sellerIdentifier, body, requestHeaders } = { requestHeaders: {} },
@@ -6621,10 +6630,10 @@ class Catalog {
6621
6630
 
6622
6631
  const {
6623
6632
  error: res_error,
6624
- } = CatalogPlatformModel.InventoryUpdateResponseSchema().validate(
6625
- responseData,
6626
- { abortEarly: false, allowUnknown: true }
6627
- );
6633
+ } = CatalogPlatformModel.InventoryUpdateResponse().validate(responseData, {
6634
+ abortEarly: false,
6635
+ allowUnknown: true,
6636
+ });
6628
6637
 
6629
6638
  if (res_error) {
6630
6639
  if (this.config.options.strictResponseCheck === true) {
@@ -6644,10 +6653,10 @@ class Catalog {
6644
6653
  * @param {CatalogPlatformValidator.UpdateSizeGuideParam} arg - Arg object
6645
6654
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6646
6655
  * @param {import("../PlatformAPIClient").Options} - Options
6647
- * @returns {Promise<CatalogPlatformModel.SuccessResponseSchema>} - Success response
6656
+ * @returns {Promise<CatalogPlatformModel.SuccessResponse>} - Success response
6648
6657
  * @name updateSizeGuide
6649
- * @summary: Update size guide
6650
- * @description: Allows to edit a specific size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSizeGuide/).
6658
+ * @summary: Update a size guide.
6659
+ * @description: Allows to edit a size guide. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/updateSizeGuide/).
6651
6660
  */
6652
6661
  async updateSizeGuide(
6653
6662
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -6688,7 +6697,7 @@ class Catalog {
6688
6697
  const response = await PlatformAPIClient.execute(
6689
6698
  this.config,
6690
6699
  "put",
6691
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}/`,
6700
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/sizeguide/${id}`,
6692
6701
  query_params,
6693
6702
  body,
6694
6703
  { ...xHeaders, ...requestHeaders },
@@ -6702,7 +6711,7 @@ class Catalog {
6702
6711
 
6703
6712
  const {
6704
6713
  error: res_error,
6705
- } = CatalogPlatformModel.SuccessResponseSchema().validate(responseData, {
6714
+ } = CatalogPlatformModel.SuccessResponse().validate(responseData, {
6706
6715
  abortEarly: false,
6707
6716
  allowUnknown: true,
6708
6717
  });
@@ -6725,10 +6734,10 @@ class Catalog {
6725
6734
  * @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object
6726
6735
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6727
6736
  * @param {import("../PlatformAPIClient").Options} - Options
6728
- * @returns {Promise<CatalogPlatformModel.BulkResponseSchema>} - Success response
6737
+ * @returns {Promise<CatalogPlatformModel.ProductBulkResponse>} - Success response
6729
6738
  * @name uploadBulkProducts
6730
- * @summary: Upload bulk products
6731
- * @description: Users can create multiple products by providing the required information needed for product creation in a CSV or Excel file format. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/).
6739
+ * @summary: Upload bulk products.
6740
+ * @description: Helps to create a bulk products upload job. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/uploadBulkProducts/).
6732
6741
  */
6733
6742
  async uploadBulkProducts(
6734
6743
  { department, productType, body, requestHeaders } = { requestHeaders: {} },
@@ -6787,7 +6796,7 @@ class Catalog {
6787
6796
 
6788
6797
  const {
6789
6798
  error: res_error,
6790
- } = CatalogPlatformModel.BulkResponseSchema().validate(responseData, {
6799
+ } = CatalogPlatformModel.ProductBulkResponse().validate(responseData, {
6791
6800
  abortEarly: false,
6792
6801
  allowUnknown: true,
6793
6802
  });
@@ -6806,105 +6815,15 @@ class Catalog {
6806
6815
  return response;
6807
6816
  }
6808
6817
 
6809
- /**
6810
- * @param {CatalogPlatformValidator.ValidateProductGlobalTemplateParam} arg
6811
- * - Arg object
6812
- *
6813
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6814
- * @param {import("../PlatformAPIClient").Options} - Options
6815
- * @returns {Promise<CatalogPlatformModel.TemplatesGlobalValidationResponseSchema>}
6816
- * - Success response
6817
- *
6818
- * @name validateProductGlobalTemplate
6819
- * @summary: Validate product template
6820
- * @description: Allows you to list all product templates global validation values for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductGlobalTemplate/).
6821
- */
6822
- async validateProductGlobalTemplate(
6823
- { itemType, bulk, requestHeaders } = { requestHeaders: {} },
6824
- { responseHeaders } = { responseHeaders: false }
6825
- ) {
6826
- const {
6827
- error,
6828
- } = CatalogPlatformValidator.validateProductGlobalTemplate().validate(
6829
- {
6830
- itemType,
6831
- bulk,
6832
- },
6833
- { abortEarly: false, allowUnknown: true }
6834
- );
6835
- if (error) {
6836
- return Promise.reject(new FDKClientValidationError(error));
6837
- }
6838
-
6839
- // Showing warrnings if extra unknown parameters are found
6840
- const {
6841
- error: warrning,
6842
- } = CatalogPlatformValidator.validateProductGlobalTemplate().validate(
6843
- {
6844
- itemType,
6845
- bulk,
6846
- },
6847
- { abortEarly: false, allowUnknown: false }
6848
- );
6849
- if (warrning) {
6850
- Logger({
6851
- level: "WARN",
6852
- message: `Parameter Validation warrnings for platform > Catalog > validateProductGlobalTemplate \n ${warrning}`,
6853
- });
6854
- }
6855
-
6856
- const query_params = {};
6857
- query_params["item_type"] = itemType;
6858
- query_params["bulk"] = bulk;
6859
-
6860
- const xHeaders = {};
6861
-
6862
- const response = await PlatformAPIClient.execute(
6863
- this.config,
6864
- "get",
6865
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/validation/schema/`,
6866
- query_params,
6867
- undefined,
6868
- { ...xHeaders, ...requestHeaders },
6869
- { responseHeaders }
6870
- );
6871
-
6872
- let responseData = response;
6873
- if (responseHeaders) {
6874
- responseData = response[0];
6875
- }
6876
-
6877
- const {
6878
- error: res_error,
6879
- } = CatalogPlatformModel.TemplatesGlobalValidationResponseSchema().validate(
6880
- responseData,
6881
- { abortEarly: false, allowUnknown: true }
6882
- );
6883
-
6884
- if (res_error) {
6885
- if (this.config.options.strictResponseCheck === true) {
6886
- return Promise.reject(new FDKResponseValidationError(res_error));
6887
- } else {
6888
- Logger({
6889
- level: "WARN",
6890
- message: `Response Validation Warnings for platform > Catalog > validateProductGlobalTemplate \n ${res_error}`,
6891
- });
6892
- }
6893
- }
6894
-
6895
- return response;
6896
- }
6897
-
6898
6818
  /**
6899
6819
  * @param {CatalogPlatformValidator.ValidateProductTemplateParam} arg - Arg object
6900
6820
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6901
6821
  * @param {import("../PlatformAPIClient").Options} - Options
6902
- * @returns {Promise<CatalogPlatformModel.TemplatesValidationResponseSchema>}
6903
- * - Success response
6904
- *
6822
+ * @returns {Promise<CatalogPlatformModel.TemplatesValidationResponse>} -
6823
+ * Success response
6905
6824
  * @name validateProductTemplate
6906
- * @summary: Validate product template
6907
- * @description: Allows you to list all product templates validation values by its slug for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplate/).
6825
+ * @summary: Validate product template.
6826
+ * @description: Allows you to list all product templates validation values for all the fields present in the database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplate/).
6908
6827
  */
6909
6828
  async validateProductTemplate(
6910
6829
  { slug, itemType, bulk, requestHeaders } = { requestHeaders: {} },
@@ -6951,7 +6870,7 @@ class Catalog {
6951
6870
  const response = await PlatformAPIClient.execute(
6952
6871
  this.config,
6953
6872
  "get",
6954
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/validation/schema/`,
6873
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/products/templates/${slug}/validation/schema`,
6955
6874
  query_params,
6956
6875
  undefined,
6957
6876
  { ...xHeaders, ...requestHeaders },
@@ -6965,7 +6884,7 @@ class Catalog {
6965
6884
 
6966
6885
  const {
6967
6886
  error: res_error,
6968
- } = CatalogPlatformModel.TemplatesValidationResponseSchema().validate(
6887
+ } = CatalogPlatformModel.TemplatesValidationResponse().validate(
6969
6888
  responseData,
6970
6889
  { abortEarly: false, allowUnknown: true }
6971
6890
  );
@@ -6990,15 +6909,14 @@ class Catalog {
6990
6909
  *
6991
6910
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6992
6911
  * @param {import("../PlatformAPIClient").Options} - Options
6993
- * @returns {Promise<CatalogPlatformModel.InventoryValidationResponseSchema>}
6994
- * - Success response
6995
- *
6912
+ * @returns {Promise<CatalogPlatformModel.InventoryValidationResponse>} -
6913
+ * Success response
6996
6914
  * @name validateProductTemplateSchema
6997
- * @summary: Validate product template schema
6998
- * @description: Allows you to list all product templates validation values for all the fields present in the database for a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/).
6915
+ * @summary: Validate product template schema.
6916
+ * @description: Allows you to list all product templates validation values for all the fields present in the database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/validateProductTemplateSchema/).
6999
6917
  */
7000
6918
  async validateProductTemplateSchema(
7001
- { itemType, requestHeaders } = { requestHeaders: {} },
6919
+ { itemType, bulk, requestHeaders } = { requestHeaders: {} },
7002
6920
  { responseHeaders } = { responseHeaders: false }
7003
6921
  ) {
7004
6922
  const {
@@ -7006,6 +6924,7 @@ class Catalog {
7006
6924
  } = CatalogPlatformValidator.validateProductTemplateSchema().validate(
7007
6925
  {
7008
6926
  itemType,
6927
+ bulk,
7009
6928
  },
7010
6929
  { abortEarly: false, allowUnknown: true }
7011
6930
  );
@@ -7019,6 +6938,7 @@ class Catalog {
7019
6938
  } = CatalogPlatformValidator.validateProductTemplateSchema().validate(
7020
6939
  {
7021
6940
  itemType,
6941
+ bulk,
7022
6942
  },
7023
6943
  { abortEarly: false, allowUnknown: false }
7024
6944
  );
@@ -7031,13 +6951,14 @@ class Catalog {
7031
6951
 
7032
6952
  const query_params = {};
7033
6953
  query_params["item_type"] = itemType;
6954
+ query_params["bulk"] = bulk;
7034
6955
 
7035
6956
  const xHeaders = {};
7036
6957
 
7037
6958
  const response = await PlatformAPIClient.execute(
7038
6959
  this.config,
7039
6960
  "get",
7040
- `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/validation/schema/`,
6961
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/inventory/templates/validation/schema`,
7041
6962
  query_params,
7042
6963
  undefined,
7043
6964
  { ...xHeaders, ...requestHeaders },
@@ -7051,7 +6972,7 @@ class Catalog {
7051
6972
 
7052
6973
  const {
7053
6974
  error: res_error,
7054
- } = CatalogPlatformModel.InventoryValidationResponseSchema().validate(
6975
+ } = CatalogPlatformModel.InventoryValidationResponse().validate(
7055
6976
  responseData,
7056
6977
  { abortEarly: false, allowUnknown: true }
7057
6978
  );