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