@gofynd/fdk-client-javascript 1.6.4 → 3.1.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 (290) 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 +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  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 +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. 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,15 +941,16 @@ 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
  {
954
952
  storeType,
953
+ storeCodes,
955
954
  q,
956
955
  stage,
957
956
  pageNo,
@@ -966,6 +965,7 @@ class CompanyProfile {
966
965
  const { error } = CompanyProfilePlatformValidator.getLocations().validate(
967
966
  {
968
967
  storeType,
968
+ storeCodes,
969
969
  q,
970
970
  stage,
971
971
  pageNo,
@@ -986,6 +986,7 @@ class CompanyProfile {
986
986
  } = CompanyProfilePlatformValidator.getLocations().validate(
987
987
  {
988
988
  storeType,
989
+ storeCodes,
989
990
  q,
990
991
  stage,
991
992
  pageNo,
@@ -1005,6 +1006,7 @@ class CompanyProfile {
1005
1006
 
1006
1007
  const query_params = {};
1007
1008
  query_params["store_type"] = storeType;
1009
+ query_params["store_codes"] = storeCodes;
1008
1010
  query_params["q"] = q;
1009
1011
  query_params["stage"] = stage;
1010
1012
  query_params["page_no"] = pageNo;
@@ -1018,7 +1020,7 @@ class CompanyProfile {
1018
1020
  const response = await PlatformAPIClient.execute(
1019
1021
  this.config,
1020
1022
  "get",
1021
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location`,
1023
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location`,
1022
1024
  query_params,
1023
1025
  undefined,
1024
1026
  { ...xHeaders, ...requestHeaders },
@@ -1032,7 +1034,7 @@ class CompanyProfile {
1032
1034
 
1033
1035
  const {
1034
1036
  error: res_error,
1035
- } = CompanyProfilePlatformModel.LocationListSchema().validate(
1037
+ } = CompanyProfilePlatformModel.LocationListSerializer().validate(
1036
1038
  responseData,
1037
1039
  { abortEarly: false, allowUnknown: true }
1038
1040
  );
@@ -1055,6 +1057,10 @@ class CompanyProfile {
1055
1057
  * @param {Object} arg - Arg object.
1056
1058
  * @param {string} [arg.storeType] - Helps to sort the location list on the
1057
1059
  * basis of location type.
1060
+ * @param {string[]} [arg.storeCodes] - List of up to 50 store codes to
1061
+ * fetch. Specify multiple values by repeating the query parameter (e.g.,
1062
+ * `?store_codes=high_street&store_codes=main_avenue`). Comma-separated
1063
+ * values are not supported.
1058
1064
  * @param {string} [arg.q] - Query that is to be searched.
1059
1065
  * @param {string} [arg.stage] - To filter companies on basis of verified or
1060
1066
  * unverified companies.
@@ -1065,12 +1071,13 @@ class CompanyProfile {
1065
1071
  * basis of multiple location type.
1066
1072
  * @param {string[]} [arg.tags] - Helps to get the location list on the
1067
1073
  * 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.
1074
+ * @returns {Paginator<CompanyProfilePlatformModel.LocationListSerializer>}
1075
+ * @summary: Get list of locations
1076
+ * @description: This API allows to view all the locations associated to a company.
1071
1077
  */
1072
1078
  getLocationsPaginator({
1073
1079
  storeType,
1080
+ storeCodes,
1074
1081
  q,
1075
1082
  stage,
1076
1083
  pageSize,
@@ -1085,6 +1092,7 @@ class CompanyProfile {
1085
1092
  const pageType = "number";
1086
1093
  const data = await this.getLocations({
1087
1094
  storeType: storeType,
1095
+ storeCodes: storeCodes,
1088
1096
  q: q,
1089
1097
  stage: stage,
1090
1098
  pageNo: pageNo,
@@ -1107,12 +1115,11 @@ class CompanyProfile {
1107
1115
  * @param {CompanyProfilePlatformValidator.UpdateCompanyParam} arg - Arg object
1108
1116
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1109
1117
  * @param {import("../PlatformAPIClient").Options} - Options
1110
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
1111
- * - Success response
1112
- *
1118
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
1119
+ * Success response
1113
1120
  * @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/).
1121
+ * @summary: Edit company profile
1122
+ * @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
1123
  */
1117
1124
  async updateCompany(
1118
1125
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1151,7 +1158,7 @@ class CompanyProfile {
1151
1158
  const response = await PlatformAPIClient.execute(
1152
1159
  this.config,
1153
1160
  "patch",
1154
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}`,
1161
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}`,
1155
1162
  query_params,
1156
1163
  body,
1157
1164
  { ...xHeaders, ...requestHeaders },
@@ -1165,7 +1172,7 @@ class CompanyProfile {
1165
1172
 
1166
1173
  const {
1167
1174
  error: res_error,
1168
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
1175
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
1169
1176
  responseData,
1170
1177
  { abortEarly: false, allowUnknown: true }
1171
1178
  );
@@ -1188,12 +1195,11 @@ class CompanyProfile {
1188
1195
  * @param {CompanyProfilePlatformValidator.UpdateLocationParam} arg - Arg object
1189
1196
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1190
1197
  * @param {import("../PlatformAPIClient").Options} - Options
1191
- * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponseSchema>}
1192
- * - Success response
1193
- *
1198
+ * @returns {Promise<CompanyProfilePlatformModel.ProfileSuccessResponse>} -
1199
+ * Success response
1194
1200
  * @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/).
1201
+ * @summary: Edit a location asscoiated to a company.
1202
+ * @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
1203
  */
1198
1204
  async updateLocation(
1199
1205
  { locationId, body, requestHeaders } = { requestHeaders: {} },
@@ -1234,7 +1240,7 @@ class CompanyProfile {
1234
1240
  const response = await PlatformAPIClient.execute(
1235
1241
  this.config,
1236
1242
  "put",
1237
- `/service/platform/company-profile/v1.0/company/${this.config.companyId}/location/${locationId}`,
1243
+ `/service/platform/catalog/v2.0/company/${this.config.companyId}/location/${locationId}`,
1238
1244
  query_params,
1239
1245
  body,
1240
1246
  { ...xHeaders, ...requestHeaders },
@@ -1248,7 +1254,7 @@ class CompanyProfile {
1248
1254
 
1249
1255
  const {
1250
1256
  error: res_error,
1251
- } = CompanyProfilePlatformModel.ProfileSuccessResponseSchema().validate(
1257
+ } = CompanyProfilePlatformModel.ProfileSuccessResponse().validate(
1252
1258
  responseData,
1253
1259
  { abortEarly: false, allowUnknown: true }
1254
1260
  );