@monfilon/api-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +322 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +236 -0
- package/api/api.ts +127 -0
- package/api/assetAccounts.service.ts +156 -0
- package/api/assetAccounts.serviceInterface.ts +31 -0
- package/api/assets.service.ts +470 -0
- package/api/assets.serviceInterface.ts +90 -0
- package/api/averageBaskets.service.ts +532 -0
- package/api/averageBaskets.serviceInterface.ts +106 -0
- package/api/bfrSettings.service.ts +392 -0
- package/api/bfrSettings.serviceInterface.ts +76 -0
- package/api/budgetFinancings.service.ts +494 -0
- package/api/budgetFinancings.serviceInterface.ts +97 -0
- package/api/budgets.service.ts +472 -0
- package/api/budgets.serviceInterface.ts +91 -0
- package/api/businessPlanSections.service.ts +474 -0
- package/api/businessPlanSections.serviceInterface.ts +92 -0
- package/api/charges.service.ts +474 -0
- package/api/charges.serviceInterface.ts +92 -0
- package/api/compositeBaskets.service.ts +176 -0
- package/api/compositeBaskets.serviceInterface.ts +39 -0
- package/api/configSlots.service.ts +490 -0
- package/api/configSlots.serviceInterface.ts +95 -0
- package/api/convertibles.service.ts +552 -0
- package/api/convertibles.serviceInterface.ts +105 -0
- package/api/currentAccounts.service.ts +490 -0
- package/api/currentAccounts.serviceInterface.ts +95 -0
- package/api/default.service.ts +2020 -0
- package/api/default.serviceInterface.ts +355 -0
- package/api/employees.service.ts +472 -0
- package/api/employees.serviceInterface.ts +91 -0
- package/api/financingSources.service.ts +472 -0
- package/api/financingSources.serviceInterface.ts +91 -0
- package/api/fiscalYears.service.ts +470 -0
- package/api/fiscalYears.serviceInterface.ts +90 -0
- package/api/generatorEntities.service.ts +505 -0
- package/api/generatorEntities.serviceInterface.ts +98 -0
- package/api/laborInputs.service.ts +486 -0
- package/api/laborInputs.serviceInterface.ts +93 -0
- package/api/memberships.service.ts +314 -0
- package/api/memberships.serviceInterface.ts +63 -0
- package/api/notifications.service.ts +355 -0
- package/api/notifications.serviceInterface.ts +61 -0
- package/api/optionPools.service.ts +472 -0
- package/api/optionPools.serviceInterface.ts +91 -0
- package/api/persons.service.ts +472 -0
- package/api/persons.serviceInterface.ts +91 -0
- package/api/priceLists.service.ts +470 -0
- package/api/priceLists.serviceInterface.ts +90 -0
- package/api/prices.service.ts +490 -0
- package/api/prices.serviceInterface.ts +95 -0
- package/api/products.service.ts +474 -0
- package/api/products.serviceInterface.ts +92 -0
- package/api/projects.service.ts +450 -0
- package/api/projects.serviceInterface.ts +82 -0
- package/api/rawMaterials.service.ts +488 -0
- package/api/rawMaterials.serviceInterface.ts +94 -0
- package/api/reports.service.ts +177 -0
- package/api/reports.serviceInterface.ts +39 -0
- package/api/rounds.service.ts +472 -0
- package/api/rounds.serviceInterface.ts +91 -0
- package/api/salesInputs.service.ts +505 -0
- package/api/salesInputs.serviceInterface.ts +98 -0
- package/api/salesItems.service.ts +492 -0
- package/api/salesItems.serviceInterface.ts +96 -0
- package/api/salesModels.service.ts +420 -0
- package/api/salesModels.serviceInterface.ts +82 -0
- package/api/salesScenarios.service.ts +542 -0
- package/api/salesScenarios.serviceInterface.ts +103 -0
- package/api/salesStages.service.ts +505 -0
- package/api/salesStages.serviceInterface.ts +98 -0
- package/api/salesVolumes.service.ts +506 -0
- package/api/salesVolumes.serviceInterface.ts +98 -0
- package/api/segments.service.ts +490 -0
- package/api/segments.serviceInterface.ts +95 -0
- package/api/services.service.ts +474 -0
- package/api/services.serviceInterface.ts +92 -0
- package/api/shareLots.service.ts +490 -0
- package/api/shareLots.serviceInterface.ts +95 -0
- package/api/shareholderGroups.service.ts +472 -0
- package/api/shareholderGroups.serviceInterface.ts +91 -0
- package/api/shareholders.service.ts +470 -0
- package/api/shareholders.serviceInterface.ts +90 -0
- package/api/slotOptions.service.ts +512 -0
- package/api/slotOptions.serviceInterface.ts +101 -0
- package/api/targets.service.ts +470 -0
- package/api/targets.serviceInterface.ts +90 -0
- package/api.module.ts +30 -0
- package/configuration.ts +166 -0
- package/encoder.ts +20 -0
- package/git_push.sh +57 -0
- package/index.ts +6 -0
- package/model/assetAccountsGet200ResponseInner.ts +18 -0
- package/model/models.ts +223 -0
- package/model/notificationsGet200ResponseInner.ts +32 -0
- package/model/notificationsUnreadCountGet200Response.ts +15 -0
- package/model/projectsGet200ResponseInner.ts +55 -0
- package/model/projectsIdGet200Response.ts +19 -0
- package/model/projectsIdPatch200Response.ts +24 -0
- package/model/projectsIdPatchRequest.ts +16 -0
- package/model/projectsPost201Response.ts +23 -0
- package/model/projectsPostRequest.ts +16 -0
- package/model/projectsProjectIdAssetsGet200ResponseInner.ts +44 -0
- package/model/projectsProjectIdAssetsIdGet200Response.ts +16 -0
- package/model/projectsProjectIdAssetsIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdAssetsPost201Response.ts +17 -0
- package/model/projectsProjectIdAssetsPost422Response.ts +16 -0
- package/model/projectsProjectIdAssetsPostRequest.ts +39 -0
- package/model/projectsProjectIdBfrSettingGet200Response.ts +23 -0
- package/model/projectsProjectIdBfrSettingPatch200Response.ts +16 -0
- package/model/projectsProjectIdBfrSettingPatchRequest.ts +15 -0
- package/model/projectsProjectIdBfrSettingPost201Response.ts +17 -0
- package/model/projectsProjectIdBfrSettingPostRequest.ts +18 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsPost201Response.ts +19 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsPost422Response.ts +16 -0
- package/model/projectsProjectIdBudgetsBudgetIdBudgetFinancingsPostRequest.ts +16 -0
- package/model/projectsProjectIdBudgetsGet200ResponseInner.ts +24 -0
- package/model/projectsProjectIdBudgetsIdGet200Response.ts +20 -0
- package/model/projectsProjectIdBudgetsIdPatch200Response.ts +20 -0
- package/model/projectsProjectIdBudgetsIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdBudgetsPost201Response.ts +24 -0
- package/model/projectsProjectIdBudgetsPostRequest.ts +17 -0
- package/model/projectsProjectIdBusinessPlanSectionsGet200ResponseInner.ts +23 -0
- package/model/projectsProjectIdBusinessPlanSectionsIdGet200Response.ts +20 -0
- package/model/projectsProjectIdBusinessPlanSectionsIdPatch200Response.ts +17 -0
- package/model/projectsProjectIdBusinessPlanSectionsIdPatchRequest.ts +17 -0
- package/model/projectsProjectIdBusinessPlanSectionsPost201Response.ts +21 -0
- package/model/projectsProjectIdBusinessPlanSectionsPostRequest.ts +18 -0
- package/model/projectsProjectIdChargesGet200ResponseInner.ts +58 -0
- package/model/projectsProjectIdChargesIdGet200Response.ts +48 -0
- package/model/projectsProjectIdChargesIdPatch200Response.ts +48 -0
- package/model/projectsProjectIdChargesIdPatchRequest.ts +44 -0
- package/model/projectsProjectIdChargesPost201Response.ts +48 -0
- package/model/projectsProjectIdChargesPost422Response.ts +16 -0
- package/model/projectsProjectIdChargesPostRequest.ts +44 -0
- package/model/projectsProjectIdConvertiblesGet200ResponseInner.ts +41 -0
- package/model/projectsProjectIdConvertiblesIdConvertPost200Response.ts +18 -0
- package/model/projectsProjectIdConvertiblesIdGet200Response.ts +16 -0
- package/model/projectsProjectIdConvertiblesIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdConvertiblesPost201Response.ts +17 -0
- package/model/projectsProjectIdConvertiblesPostRequest.ts +27 -0
- package/model/projectsProjectIdEmployeesGet200ResponseInner.ts +40 -0
- package/model/projectsProjectIdEmployeesIdGet200Response.ts +18 -0
- package/model/projectsProjectIdEmployeesIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdEmployeesIdPatchRequest.ts +18 -0
- package/model/projectsProjectIdEmployeesPost201Response.ts +19 -0
- package/model/projectsProjectIdEmployeesPostRequest.ts +34 -0
- package/model/projectsProjectIdFinancingSourcesGet200ResponseInner.ts +42 -0
- package/model/projectsProjectIdFinancingSourcesIdGet200Response.ts +16 -0
- package/model/projectsProjectIdFinancingSourcesPost201Response.ts +18 -0
- package/model/projectsProjectIdFinancingSourcesPostRequest.ts +38 -0
- package/model/projectsProjectIdFiscalYearsGet200ResponseInner.ts +23 -0
- package/model/projectsProjectIdFiscalYearsPostRequest.ts +18 -0
- package/model/projectsProjectIdMembershipsGet200ResponseInner.ts +29 -0
- package/model/projectsProjectIdMembershipsPost201Response.ts +19 -0
- package/model/projectsProjectIdMembershipsPost422Response.ts +15 -0
- package/model/projectsProjectIdMembershipsPostRequest.ts +23 -0
- package/model/projectsProjectIdOptionPoolsGet200ResponseInner.ts +32 -0
- package/model/projectsProjectIdOptionPoolsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdOptionPoolsIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdOptionPoolsPostRequest.ts +26 -0
- package/model/projectsProjectIdPersonsGet200ResponseInner.ts +26 -0
- package/model/projectsProjectIdPersonsIdGet200Response.ts +16 -0
- package/model/projectsProjectIdPersonsIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdPersonsPostRequest.ts +21 -0
- package/model/projectsProjectIdPriceListsGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdPriceListsPostRequest.ts +16 -0
- package/model/projectsProjectIdPriceListsPriceListIdPricesGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdPriceListsPriceListIdPricesIdGet200Response.ts +16 -0
- package/model/projectsProjectIdPriceListsPriceListIdPricesIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdPriceListsPriceListIdPricesPost201Response.ts +17 -0
- package/model/projectsProjectIdPriceListsPriceListIdPricesPostRequest.ts +16 -0
- package/model/projectsProjectIdProductsGet200ResponseInner.ts +32 -0
- package/model/projectsProjectIdProductsGet200ResponseInnerUnit.ts +17 -0
- package/model/projectsProjectIdProductsIdGet200Response.ts +22 -0
- package/model/projectsProjectIdProductsIdPatch200Response.ts +22 -0
- package/model/projectsProjectIdProductsIdPatchRequest.ts +18 -0
- package/model/projectsProjectIdProductsPost201Response.ts +22 -0
- package/model/projectsProjectIdProductsPostRequest.ts +18 -0
- package/model/projectsProjectIdProductsProductIdLaborInputsGet200ResponseInner.ts +19 -0
- package/model/projectsProjectIdProductsProductIdLaborInputsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdProductsProductIdLaborInputsPostRequest.ts +16 -0
- package/model/projectsProjectIdProductsProductIdRawMaterialsGet200ResponseInner.ts +23 -0
- package/model/projectsProjectIdProductsProductIdRawMaterialsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdProductsProductIdRawMaterialsPost201Response.ts +18 -0
- package/model/projectsProjectIdProductsProductIdRawMaterialsPostRequest.ts +20 -0
- package/model/projectsProjectIdReportsBfrGet200ResponseInner.ts +18 -0
- package/model/projectsProjectIdReportsBreakEvenGet200Response.ts +18 -0
- package/model/projectsProjectIdReportsBreakEvenGet200ResponseByFiscalYearInner.ts +20 -0
- package/model/projectsProjectIdReportsBudgetGet200Response.ts +18 -0
- package/model/projectsProjectIdReportsBudgetGet200ResponseByBudgetInner.ts +19 -0
- package/model/projectsProjectIdReportsBudgetGet200ResponseByFinancingSourceInner.ts +20 -0
- package/model/projectsProjectIdReportsCapTableGet200Response.ts +19 -0
- package/model/projectsProjectIdReportsCapTableGet200ResponseCurrentInner.ts +19 -0
- package/model/projectsProjectIdReportsCapTableGet200ResponseRoundsInner.ts +18 -0
- package/model/projectsProjectIdReportsCapTableMatrixGet200Response.ts +18 -0
- package/model/projectsProjectIdReportsCapTableMatrixGet200ResponseRoundsInner.ts +18 -0
- package/model/projectsProjectIdReportsCapTableMatrixGet200ResponseShareholdersInner.ts +18 -0
- package/model/projectsProjectIdReportsCapTablePlanGet200ResponseInner.ts +28 -0
- package/model/projectsProjectIdReportsCapacityGet200ResponseInner.ts +18 -0
- package/model/projectsProjectIdReportsCapacityGet200ResponseInnerRolesInner.ts +20 -0
- package/model/projectsProjectIdReportsDashboardGet200Response.ts +24 -0
- package/model/projectsProjectIdReportsDashboardGet200ResponseCashflowMonthlyInner.ts +17 -0
- package/model/projectsProjectIdReportsDashboardGet200ResponseChargesByQuarterInner.ts +20 -0
- package/model/projectsProjectIdReportsDashboardGet200ResponseRevenueByQuarterInner.ts +20 -0
- package/model/projectsProjectIdReportsDashboardGet200ResponseTreasuryMonthlyInner.ts +16 -0
- package/model/projectsProjectIdReportsDerivedChargesGet200Response.ts +16 -0
- package/model/projectsProjectIdReportsDerivedChargesGet200ResponseDerivedChargesInner.ts +19 -0
- package/model/projectsProjectIdReportsEquityGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdReportsFinancingDetailGet200Response.ts +25 -0
- package/model/projectsProjectIdReportsFinancingDetailGet200ResponseComputedCapitalInner.ts +19 -0
- package/model/projectsProjectIdReportsFinancingDetailGet200ResponseComputedCcaInner.ts +18 -0
- package/model/projectsProjectIdReportsFinancingDetailGet200ResponseSourcesInner.ts +26 -0
- package/model/projectsProjectIdReportsFinancingPlanGet200ResponseInner.ts +20 -0
- package/model/projectsProjectIdReportsIncomeStatementGet200ResponseInner.ts +24 -0
- package/model/projectsProjectIdReportsPayrollGet200Response.ts +18 -0
- package/model/projectsProjectIdReportsPayrollGet200ResponseCdiDurablesByFiscalYearInner.ts +17 -0
- package/model/projectsProjectIdReportsPayrollGet200ResponseFteByFiscalYearInner.ts +17 -0
- package/model/projectsProjectIdReportsPersonIncomeGet200Response.ts +16 -0
- package/model/projectsProjectIdReportsPersonIncomeGet200ResponsePersonsInner.ts +18 -0
- package/model/projectsProjectIdReportsPersonIncomeGet200ResponsePersonsInnerMonthlyInner.ts +18 -0
- package/model/projectsProjectIdReportsPersonalLeverageGet200Response.ts +16 -0
- package/model/projectsProjectIdReportsPersonalLeverageGet200ResponsePersonsInner.ts +19 -0
- package/model/projectsProjectIdReportsPersonalLeverageGet200ResponsePersonsInnerMonthlyInner.ts +18 -0
- package/model/projectsProjectIdReportsRevenueByChannelGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdReportsRevenueGet200Response.ts +18 -0
- package/model/projectsProjectIdReportsRevenueGet200ResponseRevenueWarningsInner.ts +18 -0
- package/model/projectsProjectIdReportsRevenueGet200ResponseRowsInner.ts +17 -0
- package/model/projectsProjectIdReportsRoundSolvePost200Response.ts +27 -0
- package/model/projectsProjectIdReportsRoundSolvePostRequest.ts +29 -0
- package/model/projectsProjectIdReportsRoundSolvePostRequestTargetsInner.ts +17 -0
- package/model/projectsProjectIdReportsRoundValuationsGet200ResponseInner.ts +26 -0
- package/model/projectsProjectIdReportsRoundValuationsGet200ResponseInnerHoldersInner.ts +18 -0
- package/model/projectsProjectIdReportsSegmentsGet200ResponseInner.ts +25 -0
- package/model/projectsProjectIdReportsSegmentsGet200ResponseInnerByProductInner.ts +18 -0
- package/model/projectsProjectIdReportsTaxCreditsGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdReportsTreasuryMonthlyGet200ResponseInner.ts +19 -0
- package/model/projectsProjectIdRoundsGet200ResponseInner.ts +30 -0
- package/model/projectsProjectIdRoundsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdRoundsIdPatchRequest.ts +22 -0
- package/model/projectsProjectIdRoundsPostRequest.ts +25 -0
- package/model/projectsProjectIdSalesScenariosGet200ResponseInner.ts +24 -0
- package/model/projectsProjectIdSalesScenariosIdSetDefaultPatch200Response.ts +16 -0
- package/model/projectsProjectIdSalesScenariosPostRequest.ts +19 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsPost201Response.ts +17 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsPostRequest.ts +16 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelGeneratorEntitiesGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelGeneratorEntitiesIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelGeneratorEntitiesPostRequest.ts +24 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelGet200Response.ts +19 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelPostRequest.ts +23 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesInputsGet200ResponseInner.ts +19 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesInputsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesInputsPostRequest.ts +16 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesStagesGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesStagesIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesModelSalesStagesPostRequest.ts +26 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesVolumesGet200ResponseInner.ts +19 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesVolumesIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSalesScenariosSalesScenarioIdSalesItemsSalesItemIdSalesVolumesPostRequest.ts +16 -0
- package/model/projectsProjectIdSellablesSellableIdCompositeBasketGet200Response.ts +21 -0
- package/model/projectsProjectIdSellablesSellableIdCompositeBasketGet200ResponseBreakdownInner.ts +19 -0
- package/model/projectsProjectIdSellablesSellableIdCompositeBasketGet200ResponseBreakdownInnerOptionsInner.ts +19 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsGet200ResponseInner.ts +20 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsPost201Response.ts +17 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsPostRequest.ts +15 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response.ts +15 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response.ts +16 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response.ts +17 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest.ts +16 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdSellablesSellableIdConfigSlotsPostRequest.ts +17 -0
- package/model/projectsProjectIdServicesGet200ResponseInner.ts +25 -0
- package/model/projectsProjectIdServicesGet200ResponseInnerUnit.ts +17 -0
- package/model/projectsProjectIdShareholderGroupsGet200ResponseInner.ts +23 -0
- package/model/projectsProjectIdShareholderGroupsIdPatch200Response.ts +17 -0
- package/model/projectsProjectIdShareholderGroupsIdPatchRequest.ts +16 -0
- package/model/projectsProjectIdShareholderGroupsPost201Response.ts +18 -0
- package/model/projectsProjectIdShareholderGroupsPostRequest.ts +18 -0
- package/model/projectsProjectIdShareholdersGet200ResponseInner.ts +28 -0
- package/model/projectsProjectIdShareholdersIdPatchRequest.ts +22 -0
- package/model/projectsProjectIdShareholdersPost201Response.ts +19 -0
- package/model/projectsProjectIdShareholdersPostRequest.ts +29 -0
- package/model/projectsProjectIdShareholdersShareholderIdCurrentAccountsGet200ResponseInner.ts +36 -0
- package/model/projectsProjectIdShareholdersShareholderIdCurrentAccountsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdShareholdersShareholderIdCurrentAccountsPost201Response.ts +17 -0
- package/model/projectsProjectIdShareholdersShareholderIdCurrentAccountsPostRequest.ts +29 -0
- package/model/projectsProjectIdShareholdersShareholderIdShareLotsGet200ResponseInner.ts +26 -0
- package/model/projectsProjectIdShareholdersShareholderIdShareLotsIdGet200Response.ts +16 -0
- package/model/projectsProjectIdShareholdersShareholderIdShareLotsIdPatchRequest.ts +15 -0
- package/model/projectsProjectIdShareholdersShareholderIdShareLotsPost201Response.ts +17 -0
- package/model/projectsProjectIdShareholdersShareholderIdShareLotsPostRequest.ts +21 -0
- package/model/projectsProjectIdTargetsGet200ResponseInner.ts +21 -0
- package/model/projectsProjectIdTargetsPostRequest.ts +16 -0
- package/model/projectsProjectIdTargetsTargetIdSegmentsGet200ResponseInner.ts +22 -0
- package/model/projectsProjectIdTargetsTargetIdSegmentsPostRequest.ts +17 -0
- package/model/unitsGet200ResponseInner.ts +19 -0
- package/model/unitsIdDelete403Response.ts +18 -0
- package/model/unitsIdDelete403ResponseUnit.ts +21 -0
- package/model/unitsIdGet200Response.ts +22 -0
- package/model/unitsIdPatch403Response.ts +17 -0
- package/model/unitsIdPatchRequest.ts +17 -0
- package/model/unitsPost201Response.ts +22 -0
- package/model/unitsPostRequest.ts +17 -0
- package/ng-package.json +6 -0
- package/package.json +37 -0
- package/param.ts +69 -0
- package/tsconfig.json +27 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API V1
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
|
+
|
|
12
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
14
|
+
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
15
|
+
} from '@angular/common/http';
|
|
16
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
|
+
import { Observable } from 'rxjs';
|
|
18
|
+
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { ProjectsProjectIdAssetsPost422Response } from '../model/projectsProjectIdAssetsPost422Response';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest } from '../model/projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest';
|
|
33
|
+
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
36
|
+
import { Configuration } from '../configuration';
|
|
37
|
+
import {
|
|
38
|
+
AverageBasketsServiceInterface,
|
|
39
|
+
ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams,
|
|
40
|
+
ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams,
|
|
41
|
+
ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams,
|
|
42
|
+
ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams,
|
|
43
|
+
ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams
|
|
44
|
+
} from './averageBaskets.serviceInterface';
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@Injectable({
|
|
49
|
+
providedIn: 'root'
|
|
50
|
+
})
|
|
51
|
+
export class AverageBasketsService implements AverageBasketsServiceInterface {
|
|
52
|
+
|
|
53
|
+
protected basePath = 'https://cresus-api.liant.cloud/v1';
|
|
54
|
+
public defaultHeaders = new HttpHeaders();
|
|
55
|
+
public configuration = new Configuration();
|
|
56
|
+
public encoder: HttpParameterCodec;
|
|
57
|
+
|
|
58
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
|
|
59
|
+
if (configuration) {
|
|
60
|
+
this.configuration = configuration;
|
|
61
|
+
}
|
|
62
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
63
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
64
|
+
if (firstBasePath != undefined) {
|
|
65
|
+
basePath = firstBasePath;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (typeof basePath !== 'string') {
|
|
69
|
+
basePath = this.basePath;
|
|
70
|
+
}
|
|
71
|
+
this.configuration.basePath = basePath;
|
|
72
|
+
}
|
|
73
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
79
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
80
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
81
|
+
} else {
|
|
82
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
83
|
+
}
|
|
84
|
+
return httpParams;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return httpParams;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (typeof value === "object") {
|
|
93
|
+
if (Array.isArray(value)) {
|
|
94
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
95
|
+
} else if (value instanceof Date) {
|
|
96
|
+
if (key != null) {
|
|
97
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
98
|
+
} else {
|
|
99
|
+
throw Error("key may not be null if value is Date");
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
103
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
104
|
+
}
|
|
105
|
+
} else if (key != null) {
|
|
106
|
+
httpParams = httpParams.append(key, value);
|
|
107
|
+
} else {
|
|
108
|
+
throw Error("key may not be null if value is not object or array");
|
|
109
|
+
}
|
|
110
|
+
return httpParams;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* List average baskets for the slot option
|
|
115
|
+
* @param requestParameters
|
|
116
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
117
|
+
* @param reportProgress flag to report request and response progress.
|
|
118
|
+
*/
|
|
119
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner>>;
|
|
120
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner>>>;
|
|
121
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner>>>;
|
|
122
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
123
|
+
const projectId = requestParameters?.projectId;
|
|
124
|
+
if (projectId === null || projectId === undefined) {
|
|
125
|
+
throw new Error('Required parameter projectId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet.');
|
|
126
|
+
}
|
|
127
|
+
const sellableId = requestParameters?.sellableId;
|
|
128
|
+
if (sellableId === null || sellableId === undefined) {
|
|
129
|
+
throw new Error('Required parameter sellableId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet.');
|
|
130
|
+
}
|
|
131
|
+
const configSlotId = requestParameters?.configSlotId;
|
|
132
|
+
if (configSlotId === null || configSlotId === undefined) {
|
|
133
|
+
throw new Error('Required parameter configSlotId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet.');
|
|
134
|
+
}
|
|
135
|
+
const slotOptionId = requestParameters?.slotOptionId;
|
|
136
|
+
if (slotOptionId === null || slotOptionId === undefined) {
|
|
137
|
+
throw new Error('Required parameter slotOptionId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet.');
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
let localVarHeaders = this.defaultHeaders;
|
|
141
|
+
|
|
142
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
143
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
144
|
+
// to determine the Accept header
|
|
145
|
+
const httpHeaderAccepts: string[] = [
|
|
146
|
+
'application/json'
|
|
147
|
+
];
|
|
148
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
149
|
+
}
|
|
150
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
151
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
155
|
+
if (localVarHttpContext === undefined) {
|
|
156
|
+
localVarHttpContext = new HttpContext();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
160
|
+
if (localVarTransferCache === undefined) {
|
|
161
|
+
localVarTransferCache = true;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
166
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
167
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
168
|
+
responseType_ = 'text';
|
|
169
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
170
|
+
responseType_ = 'json';
|
|
171
|
+
} else {
|
|
172
|
+
responseType_ = 'blob';
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
let localVarPath = `/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/sellables/${this.configuration.encodeParam({name: "sellableId", value: sellableId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/config_slots/${this.configuration.encodeParam({name: "configSlotId", value: configSlotId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/slot_options/${this.configuration.encodeParam({name: "slotOptionId", value: slotOptionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/average_baskets`;
|
|
177
|
+
return this.httpClient.request<Array<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner>>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
178
|
+
{
|
|
179
|
+
context: localVarHttpContext,
|
|
180
|
+
responseType: <any>responseType_,
|
|
181
|
+
withCredentials: this.configuration.withCredentials,
|
|
182
|
+
headers: localVarHeaders,
|
|
183
|
+
observe: observe,
|
|
184
|
+
transferCache: localVarTransferCache,
|
|
185
|
+
reportProgress: reportProgress
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* destroy an average basket
|
|
192
|
+
* @param requestParameters
|
|
193
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
194
|
+
* @param reportProgress flag to report request and response progress.
|
|
195
|
+
*/
|
|
196
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
|
197
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
|
198
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
|
199
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
200
|
+
const projectId = requestParameters?.projectId;
|
|
201
|
+
if (projectId === null || projectId === undefined) {
|
|
202
|
+
throw new Error('Required parameter projectId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete.');
|
|
203
|
+
}
|
|
204
|
+
const sellableId = requestParameters?.sellableId;
|
|
205
|
+
if (sellableId === null || sellableId === undefined) {
|
|
206
|
+
throw new Error('Required parameter sellableId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete.');
|
|
207
|
+
}
|
|
208
|
+
const configSlotId = requestParameters?.configSlotId;
|
|
209
|
+
if (configSlotId === null || configSlotId === undefined) {
|
|
210
|
+
throw new Error('Required parameter configSlotId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete.');
|
|
211
|
+
}
|
|
212
|
+
const slotOptionId = requestParameters?.slotOptionId;
|
|
213
|
+
if (slotOptionId === null || slotOptionId === undefined) {
|
|
214
|
+
throw new Error('Required parameter slotOptionId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete.');
|
|
215
|
+
}
|
|
216
|
+
const id = requestParameters?.id;
|
|
217
|
+
if (id === null || id === undefined) {
|
|
218
|
+
throw new Error('Required parameter id was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete.');
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
let localVarHeaders = this.defaultHeaders;
|
|
222
|
+
|
|
223
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
224
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
225
|
+
// to determine the Accept header
|
|
226
|
+
const httpHeaderAccepts: string[] = [
|
|
227
|
+
'application/json'
|
|
228
|
+
];
|
|
229
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
230
|
+
}
|
|
231
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
232
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
236
|
+
if (localVarHttpContext === undefined) {
|
|
237
|
+
localVarHttpContext = new HttpContext();
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
241
|
+
if (localVarTransferCache === undefined) {
|
|
242
|
+
localVarTransferCache = true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
247
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
248
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
249
|
+
responseType_ = 'text';
|
|
250
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
251
|
+
responseType_ = 'json';
|
|
252
|
+
} else {
|
|
253
|
+
responseType_ = 'blob';
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
let localVarPath = `/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/sellables/${this.configuration.encodeParam({name: "sellableId", value: sellableId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/config_slots/${this.configuration.encodeParam({name: "configSlotId", value: configSlotId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/slot_options/${this.configuration.encodeParam({name: "slotOptionId", value: slotOptionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/average_baskets/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
258
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
|
|
259
|
+
{
|
|
260
|
+
context: localVarHttpContext,
|
|
261
|
+
responseType: <any>responseType_,
|
|
262
|
+
withCredentials: this.configuration.withCredentials,
|
|
263
|
+
headers: localVarHeaders,
|
|
264
|
+
observe: observe,
|
|
265
|
+
transferCache: localVarTransferCache,
|
|
266
|
+
reportProgress: reportProgress
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* get an average basket\'s informations
|
|
273
|
+
* @param requestParameters
|
|
274
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
275
|
+
* @param reportProgress flag to report request and response progress.
|
|
276
|
+
*/
|
|
277
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response>;
|
|
278
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response>>;
|
|
279
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response>>;
|
|
280
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
281
|
+
const projectId = requestParameters?.projectId;
|
|
282
|
+
if (projectId === null || projectId === undefined) {
|
|
283
|
+
throw new Error('Required parameter projectId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet.');
|
|
284
|
+
}
|
|
285
|
+
const sellableId = requestParameters?.sellableId;
|
|
286
|
+
if (sellableId === null || sellableId === undefined) {
|
|
287
|
+
throw new Error('Required parameter sellableId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet.');
|
|
288
|
+
}
|
|
289
|
+
const configSlotId = requestParameters?.configSlotId;
|
|
290
|
+
if (configSlotId === null || configSlotId === undefined) {
|
|
291
|
+
throw new Error('Required parameter configSlotId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet.');
|
|
292
|
+
}
|
|
293
|
+
const slotOptionId = requestParameters?.slotOptionId;
|
|
294
|
+
if (slotOptionId === null || slotOptionId === undefined) {
|
|
295
|
+
throw new Error('Required parameter slotOptionId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet.');
|
|
296
|
+
}
|
|
297
|
+
const id = requestParameters?.id;
|
|
298
|
+
if (id === null || id === undefined) {
|
|
299
|
+
throw new Error('Required parameter id was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet.');
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
let localVarHeaders = this.defaultHeaders;
|
|
303
|
+
|
|
304
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
305
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
306
|
+
// to determine the Accept header
|
|
307
|
+
const httpHeaderAccepts: string[] = [
|
|
308
|
+
'application/json'
|
|
309
|
+
];
|
|
310
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
311
|
+
}
|
|
312
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
313
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
317
|
+
if (localVarHttpContext === undefined) {
|
|
318
|
+
localVarHttpContext = new HttpContext();
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
322
|
+
if (localVarTransferCache === undefined) {
|
|
323
|
+
localVarTransferCache = true;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
328
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
329
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
330
|
+
responseType_ = 'text';
|
|
331
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
332
|
+
responseType_ = 'json';
|
|
333
|
+
} else {
|
|
334
|
+
responseType_ = 'blob';
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
let localVarPath = `/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/sellables/${this.configuration.encodeParam({name: "sellableId", value: sellableId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/config_slots/${this.configuration.encodeParam({name: "configSlotId", value: configSlotId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/slot_options/${this.configuration.encodeParam({name: "slotOptionId", value: slotOptionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/average_baskets/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
339
|
+
return this.httpClient.request<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
340
|
+
{
|
|
341
|
+
context: localVarHttpContext,
|
|
342
|
+
responseType: <any>responseType_,
|
|
343
|
+
withCredentials: this.configuration.withCredentials,
|
|
344
|
+
headers: localVarHeaders,
|
|
345
|
+
observe: observe,
|
|
346
|
+
transferCache: localVarTransferCache,
|
|
347
|
+
reportProgress: reportProgress
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* update an average basket
|
|
354
|
+
* @param requestParameters
|
|
355
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
356
|
+
* @param reportProgress flag to report request and response progress.
|
|
357
|
+
*/
|
|
358
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response>;
|
|
359
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response>>;
|
|
360
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response>>;
|
|
361
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
362
|
+
const projectId = requestParameters?.projectId;
|
|
363
|
+
if (projectId === null || projectId === undefined) {
|
|
364
|
+
throw new Error('Required parameter projectId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch.');
|
|
365
|
+
}
|
|
366
|
+
const sellableId = requestParameters?.sellableId;
|
|
367
|
+
if (sellableId === null || sellableId === undefined) {
|
|
368
|
+
throw new Error('Required parameter sellableId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch.');
|
|
369
|
+
}
|
|
370
|
+
const configSlotId = requestParameters?.configSlotId;
|
|
371
|
+
if (configSlotId === null || configSlotId === undefined) {
|
|
372
|
+
throw new Error('Required parameter configSlotId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch.');
|
|
373
|
+
}
|
|
374
|
+
const slotOptionId = requestParameters?.slotOptionId;
|
|
375
|
+
if (slotOptionId === null || slotOptionId === undefined) {
|
|
376
|
+
throw new Error('Required parameter slotOptionId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch.');
|
|
377
|
+
}
|
|
378
|
+
const id = requestParameters?.id;
|
|
379
|
+
if (id === null || id === undefined) {
|
|
380
|
+
throw new Error('Required parameter id was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch.');
|
|
381
|
+
}
|
|
382
|
+
const projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest = requestParameters?.projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest;
|
|
383
|
+
|
|
384
|
+
let localVarHeaders = this.defaultHeaders;
|
|
385
|
+
|
|
386
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
387
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
388
|
+
// to determine the Accept header
|
|
389
|
+
const httpHeaderAccepts: string[] = [
|
|
390
|
+
'application/json'
|
|
391
|
+
];
|
|
392
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
393
|
+
}
|
|
394
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
395
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
399
|
+
if (localVarHttpContext === undefined) {
|
|
400
|
+
localVarHttpContext = new HttpContext();
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
404
|
+
if (localVarTransferCache === undefined) {
|
|
405
|
+
localVarTransferCache = true;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
// to determine the Content-Type header
|
|
410
|
+
const consumes: string[] = [
|
|
411
|
+
'application/json'
|
|
412
|
+
];
|
|
413
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
414
|
+
if (httpContentTypeSelected !== undefined) {
|
|
415
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
419
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
420
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
421
|
+
responseType_ = 'text';
|
|
422
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
423
|
+
responseType_ = 'json';
|
|
424
|
+
} else {
|
|
425
|
+
responseType_ = 'blob';
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
let localVarPath = `/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/sellables/${this.configuration.encodeParam({name: "sellableId", value: sellableId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/config_slots/${this.configuration.encodeParam({name: "configSlotId", value: configSlotId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/slot_options/${this.configuration.encodeParam({name: "slotOptionId", value: slotOptionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/average_baskets/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
|
|
430
|
+
return this.httpClient.request<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response>('patch', `${this.configuration.basePath}${localVarPath}`,
|
|
431
|
+
{
|
|
432
|
+
context: localVarHttpContext,
|
|
433
|
+
body: projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest,
|
|
434
|
+
responseType: <any>responseType_,
|
|
435
|
+
withCredentials: this.configuration.withCredentials,
|
|
436
|
+
headers: localVarHeaders,
|
|
437
|
+
observe: observe,
|
|
438
|
+
transferCache: localVarTransferCache,
|
|
439
|
+
reportProgress: reportProgress
|
|
440
|
+
}
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Create an average basket
|
|
446
|
+
* @param requestParameters
|
|
447
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
448
|
+
* @param reportProgress flag to report request and response progress.
|
|
449
|
+
*/
|
|
450
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response>;
|
|
451
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response>>;
|
|
452
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response>>;
|
|
453
|
+
public projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
454
|
+
const projectId = requestParameters?.projectId;
|
|
455
|
+
if (projectId === null || projectId === undefined) {
|
|
456
|
+
throw new Error('Required parameter projectId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost.');
|
|
457
|
+
}
|
|
458
|
+
const sellableId = requestParameters?.sellableId;
|
|
459
|
+
if (sellableId === null || sellableId === undefined) {
|
|
460
|
+
throw new Error('Required parameter sellableId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost.');
|
|
461
|
+
}
|
|
462
|
+
const configSlotId = requestParameters?.configSlotId;
|
|
463
|
+
if (configSlotId === null || configSlotId === undefined) {
|
|
464
|
+
throw new Error('Required parameter configSlotId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost.');
|
|
465
|
+
}
|
|
466
|
+
const slotOptionId = requestParameters?.slotOptionId;
|
|
467
|
+
if (slotOptionId === null || slotOptionId === undefined) {
|
|
468
|
+
throw new Error('Required parameter slotOptionId was null or undefined when calling projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost.');
|
|
469
|
+
}
|
|
470
|
+
const projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest = requestParameters?.projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest;
|
|
471
|
+
|
|
472
|
+
let localVarHeaders = this.defaultHeaders;
|
|
473
|
+
|
|
474
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
475
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
476
|
+
// to determine the Accept header
|
|
477
|
+
const httpHeaderAccepts: string[] = [
|
|
478
|
+
'application/json'
|
|
479
|
+
];
|
|
480
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
481
|
+
}
|
|
482
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
483
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
487
|
+
if (localVarHttpContext === undefined) {
|
|
488
|
+
localVarHttpContext = new HttpContext();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
492
|
+
if (localVarTransferCache === undefined) {
|
|
493
|
+
localVarTransferCache = true;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
// to determine the Content-Type header
|
|
498
|
+
const consumes: string[] = [
|
|
499
|
+
'application/json'
|
|
500
|
+
];
|
|
501
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
502
|
+
if (httpContentTypeSelected !== undefined) {
|
|
503
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
507
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
508
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
509
|
+
responseType_ = 'text';
|
|
510
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
511
|
+
responseType_ = 'json';
|
|
512
|
+
} else {
|
|
513
|
+
responseType_ = 'blob';
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
let localVarPath = `/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/sellables/${this.configuration.encodeParam({name: "sellableId", value: sellableId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/config_slots/${this.configuration.encodeParam({name: "configSlotId", value: configSlotId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/slot_options/${this.configuration.encodeParam({name: "slotOptionId", value: slotOptionId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/average_baskets`;
|
|
518
|
+
return this.httpClient.request<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
519
|
+
{
|
|
520
|
+
context: localVarHttpContext,
|
|
521
|
+
body: projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest,
|
|
522
|
+
responseType: <any>responseType_,
|
|
523
|
+
withCredentials: this.configuration.withCredentials,
|
|
524
|
+
headers: localVarHeaders,
|
|
525
|
+
observe: observe,
|
|
526
|
+
transferCache: localVarTransferCache,
|
|
527
|
+
reportProgress: reportProgress
|
|
528
|
+
}
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API V1
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
11
|
+
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
|
|
14
|
+
import { ProjectsProjectIdAssetsPost422Response } from '../model/models';
|
|
15
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner } from '../model/models';
|
|
16
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response } from '../model/models';
|
|
17
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response } from '../model/models';
|
|
18
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest } from '../model/models';
|
|
19
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response } from '../model/models';
|
|
20
|
+
import { ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest } from '../model/models';
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
import { Configuration } from '../configuration';
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export interface ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams {
|
|
27
|
+
projectId: string;
|
|
28
|
+
sellableId: string;
|
|
29
|
+
configSlotId: string;
|
|
30
|
+
slotOptionId: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams {
|
|
34
|
+
projectId: string;
|
|
35
|
+
sellableId: string;
|
|
36
|
+
configSlotId: string;
|
|
37
|
+
slotOptionId: string;
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams {
|
|
42
|
+
projectId: string;
|
|
43
|
+
sellableId: string;
|
|
44
|
+
configSlotId: string;
|
|
45
|
+
slotOptionId: string;
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams {
|
|
50
|
+
projectId: string;
|
|
51
|
+
sellableId: string;
|
|
52
|
+
configSlotId: string;
|
|
53
|
+
slotOptionId: string;
|
|
54
|
+
id: string;
|
|
55
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest?: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequest;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams {
|
|
59
|
+
projectId: string;
|
|
60
|
+
sellableId: string;
|
|
61
|
+
configSlotId: string;
|
|
62
|
+
slotOptionId: string;
|
|
63
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest?: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export interface AverageBasketsServiceInterface {
|
|
68
|
+
defaultHeaders: HttpHeaders;
|
|
69
|
+
configuration: Configuration;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* List average baskets for the slot option
|
|
73
|
+
*
|
|
74
|
+
* @param requestParameters
|
|
75
|
+
*/
|
|
76
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGetRequestParams, extraHttpRequestParams?: any): Observable<Array<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsGet200ResponseInner>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* destroy an average basket
|
|
80
|
+
*
|
|
81
|
+
* @param requestParameters
|
|
82
|
+
*/
|
|
83
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDelete(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdDeleteRequestParams, extraHttpRequestParams?: any): Observable<{}>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* get an average basket\'s informations
|
|
87
|
+
*
|
|
88
|
+
* @param requestParameters
|
|
89
|
+
*/
|
|
90
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGetRequestParams, extraHttpRequestParams?: any): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdGet200Response>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* update an average basket
|
|
94
|
+
*
|
|
95
|
+
* @param requestParameters
|
|
96
|
+
*/
|
|
97
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatchRequestParams, extraHttpRequestParams?: any): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsIdPatch200Response>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Create an average basket
|
|
101
|
+
*
|
|
102
|
+
* @param requestParameters
|
|
103
|
+
*/
|
|
104
|
+
projectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost(requestParameters: ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPostRequestParams, extraHttpRequestParams?: any): Observable<ProjectsProjectIdSellablesSellableIdConfigSlotsConfigSlotIdSlotOptionsSlotOptionIdAverageBasketsPost201Response>;
|
|
105
|
+
|
|
106
|
+
}
|