@gofynd/fdk-client-javascript 1.6.4 → 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 -670
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  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 +4103 -9109
  198. package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
  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 +18 -71
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  253. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  254. package/sdk/platform/User/UserPlatformModel.js +209 -216
  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 +428 -810
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  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
@@ -18,12 +18,12 @@ class CompanyProfile {
18
18
  * @param {CompanyProfilePlatformValidator.CbsOnboardGetParam} arg - Arg object
19
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
20
  * @param {import("../PlatformAPIClient").Options} - Options
21
- * @returns {Promise<CompanyProfilePlatformModel.GetCompanyProfileSerializerResponseSchema>}
21
+ * @returns {Promise<CompanyProfilePlatformModel.GetCompanyProfileSerializerResponse>}
22
22
  * - Success response
23
23
  *
24
24
  * @name cbsOnboardGet
25
25
  * @summary: Get company profile
26
- * @description: View the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/cbsOnboardGet/).
26
+ * @description: This API allows to view the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/cbsOnboardGet/).
27
27
  */
28
28
  async cbsOnboardGet(
29
29
  { requestHeaders } = { requestHeaders: {} },
@@ -58,7 +58,7 @@ class CompanyProfile {
58
58
  const response = await PlatformAPIClient.execute(
59
59
  this.config,
60
60
  "get",
61
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}`,
61
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}`,
62
62
  query_params,
63
63
  undefined,
64
64
  { ...xHeaders, ...requestHeaders },
@@ -72,7 +72,7 @@ class CompanyProfile {
72
72
 
73
73
  const {
74
74
  error: res_error,
75
- } = CompanyProfilePlatformModel.GetCompanyProfileSerializerResponseSchema().validate(
75
+ } = CompanyProfilePlatformModel.GetCompanyProfileSerializerResponse().validate(
76
76
  responseData,
77
77
  { abortEarly: false, allowUnknown: true }
78
78
  );
@@ -95,12 +95,11 @@ class CompanyProfile {
95
95
  * @param {CompanyProfilePlatformValidator.CreateBrandParam} arg - Arg object
96
96
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
97
97
  * @param {import("../PlatformAPIClient").Options} - Options
98
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
99
- * - Success response
100
- *
98
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
99
+ * Success response
101
100
  * @name createBrand
102
- * @summary: Create brand
103
- * @description: Allows to create a brand associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createBrand/).
101
+ * @summary: Create a Brand.
102
+ * @description: This API allows to create a brand associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createBrand/).
104
103
  */
105
104
  async createBrand(
106
105
  { body, requestHeaders } = { requestHeaders: {} },
@@ -139,7 +138,7 @@ class CompanyProfile {
139
138
  const response = await PlatformAPIClient.execute(
140
139
  this.config,
141
140
  "post",
142
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/brand/`,
141
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/brand`,
143
142
  query_params,
144
143
  body,
145
144
  { ...xHeaders, ...requestHeaders },
@@ -153,7 +152,7 @@ class CompanyProfile {
153
152
 
154
153
  const {
155
154
  error: res_error,
156
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
155
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
157
156
  responseData,
158
157
  { abortEarly: false, allowUnknown: true }
159
158
  );
@@ -178,12 +177,11 @@ class CompanyProfile {
178
177
  *
179
178
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
180
179
  * @param {import("../PlatformAPIClient").Options} - Options
181
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
182
- * - Success response
183
- *
180
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
181
+ * Success response
184
182
  * @name createCompanyBrandMapping
185
- * @summary: Create company-brand mapping
186
- * @description: Establish a mapping between a company and a brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createCompanyBrandMapping/).
183
+ * @summary: Create a company brand mapping.
184
+ * @description: This API allows to create a company brand mapping, for a already existing brand in the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createCompanyBrandMapping/).
187
185
  */
188
186
  async createCompanyBrandMapping(
189
187
  { body, requestHeaders } = { requestHeaders: {} },
@@ -224,7 +222,7 @@ class CompanyProfile {
224
222
  const response = await PlatformAPIClient.execute(
225
223
  this.config,
226
224
  "post",
227
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/company-brand`,
225
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/company-brand`,
228
226
  query_params,
229
227
  body,
230
228
  { ...xHeaders, ...requestHeaders },
@@ -238,7 +236,7 @@ class CompanyProfile {
238
236
 
239
237
  const {
240
238
  error: res_error,
241
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
239
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
242
240
  responseData,
243
241
  { abortEarly: false, allowUnknown: true }
244
242
  );
@@ -261,12 +259,11 @@ class CompanyProfile {
261
259
  * @param {CompanyProfilePlatformValidator.CreateLocationParam} arg - Arg object
262
260
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
263
261
  * @param {import("../PlatformAPIClient").Options} - Options
264
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
265
- * - Success response
266
- *
262
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
263
+ * Success response
267
264
  * @name createLocation
268
- * @summary: Create company stores
269
- * @description: Create a new location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocation/).
265
+ * @summary: Create a location associated to a company.
266
+ * @description: This API allows to edit a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocation/).
270
267
  */
271
268
  async createLocation(
272
269
  { body, requestHeaders } = { requestHeaders: {} },
@@ -305,7 +302,7 @@ class CompanyProfile {
305
302
  const response = await PlatformAPIClient.execute(
306
303
  this.config,
307
304
  "post",
308
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location`,
305
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
309
306
  query_params,
310
307
  body,
311
308
  { ...xHeaders, ...requestHeaders },
@@ -319,7 +316,7 @@ class CompanyProfile {
319
316
 
320
317
  const {
321
318
  error: res_error,
322
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
319
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
323
320
  responseData,
324
321
  { abortEarly: false, allowUnknown: true }
325
322
  );
@@ -342,12 +339,11 @@ class CompanyProfile {
342
339
  * @param {CompanyProfilePlatformValidator.CreateLocationBulkParam} arg - Arg object
343
340
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
344
341
  * @param {import("../PlatformAPIClient").Options} - Options
345
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
346
- * - Success response
347
- *
342
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
343
+ * Success response
348
344
  * @name createLocationBulk
349
- * @summary: Bulk create company stores
350
- * @description: Allows to create locations in bulk at once associated to a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocationBulk/).
345
+ * @summary: Create a location asscoiated to a company in bulk.
346
+ * @description: This API allows to create a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/createLocationBulk/).
351
347
  */
352
348
  async createLocationBulk(
353
349
  { body, requestHeaders } = { requestHeaders: {} },
@@ -388,7 +384,7 @@ class CompanyProfile {
388
384
  const response = await PlatformAPIClient.execute(
389
385
  this.config,
390
386
  "post",
391
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location/bulk`,
387
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/bulk`,
392
388
  query_params,
393
389
  body,
394
390
  { ...xHeaders, ...requestHeaders },
@@ -402,7 +398,7 @@ class CompanyProfile {
402
398
 
403
399
  const {
404
400
  error: res_error,
405
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
401
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
406
402
  responseData,
407
403
  { abortEarly: false, allowUnknown: true }
408
404
  );
@@ -425,12 +421,11 @@ class CompanyProfile {
425
421
  * @param {CompanyProfilePlatformValidator.EditBrandParam} arg - Arg object
426
422
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
427
423
  * @param {import("../PlatformAPIClient").Options} - Options
428
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
429
- * - Success response
430
- *
424
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
425
+ * Success response
431
426
  * @name editBrand
432
- * @summary: update brand
433
- * @description: Modify brand details and meta of a specific brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/editBrand/).
427
+ * @summary: Edit a brand.
428
+ * @description: This API allows to edit meta of a brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/editBrand/).
434
429
  */
435
430
  async editBrand(
436
431
  { brandId, body, requestHeaders } = { requestHeaders: {} },
@@ -471,7 +466,7 @@ class CompanyProfile {
471
466
  const response = await PlatformAPIClient.execute(
472
467
  this.config,
473
468
  "put",
474
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/brand/${brandId}`,
469
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/brand/${brandId}`,
475
470
  query_params,
476
471
  body,
477
472
  { ...xHeaders, ...requestHeaders },
@@ -485,7 +480,7 @@ class CompanyProfile {
485
480
 
486
481
  const {
487
482
  error: res_error,
488
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
483
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
489
484
  responseData,
490
485
  { abortEarly: false, allowUnknown: true }
491
486
  );
@@ -508,11 +503,12 @@ class CompanyProfile {
508
503
  * @param {CompanyProfilePlatformValidator.GetBrandParam} arg - Arg object
509
504
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
510
505
  * @param {import("../PlatformAPIClient").Options} - Options
511
- * @returns {Promise<CompanyProfilePlatformModel.GetBrandResponseSchema>} -
512
- * Success response
506
+ * @returns {Promise<CompanyProfilePlatformModel.GetBrandResponseSerializer>}
507
+ * - Success response
508
+ *
513
509
  * @name getBrand
514
- * @summary: Get a brand
515
- * @description: Retrieve detailed information about a specific brand associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrand/).
510
+ * @summary: Get a single company brand.
511
+ * @description: This API helps to get data associated to a particular company brand. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrand/).
516
512
  */
517
513
  async getBrand(
518
514
  { brandId, requestHeaders } = { requestHeaders: {} },
@@ -551,7 +547,7 @@ class CompanyProfile {
551
547
  const response = await PlatformAPIClient.execute(
552
548
  this.config,
553
549
  "get",
554
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/brand/${brandId}`,
550
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/brand/${brandId}`,
555
551
  query_params,
556
552
  undefined,
557
553
  { ...xHeaders, ...requestHeaders },
@@ -565,7 +561,7 @@ class CompanyProfile {
565
561
 
566
562
  const {
567
563
  error: res_error,
568
- } = CompanyProfilePlatformModel.GetBrandResponseSchema().validate(
564
+ } = CompanyProfilePlatformModel.GetBrandResponseSerializer().validate(
569
565
  responseData,
570
566
  { abortEarly: false, allowUnknown: true }
571
567
  );
@@ -588,11 +584,12 @@ class CompanyProfile {
588
584
  * @param {CompanyProfilePlatformValidator.GetBrandsParam} arg - Arg object
589
585
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
590
586
  * @param {import("../PlatformAPIClient").Options} - Options
591
- * @returns {Promise<CompanyProfilePlatformModel.CompanyBrandListSchema>} -
592
- * Success response
587
+ * @returns {Promise<CompanyProfilePlatformModel.CompanyBrandListSerializer>}
588
+ * - Success response
589
+ *
593
590
  * @name getBrands
594
- * @summary: list company brands
595
- * @description: Retrieve a list of available brands associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrands/).
591
+ * @summary: Get brands associated to a company
592
+ * @description: This API helps to get view brands associated to a particular company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getBrands/).
596
593
  */
597
594
  async getBrands(
598
595
  { pageNo, pageSize, q, requestHeaders } = { requestHeaders: {} },
@@ -638,7 +635,7 @@ class CompanyProfile {
638
635
  const response = await PlatformAPIClient.execute(
639
636
  this.config,
640
637
  "get",
641
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/company-brand`,
638
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/company-brand`,
642
639
  query_params,
643
640
  undefined,
644
641
  { ...xHeaders, ...requestHeaders },
@@ -652,7 +649,7 @@ class CompanyProfile {
652
649
 
653
650
  const {
654
651
  error: res_error,
655
- } = CompanyProfilePlatformModel.CompanyBrandListSchema().validate(
652
+ } = CompanyProfilePlatformModel.CompanyBrandListSerializer().validate(
656
653
  responseData,
657
654
  { abortEarly: false, allowUnknown: true }
658
655
  );
@@ -676,9 +673,9 @@ class CompanyProfile {
676
673
  * @param {number} [arg.pageSize] - Number of items to retrieve in each
677
674
  * page. Default is 10.
678
675
  * @param {string} [arg.q] - Search term for name.
679
- * @returns {Paginator<CompanyProfilePlatformModel.CompanyBrandListSchema>}
680
- * @summary: list company brands
681
- * @description: Retrieve a list of available brands associated to a company.
676
+ * @returns {Paginator<CompanyProfilePlatformModel.CompanyBrandListSerializer>}
677
+ * @summary: Get brands associated to a company
678
+ * @description: This API helps to get view brands associated to a particular company.
682
679
  */
683
680
  getBrandsPaginator({ pageSize, q } = {}) {
684
681
  const paginator = new Paginator();
@@ -705,10 +702,11 @@ class CompanyProfile {
705
702
  * @param {CompanyProfilePlatformValidator.GetCompanyMetricsParam} arg - Arg object
706
703
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
707
704
  * @param {import("../PlatformAPIClient").Options} - Options
708
- * @returns {Promise<CompanyProfilePlatformModel.MetricsSchema>} - Success response
705
+ * @returns {Promise<CompanyProfilePlatformModel.MetricsSerializer>} -
706
+ * Success response
709
707
  * @name getCompanyMetrics
710
708
  * @summary: Get company metrics
711
- * @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/companyprofile/getCompanyMetrics/).
709
+ * @description: This API 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/companyprofile/getCompanyMetrics/).
712
710
  */
713
711
  async getCompanyMetrics(
714
712
  { requestHeaders } = { requestHeaders: {} },
@@ -745,7 +743,7 @@ class CompanyProfile {
745
743
  const response = await PlatformAPIClient.execute(
746
744
  this.config,
747
745
  "get",
748
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/metrics`,
746
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/metrics`,
749
747
  query_params,
750
748
  undefined,
751
749
  { ...xHeaders, ...requestHeaders },
@@ -759,7 +757,7 @@ class CompanyProfile {
759
757
 
760
758
  const {
761
759
  error: res_error,
762
- } = CompanyProfilePlatformModel.MetricsSchema().validate(responseData, {
760
+ } = CompanyProfilePlatformModel.MetricsSerializer().validate(responseData, {
763
761
  abortEarly: false,
764
762
  allowUnknown: true,
765
763
  });
@@ -782,11 +780,11 @@ class CompanyProfile {
782
780
  * @param {CompanyProfilePlatformValidator.GetLocationDetailParam} arg - Arg object
783
781
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
784
782
  * @param {import("../PlatformAPIClient").Options} - Options
785
- * @returns {Promise<CompanyProfilePlatformModel.GetLocationSchema>} -
783
+ * @returns {Promise<CompanyProfilePlatformModel.GetLocationSerializer>} -
786
784
  * Success response
787
785
  * @name getLocationDetail
788
- * @summary: Get company stores
789
- * @description: Retrive detailed information about a specific location associated to a specific company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationDetail/).
786
+ * @summary: Get details of a specific location.
787
+ * @description: This API helps to get data associated to a specific location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationDetail/).
790
788
  */
791
789
  async getLocationDetail(
792
790
  { locationId, requestHeaders } = { requestHeaders: {} },
@@ -827,7 +825,7 @@ class CompanyProfile {
827
825
  const response = await PlatformAPIClient.execute(
828
826
  this.config,
829
827
  "get",
830
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location/${locationId}`,
828
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
831
829
  query_params,
832
830
  undefined,
833
831
  { ...xHeaders, ...requestHeaders },
@@ -841,10 +839,10 @@ class CompanyProfile {
841
839
 
842
840
  const {
843
841
  error: res_error,
844
- } = CompanyProfilePlatformModel.GetLocationSchema().validate(responseData, {
845
- abortEarly: false,
846
- allowUnknown: true,
847
- });
842
+ } = CompanyProfilePlatformModel.GetLocationSerializer().validate(
843
+ responseData,
844
+ { abortEarly: false, allowUnknown: true }
845
+ );
848
846
 
849
847
  if (res_error) {
850
848
  if (this.config.options.strictResponseCheck === true) {
@@ -868,8 +866,8 @@ class CompanyProfile {
868
866
  * - Success response
869
867
  *
870
868
  * @name getLocationTags
871
- * @summary: Get company store tags
872
- * @description: Retrieve all the distinct tags associated to a company location. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationTags/).
869
+ * @summary: Get tags associated with locations for a company.
870
+ * @description: This API fetches all the tags associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocationTags/).
873
871
  */
874
872
  async getLocationTags(
875
873
  { requestHeaders } = { requestHeaders: {} },
@@ -906,7 +904,7 @@ class CompanyProfile {
906
904
  const response = await PlatformAPIClient.execute(
907
905
  this.config,
908
906
  "get",
909
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location/tags`,
907
+ `/service/platform/catalog/v1.0/company/${this.config.companyId}/location/tags`,
910
908
  query_params,
911
909
  undefined,
912
910
  { ...xHeaders, ...requestHeaders },
@@ -943,11 +941,11 @@ class CompanyProfile {
943
941
  * @param {CompanyProfilePlatformValidator.GetLocationsParam} arg - Arg object
944
942
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
945
943
  * @param {import("../PlatformAPIClient").Options} - Options
946
- * @returns {Promise<CompanyProfilePlatformModel.LocationListSchema>} -
944
+ * @returns {Promise<CompanyProfilePlatformModel.LocationListSerializer>} -
947
945
  * Success response
948
946
  * @name getLocations
949
- * @summary: Get company specific stores
950
- * @description: Retrieve a list of locations associated with the company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocations/).
947
+ * @summary: Get list of locations
948
+ * @description: This API allows to view all the locations associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/getLocations/).
951
949
  */
952
950
  async getLocations(
953
951
  {
@@ -1018,7 +1016,7 @@ class CompanyProfile {
1018
1016
  const response = await PlatformAPIClient.execute(
1019
1017
  this.config,
1020
1018
  "get",
1021
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location`,
1019
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
1022
1020
  query_params,
1023
1021
  undefined,
1024
1022
  { ...xHeaders, ...requestHeaders },
@@ -1032,7 +1030,7 @@ class CompanyProfile {
1032
1030
 
1033
1031
  const {
1034
1032
  error: res_error,
1035
- } = CompanyProfilePlatformModel.LocationListSchema().validate(
1033
+ } = CompanyProfilePlatformModel.LocationListSerializer().validate(
1036
1034
  responseData,
1037
1035
  { abortEarly: false, allowUnknown: true }
1038
1036
  );
@@ -1051,68 +1049,15 @@ class CompanyProfile {
1051
1049
  return response;
1052
1050
  }
1053
1051
 
1054
- /**
1055
- * @param {Object} arg - Arg object.
1056
- * @param {string} [arg.storeType] - Helps to sort the location list on the
1057
- * basis of location type.
1058
- * @param {string} [arg.q] - Query that is to be searched.
1059
- * @param {string} [arg.stage] - To filter companies on basis of verified or
1060
- * unverified companies.
1061
- * @param {number} [arg.pageSize] - Number of items to retrieve in each
1062
- * page. Default is 10.
1063
- * @param {number[]} [arg.locationIds] - Helps to filter stores on the basis of uids.
1064
- * @param {string[]} [arg.types] - Helps to get the location list on the
1065
- * basis of multiple location type.
1066
- * @param {string[]} [arg.tags] - Helps to get the location list on the
1067
- * basis of multiple location tag.
1068
- * @returns {Paginator<CompanyProfilePlatformModel.LocationListSchema>}
1069
- * @summary: Get company specific stores
1070
- * @description: Retrieve a list of locations associated with the company.
1071
- */
1072
- getLocationsPaginator({
1073
- storeType,
1074
- q,
1075
- stage,
1076
- pageSize,
1077
- locationIds,
1078
- types,
1079
- tags,
1080
- } = {}) {
1081
- const paginator = new Paginator();
1082
- const callback = async () => {
1083
- const pageId = paginator.nextId;
1084
- const pageNo = paginator.pageNo;
1085
- const pageType = "number";
1086
- const data = await this.getLocations({
1087
- storeType: storeType,
1088
- q: q,
1089
- stage: stage,
1090
- pageNo: pageNo,
1091
- pageSize: pageSize,
1092
- locationIds: locationIds,
1093
- types: types,
1094
- tags: tags,
1095
- });
1096
- paginator.setPaginator({
1097
- hasNext: data.page.has_next ? true : false,
1098
- nextId: data.page.next_id,
1099
- });
1100
- return data;
1101
- };
1102
- paginator.setCallback(callback.bind(this));
1103
- return paginator;
1104
- }
1105
-
1106
1052
  /**
1107
1053
  * @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
1108
1054
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1109
1055
  * @param {import("../PlatformAPIClient").Options} - Options
1110
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
1111
- * - Success response
1112
- *
1056
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
1057
+ * Success response
1113
1058
  * @name updateCompany
1114
- * @summary: Update company profile
1115
- * @description: Allows to edit the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateCompany/).
1059
+ * @summary: Edit company profile
1060
+ * @description: This API allows to edit the company profile of the seller account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateCompany/).
1116
1061
  */
1117
1062
  async updateCompany(
1118
1063
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1151,7 +1096,7 @@ class CompanyProfile {
1151
1096
  const response = await PlatformAPIClient.execute(
1152
1097
  this.config,
1153
1098
  "patch",
1154
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}`,
1099
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}`,
1155
1100
  query_params,
1156
1101
  body,
1157
1102
  { ...xHeaders, ...requestHeaders },
@@ -1165,7 +1110,7 @@ class CompanyProfile {
1165
1110
 
1166
1111
  const {
1167
1112
  error: res_error,
1168
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
1113
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
1169
1114
  responseData,
1170
1115
  { abortEarly: false, allowUnknown: true }
1171
1116
  );
@@ -1188,12 +1133,11 @@ class CompanyProfile {
1188
1133
  * @param {CompanyProfilePlatformValidator.UpdateLocationParam} arg - Arg object
1189
1134
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1190
1135
  * @param {import("../PlatformAPIClient").Options} - Options
1191
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
1192
- * - Success response
1193
- *
1136
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
1137
+ * Success response
1194
1138
  * @name updateLocation
1195
- * @summary: Update company stores
1196
- * @description: Allows to edit a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateLocation/).
1139
+ * @summary: Edit a location asscoiated to a company.
1140
+ * @description: This API allows to edit a location associated to a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/companyprofile/updateLocation/).
1197
1141
  */
1198
1142
  async updateLocation(
1199
1143
  { locationId, body, requestHeaders } = { requestHeaders: {} },
@@ -1234,7 +1178,7 @@ class CompanyProfile {
1234
1178
  const response = await PlatformAPIClient.execute(
1235
1179
  this.config,
1236
1180
  "put",
1237
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location/${locationId}`,
1181
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
1238
1182
  query_params,
1239
1183
  body,
1240
1184
  { ...xHeaders, ...requestHeaders },
@@ -1248,7 +1192,7 @@ class CompanyProfile {
1248
1192
 
1249
1193
  const {
1250
1194
  error: res_error,
1251
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
1195
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
1252
1196
  responseData,
1253
1197
  { abortEarly: false, allowUnknown: true }
1254
1198
  );