@gofynd/fdk-client-javascript 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +12 -0
  2. package/index.js +0 -3
  3. package/package.json +1 -1
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +8 -1
  6. package/sdk/application/ApplicationClient.d.ts +37 -6
  7. package/sdk/application/ApplicationClient.js +31 -0
  8. package/sdk/application/ApplicationConfig.d.ts +52 -12
  9. package/sdk/application/ApplicationConfig.js +37 -2
  10. package/sdk/application/ApplicationModels.d.ts +46 -1
  11. package/sdk/application/ApplicationModels.js +18 -0
  12. package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
  13. package/sdk/application/Cart/CartApplicationClient.js +620 -483
  14. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  15. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  16. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  17. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  18. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
  19. package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
  20. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
  21. package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
  22. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  23. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  24. package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
  25. package/sdk/application/Common/CommonApplicationClient.js +50 -33
  26. package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
  27. package/sdk/application/Common/CommonApplicationModel.js +224 -16
  28. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  29. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  30. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
  31. package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
  32. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
  33. package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
  34. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  35. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  36. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
  37. package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
  38. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
  39. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
  40. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  41. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  42. package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
  43. package/sdk/application/Content/ContentApplicationClient.js +409 -277
  44. package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
  45. package/sdk/application/Content/ContentApplicationModel.js +1202 -109
  46. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  47. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  48. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
  49. package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
  50. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
  51. package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
  52. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  53. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  54. package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
  55. package/sdk/application/Lead/LeadApplicationClient.js +169 -103
  56. package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
  57. package/sdk/application/Lead/LeadApplicationModel.js +619 -73
  58. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  59. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  60. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
  61. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
  62. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  63. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  64. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  65. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  66. package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
  67. package/sdk/application/Order/OrderApplicationClient.js +297 -217
  68. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  69. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  70. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  71. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  72. package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
  73. package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
  74. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  75. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  76. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  77. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  78. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
  79. package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
  80. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  81. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  82. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  83. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  84. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
  85. package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
  86. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  87. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  88. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  89. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  90. package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
  91. package/sdk/application/Share/ShareApplicationClient.js +165 -97
  92. package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
  93. package/sdk/application/Share/ShareApplicationModel.js +154 -16
  94. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  95. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  96. package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
  97. package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
  98. package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
  99. package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
  100. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  101. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  102. package/sdk/application/User/UserApplicationClient.d.ts +219 -303
  103. package/sdk/application/User/UserApplicationClient.js +819 -522
  104. package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
  105. package/sdk/application/User/UserApplicationModel.js +983 -44
  106. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  107. package/sdk/application/User/UserApplicationValidator.js +265 -31
  108. package/sdk/common/AxiosHelper.js +8 -2
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/partner/PartnerAPIClient.d.ts +15 -1
  113. package/sdk/partner/PartnerAPIClient.js +8 -1
  114. package/sdk/partner/PartnerClient.d.ts +20 -3
  115. package/sdk/partner/PartnerClient.js +17 -0
  116. package/sdk/partner/PartnerConfig.d.ts +40 -14
  117. package/sdk/partner/PartnerConfig.js +31 -6
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
  123. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
  124. package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
  125. package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
  126. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
  127. package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
  128. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
  129. package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
  131. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  133. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  134. package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
  135. package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  139. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  140. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
  141. package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
  142. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
  143. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
  145. package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
  146. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
  147. package/sdk/platform/Common/CommonPlatformClient.js +48 -33
  148. package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
  149. package/sdk/platform/Common/CommonPlatformModel.js +224 -16
  150. package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
  151. package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
  153. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
  154. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
  155. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
  156. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
  157. package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
  158. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
  159. package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
  160. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  161. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  162. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
  163. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
  164. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
  165. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
  166. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
  167. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
  168. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
  169. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
  170. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
  171. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
  172. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
  173. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
  174. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
  175. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
  176. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  177. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  178. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
  179. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
  180. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  181. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  182. package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
  183. package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
  184. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
  185. package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
  186. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
  187. package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
  188. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  189. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
  191. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
  192. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
  193. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
  194. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
  195. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
  196. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
  197. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
  198. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
  199. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
  200. package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
  201. package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
  202. package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
  203. package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
  204. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
  205. package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
  206. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
  207. package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
  208. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  209. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  210. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  211. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  212. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
  213. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
  214. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  215. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  216. package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
  217. package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
  218. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
  219. package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
  220. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  221. package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
  222. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
  223. package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
  224. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  225. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  226. package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
  227. package/sdk/platform/Order/OrderPlatformClient.js +969 -762
  228. package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
  229. package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
  230. package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
  231. package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
  232. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
  233. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
  234. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
  235. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
  236. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
  237. package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
  238. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
  239. package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
  240. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
  241. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
  242. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
  243. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
  244. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
  245. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
  246. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
  247. package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
  248. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
  249. package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
  250. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  251. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  252. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  253. package/sdk/platform/PlatformAPIClient.js +9 -1
  254. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  255. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  256. package/sdk/platform/PlatformClient.d.ts +29 -12579
  257. package/sdk/platform/PlatformClient.js +26 -15085
  258. package/sdk/platform/PlatformConfig.d.ts +37 -11
  259. package/sdk/platform/PlatformConfig.js +32 -6
  260. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
  261. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
  262. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  263. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  264. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
  265. package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
  266. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
  267. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
  268. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
  269. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
  270. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
  271. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
  272. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  276. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
  277. package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
  278. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  279. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  280. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  281. package/sdk/platform/Share/SharePlatformModel.js +165 -17
  282. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
  283. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
  284. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
  285. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
  286. package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
  287. package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
  288. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
  289. package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
  290. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
  291. package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
  292. package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
  293. package/sdk/platform/User/UserPlatformModel.js +983 -44
  294. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
  295. package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
  296. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
  297. package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
  298. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
  299. package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
  300. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
  301. package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
  302. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
  303. package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
  304. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  305. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  306. package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
  307. package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
  308. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  309. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  310. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  311. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  312. package/sdk/public/PublicClient.d.ts +19 -3
  313. package/sdk/public/PublicClient.js +16 -0
  314. package/sdk/public/PublicConfig.d.ts +27 -6
  315. package/sdk/public/PublicConfig.js +17 -1
  316. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
  317. package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
  318. package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
  319. package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
  320. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  321. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
@@ -2,8 +2,8 @@ const ApplicationAPIClient = require("../ApplicationAPIClient");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const constructUrl = require("../constructUrl");
4
4
  const Paginator = require("../../common/Paginator");
5
- const ConfigurationValidator = require("./ConfigurationApplicationValidator");
6
- const ConfigurationModel = require("./ConfigurationApplicationModel");
5
+ const ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");
6
+ const ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
7
7
  const { Logger } = require("./../../common/Logger");
8
8
  const Joi = require("joi");
9
9
 
@@ -49,13 +49,17 @@ class Configuration {
49
49
  }
50
50
 
51
51
  /**
52
- * @param {Object} arg - Arg object.
53
- * @returns {Promise<AppCurrencyResponse>} - Success response
52
+ * @param {import("../ApplicationAPIClient").Options} - Options
53
+ * @returns {Promise<ConfigurationApplicationModel.AppCurrencyResponse>} -
54
+ * Success response
55
+ * @name getAppCurrencies
54
56
  * @summary: Get currencies enabled in the application
55
- * @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.
57
+ * @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/application/configuration/getAppCurrencies/).
56
58
  */
57
- async getAppCurrencies({} = {}) {
58
- const { error } = ConfigurationValidator.getAppCurrencies().validate(
59
+ async getAppCurrencies({ headers } = { headers: false }) {
60
+ const {
61
+ error,
62
+ } = ConfigurationApplicationValidator.getAppCurrencies().validate(
59
63
  {},
60
64
  { abortEarly: false, allowUnknown: true }
61
65
  );
@@ -66,16 +70,15 @@ class Configuration {
66
70
  // Showing warrnings if extra unknown parameters are found
67
71
  const {
68
72
  error: warrning,
69
- } = ConfigurationValidator.getAppCurrencies().validate(
73
+ } = ConfigurationApplicationValidator.getAppCurrencies().validate(
70
74
  {},
71
75
  { abortEarly: false, allowUnknown: false }
72
76
  );
73
77
  if (warrning) {
74
78
  Logger({
75
79
  level: "WARN",
76
- message: "Parameter Validation warrnings for getAppCurrencies",
80
+ message: `Parameter Validation warrnings for application > Configuration > getAppCurrencies \n ${warrning}`,
77
81
  });
78
- Logger({ level: "WARN", message: warrning });
79
82
  }
80
83
 
81
84
  const query_params = {};
@@ -91,51 +94,48 @@ class Configuration {
91
94
  }),
92
95
  query_params,
93
96
  undefined,
94
- xHeaders
97
+ xHeaders,
98
+ { headers }
95
99
  );
96
100
 
101
+ let responseData = response;
102
+ if (headers) {
103
+ responseData = response[0];
104
+ }
105
+
97
106
  const {
98
107
  error: res_error,
99
- } = ConfigurationModel.AppCurrencyResponse().validate(response, {
100
- abortEarly: false,
101
- allowUnknown: false,
102
- });
108
+ } = ConfigurationApplicationModel.AppCurrencyResponse().validate(
109
+ responseData,
110
+ { abortEarly: false, allowUnknown: false }
111
+ );
103
112
 
104
113
  if (res_error) {
105
114
  Logger({
106
115
  level: "WARN",
107
- message: "Response Validation Warnnings for getAppCurrencies",
116
+ message: `Response Validation Warnnings for application > Configuration > getAppCurrencies \n ${res_error}`,
108
117
  });
109
- Logger({ level: "WARN", message: res_error });
110
118
  }
111
119
 
112
120
  return response;
113
121
  }
114
122
 
115
123
  /**
116
- * @param {Object} arg - Arg object.
117
- * @param {number} [arg.pageNo] -
118
- * @param {number} [arg.pageSize] -
119
- * @param {boolean} [arg.orderIncent] - This is a boolean value. Select
120
- * `true` to retrieve the staff members eligible for getting incentives on orders.
121
- * @param {number} [arg.orderingStore] - ID of the ordering store. Helps in
122
- * retrieving staff members working at a particular ordering store.
123
- * @param {string} [arg.user] - Mongo ID of the staff. Helps in retrieving
124
- * the details of a particular staff member.
125
- * @param {string} [arg.userName] - User name of the member
126
- * @returns {Promise<AppStaffListResponse>} - Success response
124
+ * @param {ConfigurationApplicationValidator.GetAppStaffListParam} arg - Arg object.
125
+ * @param {import("../ApplicationAPIClient").Options} - Options
126
+ * @returns {Promise<ConfigurationApplicationModel.AppStaffListResponse>} -
127
+ * Success response
128
+ * @name getAppStaffList
127
129
  * @summary: Get a list of staff.
128
- * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
130
+ * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffList/).
129
131
  */
130
- async getAppStaffList({
131
- pageNo,
132
- pageSize,
133
- orderIncent,
134
- orderingStore,
135
- user,
136
- userName,
137
- } = {}) {
138
- const { error } = ConfigurationValidator.getAppStaffList().validate(
132
+ async getAppStaffList(
133
+ { pageNo, pageSize, orderIncent, orderingStore, user, userName } = {},
134
+ { headers } = { headers: false }
135
+ ) {
136
+ const {
137
+ error,
138
+ } = ConfigurationApplicationValidator.getAppStaffList().validate(
139
139
  { pageNo, pageSize, orderIncent, orderingStore, user, userName },
140
140
  { abortEarly: false, allowUnknown: true }
141
141
  );
@@ -146,16 +146,15 @@ class Configuration {
146
146
  // Showing warrnings if extra unknown parameters are found
147
147
  const {
148
148
  error: warrning,
149
- } = ConfigurationValidator.getAppStaffList().validate(
149
+ } = ConfigurationApplicationValidator.getAppStaffList().validate(
150
150
  { pageNo, pageSize, orderIncent, orderingStore, user, userName },
151
151
  { abortEarly: false, allowUnknown: false }
152
152
  );
153
153
  if (warrning) {
154
154
  Logger({
155
155
  level: "WARN",
156
- message: "Parameter Validation warrnings for getAppStaffList",
156
+ message: `Parameter Validation warrnings for application > Configuration > getAppStaffList \n ${warrning}`,
157
157
  });
158
- Logger({ level: "WARN", message: warrning });
159
158
  }
160
159
 
161
160
  const query_params = {};
@@ -177,22 +176,27 @@ class Configuration {
177
176
  }),
178
177
  query_params,
179
178
  undefined,
180
- xHeaders
179
+ xHeaders,
180
+ { headers }
181
181
  );
182
182
 
183
+ let responseData = response;
184
+ if (headers) {
185
+ responseData = response[0];
186
+ }
187
+
183
188
  const {
184
189
  error: res_error,
185
- } = ConfigurationModel.AppStaffListResponse().validate(response, {
186
- abortEarly: false,
187
- allowUnknown: false,
188
- });
190
+ } = ConfigurationApplicationModel.AppStaffListResponse().validate(
191
+ responseData,
192
+ { abortEarly: false, allowUnknown: false }
193
+ );
189
194
 
190
195
  if (res_error) {
191
196
  Logger({
192
197
  level: "WARN",
193
- message: "Response Validation Warnnings for getAppStaffList",
198
+ message: `Response Validation Warnnings for application > Configuration > getAppStaffList \n ${res_error}`,
194
199
  });
195
- Logger({ level: "WARN", message: res_error });
196
200
  }
197
201
 
198
202
  return response;
@@ -208,6 +212,7 @@ class Configuration {
208
212
  * @param {string} [arg.user] - Mongo ID of the staff. Helps in retrieving
209
213
  * the details of a particular staff member.
210
214
  * @param {string} [arg.userName] - User name of the member
215
+ * @returns {Paginator<ConfigurationApplicationModel.AppStaffListResponse>}
211
216
  * @summary: Get a list of staff.
212
217
  * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
213
218
  */
@@ -242,19 +247,19 @@ class Configuration {
242
247
  }
243
248
 
244
249
  /**
245
- * @param {Object} arg - Arg object.
246
- * @param {boolean} [arg.orderIncent] - This is a boolean value. Select
247
- * `true` to retrieve the staff members eligible for getting incentives on orders.
248
- * @param {number} [arg.orderingStore] - ID of the ordering store. Helps in
249
- * retrieving staff members working at a particular ordering store.
250
- * @param {string} [arg.user] - Mongo ID of the staff. Helps in retrieving
251
- * the details of a particular staff member.
252
- * @returns {Promise<AppStaffResponse>} - Success response
250
+ * @param {ConfigurationApplicationValidator.GetAppStaffsParam} arg - Arg object.
251
+ * @param {import("../ApplicationAPIClient").Options} - Options
252
+ * @returns {Promise<ConfigurationApplicationModel.AppStaffResponse>} -
253
+ * Success response
254
+ * @name getAppStaffs
253
255
  * @summary: Get a list of staff.
254
- * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application.
256
+ * @description: Use this API to get a list of staff including the names, employee code, incentive status, assigned ordering stores, and title of each staff added to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getAppStaffs/).
255
257
  */
256
- async getAppStaffs({ orderIncent, orderingStore, user } = {}) {
257
- const { error } = ConfigurationValidator.getAppStaffs().validate(
258
+ async getAppStaffs(
259
+ { orderIncent, orderingStore, user } = {},
260
+ { headers } = { headers: false }
261
+ ) {
262
+ const { error } = ConfigurationApplicationValidator.getAppStaffs().validate(
258
263
  { orderIncent, orderingStore, user },
259
264
  { abortEarly: false, allowUnknown: true }
260
265
  );
@@ -263,16 +268,17 @@ class Configuration {
263
268
  }
264
269
 
265
270
  // Showing warrnings if extra unknown parameters are found
266
- const { error: warrning } = ConfigurationValidator.getAppStaffs().validate(
271
+ const {
272
+ error: warrning,
273
+ } = ConfigurationApplicationValidator.getAppStaffs().validate(
267
274
  { orderIncent, orderingStore, user },
268
275
  { abortEarly: false, allowUnknown: false }
269
276
  );
270
277
  if (warrning) {
271
278
  Logger({
272
279
  level: "WARN",
273
- message: "Parameter Validation warrnings for getAppStaffs",
280
+ message: `Parameter Validation warrnings for application > Configuration > getAppStaffs \n ${warrning}`,
274
281
  });
275
- Logger({ level: "WARN", message: warrning });
276
282
  }
277
283
 
278
284
  const query_params = {};
@@ -291,35 +297,43 @@ class Configuration {
291
297
  }),
292
298
  query_params,
293
299
  undefined,
294
- xHeaders
300
+ xHeaders,
301
+ { headers }
295
302
  );
296
303
 
304
+ let responseData = response;
305
+ if (headers) {
306
+ responseData = response[0];
307
+ }
308
+
297
309
  const {
298
310
  error: res_error,
299
- } = ConfigurationModel.AppStaffResponse().validate(response, {
300
- abortEarly: false,
301
- allowUnknown: false,
302
- });
311
+ } = ConfigurationApplicationModel.AppStaffResponse().validate(
312
+ responseData,
313
+ { abortEarly: false, allowUnknown: false }
314
+ );
303
315
 
304
316
  if (res_error) {
305
317
  Logger({
306
318
  level: "WARN",
307
- message: "Response Validation Warnnings for getAppStaffs",
319
+ message: `Response Validation Warnnings for application > Configuration > getAppStaffs \n ${res_error}`,
308
320
  });
309
- Logger({ level: "WARN", message: res_error });
310
321
  }
311
322
 
312
323
  return response;
313
324
  }
314
325
 
315
326
  /**
316
- * @param {Object} arg - Arg object.
317
- * @returns {Promise<Application>} - Success response
327
+ * @param {import("../ApplicationAPIClient").Options} - Options
328
+ * @returns {Promise<ConfigurationApplicationModel.Application>} - Success response
329
+ * @name getApplication
318
330
  * @summary: Get current sales channel details
319
- * @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc.
331
+ * @description: Use this API to get the current sales channel details which includes configurations that indicate the status of the website, domain, ID, tokens, images, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getApplication/).
320
332
  */
321
- async getApplication({} = {}) {
322
- const { error } = ConfigurationValidator.getApplication().validate(
333
+ async getApplication({ headers } = { headers: false }) {
334
+ const {
335
+ error,
336
+ } = ConfigurationApplicationValidator.getApplication().validate(
323
337
  {},
324
338
  { abortEarly: false, allowUnknown: true }
325
339
  );
@@ -330,16 +344,15 @@ class Configuration {
330
344
  // Showing warrnings if extra unknown parameters are found
331
345
  const {
332
346
  error: warrning,
333
- } = ConfigurationValidator.getApplication().validate(
347
+ } = ConfigurationApplicationValidator.getApplication().validate(
334
348
  {},
335
349
  { abortEarly: false, allowUnknown: false }
336
350
  );
337
351
  if (warrning) {
338
352
  Logger({
339
353
  level: "WARN",
340
- message: "Parameter Validation warrnings for getApplication",
354
+ message: `Parameter Validation warrnings for application > Configuration > getApplication \n ${warrning}`,
341
355
  });
342
- Logger({ level: "WARN", message: warrning });
343
356
  }
344
357
 
345
358
  const query_params = {};
@@ -355,12 +368,18 @@ class Configuration {
355
368
  }),
356
369
  query_params,
357
370
  undefined,
358
- xHeaders
371
+ xHeaders,
372
+ { headers }
359
373
  );
360
374
 
375
+ let responseData = response;
376
+ if (headers) {
377
+ responseData = response[0];
378
+ }
379
+
361
380
  const {
362
381
  error: res_error,
363
- } = ConfigurationModel.Application().validate(response, {
382
+ } = ConfigurationApplicationModel.Application().validate(responseData, {
364
383
  abortEarly: false,
365
384
  allowUnknown: false,
366
385
  });
@@ -368,22 +387,25 @@ class Configuration {
368
387
  if (res_error) {
369
388
  Logger({
370
389
  level: "WARN",
371
- message: "Response Validation Warnnings for getApplication",
390
+ message: `Response Validation Warnnings for application > Configuration > getApplication \n ${res_error}`,
372
391
  });
373
- Logger({ level: "WARN", message: res_error });
374
392
  }
375
393
 
376
394
  return response;
377
395
  }
378
396
 
379
397
  /**
380
- * @param {Object} arg - Arg object.
381
- * @returns {Promise<ApplicationDetail>} - Success response
398
+ * @param {import("../ApplicationAPIClient").Options} - Options
399
+ * @returns {Promise<ConfigurationApplicationModel.ApplicationDetail>} -
400
+ * Success response
401
+ * @name getBasicDetails
382
402
  * @summary: Get basic details of the application
383
- * @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc.
403
+ * @description: Use this API to retrieve only the basic details of the application which includes channel name, description, banner, logo, favicon, domain details, etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getBasicDetails/).
384
404
  */
385
- async getBasicDetails({} = {}) {
386
- const { error } = ConfigurationValidator.getBasicDetails().validate(
405
+ async getBasicDetails({ headers } = { headers: false }) {
406
+ const {
407
+ error,
408
+ } = ConfigurationApplicationValidator.getBasicDetails().validate(
387
409
  {},
388
410
  { abortEarly: false, allowUnknown: true }
389
411
  );
@@ -394,16 +416,15 @@ class Configuration {
394
416
  // Showing warrnings if extra unknown parameters are found
395
417
  const {
396
418
  error: warrning,
397
- } = ConfigurationValidator.getBasicDetails().validate(
419
+ } = ConfigurationApplicationValidator.getBasicDetails().validate(
398
420
  {},
399
421
  { abortEarly: false, allowUnknown: false }
400
422
  );
401
423
  if (warrning) {
402
424
  Logger({
403
425
  level: "WARN",
404
- message: "Parameter Validation warrnings for getBasicDetails",
426
+ message: `Parameter Validation warrnings for application > Configuration > getBasicDetails \n ${warrning}`,
405
427
  });
406
- Logger({ level: "WARN", message: warrning });
407
428
  }
408
429
 
409
430
  const query_params = {};
@@ -419,35 +440,45 @@ class Configuration {
419
440
  }),
420
441
  query_params,
421
442
  undefined,
422
- xHeaders
443
+ xHeaders,
444
+ { headers }
423
445
  );
424
446
 
447
+ let responseData = response;
448
+ if (headers) {
449
+ responseData = response[0];
450
+ }
451
+
425
452
  const {
426
453
  error: res_error,
427
- } = ConfigurationModel.ApplicationDetail().validate(response, {
428
- abortEarly: false,
429
- allowUnknown: false,
430
- });
454
+ } = ConfigurationApplicationModel.ApplicationDetail().validate(
455
+ responseData,
456
+ { abortEarly: false, allowUnknown: false }
457
+ );
431
458
 
432
459
  if (res_error) {
433
460
  Logger({
434
461
  level: "WARN",
435
- message: "Response Validation Warnnings for getBasicDetails",
462
+ message: `Response Validation Warnnings for application > Configuration > getBasicDetails \n ${res_error}`,
436
463
  });
437
- Logger({ level: "WARN", message: res_error });
438
464
  }
439
465
 
440
466
  return response;
441
467
  }
442
468
 
443
469
  /**
444
- * @param {Object} arg - Arg object.
445
- * @returns {Promise<ApplicationInformation>} - Success response
470
+ * @param {import("../ApplicationAPIClient").Options} - Options
471
+ * @returns {Promise<ConfigurationApplicationModel.ApplicationInformation>}
472
+ * - Success response
473
+ *
474
+ * @name getContactInfo
446
475
  * @summary: Get application information
447
- * @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application.
476
+ * @description: Use this API to retrieve information about the social links, address and contact information of the company/seller/brand operating the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getContactInfo/).
448
477
  */
449
- async getContactInfo({} = {}) {
450
- const { error } = ConfigurationValidator.getContactInfo().validate(
478
+ async getContactInfo({ headers } = { headers: false }) {
479
+ const {
480
+ error,
481
+ } = ConfigurationApplicationValidator.getContactInfo().validate(
451
482
  {},
452
483
  { abortEarly: false, allowUnknown: true }
453
484
  );
@@ -458,16 +489,15 @@ class Configuration {
458
489
  // Showing warrnings if extra unknown parameters are found
459
490
  const {
460
491
  error: warrning,
461
- } = ConfigurationValidator.getContactInfo().validate(
492
+ } = ConfigurationApplicationValidator.getContactInfo().validate(
462
493
  {},
463
494
  { abortEarly: false, allowUnknown: false }
464
495
  );
465
496
  if (warrning) {
466
497
  Logger({
467
498
  level: "WARN",
468
- message: "Parameter Validation warrnings for getContactInfo",
499
+ message: `Parameter Validation warrnings for application > Configuration > getContactInfo \n ${warrning}`,
469
500
  });
470
- Logger({ level: "WARN", message: warrning });
471
501
  }
472
502
 
473
503
  const query_params = {};
@@ -483,35 +513,44 @@ class Configuration {
483
513
  }),
484
514
  query_params,
485
515
  undefined,
486
- xHeaders
516
+ xHeaders,
517
+ { headers }
487
518
  );
488
519
 
520
+ let responseData = response;
521
+ if (headers) {
522
+ responseData = response[0];
523
+ }
524
+
489
525
  const {
490
526
  error: res_error,
491
- } = ConfigurationModel.ApplicationInformation().validate(response, {
492
- abortEarly: false,
493
- allowUnknown: false,
494
- });
527
+ } = ConfigurationApplicationModel.ApplicationInformation().validate(
528
+ responseData,
529
+ { abortEarly: false, allowUnknown: false }
530
+ );
495
531
 
496
532
  if (res_error) {
497
533
  Logger({
498
534
  level: "WARN",
499
- message: "Response Validation Warnnings for getContactInfo",
535
+ message: `Response Validation Warnnings for application > Configuration > getContactInfo \n ${res_error}`,
500
536
  });
501
- Logger({ level: "WARN", message: res_error });
502
537
  }
503
538
 
504
539
  return response;
505
540
  }
506
541
 
507
542
  /**
508
- * @param {Object} arg - Arg object.
509
- * @returns {Promise<CurrenciesResponse>} - Success response
543
+ * @param {import("../ApplicationAPIClient").Options} - Options
544
+ * @returns {Promise<ConfigurationApplicationModel.CurrenciesResponse>} -
545
+ * Success response
546
+ * @name getCurrencies
510
547
  * @summary: Get all currencies list
511
- * @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
548
+ * @description: Use this API to get a list of currencies available. Moreover, get the name, code, symbol, and the decimal digits of the currencies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencies/).
512
549
  */
513
- async getCurrencies({} = {}) {
514
- const { error } = ConfigurationValidator.getCurrencies().validate(
550
+ async getCurrencies({ headers } = { headers: false }) {
551
+ const {
552
+ error,
553
+ } = ConfigurationApplicationValidator.getCurrencies().validate(
515
554
  {},
516
555
  { abortEarly: false, allowUnknown: true }
517
556
  );
@@ -520,16 +559,17 @@ class Configuration {
520
559
  }
521
560
 
522
561
  // Showing warrnings if extra unknown parameters are found
523
- const { error: warrning } = ConfigurationValidator.getCurrencies().validate(
562
+ const {
563
+ error: warrning,
564
+ } = ConfigurationApplicationValidator.getCurrencies().validate(
524
565
  {},
525
566
  { abortEarly: false, allowUnknown: false }
526
567
  );
527
568
  if (warrning) {
528
569
  Logger({
529
570
  level: "WARN",
530
- message: "Parameter Validation warrnings for getCurrencies",
571
+ message: `Parameter Validation warrnings for application > Configuration > getCurrencies \n ${warrning}`,
531
572
  });
532
- Logger({ level: "WARN", message: warrning });
533
573
  }
534
574
 
535
575
  const query_params = {};
@@ -545,36 +585,44 @@ class Configuration {
545
585
  }),
546
586
  query_params,
547
587
  undefined,
548
- xHeaders
588
+ xHeaders,
589
+ { headers }
549
590
  );
550
591
 
592
+ let responseData = response;
593
+ if (headers) {
594
+ responseData = response[0];
595
+ }
596
+
551
597
  const {
552
598
  error: res_error,
553
- } = ConfigurationModel.CurrenciesResponse().validate(response, {
554
- abortEarly: false,
555
- allowUnknown: false,
556
- });
599
+ } = ConfigurationApplicationModel.CurrenciesResponse().validate(
600
+ responseData,
601
+ { abortEarly: false, allowUnknown: false }
602
+ );
557
603
 
558
604
  if (res_error) {
559
605
  Logger({
560
606
  level: "WARN",
561
- message: "Response Validation Warnnings for getCurrencies",
607
+ message: `Response Validation Warnnings for application > Configuration > getCurrencies \n ${res_error}`,
562
608
  });
563
- Logger({ level: "WARN", message: res_error });
564
609
  }
565
610
 
566
611
  return response;
567
612
  }
568
613
 
569
614
  /**
570
- * @param {Object} arg - Arg object.
571
- * @param {string} arg.id - Object ID assigned to the currency
572
- * @returns {Promise<Currency>} - Success response
615
+ * @param {ConfigurationApplicationValidator.GetCurrencyByIdParam} arg - Arg object.
616
+ * @param {import("../ApplicationAPIClient").Options} - Options
617
+ * @returns {Promise<ConfigurationApplicationModel.Currency>} - Success response
618
+ * @name getCurrencyById
573
619
  * @summary: Get currency by its ID
574
- * @description: Use this API to retrieve a currency using its ID.
620
+ * @description: Use this API to retrieve a currency using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getCurrencyById/).
575
621
  */
576
- async getCurrencyById({ id } = {}) {
577
- const { error } = ConfigurationValidator.getCurrencyById().validate(
622
+ async getCurrencyById({ id } = {}, { headers } = { headers: false }) {
623
+ const {
624
+ error,
625
+ } = ConfigurationApplicationValidator.getCurrencyById().validate(
578
626
  { id },
579
627
  { abortEarly: false, allowUnknown: true }
580
628
  );
@@ -585,16 +633,15 @@ class Configuration {
585
633
  // Showing warrnings if extra unknown parameters are found
586
634
  const {
587
635
  error: warrning,
588
- } = ConfigurationValidator.getCurrencyById().validate(
636
+ } = ConfigurationApplicationValidator.getCurrencyById().validate(
589
637
  { id },
590
638
  { abortEarly: false, allowUnknown: false }
591
639
  );
592
640
  if (warrning) {
593
641
  Logger({
594
642
  level: "WARN",
595
- message: "Parameter Validation warrnings for getCurrencyById",
643
+ message: `Parameter Validation warrnings for application > Configuration > getCurrencyById \n ${warrning}`,
596
644
  });
597
- Logger({ level: "WARN", message: warrning });
598
645
  }
599
646
 
600
647
  const query_params = {};
@@ -610,12 +657,18 @@ class Configuration {
610
657
  }),
611
658
  query_params,
612
659
  undefined,
613
- xHeaders
660
+ xHeaders,
661
+ { headers }
614
662
  );
615
663
 
664
+ let responseData = response;
665
+ if (headers) {
666
+ responseData = response[0];
667
+ }
668
+
616
669
  const {
617
670
  error: res_error,
618
- } = ConfigurationModel.Currency().validate(response, {
671
+ } = ConfigurationApplicationModel.Currency().validate(responseData, {
619
672
  abortEarly: false,
620
673
  allowUnknown: false,
621
674
  });
@@ -623,22 +676,23 @@ class Configuration {
623
676
  if (res_error) {
624
677
  Logger({
625
678
  level: "WARN",
626
- message: "Response Validation Warnnings for getCurrencyById",
679
+ message: `Response Validation Warnnings for application > Configuration > getCurrencyById \n ${res_error}`,
627
680
  });
628
- Logger({ level: "WARN", message: res_error });
629
681
  }
630
682
 
631
683
  return response;
632
684
  }
633
685
 
634
686
  /**
635
- * @param {Object} arg - Arg object.
636
- * @returns {Promise<AppFeatureResponse>} - Success response
687
+ * @param {import("../ApplicationAPIClient").Options} - Options
688
+ * @returns {Promise<ConfigurationApplicationModel.AppFeatureResponse>} -
689
+ * Success response
690
+ * @name getFeatures
637
691
  * @summary: Get features of application
638
- * @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more.
692
+ * @description: Use this API to retrieve the configuration of features such as product detail, landing page, options in the login/registration screen, communication opt-in, cart options and many more. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getFeatures/).
639
693
  */
640
- async getFeatures({} = {}) {
641
- const { error } = ConfigurationValidator.getFeatures().validate(
694
+ async getFeatures({ headers } = { headers: false }) {
695
+ const { error } = ConfigurationApplicationValidator.getFeatures().validate(
642
696
  {},
643
697
  { abortEarly: false, allowUnknown: true }
644
698
  );
@@ -647,16 +701,17 @@ class Configuration {
647
701
  }
648
702
 
649
703
  // Showing warrnings if extra unknown parameters are found
650
- const { error: warrning } = ConfigurationValidator.getFeatures().validate(
704
+ const {
705
+ error: warrning,
706
+ } = ConfigurationApplicationValidator.getFeatures().validate(
651
707
  {},
652
708
  { abortEarly: false, allowUnknown: false }
653
709
  );
654
710
  if (warrning) {
655
711
  Logger({
656
712
  level: "WARN",
657
- message: "Parameter Validation warrnings for getFeatures",
713
+ message: `Parameter Validation warrnings for application > Configuration > getFeatures \n ${warrning}`,
658
714
  });
659
- Logger({ level: "WARN", message: warrning });
660
715
  }
661
716
 
662
717
  const query_params = {};
@@ -672,35 +727,44 @@ class Configuration {
672
727
  }),
673
728
  query_params,
674
729
  undefined,
675
- xHeaders
730
+ xHeaders,
731
+ { headers }
676
732
  );
677
733
 
734
+ let responseData = response;
735
+ if (headers) {
736
+ responseData = response[0];
737
+ }
738
+
678
739
  const {
679
740
  error: res_error,
680
- } = ConfigurationModel.AppFeatureResponse().validate(response, {
681
- abortEarly: false,
682
- allowUnknown: false,
683
- });
741
+ } = ConfigurationApplicationModel.AppFeatureResponse().validate(
742
+ responseData,
743
+ { abortEarly: false, allowUnknown: false }
744
+ );
684
745
 
685
746
  if (res_error) {
686
747
  Logger({
687
748
  level: "WARN",
688
- message: "Response Validation Warnnings for getFeatures",
749
+ message: `Response Validation Warnnings for application > Configuration > getFeatures \n ${res_error}`,
689
750
  });
690
- Logger({ level: "WARN", message: res_error });
691
751
  }
692
752
 
693
753
  return response;
694
754
  }
695
755
 
696
756
  /**
697
- * @param {Object} arg - Arg object.
698
- * @returns {Promise<AppTokenResponse>} - Success response
757
+ * @param {import("../ApplicationAPIClient").Options} - Options
758
+ * @returns {Promise<ConfigurationApplicationModel.AppTokenResponse>} -
759
+ * Success response
760
+ * @name getIntegrationTokens
699
761
  * @summary: Get integration tokens
700
- * @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key.
762
+ * @description: Use this API to retrieve the tokens used while integrating Firebase, MoEngage, Segment, GTM, Freshchat, Safetynet, Google Map and Facebook. **Note** - Token values are encrypted with AES encryption using a secret key. Kindly reach out to the developers for obtaining the secret key. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getIntegrationTokens/).
701
763
  */
702
- async getIntegrationTokens({} = {}) {
703
- const { error } = ConfigurationValidator.getIntegrationTokens().validate(
764
+ async getIntegrationTokens({ headers } = { headers: false }) {
765
+ const {
766
+ error,
767
+ } = ConfigurationApplicationValidator.getIntegrationTokens().validate(
704
768
  {},
705
769
  { abortEarly: false, allowUnknown: true }
706
770
  );
@@ -711,16 +775,15 @@ class Configuration {
711
775
  // Showing warrnings if extra unknown parameters are found
712
776
  const {
713
777
  error: warrning,
714
- } = ConfigurationValidator.getIntegrationTokens().validate(
778
+ } = ConfigurationApplicationValidator.getIntegrationTokens().validate(
715
779
  {},
716
780
  { abortEarly: false, allowUnknown: false }
717
781
  );
718
782
  if (warrning) {
719
783
  Logger({
720
784
  level: "WARN",
721
- message: "Parameter Validation warrnings for getIntegrationTokens",
785
+ message: `Parameter Validation warrnings for application > Configuration > getIntegrationTokens \n ${warrning}`,
722
786
  });
723
- Logger({ level: "WARN", message: warrning });
724
787
  }
725
788
 
726
789
  const query_params = {};
@@ -736,35 +799,42 @@ class Configuration {
736
799
  }),
737
800
  query_params,
738
801
  undefined,
739
- xHeaders
802
+ xHeaders,
803
+ { headers }
740
804
  );
741
805
 
806
+ let responseData = response;
807
+ if (headers) {
808
+ responseData = response[0];
809
+ }
810
+
742
811
  const {
743
812
  error: res_error,
744
- } = ConfigurationModel.AppTokenResponse().validate(response, {
745
- abortEarly: false,
746
- allowUnknown: false,
747
- });
813
+ } = ConfigurationApplicationModel.AppTokenResponse().validate(
814
+ responseData,
815
+ { abortEarly: false, allowUnknown: false }
816
+ );
748
817
 
749
818
  if (res_error) {
750
819
  Logger({
751
820
  level: "WARN",
752
- message: "Response Validation Warnnings for getIntegrationTokens",
821
+ message: `Response Validation Warnnings for application > Configuration > getIntegrationTokens \n ${res_error}`,
753
822
  });
754
- Logger({ level: "WARN", message: res_error });
755
823
  }
756
824
 
757
825
  return response;
758
826
  }
759
827
 
760
828
  /**
761
- * @param {Object} arg - Arg object.
762
- * @returns {Promise<LanguageResponse>} - Success response
829
+ * @param {import("../ApplicationAPIClient").Options} - Options
830
+ * @returns {Promise<ConfigurationApplicationModel.LanguageResponse>} -
831
+ * Success response
832
+ * @name getLanguages
763
833
  * @summary: Get list of languages
764
- * @description: Use this API to get a list of languages supported in the application
834
+ * @description: Use this API to get a list of languages supported in the application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getLanguages/).
765
835
  */
766
- async getLanguages({} = {}) {
767
- const { error } = ConfigurationValidator.getLanguages().validate(
836
+ async getLanguages({ headers } = { headers: false }) {
837
+ const { error } = ConfigurationApplicationValidator.getLanguages().validate(
768
838
  {},
769
839
  { abortEarly: false, allowUnknown: true }
770
840
  );
@@ -773,16 +843,17 @@ class Configuration {
773
843
  }
774
844
 
775
845
  // Showing warrnings if extra unknown parameters are found
776
- const { error: warrning } = ConfigurationValidator.getLanguages().validate(
846
+ const {
847
+ error: warrning,
848
+ } = ConfigurationApplicationValidator.getLanguages().validate(
777
849
  {},
778
850
  { abortEarly: false, allowUnknown: false }
779
851
  );
780
852
  if (warrning) {
781
853
  Logger({
782
854
  level: "WARN",
783
- message: "Parameter Validation warrnings for getLanguages",
855
+ message: `Parameter Validation warrnings for application > Configuration > getLanguages \n ${warrning}`,
784
856
  });
785
- Logger({ level: "WARN", message: warrning });
786
857
  }
787
858
 
788
859
  const query_params = {};
@@ -798,36 +869,51 @@ class Configuration {
798
869
  }),
799
870
  query_params,
800
871
  undefined,
801
- xHeaders
872
+ xHeaders,
873
+ { headers }
802
874
  );
803
875
 
876
+ let responseData = response;
877
+ if (headers) {
878
+ responseData = response[0];
879
+ }
880
+
804
881
  const {
805
882
  error: res_error,
806
- } = ConfigurationModel.LanguageResponse().validate(response, {
807
- abortEarly: false,
808
- allowUnknown: false,
809
- });
883
+ } = ConfigurationApplicationModel.LanguageResponse().validate(
884
+ responseData,
885
+ { abortEarly: false, allowUnknown: false }
886
+ );
810
887
 
811
888
  if (res_error) {
812
889
  Logger({
813
890
  level: "WARN",
814
- message: "Response Validation Warnnings for getLanguages",
891
+ message: `Response Validation Warnnings for application > Configuration > getLanguages \n ${res_error}`,
815
892
  });
816
- Logger({ level: "WARN", message: res_error });
817
893
  }
818
894
 
819
895
  return response;
820
896
  }
821
897
 
822
898
  /**
823
- * @param {Object} arg - Arg object.
824
- * @param {OrderingStoreSelectRequest} arg.body
825
- * @returns {Promise<SuccessMessageResponse>} - Success response
899
+ * @param {ConfigurationApplicationValidator.GetOrderingStoreCookieParam} arg
900
+ * - Arg object.
901
+ *
902
+ * @param {import("../ApplicationAPIClient").Options} - Options
903
+ * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
904
+ * - Success response
905
+ *
906
+ * @name getOrderingStoreCookie
826
907
  * @summary: Get an Ordering Store signed cookie on selection of ordering store.
827
- * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart.
908
+ * @description: Use this API to get an Ordering Store signed cookie upon selecting an ordering store. This will be used by the cart service to verify a coupon against the selected ordering store in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStoreCookie/).
828
909
  */
829
- async getOrderingStoreCookie({ body } = {}) {
830
- const { error } = ConfigurationValidator.getOrderingStoreCookie().validate(
910
+ async getOrderingStoreCookie(
911
+ { body } = {},
912
+ { headers } = { headers: false }
913
+ ) {
914
+ const {
915
+ error,
916
+ } = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
831
917
  { body },
832
918
  { abortEarly: false, allowUnknown: true }
833
919
  );
@@ -838,16 +924,15 @@ class Configuration {
838
924
  // Showing warrnings if extra unknown parameters are found
839
925
  const {
840
926
  error: warrning,
841
- } = ConfigurationValidator.getOrderingStoreCookie().validate(
927
+ } = ConfigurationApplicationValidator.getOrderingStoreCookie().validate(
842
928
  { body },
843
929
  { abortEarly: false, allowUnknown: false }
844
930
  );
845
931
  if (warrning) {
846
932
  Logger({
847
933
  level: "WARN",
848
- message: "Parameter Validation warrnings for getOrderingStoreCookie",
934
+ message: `Parameter Validation warrnings for application > Configuration > getOrderingStoreCookie \n ${warrning}`,
849
935
  });
850
- Logger({ level: "WARN", message: warrning });
851
936
  }
852
937
 
853
938
  const query_params = {};
@@ -863,40 +948,47 @@ class Configuration {
863
948
  }),
864
949
  query_params,
865
950
  body,
866
- xHeaders
951
+ xHeaders,
952
+ { headers }
867
953
  );
868
954
 
955
+ let responseData = response;
956
+ if (headers) {
957
+ responseData = response[0];
958
+ }
959
+
869
960
  const {
870
961
  error: res_error,
871
- } = ConfigurationModel.SuccessMessageResponse().validate(response, {
872
- abortEarly: false,
873
- allowUnknown: false,
874
- });
962
+ } = ConfigurationApplicationModel.SuccessMessageResponse().validate(
963
+ responseData,
964
+ { abortEarly: false, allowUnknown: false }
965
+ );
875
966
 
876
967
  if (res_error) {
877
968
  Logger({
878
969
  level: "WARN",
879
- message: "Response Validation Warnnings for getOrderingStoreCookie",
970
+ message: `Response Validation Warnnings for application > Configuration > getOrderingStoreCookie \n ${res_error}`,
880
971
  });
881
- Logger({ level: "WARN", message: res_error });
882
972
  }
883
973
 
884
974
  return response;
885
975
  }
886
976
 
887
977
  /**
888
- * @param {Object} arg - Arg object.
889
- * @param {number} [arg.pageNo] - The page number to navigate through the
890
- * given set of results. Default value is 1.
891
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
892
- * page. Default value is 10.
893
- * @param {string} [arg.q] - Store code or name of the ordering store.
894
- * @returns {Promise<OrderingStores>} - Success response
978
+ * @param {ConfigurationApplicationValidator.GetOrderingStoresParam} arg - Arg object.
979
+ * @param {import("../ApplicationAPIClient").Options} - Options
980
+ * @returns {Promise<ConfigurationApplicationModel.OrderingStores>} - Success response
981
+ * @name getOrderingStores
895
982
  * @summary: Get all deployment stores
896
- * @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders).
983
+ * @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOrderingStores/).
897
984
  */
898
- async getOrderingStores({ pageNo, pageSize, q } = {}) {
899
- const { error } = ConfigurationValidator.getOrderingStores().validate(
985
+ async getOrderingStores(
986
+ { pageNo, pageSize, q } = {},
987
+ { headers } = { headers: false }
988
+ ) {
989
+ const {
990
+ error,
991
+ } = ConfigurationApplicationValidator.getOrderingStores().validate(
900
992
  { pageNo, pageSize, q },
901
993
  { abortEarly: false, allowUnknown: true }
902
994
  );
@@ -907,16 +999,15 @@ class Configuration {
907
999
  // Showing warrnings if extra unknown parameters are found
908
1000
  const {
909
1001
  error: warrning,
910
- } = ConfigurationValidator.getOrderingStores().validate(
1002
+ } = ConfigurationApplicationValidator.getOrderingStores().validate(
911
1003
  { pageNo, pageSize, q },
912
1004
  { abortEarly: false, allowUnknown: false }
913
1005
  );
914
1006
  if (warrning) {
915
1007
  Logger({
916
1008
  level: "WARN",
917
- message: "Parameter Validation warrnings for getOrderingStores",
1009
+ message: `Parameter Validation warrnings for application > Configuration > getOrderingStores \n ${warrning}`,
918
1010
  });
919
- Logger({ level: "WARN", message: warrning });
920
1011
  }
921
1012
 
922
1013
  const query_params = {};
@@ -935,12 +1026,18 @@ class Configuration {
935
1026
  }),
936
1027
  query_params,
937
1028
  undefined,
938
- xHeaders
1029
+ xHeaders,
1030
+ { headers }
939
1031
  );
940
1032
 
1033
+ let responseData = response;
1034
+ if (headers) {
1035
+ responseData = response[0];
1036
+ }
1037
+
941
1038
  const {
942
1039
  error: res_error,
943
- } = ConfigurationModel.OrderingStores().validate(response, {
1040
+ } = ConfigurationApplicationModel.OrderingStores().validate(responseData, {
944
1041
  abortEarly: false,
945
1042
  allowUnknown: false,
946
1043
  });
@@ -948,9 +1045,8 @@ class Configuration {
948
1045
  if (res_error) {
949
1046
  Logger({
950
1047
  level: "WARN",
951
- message: "Response Validation Warnnings for getOrderingStores",
1048
+ message: `Response Validation Warnnings for application > Configuration > getOrderingStores \n ${res_error}`,
952
1049
  });
953
- Logger({ level: "WARN", message: res_error });
954
1050
  }
955
1051
 
956
1052
  return response;
@@ -961,6 +1057,7 @@ class Configuration {
961
1057
  * @param {number} [arg.pageSize] - The number of items to retrieve in each
962
1058
  * page. Default value is 10.
963
1059
  * @param {string} [arg.q] - Store code or name of the ordering store.
1060
+ * @returns {Paginator<ConfigurationApplicationModel.OrderingStores>}
964
1061
  * @summary: Get all deployment stores
965
1062
  * @description: Use this API to retrieve the details of all the deployment stores (the selling locations where the application will be utilized for placing orders).
966
1063
  */
@@ -986,13 +1083,16 @@ class Configuration {
986
1083
  }
987
1084
 
988
1085
  /**
989
- * @param {Object} arg - Arg object.
990
- * @returns {Promise<ApplicationAboutResponse>} - Success response
1086
+ * @param {import("../ApplicationAPIClient").Options} - Options
1087
+ * @returns {Promise<ConfigurationApplicationModel.ApplicationAboutResponse>}
1088
+ * - Success response
1089
+ *
1090
+ * @name getOwnerInfo
991
1091
  * @summary: Get sales channel, owner and seller information
992
- * @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number.
1092
+ * @description: Use this API to get the current sales channel details which includes channel name, description, banner, logo, favicon, domain details, etc. This API also retrieves the seller and owner information such as address, email address, and phone number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getOwnerInfo/).
993
1093
  */
994
- async getOwnerInfo({} = {}) {
995
- const { error } = ConfigurationValidator.getOwnerInfo().validate(
1094
+ async getOwnerInfo({ headers } = { headers: false }) {
1095
+ const { error } = ConfigurationApplicationValidator.getOwnerInfo().validate(
996
1096
  {},
997
1097
  { abortEarly: false, allowUnknown: true }
998
1098
  );
@@ -1001,16 +1101,17 @@ class Configuration {
1001
1101
  }
1002
1102
 
1003
1103
  // Showing warrnings if extra unknown parameters are found
1004
- const { error: warrning } = ConfigurationValidator.getOwnerInfo().validate(
1104
+ const {
1105
+ error: warrning,
1106
+ } = ConfigurationApplicationValidator.getOwnerInfo().validate(
1005
1107
  {},
1006
1108
  { abortEarly: false, allowUnknown: false }
1007
1109
  );
1008
1110
  if (warrning) {
1009
1111
  Logger({
1010
1112
  level: "WARN",
1011
- message: "Parameter Validation warrnings for getOwnerInfo",
1113
+ message: `Parameter Validation warrnings for application > Configuration > getOwnerInfo \n ${warrning}`,
1012
1114
  });
1013
- Logger({ level: "WARN", message: warrning });
1014
1115
  }
1015
1116
 
1016
1117
  const query_params = {};
@@ -1026,36 +1127,45 @@ class Configuration {
1026
1127
  }),
1027
1128
  query_params,
1028
1129
  undefined,
1029
- xHeaders
1130
+ xHeaders,
1131
+ { headers }
1030
1132
  );
1031
1133
 
1134
+ let responseData = response;
1135
+ if (headers) {
1136
+ responseData = response[0];
1137
+ }
1138
+
1032
1139
  const {
1033
1140
  error: res_error,
1034
- } = ConfigurationModel.ApplicationAboutResponse().validate(response, {
1035
- abortEarly: false,
1036
- allowUnknown: false,
1037
- });
1141
+ } = ConfigurationApplicationModel.ApplicationAboutResponse().validate(
1142
+ responseData,
1143
+ { abortEarly: false, allowUnknown: false }
1144
+ );
1038
1145
 
1039
1146
  if (res_error) {
1040
1147
  Logger({
1041
1148
  level: "WARN",
1042
- message: "Response Validation Warnnings for getOwnerInfo",
1149
+ message: `Response Validation Warnnings for application > Configuration > getOwnerInfo \n ${res_error}`,
1043
1150
  });
1044
- Logger({ level: "WARN", message: res_error });
1045
1151
  }
1046
1152
 
1047
1153
  return response;
1048
1154
  }
1049
1155
 
1050
1156
  /**
1051
- * @param {Object} arg - Arg object.
1052
- * @param {number} arg.storeId - Store uid
1053
- * @returns {Promise<OrderingStore>} - Success response
1157
+ * @param {ConfigurationApplicationValidator.GetStoreDetailByIdParam} arg -
1158
+ * Arg object.
1159
+ * @param {import("../ApplicationAPIClient").Options} - Options
1160
+ * @returns {Promise<ConfigurationApplicationModel.OrderingStore>} - Success response
1161
+ * @name getStoreDetailById
1054
1162
  * @summary: Get ordering store details
1055
- * @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders).
1163
+ * @description: Use this API to retrieve the details of given stores uid (the selling locations where the application will be utilized for placing orders). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/getStoreDetailById/).
1056
1164
  */
1057
- async getStoreDetailById({ storeId } = {}) {
1058
- const { error } = ConfigurationValidator.getStoreDetailById().validate(
1165
+ async getStoreDetailById({ storeId } = {}, { headers } = { headers: false }) {
1166
+ const {
1167
+ error,
1168
+ } = ConfigurationApplicationValidator.getStoreDetailById().validate(
1059
1169
  { storeId },
1060
1170
  { abortEarly: false, allowUnknown: true }
1061
1171
  );
@@ -1066,16 +1176,15 @@ class Configuration {
1066
1176
  // Showing warrnings if extra unknown parameters are found
1067
1177
  const {
1068
1178
  error: warrning,
1069
- } = ConfigurationValidator.getStoreDetailById().validate(
1179
+ } = ConfigurationApplicationValidator.getStoreDetailById().validate(
1070
1180
  { storeId },
1071
1181
  { abortEarly: false, allowUnknown: false }
1072
1182
  );
1073
1183
  if (warrning) {
1074
1184
  Logger({
1075
1185
  level: "WARN",
1076
- message: "Parameter Validation warrnings for getStoreDetailById",
1186
+ message: `Parameter Validation warrnings for application > Configuration > getStoreDetailById \n ${warrning}`,
1077
1187
  });
1078
- Logger({ level: "WARN", message: warrning });
1079
1188
  }
1080
1189
 
1081
1190
  const query_params = {};
@@ -1091,12 +1200,18 @@ class Configuration {
1091
1200
  }),
1092
1201
  query_params,
1093
1202
  undefined,
1094
- xHeaders
1203
+ xHeaders,
1204
+ { headers }
1095
1205
  );
1096
1206
 
1207
+ let responseData = response;
1208
+ if (headers) {
1209
+ responseData = response[0];
1210
+ }
1211
+
1097
1212
  const {
1098
1213
  error: res_error,
1099
- } = ConfigurationModel.OrderingStore().validate(response, {
1214
+ } = ConfigurationApplicationModel.OrderingStore().validate(responseData, {
1100
1215
  abortEarly: false,
1101
1216
  allowUnknown: false,
1102
1217
  });
@@ -1104,24 +1219,26 @@ class Configuration {
1104
1219
  if (res_error) {
1105
1220
  Logger({
1106
1221
  level: "WARN",
1107
- message: "Response Validation Warnnings for getStoreDetailById",
1222
+ message: `Response Validation Warnnings for application > Configuration > getStoreDetailById \n ${res_error}`,
1108
1223
  });
1109
- Logger({ level: "WARN", message: res_error });
1110
1224
  }
1111
1225
 
1112
1226
  return response;
1113
1227
  }
1114
1228
 
1115
1229
  /**
1116
- * @param {Object} arg - Arg object.
1117
- * @returns {Promise<SuccessMessageResponse>} - Success response
1230
+ * @param {import("../ApplicationAPIClient").Options} - Options
1231
+ * @returns {Promise<ConfigurationApplicationModel.SuccessMessageResponse>}
1232
+ * - Success response
1233
+ *
1234
+ * @name removeOrderingStoreCookie
1118
1235
  * @summary: Unset the Ordering Store signed cookie.
1119
- * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app.
1236
+ * @description: Use this API to unset the Ordering Store cookie upon changing the sales channel, by its domain URL, in the Universal Fynd Store app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/configuration/removeOrderingStoreCookie/).
1120
1237
  */
1121
- async removeOrderingStoreCookie({} = {}) {
1238
+ async removeOrderingStoreCookie({ headers } = { headers: false }) {
1122
1239
  const {
1123
1240
  error,
1124
- } = ConfigurationValidator.removeOrderingStoreCookie().validate(
1241
+ } = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
1125
1242
  {},
1126
1243
  { abortEarly: false, allowUnknown: true }
1127
1244
  );
@@ -1132,16 +1249,15 @@ class Configuration {
1132
1249
  // Showing warrnings if extra unknown parameters are found
1133
1250
  const {
1134
1251
  error: warrning,
1135
- } = ConfigurationValidator.removeOrderingStoreCookie().validate(
1252
+ } = ConfigurationApplicationValidator.removeOrderingStoreCookie().validate(
1136
1253
  {},
1137
1254
  { abortEarly: false, allowUnknown: false }
1138
1255
  );
1139
1256
  if (warrning) {
1140
1257
  Logger({
1141
1258
  level: "WARN",
1142
- message: "Parameter Validation warrnings for removeOrderingStoreCookie",
1259
+ message: `Parameter Validation warrnings for application > Configuration > removeOrderingStoreCookie \n ${warrning}`,
1143
1260
  });
1144
- Logger({ level: "WARN", message: warrning });
1145
1261
  }
1146
1262
 
1147
1263
  const query_params = {};
@@ -1157,22 +1273,27 @@ class Configuration {
1157
1273
  }),
1158
1274
  query_params,
1159
1275
  undefined,
1160
- xHeaders
1276
+ xHeaders,
1277
+ { headers }
1161
1278
  );
1162
1279
 
1280
+ let responseData = response;
1281
+ if (headers) {
1282
+ responseData = response[0];
1283
+ }
1284
+
1163
1285
  const {
1164
1286
  error: res_error,
1165
- } = ConfigurationModel.SuccessMessageResponse().validate(response, {
1166
- abortEarly: false,
1167
- allowUnknown: false,
1168
- });
1287
+ } = ConfigurationApplicationModel.SuccessMessageResponse().validate(
1288
+ responseData,
1289
+ { abortEarly: false, allowUnknown: false }
1290
+ );
1169
1291
 
1170
1292
  if (res_error) {
1171
1293
  Logger({
1172
1294
  level: "WARN",
1173
- message: "Response Validation Warnnings for removeOrderingStoreCookie",
1295
+ message: `Response Validation Warnnings for application > Configuration > removeOrderingStoreCookie \n ${res_error}`,
1174
1296
  });
1175
- Logger({ level: "WARN", message: res_error });
1176
1297
  }
1177
1298
 
1178
1299
  return response;