@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

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 (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -1,8 +1,8 @@
1
1
  const PlatformAPIClient = require("../PlatformAPIClient");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const Paginator = require("../../common/Paginator");
4
- const ConfigurationValidator = require("./ConfigurationPlatformApplicationValidator");
5
- const ConfigurationModel = require("./ConfigurationPlatformModel");
4
+ const ConfigurationPlatformApplicationValidator = require("./ConfigurationPlatformApplicationValidator");
5
+ const ConfigurationPlatformModel = require("./ConfigurationPlatformModel");
6
6
  const { Logger } = require("./../../common/Logger");
7
7
  const Joi = require("joi");
8
8
 
@@ -13,14 +13,17 @@ class Configuration {
13
13
  }
14
14
 
15
15
  /**
16
- * @param {Object} arg - Arg object.
17
- * @param {DomainAddRequest} arg.body
18
- * @returns {Promise<Domain>} - Success response
16
+ * @param {ConfigurationPlatformApplicationValidator.AddDomainParam} arg - Arg object
17
+ * @param {import("../PlatformAPIClient").Options} - Options
18
+ * @returns {Promise<ConfigurationPlatformModel.Domain>} - Success response
19
+ * @name addDomain
19
20
  * @summary: Add new domain to current sales channel
20
- * @description: Add a new domain to current sales channel, including pre-defined domain (free domain) or custom domain (owned by the brand)
21
+ * @description: Add a new domain to current sales channel, including pre-defined domain (free domain) or custom domain (owned by the brand) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/addDomain/).
21
22
  */
22
- async addDomain({ body } = {}) {
23
- const { error } = ConfigurationValidator.addDomain().validate(
23
+ async addDomain({ body } = {}, { headers } = { headers: false }) {
24
+ const {
25
+ error,
26
+ } = ConfigurationPlatformApplicationValidator.addDomain().validate(
24
27
  {
25
28
  body,
26
29
  },
@@ -31,7 +34,9 @@ class Configuration {
31
34
  }
32
35
 
33
36
  // Showing warrnings if extra unknown parameters are found
34
- const { error: warrning } = ConfigurationValidator.addDomain().validate(
37
+ const {
38
+ error: warrning,
39
+ } = ConfigurationPlatformApplicationValidator.addDomain().validate(
35
40
  {
36
41
  body,
37
42
  },
@@ -40,9 +45,8 @@ class Configuration {
40
45
  if (warrning) {
41
46
  Logger({
42
47
  level: "WARN",
43
- message: "Parameter Validation warrnings for addDomain",
48
+ message: `Parameter Validation warrnings for platform > Configuration > addDomain \n ${warrning}`,
44
49
  });
45
- Logger({ level: "WARN", message: warrning });
46
50
  }
47
51
 
48
52
  const query_params = {};
@@ -52,34 +56,47 @@ class Configuration {
52
56
  "post",
53
57
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
54
58
  query_params,
55
- body
59
+ body,
60
+ undefined,
61
+ { headers }
56
62
  );
57
63
 
58
- const { error: res_error } = ConfigurationModel.Domain().validate(
59
- response,
60
- { abortEarly: false, allowUnknown: false }
61
- );
64
+ let responseData = response;
65
+ if (headers) {
66
+ responseData = response[0];
67
+ }
68
+
69
+ const {
70
+ error: res_error,
71
+ } = ConfigurationPlatformModel.Domain().validate(responseData, {
72
+ abortEarly: false,
73
+ allowUnknown: false,
74
+ });
62
75
 
63
76
  if (res_error) {
64
77
  Logger({
65
78
  level: "WARN",
66
- message: "Response Validation Warnnings for addDomain",
79
+ message: `Response Validation Warnnings for platform > Configuration > addDomain \n ${res_error}`,
67
80
  });
68
- Logger({ level: "WARN", message: res_error });
69
81
  }
70
82
 
71
83
  return response;
72
84
  }
73
85
 
74
86
  /**
75
- * @param {Object} arg - Arg object.
76
- * @param {UpdateDomainTypeRequest} arg.body
77
- * @returns {Promise<DomainsResponse>} - Success response
87
+ * @param {ConfigurationPlatformApplicationValidator.ChangeDomainTypeParam} arg
88
+ * - Arg object
89
+ *
90
+ * @param {import("../PlatformAPIClient").Options} - Options
91
+ * @returns {Promise<ConfigurationPlatformModel.DomainsResponse>} - Success response
92
+ * @name changeDomainType
78
93
  * @summary: Change the type of domain in the current sales channel
79
- * @description: Primary domain is used as the URL of your website. Short link domain is comparatively smaller and used while generating short links. Use this API to change a domain to either Primary or a Shortlink domain.
94
+ * @description: Primary domain is used as the URL of your website. Short link domain is comparatively smaller and used while generating short links. Use this API to change a domain to either Primary or a Shortlink domain. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/changeDomainType/).
80
95
  */
81
- async changeDomainType({ body } = {}) {
82
- const { error } = ConfigurationValidator.changeDomainType().validate(
96
+ async changeDomainType({ body } = {}, { headers } = { headers: false }) {
97
+ const {
98
+ error,
99
+ } = ConfigurationPlatformApplicationValidator.changeDomainType().validate(
83
100
  {
84
101
  body,
85
102
  },
@@ -92,7 +109,7 @@ class Configuration {
92
109
  // Showing warrnings if extra unknown parameters are found
93
110
  const {
94
111
  error: warrning,
95
- } = ConfigurationValidator.changeDomainType().validate(
112
+ } = ConfigurationPlatformApplicationValidator.changeDomainType().validate(
96
113
  {
97
114
  body,
98
115
  },
@@ -101,9 +118,8 @@ class Configuration {
101
118
  if (warrning) {
102
119
  Logger({
103
120
  level: "WARN",
104
- message: "Parameter Validation warrnings for changeDomainType",
121
+ message: `Parameter Validation warrnings for platform > Configuration > changeDomainType \n ${warrning}`,
105
122
  });
106
- Logger({ level: "WARN", message: warrning });
107
123
  }
108
124
 
109
125
  const query_params = {};
@@ -113,12 +129,19 @@ class Configuration {
113
129
  "post",
114
130
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/set-domain`,
115
131
  query_params,
116
- body
132
+ body,
133
+ undefined,
134
+ { headers }
117
135
  );
118
136
 
137
+ let responseData = response;
138
+ if (headers) {
139
+ responseData = response[0];
140
+ }
141
+
119
142
  const {
120
143
  error: res_error,
121
- } = ConfigurationModel.DomainsResponse().validate(response, {
144
+ } = ConfigurationPlatformModel.DomainsResponse().validate(responseData, {
122
145
  abortEarly: false,
123
146
  allowUnknown: false,
124
147
  });
@@ -126,22 +149,24 @@ class Configuration {
126
149
  if (res_error) {
127
150
  Logger({
128
151
  level: "WARN",
129
- message: "Response Validation Warnnings for changeDomainType",
152
+ message: `Response Validation Warnnings for platform > Configuration > changeDomainType \n ${res_error}`,
130
153
  });
131
- Logger({ level: "WARN", message: res_error });
132
154
  }
133
155
 
134
156
  return response;
135
157
  }
136
158
 
137
159
  /**
138
- * @param {Object} arg - Arg object.
139
- * @returns {Promise<TokenResponse>} - Success response
160
+ * @param {import("../PlatformAPIClient").Options} - Options
161
+ * @returns {Promise<ConfigurationPlatformModel.TokenResponse>} - Success response
162
+ * @name getAppApiTokens
140
163
  * @summary: Get social tokens for the sales channel
141
- * @description: Use this API to retrieve the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google, and Facebook auth. **Note** - Token values are encrypted with AES encryption using a secret key.
164
+ * @description: Use this API to retrieve the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google, and Facebook auth. **Note** - Token values are encrypted with AES encryption using a secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppApiTokens/).
142
165
  */
143
- async getAppApiTokens({} = {}) {
144
- const { error } = ConfigurationValidator.getAppApiTokens().validate(
166
+ async getAppApiTokens({ headers } = { headers: false }) {
167
+ const {
168
+ error,
169
+ } = ConfigurationPlatformApplicationValidator.getAppApiTokens().validate(
145
170
  {},
146
171
  { abortEarly: false, allowUnknown: true }
147
172
  );
@@ -152,16 +177,15 @@ class Configuration {
152
177
  // Showing warrnings if extra unknown parameters are found
153
178
  const {
154
179
  error: warrning,
155
- } = ConfigurationValidator.getAppApiTokens().validate(
180
+ } = ConfigurationPlatformApplicationValidator.getAppApiTokens().validate(
156
181
  {},
157
182
  { abortEarly: false, allowUnknown: false }
158
183
  );
159
184
  if (warrning) {
160
185
  Logger({
161
186
  level: "WARN",
162
- message: "Parameter Validation warrnings for getAppApiTokens",
187
+ message: `Parameter Validation warrnings for platform > Configuration > getAppApiTokens \n ${warrning}`,
163
188
  });
164
- Logger({ level: "WARN", message: warrning });
165
189
  }
166
190
 
167
191
  const query_params = {};
@@ -171,12 +195,19 @@ class Configuration {
171
195
  "get",
172
196
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
173
197
  query_params,
174
- undefined
198
+ undefined,
199
+ undefined,
200
+ { headers }
175
201
  );
176
202
 
203
+ let responseData = response;
204
+ if (headers) {
205
+ responseData = response[0];
206
+ }
207
+
177
208
  const {
178
209
  error: res_error,
179
- } = ConfigurationModel.TokenResponse().validate(response, {
210
+ } = ConfigurationPlatformModel.TokenResponse().validate(responseData, {
180
211
  abortEarly: false,
181
212
  allowUnknown: false,
182
213
  });
@@ -184,22 +215,24 @@ class Configuration {
184
215
  if (res_error) {
185
216
  Logger({
186
217
  level: "WARN",
187
- message: "Response Validation Warnnings for getAppApiTokens",
218
+ message: `Response Validation Warnnings for platform > Configuration > getAppApiTokens \n ${res_error}`,
188
219
  });
189
- Logger({ level: "WARN", message: res_error });
190
220
  }
191
221
 
192
222
  return response;
193
223
  }
194
224
 
195
225
  /**
196
- * @param {Object} arg - Arg object.
197
- * @returns {Promise<ApplicationDetail>} - Success response
226
+ * @param {import("../PlatformAPIClient").Options} - Options
227
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
228
+ * @name getAppBasicDetails
198
229
  * @summary: Get sales channel details
199
- * @description: Shows basic sales channel details like name, description, logo, domain, company ID, and other related information.
230
+ * @description: Shows basic sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppBasicDetails/).
200
231
  */
201
- async getAppBasicDetails({} = {}) {
202
- const { error } = ConfigurationValidator.getAppBasicDetails().validate(
232
+ async getAppBasicDetails({ headers } = { headers: false }) {
233
+ const {
234
+ error,
235
+ } = ConfigurationPlatformApplicationValidator.getAppBasicDetails().validate(
203
236
  {},
204
237
  { abortEarly: false, allowUnknown: true }
205
238
  );
@@ -210,16 +243,15 @@ class Configuration {
210
243
  // Showing warrnings if extra unknown parameters are found
211
244
  const {
212
245
  error: warrning,
213
- } = ConfigurationValidator.getAppBasicDetails().validate(
246
+ } = ConfigurationPlatformApplicationValidator.getAppBasicDetails().validate(
214
247
  {},
215
248
  { abortEarly: false, allowUnknown: false }
216
249
  );
217
250
  if (warrning) {
218
251
  Logger({
219
252
  level: "WARN",
220
- message: "Parameter Validation warrnings for getAppBasicDetails",
253
+ message: `Parameter Validation warrnings for platform > Configuration > getAppBasicDetails \n ${warrning}`,
221
254
  });
222
- Logger({ level: "WARN", message: warrning });
223
255
  }
224
256
 
225
257
  const query_params = {};
@@ -229,12 +261,19 @@ class Configuration {
229
261
  "get",
230
262
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
231
263
  query_params,
232
- undefined
264
+ undefined,
265
+ undefined,
266
+ { headers }
233
267
  );
234
268
 
269
+ let responseData = response;
270
+ if (headers) {
271
+ responseData = response[0];
272
+ }
273
+
235
274
  const {
236
275
  error: res_error,
237
- } = ConfigurationModel.ApplicationDetail().validate(response, {
276
+ } = ConfigurationPlatformModel.ApplicationDetail().validate(responseData, {
238
277
  abortEarly: false,
239
278
  allowUnknown: false,
240
279
  });
@@ -242,27 +281,30 @@ class Configuration {
242
281
  if (res_error) {
243
282
  Logger({
244
283
  level: "WARN",
245
- message: "Response Validation Warnnings for getAppBasicDetails",
284
+ message: `Response Validation Warnnings for platform > Configuration > getAppBasicDetails \n ${res_error}`,
246
285
  });
247
- Logger({ level: "WARN", message: res_error });
248
286
  }
249
287
 
250
288
  return response;
251
289
  }
252
290
 
253
291
  /**
254
- * @param {Object} arg - Arg object.
255
- * @param {number} [arg.uid] - UID of companies to be fetched
256
- * @param {number} [arg.pageNo] - The current page number to navigate
257
- * through the given set of results. Default value is 1.
258
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
259
- * page. Default value is 10.
260
- * @returns {Promise<CompaniesResponse>} - Success response
292
+ * @param {ConfigurationPlatformApplicationValidator.GetAppCompaniesParam} arg
293
+ * - Arg object
294
+ *
295
+ * @param {import("../PlatformAPIClient").Options} - Options
296
+ * @returns {Promise<ConfigurationPlatformModel.CompaniesResponse>} - Success response
297
+ * @name getAppCompanies
261
298
  * @summary: Get companies enabled in the sales channel inventory
262
- * @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application
299
+ * @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCompanies/).
263
300
  */
264
- async getAppCompanies({ uid, pageNo, pageSize } = {}) {
265
- const { error } = ConfigurationValidator.getAppCompanies().validate(
301
+ async getAppCompanies(
302
+ { uid, pageNo, pageSize } = {},
303
+ { headers } = { headers: false }
304
+ ) {
305
+ const {
306
+ error,
307
+ } = ConfigurationPlatformApplicationValidator.getAppCompanies().validate(
266
308
  {
267
309
  uid,
268
310
  pageNo,
@@ -277,7 +319,7 @@ class Configuration {
277
319
  // Showing warrnings if extra unknown parameters are found
278
320
  const {
279
321
  error: warrning,
280
- } = ConfigurationValidator.getAppCompanies().validate(
322
+ } = ConfigurationPlatformApplicationValidator.getAppCompanies().validate(
281
323
  {
282
324
  uid,
283
325
  pageNo,
@@ -288,9 +330,8 @@ class Configuration {
288
330
  if (warrning) {
289
331
  Logger({
290
332
  level: "WARN",
291
- message: "Parameter Validation warrnings for getAppCompanies",
333
+ message: `Parameter Validation warrnings for platform > Configuration > getAppCompanies \n ${warrning}`,
292
334
  });
293
- Logger({ level: "WARN", message: warrning });
294
335
  }
295
336
 
296
337
  const query_params = {};
@@ -303,12 +344,19 @@ class Configuration {
303
344
  "get",
304
345
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/companies`,
305
346
  query_params,
306
- undefined
347
+ undefined,
348
+ undefined,
349
+ { headers }
307
350
  );
308
351
 
352
+ let responseData = response;
353
+ if (headers) {
354
+ responseData = response[0];
355
+ }
356
+
309
357
  const {
310
358
  error: res_error,
311
- } = ConfigurationModel.CompaniesResponse().validate(response, {
359
+ } = ConfigurationPlatformModel.CompaniesResponse().validate(responseData, {
312
360
  abortEarly: false,
313
361
  allowUnknown: false,
314
362
  });
@@ -316,9 +364,8 @@ class Configuration {
316
364
  if (res_error) {
317
365
  Logger({
318
366
  level: "WARN",
319
- message: "Response Validation Warnnings for getAppCompanies",
367
+ message: `Response Validation Warnnings for platform > Configuration > getAppCompanies \n ${res_error}`,
320
368
  });
321
- Logger({ level: "WARN", message: res_error });
322
369
  }
323
370
 
324
371
  return response;
@@ -333,6 +380,7 @@ class Configuration {
333
380
  * @param {number} [arg.uid] - UID of companies to be fetched
334
381
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
335
382
  * page. Default value is 10.
383
+ * @returns {Paginator<ConfigurationPlatformModel.CompaniesResponse>}
336
384
  * @summary: Get companies enabled in the sales channel inventory
337
385
  * @description: Fetch info of all the companies (e.g. name, uid, and company type) whose inventory is fetched into the current sales channel application
338
386
  */
@@ -360,13 +408,17 @@ class Configuration {
360
408
  }
361
409
 
362
410
  /**
363
- * @param {Object} arg - Arg object.
364
- * @returns {Promise<ApplicationInformation>} - Success response
411
+ * @param {import("../PlatformAPIClient").Options} - Options
412
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
413
+ * Success response
414
+ * @name getAppContactInfo
365
415
  * @summary: Get current information of the sales channel
366
- * @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application.
416
+ * @description: Fetch data such as social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppContactInfo/).
367
417
  */
368
- async getAppContactInfo({} = {}) {
369
- const { error } = ConfigurationValidator.getAppContactInfo().validate(
418
+ async getAppContactInfo({ headers } = { headers: false }) {
419
+ const {
420
+ error,
421
+ } = ConfigurationPlatformApplicationValidator.getAppContactInfo().validate(
370
422
  {},
371
423
  { abortEarly: false, allowUnknown: true }
372
424
  );
@@ -377,16 +429,15 @@ class Configuration {
377
429
  // Showing warrnings if extra unknown parameters are found
378
430
  const {
379
431
  error: warrning,
380
- } = ConfigurationValidator.getAppContactInfo().validate(
432
+ } = ConfigurationPlatformApplicationValidator.getAppContactInfo().validate(
381
433
  {},
382
434
  { abortEarly: false, allowUnknown: false }
383
435
  );
384
436
  if (warrning) {
385
437
  Logger({
386
438
  level: "WARN",
387
- message: "Parameter Validation warrnings for getAppContactInfo",
439
+ message: `Parameter Validation warrnings for platform > Configuration > getAppContactInfo \n ${warrning}`,
388
440
  });
389
- Logger({ level: "WARN", message: warrning });
390
441
  }
391
442
 
392
443
  const query_params = {};
@@ -396,35 +447,45 @@ class Configuration {
396
447
  "get",
397
448
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
398
449
  query_params,
399
- undefined
450
+ undefined,
451
+ undefined,
452
+ { headers }
400
453
  );
401
454
 
455
+ let responseData = response;
456
+ if (headers) {
457
+ responseData = response[0];
458
+ }
459
+
402
460
  const {
403
461
  error: res_error,
404
- } = ConfigurationModel.ApplicationInformation().validate(response, {
405
- abortEarly: false,
406
- allowUnknown: false,
407
- });
462
+ } = ConfigurationPlatformModel.ApplicationInformation().validate(
463
+ responseData,
464
+ { abortEarly: false, allowUnknown: false }
465
+ );
408
466
 
409
467
  if (res_error) {
410
468
  Logger({
411
469
  level: "WARN",
412
- message: "Response Validation Warnnings for getAppContactInfo",
470
+ message: `Response Validation Warnnings for platform > Configuration > getAppContactInfo \n ${res_error}`,
413
471
  });
414
- Logger({ level: "WARN", message: res_error });
415
472
  }
416
473
 
417
474
  return response;
418
475
  }
419
476
 
420
477
  /**
421
- * @param {Object} arg - Arg object.
422
- * @returns {Promise<AppSupportedCurrency>} - Success response
478
+ * @param {import("../PlatformAPIClient").Options} - Options
479
+ * @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
480
+ * Success response
481
+ * @name getAppCurrencyConfig
423
482
  * @summary: Get currencies supported in the application
424
- * @description: Get a list of currencies supported in the current sales channel. Moreover, get the cuurency that is set as the default one in the application.
483
+ * @description: Get a list of currencies supported in the current sales channel. Moreover, get the cuurency that is set as the default one in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppCurrencyConfig/).
425
484
  */
426
- async getAppCurrencyConfig({} = {}) {
427
- const { error } = ConfigurationValidator.getAppCurrencyConfig().validate(
485
+ async getAppCurrencyConfig({ headers } = { headers: false }) {
486
+ const {
487
+ error,
488
+ } = ConfigurationPlatformApplicationValidator.getAppCurrencyConfig().validate(
428
489
  {},
429
490
  { abortEarly: false, allowUnknown: true }
430
491
  );
@@ -435,16 +496,15 @@ class Configuration {
435
496
  // Showing warrnings if extra unknown parameters are found
436
497
  const {
437
498
  error: warrning,
438
- } = ConfigurationValidator.getAppCurrencyConfig().validate(
499
+ } = ConfigurationPlatformApplicationValidator.getAppCurrencyConfig().validate(
439
500
  {},
440
501
  { abortEarly: false, allowUnknown: false }
441
502
  );
442
503
  if (warrning) {
443
504
  Logger({
444
505
  level: "WARN",
445
- message: "Parameter Validation warrnings for getAppCurrencyConfig",
506
+ message: `Parameter Validation warrnings for platform > Configuration > getAppCurrencyConfig \n ${warrning}`,
446
507
  });
447
- Logger({ level: "WARN", message: warrning });
448
508
  }
449
509
 
450
510
  const query_params = {};
@@ -454,35 +514,45 @@ class Configuration {
454
514
  "get",
455
515
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
456
516
  query_params,
457
- undefined
517
+ undefined,
518
+ undefined,
519
+ { headers }
458
520
  );
459
521
 
522
+ let responseData = response;
523
+ if (headers) {
524
+ responseData = response[0];
525
+ }
526
+
460
527
  const {
461
528
  error: res_error,
462
- } = ConfigurationModel.AppSupportedCurrency().validate(response, {
463
- abortEarly: false,
464
- allowUnknown: false,
465
- });
529
+ } = ConfigurationPlatformModel.AppSupportedCurrency().validate(
530
+ responseData,
531
+ { abortEarly: false, allowUnknown: false }
532
+ );
466
533
 
467
534
  if (res_error) {
468
535
  Logger({
469
536
  level: "WARN",
470
- message: "Response Validation Warnnings for getAppCurrencyConfig",
537
+ message: `Response Validation Warnnings for platform > Configuration > getAppCurrencyConfig \n ${res_error}`,
471
538
  });
472
- Logger({ level: "WARN", message: res_error });
473
539
  }
474
540
 
475
541
  return response;
476
542
  }
477
543
 
478
544
  /**
479
- * @param {Object} arg - Arg object.
480
- * @returns {Promise<AppFeatureResponse>} - Success response
545
+ * @param {import("../PlatformAPIClient").Options} - Options
546
+ * @returns {Promise<ConfigurationPlatformModel.AppFeatureResponse>} -
547
+ * Success response
548
+ * @name getAppFeatures
481
549
  * @summary: Get the sales channel configuration and features
482
- * @description: Shows feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more.
550
+ * @description: Shows feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppFeatures/).
483
551
  */
484
- async getAppFeatures({} = {}) {
485
- const { error } = ConfigurationValidator.getAppFeatures().validate(
552
+ async getAppFeatures({ headers } = { headers: false }) {
553
+ const {
554
+ error,
555
+ } = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
486
556
  {},
487
557
  { abortEarly: false, allowUnknown: true }
488
558
  );
@@ -493,16 +563,15 @@ class Configuration {
493
563
  // Showing warrnings if extra unknown parameters are found
494
564
  const {
495
565
  error: warrning,
496
- } = ConfigurationValidator.getAppFeatures().validate(
566
+ } = ConfigurationPlatformApplicationValidator.getAppFeatures().validate(
497
567
  {},
498
568
  { abortEarly: false, allowUnknown: false }
499
569
  );
500
570
  if (warrning) {
501
571
  Logger({
502
572
  level: "WARN",
503
- message: "Parameter Validation warrnings for getAppFeatures",
573
+ message: `Parameter Validation warrnings for platform > Configuration > getAppFeatures \n ${warrning}`,
504
574
  });
505
- Logger({ level: "WARN", message: warrning });
506
575
  }
507
576
 
508
577
  const query_params = {};
@@ -512,12 +581,19 @@ class Configuration {
512
581
  "get",
513
582
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
514
583
  query_params,
515
- undefined
584
+ undefined,
585
+ undefined,
586
+ { headers }
516
587
  );
517
588
 
589
+ let responseData = response;
590
+ if (headers) {
591
+ responseData = response[0];
592
+ }
593
+
518
594
  const {
519
595
  error: res_error,
520
- } = ConfigurationModel.AppFeatureResponse().validate(response, {
596
+ } = ConfigurationPlatformModel.AppFeatureResponse().validate(responseData, {
521
597
  abortEarly: false,
522
598
  allowUnknown: false,
523
599
  });
@@ -525,26 +601,30 @@ class Configuration {
525
601
  if (res_error) {
526
602
  Logger({
527
603
  level: "WARN",
528
- message: "Response Validation Warnnings for getAppFeatures",
604
+ message: `Response Validation Warnnings for platform > Configuration > getAppFeatures \n ${res_error}`,
529
605
  });
530
- Logger({ level: "WARN", message: res_error });
531
606
  }
532
607
 
533
608
  return response;
534
609
  }
535
610
 
536
611
  /**
537
- * @param {Object} arg - Arg object.
538
- * @param {number} [arg.pageNo] - The current page number to navigate
539
- * through the given set of results. Default value is 1.
540
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
541
- * page. Default value is 10.
542
- * @returns {Promise<StoresResponse>} - Success response
612
+ * @param {ConfigurationPlatformApplicationValidator.GetAppStoresParam} arg
613
+ * - Arg object
614
+ *
615
+ * @param {import("../PlatformAPIClient").Options} - Options
616
+ * @returns {Promise<ConfigurationPlatformModel.StoresResponse>} - Success response
617
+ * @name getAppStores
543
618
  * @summary: Get stores enabled in the sales channel inventory
544
- * @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application
619
+ * @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppStores/).
545
620
  */
546
- async getAppStores({ pageNo, pageSize } = {}) {
547
- const { error } = ConfigurationValidator.getAppStores().validate(
621
+ async getAppStores(
622
+ { pageNo, pageSize } = {},
623
+ { headers } = { headers: false }
624
+ ) {
625
+ const {
626
+ error,
627
+ } = ConfigurationPlatformApplicationValidator.getAppStores().validate(
548
628
  {
549
629
  pageNo,
550
630
  pageSize,
@@ -556,7 +636,9 @@ class Configuration {
556
636
  }
557
637
 
558
638
  // Showing warrnings if extra unknown parameters are found
559
- const { error: warrning } = ConfigurationValidator.getAppStores().validate(
639
+ const {
640
+ error: warrning,
641
+ } = ConfigurationPlatformApplicationValidator.getAppStores().validate(
560
642
  {
561
643
  pageNo,
562
644
  pageSize,
@@ -566,9 +648,8 @@ class Configuration {
566
648
  if (warrning) {
567
649
  Logger({
568
650
  level: "WARN",
569
- message: "Parameter Validation warrnings for getAppStores",
651
+ message: `Parameter Validation warrnings for platform > Configuration > getAppStores \n ${warrning}`,
570
652
  });
571
- Logger({ level: "WARN", message: warrning });
572
653
  }
573
654
 
574
655
  const query_params = {};
@@ -580,12 +661,19 @@ class Configuration {
580
661
  "get",
581
662
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/stores`,
582
663
  query_params,
583
- undefined
664
+ undefined,
665
+ undefined,
666
+ { headers }
584
667
  );
585
668
 
669
+ let responseData = response;
670
+ if (headers) {
671
+ responseData = response[0];
672
+ }
673
+
586
674
  const {
587
675
  error: res_error,
588
- } = ConfigurationModel.StoresResponse().validate(response, {
676
+ } = ConfigurationPlatformModel.StoresResponse().validate(responseData, {
589
677
  abortEarly: false,
590
678
  allowUnknown: false,
591
679
  });
@@ -593,9 +681,8 @@ class Configuration {
593
681
  if (res_error) {
594
682
  Logger({
595
683
  level: "WARN",
596
- message: "Response Validation Warnnings for getAppStores",
684
+ message: `Response Validation Warnnings for platform > Configuration > getAppStores \n ${res_error}`,
597
685
  });
598
- Logger({ level: "WARN", message: res_error });
599
686
  }
600
687
 
601
688
  return response;
@@ -609,6 +696,7 @@ class Configuration {
609
696
  * application (sales channel website) created within a business account
610
697
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
611
698
  * page. Default value is 10.
699
+ * @returns {Paginator<ConfigurationPlatformModel.StoresResponse>}
612
700
  * @summary: Get stores enabled in the sales channel inventory
613
701
  * @description: Fetch info of all the companies (e.g. uid, name, display name, store type, store code and company id) whose inventory is fetched into the current sales channel application
614
702
  */
@@ -635,13 +723,17 @@ class Configuration {
635
723
  }
636
724
 
637
725
  /**
638
- * @param {Object} arg - Arg object.
639
- * @returns {Promise<AppCurrencyResponse>} - Success response
726
+ * @param {import("../PlatformAPIClient").Options} - Options
727
+ * @returns {Promise<ConfigurationPlatformModel.AppCurrencyResponse>} -
728
+ * Success response
729
+ * @name getAppSupportedCurrency
640
730
  * @summary: Get currencies enabled in the application
641
- * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
731
+ * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getAppSupportedCurrency/).
642
732
  */
643
- async getAppSupportedCurrency({} = {}) {
644
- const { error } = ConfigurationValidator.getAppSupportedCurrency().validate(
733
+ async getAppSupportedCurrency({ headers } = { headers: false }) {
734
+ const {
735
+ error,
736
+ } = ConfigurationPlatformApplicationValidator.getAppSupportedCurrency().validate(
645
737
  {},
646
738
  { abortEarly: false, allowUnknown: true }
647
739
  );
@@ -652,16 +744,15 @@ class Configuration {
652
744
  // Showing warrnings if extra unknown parameters are found
653
745
  const {
654
746
  error: warrning,
655
- } = ConfigurationValidator.getAppSupportedCurrency().validate(
747
+ } = ConfigurationPlatformApplicationValidator.getAppSupportedCurrency().validate(
656
748
  {},
657
749
  { abortEarly: false, allowUnknown: false }
658
750
  );
659
751
  if (warrning) {
660
752
  Logger({
661
753
  level: "WARN",
662
- message: "Parameter Validation warrnings for getAppSupportedCurrency",
754
+ message: `Parameter Validation warrnings for platform > Configuration > getAppSupportedCurrency \n ${warrning}`,
663
755
  });
664
- Logger({ level: "WARN", message: warrning });
665
756
  }
666
757
 
667
758
  const query_params = {};
@@ -671,35 +762,44 @@ class Configuration {
671
762
  "get",
672
763
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency/supported`,
673
764
  query_params,
674
- undefined
765
+ undefined,
766
+ undefined,
767
+ { headers }
675
768
  );
676
769
 
770
+ let responseData = response;
771
+ if (headers) {
772
+ responseData = response[0];
773
+ }
774
+
677
775
  const {
678
776
  error: res_error,
679
- } = ConfigurationModel.AppCurrencyResponse().validate(response, {
680
- abortEarly: false,
681
- allowUnknown: false,
682
- });
777
+ } = ConfigurationPlatformModel.AppCurrencyResponse().validate(
778
+ responseData,
779
+ { abortEarly: false, allowUnknown: false }
780
+ );
683
781
 
684
782
  if (res_error) {
685
783
  Logger({
686
784
  level: "WARN",
687
- message: "Response Validation Warnnings for getAppSupportedCurrency",
785
+ message: `Response Validation Warnnings for platform > Configuration > getAppSupportedCurrency \n ${res_error}`,
688
786
  });
689
- Logger({ level: "WARN", message: res_error });
690
787
  }
691
788
 
692
789
  return response;
693
790
  }
694
791
 
695
792
  /**
696
- * @param {Object} arg - Arg object.
697
- * @returns {Promise<Application>} - Success response
793
+ * @param {import("../PlatformAPIClient").Options} - Options
794
+ * @returns {Promise<ConfigurationPlatformModel.Application>} - Success response
795
+ * @name getApplicationById
698
796
  * @summary: Get sales channel data by ID
699
- * @description: Use application ID to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, token, etc.
797
+ * @description: Use application ID to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, token, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getApplicationById/).
700
798
  */
701
- async getApplicationById({} = {}) {
702
- const { error } = ConfigurationValidator.getApplicationById().validate(
799
+ async getApplicationById({ headers } = { headers: false }) {
800
+ const {
801
+ error,
802
+ } = ConfigurationPlatformApplicationValidator.getApplicationById().validate(
703
803
  {},
704
804
  { abortEarly: false, allowUnknown: true }
705
805
  );
@@ -710,16 +810,15 @@ class Configuration {
710
810
  // Showing warrnings if extra unknown parameters are found
711
811
  const {
712
812
  error: warrning,
713
- } = ConfigurationValidator.getApplicationById().validate(
813
+ } = ConfigurationPlatformApplicationValidator.getApplicationById().validate(
714
814
  {},
715
815
  { abortEarly: false, allowUnknown: false }
716
816
  );
717
817
  if (warrning) {
718
818
  Logger({
719
819
  level: "WARN",
720
- message: "Parameter Validation warrnings for getApplicationById",
820
+ message: `Parameter Validation warrnings for platform > Configuration > getApplicationById \n ${warrning}`,
721
821
  });
722
- Logger({ level: "WARN", message: warrning });
723
822
  }
724
823
 
725
824
  const query_params = {};
@@ -729,12 +828,19 @@ class Configuration {
729
828
  "get",
730
829
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
731
830
  query_params,
732
- undefined
831
+ undefined,
832
+ undefined,
833
+ { headers }
733
834
  );
734
835
 
836
+ let responseData = response;
837
+ if (headers) {
838
+ responseData = response[0];
839
+ }
840
+
735
841
  const {
736
842
  error: res_error,
737
- } = ConfigurationModel.Application().validate(response, {
843
+ } = ConfigurationPlatformModel.Application().validate(responseData, {
738
844
  abortEarly: false,
739
845
  allowUnknown: false,
740
846
  });
@@ -742,24 +848,31 @@ class Configuration {
742
848
  if (res_error) {
743
849
  Logger({
744
850
  level: "WARN",
745
- message: "Response Validation Warnnings for getApplicationById",
851
+ message: `Response Validation Warnnings for platform > Configuration > getApplicationById \n ${res_error}`,
746
852
  });
747
- Logger({ level: "WARN", message: res_error });
748
853
  }
749
854
 
750
855
  return response;
751
856
  }
752
857
 
753
858
  /**
754
- * @param {Object} arg - Arg object.
755
- * @param {string} arg.platformType - The device platform for which the
756
- * mobile app is built, e.g. android, ios.
757
- * @returns {Promise<MobileAppConfiguration>} - Success response
859
+ * @param {ConfigurationPlatformApplicationValidator.GetBuildConfigParam} arg
860
+ * - Arg object
861
+ *
862
+ * @param {import("../PlatformAPIClient").Options} - Options
863
+ * @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
864
+ * Success response
865
+ * @name getBuildConfig
758
866
  * @summary: Get configuration of latest mobile build
759
- * @description: Fetch latest build configuration, such as app name, landing page image, splash image used in a mobile build.
867
+ * @description: Fetch latest build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getBuildConfig/).
760
868
  */
761
- async getBuildConfig({ platformType } = {}) {
762
- const { error } = ConfigurationValidator.getBuildConfig().validate(
869
+ async getBuildConfig(
870
+ { platformType } = {},
871
+ { headers } = { headers: false }
872
+ ) {
873
+ const {
874
+ error,
875
+ } = ConfigurationPlatformApplicationValidator.getBuildConfig().validate(
763
876
  {
764
877
  platformType,
765
878
  },
@@ -772,7 +885,7 @@ class Configuration {
772
885
  // Showing warrnings if extra unknown parameters are found
773
886
  const {
774
887
  error: warrning,
775
- } = ConfigurationValidator.getBuildConfig().validate(
888
+ } = ConfigurationPlatformApplicationValidator.getBuildConfig().validate(
776
889
  {
777
890
  platformType,
778
891
  },
@@ -781,9 +894,8 @@ class Configuration {
781
894
  if (warrning) {
782
895
  Logger({
783
896
  level: "WARN",
784
- message: "Parameter Validation warrnings for getBuildConfig",
897
+ message: `Parameter Validation warrnings for platform > Configuration > getBuildConfig \n ${warrning}`,
785
898
  });
786
- Logger({ level: "WARN", message: warrning });
787
899
  }
788
900
 
789
901
  const query_params = {};
@@ -793,36 +905,48 @@ class Configuration {
793
905
  "get",
794
906
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
795
907
  query_params,
796
- undefined
908
+ undefined,
909
+ undefined,
910
+ { headers }
797
911
  );
798
912
 
913
+ let responseData = response;
914
+ if (headers) {
915
+ responseData = response[0];
916
+ }
917
+
799
918
  const {
800
919
  error: res_error,
801
- } = ConfigurationModel.MobileAppConfiguration().validate(response, {
802
- abortEarly: false,
803
- allowUnknown: false,
804
- });
920
+ } = ConfigurationPlatformModel.MobileAppConfiguration().validate(
921
+ responseData,
922
+ { abortEarly: false, allowUnknown: false }
923
+ );
805
924
 
806
925
  if (res_error) {
807
926
  Logger({
808
927
  level: "WARN",
809
- message: "Response Validation Warnnings for getBuildConfig",
928
+ message: `Response Validation Warnnings for platform > Configuration > getBuildConfig \n ${res_error}`,
810
929
  });
811
- Logger({ level: "WARN", message: res_error });
812
930
  }
813
931
 
814
932
  return response;
815
933
  }
816
934
 
817
935
  /**
818
- * @param {Object} arg - Arg object.
819
- * @param {DomainStatusRequest} arg.body
820
- * @returns {Promise<DomainStatusResponse>} - Success response
936
+ * @param {ConfigurationPlatformApplicationValidator.GetDomainStatusParam} arg
937
+ * - Arg object
938
+ *
939
+ * @param {import("../PlatformAPIClient").Options} - Options
940
+ * @returns {Promise<ConfigurationPlatformModel.DomainStatusResponse>} -
941
+ * Success response
942
+ * @name getDomainStatus
821
943
  * @summary: Get the status of connected domain
822
- * @description: Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers.
944
+ * @description: Shows if the A records and TXT records of the domain correctly points to appropriate IP on Fynd Servers. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomainStatus/).
823
945
  */
824
- async getDomainStatus({ body } = {}) {
825
- const { error } = ConfigurationValidator.getDomainStatus().validate(
946
+ async getDomainStatus({ body } = {}, { headers } = { headers: false }) {
947
+ const {
948
+ error,
949
+ } = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
826
950
  {
827
951
  body,
828
952
  },
@@ -835,7 +959,7 @@ class Configuration {
835
959
  // Showing warrnings if extra unknown parameters are found
836
960
  const {
837
961
  error: warrning,
838
- } = ConfigurationValidator.getDomainStatus().validate(
962
+ } = ConfigurationPlatformApplicationValidator.getDomainStatus().validate(
839
963
  {
840
964
  body,
841
965
  },
@@ -844,9 +968,8 @@ class Configuration {
844
968
  if (warrning) {
845
969
  Logger({
846
970
  level: "WARN",
847
- message: "Parameter Validation warrnings for getDomainStatus",
971
+ message: `Parameter Validation warrnings for platform > Configuration > getDomainStatus \n ${warrning}`,
848
972
  });
849
- Logger({ level: "WARN", message: warrning });
850
973
  }
851
974
 
852
975
  const query_params = {};
@@ -856,35 +979,44 @@ class Configuration {
856
979
  "post",
857
980
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
858
981
  query_params,
859
- body
982
+ body,
983
+ undefined,
984
+ { headers }
860
985
  );
861
986
 
987
+ let responseData = response;
988
+ if (headers) {
989
+ responseData = response[0];
990
+ }
991
+
862
992
  const {
863
993
  error: res_error,
864
- } = ConfigurationModel.DomainStatusResponse().validate(response, {
865
- abortEarly: false,
866
- allowUnknown: false,
867
- });
994
+ } = ConfigurationPlatformModel.DomainStatusResponse().validate(
995
+ responseData,
996
+ { abortEarly: false, allowUnknown: false }
997
+ );
868
998
 
869
999
  if (res_error) {
870
1000
  Logger({
871
1001
  level: "WARN",
872
- message: "Response Validation Warnnings for getDomainStatus",
1002
+ message: `Response Validation Warnnings for platform > Configuration > getDomainStatus \n ${res_error}`,
873
1003
  });
874
- Logger({ level: "WARN", message: res_error });
875
1004
  }
876
1005
 
877
1006
  return response;
878
1007
  }
879
1008
 
880
1009
  /**
881
- * @param {Object} arg - Arg object.
882
- * @returns {Promise<DomainsResponse>} - Success response
1010
+ * @param {import("../PlatformAPIClient").Options} - Options
1011
+ * @returns {Promise<ConfigurationPlatformModel.DomainsResponse>} - Success response
1012
+ * @name getDomains
883
1013
  * @summary: Fetch all the domains added to an application (sales channel website), including pre-defined domain (free domain) or custom domain (owned by the brand). Know the verification status of each domain name, and find out which one is the primary domain, short link domain, or both.
884
- * @description: Get list of domains
1014
+ * @description: Get list of domains - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getDomains/).
885
1015
  */
886
- async getDomains({} = {}) {
887
- const { error } = ConfigurationValidator.getDomains().validate(
1016
+ async getDomains({ headers } = { headers: false }) {
1017
+ const {
1018
+ error,
1019
+ } = ConfigurationPlatformApplicationValidator.getDomains().validate(
888
1020
  {},
889
1021
  { abortEarly: false, allowUnknown: true }
890
1022
  );
@@ -893,16 +1025,17 @@ class Configuration {
893
1025
  }
894
1026
 
895
1027
  // Showing warrnings if extra unknown parameters are found
896
- const { error: warrning } = ConfigurationValidator.getDomains().validate(
1028
+ const {
1029
+ error: warrning,
1030
+ } = ConfigurationPlatformApplicationValidator.getDomains().validate(
897
1031
  {},
898
1032
  { abortEarly: false, allowUnknown: false }
899
1033
  );
900
1034
  if (warrning) {
901
1035
  Logger({
902
1036
  level: "WARN",
903
- message: "Parameter Validation warrnings for getDomains",
1037
+ message: `Parameter Validation warrnings for platform > Configuration > getDomains \n ${warrning}`,
904
1038
  });
905
- Logger({ level: "WARN", message: warrning });
906
1039
  }
907
1040
 
908
1041
  const query_params = {};
@@ -912,12 +1045,19 @@ class Configuration {
912
1045
  "get",
913
1046
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
914
1047
  query_params,
915
- undefined
1048
+ undefined,
1049
+ undefined,
1050
+ { headers }
916
1051
  );
917
1052
 
1053
+ let responseData = response;
1054
+ if (headers) {
1055
+ responseData = response[0];
1056
+ }
1057
+
918
1058
  const {
919
1059
  error: res_error,
920
- } = ConfigurationModel.DomainsResponse().validate(response, {
1060
+ } = ConfigurationPlatformModel.DomainsResponse().validate(responseData, {
921
1061
  abortEarly: false,
922
1062
  allowUnknown: false,
923
1063
  });
@@ -925,22 +1065,25 @@ class Configuration {
925
1065
  if (res_error) {
926
1066
  Logger({
927
1067
  level: "WARN",
928
- message: "Response Validation Warnnings for getDomains",
1068
+ message: `Response Validation Warnnings for platform > Configuration > getDomains \n ${res_error}`,
929
1069
  });
930
- Logger({ level: "WARN", message: res_error });
931
1070
  }
932
1071
 
933
1072
  return response;
934
1073
  }
935
1074
 
936
1075
  /**
937
- * @param {Object} arg - Arg object.
938
- * @returns {Promise<ApplicationInventory>} - Success response
1076
+ * @param {import("../PlatformAPIClient").Options} - Options
1077
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
1078
+ * Success response
1079
+ * @name getInventoryConfig
939
1080
  * @summary: Get sales channel configuration
940
- * @description: Use this API to fetch configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
1081
+ * @description: Use this API to fetch configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getInventoryConfig/).
941
1082
  */
942
- async getInventoryConfig({} = {}) {
943
- const { error } = ConfigurationValidator.getInventoryConfig().validate(
1083
+ async getInventoryConfig({ headers } = { headers: false }) {
1084
+ const {
1085
+ error,
1086
+ } = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
944
1087
  {},
945
1088
  { abortEarly: false, allowUnknown: true }
946
1089
  );
@@ -951,16 +1094,15 @@ class Configuration {
951
1094
  // Showing warrnings if extra unknown parameters are found
952
1095
  const {
953
1096
  error: warrning,
954
- } = ConfigurationValidator.getInventoryConfig().validate(
1097
+ } = ConfigurationPlatformApplicationValidator.getInventoryConfig().validate(
955
1098
  {},
956
1099
  { abortEarly: false, allowUnknown: false }
957
1100
  );
958
1101
  if (warrning) {
959
1102
  Logger({
960
1103
  level: "WARN",
961
- message: "Parameter Validation warrnings for getInventoryConfig",
1104
+ message: `Parameter Validation warrnings for platform > Configuration > getInventoryConfig \n ${warrning}`,
962
1105
  });
963
- Logger({ level: "WARN", message: warrning });
964
1106
  }
965
1107
 
966
1108
  const query_params = {};
@@ -970,42 +1112,50 @@ class Configuration {
970
1112
  "get",
971
1113
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
972
1114
  query_params,
973
- undefined
1115
+ undefined,
1116
+ undefined,
1117
+ { headers }
974
1118
  );
975
1119
 
1120
+ let responseData = response;
1121
+ if (headers) {
1122
+ responseData = response[0];
1123
+ }
1124
+
976
1125
  const {
977
1126
  error: res_error,
978
- } = ConfigurationModel.ApplicationInventory().validate(response, {
979
- abortEarly: false,
980
- allowUnknown: false,
981
- });
1127
+ } = ConfigurationPlatformModel.ApplicationInventory().validate(
1128
+ responseData,
1129
+ { abortEarly: false, allowUnknown: false }
1130
+ );
982
1131
 
983
1132
  if (res_error) {
984
1133
  Logger({
985
1134
  level: "WARN",
986
- message: "Response Validation Warnnings for getInventoryConfig",
1135
+ message: `Response Validation Warnnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
987
1136
  });
988
- Logger({ level: "WARN", message: res_error });
989
1137
  }
990
1138
 
991
1139
  return response;
992
1140
  }
993
1141
 
994
1142
  /**
995
- * @param {Object} arg - Arg object.
996
- * @param {number} [arg.pageNo] - The page number to navigate through the
997
- * given set of results. Default value is 1.
998
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
999
- * page. Default value is 10.
1000
- * @param {FilterOrderingStoreRequest} arg.body
1001
- * @returns {Promise<OrderingStores>} - Success response
1143
+ * @param {ConfigurationPlatformApplicationValidator.GetOrderingStoresByFilterParam} arg
1144
+ * - Arg object
1145
+ *
1146
+ * @param {import("../PlatformAPIClient").Options} - Options
1147
+ * @returns {Promise<ConfigurationPlatformModel.OrderingStores>} - Success response
1148
+ * @name getOrderingStoresByFilter
1002
1149
  * @summary: Get ordering store by filter
1003
- * @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders).
1150
+ * @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getOrderingStoresByFilter/).
1004
1151
  */
1005
- async getOrderingStoresByFilter({ body, pageNo, pageSize } = {}) {
1152
+ async getOrderingStoresByFilter(
1153
+ { body, pageNo, pageSize } = {},
1154
+ { headers } = { headers: false }
1155
+ ) {
1006
1156
  const {
1007
1157
  error,
1008
- } = ConfigurationValidator.getOrderingStoresByFilter().validate(
1158
+ } = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
1009
1159
  {
1010
1160
  body,
1011
1161
  pageNo,
@@ -1020,7 +1170,7 @@ class Configuration {
1020
1170
  // Showing warrnings if extra unknown parameters are found
1021
1171
  const {
1022
1172
  error: warrning,
1023
- } = ConfigurationValidator.getOrderingStoresByFilter().validate(
1173
+ } = ConfigurationPlatformApplicationValidator.getOrderingStoresByFilter().validate(
1024
1174
  {
1025
1175
  body,
1026
1176
  pageNo,
@@ -1031,9 +1181,8 @@ class Configuration {
1031
1181
  if (warrning) {
1032
1182
  Logger({
1033
1183
  level: "WARN",
1034
- message: "Parameter Validation warrnings for getOrderingStoresByFilter",
1184
+ message: `Parameter Validation warrnings for platform > Configuration > getOrderingStoresByFilter \n ${warrning}`,
1035
1185
  });
1036
- Logger({ level: "WARN", message: warrning });
1037
1186
  }
1038
1187
 
1039
1188
  const query_params = {};
@@ -1045,12 +1194,19 @@ class Configuration {
1045
1194
  "post",
1046
1195
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
1047
1196
  query_params,
1048
- body
1197
+ body,
1198
+ undefined,
1199
+ { headers }
1049
1200
  );
1050
1201
 
1202
+ let responseData = response;
1203
+ if (headers) {
1204
+ responseData = response[0];
1205
+ }
1206
+
1051
1207
  const {
1052
1208
  error: res_error,
1053
- } = ConfigurationModel.OrderingStores().validate(response, {
1209
+ } = ConfigurationPlatformModel.OrderingStores().validate(responseData, {
1054
1210
  abortEarly: false,
1055
1211
  allowUnknown: false,
1056
1212
  });
@@ -1058,9 +1214,8 @@ class Configuration {
1058
1214
  if (res_error) {
1059
1215
  Logger({
1060
1216
  level: "WARN",
1061
- message: "Response Validation Warnnings for getOrderingStoresByFilter",
1217
+ message: `Response Validation Warnnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
1062
1218
  });
1063
- Logger({ level: "WARN", message: res_error });
1064
1219
  }
1065
1220
 
1066
1221
  return response;
@@ -1074,7 +1229,8 @@ class Configuration {
1074
1229
  * application (sales channel website) created within a business account
1075
1230
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
1076
1231
  * page. Default value is 10.
1077
- * @param {FilterOrderingStoreRequest} arg.body
1232
+ * @param {ConfigurationPlatformModel.FilterOrderingStoreRequest} arg.body
1233
+ * @returns {Paginator<ConfigurationPlatformModel.OrderingStores>}
1078
1234
  * @summary: Get ordering store by filter
1079
1235
  * @description: Use this API to use filters and retrieve the details of the deployment stores (the selling locations where the application will be utilised for placing orders).
1080
1236
  */
@@ -1107,15 +1263,23 @@ class Configuration {
1107
1263
  }
1108
1264
 
1109
1265
  /**
1110
- * @param {Object} arg - Arg object.
1111
- * @param {string} arg.platformType - The device platform for which the
1112
- * mobile app is built, e.g. android, ios.
1113
- * @returns {Promise<BuildVersionHistory>} - Success response
1266
+ * @param {ConfigurationPlatformApplicationValidator.GetPreviousVersionsParam} arg
1267
+ * - Arg object
1268
+ *
1269
+ * @param {import("../PlatformAPIClient").Options} - Options
1270
+ * @returns {Promise<ConfigurationPlatformModel.BuildVersionHistory>} -
1271
+ * Success response
1272
+ * @name getPreviousVersions
1114
1273
  * @summary: Get details of previous mobile builds
1115
- * @description: Fetch version details of the app, this includes the build status, build date, version name, latest version, and a lot more.
1274
+ * @description: Fetch version details of the app, this includes the build status, build date, version name, latest version, and a lot more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getPreviousVersions/).
1116
1275
  */
1117
- async getPreviousVersions({ platformType } = {}) {
1118
- const { error } = ConfigurationValidator.getPreviousVersions().validate(
1276
+ async getPreviousVersions(
1277
+ { platformType } = {},
1278
+ { headers } = { headers: false }
1279
+ ) {
1280
+ const {
1281
+ error,
1282
+ } = ConfigurationPlatformApplicationValidator.getPreviousVersions().validate(
1119
1283
  {
1120
1284
  platformType,
1121
1285
  },
@@ -1128,7 +1292,7 @@ class Configuration {
1128
1292
  // Showing warrnings if extra unknown parameters are found
1129
1293
  const {
1130
1294
  error: warrning,
1131
- } = ConfigurationValidator.getPreviousVersions().validate(
1295
+ } = ConfigurationPlatformApplicationValidator.getPreviousVersions().validate(
1132
1296
  {
1133
1297
  platformType,
1134
1298
  },
@@ -1137,9 +1301,8 @@ class Configuration {
1137
1301
  if (warrning) {
1138
1302
  Logger({
1139
1303
  level: "WARN",
1140
- message: "Parameter Validation warrnings for getPreviousVersions",
1304
+ message: `Parameter Validation warrnings for platform > Configuration > getPreviousVersions \n ${warrning}`,
1141
1305
  });
1142
- Logger({ level: "WARN", message: warrning });
1143
1306
  }
1144
1307
 
1145
1308
  const query_params = {};
@@ -1149,40 +1312,51 @@ class Configuration {
1149
1312
  "get",
1150
1313
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/versions`,
1151
1314
  query_params,
1152
- undefined
1315
+ undefined,
1316
+ undefined,
1317
+ { headers }
1153
1318
  );
1154
1319
 
1320
+ let responseData = response;
1321
+ if (headers) {
1322
+ responseData = response[0];
1323
+ }
1324
+
1155
1325
  const {
1156
1326
  error: res_error,
1157
- } = ConfigurationModel.BuildVersionHistory().validate(response, {
1158
- abortEarly: false,
1159
- allowUnknown: false,
1160
- });
1327
+ } = ConfigurationPlatformModel.BuildVersionHistory().validate(
1328
+ responseData,
1329
+ { abortEarly: false, allowUnknown: false }
1330
+ );
1161
1331
 
1162
1332
  if (res_error) {
1163
1333
  Logger({
1164
1334
  level: "WARN",
1165
- message: "Response Validation Warnnings for getPreviousVersions",
1335
+ message: `Response Validation Warnnings for platform > Configuration > getPreviousVersions \n ${res_error}`,
1166
1336
  });
1167
- Logger({ level: "WARN", message: res_error });
1168
1337
  }
1169
1338
 
1170
1339
  return response;
1171
1340
  }
1172
1341
 
1173
1342
  /**
1174
- * @param {Object} arg - Arg object.
1175
- * @param {number} [arg.pageNo] - The page number to navigate through the
1176
- * given set of results. Default value is 1.
1177
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
1178
- * page. Default value is 10.
1179
- * @param {string} [arg.q] - Store code or name of the ordering store.
1180
- * @returns {Promise<OrderingStoresResponse>} - Success response
1343
+ * @param {ConfigurationPlatformApplicationValidator.GetStaffOrderingStoresParam} arg
1344
+ * - Arg object
1345
+ *
1346
+ * @param {import("../PlatformAPIClient").Options} - Options
1347
+ * @returns {Promise<ConfigurationPlatformModel.OrderingStoresResponse>} -
1348
+ * Success response
1349
+ * @name getStaffOrderingStores
1181
1350
  * @summary: Get deployment stores
1182
- * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1351
+ * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/getStaffOrderingStores/).
1183
1352
  */
1184
- async getStaffOrderingStores({ pageNo, pageSize, q } = {}) {
1185
- const { error } = ConfigurationValidator.getStaffOrderingStores().validate(
1353
+ async getStaffOrderingStores(
1354
+ { pageNo, pageSize, q } = {},
1355
+ { headers } = { headers: false }
1356
+ ) {
1357
+ const {
1358
+ error,
1359
+ } = ConfigurationPlatformApplicationValidator.getStaffOrderingStores().validate(
1186
1360
  {
1187
1361
  pageNo,
1188
1362
  pageSize,
@@ -1197,7 +1371,7 @@ class Configuration {
1197
1371
  // Showing warrnings if extra unknown parameters are found
1198
1372
  const {
1199
1373
  error: warrning,
1200
- } = ConfigurationValidator.getStaffOrderingStores().validate(
1374
+ } = ConfigurationPlatformApplicationValidator.getStaffOrderingStores().validate(
1201
1375
  {
1202
1376
  pageNo,
1203
1377
  pageSize,
@@ -1208,9 +1382,8 @@ class Configuration {
1208
1382
  if (warrning) {
1209
1383
  Logger({
1210
1384
  level: "WARN",
1211
- message: "Parameter Validation warrnings for getStaffOrderingStores",
1385
+ message: `Parameter Validation warrnings for platform > Configuration > getStaffOrderingStores \n ${warrning}`,
1212
1386
  });
1213
- Logger({ level: "WARN", message: warrning });
1214
1387
  }
1215
1388
 
1216
1389
  const query_params = {};
@@ -1223,22 +1396,28 @@ class Configuration {
1223
1396
  "get",
1224
1397
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/staff-stores`,
1225
1398
  query_params,
1226
- undefined
1399
+ undefined,
1400
+ undefined,
1401
+ { headers }
1227
1402
  );
1228
1403
 
1404
+ let responseData = response;
1405
+ if (headers) {
1406
+ responseData = response[0];
1407
+ }
1408
+
1229
1409
  const {
1230
1410
  error: res_error,
1231
- } = ConfigurationModel.OrderingStoresResponse().validate(response, {
1232
- abortEarly: false,
1233
- allowUnknown: false,
1234
- });
1411
+ } = ConfigurationPlatformModel.OrderingStoresResponse().validate(
1412
+ responseData,
1413
+ { abortEarly: false, allowUnknown: false }
1414
+ );
1235
1415
 
1236
1416
  if (res_error) {
1237
1417
  Logger({
1238
1418
  level: "WARN",
1239
- message: "Response Validation Warnnings for getStaffOrderingStores",
1419
+ message: `Response Validation Warnnings for platform > Configuration > getStaffOrderingStores \n ${res_error}`,
1240
1420
  });
1241
- Logger({ level: "WARN", message: res_error });
1242
1421
  }
1243
1422
 
1244
1423
  return response;
@@ -1253,6 +1432,7 @@ class Configuration {
1253
1432
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
1254
1433
  * page. Default value is 10.
1255
1434
  * @param {string} [arg.q] - Store code or name of the ordering store.
1435
+ * @returns {Paginator<ConfigurationPlatformModel.OrderingStoresResponse>}
1256
1436
  * @summary: Get deployment stores
1257
1437
  * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1258
1438
  */
@@ -1285,14 +1465,19 @@ class Configuration {
1285
1465
  }
1286
1466
 
1287
1467
  /**
1288
- * @param {Object} arg - Arg object.
1289
- * @param {AppFeatureRequest} arg.body
1290
- * @returns {Promise<AppFeature>} - Success response
1468
+ * @param {ConfigurationPlatformApplicationValidator.ModifyAppFeaturesParam} arg
1469
+ * - Arg object
1470
+ *
1471
+ * @param {import("../PlatformAPIClient").Options} - Options
1472
+ * @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
1473
+ * @name modifyAppFeatures
1291
1474
  * @summary: Update features of application
1292
- * @description: Update features of application
1475
+ * @description: Update features of application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/modifyAppFeatures/).
1293
1476
  */
1294
- async modifyAppFeatures({ body } = {}) {
1295
- const { error } = ConfigurationValidator.modifyAppFeatures().validate(
1477
+ async modifyAppFeatures({ body } = {}, { headers } = { headers: false }) {
1478
+ const {
1479
+ error,
1480
+ } = ConfigurationPlatformApplicationValidator.modifyAppFeatures().validate(
1296
1481
  {
1297
1482
  body,
1298
1483
  },
@@ -1305,7 +1490,7 @@ class Configuration {
1305
1490
  // Showing warrnings if extra unknown parameters are found
1306
1491
  const {
1307
1492
  error: warrning,
1308
- } = ConfigurationValidator.modifyAppFeatures().validate(
1493
+ } = ConfigurationPlatformApplicationValidator.modifyAppFeatures().validate(
1309
1494
  {
1310
1495
  body,
1311
1496
  },
@@ -1314,9 +1499,8 @@ class Configuration {
1314
1499
  if (warrning) {
1315
1500
  Logger({
1316
1501
  level: "WARN",
1317
- message: "Parameter Validation warrnings for modifyAppFeatures",
1502
+ message: `Parameter Validation warrnings for platform > Configuration > modifyAppFeatures \n ${warrning}`,
1318
1503
  });
1319
- Logger({ level: "WARN", message: warrning });
1320
1504
  }
1321
1505
 
1322
1506
  const query_params = {};
@@ -1326,12 +1510,19 @@ class Configuration {
1326
1510
  "patch",
1327
1511
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
1328
1512
  query_params,
1329
- body
1513
+ body,
1514
+ undefined,
1515
+ { headers }
1330
1516
  );
1331
1517
 
1518
+ let responseData = response;
1519
+ if (headers) {
1520
+ responseData = response[0];
1521
+ }
1522
+
1332
1523
  const {
1333
1524
  error: res_error,
1334
- } = ConfigurationModel.AppFeature().validate(response, {
1525
+ } = ConfigurationPlatformModel.AppFeature().validate(responseData, {
1335
1526
  abortEarly: false,
1336
1527
  allowUnknown: false,
1337
1528
  });
@@ -1339,25 +1530,31 @@ class Configuration {
1339
1530
  if (res_error) {
1340
1531
  Logger({
1341
1532
  level: "WARN",
1342
- message: "Response Validation Warnnings for modifyAppFeatures",
1533
+ message: `Response Validation Warnnings for platform > Configuration > modifyAppFeatures \n ${res_error}`,
1343
1534
  });
1344
- Logger({ level: "WARN", message: res_error });
1345
1535
  }
1346
1536
 
1347
1537
  return response;
1348
1538
  }
1349
1539
 
1350
1540
  /**
1351
- * @param {Object} arg - Arg object.
1352
- * @param {AppInventoryPartialUpdate} arg.body
1353
- * @returns {Promise<ApplicationInventory>} - Success response
1541
+ * @param {ConfigurationPlatformApplicationValidator.PartiallyUpdateInventoryConfigParam} arg
1542
+ * - Arg object
1543
+ *
1544
+ * @param {import("../PlatformAPIClient").Options} - Options
1545
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
1546
+ * Success response
1547
+ * @name partiallyUpdateInventoryConfig
1354
1548
  * @summary: Partially update sales channel configuration
1355
- * @description: Partially update the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
1549
+ * @description: Partially update the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/partiallyUpdateInventoryConfig/).
1356
1550
  */
1357
- async partiallyUpdateInventoryConfig({ body } = {}) {
1551
+ async partiallyUpdateInventoryConfig(
1552
+ { body } = {},
1553
+ { headers } = { headers: false }
1554
+ ) {
1358
1555
  const {
1359
1556
  error,
1360
- } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1557
+ } = ConfigurationPlatformApplicationValidator.partiallyUpdateInventoryConfig().validate(
1361
1558
  {
1362
1559
  body,
1363
1560
  },
@@ -1370,7 +1567,7 @@ class Configuration {
1370
1567
  // Showing warrnings if extra unknown parameters are found
1371
1568
  const {
1372
1569
  error: warrning,
1373
- } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1570
+ } = ConfigurationPlatformApplicationValidator.partiallyUpdateInventoryConfig().validate(
1374
1571
  {
1375
1572
  body,
1376
1573
  },
@@ -1379,10 +1576,8 @@ class Configuration {
1379
1576
  if (warrning) {
1380
1577
  Logger({
1381
1578
  level: "WARN",
1382
- message:
1383
- "Parameter Validation warrnings for partiallyUpdateInventoryConfig",
1579
+ message: `Parameter Validation warrnings for platform > Configuration > partiallyUpdateInventoryConfig \n ${warrning}`,
1384
1580
  });
1385
- Logger({ level: "WARN", message: warrning });
1386
1581
  }
1387
1582
 
1388
1583
  const query_params = {};
@@ -1392,38 +1587,48 @@ class Configuration {
1392
1587
  "patch",
1393
1588
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1394
1589
  query_params,
1395
- body
1590
+ body,
1591
+ undefined,
1592
+ { headers }
1396
1593
  );
1397
1594
 
1595
+ let responseData = response;
1596
+ if (headers) {
1597
+ responseData = response[0];
1598
+ }
1599
+
1398
1600
  const {
1399
1601
  error: res_error,
1400
- } = ConfigurationModel.ApplicationInventory().validate(response, {
1401
- abortEarly: false,
1402
- allowUnknown: false,
1403
- });
1602
+ } = ConfigurationPlatformModel.ApplicationInventory().validate(
1603
+ responseData,
1604
+ { abortEarly: false, allowUnknown: false }
1605
+ );
1404
1606
 
1405
1607
  if (res_error) {
1406
1608
  Logger({
1407
1609
  level: "WARN",
1408
- message:
1409
- "Response Validation Warnnings for partiallyUpdateInventoryConfig",
1610
+ message: `Response Validation Warnnings for platform > Configuration > partiallyUpdateInventoryConfig \n ${res_error}`,
1410
1611
  });
1411
- Logger({ level: "WARN", message: res_error });
1412
1612
  }
1413
1613
 
1414
1614
  return response;
1415
1615
  }
1416
1616
 
1417
1617
  /**
1418
- * @param {Object} arg - Arg object.
1419
- * @param {string} arg.id - The unique identifier (24-digit Mongo Object ID)
1420
- * of the domain
1421
- * @returns {Promise<SuccessMessageResponse>} - Success response
1618
+ * @param {ConfigurationPlatformApplicationValidator.RemoveDomainByIdParam} arg
1619
+ * - Arg object
1620
+ *
1621
+ * @param {import("../PlatformAPIClient").Options} - Options
1622
+ * @returns {Promise<ConfigurationPlatformModel.SuccessMessageResponse>} -
1623
+ * Success response
1624
+ * @name removeDomainById
1422
1625
  * @summary: Remove attached domain from current sales channel
1423
- * @description: Delete a domain (secondary or shortlink domain) added to a sales channel. It will disable user's access to website, shared links, and other features associated with this domain.
1626
+ * @description: Delete a domain (secondary or shortlink domain) added to a sales channel. It will disable user's access to website, shared links, and other features associated with this domain. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/removeDomainById/).
1424
1627
  */
1425
- async removeDomainById({ id } = {}) {
1426
- const { error } = ConfigurationValidator.removeDomainById().validate(
1628
+ async removeDomainById({ id } = {}, { headers } = { headers: false }) {
1629
+ const {
1630
+ error,
1631
+ } = ConfigurationPlatformApplicationValidator.removeDomainById().validate(
1427
1632
  {
1428
1633
  id,
1429
1634
  },
@@ -1436,7 +1641,7 @@ class Configuration {
1436
1641
  // Showing warrnings if extra unknown parameters are found
1437
1642
  const {
1438
1643
  error: warrning,
1439
- } = ConfigurationValidator.removeDomainById().validate(
1644
+ } = ConfigurationPlatformApplicationValidator.removeDomainById().validate(
1440
1645
  {
1441
1646
  id,
1442
1647
  },
@@ -1445,9 +1650,8 @@ class Configuration {
1445
1650
  if (warrning) {
1446
1651
  Logger({
1447
1652
  level: "WARN",
1448
- message: "Parameter Validation warrnings for removeDomainById",
1653
+ message: `Parameter Validation warrnings for platform > Configuration > removeDomainById \n ${warrning}`,
1449
1654
  });
1450
- Logger({ level: "WARN", message: warrning });
1451
1655
  }
1452
1656
 
1453
1657
  const query_params = {};
@@ -1457,36 +1661,47 @@ class Configuration {
1457
1661
  "delete",
1458
1662
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${id}`,
1459
1663
  query_params,
1460
- undefined
1664
+ undefined,
1665
+ undefined,
1666
+ { headers }
1461
1667
  );
1462
1668
 
1669
+ let responseData = response;
1670
+ if (headers) {
1671
+ responseData = response[0];
1672
+ }
1673
+
1463
1674
  const {
1464
1675
  error: res_error,
1465
- } = ConfigurationModel.SuccessMessageResponse().validate(response, {
1466
- abortEarly: false,
1467
- allowUnknown: false,
1468
- });
1676
+ } = ConfigurationPlatformModel.SuccessMessageResponse().validate(
1677
+ responseData,
1678
+ { abortEarly: false, allowUnknown: false }
1679
+ );
1469
1680
 
1470
1681
  if (res_error) {
1471
1682
  Logger({
1472
1683
  level: "WARN",
1473
- message: "Response Validation Warnnings for removeDomainById",
1684
+ message: `Response Validation Warnnings for platform > Configuration > removeDomainById \n ${res_error}`,
1474
1685
  });
1475
- Logger({ level: "WARN", message: res_error });
1476
1686
  }
1477
1687
 
1478
1688
  return response;
1479
1689
  }
1480
1690
 
1481
1691
  /**
1482
- * @param {Object} arg - Arg object.
1483
- * @param {TokenResponse} arg.body
1484
- * @returns {Promise<TokenResponse>} - Success response
1692
+ * @param {ConfigurationPlatformApplicationValidator.UpdateAppApiTokensParam} arg
1693
+ * - Arg object
1694
+ *
1695
+ * @param {import("../PlatformAPIClient").Options} - Options
1696
+ * @returns {Promise<ConfigurationPlatformModel.TokenResponse>} - Success response
1697
+ * @name updateAppApiTokens
1485
1698
  * @summary: Add or update social tokens for the sales channel
1486
- * @description: Use this API to add or edit the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google and Facebook auth.
1699
+ * @description: Use this API to add or edit the tokens used for integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map, Google and Facebook auth. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppApiTokens/).
1487
1700
  */
1488
- async updateAppApiTokens({ body } = {}) {
1489
- const { error } = ConfigurationValidator.updateAppApiTokens().validate(
1701
+ async updateAppApiTokens({ body } = {}, { headers } = { headers: false }) {
1702
+ const {
1703
+ error,
1704
+ } = ConfigurationPlatformApplicationValidator.updateAppApiTokens().validate(
1490
1705
  {
1491
1706
  body,
1492
1707
  },
@@ -1499,7 +1714,7 @@ class Configuration {
1499
1714
  // Showing warrnings if extra unknown parameters are found
1500
1715
  const {
1501
1716
  error: warrning,
1502
- } = ConfigurationValidator.updateAppApiTokens().validate(
1717
+ } = ConfigurationPlatformApplicationValidator.updateAppApiTokens().validate(
1503
1718
  {
1504
1719
  body,
1505
1720
  },
@@ -1508,9 +1723,8 @@ class Configuration {
1508
1723
  if (warrning) {
1509
1724
  Logger({
1510
1725
  level: "WARN",
1511
- message: "Parameter Validation warrnings for updateAppApiTokens",
1726
+ message: `Parameter Validation warrnings for platform > Configuration > updateAppApiTokens \n ${warrning}`,
1512
1727
  });
1513
- Logger({ level: "WARN", message: warrning });
1514
1728
  }
1515
1729
 
1516
1730
  const query_params = {};
@@ -1520,12 +1734,19 @@ class Configuration {
1520
1734
  "post",
1521
1735
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
1522
1736
  query_params,
1523
- body
1737
+ body,
1738
+ undefined,
1739
+ { headers }
1524
1740
  );
1525
1741
 
1742
+ let responseData = response;
1743
+ if (headers) {
1744
+ responseData = response[0];
1745
+ }
1746
+
1526
1747
  const {
1527
1748
  error: res_error,
1528
- } = ConfigurationModel.TokenResponse().validate(response, {
1749
+ } = ConfigurationPlatformModel.TokenResponse().validate(responseData, {
1529
1750
  abortEarly: false,
1530
1751
  allowUnknown: false,
1531
1752
  });
@@ -1533,23 +1754,27 @@ class Configuration {
1533
1754
  if (res_error) {
1534
1755
  Logger({
1535
1756
  level: "WARN",
1536
- message: "Response Validation Warnnings for updateAppApiTokens",
1757
+ message: `Response Validation Warnnings for platform > Configuration > updateAppApiTokens \n ${res_error}`,
1537
1758
  });
1538
- Logger({ level: "WARN", message: res_error });
1539
1759
  }
1540
1760
 
1541
1761
  return response;
1542
1762
  }
1543
1763
 
1544
1764
  /**
1545
- * @param {Object} arg - Arg object.
1546
- * @param {ApplicationDetail} arg.body
1547
- * @returns {Promise<ApplicationDetail>} - Success response
1765
+ * @param {ConfigurationPlatformApplicationValidator.UpdateAppBasicDetailsParam} arg
1766
+ * - Arg object
1767
+ *
1768
+ * @param {import("../PlatformAPIClient").Options} - Options
1769
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationDetail>} - Success response
1770
+ * @name updateAppBasicDetails
1548
1771
  * @summary: Update sales channel details
1549
- * @description: Modify sales channel details like name, description, logo, domain, company ID, and other related information.
1772
+ * @description: Modify sales channel details like name, description, logo, domain, company ID, and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppBasicDetails/).
1550
1773
  */
1551
- async updateAppBasicDetails({ body } = {}) {
1552
- const { error } = ConfigurationValidator.updateAppBasicDetails().validate(
1774
+ async updateAppBasicDetails({ body } = {}, { headers } = { headers: false }) {
1775
+ const {
1776
+ error,
1777
+ } = ConfigurationPlatformApplicationValidator.updateAppBasicDetails().validate(
1553
1778
  {
1554
1779
  body,
1555
1780
  },
@@ -1562,7 +1787,7 @@ class Configuration {
1562
1787
  // Showing warrnings if extra unknown parameters are found
1563
1788
  const {
1564
1789
  error: warrning,
1565
- } = ConfigurationValidator.updateAppBasicDetails().validate(
1790
+ } = ConfigurationPlatformApplicationValidator.updateAppBasicDetails().validate(
1566
1791
  {
1567
1792
  body,
1568
1793
  },
@@ -1571,9 +1796,8 @@ class Configuration {
1571
1796
  if (warrning) {
1572
1797
  Logger({
1573
1798
  level: "WARN",
1574
- message: "Parameter Validation warrnings for updateAppBasicDetails",
1799
+ message: `Parameter Validation warrnings for platform > Configuration > updateAppBasicDetails \n ${warrning}`,
1575
1800
  });
1576
- Logger({ level: "WARN", message: warrning });
1577
1801
  }
1578
1802
 
1579
1803
  const query_params = {};
@@ -1583,12 +1807,19 @@ class Configuration {
1583
1807
  "put",
1584
1808
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
1585
1809
  query_params,
1586
- body
1810
+ body,
1811
+ undefined,
1812
+ { headers }
1587
1813
  );
1588
1814
 
1815
+ let responseData = response;
1816
+ if (headers) {
1817
+ responseData = response[0];
1818
+ }
1819
+
1589
1820
  const {
1590
1821
  error: res_error,
1591
- } = ConfigurationModel.ApplicationDetail().validate(response, {
1822
+ } = ConfigurationPlatformModel.ApplicationDetail().validate(responseData, {
1592
1823
  abortEarly: false,
1593
1824
  allowUnknown: false,
1594
1825
  });
@@ -1596,23 +1827,28 @@ class Configuration {
1596
1827
  if (res_error) {
1597
1828
  Logger({
1598
1829
  level: "WARN",
1599
- message: "Response Validation Warnnings for updateAppBasicDetails",
1830
+ message: `Response Validation Warnnings for platform > Configuration > updateAppBasicDetails \n ${res_error}`,
1600
1831
  });
1601
- Logger({ level: "WARN", message: res_error });
1602
1832
  }
1603
1833
 
1604
1834
  return response;
1605
1835
  }
1606
1836
 
1607
1837
  /**
1608
- * @param {Object} arg - Arg object.
1609
- * @param {ApplicationInformation} arg.body
1610
- * @returns {Promise<ApplicationInformation>} - Success response
1838
+ * @param {ConfigurationPlatformApplicationValidator.UpdateAppContactInfoParam} arg
1839
+ * - Arg object
1840
+ *
1841
+ * @param {import("../PlatformAPIClient").Options} - Options
1842
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationInformation>} -
1843
+ * Success response
1844
+ * @name updateAppContactInfo
1611
1845
  * @summary: Save or update current information of the sales channel
1612
- * @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application.
1846
+ * @description: Modify the social links, copyright text, business highlights, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppContactInfo/).
1613
1847
  */
1614
- async updateAppContactInfo({ body } = {}) {
1615
- const { error } = ConfigurationValidator.updateAppContactInfo().validate(
1848
+ async updateAppContactInfo({ body } = {}, { headers } = { headers: false }) {
1849
+ const {
1850
+ error,
1851
+ } = ConfigurationPlatformApplicationValidator.updateAppContactInfo().validate(
1616
1852
  {
1617
1853
  body,
1618
1854
  },
@@ -1625,7 +1861,7 @@ class Configuration {
1625
1861
  // Showing warrnings if extra unknown parameters are found
1626
1862
  const {
1627
1863
  error: warrning,
1628
- } = ConfigurationValidator.updateAppContactInfo().validate(
1864
+ } = ConfigurationPlatformApplicationValidator.updateAppContactInfo().validate(
1629
1865
  {
1630
1866
  body,
1631
1867
  },
@@ -1634,9 +1870,8 @@ class Configuration {
1634
1870
  if (warrning) {
1635
1871
  Logger({
1636
1872
  level: "WARN",
1637
- message: "Parameter Validation warrnings for updateAppContactInfo",
1873
+ message: `Parameter Validation warrnings for platform > Configuration > updateAppContactInfo \n ${warrning}`,
1638
1874
  });
1639
- Logger({ level: "WARN", message: warrning });
1640
1875
  }
1641
1876
 
1642
1877
  const query_params = {};
@@ -1646,36 +1881,51 @@ class Configuration {
1646
1881
  "put",
1647
1882
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
1648
1883
  query_params,
1649
- body
1884
+ body,
1885
+ undefined,
1886
+ { headers }
1650
1887
  );
1651
1888
 
1889
+ let responseData = response;
1890
+ if (headers) {
1891
+ responseData = response[0];
1892
+ }
1893
+
1652
1894
  const {
1653
1895
  error: res_error,
1654
- } = ConfigurationModel.ApplicationInformation().validate(response, {
1655
- abortEarly: false,
1656
- allowUnknown: false,
1657
- });
1896
+ } = ConfigurationPlatformModel.ApplicationInformation().validate(
1897
+ responseData,
1898
+ { abortEarly: false, allowUnknown: false }
1899
+ );
1658
1900
 
1659
1901
  if (res_error) {
1660
1902
  Logger({
1661
1903
  level: "WARN",
1662
- message: "Response Validation Warnnings for updateAppContactInfo",
1904
+ message: `Response Validation Warnnings for platform > Configuration > updateAppContactInfo \n ${res_error}`,
1663
1905
  });
1664
- Logger({ level: "WARN", message: res_error });
1665
1906
  }
1666
1907
 
1667
1908
  return response;
1668
1909
  }
1669
1910
 
1670
1911
  /**
1671
- * @param {Object} arg - Arg object.
1672
- * @param {AppSupportedCurrency} arg.body
1673
- * @returns {Promise<AppSupportedCurrency>} - Success response
1912
+ * @param {ConfigurationPlatformApplicationValidator.UpdateAppCurrencyConfigParam} arg
1913
+ * - Arg object
1914
+ *
1915
+ * @param {import("../PlatformAPIClient").Options} - Options
1916
+ * @returns {Promise<ConfigurationPlatformModel.AppSupportedCurrency>} -
1917
+ * Success response
1918
+ * @name updateAppCurrencyConfig
1674
1919
  * @summary: Update initial sales channel supported currency
1675
- * @description: Use this API to add and edit the currencies supported in the application. Initially, INR will be enabled by default.
1920
+ * @description: Use this API to add and edit the currencies supported in the application. Initially, INR will be enabled by default. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppCurrencyConfig/).
1676
1921
  */
1677
- async updateAppCurrencyConfig({ body } = {}) {
1678
- const { error } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1922
+ async updateAppCurrencyConfig(
1923
+ { body } = {},
1924
+ { headers } = { headers: false }
1925
+ ) {
1926
+ const {
1927
+ error,
1928
+ } = ConfigurationPlatformApplicationValidator.updateAppCurrencyConfig().validate(
1679
1929
  {
1680
1930
  body,
1681
1931
  },
@@ -1688,7 +1938,7 @@ class Configuration {
1688
1938
  // Showing warrnings if extra unknown parameters are found
1689
1939
  const {
1690
1940
  error: warrning,
1691
- } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1941
+ } = ConfigurationPlatformApplicationValidator.updateAppCurrencyConfig().validate(
1692
1942
  {
1693
1943
  body,
1694
1944
  },
@@ -1697,9 +1947,8 @@ class Configuration {
1697
1947
  if (warrning) {
1698
1948
  Logger({
1699
1949
  level: "WARN",
1700
- message: "Parameter Validation warrnings for updateAppCurrencyConfig",
1950
+ message: `Parameter Validation warrnings for platform > Configuration > updateAppCurrencyConfig \n ${warrning}`,
1701
1951
  });
1702
- Logger({ level: "WARN", message: warrning });
1703
1952
  }
1704
1953
 
1705
1954
  const query_params = {};
@@ -1709,36 +1958,47 @@ class Configuration {
1709
1958
  "post",
1710
1959
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
1711
1960
  query_params,
1712
- body
1961
+ body,
1962
+ undefined,
1963
+ { headers }
1713
1964
  );
1714
1965
 
1966
+ let responseData = response;
1967
+ if (headers) {
1968
+ responseData = response[0];
1969
+ }
1970
+
1715
1971
  const {
1716
1972
  error: res_error,
1717
- } = ConfigurationModel.AppSupportedCurrency().validate(response, {
1718
- abortEarly: false,
1719
- allowUnknown: false,
1720
- });
1973
+ } = ConfigurationPlatformModel.AppSupportedCurrency().validate(
1974
+ responseData,
1975
+ { abortEarly: false, allowUnknown: false }
1976
+ );
1721
1977
 
1722
1978
  if (res_error) {
1723
1979
  Logger({
1724
1980
  level: "WARN",
1725
- message: "Response Validation Warnnings for updateAppCurrencyConfig",
1981
+ message: `Response Validation Warnnings for platform > Configuration > updateAppCurrencyConfig \n ${res_error}`,
1726
1982
  });
1727
- Logger({ level: "WARN", message: res_error });
1728
1983
  }
1729
1984
 
1730
1985
  return response;
1731
1986
  }
1732
1987
 
1733
1988
  /**
1734
- * @param {Object} arg - Arg object.
1735
- * @param {AppFeatureRequest} arg.body
1736
- * @returns {Promise<AppFeature>} - Success response
1989
+ * @param {ConfigurationPlatformApplicationValidator.UpdateAppFeaturesParam} arg
1990
+ * - Arg object
1991
+ *
1992
+ * @param {import("../PlatformAPIClient").Options} - Options
1993
+ * @returns {Promise<ConfigurationPlatformModel.AppFeature>} - Success response
1994
+ * @name updateAppFeatures
1737
1995
  * @summary: Update the sales channel configuration and features
1738
- * @description: Modify the feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more.
1996
+ * @description: Modify the feature configuration of sales channel websites, such as product detail, landing page, options in the login/registration screen, home page, listing page, reward points, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateAppFeatures/).
1739
1997
  */
1740
- async updateAppFeatures({ body } = {}) {
1741
- const { error } = ConfigurationValidator.updateAppFeatures().validate(
1998
+ async updateAppFeatures({ body } = {}, { headers } = { headers: false }) {
1999
+ const {
2000
+ error,
2001
+ } = ConfigurationPlatformApplicationValidator.updateAppFeatures().validate(
1742
2002
  {
1743
2003
  body,
1744
2004
  },
@@ -1751,7 +2011,7 @@ class Configuration {
1751
2011
  // Showing warrnings if extra unknown parameters are found
1752
2012
  const {
1753
2013
  error: warrning,
1754
- } = ConfigurationValidator.updateAppFeatures().validate(
2014
+ } = ConfigurationPlatformApplicationValidator.updateAppFeatures().validate(
1755
2015
  {
1756
2016
  body,
1757
2017
  },
@@ -1760,9 +2020,8 @@ class Configuration {
1760
2020
  if (warrning) {
1761
2021
  Logger({
1762
2022
  level: "WARN",
1763
- message: "Parameter Validation warrnings for updateAppFeatures",
2023
+ message: `Parameter Validation warrnings for platform > Configuration > updateAppFeatures \n ${warrning}`,
1764
2024
  });
1765
- Logger({ level: "WARN", message: warrning });
1766
2025
  }
1767
2026
 
1768
2027
  const query_params = {};
@@ -1772,12 +2031,19 @@ class Configuration {
1772
2031
  "post",
1773
2032
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
1774
2033
  query_params,
1775
- body
2034
+ body,
2035
+ undefined,
2036
+ { headers }
1776
2037
  );
1777
2038
 
2039
+ let responseData = response;
2040
+ if (headers) {
2041
+ responseData = response[0];
2042
+ }
2043
+
1778
2044
  const {
1779
2045
  error: res_error,
1780
- } = ConfigurationModel.AppFeature().validate(response, {
2046
+ } = ConfigurationPlatformModel.AppFeature().validate(responseData, {
1781
2047
  abortEarly: false,
1782
2048
  allowUnknown: false,
1783
2049
  });
@@ -1785,25 +2051,31 @@ class Configuration {
1785
2051
  if (res_error) {
1786
2052
  Logger({
1787
2053
  level: "WARN",
1788
- message: "Response Validation Warnnings for updateAppFeatures",
2054
+ message: `Response Validation Warnnings for platform > Configuration > updateAppFeatures \n ${res_error}`,
1789
2055
  });
1790
- Logger({ level: "WARN", message: res_error });
1791
2056
  }
1792
2057
 
1793
2058
  return response;
1794
2059
  }
1795
2060
 
1796
2061
  /**
1797
- * @param {Object} arg - Arg object.
1798
- * @param {string} arg.platformType - The device platform for which the
1799
- * mobile app is built, e.g. android, ios.
1800
- * @param {MobileAppConfigRequest} arg.body
1801
- * @returns {Promise<MobileAppConfiguration>} - Success response
2062
+ * @param {ConfigurationPlatformApplicationValidator.UpdateBuildConfigParam} arg
2063
+ * - Arg object
2064
+ *
2065
+ * @param {import("../PlatformAPIClient").Options} - Options
2066
+ * @returns {Promise<ConfigurationPlatformModel.MobileAppConfiguration>} -
2067
+ * Success response
2068
+ * @name updateBuildConfig
1802
2069
  * @summary: Update the configuration for next mobile build
1803
- * @description: Modify the existing build configuration, such as app name, landing page image, splash image used in a mobile build.
2070
+ * @description: Modify the existing build configuration, such as app name, landing page image, splash image used in a mobile build. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateBuildConfig/).
1804
2071
  */
1805
- async updateBuildConfig({ platformType, body } = {}) {
1806
- const { error } = ConfigurationValidator.updateBuildConfig().validate(
2072
+ async updateBuildConfig(
2073
+ { platformType, body } = {},
2074
+ { headers } = { headers: false }
2075
+ ) {
2076
+ const {
2077
+ error,
2078
+ } = ConfigurationPlatformApplicationValidator.updateBuildConfig().validate(
1807
2079
  {
1808
2080
  platformType,
1809
2081
  body,
@@ -1817,7 +2089,7 @@ class Configuration {
1817
2089
  // Showing warrnings if extra unknown parameters are found
1818
2090
  const {
1819
2091
  error: warrning,
1820
- } = ConfigurationValidator.updateBuildConfig().validate(
2092
+ } = ConfigurationPlatformApplicationValidator.updateBuildConfig().validate(
1821
2093
  {
1822
2094
  platformType,
1823
2095
  body,
@@ -1827,9 +2099,8 @@ class Configuration {
1827
2099
  if (warrning) {
1828
2100
  Logger({
1829
2101
  level: "WARN",
1830
- message: "Parameter Validation warrnings for updateBuildConfig",
2102
+ message: `Parameter Validation warrnings for platform > Configuration > updateBuildConfig \n ${warrning}`,
1831
2103
  });
1832
- Logger({ level: "WARN", message: warrning });
1833
2104
  }
1834
2105
 
1835
2106
  const query_params = {};
@@ -1839,36 +2110,48 @@ class Configuration {
1839
2110
  "put",
1840
2111
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
1841
2112
  query_params,
1842
- body
2113
+ body,
2114
+ undefined,
2115
+ { headers }
1843
2116
  );
1844
2117
 
2118
+ let responseData = response;
2119
+ if (headers) {
2120
+ responseData = response[0];
2121
+ }
2122
+
1845
2123
  const {
1846
2124
  error: res_error,
1847
- } = ConfigurationModel.MobileAppConfiguration().validate(response, {
1848
- abortEarly: false,
1849
- allowUnknown: false,
1850
- });
2125
+ } = ConfigurationPlatformModel.MobileAppConfiguration().validate(
2126
+ responseData,
2127
+ { abortEarly: false, allowUnknown: false }
2128
+ );
1851
2129
 
1852
2130
  if (res_error) {
1853
2131
  Logger({
1854
2132
  level: "WARN",
1855
- message: "Response Validation Warnnings for updateBuildConfig",
2133
+ message: `Response Validation Warnnings for platform > Configuration > updateBuildConfig \n ${res_error}`,
1856
2134
  });
1857
- Logger({ level: "WARN", message: res_error });
1858
2135
  }
1859
2136
 
1860
2137
  return response;
1861
2138
  }
1862
2139
 
1863
2140
  /**
1864
- * @param {Object} arg - Arg object.
1865
- * @param {ApplicationInventory} arg.body
1866
- * @returns {Promise<ApplicationInventory>} - Success response
2141
+ * @param {ConfigurationPlatformApplicationValidator.UpdateInventoryConfigParam} arg
2142
+ * - Arg object
2143
+ *
2144
+ * @param {import("../PlatformAPIClient").Options} - Options
2145
+ * @returns {Promise<ConfigurationPlatformModel.ApplicationInventory>} -
2146
+ * Success response
2147
+ * @name updateInventoryConfig
1867
2148
  * @summary: Update sales channel configuration
1868
- * @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc.
2149
+ * @description: Modify the configuration details of authentication, inventory, article assignment rules, reward points, cart, payment, order, logistics, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateInventoryConfig/).
1869
2150
  */
1870
- async updateInventoryConfig({ body } = {}) {
1871
- const { error } = ConfigurationValidator.updateInventoryConfig().validate(
2151
+ async updateInventoryConfig({ body } = {}, { headers } = { headers: false }) {
2152
+ const {
2153
+ error,
2154
+ } = ConfigurationPlatformApplicationValidator.updateInventoryConfig().validate(
1872
2155
  {
1873
2156
  body,
1874
2157
  },
@@ -1881,7 +2164,7 @@ class Configuration {
1881
2164
  // Showing warrnings if extra unknown parameters are found
1882
2165
  const {
1883
2166
  error: warrning,
1884
- } = ConfigurationValidator.updateInventoryConfig().validate(
2167
+ } = ConfigurationPlatformApplicationValidator.updateInventoryConfig().validate(
1885
2168
  {
1886
2169
  body,
1887
2170
  },
@@ -1890,9 +2173,8 @@ class Configuration {
1890
2173
  if (warrning) {
1891
2174
  Logger({
1892
2175
  level: "WARN",
1893
- message: "Parameter Validation warrnings for updateInventoryConfig",
2176
+ message: `Parameter Validation warrnings for platform > Configuration > updateInventoryConfig \n ${warrning}`,
1894
2177
  });
1895
- Logger({ level: "WARN", message: warrning });
1896
2178
  }
1897
2179
 
1898
2180
  const query_params = {};
@@ -1902,38 +2184,50 @@ class Configuration {
1902
2184
  "put",
1903
2185
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1904
2186
  query_params,
1905
- body
2187
+ body,
2188
+ undefined,
2189
+ { headers }
1906
2190
  );
1907
2191
 
2192
+ let responseData = response;
2193
+ if (headers) {
2194
+ responseData = response[0];
2195
+ }
2196
+
1908
2197
  const {
1909
2198
  error: res_error,
1910
- } = ConfigurationModel.ApplicationInventory().validate(response, {
1911
- abortEarly: false,
1912
- allowUnknown: false,
1913
- });
2199
+ } = ConfigurationPlatformModel.ApplicationInventory().validate(
2200
+ responseData,
2201
+ { abortEarly: false, allowUnknown: false }
2202
+ );
1914
2203
 
1915
2204
  if (res_error) {
1916
2205
  Logger({
1917
2206
  level: "WARN",
1918
- message: "Response Validation Warnnings for updateInventoryConfig",
2207
+ message: `Response Validation Warnnings for platform > Configuration > updateInventoryConfig \n ${res_error}`,
1919
2208
  });
1920
- Logger({ level: "WARN", message: res_error });
1921
2209
  }
1922
2210
 
1923
2211
  return response;
1924
2212
  }
1925
2213
 
1926
2214
  /**
1927
- * @param {Object} arg - Arg object.
1928
- * @param {OrderingStoreConfig} arg.body
1929
- * @returns {Promise<DeploymentMeta>} - Success response
2215
+ * @param {ConfigurationPlatformApplicationValidator.UpdateOrderingStoreConfigParam} arg
2216
+ * - Arg object
2217
+ *
2218
+ * @param {import("../PlatformAPIClient").Options} - Options
2219
+ * @returns {Promise<ConfigurationPlatformModel.DeploymentMeta>} - Success response
2220
+ * @name updateOrderingStoreConfig
1930
2221
  * @summary: Add/Update ordering store config
1931
- * @description: Use this API to edit the details of the deployment stores (the selling locations where the application will be utilised for placing orders)
2222
+ * @description: Use this API to edit the details of the deployment stores (the selling locations where the application will be utilised for placing orders) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/configuration/updateOrderingStoreConfig/).
1932
2223
  */
1933
- async updateOrderingStoreConfig({ body } = {}) {
2224
+ async updateOrderingStoreConfig(
2225
+ { body } = {},
2226
+ { headers } = { headers: false }
2227
+ ) {
1934
2228
  const {
1935
2229
  error,
1936
- } = ConfigurationValidator.updateOrderingStoreConfig().validate(
2230
+ } = ConfigurationPlatformApplicationValidator.updateOrderingStoreConfig().validate(
1937
2231
  {
1938
2232
  body,
1939
2233
  },
@@ -1946,7 +2240,7 @@ class Configuration {
1946
2240
  // Showing warrnings if extra unknown parameters are found
1947
2241
  const {
1948
2242
  error: warrning,
1949
- } = ConfigurationValidator.updateOrderingStoreConfig().validate(
2243
+ } = ConfigurationPlatformApplicationValidator.updateOrderingStoreConfig().validate(
1950
2244
  {
1951
2245
  body,
1952
2246
  },
@@ -1955,9 +2249,8 @@ class Configuration {
1955
2249
  if (warrning) {
1956
2250
  Logger({
1957
2251
  level: "WARN",
1958
- message: "Parameter Validation warrnings for updateOrderingStoreConfig",
2252
+ message: `Parameter Validation warrnings for platform > Configuration > updateOrderingStoreConfig \n ${warrning}`,
1959
2253
  });
1960
- Logger({ level: "WARN", message: warrning });
1961
2254
  }
1962
2255
 
1963
2256
  const query_params = {};
@@ -1967,12 +2260,19 @@ class Configuration {
1967
2260
  "post",
1968
2261
  `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
1969
2262
  query_params,
1970
- body
2263
+ body,
2264
+ undefined,
2265
+ { headers }
1971
2266
  );
1972
2267
 
2268
+ let responseData = response;
2269
+ if (headers) {
2270
+ responseData = response[0];
2271
+ }
2272
+
1973
2273
  const {
1974
2274
  error: res_error,
1975
- } = ConfigurationModel.DeploymentMeta().validate(response, {
2275
+ } = ConfigurationPlatformModel.DeploymentMeta().validate(responseData, {
1976
2276
  abortEarly: false,
1977
2277
  allowUnknown: false,
1978
2278
  });
@@ -1980,9 +2280,8 @@ class Configuration {
1980
2280
  if (res_error) {
1981
2281
  Logger({
1982
2282
  level: "WARN",
1983
- message: "Response Validation Warnnings for updateOrderingStoreConfig",
2283
+ message: `Response Validation Warnnings for platform > Configuration > updateOrderingStoreConfig \n ${res_error}`,
1984
2284
  });
1985
- Logger({ level: "WARN", message: res_error });
1986
2285
  }
1987
2286
 
1988
2287
  return response;