@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.
- package/auth/dist/apis/AuthApi.js +113 -213
- package/auth/dist/apis/ManageApiKeyApi.js +127 -227
- package/auth/dist/apis/SearchApiKeyApi.js +124 -207
- package/auth/dist/models/AnonymousUser.js +3 -14
- package/auth/dist/models/AnonymousUserAllOf.js +1 -1
- package/auth/dist/models/AnyAuthenticationCredential.js +10 -21
- package/auth/dist/models/AnyUser.js +6 -17
- package/auth/dist/models/ApiKey.js +2 -2
- package/auth/dist/models/ApiKeyCredential.js +3 -14
- package/auth/dist/models/DisposableCredential.js +3 -14
- package/auth/dist/models/DisposableTokenCreationParameters.js +1 -1
- package/auth/dist/models/IdentifiedUser.js +3 -14
- package/auth/dist/models/IdentifiedUserAllOf.js +1 -1
- package/auth/dist/models/LoginCredential.js +3 -14
- package/auth/dist/models/PaginatedApiKeys.js +4 -15
- package/auth/dist/models/PaginatedApiKeysAllOf.js +1 -1
- package/auth/dist/models/PaginatedObject.js +1 -1
- package/auth/dist/models/RefreshCredential.js +3 -14
- package/auth/dist/models/RevealedApiKey.js +4 -15
- package/auth/dist/models/RevealedApiKeyAllOf.js +1 -1
- package/auth/dist/models/UserLink.js +5 -16
- package/auth/dist/models/UserLinkAllOf.js +2 -2
- package/auth/dist/models/UserLinkAllOfCompany.js +1 -1
- package/auth/dist/runtime.js +153 -329
- package/banking-operation/dist/apis/ManageLevyApi.js +95 -178
- package/banking-operation/dist/apis/ManageOrderPaymentApi.js +104 -187
- package/banking-operation/dist/apis/SearchLevyApi.js +124 -207
- package/banking-operation/dist/apis/SearchOrderPaymentApi.js +58 -122
- package/banking-operation/dist/models/Levy.js +4 -4
- package/banking-operation/dist/models/LevyCreationParameters.js +2 -2
- package/banking-operation/dist/models/LevyPayment.js +2 -2
- package/banking-operation/dist/models/LevyUpdateParameters.js +2 -2
- package/banking-operation/dist/models/OrderLink.js +4 -15
- package/banking-operation/dist/models/OrderLinkAllOf.js +1 -1
- package/banking-operation/dist/models/OrderPayment.js +5 -5
- package/banking-operation/dist/models/OrderPaymentDeposit.js +2 -2
- package/banking-operation/dist/models/OrderPaymentWallets.js +2 -2
- package/banking-operation/dist/models/OrderPaymentWithdraw.js +2 -2
- package/banking-operation/dist/models/PaginatedLevies.js +4 -15
- package/banking-operation/dist/models/PaginatedLeviesAllOf.js +1 -1
- package/banking-operation/dist/models/PaginatedObject.js +1 -1
- package/banking-operation/dist/models/PaginatedOrderPayments.js +4 -15
- package/banking-operation/dist/models/PaginatedOrderPaymentsAllOf.js +1 -1
- package/banking-operation/dist/models/Transaction.js +2 -2
- package/banking-operation/dist/models/TransactionMangopayTarget.js +4 -15
- package/banking-operation/dist/models/TransactionMangopayTargetAllOf.js +1 -1
- package/banking-operation/dist/models/UserLink.js +5 -16
- package/banking-operation/dist/models/UserLinkAllOf.js +2 -2
- package/banking-operation/dist/models/UserLinkAllOfCompany.js +1 -1
- package/banking-operation/dist/models/Wallet.js +2 -2
- package/banking-operation/dist/models/WalletMangopayTarget.js +4 -15
- package/banking-operation/dist/models/WalletMangopayTargetAllOf.js +1 -1
- package/banking-operation/dist/runtime.js +153 -329
- package/challenge/dist/apis/ManageChallengesApi.js +51 -115
- package/challenge/dist/models/Challenge.js +2 -2
- package/challenge/dist/models/ChallengeAction.js +1 -1
- package/challenge/dist/runtime.js +153 -329
- package/configuration/dist/apis/ManageVariableApi.js +42 -104
- package/configuration/dist/apis/ManageVatApi.js +88 -169
- package/configuration/dist/apis/SearchVariableApi.js +71 -154
- package/configuration/dist/apis/SearchVatApi.js +91 -174
- package/configuration/dist/models/Variable.js +1 -1
- package/configuration/dist/models/Vat.js +1 -1
- package/configuration/dist/runtime.js +153 -329
- package/content/dist/apis/ManageContentApi.js +54 -118
- package/content/dist/apis/SearchContentApi.js +39 -103
- package/content/dist/models/Content.js +1 -1
- package/content/dist/runtime.js +153 -329
- package/factory/dist/apis/ManageAssemblyApi.js +125 -205
- package/factory/dist/apis/ManageAssemblyOperationApi.js +54 -118
- package/factory/dist/apis/SearchAssemblyApi.js +220 -341
- package/factory/dist/apis/SearchAssemblyLineApi.js +91 -174
- package/factory/dist/apis/SearchAssemblyOperationApi.js +97 -180
- package/factory/dist/models/Assembly.js +5 -5
- package/factory/dist/models/AssemblyLine.js +1 -1
- package/factory/dist/models/AssemblyLineLink.js +4 -15
- package/factory/dist/models/AssemblyLineLinkAllOf.js +1 -1
- package/factory/dist/models/AssemblyOperation.js +3 -3
- package/factory/dist/models/PaginatedAssemblies.js +5 -16
- package/factory/dist/models/PaginatedAssembliesAllOf.js +2 -2
- package/factory/dist/models/PaginatedObject.js +1 -1
- package/factory/dist/models/UserLink.js +4 -15
- package/factory/dist/models/UserLinkAllOf.js +1 -1
- package/factory/dist/runtime.js +153 -329
- package/favorite/dist/apis/ManageFavoriteProductApi.js +190 -309
- package/favorite/dist/models/Barcodes.js +1 -1
- package/favorite/dist/models/FavoriteProduct.js +2 -2
- package/favorite/dist/models/PaginatedFavoriteProducts.js +4 -15
- package/favorite/dist/models/PaginatedFavoriteProductsAllOf.js +1 -1
- package/favorite/dist/models/PaginatedObject.js +1 -1
- package/favorite/dist/models/ProductLink.js +6 -17
- package/favorite/dist/models/ProductLinkAllOf.js +3 -3
- package/favorite/dist/models/UserLink.js +3 -14
- package/favorite/dist/runtime.js +153 -329
- package/geo/dist/apis/SearchCountryApi.js +49 -113
- package/geo/dist/runtime.js +153 -329
- package/inventory/dist/apis/ManageInventoryApi.js +166 -279
- package/inventory/dist/apis/SearchInventoryApi.js +571 -806
- package/inventory/dist/models/ActiveProduct.js +2 -2
- package/inventory/dist/models/ActiveProductUpdateParameters.js +1 -1
- package/inventory/dist/models/Barcodes.js +1 -1
- package/inventory/dist/models/MisalignedProduct.js +2 -2
- package/inventory/dist/models/OverstockProduct.js +2 -2
- package/inventory/dist/models/OverstockProductUpdateParameters.js +1 -1
- package/inventory/dist/models/PaginatedActiveProducts.js +4 -15
- package/inventory/dist/models/PaginatedActiveProductsAllOf.js +1 -1
- package/inventory/dist/models/PaginatedMisalignedProducts.js +4 -15
- package/inventory/dist/models/PaginatedMisalignedProductsAllOf.js +1 -1
- package/inventory/dist/models/PaginatedObject.js +1 -1
- package/inventory/dist/models/PaginatedOverstockProducts.js +4 -15
- package/inventory/dist/models/PaginatedOverstockProductsAllOf.js +1 -1
- package/inventory/dist/models/ProductLink.js +5 -16
- package/inventory/dist/models/ProductLinkAllOf.js +2 -2
- package/inventory/dist/models/Statistics.js +4 -4
- package/inventory/dist/models/StatisticsActiveProducts.js +1 -1
- package/inventory/dist/models/StatisticsMisalignedProducts.js +1 -1
- package/inventory/dist/models/StatisticsOverstockProducts.js +1 -1
- package/inventory/dist/models/Synchroneity.js +2 -2
- package/inventory/dist/models/SynchroneityOffisante.js +2 -2
- package/inventory/dist/models/SynchroneitySource.js +1 -1
- package/inventory/dist/runtime.js +153 -329
- package/invoice/dist/apis/ManageInvoiceApi.js +107 -190
- package/invoice/dist/apis/ManageInvoiceLineApi.js +85 -166
- package/invoice/dist/apis/ManageInvoicesSummaryApi.js +40 -102
- package/invoice/dist/apis/SearchInvoiceApi.js +118 -201
- package/invoice/dist/apis/SearchInvoiceLineApi.js +67 -131
- package/invoice/dist/apis/SearchOrderTallyApi.js +121 -204
- package/invoice/dist/models/Invoice.js +3 -3
- package/invoice/dist/models/InvoiceSummaryCreationParameters.js +1 -1
- package/invoice/dist/models/InvoiceUpdateParameters.js +1 -1
- package/invoice/dist/models/OrderLink.js +4 -15
- package/invoice/dist/models/OrderLinkAllOf.js +1 -1
- package/invoice/dist/models/OrderTally.js +4 -4
- package/invoice/dist/models/PaginatedInvoices.js +4 -15
- package/invoice/dist/models/PaginatedInvoicesAllOf.js +1 -1
- package/invoice/dist/models/PaginatedObject.js +1 -1
- package/invoice/dist/models/PaginatedOrderTallies.js +4 -15
- package/invoice/dist/models/PaginatedOrderTalliesAllOf.js +1 -1
- package/invoice/dist/models/PaginatedPlannedInvoiceLine.js +4 -15
- package/invoice/dist/models/PaginatedPlannedInvoiceLineAllOf.js +1 -1
- package/invoice/dist/models/PlannedInvoiceLine.js +1 -1
- package/invoice/dist/models/UserLink.js +5 -16
- package/invoice/dist/models/UserLinkAllOf.js +2 -2
- package/invoice/dist/models/UserLinkAllOfCompany.js +1 -1
- package/invoice/dist/runtime.js +153 -329
- package/laboratory/dist/apis/ManageLaboratoryApi.js +51 -115
- package/laboratory/dist/apis/SearchLaboratoryApi.js +109 -192
- package/laboratory/dist/models/Laboratory.js +1 -1
- package/laboratory/dist/models/PaginatedLaboratories.js +4 -15
- package/laboratory/dist/models/PaginatedLaboratoriesAllOf.js +1 -1
- package/laboratory/dist/models/PaginatedObject.js +1 -1
- package/laboratory/dist/runtime.js +153 -329
- package/laboratory-store/dist/apis/ManageLaboratoryStoreApi.js +95 -178
- package/laboratory-store/dist/apis/ManageLaboratoryStoreImageApi.js +212 -327
- package/laboratory-store/dist/apis/SearchLaboratoryStoreApi.js +112 -195
- package/laboratory-store/dist/models/Image.js +2 -2
- package/laboratory-store/dist/models/ImageVersions.js +1 -1
- package/laboratory-store/dist/models/LaboratoryStore.js +4 -4
- package/laboratory-store/dist/models/LaboratoryStoreUpdateParameters.js +3 -3
- package/laboratory-store/dist/models/OwnerLink.js +4 -15
- package/laboratory-store/dist/models/OwnerLinkAllOf.js +1 -1
- package/laboratory-store/dist/models/PaginatedLaboratoryStores.js +5 -16
- package/laboratory-store/dist/models/PaginatedLaboratoryStoresAllOf.js +2 -2
- package/laboratory-store/dist/models/PaginatedObject.js +1 -1
- package/laboratory-store/dist/runtime.js +153 -329
- package/laboratory-store-log/dist/apis/SearchLaboratoryStoreLogApi.js +70 -134
- package/laboratory-store-log/dist/models/AnyLaboratoryStoreLog.js +4 -15
- package/laboratory-store-log/dist/models/LaboratoryStoreLink.js +3 -14
- package/laboratory-store-log/dist/models/LaboratoryStoreLog.js +4 -15
- package/laboratory-store-log/dist/models/LaboratoryStoreLogAllOf.js +1 -1
- package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogs.js +4 -15
- package/laboratory-store-log/dist/models/PaginatedLaboratoryStoreLogsAllOf.js +1 -1
- package/laboratory-store-log/dist/models/PaginatedObject.js +1 -1
- package/laboratory-store-log/dist/runtime.js +153 -329
- package/lexicon/dist/apis/ManageLexiconApi.js +85 -166
- package/lexicon/dist/apis/SearchLexiconApi.js +187 -308
- package/lexicon/dist/models/PaginatedObject.js +1 -1
- package/lexicon/dist/models/PaginatedTags.js +4 -15
- package/lexicon/dist/models/PaginatedTagsAllOf.js +1 -1
- package/lexicon/dist/models/PharmacyGroup.js +1 -1
- package/lexicon/dist/models/PharmacyLocation.js +1 -1
- package/lexicon/dist/models/PharmacySoftware.js +1 -1
- package/lexicon/dist/models/Tag.js +1 -1
- package/lexicon/dist/models/TagCreationParameters.js +1 -1
- package/lexicon/dist/runtime.js +153 -329
- package/litigation/dist/apis/ManageLitigationApi.js +40 -102
- package/litigation/dist/runtime.js +153 -329
- package/magic-cart/dist/apis/ManageExpressOrderApi.js +48 -112
- package/magic-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/magic-cart/dist/models/Barcodes.js +1 -1
- package/magic-cart/dist/models/ExpressOrder.js +2 -2
- package/magic-cart/dist/models/ExpressOrderCreationParameters.js +2 -2
- package/magic-cart/dist/models/IdentifiedDistributionRange.js +3 -14
- package/magic-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/magic-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/magic-cart/dist/models/ProductLink.js +4 -15
- package/magic-cart/dist/models/ProductLinkAllOf.js +1 -1
- package/magic-cart/dist/models/SaleOfferLink.js +6 -17
- package/magic-cart/dist/models/SaleOfferLinkAllOf.js +3 -3
- package/magic-cart/dist/models/SaleOfferProposal.js +2 -2
- package/magic-cart/dist/models/SellerProposal.js +2 -2
- package/magic-cart/dist/models/Stock.js +1 -1
- package/magic-cart/dist/models/UnitaryDistributionMode.js +3 -14
- package/magic-cart/dist/models/UserLink.js +3 -14
- package/magic-cart/dist/runtime.js +153 -329
- package/mandate/dist/apis/ManageMandatesApi.js +171 -290
- package/mandate/dist/models/Challenge.js +2 -2
- package/mandate/dist/models/ChallengeAction.js +1 -1
- package/mandate/dist/models/Mandate.js +1 -1
- package/mandate/dist/models/MandateChallenge.js +3 -14
- package/mandate/dist/models/MandateCreationParameters.js +1 -1
- package/mandate/dist/runtime.js +153 -329
- package/mangopay-hook/dist/apis/MangopayHookApi.js +40 -102
- package/mangopay-hook/dist/runtime.js +153 -329
- package/message/dist/apis/ManageMessageApi.js +211 -345
- package/message/dist/apis/SearchMessageApi.js +157 -259
- package/message/dist/models/Message.js +1 -1
- package/message/dist/models/MessageUpdateParameters.js +1 -1
- package/message/dist/models/MessageViewerCreationParameters.js +1 -1
- package/message/dist/models/PaginatedMessages.js +4 -15
- package/message/dist/models/PaginatedMessagesAllOf.js +1 -1
- package/message/dist/models/PaginatedObject.js +1 -1
- package/message/dist/models/ViewerLink.js +3 -14
- package/message/dist/runtime.js +153 -329
- package/notification/dist/apis/ManageNotificationApi.js +96 -177
- package/notification/dist/apis/ManageNotificationTypeApi.js +158 -257
- package/notification/dist/apis/SearchNotificationApi.js +112 -195
- package/notification/dist/apis/SearchNotificationTypeApi.js +109 -192
- package/notification/dist/models/Notification.js +3 -3
- package/notification/dist/models/NotificationType.js +3 -3
- package/notification/dist/models/NotificationTypeAttachment.js +1 -1
- package/notification/dist/models/NotificationTypeAttachmentCreationParameters.js +1 -1
- package/notification/dist/models/NotificationTypeUpdateParameters.js +1 -1
- package/notification/dist/models/NotificationUpdateParameters.js +1 -1
- package/notification/dist/models/PaginatedNotificationTypes.js +5 -16
- package/notification/dist/models/PaginatedNotificationTypesAllOf.js +2 -2
- package/notification/dist/models/PaginatedNotifications.js +5 -16
- package/notification/dist/models/PaginatedNotificationsAllOf.js +2 -2
- package/notification/dist/models/PaginatedObject.js +1 -1
- package/notification/dist/runtime.js +153 -329
- package/order/dist/apis/ManageMetaOrderApi.js +90 -171
- package/order/dist/apis/ManageOrderApi.js +397 -603
- package/order/dist/apis/ManageOrderItemApi.js +234 -370
- package/order/dist/apis/SearchOrderApi.js +241 -362
- package/order/dist/apis/SearchOrderItemApi.js +241 -381
- package/order/dist/models/Address.js +1 -1
- package/order/dist/models/Anomalies.js +1 -1
- package/order/dist/models/Barcodes.js +1 -1
- package/order/dist/models/MetaOrder.js +4 -4
- package/order/dist/models/MetaOrderCreationParameters.js +1 -1
- package/order/dist/models/MetaOrderPrices.js +1 -1
- package/order/dist/models/MetaOrderWarning.js +1 -1
- package/order/dist/models/MetaOrderWithWarnings.js +3 -3
- package/order/dist/models/Order.js +8 -8
- package/order/dist/models/OrderItem.js +4 -4
- package/order/dist/models/OrderItemPrices.js +1 -1
- package/order/dist/models/OrderPrices.js +1 -1
- package/order/dist/models/OrderThreads.js +2 -2
- package/order/dist/models/OrderUpdateParameters.js +1 -1
- package/order/dist/models/PaginatedObject.js +1 -1
- package/order/dist/models/PaginatedOrders.js +4 -15
- package/order/dist/models/PaginatedOrdersAllOf.js +1 -1
- package/order/dist/models/ProductLink.js +6 -17
- package/order/dist/models/ProductLinkAllOf.js +3 -3
- package/order/dist/models/Reservation.js +3 -3
- package/order/dist/models/ReservationUpdateParameters.js +1 -1
- package/order/dist/models/SaleOfferLink.js +3 -14
- package/order/dist/models/ShoppedOffer.js +1 -1
- package/order/dist/models/ThreadLink.js +3 -14
- package/order/dist/models/UserLink.js +5 -16
- package/order/dist/models/UserLinkAllOf.js +2 -2
- package/order/dist/models/UserLinkAllOfCompany.js +1 -1
- package/order/dist/models/Vat.js +1 -1
- package/order/dist/runtime.js +153 -329
- package/order-log/dist/apis/SearchOrderLogApi.js +70 -134
- package/order-log/dist/models/AnyOrderLog.js +4 -15
- package/order-log/dist/models/OrderLink.js +3 -14
- package/order-log/dist/models/OrderLog.js +4 -15
- package/order-log/dist/models/OrderLogAllOf.js +1 -1
- package/order-log/dist/models/PaginatedObject.js +1 -1
- package/order-log/dist/models/PaginatedOrderLogs.js +4 -15
- package/order-log/dist/models/PaginatedOrderLogsAllOf.js +1 -1
- package/order-log/dist/runtime.js +153 -329
- package/outrage-message/dist/apis/ManageOutrageMessageApi.js +135 -235
- package/outrage-message/dist/apis/SearchOutrageMessageApi.js +106 -189
- package/outrage-message/dist/models/OutrageMessage.js +1 -1
- package/outrage-message/dist/models/OutrageMessageUpdateParameters.js +1 -1
- package/outrage-message/dist/models/PaginatedObject.js +1 -1
- package/outrage-message/dist/models/PaginatedOutrageMessages.js +5 -16
- package/outrage-message/dist/models/PaginatedOutrageMessagesAllOf.js +2 -2
- package/outrage-message/dist/runtime.js +153 -329
- package/package.json +1 -1
- package/product/dist/apis/ManageProductApi.js +101 -184
- package/product/dist/apis/ManageProductImageApi.js +98 -176
- package/product/dist/apis/ManageProductProscriptionApi.js +88 -169
- package/product/dist/apis/SearchProductApi.js +127 -210
- package/product/dist/apis/SearchProductImageApi.js +97 -180
- package/product/dist/apis/SearchProductMetadataApi.js +88 -171
- package/product/dist/apis/SearchProductProscriptionApi.js +58 -122
- package/product/dist/models/Barcodes.js +1 -1
- package/product/dist/models/Image.js +2 -2
- package/product/dist/models/ImageCreationParameters.js +1 -1
- package/product/dist/models/ImageVersions.js +1 -1
- package/product/dist/models/LaboratoryLink.js +4 -15
- package/product/dist/models/LaboratoryLinkAllOf.js +1 -1
- package/product/dist/models/PaginatedObject.js +1 -1
- package/product/dist/models/PaginatedProductProscriptions.js +4 -15
- package/product/dist/models/PaginatedProductProscriptionsAllOf.js +1 -1
- package/product/dist/models/PaginatedProducts.js +4 -15
- package/product/dist/models/PaginatedProductsAllOf.js +1 -1
- package/product/dist/models/Product.js +12 -12
- package/product/dist/models/ProductCreationOrUpdateParameters.js +5 -5
- package/product/dist/models/ProductProscription.js +1 -1
- package/product/dist/models/ProductProscriptionCreationParameters.js +1 -1
- package/product/dist/models/ProductSecondaryType.js +1 -1
- package/product/dist/models/ProductType.js +1 -1
- package/product/dist/models/Statistics.js +1 -1
- package/product/dist/models/Vat.js +1 -1
- package/product/dist/runtime.js +153 -329
- package/pub/dist/apis/ManagePubApi.js +168 -285
- package/pub/dist/apis/ManagePubImageApi.js +71 -134
- package/pub/dist/apis/SearchPubApi.js +178 -280
- package/pub/dist/models/Image.js +2 -2
- package/pub/dist/models/ImageVersions.js +1 -1
- package/pub/dist/models/PaginatedObject.js +1 -1
- package/pub/dist/models/PaginatedPubStatistics.js +4 -15
- package/pub/dist/models/PaginatedPubStatisticsAllOf.js +1 -1
- package/pub/dist/models/PaginatedPubs.js +4 -15
- package/pub/dist/models/PaginatedPubsAllOf.js +1 -1
- package/pub/dist/models/Pub.js +5 -5
- package/pub/dist/models/PubCreationParameters.js +4 -4
- package/pub/dist/models/PubImageParameters.js +1 -1
- package/pub/dist/models/PubSchedule.js +1 -1
- package/pub/dist/models/PubStatistics.js +2 -2
- package/pub/dist/models/PubTimecard.js +1 -1
- package/pub/dist/models/PubUpdateParameters.js +4 -4
- package/pub/dist/models/UserLink.js +5 -16
- package/pub/dist/models/UserLinkAllOf.js +2 -2
- package/pub/dist/models/UserLinkAllOfCompany.js +1 -1
- package/pub/dist/runtime.js +153 -329
- package/recommendation/dist/apis/ManageProductRecommendationFeedbackApi.js +51 -115
- package/recommendation/dist/apis/SearchProductPriceRecommendationApi.js +58 -122
- package/recommendation/dist/apis/SearchProductRecommendationApi.js +67 -131
- package/recommendation/dist/models/PaginatedObject.js +1 -1
- package/recommendation/dist/models/PaginatedProductPriceRecommendations.js +4 -15
- package/recommendation/dist/models/PaginatedProductPriceRecommendationsAllOf.js +1 -1
- package/recommendation/dist/models/PaginatedProductRecommendations.js +4 -15
- package/recommendation/dist/models/PaginatedProductRecommendationsAllOf.js +1 -1
- package/recommendation/dist/models/ProductLink.js +4 -15
- package/recommendation/dist/models/ProductLinkAllOf.js +1 -1
- package/recommendation/dist/models/ProductPriceRecommendation.js +2 -2
- package/recommendation/dist/models/ProductRecommendation.js +3 -3
- package/recommendation/dist/models/ProductRecommendationFeedback.js +3 -3
- package/recommendation/dist/models/UserLink.js +4 -15
- package/recommendation/dist/models/UserLinkAllOf.js +1 -1
- package/recommendation/dist/runtime.js +153 -329
- package/rfx/dist/apis/ManageRfiApi.js +43 -105
- package/rfx/dist/apis/ManageRfilApi.js +37 -99
- package/rfx/dist/apis/ManageRfoApi.js +37 -99
- package/rfx/dist/apis/ManageRfoiApi.js +101 -184
- package/rfx/dist/apis/SearchRfoiApi.js +67 -131
- package/rfx/dist/models/OrderLink.js +4 -15
- package/rfx/dist/models/OrderLinkAllOf.js +1 -1
- package/rfx/dist/models/PaginatedObject.js +1 -1
- package/rfx/dist/models/PaginatedRfois.js +4 -15
- package/rfx/dist/models/PaginatedRfoisAllOf.js +1 -1
- package/rfx/dist/models/RfiCreationParameters.js +1 -1
- package/rfx/dist/models/Rfoi.js +3 -3
- package/rfx/dist/models/RfoiUpdateParameters.js +1 -1
- package/rfx/dist/models/UserLink.js +5 -16
- package/rfx/dist/models/UserLinkAllOf.js +2 -2
- package/rfx/dist/models/UserLinkAllOfCompany.js +1 -1
- package/rfx/dist/runtime.js +153 -329
- package/sale-offer/dist/apis/ManageSaleOfferApi.js +181 -298
- package/sale-offer/dist/apis/ManageSaleOfferStatusApi.js +54 -118
- package/sale-offer/dist/apis/SearchSaleOfferApi.js +154 -237
- package/sale-offer/dist/models/AnyDistributionMode.js +8 -19
- package/sale-offer/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/sale-offer/dist/models/Barcodes.js +1 -1
- package/sale-offer/dist/models/IdentifiedDistributionRange.js +3 -14
- package/sale-offer/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/sale-offer/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/sale-offer/dist/models/ImageVersions.js +1 -1
- package/sale-offer/dist/models/Images.js +2 -2
- package/sale-offer/dist/models/OwnerLink.js +5 -16
- package/sale-offer/dist/models/OwnerLinkAllOf.js +2 -2
- package/sale-offer/dist/models/OwnerLinkAllOfCompany.js +1 -1
- package/sale-offer/dist/models/PaginatedObject.js +1 -1
- package/sale-offer/dist/models/PaginatedSaleOffers.js +4 -15
- package/sale-offer/dist/models/PaginatedSaleOffersAllOf.js +1 -1
- package/sale-offer/dist/models/ProductImageLink.js +5 -16
- package/sale-offer/dist/models/ProductImageLinkAllOf.js +2 -2
- package/sale-offer/dist/models/ProductLink.js +5 -16
- package/sale-offer/dist/models/ProductLinkAllOf.js +2 -2
- package/sale-offer/dist/models/RangeDistributionMode.js +4 -15
- package/sale-offer/dist/models/RangeDistributionModeAllOf.js +1 -1
- package/sale-offer/dist/models/SaleOffer.js +9 -9
- package/sale-offer/dist/models/SaleOfferCreationImagesParameters.js +1 -1
- package/sale-offer/dist/models/SaleOfferCreationParameters.js +4 -4
- package/sale-offer/dist/models/SaleOfferJournal.js +1 -1
- package/sale-offer/dist/models/SaleOfferNewVersionParameters.js +4 -4
- package/sale-offer/dist/models/SaleOfferStatisticLink.js +4 -15
- package/sale-offer/dist/models/SaleOfferStatisticLinkAllOf.js +1 -1
- package/sale-offer/dist/models/Stock.js +1 -1
- package/sale-offer/dist/models/UnitaryDistributionMode.js +3 -14
- package/sale-offer/dist/runtime.js +153 -329
- package/sale-offer-log/dist/apis/SearchSaleOfferLogApi.js +70 -134
- package/sale-offer-log/dist/models/AnySaleOfferLog.js +4 -15
- package/sale-offer-log/dist/models/PaginatedObject.js +1 -1
- package/sale-offer-log/dist/models/PaginatedSaleOfferLogs.js +4 -15
- package/sale-offer-log/dist/models/PaginatedSaleOfferLogsAllOf.js +1 -1
- package/sale-offer-log/dist/models/SaleOfferLink.js +3 -14
- package/sale-offer-log/dist/models/SaleOfferLog.js +4 -15
- package/sale-offer-log/dist/models/SaleOfferLogAllOf.js +1 -1
- package/sale-offer-log/dist/runtime.js +153 -329
- package/servant/dist/apis/ManageServantApi.js +25 -87
- package/servant/dist/apis/ManageTaskApi.js +37 -99
- package/servant/dist/apis/SearchServantApi.js +46 -110
- package/servant/dist/models/Servant.js +2 -2
- package/servant/dist/models/Task.js +1 -1
- package/servant/dist/runtime.js +153 -329
- package/shipment/dist/apis/ManageOrderCarriageApi.js +54 -118
- package/shipment/dist/apis/ManageShipmentApi.js +96 -179
- package/shipment/dist/apis/SearchOrderCarriageApi.js +103 -186
- package/shipment/dist/models/CancelParcelResponse.js +1 -1
- package/shipment/dist/models/DeliveryStatus.js +1 -1
- package/shipment/dist/models/OrderCarriage.js +3 -3
- package/shipment/dist/models/OrderCarriageShipmentCreationParameters.js +1 -1
- package/shipment/dist/models/OrderLink.js +4 -15
- package/shipment/dist/models/OrderLinkAllOf.js +1 -1
- package/shipment/dist/models/PaginatedObject.js +1 -1
- package/shipment/dist/models/PaginatedOrderCarriages.js +4 -15
- package/shipment/dist/models/PaginatedOrderCarriagesAllOf.js +1 -1
- package/shipment/dist/models/Shipment.js +3 -3
- package/shipment/dist/models/ShipmentCreationParameters.js +1 -1
- package/shipment/dist/models/ShipmentError.js +1 -1
- package/shipment/dist/models/ShipmentParcel.js +4 -4
- package/shipment/dist/models/SkybillLink.js +4 -15
- package/shipment/dist/models/SkybillLinkAllOf.js +1 -1
- package/shipment/dist/runtime.js +153 -329
- package/shopping-cart/dist/apis/ManageCartApi.js +88 -171
- package/shopping-cart/dist/apis/ManageCartSubCartApi.js +125 -225
- package/shopping-cart/dist/apis/ManageCartSubCartLineApi.js +226 -362
- package/shopping-cart/dist/models/AnyIdentifiedDistributionMode.js +8 -19
- package/shopping-cart/dist/models/Barcodes.js +1 -1
- package/shopping-cart/dist/models/Cart.js +2 -2
- package/shopping-cart/dist/models/CartSubCart.js +4 -4
- package/shopping-cart/dist/models/CartSubCartLine.js +3 -3
- package/shopping-cart/dist/models/CartSubCartLineUpdateParameters.js +1 -1
- package/shopping-cart/dist/models/CartSubCartTransport.js +1 -1
- package/shopping-cart/dist/models/IdentifiedDistributionRange.js +3 -14
- package/shopping-cart/dist/models/IdentifiedRangeDistributionMode.js +4 -15
- package/shopping-cart/dist/models/IdentifiedRangeDistributionModeAllOf.js +1 -1
- package/shopping-cart/dist/models/ProductLink.js +5 -16
- package/shopping-cart/dist/models/ProductLinkAllOf.js +2 -2
- package/shopping-cart/dist/models/SaleOfferLink.js +7 -18
- package/shopping-cart/dist/models/SaleOfferLinkAllOf.js +4 -4
- package/shopping-cart/dist/models/SellerLink.js +5 -16
- package/shopping-cart/dist/models/SellerLinkAllOf.js +2 -2
- package/shopping-cart/dist/models/ShoppedOffer.js +1 -1
- package/shopping-cart/dist/models/Stock.js +1 -1
- package/shopping-cart/dist/models/UnitaryDistributionMode.js +3 -14
- package/shopping-cart/dist/runtime.js +153 -329
- package/statistic/dist/apis/SearchSaleOfferStatisticsApi.js +61 -125
- package/statistic/dist/models/PaginatedObject.js +1 -1
- package/statistic/dist/models/PaginatedSaleOfferStatistics.js +4 -15
- package/statistic/dist/models/PaginatedSaleOfferStatisticsAllOf.js +1 -1
- package/statistic/dist/models/SaleOfferStatistic.js +2 -2
- package/statistic/dist/models/UserLink.js +4 -15
- package/statistic/dist/models/UserLinkAllOf.js +1 -1
- package/statistic/dist/runtime.js +153 -329
- package/subscription/dist/apis/ManageSubscriptionApi.js +135 -235
- package/subscription/dist/apis/ManageSubscriptionPlanApi.js +54 -118
- package/subscription/dist/apis/SearchSubscriptionApi.js +82 -146
- package/subscription/dist/apis/SearchSubscriptionPlanApi.js +97 -180
- package/subscription/dist/apis/SearchSubscriptionPlanFeatureApi.js +46 -110
- package/subscription/dist/models/PaginatedObject.js +1 -1
- package/subscription/dist/models/PaginatedSubscriptions.js +5 -16
- package/subscription/dist/models/PaginatedSubscriptionsAllOf.js +2 -2
- package/subscription/dist/models/SubscriberLink.js +4 -15
- package/subscription/dist/models/SubscriberLinkAllOf.js +1 -1
- package/subscription/dist/models/Subscription.js +3 -3
- package/subscription/dist/models/SubscriptionCreationParameters.js +1 -1
- package/subscription/dist/models/SubscriptionPlan.js +3 -3
- package/subscription/dist/models/SubscriptionPlanFeature.js +2 -2
- package/subscription/dist/models/SubscriptionPlanLink.js +5 -16
- package/subscription/dist/models/SubscriptionPlanLinkAllOf.js +2 -2
- package/subscription/dist/models/SubscriptionPlanUpdateParameters.js +2 -2
- package/subscription/dist/models/SubscriptionUpdateParameters.js +2 -2
- package/subscription/dist/runtime.js +153 -329
- package/thread/dist/apis/ManageThreadCommentApi.js +107 -190
- package/thread/dist/apis/SearchThreadApi.js +49 -113
- package/thread/dist/apis/SearchThreadCommentApi.js +58 -122
- package/thread/dist/models/AuthorLink.js +3 -14
- package/thread/dist/models/Comment.js +2 -2
- package/thread/dist/models/CommentCreationParameters.js +3 -14
- package/thread/dist/models/PaginatedComments.js +4 -15
- package/thread/dist/models/PaginatedCommentsAllOf.js +1 -1
- package/thread/dist/models/PaginatedObject.js +1 -1
- package/thread/dist/models/Thread.js +1 -1
- package/thread/dist/models/ThreadLink.js +3 -14
- package/thread/dist/runtime.js +153 -329
- package/ubo/dist/apis/ManageUboDeclarationApi.js +51 -115
- package/ubo/dist/apis/SearchUboDeclarationApi.js +49 -113
- package/ubo/dist/models/Address.js +2 -2
- package/ubo/dist/models/Ubo.js +3 -3
- package/ubo/dist/models/UboDeclaration.js +2 -2
- package/ubo/dist/models/UboDeclarationCreationOrUpdateParameters.js +2 -2
- package/ubo/dist/runtime.js +153 -329
- package/user/dist/apis/ManagePasswordApi.js +73 -152
- package/user/dist/apis/ManageUserApi.js +374 -595
- package/user/dist/apis/ManageUserBankAccountApi.js +101 -184
- package/user/dist/apis/ManageUserDocumentApi.js +198 -298
- package/user/dist/apis/ManageUserFavoriteLaboratoryStoreApi.js +150 -263
- package/user/dist/apis/ManageUserRestrictionApi.js +296 -477
- package/user/dist/apis/ManageUserRoleApi.js +54 -118
- package/user/dist/apis/ManageUserRuleApi.js +91 -172
- package/user/dist/apis/ManageUserSocialNetworksApi.js +101 -184
- package/user/dist/apis/ManageUserTransportApi.js +54 -118
- package/user/dist/apis/SearchUserApi.js +310 -469
- package/user/dist/apis/SearchUserDocumentApi.js +255 -410
- package/user/dist/apis/SearchUserFavoriteLaboratoryStoreApi.js +91 -174
- package/user/dist/apis/SearchUserFeatureApi.js +46 -110
- package/user/dist/apis/SearchUserRestrictionApi.js +181 -302
- package/user/dist/apis/SearchUserRuleApi.js +49 -113
- package/user/dist/apis/SearchUserSocialNetworksApi.js +91 -174
- package/user/dist/apis/SearchUserTransportApi.js +91 -174
- package/user/dist/models/Address.js +1 -1
- package/user/dist/models/MyPasswordUpdateParameters.js +1 -1
- package/user/dist/models/NotificationTypeLink.js +5 -16
- package/user/dist/models/NotificationTypeLinkAllOf.js +2 -2
- package/user/dist/models/PaginatedObject.js +1 -1
- package/user/dist/models/PaginatedUsers.js +5 -16
- package/user/dist/models/PaginatedUsersAllOf.js +2 -2
- package/user/dist/models/ProductTypeLink.js +4 -15
- package/user/dist/models/ProductTypeLinkAllOf.js +1 -1
- package/user/dist/models/SomeonePasswordUpdateParameters.js +1 -1
- package/user/dist/models/ThreadLink.js +3 -14
- package/user/dist/models/User.js +13 -13
- package/user/dist/models/UserBankAccountCreationParameters.js +1 -1
- package/user/dist/models/UserBankAccountLink.js +4 -15
- package/user/dist/models/UserBankAccountLinkAllOf.js +1 -1
- package/user/dist/models/UserCompany.js +3 -3
- package/user/dist/models/UserCreationParameters.js +2 -2
- package/user/dist/models/UserCustomCommissions.js +1 -1
- package/user/dist/models/UserCustomCommissionsUpdateParameters.js +1 -1
- package/user/dist/models/UserDelegatedServices.js +1 -1
- package/user/dist/models/UserDocument.js +2 -2
- package/user/dist/models/UserDocumentCreationParameters.js +1 -1
- package/user/dist/models/UserFavoriteLaboratoryStoreLink.js +4 -15
- package/user/dist/models/UserFavoriteLaboratoryStoreLinkAllOf.js +1 -1
- package/user/dist/models/UserFeature.js +1 -1
- package/user/dist/models/UserForbiddenSellerLink.js +4 -15
- package/user/dist/models/UserForbiddenSellerLinkAllOf.js +1 -1
- package/user/dist/models/UserJournal.js +1 -1
- package/user/dist/models/UserMangopayTarget.js +4 -15
- package/user/dist/models/UserMangopayTargetAllOf.js +1 -1
- package/user/dist/models/UserRestrictedNotificationTypeCreationParameter.js +1 -1
- package/user/dist/models/UserRule.js +4 -4
- package/user/dist/models/UserRuleCreationParameters.js +3 -3
- package/user/dist/models/UserSocialNetwork.js +1 -1
- package/user/dist/models/UserThreads.js +2 -2
- package/user/dist/models/UserUpdateParameters.js +6 -6
- package/user/dist/models/UserWalletLink.js +4 -15
- package/user/dist/models/UserWalletLinkAllOf.js +1 -1
- package/user/dist/models/UserWallets.js +2 -2
- package/user/dist/runtime.js +153 -329
- package/wish/dist/apis/ManageWishApi.js +113 -209
- package/wish/dist/apis/SearchProductEnthusiasmApi.js +61 -125
- package/wish/dist/apis/SearchWishApi.js +118 -201
- package/wish/dist/models/Barcodes.js +1 -1
- package/wish/dist/models/DesiredSellerLink.js +5 -16
- package/wish/dist/models/DesiredSellerLinkAllOf.js +2 -2
- package/wish/dist/models/OwnerLink.js +5 -16
- package/wish/dist/models/OwnerLinkAllOf.js +2 -2
- package/wish/dist/models/OwnerLinkAllOfCompany.js +1 -1
- package/wish/dist/models/PaginatedObject.js +1 -1
- package/wish/dist/models/PaginatedProductEnthusiasms.js +4 -15
- package/wish/dist/models/PaginatedProductEnthusiasmsAllOf.js +1 -1
- package/wish/dist/models/PaginatedWishes.js +4 -15
- package/wish/dist/models/PaginatedWishesAllOf.js +1 -1
- package/wish/dist/models/ProductEnthusiasm.js +2 -2
- package/wish/dist/models/ProductLink.js +5 -16
- package/wish/dist/models/ProductLinkAllOf.js +2 -2
- package/wish/dist/models/Wish.js +4 -4
- package/wish/dist/models/WishCreationParameters.js +1 -1
- package/wish/dist/models/WishUpdateParameters.js +2 -2
- 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,898 +21,676 @@ 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.GetInventoryOverstockProductsOrderByEnum = exports.GetInventoryMisalignedProductsOrderByEnum = exports.GetInventoryActiveProductsOrderByEnum = exports.GetCurrentInventoryOverstockProductsOrderByEnum = exports.GetCurrentInventoryMisalignedProductsOrderByEnum = exports.GetCurrentInventoryActiveProductsOrderByEnum = exports.SearchInventoryApi = void 0;
|
|
66
|
-
|
|
67
|
-
|
|
26
|
+
const runtime_1 = require("../runtime");
|
|
27
|
+
const models_1 = require("../models");
|
|
68
28
|
/**
|
|
69
29
|
* no description
|
|
70
30
|
*/
|
|
71
|
-
|
|
72
|
-
__extends(SearchInventoryApi, _super);
|
|
73
|
-
function SearchInventoryApi() {
|
|
74
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
|
-
}
|
|
31
|
+
class SearchInventoryApi extends runtime_1.BaseAPI {
|
|
76
32
|
/**
|
|
77
33
|
* Search products with params for current user
|
|
78
34
|
*/
|
|
79
|
-
|
|
80
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
token = this.configuration.accessToken;
|
|
110
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
111
|
-
if (tokenString) {
|
|
112
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
_a.label = 1;
|
|
116
|
-
case 1:
|
|
117
|
-
_a.trys.push([1, 3, , 4]);
|
|
118
|
-
return [4 /*yield*/, this.request({
|
|
119
|
-
path: "/inventories/me/active-products",
|
|
120
|
-
method: 'GET',
|
|
121
|
-
headers: headerParameters,
|
|
122
|
-
query: queryParameters,
|
|
123
|
-
})];
|
|
124
|
-
case 2:
|
|
125
|
-
response = _a.sent();
|
|
126
|
-
contentType = response.headers.get("content-type");
|
|
127
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
128
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedActiveProductsFromJSON(jsonValue); })];
|
|
129
|
-
}
|
|
130
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
131
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
// TODO : Better handling of others application types
|
|
135
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
136
|
-
}
|
|
137
|
-
return [3 /*break*/, 4];
|
|
138
|
-
case 3:
|
|
139
|
-
response_1 = _a.sent();
|
|
140
|
-
console.debug(response_1);
|
|
141
|
-
throw response_1;
|
|
142
|
-
case 4: return [2 /*return*/];
|
|
35
|
+
getCurrentInventoryActiveProductsRaw(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters.q !== undefined) {
|
|
39
|
+
queryParameters['q'] = requestParameters.q;
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters.labEq) {
|
|
42
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters.ptEq !== undefined) {
|
|
45
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
46
|
+
}
|
|
47
|
+
if (requestParameters.orderBy !== undefined) {
|
|
48
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters.p !== undefined) {
|
|
51
|
+
queryParameters['p'] = requestParameters.p;
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters.pp !== undefined) {
|
|
54
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
55
|
+
}
|
|
56
|
+
const headerParameters = {};
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
59
|
+
}
|
|
60
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
61
|
+
const token = this.configuration.accessToken;
|
|
62
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
63
|
+
if (tokenString) {
|
|
64
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
143
65
|
}
|
|
144
|
-
}
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
const response = yield this.request({
|
|
69
|
+
path: `/inventories/me/active-products`,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
});
|
|
74
|
+
const contentType = response.headers.get("content-type");
|
|
75
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
76
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedActiveProductsFromJSON(jsonValue));
|
|
77
|
+
}
|
|
78
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
79
|
+
return new runtime_1.TextApiResponse(response);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
// TODO : Better handling of others application types
|
|
83
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
catch (response) {
|
|
87
|
+
console.debug(response);
|
|
88
|
+
throw response;
|
|
89
|
+
}
|
|
145
90
|
});
|
|
146
|
-
}
|
|
91
|
+
}
|
|
147
92
|
/**
|
|
148
93
|
* Search products with params for current user
|
|
149
94
|
*/
|
|
150
|
-
|
|
151
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
152
|
-
|
|
153
|
-
return
|
|
154
|
-
switch (_a.label) {
|
|
155
|
-
case 0: return [4 /*yield*/, this.getCurrentInventoryActiveProductsRaw(requestParameters)];
|
|
156
|
-
case 1:
|
|
157
|
-
response = _a.sent();
|
|
158
|
-
return [4 /*yield*/, response.value()];
|
|
159
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
95
|
+
getCurrentInventoryActiveProducts(requestParameters) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const response = yield this.getCurrentInventoryActiveProductsRaw(requestParameters);
|
|
98
|
+
return yield response.value();
|
|
162
99
|
});
|
|
163
|
-
}
|
|
100
|
+
}
|
|
164
101
|
/**
|
|
165
102
|
* Get product\'s where an action is required
|
|
166
103
|
*/
|
|
167
|
-
|
|
168
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
case 2:
|
|
213
|
-
response = _a.sent();
|
|
214
|
-
contentType = response.headers.get("content-type");
|
|
215
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
216
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedMisalignedProductsFromJSON(jsonValue); })];
|
|
217
|
-
}
|
|
218
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
219
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
// TODO : Better handling of others application types
|
|
223
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
224
|
-
}
|
|
225
|
-
return [3 /*break*/, 4];
|
|
226
|
-
case 3:
|
|
227
|
-
response_2 = _a.sent();
|
|
228
|
-
console.debug(response_2);
|
|
229
|
-
throw response_2;
|
|
230
|
-
case 4: return [2 /*return*/];
|
|
104
|
+
getCurrentInventoryMisalignedProductsRaw(requestParameters) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const queryParameters = {};
|
|
107
|
+
if (requestParameters.q !== undefined) {
|
|
108
|
+
queryParameters['q'] = requestParameters.q;
|
|
109
|
+
}
|
|
110
|
+
if (requestParameters.labEq) {
|
|
111
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters.ptEq !== undefined) {
|
|
114
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
115
|
+
}
|
|
116
|
+
if (requestParameters.orderBy !== undefined) {
|
|
117
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
118
|
+
}
|
|
119
|
+
if (requestParameters.p !== undefined) {
|
|
120
|
+
queryParameters['p'] = requestParameters.p;
|
|
121
|
+
}
|
|
122
|
+
if (requestParameters.pp !== undefined) {
|
|
123
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
124
|
+
}
|
|
125
|
+
const headerParameters = {};
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
128
|
+
}
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
try {
|
|
137
|
+
const response = yield this.request({
|
|
138
|
+
path: `/inventories/me/misaligned-products`,
|
|
139
|
+
method: 'GET',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
});
|
|
143
|
+
const contentType = response.headers.get("content-type");
|
|
144
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
145
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedMisalignedProductsFromJSON(jsonValue));
|
|
146
|
+
}
|
|
147
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
148
|
+
return new runtime_1.TextApiResponse(response);
|
|
231
149
|
}
|
|
232
|
-
|
|
150
|
+
else {
|
|
151
|
+
// TODO : Better handling of others application types
|
|
152
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
catch (response) {
|
|
156
|
+
console.debug(response);
|
|
157
|
+
throw response;
|
|
158
|
+
}
|
|
233
159
|
});
|
|
234
|
-
}
|
|
160
|
+
}
|
|
235
161
|
/**
|
|
236
162
|
* Get product\'s where an action is required
|
|
237
163
|
*/
|
|
238
|
-
|
|
239
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
-
|
|
241
|
-
return
|
|
242
|
-
switch (_a.label) {
|
|
243
|
-
case 0: return [4 /*yield*/, this.getCurrentInventoryMisalignedProductsRaw(requestParameters)];
|
|
244
|
-
case 1:
|
|
245
|
-
response = _a.sent();
|
|
246
|
-
return [4 /*yield*/, response.value()];
|
|
247
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
248
|
-
}
|
|
249
|
-
});
|
|
164
|
+
getCurrentInventoryMisalignedProducts(requestParameters) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const response = yield this.getCurrentInventoryMisalignedProductsRaw(requestParameters);
|
|
167
|
+
return yield response.value();
|
|
250
168
|
});
|
|
251
|
-
}
|
|
169
|
+
}
|
|
252
170
|
/**
|
|
253
171
|
* Get products that the pharmacian should destock
|
|
254
172
|
*/
|
|
255
|
-
|
|
256
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
headers: headerParameters,
|
|
310
|
-
query: queryParameters,
|
|
311
|
-
})];
|
|
312
|
-
case 2:
|
|
313
|
-
response = _a.sent();
|
|
314
|
-
contentType = response.headers.get("content-type");
|
|
315
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
316
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedOverstockProductsFromJSON(jsonValue); })];
|
|
317
|
-
}
|
|
318
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
319
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
// TODO : Better handling of others application types
|
|
323
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
324
|
-
}
|
|
325
|
-
return [3 /*break*/, 4];
|
|
326
|
-
case 3:
|
|
327
|
-
response_3 = _a.sent();
|
|
328
|
-
console.debug(response_3);
|
|
329
|
-
throw response_3;
|
|
330
|
-
case 4: return [2 /*return*/];
|
|
173
|
+
getCurrentInventoryOverstockProductsRaw(requestParameters) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
if (requestParameters.q !== undefined) {
|
|
177
|
+
queryParameters['q'] = requestParameters.q;
|
|
178
|
+
}
|
|
179
|
+
if (requestParameters.labEq) {
|
|
180
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters.ptEq !== undefined) {
|
|
183
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
184
|
+
}
|
|
185
|
+
if (requestParameters.blEq !== undefined) {
|
|
186
|
+
queryParameters['bl[eq]'] = requestParameters.blEq;
|
|
187
|
+
}
|
|
188
|
+
if (requestParameters.forecastGte !== undefined) {
|
|
189
|
+
queryParameters['forecast[gte]'] = requestParameters.forecastGte;
|
|
190
|
+
}
|
|
191
|
+
if (requestParameters.forecastLte !== undefined) {
|
|
192
|
+
queryParameters['forecast[lte]'] = requestParameters.forecastLte;
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters.forecastPr !== undefined) {
|
|
195
|
+
queryParameters['forecast[pr]'] = requestParameters.forecastPr;
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters.orderBy !== undefined) {
|
|
198
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
199
|
+
}
|
|
200
|
+
if (requestParameters.p !== undefined) {
|
|
201
|
+
queryParameters['p'] = requestParameters.p;
|
|
202
|
+
}
|
|
203
|
+
if (requestParameters.pp !== undefined) {
|
|
204
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
205
|
+
}
|
|
206
|
+
const headerParameters = {};
|
|
207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
209
|
+
}
|
|
210
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
211
|
+
const token = this.configuration.accessToken;
|
|
212
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
213
|
+
if (tokenString) {
|
|
214
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
try {
|
|
218
|
+
const response = yield this.request({
|
|
219
|
+
path: `/inventories/me/overstock-products`,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
});
|
|
224
|
+
const contentType = response.headers.get("content-type");
|
|
225
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
226
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedOverstockProductsFromJSON(jsonValue));
|
|
331
227
|
}
|
|
332
|
-
|
|
228
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
229
|
+
return new runtime_1.TextApiResponse(response);
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
// TODO : Better handling of others application types
|
|
233
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
catch (response) {
|
|
237
|
+
console.debug(response);
|
|
238
|
+
throw response;
|
|
239
|
+
}
|
|
333
240
|
});
|
|
334
|
-
}
|
|
241
|
+
}
|
|
335
242
|
/**
|
|
336
243
|
* Get products that the pharmacian should destock
|
|
337
244
|
*/
|
|
338
|
-
|
|
339
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
-
|
|
341
|
-
return
|
|
342
|
-
switch (_a.label) {
|
|
343
|
-
case 0: return [4 /*yield*/, this.getCurrentInventoryOverstockProductsRaw(requestParameters)];
|
|
344
|
-
case 1:
|
|
345
|
-
response = _a.sent();
|
|
346
|
-
return [4 /*yield*/, response.value()];
|
|
347
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
348
|
-
}
|
|
349
|
-
});
|
|
245
|
+
getCurrentInventoryOverstockProducts(requestParameters) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
const response = yield this.getCurrentInventoryOverstockProductsRaw(requestParameters);
|
|
248
|
+
return yield response.value();
|
|
350
249
|
});
|
|
351
|
-
}
|
|
250
|
+
}
|
|
352
251
|
/**
|
|
353
252
|
* Get advices statistics
|
|
354
253
|
*/
|
|
355
|
-
|
|
356
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.StatisticsFromJSON(jsonValue); })];
|
|
387
|
-
}
|
|
388
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
389
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
// TODO : Better handling of others application types
|
|
393
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
394
|
-
}
|
|
395
|
-
return [3 /*break*/, 4];
|
|
396
|
-
case 3:
|
|
397
|
-
response_4 = _a.sent();
|
|
398
|
-
console.debug(response_4);
|
|
399
|
-
throw response_4;
|
|
400
|
-
case 4: return [2 /*return*/];
|
|
254
|
+
getCurrentInventoryStatisticsRaw() {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
const queryParameters = {};
|
|
257
|
+
const headerParameters = {};
|
|
258
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
259
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
260
|
+
}
|
|
261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
262
|
+
const token = this.configuration.accessToken;
|
|
263
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
264
|
+
if (tokenString) {
|
|
265
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
try {
|
|
269
|
+
const response = yield this.request({
|
|
270
|
+
path: `/inventories/me/statistics`,
|
|
271
|
+
method: 'GET',
|
|
272
|
+
headers: headerParameters,
|
|
273
|
+
query: queryParameters,
|
|
274
|
+
});
|
|
275
|
+
const contentType = response.headers.get("content-type");
|
|
276
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
277
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.StatisticsFromJSON(jsonValue));
|
|
278
|
+
}
|
|
279
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
280
|
+
return new runtime_1.TextApiResponse(response);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
// TODO : Better handling of others application types
|
|
284
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
401
285
|
}
|
|
402
|
-
}
|
|
286
|
+
}
|
|
287
|
+
catch (response) {
|
|
288
|
+
console.debug(response);
|
|
289
|
+
throw response;
|
|
290
|
+
}
|
|
403
291
|
});
|
|
404
|
-
}
|
|
292
|
+
}
|
|
405
293
|
/**
|
|
406
294
|
* Get advices statistics
|
|
407
295
|
*/
|
|
408
|
-
|
|
409
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
410
|
-
|
|
411
|
-
return
|
|
412
|
-
switch (_a.label) {
|
|
413
|
-
case 0: return [4 /*yield*/, this.getCurrentInventoryStatisticsRaw()];
|
|
414
|
-
case 1:
|
|
415
|
-
response = _a.sent();
|
|
416
|
-
return [4 /*yield*/, response.value()];
|
|
417
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
418
|
-
}
|
|
419
|
-
});
|
|
296
|
+
getCurrentInventoryStatistics() {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const response = yield this.getCurrentInventoryStatisticsRaw();
|
|
299
|
+
return yield response.value();
|
|
420
300
|
});
|
|
421
|
-
}
|
|
301
|
+
}
|
|
422
302
|
/**
|
|
423
303
|
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
424
304
|
* Get synchronization state of inventory
|
|
425
305
|
*/
|
|
426
|
-
|
|
427
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
token = this.configuration.accessToken;
|
|
439
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
440
|
-
if (tokenString) {
|
|
441
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
_a.label = 1;
|
|
445
|
-
case 1:
|
|
446
|
-
_a.trys.push([1, 3, , 4]);
|
|
447
|
-
return [4 /*yield*/, this.request({
|
|
448
|
-
path: "/inventories/me/synchroneity",
|
|
449
|
-
method: 'GET',
|
|
450
|
-
headers: headerParameters,
|
|
451
|
-
query: queryParameters,
|
|
452
|
-
})];
|
|
453
|
-
case 2:
|
|
454
|
-
response = _a.sent();
|
|
455
|
-
contentType = response.headers.get("content-type");
|
|
456
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
457
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.SynchroneityFromJSON(jsonValue); })];
|
|
458
|
-
}
|
|
459
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
460
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
// TODO : Better handling of others application types
|
|
464
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
465
|
-
}
|
|
466
|
-
return [3 /*break*/, 4];
|
|
467
|
-
case 3:
|
|
468
|
-
response_5 = _a.sent();
|
|
469
|
-
console.debug(response_5);
|
|
470
|
-
throw response_5;
|
|
471
|
-
case 4: return [2 /*return*/];
|
|
306
|
+
getCurrentInventorySynchroneityRaw() {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const queryParameters = {};
|
|
309
|
+
const headerParameters = {};
|
|
310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
311
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
312
|
+
}
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
316
|
+
if (tokenString) {
|
|
317
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
472
318
|
}
|
|
473
|
-
}
|
|
319
|
+
}
|
|
320
|
+
try {
|
|
321
|
+
const response = yield this.request({
|
|
322
|
+
path: `/inventories/me/synchroneity`,
|
|
323
|
+
method: 'GET',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
});
|
|
327
|
+
const contentType = response.headers.get("content-type");
|
|
328
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
329
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.SynchroneityFromJSON(jsonValue));
|
|
330
|
+
}
|
|
331
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
332
|
+
return new runtime_1.TextApiResponse(response);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
// TODO : Better handling of others application types
|
|
336
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
catch (response) {
|
|
340
|
+
console.debug(response);
|
|
341
|
+
throw response;
|
|
342
|
+
}
|
|
474
343
|
});
|
|
475
|
-
}
|
|
344
|
+
}
|
|
476
345
|
/**
|
|
477
346
|
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
478
347
|
* Get synchronization state of inventory
|
|
479
348
|
*/
|
|
480
|
-
|
|
481
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
-
|
|
483
|
-
return
|
|
484
|
-
switch (_a.label) {
|
|
485
|
-
case 0: return [4 /*yield*/, this.getCurrentInventorySynchroneityRaw()];
|
|
486
|
-
case 1:
|
|
487
|
-
response = _a.sent();
|
|
488
|
-
return [4 /*yield*/, response.value()];
|
|
489
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
490
|
-
}
|
|
491
|
-
});
|
|
349
|
+
getCurrentInventorySynchroneity() {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
const response = yield this.getCurrentInventorySynchroneityRaw();
|
|
352
|
+
return yield response.value();
|
|
492
353
|
});
|
|
493
|
-
}
|
|
354
|
+
}
|
|
494
355
|
/**
|
|
495
356
|
* Search products with params for an inventory
|
|
496
357
|
*/
|
|
497
|
-
|
|
498
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
case 2:
|
|
546
|
-
response = _a.sent();
|
|
547
|
-
contentType = response.headers.get("content-type");
|
|
548
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
549
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedActiveProductsFromJSON(jsonValue); })];
|
|
550
|
-
}
|
|
551
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
552
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
553
|
-
}
|
|
554
|
-
else {
|
|
555
|
-
// TODO : Better handling of others application types
|
|
556
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
557
|
-
}
|
|
558
|
-
return [3 /*break*/, 4];
|
|
559
|
-
case 3:
|
|
560
|
-
response_6 = _a.sent();
|
|
561
|
-
console.debug(response_6);
|
|
562
|
-
throw response_6;
|
|
563
|
-
case 4: return [2 /*return*/];
|
|
358
|
+
getInventoryActiveProductsRaw(requestParameters) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
361
|
+
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryActiveProducts.');
|
|
362
|
+
}
|
|
363
|
+
const queryParameters = {};
|
|
364
|
+
if (requestParameters.q !== undefined) {
|
|
365
|
+
queryParameters['q'] = requestParameters.q;
|
|
366
|
+
}
|
|
367
|
+
if (requestParameters.labEq) {
|
|
368
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
369
|
+
}
|
|
370
|
+
if (requestParameters.ptEq !== undefined) {
|
|
371
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
372
|
+
}
|
|
373
|
+
if (requestParameters.orderBy !== undefined) {
|
|
374
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
375
|
+
}
|
|
376
|
+
if (requestParameters.p !== undefined) {
|
|
377
|
+
queryParameters['p'] = requestParameters.p;
|
|
378
|
+
}
|
|
379
|
+
if (requestParameters.pp !== undefined) {
|
|
380
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
381
|
+
}
|
|
382
|
+
const headerParameters = {};
|
|
383
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
384
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
385
|
+
}
|
|
386
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
387
|
+
const token = this.configuration.accessToken;
|
|
388
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
389
|
+
if (tokenString) {
|
|
390
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
try {
|
|
394
|
+
const response = yield this.request({
|
|
395
|
+
path: `/inventories/{inventoryId}/active-products`.replace(`{${"inventoryId"}}`, encodeURIComponent(String(requestParameters.inventoryId))),
|
|
396
|
+
method: 'GET',
|
|
397
|
+
headers: headerParameters,
|
|
398
|
+
query: queryParameters,
|
|
399
|
+
});
|
|
400
|
+
const contentType = response.headers.get("content-type");
|
|
401
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
402
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedActiveProductsFromJSON(jsonValue));
|
|
403
|
+
}
|
|
404
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
405
|
+
return new runtime_1.TextApiResponse(response);
|
|
564
406
|
}
|
|
565
|
-
|
|
407
|
+
else {
|
|
408
|
+
// TODO : Better handling of others application types
|
|
409
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
catch (response) {
|
|
413
|
+
console.debug(response);
|
|
414
|
+
throw response;
|
|
415
|
+
}
|
|
566
416
|
});
|
|
567
|
-
}
|
|
417
|
+
}
|
|
568
418
|
/**
|
|
569
419
|
* Search products with params for an inventory
|
|
570
420
|
*/
|
|
571
|
-
|
|
572
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
573
|
-
|
|
574
|
-
return
|
|
575
|
-
switch (_a.label) {
|
|
576
|
-
case 0: return [4 /*yield*/, this.getInventoryActiveProductsRaw(requestParameters)];
|
|
577
|
-
case 1:
|
|
578
|
-
response = _a.sent();
|
|
579
|
-
return [4 /*yield*/, response.value()];
|
|
580
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
581
|
-
}
|
|
582
|
-
});
|
|
421
|
+
getInventoryActiveProducts(requestParameters) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const response = yield this.getInventoryActiveProductsRaw(requestParameters);
|
|
424
|
+
return yield response.value();
|
|
583
425
|
});
|
|
584
|
-
}
|
|
426
|
+
}
|
|
585
427
|
/**
|
|
586
428
|
* Get product\'s where an action is required
|
|
587
429
|
*/
|
|
588
|
-
|
|
589
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
token = this.configuration.accessToken;
|
|
622
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
623
|
-
if (tokenString) {
|
|
624
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
_a.label = 1;
|
|
628
|
-
case 1:
|
|
629
|
-
_a.trys.push([1, 3, , 4]);
|
|
630
|
-
return [4 /*yield*/, this.request({
|
|
631
|
-
path: "/inventories/{inventoryId}/misaligned-products".replace("{" + "inventoryId" + "}", encodeURIComponent(String(requestParameters.inventoryId))),
|
|
632
|
-
method: 'GET',
|
|
633
|
-
headers: headerParameters,
|
|
634
|
-
query: queryParameters,
|
|
635
|
-
})];
|
|
636
|
-
case 2:
|
|
637
|
-
response = _a.sent();
|
|
638
|
-
contentType = response.headers.get("content-type");
|
|
639
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
640
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedMisalignedProductsFromJSON(jsonValue); })];
|
|
641
|
-
}
|
|
642
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
643
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
// TODO : Better handling of others application types
|
|
647
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
648
|
-
}
|
|
649
|
-
return [3 /*break*/, 4];
|
|
650
|
-
case 3:
|
|
651
|
-
response_7 = _a.sent();
|
|
652
|
-
console.debug(response_7);
|
|
653
|
-
throw response_7;
|
|
654
|
-
case 4: return [2 /*return*/];
|
|
430
|
+
getInventoryMisalignedProductsRaw(requestParameters) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
433
|
+
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryMisalignedProducts.');
|
|
434
|
+
}
|
|
435
|
+
const queryParameters = {};
|
|
436
|
+
if (requestParameters.q !== undefined) {
|
|
437
|
+
queryParameters['q'] = requestParameters.q;
|
|
438
|
+
}
|
|
439
|
+
if (requestParameters.labEq) {
|
|
440
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
441
|
+
}
|
|
442
|
+
if (requestParameters.ptEq !== undefined) {
|
|
443
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
444
|
+
}
|
|
445
|
+
if (requestParameters.orderBy !== undefined) {
|
|
446
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
447
|
+
}
|
|
448
|
+
if (requestParameters.p !== undefined) {
|
|
449
|
+
queryParameters['p'] = requestParameters.p;
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters.pp !== undefined) {
|
|
452
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
453
|
+
}
|
|
454
|
+
const headerParameters = {};
|
|
455
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
456
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
457
|
+
}
|
|
458
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
459
|
+
const token = this.configuration.accessToken;
|
|
460
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
461
|
+
if (tokenString) {
|
|
462
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
655
463
|
}
|
|
656
|
-
}
|
|
464
|
+
}
|
|
465
|
+
try {
|
|
466
|
+
const response = yield this.request({
|
|
467
|
+
path: `/inventories/{inventoryId}/misaligned-products`.replace(`{${"inventoryId"}}`, encodeURIComponent(String(requestParameters.inventoryId))),
|
|
468
|
+
method: 'GET',
|
|
469
|
+
headers: headerParameters,
|
|
470
|
+
query: queryParameters,
|
|
471
|
+
});
|
|
472
|
+
const contentType = response.headers.get("content-type");
|
|
473
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
474
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedMisalignedProductsFromJSON(jsonValue));
|
|
475
|
+
}
|
|
476
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
477
|
+
return new runtime_1.TextApiResponse(response);
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
// TODO : Better handling of others application types
|
|
481
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
catch (response) {
|
|
485
|
+
console.debug(response);
|
|
486
|
+
throw response;
|
|
487
|
+
}
|
|
657
488
|
});
|
|
658
|
-
}
|
|
489
|
+
}
|
|
659
490
|
/**
|
|
660
491
|
* Get product\'s where an action is required
|
|
661
492
|
*/
|
|
662
|
-
|
|
663
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
664
|
-
|
|
665
|
-
return
|
|
666
|
-
switch (_a.label) {
|
|
667
|
-
case 0: return [4 /*yield*/, this.getInventoryMisalignedProductsRaw(requestParameters)];
|
|
668
|
-
case 1:
|
|
669
|
-
response = _a.sent();
|
|
670
|
-
return [4 /*yield*/, response.value()];
|
|
671
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
672
|
-
}
|
|
673
|
-
});
|
|
493
|
+
getInventoryMisalignedProducts(requestParameters) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
const response = yield this.getInventoryMisalignedProductsRaw(requestParameters);
|
|
496
|
+
return yield response.value();
|
|
674
497
|
});
|
|
675
|
-
}
|
|
498
|
+
}
|
|
676
499
|
/**
|
|
677
500
|
* Get products that the pharmacian should destock
|
|
678
501
|
*/
|
|
679
|
-
|
|
680
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
case 2:
|
|
740
|
-
response = _a.sent();
|
|
741
|
-
contentType = response.headers.get("content-type");
|
|
742
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
743
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.PaginatedOverstockProductsFromJSON(jsonValue); })];
|
|
744
|
-
}
|
|
745
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
746
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
747
|
-
}
|
|
748
|
-
else {
|
|
749
|
-
// TODO : Better handling of others application types
|
|
750
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
751
|
-
}
|
|
752
|
-
return [3 /*break*/, 4];
|
|
753
|
-
case 3:
|
|
754
|
-
response_8 = _a.sent();
|
|
755
|
-
console.debug(response_8);
|
|
756
|
-
throw response_8;
|
|
757
|
-
case 4: return [2 /*return*/];
|
|
502
|
+
getInventoryOverstockProductsRaw(requestParameters) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
505
|
+
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryOverstockProducts.');
|
|
506
|
+
}
|
|
507
|
+
const queryParameters = {};
|
|
508
|
+
if (requestParameters.q !== undefined) {
|
|
509
|
+
queryParameters['q'] = requestParameters.q;
|
|
510
|
+
}
|
|
511
|
+
if (requestParameters.labEq) {
|
|
512
|
+
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
513
|
+
}
|
|
514
|
+
if (requestParameters.ptEq !== undefined) {
|
|
515
|
+
queryParameters['pt[eq]'] = requestParameters.ptEq;
|
|
516
|
+
}
|
|
517
|
+
if (requestParameters.blEq !== undefined) {
|
|
518
|
+
queryParameters['bl[eq]'] = requestParameters.blEq;
|
|
519
|
+
}
|
|
520
|
+
if (requestParameters.forecastGte !== undefined) {
|
|
521
|
+
queryParameters['forecast[gte]'] = requestParameters.forecastGte;
|
|
522
|
+
}
|
|
523
|
+
if (requestParameters.forecastLte !== undefined) {
|
|
524
|
+
queryParameters['forecast[lte]'] = requestParameters.forecastLte;
|
|
525
|
+
}
|
|
526
|
+
if (requestParameters.forecastPr !== undefined) {
|
|
527
|
+
queryParameters['forecast[pr]'] = requestParameters.forecastPr;
|
|
528
|
+
}
|
|
529
|
+
if (requestParameters.orderBy !== undefined) {
|
|
530
|
+
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
531
|
+
}
|
|
532
|
+
if (requestParameters.p !== undefined) {
|
|
533
|
+
queryParameters['p'] = requestParameters.p;
|
|
534
|
+
}
|
|
535
|
+
if (requestParameters.pp !== undefined) {
|
|
536
|
+
queryParameters['pp'] = requestParameters.pp;
|
|
537
|
+
}
|
|
538
|
+
const headerParameters = {};
|
|
539
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
540
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
541
|
+
}
|
|
542
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
543
|
+
const token = this.configuration.accessToken;
|
|
544
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
545
|
+
if (tokenString) {
|
|
546
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
try {
|
|
550
|
+
const response = yield this.request({
|
|
551
|
+
path: `/inventories/{inventoryId}/overstock-products`.replace(`{${"inventoryId"}}`, encodeURIComponent(String(requestParameters.inventoryId))),
|
|
552
|
+
method: 'GET',
|
|
553
|
+
headers: headerParameters,
|
|
554
|
+
query: queryParameters,
|
|
555
|
+
});
|
|
556
|
+
const contentType = response.headers.get("content-type");
|
|
557
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
558
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.PaginatedOverstockProductsFromJSON(jsonValue));
|
|
559
|
+
}
|
|
560
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
561
|
+
return new runtime_1.TextApiResponse(response);
|
|
758
562
|
}
|
|
759
|
-
|
|
563
|
+
else {
|
|
564
|
+
// TODO : Better handling of others application types
|
|
565
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
catch (response) {
|
|
569
|
+
console.debug(response);
|
|
570
|
+
throw response;
|
|
571
|
+
}
|
|
760
572
|
});
|
|
761
|
-
}
|
|
573
|
+
}
|
|
762
574
|
/**
|
|
763
575
|
* Get products that the pharmacian should destock
|
|
764
576
|
*/
|
|
765
|
-
|
|
766
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
767
|
-
|
|
768
|
-
return
|
|
769
|
-
switch (_a.label) {
|
|
770
|
-
case 0: return [4 /*yield*/, this.getInventoryOverstockProductsRaw(requestParameters)];
|
|
771
|
-
case 1:
|
|
772
|
-
response = _a.sent();
|
|
773
|
-
return [4 /*yield*/, response.value()];
|
|
774
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
775
|
-
}
|
|
776
|
-
});
|
|
577
|
+
getInventoryOverstockProducts(requestParameters) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
+
const response = yield this.getInventoryOverstockProductsRaw(requestParameters);
|
|
580
|
+
return yield response.value();
|
|
777
581
|
});
|
|
778
|
-
}
|
|
582
|
+
}
|
|
779
583
|
/**
|
|
780
584
|
* Get advices statistics
|
|
781
585
|
*/
|
|
782
|
-
|
|
783
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.StatisticsFromJSON(jsonValue); })];
|
|
817
|
-
}
|
|
818
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
819
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
820
|
-
}
|
|
821
|
-
else {
|
|
822
|
-
// TODO : Better handling of others application types
|
|
823
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
824
|
-
}
|
|
825
|
-
return [3 /*break*/, 4];
|
|
826
|
-
case 3:
|
|
827
|
-
response_9 = _a.sent();
|
|
828
|
-
console.debug(response_9);
|
|
829
|
-
throw response_9;
|
|
830
|
-
case 4: return [2 /*return*/];
|
|
586
|
+
getInventoryStatisticsRaw(requestParameters) {
|
|
587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
588
|
+
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
589
|
+
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventoryStatistics.');
|
|
590
|
+
}
|
|
591
|
+
const queryParameters = {};
|
|
592
|
+
const headerParameters = {};
|
|
593
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
594
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
595
|
+
}
|
|
596
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
597
|
+
const token = this.configuration.accessToken;
|
|
598
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
599
|
+
if (tokenString) {
|
|
600
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
try {
|
|
604
|
+
const response = yield this.request({
|
|
605
|
+
path: `/inventories/{inventoryId}/statistics`.replace(`{${"inventoryId"}}`, encodeURIComponent(String(requestParameters.inventoryId))),
|
|
606
|
+
method: 'GET',
|
|
607
|
+
headers: headerParameters,
|
|
608
|
+
query: queryParameters,
|
|
609
|
+
});
|
|
610
|
+
const contentType = response.headers.get("content-type");
|
|
611
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
612
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.StatisticsFromJSON(jsonValue));
|
|
613
|
+
}
|
|
614
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
615
|
+
return new runtime_1.TextApiResponse(response);
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
// TODO : Better handling of others application types
|
|
619
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
831
620
|
}
|
|
832
|
-
}
|
|
621
|
+
}
|
|
622
|
+
catch (response) {
|
|
623
|
+
console.debug(response);
|
|
624
|
+
throw response;
|
|
625
|
+
}
|
|
833
626
|
});
|
|
834
|
-
}
|
|
627
|
+
}
|
|
835
628
|
/**
|
|
836
629
|
* Get advices statistics
|
|
837
630
|
*/
|
|
838
|
-
|
|
839
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
840
|
-
|
|
841
|
-
return
|
|
842
|
-
switch (_a.label) {
|
|
843
|
-
case 0: return [4 /*yield*/, this.getInventoryStatisticsRaw(requestParameters)];
|
|
844
|
-
case 1:
|
|
845
|
-
response = _a.sent();
|
|
846
|
-
return [4 /*yield*/, response.value()];
|
|
847
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
848
|
-
}
|
|
849
|
-
});
|
|
631
|
+
getInventoryStatistics(requestParameters) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
const response = yield this.getInventoryStatisticsRaw(requestParameters);
|
|
634
|
+
return yield response.value();
|
|
850
635
|
});
|
|
851
|
-
}
|
|
636
|
+
}
|
|
852
637
|
/**
|
|
853
638
|
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
854
639
|
* Get synchronization state of inventory
|
|
855
640
|
*/
|
|
856
|
-
|
|
857
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
token = this.configuration.accessToken;
|
|
872
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
873
|
-
if (tokenString) {
|
|
874
|
-
headerParameters["Authorization"] = "Bearer " + tokenString;
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
_a.label = 1;
|
|
878
|
-
case 1:
|
|
879
|
-
_a.trys.push([1, 3, , 4]);
|
|
880
|
-
return [4 /*yield*/, this.request({
|
|
881
|
-
path: "/inventories/{inventoryId}/synchroneity".replace("{" + "inventoryId" + "}", encodeURIComponent(String(requestParameters.inventoryId))),
|
|
882
|
-
method: 'GET',
|
|
883
|
-
headers: headerParameters,
|
|
884
|
-
query: queryParameters,
|
|
885
|
-
})];
|
|
886
|
-
case 2:
|
|
887
|
-
response = _a.sent();
|
|
888
|
-
contentType = response.headers.get("content-type");
|
|
889
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
890
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return models_1.SynchroneityFromJSON(jsonValue); })];
|
|
891
|
-
}
|
|
892
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
893
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
894
|
-
}
|
|
895
|
-
else {
|
|
896
|
-
// TODO : Better handling of others application types
|
|
897
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
898
|
-
}
|
|
899
|
-
return [3 /*break*/, 4];
|
|
900
|
-
case 3:
|
|
901
|
-
response_10 = _a.sent();
|
|
902
|
-
console.debug(response_10);
|
|
903
|
-
throw response_10;
|
|
904
|
-
case 4: return [2 /*return*/];
|
|
641
|
+
getInventorySynchroneityRaw(requestParameters) {
|
|
642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
if (requestParameters.inventoryId === null || requestParameters.inventoryId === undefined) {
|
|
644
|
+
throw new runtime_1.RequiredError('inventoryId', 'Required parameter requestParameters.inventoryId was null or undefined when calling getInventorySynchroneity.');
|
|
645
|
+
}
|
|
646
|
+
const queryParameters = {};
|
|
647
|
+
const headerParameters = {};
|
|
648
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
649
|
+
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
650
|
+
}
|
|
651
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
652
|
+
const token = this.configuration.accessToken;
|
|
653
|
+
const tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
654
|
+
if (tokenString) {
|
|
655
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
905
656
|
}
|
|
906
|
-
}
|
|
657
|
+
}
|
|
658
|
+
try {
|
|
659
|
+
const response = yield this.request({
|
|
660
|
+
path: `/inventories/{inventoryId}/synchroneity`.replace(`{${"inventoryId"}}`, encodeURIComponent(String(requestParameters.inventoryId))),
|
|
661
|
+
method: 'GET',
|
|
662
|
+
headers: headerParameters,
|
|
663
|
+
query: queryParameters,
|
|
664
|
+
});
|
|
665
|
+
const contentType = response.headers.get("content-type");
|
|
666
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
667
|
+
return new runtime_1.JSONApiResponse(response, (jsonValue) => models_1.SynchroneityFromJSON(jsonValue));
|
|
668
|
+
}
|
|
669
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
670
|
+
return new runtime_1.TextApiResponse(response);
|
|
671
|
+
}
|
|
672
|
+
else {
|
|
673
|
+
// TODO : Better handling of others application types
|
|
674
|
+
return new runtime_1.BlobWithMetaApiResponse(response);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
catch (response) {
|
|
678
|
+
console.debug(response);
|
|
679
|
+
throw response;
|
|
680
|
+
}
|
|
907
681
|
});
|
|
908
|
-
}
|
|
682
|
+
}
|
|
909
683
|
/**
|
|
910
684
|
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
911
685
|
* Get synchronization state of inventory
|
|
912
686
|
*/
|
|
913
|
-
|
|
914
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
915
|
-
|
|
916
|
-
return
|
|
917
|
-
switch (_a.label) {
|
|
918
|
-
case 0: return [4 /*yield*/, this.getInventorySynchroneityRaw(requestParameters)];
|
|
919
|
-
case 1:
|
|
920
|
-
response = _a.sent();
|
|
921
|
-
return [4 /*yield*/, response.value()];
|
|
922
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
923
|
-
}
|
|
924
|
-
});
|
|
687
|
+
getInventorySynchroneity(requestParameters) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
const response = yield this.getInventorySynchroneityRaw(requestParameters);
|
|
690
|
+
return yield response.value();
|
|
925
691
|
});
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
}(runtime_1.BaseAPI));
|
|
692
|
+
}
|
|
693
|
+
}
|
|
929
694
|
exports.SearchInventoryApi = SearchInventoryApi;
|
|
930
695
|
/**
|
|
931
696
|
* @export
|