@lcdp/api-react-rest-client 1.3.17-react-codegen.2748 → 1.3.17-react-codegen.2749

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 (588) hide show
  1. package/auth/dist/apis/AuthApi.js +113 -213
  2. package/auth/dist/apis/ManageApiKeyApi.js +127 -227
  3. package/auth/dist/apis/SearchApiKeyApi.js +124 -207
  4. package/auth/dist/models/AnonymousUser.js +3 -14
  5. package/auth/dist/models/AnonymousUserAllOf.js +1 -1
  6. package/auth/dist/models/AnyAuthenticationCredential.js +10 -21
  7. package/auth/dist/models/AnyUser.js +6 -17
  8. package/auth/dist/models/ApiKey.js +2 -2
  9. package/auth/dist/models/ApiKeyCredential.js +3 -14
  10. package/auth/dist/models/DisposableCredential.js +3 -14
  11. package/auth/dist/models/DisposableTokenCreationParameters.js +1 -1
  12. package/auth/dist/models/IdentifiedUser.js +3 -14
  13. package/auth/dist/models/IdentifiedUserAllOf.js +1 -1
  14. package/auth/dist/models/LoginCredential.js +3 -14
  15. package/auth/dist/models/PaginatedApiKeys.js +4 -15
  16. package/auth/dist/models/PaginatedApiKeysAllOf.js +1 -1
  17. package/auth/dist/models/PaginatedObject.js +1 -1
  18. package/auth/dist/models/RefreshCredential.js +3 -14
  19. package/auth/dist/models/RevealedApiKey.js +4 -15
  20. package/auth/dist/models/RevealedApiKeyAllOf.js +1 -1
  21. package/auth/dist/models/UserLink.js +5 -16
  22. package/auth/dist/models/UserLinkAllOf.js +2 -2
  23. package/auth/dist/models/UserLinkAllOfCompany.js +1 -1
  24. package/auth/dist/runtime.js +153 -329
  25. package/banking-operation/dist/apis/ManageLevyApi.js +95 -178
  26. package/banking-operation/dist/apis/ManageOrderPaymentApi.js +104 -187
  27. package/banking-operation/dist/apis/SearchLevyApi.js +124 -207
  28. package/banking-operation/dist/apis/SearchOrderPaymentApi.js +58 -122
  29. package/banking-operation/dist/models/Levy.js +4 -4
  30. package/banking-operation/dist/models/LevyCreationParameters.js +2 -2
  31. package/banking-operation/dist/models/LevyPayment.js +2 -2
  32. package/banking-operation/dist/models/LevyUpdateParameters.js +2 -2
  33. package/banking-operation/dist/models/OrderLink.js +4 -15
  34. package/banking-operation/dist/models/OrderLinkAllOf.js +1 -1
  35. package/banking-operation/dist/models/OrderPayment.js +5 -5
  36. package/banking-operation/dist/models/OrderPaymentDeposit.js +2 -2
  37. package/banking-operation/dist/models/OrderPaymentWallets.js +2 -2
  38. package/banking-operation/dist/models/OrderPaymentWithdraw.js +2 -2
  39. package/banking-operation/dist/models/PaginatedLevies.js +4 -15
  40. package/banking-operation/dist/models/PaginatedLeviesAllOf.js +1 -1
  41. package/banking-operation/dist/models/PaginatedObject.js +1 -1
  42. package/banking-operation/dist/models/PaginatedOrderPayments.js +4 -15
  43. package/banking-operation/dist/models/PaginatedOrderPaymentsAllOf.js +1 -1
  44. package/banking-operation/dist/models/Transaction.js +2 -2
  45. package/banking-operation/dist/models/TransactionMangopayTarget.js +4 -15
  46. package/banking-operation/dist/models/TransactionMangopayTargetAllOf.js +1 -1
  47. package/banking-operation/dist/models/UserLink.js +5 -16
  48. package/banking-operation/dist/models/UserLinkAllOf.js +2 -2
  49. package/banking-operation/dist/models/UserLinkAllOfCompany.js +1 -1
  50. package/banking-operation/dist/models/Wallet.js +2 -2
  51. package/banking-operation/dist/models/WalletMangopayTarget.js +4 -15
  52. package/banking-operation/dist/models/WalletMangopayTargetAllOf.js +1 -1
  53. package/banking-operation/dist/runtime.js +153 -329
  54. package/challenge/dist/apis/ManageChallengesApi.js +51 -115
  55. package/challenge/dist/models/Challenge.js +2 -2
  56. package/challenge/dist/models/ChallengeAction.js +1 -1
  57. package/challenge/dist/runtime.js +153 -329
  58. package/configuration/dist/apis/ManageVariableApi.js +42 -104
  59. package/configuration/dist/apis/ManageVatApi.js +88 -169
  60. package/configuration/dist/apis/SearchVariableApi.js +71 -154
  61. package/configuration/dist/apis/SearchVatApi.js +91 -174
  62. package/configuration/dist/models/Variable.js +1 -1
  63. package/configuration/dist/models/Vat.js +1 -1
  64. package/configuration/dist/runtime.js +153 -329
  65. package/content/dist/apis/ManageContentApi.js +54 -118
  66. package/content/dist/apis/SearchContentApi.js +39 -103
  67. package/content/dist/models/Content.js +1 -1
  68. package/content/dist/runtime.js +153 -329
  69. package/factory/dist/apis/ManageAssemblyApi.js +125 -205
  70. package/factory/dist/apis/ManageAssemblyOperationApi.js +54 -118
  71. package/factory/dist/apis/SearchAssemblyApi.js +220 -341
  72. package/factory/dist/apis/SearchAssemblyLineApi.js +91 -174
  73. package/factory/dist/apis/SearchAssemblyOperationApi.js +97 -180
  74. package/factory/dist/models/Assembly.js +5 -5
  75. package/factory/dist/models/AssemblyLine.js +1 -1
  76. package/factory/dist/models/AssemblyLineLink.js +4 -15
  77. package/factory/dist/models/AssemblyLineLinkAllOf.js +1 -1
  78. package/factory/dist/models/AssemblyOperation.js +3 -3
  79. package/factory/dist/models/PaginatedAssemblies.js +5 -16
  80. package/factory/dist/models/PaginatedAssembliesAllOf.js +2 -2
  81. package/factory/dist/models/PaginatedObject.js +1 -1
  82. package/factory/dist/models/UserLink.js +4 -15
  83. package/factory/dist/models/UserLinkAllOf.js +1 -1
  84. package/factory/dist/runtime.js +153 -329
  85. package/favorite/dist/apis/ManageFavoriteProductApi.js +190 -309
  86. package/favorite/dist/models/Barcodes.js +1 -1
  87. package/favorite/dist/models/FavoriteProduct.js +2 -2
  88. package/favorite/dist/models/PaginatedFavoriteProducts.js +4 -15
  89. package/favorite/dist/models/PaginatedFavoriteProductsAllOf.js +1 -1
  90. package/favorite/dist/models/PaginatedObject.js +1 -1
  91. package/favorite/dist/models/ProductLink.js +6 -17
  92. package/favorite/dist/models/ProductLinkAllOf.js +3 -3
  93. package/favorite/dist/models/UserLink.js +3 -14
  94. package/favorite/dist/runtime.js +153 -329
  95. package/geo/dist/apis/SearchCountryApi.js +49 -113
  96. package/geo/dist/runtime.js +153 -329
  97. package/inventory/dist/apis/ManageInventoryApi.js +166 -279
  98. package/inventory/dist/apis/SearchInventoryApi.js +571 -806
  99. package/inventory/dist/models/ActiveProduct.js +2 -2
  100. package/inventory/dist/models/ActiveProductUpdateParameters.js +1 -1
  101. package/inventory/dist/models/Barcodes.js +1 -1
  102. package/inventory/dist/models/MisalignedProduct.js +2 -2
  103. package/inventory/dist/models/OverstockProduct.js +2 -2
  104. package/inventory/dist/models/OverstockProductUpdateParameters.js +1 -1
  105. package/inventory/dist/models/PaginatedActiveProducts.js +4 -15
  106. package/inventory/dist/models/PaginatedActiveProductsAllOf.js +1 -1
  107. package/inventory/dist/models/PaginatedMisalignedProducts.js +4 -15
  108. package/inventory/dist/models/PaginatedMisalignedProductsAllOf.js +1 -1
  109. package/inventory/dist/models/PaginatedObject.js +1 -1
  110. package/inventory/dist/models/PaginatedOverstockProducts.js +4 -15
  111. package/inventory/dist/models/PaginatedOverstockProductsAllOf.js +1 -1
  112. package/inventory/dist/models/ProductLink.js +5 -16
  113. package/inventory/dist/models/ProductLinkAllOf.js +2 -2
  114. package/inventory/dist/models/Statistics.js +4 -4
  115. package/inventory/dist/models/StatisticsActiveProducts.js +1 -1
  116. package/inventory/dist/models/StatisticsMisalignedProducts.js +1 -1
  117. package/inventory/dist/models/StatisticsOverstockProducts.js +1 -1
  118. package/inventory/dist/models/Synchroneity.js +2 -2
  119. package/inventory/dist/models/SynchroneityOffisante.js +2 -2
  120. package/inventory/dist/models/SynchroneitySource.js +1 -1
  121. package/inventory/dist/runtime.js +153 -329
  122. package/invoice/dist/apis/ManageInvoiceApi.js +107 -190
  123. package/invoice/dist/apis/ManageInvoiceLineApi.js +85 -166
  124. package/invoice/dist/apis/ManageInvoicesSummaryApi.js +40 -102
  125. package/invoice/dist/apis/SearchInvoiceApi.js +118 -201
  126. package/invoice/dist/apis/SearchInvoiceLineApi.js +67 -131
  127. package/invoice/dist/apis/SearchOrderTallyApi.js +121 -204
  128. package/invoice/dist/models/Invoice.js +3 -3
  129. package/invoice/dist/models/InvoiceSummaryCreationParameters.js +1 -1
  130. package/invoice/dist/models/InvoiceUpdateParameters.js +1 -1
  131. package/invoice/dist/models/OrderLink.js +4 -15
  132. package/invoice/dist/models/OrderLinkAllOf.js +1 -1
  133. package/invoice/dist/models/OrderTally.js +4 -4
  134. package/invoice/dist/models/PaginatedInvoices.js +4 -15
  135. package/invoice/dist/models/PaginatedInvoicesAllOf.js +1 -1
  136. package/invoice/dist/models/PaginatedObject.js +1 -1
  137. package/invoice/dist/models/PaginatedOrderTallies.js +4 -15
  138. package/invoice/dist/models/PaginatedOrderTalliesAllOf.js +1 -1
  139. package/invoice/dist/models/PaginatedPlannedInvoiceLine.js +4 -15
  140. package/invoice/dist/models/PaginatedPlannedInvoiceLineAllOf.js +1 -1
  141. package/invoice/dist/models/PlannedInvoiceLine.js +1 -1
  142. package/invoice/dist/models/UserLink.js +5 -16
  143. package/invoice/dist/models/UserLinkAllOf.js +2 -2
  144. package/invoice/dist/models/UserLinkAllOfCompany.js +1 -1
  145. package/invoice/dist/runtime.js +153 -329
  146. package/laboratory/dist/apis/ManageLaboratoryApi.js +51 -115
  147. package/laboratory/dist/apis/SearchLaboratoryApi.js +109 -192
  148. package/laboratory/dist/models/Laboratory.js +1 -1
  149. package/laboratory/dist/models/PaginatedLaboratories.js +4 -15
  150. package/laboratory/dist/models/PaginatedLaboratoriesAllOf.js +1 -1
  151. package/laboratory/dist/models/PaginatedObject.js +1 -1
  152. package/laboratory/dist/runtime.js +153 -329
  153. package/laboratory-store/dist/apis/ManageLaboratoryStoreApi.js +95 -178
  154. package/laboratory-store/dist/apis/ManageLaboratoryStoreImageApi.js +212 -327
  155. package/laboratory-store/dist/apis/SearchLaboratoryStoreApi.js +112 -195
  156. package/laboratory-store/dist/models/Image.js +2 -2
  157. package/laboratory-store/dist/models/ImageVersions.js +1 -1
  158. package/laboratory-store/dist/models/LaboratoryStore.js +4 -4
  159. package/laboratory-store/dist/models/LaboratoryStoreUpdateParameters.js +3 -3
  160. package/laboratory-store/dist/models/OwnerLink.js +4 -15
  161. package/laboratory-store/dist/models/OwnerLinkAllOf.js +1 -1
  162. package/laboratory-store/dist/models/PaginatedLaboratoryStores.js +5 -16
  163. package/laboratory-store/dist/models/PaginatedLaboratoryStoresAllOf.js +2 -2
  164. package/laboratory-store/dist/models/PaginatedObject.js +1 -1
  165. package/laboratory-store/dist/runtime.js +153 -329
  166. package/laboratory-store-log/dist/apis/SearchLaboratoryStoreLogApi.js +70 -134
  167. package/laboratory-store-log/dist/models/AnyLaboratoryStoreLog.js +4 -15
  168. package/laboratory-store-log/dist/models/LaboratoryStoreLink.js +3 -14
  169. package/laboratory-store-log/dist/models/LaboratoryStoreLog.js +4 -15
  170. package/laboratory-store-log/dist/models/LaboratoryStoreLogAllOf.js +1 -1
  171. package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogs.js +4 -15
  172. package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogsAllOf.js +1 -1
  173. package/laboratory-store-log/dist/models/PaginatedObject.js +1 -1
  174. package/laboratory-store-log/dist/runtime.js +153 -329
  175. package/lexicon/dist/apis/ManageLexiconApi.js +85 -166
  176. package/lexicon/dist/apis/SearchLexiconApi.js +187 -308
  177. package/lexicon/dist/models/PaginatedObject.js +1 -1
  178. package/lexicon/dist/models/PaginatedTags.js +4 -15
  179. package/lexicon/dist/models/PaginatedTagsAllOf.js +1 -1
  180. package/lexicon/dist/models/PharmacyGroup.js +1 -1
  181. package/lexicon/dist/models/PharmacyLocation.js +1 -1
  182. package/lexicon/dist/models/PharmacySoftware.js +1 -1
  183. package/lexicon/dist/models/Tag.js +1 -1
  184. package/lexicon/dist/models/TagCreationParameters.js +1 -1
  185. package/lexicon/dist/runtime.js +153 -329
  186. package/litigation/dist/apis/ManageLitigationApi.js +40 -102
  187. package/litigation/dist/runtime.js +153 -329
  188. package/magic-cart/dist/apis/ManageExpressOrderApi.js +48 -112
  189. package/magic-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
  190. package/magic-cart/dist/models/Barcodes.js +1 -1
  191. package/magic-cart/dist/models/ExpressOrder.js +2 -2
  192. package/magic-cart/dist/models/ExpressOrderCreationParameters.js +2 -2
  193. package/magic-cart/dist/models/IdentifiedDistributionRange.js +3 -14
  194. package/magic-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
  195. package/magic-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
  196. package/magic-cart/dist/models/ProductLink.js +4 -15
  197. package/magic-cart/dist/models/ProductLinkAllOf.js +1 -1
  198. package/magic-cart/dist/models/SaleOfferLink.js +6 -17
  199. package/magic-cart/dist/models/SaleOfferLinkAllOf.js +3 -3
  200. package/magic-cart/dist/models/SaleOfferProposal.js +2 -2
  201. package/magic-cart/dist/models/SellerProposal.js +2 -2
  202. package/magic-cart/dist/models/Stock.js +1 -1
  203. package/magic-cart/dist/models/UnitaryDistributionMode.js +3 -14
  204. package/magic-cart/dist/models/UserLink.js +3 -14
  205. package/magic-cart/dist/runtime.js +153 -329
  206. package/mandate/dist/apis/ManageMandatesApi.js +171 -290
  207. package/mandate/dist/models/Challenge.js +2 -2
  208. package/mandate/dist/models/ChallengeAction.js +1 -1
  209. package/mandate/dist/models/Mandate.js +1 -1
  210. package/mandate/dist/models/MandateChallenge.js +3 -14
  211. package/mandate/dist/models/MandateCreationParameters.js +1 -1
  212. package/mandate/dist/runtime.js +153 -329
  213. package/mangopay-hook/dist/apis/MangopayHookApi.js +40 -102
  214. package/mangopay-hook/dist/runtime.js +153 -329
  215. package/message/dist/apis/ManageMessageApi.js +211 -345
  216. package/message/dist/apis/SearchMessageApi.js +157 -259
  217. package/message/dist/models/Message.js +1 -1
  218. package/message/dist/models/MessageUpdateParameters.js +1 -1
  219. package/message/dist/models/MessageViewerCreationParameters.js +1 -1
  220. package/message/dist/models/PaginatedMessages.js +4 -15
  221. package/message/dist/models/PaginatedMessagesAllOf.js +1 -1
  222. package/message/dist/models/PaginatedObject.js +1 -1
  223. package/message/dist/models/ViewerLink.js +3 -14
  224. package/message/dist/runtime.js +153 -329
  225. package/notification/dist/apis/ManageNotificationApi.js +96 -177
  226. package/notification/dist/apis/ManageNotificationTypeApi.js +158 -257
  227. package/notification/dist/apis/SearchNotificationApi.js +112 -195
  228. package/notification/dist/apis/SearchNotificationTypeApi.js +109 -192
  229. package/notification/dist/models/Notification.js +3 -3
  230. package/notification/dist/models/NotificationType.js +3 -3
  231. package/notification/dist/models/NotificationTypeAttachment.js +1 -1
  232. package/notification/dist/models/NotificationTypeAttachmentCreationParameters.js +1 -1
  233. package/notification/dist/models/NotificationTypeUpdateParameters.js +1 -1
  234. package/notification/dist/models/NotificationUpdateParameters.js +1 -1
  235. package/notification/dist/models/PaginatedNotificationTypes.js +5 -16
  236. package/notification/dist/models/PaginatedNotificationTypesAllOf.js +2 -2
  237. package/notification/dist/models/PaginatedNotifications.js +5 -16
  238. package/notification/dist/models/PaginatedNotificationsAllOf.js +2 -2
  239. package/notification/dist/models/PaginatedObject.js +1 -1
  240. package/notification/dist/runtime.js +153 -329
  241. package/order/dist/apis/ManageMetaOrderApi.js +90 -171
  242. package/order/dist/apis/ManageOrderApi.js +397 -603
  243. package/order/dist/apis/ManageOrderItemApi.js +234 -370
  244. package/order/dist/apis/SearchOrderApi.js +241 -362
  245. package/order/dist/apis/SearchOrderItemApi.js +241 -381
  246. package/order/dist/models/Address.js +1 -1
  247. package/order/dist/models/Anomalies.js +1 -1
  248. package/order/dist/models/Barcodes.js +1 -1
  249. package/order/dist/models/MetaOrder.js +4 -4
  250. package/order/dist/models/MetaOrderCreationParameters.js +1 -1
  251. package/order/dist/models/MetaOrderPrices.js +1 -1
  252. package/order/dist/models/MetaOrderWarning.js +1 -1
  253. package/order/dist/models/MetaOrderWithWarnings.js +3 -3
  254. package/order/dist/models/Order.js +8 -8
  255. package/order/dist/models/OrderItem.js +4 -4
  256. package/order/dist/models/OrderItemPrices.js +1 -1
  257. package/order/dist/models/OrderPrices.js +1 -1
  258. package/order/dist/models/OrderThreads.js +2 -2
  259. package/order/dist/models/OrderUpdateParameters.js +1 -1
  260. package/order/dist/models/PaginatedObject.js +1 -1
  261. package/order/dist/models/PaginatedOrders.js +4 -15
  262. package/order/dist/models/PaginatedOrdersAllOf.js +1 -1
  263. package/order/dist/models/ProductLink.js +6 -17
  264. package/order/dist/models/ProductLinkAllOf.js +3 -3
  265. package/order/dist/models/Reservation.js +3 -3
  266. package/order/dist/models/ReservationUpdateParameters.js +1 -1
  267. package/order/dist/models/SaleOfferLink.js +3 -14
  268. package/order/dist/models/ShoppedOffer.js +1 -1
  269. package/order/dist/models/ThreadLink.js +3 -14
  270. package/order/dist/models/UserLink.js +5 -16
  271. package/order/dist/models/UserLinkAllOf.js +2 -2
  272. package/order/dist/models/UserLinkAllOfCompany.js +1 -1
  273. package/order/dist/models/Vat.js +1 -1
  274. package/order/dist/runtime.js +153 -329
  275. package/order-log/dist/apis/SearchOrderLogApi.js +70 -134
  276. package/order-log/dist/models/AnyOrderLog.js +4 -15
  277. package/order-log/dist/models/OrderLink.js +3 -14
  278. package/order-log/dist/models/OrderLog.js +4 -15
  279. package/order-log/dist/models/OrderLogAllOf.js +1 -1
  280. package/order-log/dist/models/PaginatedObject.js +1 -1
  281. package/order-log/dist/models/PaginatedOrderLogs.js +4 -15
  282. package/order-log/dist/models/PaginatedOrderLogsAllOf.js +1 -1
  283. package/order-log/dist/runtime.js +153 -329
  284. package/outrage-message/dist/apis/ManageOutrageMessageApi.js +135 -235
  285. package/outrage-message/dist/apis/SearchOutrageMessageApi.js +106 -189
  286. package/outrage-message/dist/models/OutrageMessage.js +1 -1
  287. package/outrage-message/dist/models/OutrageMessageUpdateParameters.js +1 -1
  288. package/outrage-message/dist/models/PaginatedObject.js +1 -1
  289. package/outrage-message/dist/models/PaginatedOutrageMessages.js +5 -16
  290. package/outrage-message/dist/models/PaginatedOutrageMessagesAllOf.js +2 -2
  291. package/outrage-message/dist/runtime.js +153 -329
  292. package/package.json +1 -1
  293. package/product/dist/apis/ManageProductApi.js +101 -184
  294. package/product/dist/apis/ManageProductImageApi.js +98 -176
  295. package/product/dist/apis/ManageProductProscriptionApi.js +88 -169
  296. package/product/dist/apis/SearchProductApi.js +127 -210
  297. package/product/dist/apis/SearchProductImageApi.js +97 -180
  298. package/product/dist/apis/SearchProductMetadataApi.js +88 -171
  299. package/product/dist/apis/SearchProductProscriptionApi.js +58 -122
  300. package/product/dist/models/Barcodes.js +1 -1
  301. package/product/dist/models/Image.js +2 -2
  302. package/product/dist/models/ImageCreationParameters.js +1 -1
  303. package/product/dist/models/ImageVersions.js +1 -1
  304. package/product/dist/models/LaboratoryLink.js +4 -15
  305. package/product/dist/models/LaboratoryLinkAllOf.js +1 -1
  306. package/product/dist/models/PaginatedObject.js +1 -1
  307. package/product/dist/models/PaginatedProductProscriptions.js +4 -15
  308. package/product/dist/models/PaginatedProductProscriptionsAllOf.js +1 -1
  309. package/product/dist/models/PaginatedProducts.js +4 -15
  310. package/product/dist/models/PaginatedProductsAllOf.js +1 -1
  311. package/product/dist/models/Product.js +12 -12
  312. package/product/dist/models/ProductCreationOrUpdateParameters.js +5 -5
  313. package/product/dist/models/ProductProscription.js +1 -1
  314. package/product/dist/models/ProductProscriptionCreationParameters.js +1 -1
  315. package/product/dist/models/ProductSecondaryType.js +1 -1
  316. package/product/dist/models/ProductType.js +1 -1
  317. package/product/dist/models/Statistics.js +1 -1
  318. package/product/dist/models/Vat.js +1 -1
  319. package/product/dist/runtime.js +153 -329
  320. package/pub/dist/apis/ManagePubApi.js +168 -285
  321. package/pub/dist/apis/ManagePubImageApi.js +71 -134
  322. package/pub/dist/apis/SearchPubApi.js +178 -280
  323. package/pub/dist/models/Image.js +2 -2
  324. package/pub/dist/models/ImageVersions.js +1 -1
  325. package/pub/dist/models/PaginatedObject.js +1 -1
  326. package/pub/dist/models/PaginatedPubStatistics.js +4 -15
  327. package/pub/dist/models/PaginatedPubStatisticsAllOf.js +1 -1
  328. package/pub/dist/models/PaginatedPubs.js +4 -15
  329. package/pub/dist/models/PaginatedPubsAllOf.js +1 -1
  330. package/pub/dist/models/Pub.js +5 -5
  331. package/pub/dist/models/PubCreationParameters.js +4 -4
  332. package/pub/dist/models/PubImageParameters.js +1 -1
  333. package/pub/dist/models/PubSchedule.js +1 -1
  334. package/pub/dist/models/PubStatistics.js +2 -2
  335. package/pub/dist/models/PubTimecard.js +1 -1
  336. package/pub/dist/models/PubUpdateParameters.js +4 -4
  337. package/pub/dist/models/UserLink.js +5 -16
  338. package/pub/dist/models/UserLinkAllOf.js +2 -2
  339. package/pub/dist/models/UserLinkAllOfCompany.js +1 -1
  340. package/pub/dist/runtime.js +153 -329
  341. package/recommendation/dist/apis/ManageProductRecommendationFeedbackApi.js +51 -115
  342. package/recommendation/dist/apis/SearchProductPriceRecommendationApi.js +58 -122
  343. package/recommendation/dist/apis/SearchProductRecommendationApi.js +67 -131
  344. package/recommendation/dist/models/PaginatedObject.js +1 -1
  345. package/recommendation/dist/models/PaginatedProductPriceRecommendations.js +4 -15
  346. package/recommendation/dist/models/PaginatedProductPriceRecommendationsAllOf.js +1 -1
  347. package/recommendation/dist/models/PaginatedProductRecommendations.js +4 -15
  348. package/recommendation/dist/models/PaginatedProductRecommendationsAllOf.js +1 -1
  349. package/recommendation/dist/models/ProductLink.js +4 -15
  350. package/recommendation/dist/models/ProductLinkAllOf.js +1 -1
  351. package/recommendation/dist/models/ProductPriceRecommendation.js +2 -2
  352. package/recommendation/dist/models/ProductRecommendation.js +3 -3
  353. package/recommendation/dist/models/ProductRecommendationFeedback.js +3 -3
  354. package/recommendation/dist/models/UserLink.js +4 -15
  355. package/recommendation/dist/models/UserLinkAllOf.js +1 -1
  356. package/recommendation/dist/runtime.js +153 -329
  357. package/rfx/dist/apis/ManageRfiApi.js +43 -105
  358. package/rfx/dist/apis/ManageRfilApi.js +37 -99
  359. package/rfx/dist/apis/ManageRfoApi.js +37 -99
  360. package/rfx/dist/apis/ManageRfoiApi.js +101 -184
  361. package/rfx/dist/apis/SearchRfoiApi.js +67 -131
  362. package/rfx/dist/models/OrderLink.js +4 -15
  363. package/rfx/dist/models/OrderLinkAllOf.js +1 -1
  364. package/rfx/dist/models/PaginatedObject.js +1 -1
  365. package/rfx/dist/models/PaginatedRfois.js +4 -15
  366. package/rfx/dist/models/PaginatedRfoisAllOf.js +1 -1
  367. package/rfx/dist/models/RfiCreationParameters.js +1 -1
  368. package/rfx/dist/models/Rfoi.js +3 -3
  369. package/rfx/dist/models/RfoiUpdateParameters.js +1 -1
  370. package/rfx/dist/models/UserLink.js +5 -16
  371. package/rfx/dist/models/UserLinkAllOf.js +2 -2
  372. package/rfx/dist/models/UserLinkAllOfCompany.js +1 -1
  373. package/rfx/dist/runtime.js +153 -329
  374. package/sale-offer/dist/apis/ManageSaleOfferApi.js +181 -298
  375. package/sale-offer/dist/apis/ManageSaleOfferStatusApi.js +54 -118
  376. package/sale-offer/dist/apis/SearchSaleOfferApi.js +154 -237
  377. package/sale-offer/dist/models/AnyDistributionMode.js +8 -19
  378. package/sale-offer/dist/models/AnyIdentifiedDistributionMode.js +8 -19
  379. package/sale-offer/dist/models/Barcodes.js +1 -1
  380. package/sale-offer/dist/models/IdentifiedDistributionRange.js +3 -14
  381. package/sale-offer/dist/models/IdentifiedRangeDistributionMode.js +4 -15
  382. package/sale-offer/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
  383. package/sale-offer/dist/models/ImageVersions.js +1 -1
  384. package/sale-offer/dist/models/Images.js +2 -2
  385. package/sale-offer/dist/models/OwnerLink.js +5 -16
  386. package/sale-offer/dist/models/OwnerLinkAllOf.js +2 -2
  387. package/sale-offer/dist/models/OwnerLinkAllOfCompany.js +1 -1
  388. package/sale-offer/dist/models/PaginatedObject.js +1 -1
  389. package/sale-offer/dist/models/PaginatedSaleOffers.js +4 -15
  390. package/sale-offer/dist/models/PaginatedSaleOffersAllOf.js +1 -1
  391. package/sale-offer/dist/models/ProductImageLink.js +5 -16
  392. package/sale-offer/dist/models/ProductImageLinkAllOf.js +2 -2
  393. package/sale-offer/dist/models/ProductLink.js +5 -16
  394. package/sale-offer/dist/models/ProductLinkAllOf.js +2 -2
  395. package/sale-offer/dist/models/RangeDistributionMode.js +4 -15
  396. package/sale-offer/dist/models/RangeDistributionModeAllOf.js +1 -1
  397. package/sale-offer/dist/models/SaleOffer.js +9 -9
  398. package/sale-offer/dist/models/SaleOfferCreationImagesParameters.js +1 -1
  399. package/sale-offer/dist/models/SaleOfferCreationParameters.js +4 -4
  400. package/sale-offer/dist/models/SaleOfferJournal.js +1 -1
  401. package/sale-offer/dist/models/SaleOfferNewVersionParameters.js +4 -4
  402. package/sale-offer/dist/models/SaleOfferStatisticLink.js +4 -15
  403. package/sale-offer/dist/models/SaleOfferStatisticLinkAllOf.js +1 -1
  404. package/sale-offer/dist/models/Stock.js +1 -1
  405. package/sale-offer/dist/models/UnitaryDistributionMode.js +3 -14
  406. package/sale-offer/dist/runtime.js +153 -329
  407. package/sale-offer-log/dist/apis/SearchSaleOfferLogApi.js +70 -134
  408. package/sale-offer-log/dist/models/AnySaleOfferLog.js +4 -15
  409. package/sale-offer-log/dist/models/PaginatedObject.js +1 -1
  410. package/sale-offer-log/dist/models/PaginatedSaleOfferLogs.js +4 -15
  411. package/sale-offer-log/dist/models/PaginatedSaleOfferLogsAllOf.js +1 -1
  412. package/sale-offer-log/dist/models/SaleOfferLink.js +3 -14
  413. package/sale-offer-log/dist/models/SaleOfferLog.js +4 -15
  414. package/sale-offer-log/dist/models/SaleOfferLogAllOf.js +1 -1
  415. package/sale-offer-log/dist/runtime.js +153 -329
  416. package/servant/dist/apis/ManageServantApi.js +25 -87
  417. package/servant/dist/apis/ManageTaskApi.js +37 -99
  418. package/servant/dist/apis/SearchServantApi.js +46 -110
  419. package/servant/dist/models/Servant.js +2 -2
  420. package/servant/dist/models/Task.js +1 -1
  421. package/servant/dist/runtime.js +153 -329
  422. package/shipment/dist/apis/ManageOrderCarriageApi.js +54 -118
  423. package/shipment/dist/apis/ManageShipmentApi.js +96 -179
  424. package/shipment/dist/apis/SearchOrderCarriageApi.js +103 -186
  425. package/shipment/dist/models/CancelParcelResponse.js +1 -1
  426. package/shipment/dist/models/DeliveryStatus.js +1 -1
  427. package/shipment/dist/models/OrderCarriage.js +3 -3
  428. package/shipment/dist/models/OrderCarriageShipmentCreationParameters.js +1 -1
  429. package/shipment/dist/models/OrderLink.js +4 -15
  430. package/shipment/dist/models/OrderLinkAllOf.js +1 -1
  431. package/shipment/dist/models/PaginatedObject.js +1 -1
  432. package/shipment/dist/models/PaginatedOrderCarriages.js +4 -15
  433. package/shipment/dist/models/PaginatedOrderCarriagesAllOf.js +1 -1
  434. package/shipment/dist/models/Shipment.js +3 -3
  435. package/shipment/dist/models/ShipmentCreationParameters.js +1 -1
  436. package/shipment/dist/models/ShipmentError.js +1 -1
  437. package/shipment/dist/models/ShipmentParcel.js +4 -4
  438. package/shipment/dist/models/SkybillLink.js +4 -15
  439. package/shipment/dist/models/SkybillLinkAllOf.js +1 -1
  440. package/shipment/dist/runtime.js +153 -329
  441. package/shopping-cart/dist/apis/ManageCartApi.js +88 -171
  442. package/shopping-cart/dist/apis/ManageCartSubCartApi.js +125 -225
  443. package/shopping-cart/dist/apis/ManageCartSubCartLineApi.js +226 -362
  444. package/shopping-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
  445. package/shopping-cart/dist/models/Barcodes.js +1 -1
  446. package/shopping-cart/dist/models/Cart.js +2 -2
  447. package/shopping-cart/dist/models/CartSubCart.js +4 -4
  448. package/shopping-cart/dist/models/CartSubCartLine.js +3 -3
  449. package/shopping-cart/dist/models/CartSubCartLineUpdateParameters.js +1 -1
  450. package/shopping-cart/dist/models/CartSubCartTransport.js +1 -1
  451. package/shopping-cart/dist/models/IdentifiedDistributionRange.js +3 -14
  452. package/shopping-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
  453. package/shopping-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
  454. package/shopping-cart/dist/models/ProductLink.js +5 -16
  455. package/shopping-cart/dist/models/ProductLinkAllOf.js +2 -2
  456. package/shopping-cart/dist/models/SaleOfferLink.js +7 -18
  457. package/shopping-cart/dist/models/SaleOfferLinkAllOf.js +4 -4
  458. package/shopping-cart/dist/models/SellerLink.js +5 -16
  459. package/shopping-cart/dist/models/SellerLinkAllOf.js +2 -2
  460. package/shopping-cart/dist/models/ShoppedOffer.js +1 -1
  461. package/shopping-cart/dist/models/Stock.js +1 -1
  462. package/shopping-cart/dist/models/UnitaryDistributionMode.js +3 -14
  463. package/shopping-cart/dist/runtime.js +153 -329
  464. package/statistic/dist/apis/SearchSaleOfferStatisticsApi.js +61 -125
  465. package/statistic/dist/models/PaginatedObject.js +1 -1
  466. package/statistic/dist/models/PaginatedSaleOfferStatistics.js +4 -15
  467. package/statistic/dist/models/PaginatedSaleOfferStatisticsAllOf.js +1 -1
  468. package/statistic/dist/models/SaleOfferStatistic.js +2 -2
  469. package/statistic/dist/models/UserLink.js +4 -15
  470. package/statistic/dist/models/UserLinkAllOf.js +1 -1
  471. package/statistic/dist/runtime.js +153 -329
  472. package/subscription/dist/apis/ManageSubscriptionApi.js +135 -235
  473. package/subscription/dist/apis/ManageSubscriptionPlanApi.js +54 -118
  474. package/subscription/dist/apis/SearchSubscriptionApi.js +82 -146
  475. package/subscription/dist/apis/SearchSubscriptionPlanApi.js +97 -180
  476. package/subscription/dist/apis/SearchSubscriptionPlanFeatureApi.js +46 -110
  477. package/subscription/dist/models/PaginatedObject.js +1 -1
  478. package/subscription/dist/models/PaginatedSubscriptions.js +5 -16
  479. package/subscription/dist/models/PaginatedSubscriptionsAllOf.js +2 -2
  480. package/subscription/dist/models/SubscriberLink.js +4 -15
  481. package/subscription/dist/models/SubscriberLinkAllOf.js +1 -1
  482. package/subscription/dist/models/Subscription.js +3 -3
  483. package/subscription/dist/models/SubscriptionCreationParameters.js +1 -1
  484. package/subscription/dist/models/SubscriptionPlan.js +3 -3
  485. package/subscription/dist/models/SubscriptionPlanFeature.js +2 -2
  486. package/subscription/dist/models/SubscriptionPlanLink.js +5 -16
  487. package/subscription/dist/models/SubscriptionPlanLinkAllOf.js +2 -2
  488. package/subscription/dist/models/SubscriptionPlanUpdateParameters.js +2 -2
  489. package/subscription/dist/models/SubscriptionUpdateParameters.js +2 -2
  490. package/subscription/dist/runtime.js +153 -329
  491. package/thread/dist/apis/ManageThreadCommentApi.js +107 -190
  492. package/thread/dist/apis/SearchThreadApi.js +49 -113
  493. package/thread/dist/apis/SearchThreadCommentApi.js +58 -122
  494. package/thread/dist/models/AuthorLink.js +3 -14
  495. package/thread/dist/models/Comment.js +2 -2
  496. package/thread/dist/models/CommentCreationParameters.js +3 -14
  497. package/thread/dist/models/PaginatedComments.js +4 -15
  498. package/thread/dist/models/PaginatedCommentsAllOf.js +1 -1
  499. package/thread/dist/models/PaginatedObject.js +1 -1
  500. package/thread/dist/models/Thread.js +1 -1
  501. package/thread/dist/models/ThreadLink.js +3 -14
  502. package/thread/dist/runtime.js +153 -329
  503. package/ubo/dist/apis/ManageUboDeclarationApi.js +51 -115
  504. package/ubo/dist/apis/SearchUboDeclarationApi.js +49 -113
  505. package/ubo/dist/models/Address.js +2 -2
  506. package/ubo/dist/models/Ubo.js +3 -3
  507. package/ubo/dist/models/UboDeclaration.js +2 -2
  508. package/ubo/dist/models/UboDeclarationCreationOrUpdateParameters.js +2 -2
  509. package/ubo/dist/runtime.js +153 -329
  510. package/user/dist/apis/ManagePasswordApi.js +73 -152
  511. package/user/dist/apis/ManageUserApi.js +374 -595
  512. package/user/dist/apis/ManageUserBankAccountApi.js +101 -184
  513. package/user/dist/apis/ManageUserDocumentApi.js +198 -298
  514. package/user/dist/apis/ManageUserFavoriteLaboratoryStoreApi.js +150 -263
  515. package/user/dist/apis/ManageUserRestrictionApi.js +296 -477
  516. package/user/dist/apis/ManageUserRoleApi.js +54 -118
  517. package/user/dist/apis/ManageUserRuleApi.js +91 -172
  518. package/user/dist/apis/ManageUserSocialNetworksApi.js +101 -184
  519. package/user/dist/apis/ManageUserTransportApi.js +54 -118
  520. package/user/dist/apis/SearchUserApi.js +310 -469
  521. package/user/dist/apis/SearchUserDocumentApi.js +255 -410
  522. package/user/dist/apis/SearchUserFavoriteLaboratoryStoreApi.js +91 -174
  523. package/user/dist/apis/SearchUserFeatureApi.js +46 -110
  524. package/user/dist/apis/SearchUserRestrictionApi.js +181 -302
  525. package/user/dist/apis/SearchUserRuleApi.js +49 -113
  526. package/user/dist/apis/SearchUserSocialNetworksApi.js +91 -174
  527. package/user/dist/apis/SearchUserTransportApi.js +91 -174
  528. package/user/dist/models/Address.js +1 -1
  529. package/user/dist/models/MyPasswordUpdateParameters.js +1 -1
  530. package/user/dist/models/NotificationTypeLink.js +5 -16
  531. package/user/dist/models/NotificationTypeLinkAllOf.js +2 -2
  532. package/user/dist/models/PaginatedObject.js +1 -1
  533. package/user/dist/models/PaginatedUsers.js +5 -16
  534. package/user/dist/models/PaginatedUsersAllOf.js +2 -2
  535. package/user/dist/models/ProductTypeLink.js +4 -15
  536. package/user/dist/models/ProductTypeLinkAllOf.js +1 -1
  537. package/user/dist/models/SomeonePasswordUpdateParameters.js +1 -1
  538. package/user/dist/models/ThreadLink.js +3 -14
  539. package/user/dist/models/User.js +13 -13
  540. package/user/dist/models/UserBankAccountCreationParameters.js +1 -1
  541. package/user/dist/models/UserBankAccountLink.js +4 -15
  542. package/user/dist/models/UserBankAccountLinkAllOf.js +1 -1
  543. package/user/dist/models/UserCompany.js +3 -3
  544. package/user/dist/models/UserCreationParameters.js +2 -2
  545. package/user/dist/models/UserCustomCommissions.js +1 -1
  546. package/user/dist/models/UserCustomCommissionsUpdateParameters.js +1 -1
  547. package/user/dist/models/UserDelegatedServices.js +1 -1
  548. package/user/dist/models/UserDocument.js +2 -2
  549. package/user/dist/models/UserDocumentCreationParameters.js +1 -1
  550. package/user/dist/models/UserFavoriteLaboratoryStoreLink.js +4 -15
  551. package/user/dist/models/UserFavoriteLaboratoryStoreLinkAllOf.js +1 -1
  552. package/user/dist/models/UserFeature.js +1 -1
  553. package/user/dist/models/UserForbiddenSellerLink.js +4 -15
  554. package/user/dist/models/UserForbiddenSellerLinkAllOf.js +1 -1
  555. package/user/dist/models/UserJournal.js +1 -1
  556. package/user/dist/models/UserMangopayTarget.js +4 -15
  557. package/user/dist/models/UserMangopayTargetAllOf.js +1 -1
  558. package/user/dist/models/UserRestrictedNotificationTypeCreationParameter.js +1 -1
  559. package/user/dist/models/UserRule.js +4 -4
  560. package/user/dist/models/UserRuleCreationParameters.js +3 -3
  561. package/user/dist/models/UserSocialNetwork.js +1 -1
  562. package/user/dist/models/UserThreads.js +2 -2
  563. package/user/dist/models/UserUpdateParameters.js +6 -6
  564. package/user/dist/models/UserWalletLink.js +4 -15
  565. package/user/dist/models/UserWalletLinkAllOf.js +1 -1
  566. package/user/dist/models/UserWallets.js +2 -2
  567. package/user/dist/runtime.js +153 -329
  568. package/wish/dist/apis/ManageWishApi.js +113 -209
  569. package/wish/dist/apis/SearchProductEnthusiasmApi.js +61 -125
  570. package/wish/dist/apis/SearchWishApi.js +118 -201
  571. package/wish/dist/models/Barcodes.js +1 -1
  572. package/wish/dist/models/DesiredSellerLink.js +5 -16
  573. package/wish/dist/models/DesiredSellerLinkAllOf.js +2 -2
  574. package/wish/dist/models/OwnerLink.js +5 -16
  575. package/wish/dist/models/OwnerLinkAllOf.js +2 -2
  576. package/wish/dist/models/OwnerLinkAllOfCompany.js +1 -1
  577. package/wish/dist/models/PaginatedObject.js +1 -1
  578. package/wish/dist/models/PaginatedProductEnthusiasms.js +4 -15
  579. package/wish/dist/models/PaginatedProductEnthusiasmsAllOf.js +1 -1
  580. package/wish/dist/models/PaginatedWishes.js +4 -15
  581. package/wish/dist/models/PaginatedWishesAllOf.js +1 -1
  582. package/wish/dist/models/ProductEnthusiasm.js +2 -2
  583. package/wish/dist/models/ProductLink.js +5 -16
  584. package/wish/dist/models/ProductLinkAllOf.js +2 -2
  585. package/wish/dist/models/Wish.js +4 -4
  586. package/wish/dist/models/WishCreationParameters.js +1 -1
  587. package/wish/dist/models/WishUpdateParameters.js +2 -2
  588. package/wish/dist/runtime.js +153 -329
@@ -12,19 +12,6 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- extendStatics(d, b);
24
- function __() { this.constructor = d; }
25
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
26
- };
27
- })();
28
15
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
16
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
17
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -34,683 +21,475 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
21
  step((generator = generator.apply(thisArg, _arguments || [])).next());
35
22
  });
36
23
  };
37
- var __generator = (this && this.__generator) || function (thisArg, body) {
38
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
39
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
- function verb(n) { return function (v) { return step([n, v]); }; }
41
- function step(op) {
42
- if (f) throw new TypeError("Generator is already executing.");
43
- while (_) try {
44
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
45
- if (y = 0, t) op = [op[0] & 2, t.value];
46
- switch (op[0]) {
47
- case 0: case 1: t = op; break;
48
- case 4: _.label++; return { value: op[1], done: false };
49
- case 5: _.label++; y = op[1]; op = [0]; continue;
50
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
51
- default:
52
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
53
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
54
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
55
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
56
- if (t[2]) _.ops.pop();
57
- _.trys.pop(); continue;
58
- }
59
- op = body.call(thisArg, _);
60
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
61
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
62
- }
63
- };
64
24
  Object.defineProperty(exports, "__esModule", { value: true });
65
25
  exports.ManageUserApi = void 0;
66
- var runtime_1 = require("../runtime");
67
- var models_1 = require("../models");
26
+ const runtime_1 = require("../runtime");
27
+ const models_1 = require("../models");
68
28
  /**
69
29
  * no description
70
30
  */
71
- var ManageUserApi = /** @class */ (function (_super) {
72
- __extends(ManageUserApi, _super);
73
- function ManageUserApi() {
74
- return _super !== null && _super.apply(this, arguments) || this;
75
- }
31
+ class ManageUserApi extends runtime_1.BaseAPI {
76
32
  /**
77
33
  * Complete a request for password reset
78
34
  */
79
- ManageUserApi.prototype.completePasswordResetRaw = function (requestParameters) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var queryParameters, headerParameters, response, response_1;
82
- return __generator(this, function (_a) {
83
- switch (_a.label) {
84
- case 0:
85
- if (requestParameters.passwordResetCompletionParameters === null || requestParameters.passwordResetCompletionParameters === undefined) {
86
- throw new runtime_1.RequiredError('passwordResetCompletionParameters', 'Required parameter requestParameters.passwordResetCompletionParameters was null or undefined when calling completePasswordReset.');
87
- }
88
- queryParameters = {};
89
- if (requestParameters.token !== undefined) {
90
- queryParameters['token'] = requestParameters.token;
91
- }
92
- headerParameters = {};
93
- headerParameters['Content-Type'] = 'application/merge-patch+json';
94
- _a.label = 1;
95
- case 1:
96
- _a.trys.push([1, 3, , 4]);
97
- return [4 /*yield*/, this.request({
98
- path: "/users/password",
99
- method: 'PATCH',
100
- headers: headerParameters,
101
- query: queryParameters,
102
- body: models_1.PasswordResetCompletionParametersToJSON(requestParameters.passwordResetCompletionParameters),
103
- })];
104
- case 2:
105
- response = _a.sent();
106
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
107
- case 3:
108
- response_1 = _a.sent();
109
- console.debug(response_1);
110
- throw response_1;
111
- case 4: return [2 /*return*/];
112
- }
113
- });
35
+ completePasswordResetRaw(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters.passwordResetCompletionParameters === null || requestParameters.passwordResetCompletionParameters === undefined) {
38
+ throw new runtime_1.RequiredError('passwordResetCompletionParameters', 'Required parameter requestParameters.passwordResetCompletionParameters was null or undefined when calling completePasswordReset.');
39
+ }
40
+ const queryParameters = {};
41
+ if (requestParameters.token !== undefined) {
42
+ queryParameters['token'] = requestParameters.token;
43
+ }
44
+ const headerParameters = {};
45
+ headerParameters['Content-Type'] = 'application/merge-patch+json';
46
+ try {
47
+ const response = yield this.request({
48
+ path: `/users/password`,
49
+ method: 'PATCH',
50
+ headers: headerParameters,
51
+ query: queryParameters,
52
+ body: models_1.PasswordResetCompletionParametersToJSON(requestParameters.passwordResetCompletionParameters),
53
+ });
54
+ return new runtime_1.VoidApiResponse(response);
55
+ }
56
+ catch (response) {
57
+ console.debug(response);
58
+ throw response;
59
+ }
114
60
  });
115
- };
61
+ }
116
62
  /**
117
63
  * Complete a request for password reset
118
64
  */
119
- ManageUserApi.prototype.completePasswordReset = function (requestParameters) {
120
- return __awaiter(this, void 0, void 0, function () {
121
- return __generator(this, function (_a) {
122
- switch (_a.label) {
123
- case 0: return [4 /*yield*/, this.completePasswordResetRaw(requestParameters)];
124
- case 1:
125
- _a.sent();
126
- return [2 /*return*/];
127
- }
128
- });
65
+ completePasswordReset(requestParameters) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ yield this.completePasswordResetRaw(requestParameters);
129
68
  });
130
- };
69
+ }
131
70
  /**
132
71
  * Create a request for password reset
133
72
  */
134
- ManageUserApi.prototype.createPasswordResetRaw = function (requestParameters) {
135
- return __awaiter(this, void 0, void 0, function () {
136
- var queryParameters, headerParameters, response, response_2;
137
- return __generator(this, function (_a) {
138
- switch (_a.label) {
139
- case 0:
140
- if (requestParameters.passwordResetCreationParameters === null || requestParameters.passwordResetCreationParameters === undefined) {
141
- throw new runtime_1.RequiredError('passwordResetCreationParameters', 'Required parameter requestParameters.passwordResetCreationParameters was null or undefined when calling createPasswordReset.');
142
- }
143
- queryParameters = {};
144
- headerParameters = {};
145
- headerParameters['Content-Type'] = 'application/json';
146
- _a.label = 1;
147
- case 1:
148
- _a.trys.push([1, 3, , 4]);
149
- return [4 /*yield*/, this.request({
150
- path: "/users/password",
151
- method: 'POST',
152
- headers: headerParameters,
153
- query: queryParameters,
154
- body: models_1.PasswordResetCreationParametersToJSON(requestParameters.passwordResetCreationParameters),
155
- })];
156
- case 2:
157
- response = _a.sent();
158
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
159
- case 3:
160
- response_2 = _a.sent();
161
- console.debug(response_2);
162
- throw response_2;
163
- case 4: return [2 /*return*/];
164
- }
165
- });
73
+ createPasswordResetRaw(requestParameters) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ if (requestParameters.passwordResetCreationParameters === null || requestParameters.passwordResetCreationParameters === undefined) {
76
+ throw new runtime_1.RequiredError('passwordResetCreationParameters', 'Required parameter requestParameters.passwordResetCreationParameters was null or undefined when calling createPasswordReset.');
77
+ }
78
+ const queryParameters = {};
79
+ const headerParameters = {};
80
+ headerParameters['Content-Type'] = 'application/json';
81
+ try {
82
+ const response = yield this.request({
83
+ path: `/users/password`,
84
+ method: 'POST',
85
+ headers: headerParameters,
86
+ query: queryParameters,
87
+ body: models_1.PasswordResetCreationParametersToJSON(requestParameters.passwordResetCreationParameters),
88
+ });
89
+ return new runtime_1.VoidApiResponse(response);
90
+ }
91
+ catch (response) {
92
+ console.debug(response);
93
+ throw response;
94
+ }
166
95
  });
167
- };
96
+ }
168
97
  /**
169
98
  * Create a request for password reset
170
99
  */
171
- ManageUserApi.prototype.createPasswordReset = function (requestParameters) {
172
- return __awaiter(this, void 0, void 0, function () {
173
- return __generator(this, function (_a) {
174
- switch (_a.label) {
175
- case 0: return [4 /*yield*/, this.createPasswordResetRaw(requestParameters)];
176
- case 1:
177
- _a.sent();
178
- return [2 /*return*/];
179
- }
180
- });
100
+ createPasswordReset(requestParameters) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ yield this.createPasswordResetRaw(requestParameters);
181
103
  });
182
- };
104
+ }
183
105
  /**
184
106
  * Create a new user
185
107
  */
186
- ManageUserApi.prototype.createUserRaw = function (requestParameters) {
187
- return __awaiter(this, void 0, void 0, function () {
188
- var queryParameters, headerParameters, response, contentType, response_3;
189
- return __generator(this, function (_a) {
190
- switch (_a.label) {
191
- case 0:
192
- if (requestParameters.userCreationParameters === null || requestParameters.userCreationParameters === undefined) {
193
- throw new runtime_1.RequiredError('userCreationParameters', 'Required parameter requestParameters.userCreationParameters was null or undefined when calling createUser.');
194
- }
195
- queryParameters = {};
196
- headerParameters = {};
197
- headerParameters['Content-Type'] = 'application/json';
198
- if (this.configuration && this.configuration.apiKey) {
199
- headerParameters["x-recaptcha-token"] = this.configuration.apiKey("x-recaptcha-token"); // apiKeyCaptcha authentication
200
- }
201
- _a.label = 1;
202
- case 1:
203
- _a.trys.push([1, 3, , 4]);
204
- return [4 /*yield*/, this.request({
205
- path: "/users",
206
- method: 'POST',
207
- headers: headerParameters,
208
- query: queryParameters,
209
- body: models_1.UserCreationParametersToJSON(requestParameters.userCreationParameters),
210
- })];
211
- case 2:
212
- response = _a.sent();
213
- contentType = response.headers.get("content-type");
214
- if (contentType && contentType.indexOf("application/json") !== -1) {
215
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.UserFromJSON(jsonValue); })];
216
- }
217
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
218
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
219
- }
220
- else {
221
- // TODO : Better handling of others application types
222
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
223
- }
224
- return [3 /*break*/, 4];
225
- case 3:
226
- response_3 = _a.sent();
227
- console.debug(response_3);
228
- throw response_3;
229
- case 4: return [2 /*return*/];
108
+ createUserRaw(requestParameters) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ if (requestParameters.userCreationParameters === null || requestParameters.userCreationParameters === undefined) {
111
+ throw new runtime_1.RequiredError('userCreationParameters', 'Required parameter requestParameters.userCreationParameters was null or undefined when calling createUser.');
112
+ }
113
+ const queryParameters = {};
114
+ const headerParameters = {};
115
+ headerParameters['Content-Type'] = 'application/json';
116
+ if (this.configuration && this.configuration.apiKey) {
117
+ headerParameters["x-recaptcha-token"] = this.configuration.apiKey("x-recaptcha-token"); // apiKeyCaptcha authentication
118
+ }
119
+ try {
120
+ const response = yield this.request({
121
+ path: `/users`,
122
+ method: 'POST',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ body: models_1.UserCreationParametersToJSON(requestParameters.userCreationParameters),
126
+ });
127
+ const contentType = response.headers.get("content-type");
128
+ if (contentType && contentType.indexOf("application/json") !== -1) {
129
+ return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.UserFromJSON(jsonValue));
130
+ }
131
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
132
+ return new runtime_1.TextApiResponse(response);
230
133
  }
231
- });
134
+ else {
135
+ // TODO : Better handling of others application types
136
+ return new runtime_1.BlobWithMetaApiResponse(response);
137
+ }
138
+ }
139
+ catch (response) {
140
+ console.debug(response);
141
+ throw response;
142
+ }
232
143
  });
233
- };
144
+ }
234
145
  /**
235
146
  * Create a new user
236
147
  */
237
- ManageUserApi.prototype.createUser = function (requestParameters) {
238
- return __awaiter(this, void 0, void 0, function () {
239
- var response;
240
- return __generator(this, function (_a) {
241
- switch (_a.label) {
242
- case 0: return [4 /*yield*/, this.createUserRaw(requestParameters)];
243
- case 1:
244
- response = _a.sent();
245
- return [4 /*yield*/, response.value()];
246
- case 2: return [2 /*return*/, _a.sent()];
247
- }
248
- });
148
+ createUser(requestParameters) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const response = yield this.createUserRaw(requestParameters);
151
+ return yield response.value();
249
152
  });
250
- };
153
+ }
251
154
  /**
252
155
  * Delete user account
253
156
  */
254
- ManageUserApi.prototype.deleteCurrentUserRaw = function () {
255
- return __awaiter(this, void 0, void 0, function () {
256
- var queryParameters, headerParameters, token, tokenString, response, response_4;
257
- return __generator(this, function (_a) {
258
- switch (_a.label) {
259
- case 0:
260
- queryParameters = {};
261
- headerParameters = {};
262
- if (this.configuration && this.configuration.apiKey) {
263
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
264
- }
265
- if (this.configuration && this.configuration.accessToken) {
266
- token = this.configuration.accessToken;
267
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
268
- if (tokenString) {
269
- headerParameters["Authorization"] = "Bearer " + tokenString;
270
- }
271
- }
272
- _a.label = 1;
273
- case 1:
274
- _a.trys.push([1, 3, , 4]);
275
- return [4 /*yield*/, this.request({
276
- path: "/users/me",
277
- method: 'DELETE',
278
- headers: headerParameters,
279
- query: queryParameters,
280
- })];
281
- case 2:
282
- response = _a.sent();
283
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
284
- case 3:
285
- response_4 = _a.sent();
286
- console.debug(response_4);
287
- throw response_4;
288
- case 4: return [2 /*return*/];
157
+ deleteCurrentUserRaw() {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ const queryParameters = {};
160
+ const headerParameters = {};
161
+ if (this.configuration && this.configuration.apiKey) {
162
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
163
+ }
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ const token = this.configuration.accessToken;
166
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
169
  }
290
- });
170
+ }
171
+ try {
172
+ const response = yield this.request({
173
+ path: `/users/me`,
174
+ method: 'DELETE',
175
+ headers: headerParameters,
176
+ query: queryParameters,
177
+ });
178
+ return new runtime_1.VoidApiResponse(response);
179
+ }
180
+ catch (response) {
181
+ console.debug(response);
182
+ throw response;
183
+ }
291
184
  });
292
- };
185
+ }
293
186
  /**
294
187
  * Delete user account
295
188
  */
296
- ManageUserApi.prototype.deleteCurrentUser = function () {
297
- return __awaiter(this, void 0, void 0, function () {
298
- return __generator(this, function (_a) {
299
- switch (_a.label) {
300
- case 0: return [4 /*yield*/, this.deleteCurrentUserRaw()];
301
- case 1:
302
- _a.sent();
303
- return [2 /*return*/];
304
- }
305
- });
189
+ deleteCurrentUser() {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ yield this.deleteCurrentUserRaw();
306
192
  });
307
- };
193
+ }
308
194
  /**
309
195
  * Delete user account
310
196
  */
311
- ManageUserApi.prototype.deleteUserRaw = function (requestParameters) {
312
- return __awaiter(this, void 0, void 0, function () {
313
- var queryParameters, headerParameters, token, tokenString, response, response_5;
314
- return __generator(this, function (_a) {
315
- switch (_a.label) {
316
- case 0:
317
- if (requestParameters.userId === null || requestParameters.userId === undefined) {
318
- throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling deleteUser.');
319
- }
320
- queryParameters = {};
321
- headerParameters = {};
322
- if (this.configuration && this.configuration.apiKey) {
323
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
324
- }
325
- if (this.configuration && this.configuration.accessToken) {
326
- token = this.configuration.accessToken;
327
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
328
- if (tokenString) {
329
- headerParameters["Authorization"] = "Bearer " + tokenString;
330
- }
331
- }
332
- _a.label = 1;
333
- case 1:
334
- _a.trys.push([1, 3, , 4]);
335
- return [4 /*yield*/, this.request({
336
- path: "/users/{userId}".replace("{" + "userId" + "}", encodeURIComponent(String(requestParameters.userId))),
337
- method: 'DELETE',
338
- headers: headerParameters,
339
- query: queryParameters,
340
- })];
341
- case 2:
342
- response = _a.sent();
343
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
344
- case 3:
345
- response_5 = _a.sent();
346
- console.debug(response_5);
347
- throw response_5;
348
- case 4: return [2 /*return*/];
197
+ deleteUserRaw(requestParameters) {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
200
+ throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling deleteUser.');
201
+ }
202
+ const queryParameters = {};
203
+ const headerParameters = {};
204
+ if (this.configuration && this.configuration.apiKey) {
205
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
206
+ }
207
+ if (this.configuration && this.configuration.accessToken) {
208
+ const token = this.configuration.accessToken;
209
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
210
+ if (tokenString) {
211
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
349
212
  }
350
- });
213
+ }
214
+ try {
215
+ const response = yield this.request({
216
+ path: `/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
217
+ method: 'DELETE',
218
+ headers: headerParameters,
219
+ query: queryParameters,
220
+ });
221
+ return new runtime_1.VoidApiResponse(response);
222
+ }
223
+ catch (response) {
224
+ console.debug(response);
225
+ throw response;
226
+ }
351
227
  });
352
- };
228
+ }
353
229
  /**
354
230
  * Delete user account
355
231
  */
356
- ManageUserApi.prototype.deleteUser = function (requestParameters) {
357
- return __awaiter(this, void 0, void 0, function () {
358
- return __generator(this, function (_a) {
359
- switch (_a.label) {
360
- case 0: return [4 /*yield*/, this.deleteUserRaw(requestParameters)];
361
- case 1:
362
- _a.sent();
363
- return [2 /*return*/];
364
- }
365
- });
232
+ deleteUser(requestParameters) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ yield this.deleteUserRaw(requestParameters);
366
235
  });
367
- };
236
+ }
368
237
  /**
369
238
  * Restrictions : - You should not have orders in progress - You should not be from role \'ADMINISTRATOR\'
370
239
  * Set user holiday mode
371
240
  */
372
- ManageUserApi.prototype.setCurrentUserHolidayModeEnabledRaw = function (requestParameters) {
373
- return __awaiter(this, void 0, void 0, function () {
374
- var queryParameters, headerParameters, token, tokenString, response, response_6;
375
- return __generator(this, function (_a) {
376
- switch (_a.label) {
377
- case 0:
378
- if (requestParameters.body === null || requestParameters.body === undefined) {
379
- throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setCurrentUserHolidayModeEnabled.');
380
- }
381
- queryParameters = {};
382
- headerParameters = {};
383
- headerParameters['Content-Type'] = 'application/json';
384
- if (this.configuration && this.configuration.apiKey) {
385
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
386
- }
387
- if (this.configuration && this.configuration.accessToken) {
388
- token = this.configuration.accessToken;
389
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
390
- if (tokenString) {
391
- headerParameters["Authorization"] = "Bearer " + tokenString;
392
- }
393
- }
394
- _a.label = 1;
395
- case 1:
396
- _a.trys.push([1, 3, , 4]);
397
- return [4 /*yield*/, this.request({
398
- path: "/users/me/holiday-mode-enabled",
399
- method: 'PUT',
400
- headers: headerParameters,
401
- query: queryParameters,
402
- body: requestParameters.body,
403
- })];
404
- case 2:
405
- response = _a.sent();
406
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
407
- case 3:
408
- response_6 = _a.sent();
409
- console.debug(response_6);
410
- throw response_6;
411
- case 4: return [2 /*return*/];
241
+ setCurrentUserHolidayModeEnabledRaw(requestParameters) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ if (requestParameters.body === null || requestParameters.body === undefined) {
244
+ throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setCurrentUserHolidayModeEnabled.');
245
+ }
246
+ const queryParameters = {};
247
+ const headerParameters = {};
248
+ headerParameters['Content-Type'] = 'application/json';
249
+ if (this.configuration && this.configuration.apiKey) {
250
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
251
+ }
252
+ if (this.configuration && this.configuration.accessToken) {
253
+ const token = this.configuration.accessToken;
254
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
255
+ if (tokenString) {
256
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
412
257
  }
413
- });
258
+ }
259
+ try {
260
+ const response = yield this.request({
261
+ path: `/users/me/holiday-mode-enabled`,
262
+ method: 'PUT',
263
+ headers: headerParameters,
264
+ query: queryParameters,
265
+ body: requestParameters.body,
266
+ });
267
+ return new runtime_1.VoidApiResponse(response);
268
+ }
269
+ catch (response) {
270
+ console.debug(response);
271
+ throw response;
272
+ }
414
273
  });
415
- };
274
+ }
416
275
  /**
417
276
  * Restrictions : - You should not have orders in progress - You should not be from role \'ADMINISTRATOR\'
418
277
  * Set user holiday mode
419
278
  */
420
- ManageUserApi.prototype.setCurrentUserHolidayModeEnabled = function (requestParameters) {
421
- return __awaiter(this, void 0, void 0, function () {
422
- return __generator(this, function (_a) {
423
- switch (_a.label) {
424
- case 0: return [4 /*yield*/, this.setCurrentUserHolidayModeEnabledRaw(requestParameters)];
425
- case 1:
426
- _a.sent();
427
- return [2 /*return*/];
428
- }
429
- });
279
+ setCurrentUserHolidayModeEnabled(requestParameters) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ yield this.setCurrentUserHolidayModeEnabledRaw(requestParameters);
430
282
  });
431
- };
283
+ }
432
284
  /**
433
285
  * Update user custom commissions
434
286
  */
435
- ManageUserApi.prototype.setUserCustomCommissionsRaw = function (requestParameters) {
436
- return __awaiter(this, void 0, void 0, function () {
437
- var queryParameters, headerParameters, token, tokenString, response, response_7;
438
- return __generator(this, function (_a) {
439
- switch (_a.label) {
440
- case 0:
441
- if (requestParameters.userId === null || requestParameters.userId === undefined) {
442
- throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserCustomCommissions.');
443
- }
444
- queryParameters = {};
445
- headerParameters = {};
446
- headerParameters['Content-Type'] = 'application/merge-patch+json';
447
- if (this.configuration && this.configuration.apiKey) {
448
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
449
- }
450
- if (this.configuration && this.configuration.accessToken) {
451
- token = this.configuration.accessToken;
452
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
453
- if (tokenString) {
454
- headerParameters["Authorization"] = "Bearer " + tokenString;
455
- }
456
- }
457
- _a.label = 1;
458
- case 1:
459
- _a.trys.push([1, 3, , 4]);
460
- return [4 /*yield*/, this.request({
461
- path: "/users/{userId}/custom-commissions".replace("{" + "userId" + "}", encodeURIComponent(String(requestParameters.userId))),
462
- method: 'PATCH',
463
- headers: headerParameters,
464
- query: queryParameters,
465
- body: models_1.UserCustomCommissionsUpdateParametersToJSON(requestParameters.userCustomCommissionsUpdateParameters),
466
- })];
467
- case 2:
468
- response = _a.sent();
469
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
470
- case 3:
471
- response_7 = _a.sent();
472
- console.debug(response_7);
473
- throw response_7;
474
- case 4: return [2 /*return*/];
287
+ setUserCustomCommissionsRaw(requestParameters) {
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
290
+ throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserCustomCommissions.');
291
+ }
292
+ const queryParameters = {};
293
+ const headerParameters = {};
294
+ headerParameters['Content-Type'] = 'application/merge-patch+json';
295
+ if (this.configuration && this.configuration.apiKey) {
296
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
297
+ }
298
+ if (this.configuration && this.configuration.accessToken) {
299
+ const token = this.configuration.accessToken;
300
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
301
+ if (tokenString) {
302
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
475
303
  }
476
- });
304
+ }
305
+ try {
306
+ const response = yield this.request({
307
+ path: `/users/{userId}/custom-commissions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
308
+ method: 'PATCH',
309
+ headers: headerParameters,
310
+ query: queryParameters,
311
+ body: models_1.UserCustomCommissionsUpdateParametersToJSON(requestParameters.userCustomCommissionsUpdateParameters),
312
+ });
313
+ return new runtime_1.VoidApiResponse(response);
314
+ }
315
+ catch (response) {
316
+ console.debug(response);
317
+ throw response;
318
+ }
477
319
  });
478
- };
320
+ }
479
321
  /**
480
322
  * Update user custom commissions
481
323
  */
482
- ManageUserApi.prototype.setUserCustomCommissions = function (requestParameters) {
483
- return __awaiter(this, void 0, void 0, function () {
484
- return __generator(this, function (_a) {
485
- switch (_a.label) {
486
- case 0: return [4 /*yield*/, this.setUserCustomCommissionsRaw(requestParameters)];
487
- case 1:
488
- _a.sent();
489
- return [2 /*return*/];
490
- }
491
- });
324
+ setUserCustomCommissions(requestParameters) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ yield this.setUserCustomCommissionsRaw(requestParameters);
492
327
  });
493
- };
328
+ }
494
329
  /**
495
330
  * Restrictions : - Updated user should not be from role \'ADMINISTRATOR\'
496
331
  * Set user holiday mode
497
332
  */
498
- ManageUserApi.prototype.setUserHolidayModeEnabledRaw = function (requestParameters) {
499
- return __awaiter(this, void 0, void 0, function () {
500
- var queryParameters, headerParameters, token, tokenString, response, response_8;
501
- return __generator(this, function (_a) {
502
- switch (_a.label) {
503
- case 0:
504
- if (requestParameters.userId === null || requestParameters.userId === undefined) {
505
- throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserHolidayModeEnabled.');
506
- }
507
- if (requestParameters.body === null || requestParameters.body === undefined) {
508
- throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setUserHolidayModeEnabled.');
509
- }
510
- queryParameters = {};
511
- headerParameters = {};
512
- headerParameters['Content-Type'] = 'application/json';
513
- if (this.configuration && this.configuration.apiKey) {
514
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
515
- }
516
- if (this.configuration && this.configuration.accessToken) {
517
- token = this.configuration.accessToken;
518
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
519
- if (tokenString) {
520
- headerParameters["Authorization"] = "Bearer " + tokenString;
521
- }
522
- }
523
- _a.label = 1;
524
- case 1:
525
- _a.trys.push([1, 3, , 4]);
526
- return [4 /*yield*/, this.request({
527
- path: "/users/{userId}/holiday-mode-enabled".replace("{" + "userId" + "}", encodeURIComponent(String(requestParameters.userId))),
528
- method: 'PUT',
529
- headers: headerParameters,
530
- query: queryParameters,
531
- body: requestParameters.body,
532
- })];
533
- case 2:
534
- response = _a.sent();
535
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
536
- case 3:
537
- response_8 = _a.sent();
538
- console.debug(response_8);
539
- throw response_8;
540
- case 4: return [2 /*return*/];
333
+ setUserHolidayModeEnabledRaw(requestParameters) {
334
+ return __awaiter(this, void 0, void 0, function* () {
335
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
336
+ throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling setUserHolidayModeEnabled.');
337
+ }
338
+ if (requestParameters.body === null || requestParameters.body === undefined) {
339
+ throw new runtime_1.RequiredError('body', 'Required parameter requestParameters.body was null or undefined when calling setUserHolidayModeEnabled.');
340
+ }
341
+ const queryParameters = {};
342
+ const headerParameters = {};
343
+ headerParameters['Content-Type'] = 'application/json';
344
+ if (this.configuration && this.configuration.apiKey) {
345
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
346
+ }
347
+ if (this.configuration && this.configuration.accessToken) {
348
+ const token = this.configuration.accessToken;
349
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
350
+ if (tokenString) {
351
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
541
352
  }
542
- });
353
+ }
354
+ try {
355
+ const response = yield this.request({
356
+ path: `/users/{userId}/holiday-mode-enabled`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
357
+ method: 'PUT',
358
+ headers: headerParameters,
359
+ query: queryParameters,
360
+ body: requestParameters.body,
361
+ });
362
+ return new runtime_1.VoidApiResponse(response);
363
+ }
364
+ catch (response) {
365
+ console.debug(response);
366
+ throw response;
367
+ }
543
368
  });
544
- };
369
+ }
545
370
  /**
546
371
  * Restrictions : - Updated user should not be from role \'ADMINISTRATOR\'
547
372
  * Set user holiday mode
548
373
  */
549
- ManageUserApi.prototype.setUserHolidayModeEnabled = function (requestParameters) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- return __generator(this, function (_a) {
552
- switch (_a.label) {
553
- case 0: return [4 /*yield*/, this.setUserHolidayModeEnabledRaw(requestParameters)];
554
- case 1:
555
- _a.sent();
556
- return [2 /*return*/];
557
- }
558
- });
374
+ setUserHolidayModeEnabled(requestParameters) {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ yield this.setUserHolidayModeEnabledRaw(requestParameters);
559
377
  });
560
- };
378
+ }
561
379
  /**
562
380
  * Update current user account
563
381
  */
564
- ManageUserApi.prototype.updateCurrentUserRaw = function (requestParameters) {
565
- return __awaiter(this, void 0, void 0, function () {
566
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_9;
567
- return __generator(this, function (_a) {
568
- switch (_a.label) {
569
- case 0:
570
- if (requestParameters.userUpdateParameters === null || requestParameters.userUpdateParameters === undefined) {
571
- throw new runtime_1.RequiredError('userUpdateParameters', 'Required parameter requestParameters.userUpdateParameters was null or undefined when calling updateCurrentUser.');
572
- }
573
- queryParameters = {};
574
- headerParameters = {};
575
- headerParameters['Content-Type'] = 'application/merge-patch+json';
576
- if (this.configuration && this.configuration.apiKey) {
577
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
578
- }
579
- if (this.configuration && this.configuration.accessToken) {
580
- token = this.configuration.accessToken;
581
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
582
- if (tokenString) {
583
- headerParameters["Authorization"] = "Bearer " + tokenString;
584
- }
585
- }
586
- _a.label = 1;
587
- case 1:
588
- _a.trys.push([1, 3, , 4]);
589
- return [4 /*yield*/, this.request({
590
- path: "/users/me",
591
- method: 'PATCH',
592
- headers: headerParameters,
593
- query: queryParameters,
594
- body: models_1.UserUpdateParametersToJSON(requestParameters.userUpdateParameters),
595
- })];
596
- case 2:
597
- response = _a.sent();
598
- contentType = response.headers.get("content-type");
599
- if (contentType && contentType.indexOf("application/json") !== -1) {
600
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.UserFromJSON(jsonValue); })];
601
- }
602
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
603
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
604
- }
605
- else {
606
- // TODO : Better handling of others application types
607
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
608
- }
609
- return [3 /*break*/, 4];
610
- case 3:
611
- response_9 = _a.sent();
612
- console.debug(response_9);
613
- throw response_9;
614
- case 4: return [2 /*return*/];
382
+ updateCurrentUserRaw(requestParameters) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ if (requestParameters.userUpdateParameters === null || requestParameters.userUpdateParameters === undefined) {
385
+ throw new runtime_1.RequiredError('userUpdateParameters', 'Required parameter requestParameters.userUpdateParameters was null or undefined when calling updateCurrentUser.');
386
+ }
387
+ const queryParameters = {};
388
+ const headerParameters = {};
389
+ headerParameters['Content-Type'] = 'application/merge-patch+json';
390
+ if (this.configuration && this.configuration.apiKey) {
391
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
392
+ }
393
+ if (this.configuration && this.configuration.accessToken) {
394
+ const token = this.configuration.accessToken;
395
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
396
+ if (tokenString) {
397
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
398
+ }
399
+ }
400
+ try {
401
+ const response = yield this.request({
402
+ path: `/users/me`,
403
+ method: 'PATCH',
404
+ headers: headerParameters,
405
+ query: queryParameters,
406
+ body: models_1.UserUpdateParametersToJSON(requestParameters.userUpdateParameters),
407
+ });
408
+ const contentType = response.headers.get("content-type");
409
+ if (contentType && contentType.indexOf("application/json") !== -1) {
410
+ return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.UserFromJSON(jsonValue));
615
411
  }
616
- });
412
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
413
+ return new runtime_1.TextApiResponse(response);
414
+ }
415
+ else {
416
+ // TODO : Better handling of others application types
417
+ return new runtime_1.BlobWithMetaApiResponse(response);
418
+ }
419
+ }
420
+ catch (response) {
421
+ console.debug(response);
422
+ throw response;
423
+ }
617
424
  });
618
- };
425
+ }
619
426
  /**
620
427
  * Update current user account
621
428
  */
622
- ManageUserApi.prototype.updateCurrentUser = function (requestParameters) {
623
- return __awaiter(this, void 0, void 0, function () {
624
- var response;
625
- return __generator(this, function (_a) {
626
- switch (_a.label) {
627
- case 0: return [4 /*yield*/, this.updateCurrentUserRaw(requestParameters)];
628
- case 1:
629
- response = _a.sent();
630
- return [4 /*yield*/, response.value()];
631
- case 2: return [2 /*return*/, _a.sent()];
632
- }
633
- });
429
+ updateCurrentUser(requestParameters) {
430
+ return __awaiter(this, void 0, void 0, function* () {
431
+ const response = yield this.updateCurrentUserRaw(requestParameters);
432
+ return yield response.value();
634
433
  });
635
- };
434
+ }
636
435
  /**
637
436
  * Update user account
638
437
  */
639
- ManageUserApi.prototype.updateUserRaw = function (requestParameters) {
640
- return __awaiter(this, void 0, void 0, function () {
641
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_10;
642
- return __generator(this, function (_a) {
643
- switch (_a.label) {
644
- case 0:
645
- if (requestParameters.userId === null || requestParameters.userId === undefined) {
646
- throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateUser.');
647
- }
648
- if (requestParameters.userUpdateParameters === null || requestParameters.userUpdateParameters === undefined) {
649
- throw new runtime_1.RequiredError('userUpdateParameters', 'Required parameter requestParameters.userUpdateParameters was null or undefined when calling updateUser.');
650
- }
651
- queryParameters = {};
652
- headerParameters = {};
653
- headerParameters['Content-Type'] = 'application/merge-patch+json';
654
- if (this.configuration && this.configuration.apiKey) {
655
- headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
656
- }
657
- if (this.configuration && this.configuration.accessToken) {
658
- token = this.configuration.accessToken;
659
- tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
660
- if (tokenString) {
661
- headerParameters["Authorization"] = "Bearer " + tokenString;
662
- }
663
- }
664
- _a.label = 1;
665
- case 1:
666
- _a.trys.push([1, 3, , 4]);
667
- return [4 /*yield*/, this.request({
668
- path: "/users/{userId}".replace("{" + "userId" + "}", encodeURIComponent(String(requestParameters.userId))),
669
- method: 'PATCH',
670
- headers: headerParameters,
671
- query: queryParameters,
672
- body: models_1.UserUpdateParametersToJSON(requestParameters.userUpdateParameters),
673
- })];
674
- case 2:
675
- response = _a.sent();
676
- contentType = response.headers.get("content-type");
677
- if (contentType && contentType.indexOf("application/json") !== -1) {
678
- return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.UserFromJSON(jsonValue); })];
679
- }
680
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
681
- return [2 /*return*/, new runtime_1.TextApiResponse(response)];
682
- }
683
- else {
684
- // TODO : Better handling of others application types
685
- return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
686
- }
687
- return [3 /*break*/, 4];
688
- case 3:
689
- response_10 = _a.sent();
690
- console.debug(response_10);
691
- throw response_10;
692
- case 4: return [2 /*return*/];
438
+ updateUserRaw(requestParameters) {
439
+ return __awaiter(this, void 0, void 0, function* () {
440
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
441
+ throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling updateUser.');
442
+ }
443
+ if (requestParameters.userUpdateParameters === null || requestParameters.userUpdateParameters === undefined) {
444
+ throw new runtime_1.RequiredError('userUpdateParameters', 'Required parameter requestParameters.userUpdateParameters was null or undefined when calling updateUser.');
445
+ }
446
+ const queryParameters = {};
447
+ const headerParameters = {};
448
+ headerParameters['Content-Type'] = 'application/merge-patch+json';
449
+ if (this.configuration && this.configuration.apiKey) {
450
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
451
+ }
452
+ if (this.configuration && this.configuration.accessToken) {
453
+ const token = this.configuration.accessToken;
454
+ const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
455
+ if (tokenString) {
456
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
457
+ }
458
+ }
459
+ try {
460
+ const response = yield this.request({
461
+ path: `/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
462
+ method: 'PATCH',
463
+ headers: headerParameters,
464
+ query: queryParameters,
465
+ body: models_1.UserUpdateParametersToJSON(requestParameters.userUpdateParameters),
466
+ });
467
+ const contentType = response.headers.get("content-type");
468
+ if (contentType && contentType.indexOf("application/json") !== -1) {
469
+ return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.UserFromJSON(jsonValue));
470
+ }
471
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
472
+ return new runtime_1.TextApiResponse(response);
473
+ }
474
+ else {
475
+ // TODO : Better handling of others application types
476
+ return new runtime_1.BlobWithMetaApiResponse(response);
693
477
  }
694
- });
478
+ }
479
+ catch (response) {
480
+ console.debug(response);
481
+ throw response;
482
+ }
695
483
  });
696
- };
484
+ }
697
485
  /**
698
486
  * Update user account
699
487
  */
700
- ManageUserApi.prototype.updateUser = function (requestParameters) {
701
- return __awaiter(this, void 0, void 0, function () {
702
- var response;
703
- return __generator(this, function (_a) {
704
- switch (_a.label) {
705
- case 0: return [4 /*yield*/, this.updateUserRaw(requestParameters)];
706
- case 1:
707
- response = _a.sent();
708
- return [4 /*yield*/, response.value()];
709
- case 2: return [2 /*return*/, _a.sent()];
710
- }
711
- });
488
+ updateUser(requestParameters) {
489
+ return __awaiter(this, void 0, void 0, function* () {
490
+ const response = yield this.updateUserRaw(requestParameters);
491
+ return yield response.value();
712
492
  });
713
- };
714
- return ManageUserApi;
715
- }(runtime_1.BaseAPI));
493
+ }
494
+ }
716
495
  exports.ManageUserApi = ManageUserApi;