@jrojaspin/security-map-api-cli 2.2.0 → 2.4.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/dist/apis/AccountApi.d.ts +18 -0
- package/dist/apis/AccountApi.js +82 -0
- package/dist/apis/AccountApi.js.map +1 -0
- package/dist/apis/ArticleApi.d.ts +6 -0
- package/dist/apis/ArticleApi.js +23 -0
- package/dist/apis/ArticleApi.js.map +1 -0
- package/dist/apis/HealthcheckApi.d.ts +5 -0
- package/dist/apis/HealthcheckApi.js +27 -0
- package/dist/apis/HealthcheckApi.js.map +1 -0
- package/dist/apis/ItemApi.d.ts +69 -0
- package/dist/apis/ItemApi.js +312 -0
- package/dist/apis/ItemApi.js.map +1 -0
- package/dist/apis/JournalApi.d.ts +22 -0
- package/dist/apis/JournalApi.js +75 -0
- package/dist/apis/JournalApi.js.map +1 -0
- package/dist/apis/LocationApi.d.ts +14 -0
- package/dist/apis/LocationApi.js +45 -0
- package/dist/apis/LocationApi.js.map +1 -0
- package/dist/apis/LoginApi.d.ts +29 -0
- package/dist/apis/LoginApi.js +178 -0
- package/dist/apis/LoginApi.js.map +1 -0
- package/dist/apis/MapApi.d.ts +39 -0
- package/dist/apis/MapApi.js +156 -0
- package/dist/apis/MapApi.js.map +1 -0
- package/dist/apis/MultimediaApi.d.ts +17 -0
- package/dist/apis/MultimediaApi.js +66 -0
- package/dist/apis/MultimediaApi.js.map +1 -0
- package/dist/apis/OrganizationApi.d.ts +32 -0
- package/dist/apis/OrganizationApi.js +127 -0
- package/dist/apis/OrganizationApi.js.map +1 -0
- package/dist/apis/ReportApi.d.ts +23 -0
- package/dist/apis/ReportApi.js +74 -0
- package/dist/apis/ReportApi.js.map +1 -0
- package/dist/apis/SearchApi.d.ts +12 -0
- package/dist/apis/SearchApi.js +50 -0
- package/dist/apis/SearchApi.js.map +1 -0
- package/dist/apis/SourceApi.d.ts +11 -0
- package/dist/apis/SourceApi.js +43 -0
- package/dist/apis/SourceApi.js.map +1 -0
- package/dist/apis/StateMachineApi.d.ts +6 -0
- package/dist/apis/StateMachineApi.js +23 -0
- package/dist/apis/StateMachineApi.js.map +1 -0
- package/{src/apis/index.ts → dist/apis/index.d.ts} +0 -2
- package/dist/apis/index.js +15 -0
- package/dist/apis/index.js.map +1 -0
- package/{src/index.ts → dist/index.d.ts} +0 -2
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6209 -0
- package/dist/index.mjs.map +1 -0
- package/dist/models/AccountORM.d.ts +9 -0
- package/dist/models/AccountORM.js +28 -0
- package/dist/models/AccountORM.js.map +1 -0
- package/dist/models/AccountOutput.d.ts +9 -0
- package/dist/models/AccountOutput.js +29 -0
- package/dist/models/AccountOutput.js.map +1 -0
- package/dist/models/AddUserToOrganizationDto.d.ts +9 -0
- package/dist/models/AddUserToOrganizationDto.js +29 -0
- package/dist/models/AddUserToOrganizationDto.js.map +1 -0
- package/dist/models/ArticleORM.d.ts +13 -0
- package/dist/models/ArticleORM.js +42 -0
- package/dist/models/ArticleORM.js.map +1 -0
- package/dist/models/ArticlePresentationORM.d.ts +10 -0
- package/dist/models/ArticlePresentationORM.js +34 -0
- package/dist/models/ArticlePresentationORM.js.map +1 -0
- package/dist/models/ArticleTypeORM.d.ts +9 -0
- package/dist/models/ArticleTypeORM.js +30 -0
- package/dist/models/ArticleTypeORM.js.map +1 -0
- package/dist/models/AutoCompleteORM.d.ts +12 -0
- package/dist/models/AutoCompleteORM.js +36 -0
- package/dist/models/AutoCompleteORM.js.map +1 -0
- package/dist/models/AvailableArticlesDto.d.ts +17 -0
- package/dist/models/AvailableArticlesDto.js +49 -0
- package/dist/models/AvailableArticlesDto.js.map +1 -0
- package/dist/models/AvailableArticlesOutput.d.ts +9 -0
- package/dist/models/AvailableArticlesOutput.js +29 -0
- package/dist/models/AvailableArticlesOutput.js.map +1 -0
- package/dist/models/AxisTitle.d.ts +9 -0
- package/dist/models/AxisTitle.js +32 -0
- package/dist/models/AxisTitle.js.map +1 -0
- package/dist/models/ChartConfiguration.d.ts +12 -0
- package/dist/models/ChartConfiguration.js +38 -0
- package/dist/models/ChartConfiguration.js.map +1 -0
- package/dist/models/ChartData.d.ts +9 -0
- package/dist/models/ChartData.js +29 -0
- package/dist/models/ChartData.js.map +1 -0
- package/dist/models/ChartDataset.d.ts +16 -0
- package/dist/models/ChartDataset.js +45 -0
- package/dist/models/ChartDataset.js.map +1 -0
- package/dist/models/ChartLegend.d.ts +15 -0
- package/dist/models/ChartLegend.js +34 -0
- package/dist/models/ChartLegend.js.map +1 -0
- package/dist/models/ChartOptions.d.ts +12 -0
- package/dist/models/ChartOptions.js +38 -0
- package/dist/models/ChartOptions.js.map +1 -0
- package/dist/models/ChartPlugins.d.ts +11 -0
- package/dist/models/ChartPlugins.js +34 -0
- package/dist/models/ChartPlugins.js.map +1 -0
- package/dist/models/ChartScales.d.ts +11 -0
- package/dist/models/ChartScales.js +34 -0
- package/dist/models/ChartScales.js.map +1 -0
- package/dist/models/ChartTitle.d.ts +9 -0
- package/dist/models/ChartTitle.js +32 -0
- package/dist/models/ChartTitle.js.map +1 -0
- package/dist/models/DataPoint.d.ts +9 -0
- package/dist/models/DataPoint.js +32 -0
- package/dist/models/DataPoint.js.map +1 -0
- package/dist/models/ItemLayerLinkInputDto.d.ts +8 -0
- package/dist/models/ItemLayerLinkInputDto.js +28 -0
- package/dist/models/ItemLayerLinkInputDto.js.map +1 -0
- package/dist/models/ItemLinkToLayerOutput.d.ts +8 -0
- package/dist/models/ItemLinkToLayerOutput.js +28 -0
- package/dist/models/ItemLinkToLayerOutput.js.map +1 -0
- package/dist/models/ItemTypeFormDto.d.ts +13 -0
- package/dist/models/ItemTypeFormDto.js +39 -0
- package/dist/models/ItemTypeFormDto.js.map +1 -0
- package/dist/models/ItemTypeFormOutput.d.ts +9 -0
- package/dist/models/ItemTypeFormOutput.js +29 -0
- package/dist/models/ItemTypeFormOutput.js.map +1 -0
- package/dist/models/ItemTypeORM.d.ts +13 -0
- package/dist/models/ItemTypeORM.js +42 -0
- package/dist/models/ItemTypeORM.js.map +1 -0
- package/dist/models/ItemTypeOutput.d.ts +9 -0
- package/dist/models/ItemTypeOutput.js +29 -0
- package/dist/models/ItemTypeOutput.js.map +1 -0
- package/dist/models/ItemsOutput.d.ts +9 -0
- package/dist/models/ItemsOutput.js +29 -0
- package/dist/models/ItemsOutput.js.map +1 -0
- package/dist/models/JournalBookORM.d.ts +10 -0
- package/dist/models/JournalBookORM.js +36 -0
- package/dist/models/JournalBookORM.js.map +1 -0
- package/dist/models/JournalEntryArticleORM.d.ts +13 -0
- package/dist/models/JournalEntryArticleORM.js +46 -0
- package/dist/models/JournalEntryArticleORM.js.map +1 -0
- package/dist/models/JournalEntryListOutput.d.ts +9 -0
- package/dist/models/JournalEntryListOutput.js +29 -0
- package/dist/models/JournalEntryListOutput.js.map +1 -0
- package/dist/models/JournalEntryMultimediaInput.d.ts +8 -0
- package/dist/models/JournalEntryMultimediaInput.js +28 -0
- package/dist/models/JournalEntryMultimediaInput.js.map +1 -0
- package/dist/models/JournalEntryMultimediaORM.d.ts +10 -0
- package/dist/models/JournalEntryMultimediaORM.js +34 -0
- package/dist/models/JournalEntryMultimediaORM.js.map +1 -0
- package/dist/models/JournalEntryMultimediaOutput.d.ts +8 -0
- package/dist/models/JournalEntryMultimediaOutput.js +28 -0
- package/dist/models/JournalEntryMultimediaOutput.js.map +1 -0
- package/dist/models/JournalEntryORM.d.ts +13 -0
- package/dist/models/JournalEntryORM.js +40 -0
- package/dist/models/JournalEntryORM.js.map +1 -0
- package/dist/models/JournalEntryOutput.d.ts +9 -0
- package/dist/models/JournalEntryOutput.js +29 -0
- package/dist/models/JournalEntryOutput.js.map +1 -0
- package/dist/models/JournalEntryOutputDto.d.ts +9 -0
- package/dist/models/JournalEntryOutputDto.js +32 -0
- package/dist/models/JournalEntryOutputDto.js.map +1 -0
- package/dist/models/LegendPosition.d.ts +12 -0
- package/dist/models/LegendPosition.js +29 -0
- package/dist/models/LegendPosition.js.map +1 -0
- package/dist/models/LocationORM.d.ts +25 -0
- package/dist/models/LocationORM.js +94 -0
- package/dist/models/LocationORM.js.map +1 -0
- package/dist/models/LocationOutput.d.ts +9 -0
- package/dist/models/LocationOutput.js +29 -0
- package/dist/models/LocationOutput.js.map +1 -0
- package/dist/models/MagnitudeORM.d.ts +9 -0
- package/dist/models/MagnitudeORM.js +30 -0
- package/dist/models/MagnitudeORM.js.map +1 -0
- package/dist/models/ManualLoginInput.d.ts +9 -0
- package/dist/models/ManualLoginInput.js +32 -0
- package/dist/models/ManualLoginInput.js.map +1 -0
- package/dist/models/ManualLoginPasswordUpdateInput.d.ts +9 -0
- package/dist/models/ManualLoginPasswordUpdateInput.js +32 -0
- package/dist/models/ManualLoginPasswordUpdateInput.js.map +1 -0
- package/dist/models/ManualRegisterInput.d.ts +10 -0
- package/dist/models/ManualRegisterInput.js +36 -0
- package/dist/models/ManualRegisterInput.js.map +1 -0
- package/dist/models/MapItemArticleInputDto.d.ts +13 -0
- package/dist/models/MapItemArticleInputDto.js +44 -0
- package/dist/models/MapItemArticleInputDto.js.map +1 -0
- package/dist/models/MapItemArticleORM.d.ts +13 -0
- package/dist/models/MapItemArticleORM.js +46 -0
- package/dist/models/MapItemArticleORM.js.map +1 -0
- package/dist/models/MapItemCustomFieldDefinitionORM.d.ts +11 -0
- package/dist/models/MapItemCustomFieldDefinitionORM.js +38 -0
- package/dist/models/MapItemCustomFieldDefinitionORM.js.map +1 -0
- package/dist/models/MapItemDynamicFieldInputDto.d.ts +11 -0
- package/dist/models/MapItemDynamicFieldInputDto.js +36 -0
- package/dist/models/MapItemDynamicFieldInputDto.js.map +1 -0
- package/dist/models/MapItemDynamicFieldORM.d.ts +11 -0
- package/dist/models/MapItemDynamicFieldORM.js +38 -0
- package/dist/models/MapItemDynamicFieldORM.js.map +1 -0
- package/dist/models/MapItemDynamicFieldWithDefinitionORM.d.ts +11 -0
- package/dist/models/MapItemDynamicFieldWithDefinitionORM.js +34 -0
- package/dist/models/MapItemDynamicFieldWithDefinitionORM.js.map +1 -0
- package/dist/models/MapItemInput.d.ts +23 -0
- package/dist/models/MapItemInput.js +69 -0
- package/dist/models/MapItemInput.js.map +1 -0
- package/dist/models/MapItemLinkORM.d.ts +13 -0
- package/dist/models/MapItemLinkORM.js +42 -0
- package/dist/models/MapItemLinkORM.js.map +1 -0
- package/dist/models/MapItemLinkOutput.d.ts +9 -0
- package/dist/models/MapItemLinkOutput.js +29 -0
- package/dist/models/MapItemLinkOutput.js.map +1 -0
- package/dist/models/MapItemListOutput.d.ts +9 -0
- package/dist/models/MapItemListOutput.js +29 -0
- package/dist/models/MapItemListOutput.js.map +1 -0
- package/dist/models/MapItemMultimediaORM.d.ts +10 -0
- package/dist/models/MapItemMultimediaORM.js +34 -0
- package/dist/models/MapItemMultimediaORM.js.map +1 -0
- package/dist/models/MapItemMultimediaOutput.d.ts +9 -0
- package/dist/models/MapItemMultimediaOutput.js +29 -0
- package/dist/models/MapItemMultimediaOutput.js.map +1 -0
- package/dist/models/MapItemNearByORM.d.ts +9 -0
- package/dist/models/MapItemNearByORM.js +32 -0
- package/dist/models/MapItemNearByORM.js.map +1 -0
- package/dist/models/MapItemORM.d.ts +16 -0
- package/dist/models/MapItemORM.js +50 -0
- package/dist/models/MapItemORM.js.map +1 -0
- package/dist/models/MapItemOutput.d.ts +9 -0
- package/dist/models/MapItemOutput.js +29 -0
- package/dist/models/MapItemOutput.js.map +1 -0
- package/dist/models/MapItemOutputDto.d.ts +27 -0
- package/dist/models/MapItemOutputDto.js +84 -0
- package/dist/models/MapItemOutputDto.js.map +1 -0
- package/dist/models/MapItemOutputDtoProps.d.ts +27 -0
- package/dist/models/MapItemOutputDtoProps.js +84 -0
- package/dist/models/MapItemOutputDtoProps.js.map +1 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionOutput.d.ts +9 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionOutput.js +29 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionOutput.js.map +1 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionValuesOutput.d.ts +8 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionValuesOutput.js +28 -0
- package/dist/models/MapItemTypeDynamicFieldDefinitionValuesOutput.js.map +1 -0
- package/dist/models/MapItemTypeFormORM.d.ts +10 -0
- package/dist/models/MapItemTypeFormORM.js +34 -0
- package/dist/models/MapItemTypeFormORM.js.map +1 -0
- package/dist/models/MapItemTypeFormSectionDto.d.ts +11 -0
- package/dist/models/MapItemTypeFormSectionDto.js +34 -0
- package/dist/models/MapItemTypeFormSectionDto.js.map +1 -0
- package/dist/models/MapItemTypeFormSectionFieldORM.d.ts +12 -0
- package/dist/models/MapItemTypeFormSectionFieldORM.js +42 -0
- package/dist/models/MapItemTypeFormSectionFieldORM.js.map +1 -0
- package/dist/models/MapItemTypeFormSectionORM.d.ts +11 -0
- package/dist/models/MapItemTypeFormSectionORM.js +38 -0
- package/dist/models/MapItemTypeFormSectionORM.js.map +1 -0
- package/dist/models/MapItemTypeORM.d.ts +16 -0
- package/dist/models/MapItemTypeORM.js +54 -0
- package/dist/models/MapItemTypeORM.js.map +1 -0
- package/dist/models/MapItemTypeOutput.d.ts +9 -0
- package/dist/models/MapItemTypeOutput.js +29 -0
- package/dist/models/MapItemTypeOutput.js.map +1 -0
- package/dist/models/MapLayerInput.d.ts +10 -0
- package/dist/models/MapLayerInput.js +36 -0
- package/dist/models/MapLayerInput.js.map +1 -0
- package/dist/models/MapLayerItemListOutput.d.ts +9 -0
- package/dist/models/MapLayerItemListOutput.js +29 -0
- package/dist/models/MapLayerItemListOutput.js.map +1 -0
- package/dist/models/MapLayerItemORM.d.ts +12 -0
- package/dist/models/MapLayerItemORM.js +42 -0
- package/dist/models/MapLayerItemORM.js.map +1 -0
- package/dist/models/MapLayerItemOutput.d.ts +9 -0
- package/dist/models/MapLayerItemOutput.js +29 -0
- package/dist/models/MapLayerItemOutput.js.map +1 -0
- package/dist/models/MapLayerListOutput.d.ts +9 -0
- package/dist/models/MapLayerListOutput.js +29 -0
- package/dist/models/MapLayerListOutput.js.map +1 -0
- package/dist/models/MapLayerORM.d.ts +12 -0
- package/dist/models/MapLayerORM.js +38 -0
- package/dist/models/MapLayerORM.js.map +1 -0
- package/dist/models/MapLayerOutput.d.ts +9 -0
- package/dist/models/MapLayerOutput.js +29 -0
- package/dist/models/MapLayerOutput.js.map +1 -0
- package/dist/models/MapLayerOutputDto.d.ts +14 -0
- package/dist/models/MapLayerOutputDto.js +47 -0
- package/dist/models/MapLayerOutputDto.js.map +1 -0
- package/dist/models/MapListOutput.d.ts +9 -0
- package/dist/models/MapListOutput.js +29 -0
- package/dist/models/MapListOutput.js.map +1 -0
- package/dist/models/MapORM.d.ts +13 -0
- package/dist/models/MapORM.js +42 -0
- package/dist/models/MapORM.js.map +1 -0
- package/dist/models/MapOutput.d.ts +9 -0
- package/dist/models/MapOutput.js +29 -0
- package/dist/models/MapOutput.js.map +1 -0
- package/dist/models/MapZoneInput.d.ts +8 -0
- package/dist/models/MapZoneInput.js +28 -0
- package/dist/models/MapZoneInput.js.map +1 -0
- package/dist/models/MapZoneORM.d.ts +10 -0
- package/dist/models/MapZoneORM.js +34 -0
- package/dist/models/MapZoneORM.js.map +1 -0
- package/dist/models/MapZoneOutput.d.ts +9 -0
- package/dist/models/MapZoneOutput.js +29 -0
- package/dist/models/MapZoneOutput.js.map +1 -0
- package/dist/models/MapZoneOutputDto.d.ts +12 -0
- package/dist/models/MapZoneOutputDto.js +39 -0
- package/dist/models/MapZoneOutputDto.js.map +1 -0
- package/dist/models/MapZonePointORM.d.ts +10 -0
- package/dist/models/MapZonePointORM.js +34 -0
- package/dist/models/MapZonePointORM.js.map +1 -0
- package/dist/models/MeasureUnitORM.d.ts +11 -0
- package/dist/models/MeasureUnitORM.js +38 -0
- package/dist/models/MeasureUnitORM.js.map +1 -0
- package/dist/models/ModelRequestContext.d.ts +9 -0
- package/dist/models/ModelRequestContext.js +30 -0
- package/dist/models/ModelRequestContext.js.map +1 -0
- package/dist/models/MultimediaORM.d.ts +12 -0
- package/dist/models/MultimediaORM.js +38 -0
- package/dist/models/MultimediaORM.js.map +1 -0
- package/dist/models/MultimediaOutput.d.ts +9 -0
- package/dist/models/MultimediaOutput.js +29 -0
- package/dist/models/MultimediaOutput.js.map +1 -0
- package/dist/models/NominatimAddressORM.d.ts +17 -0
- package/dist/models/NominatimAddressORM.js +64 -0
- package/dist/models/NominatimAddressORM.js.map +1 -0
- package/dist/models/NominatimORM.d.ts +22 -0
- package/dist/models/NominatimORM.js +84 -0
- package/dist/models/NominatimORM.js.map +1 -0
- package/dist/models/OrganizationORM.d.ts +10 -0
- package/dist/models/OrganizationORM.js +34 -0
- package/dist/models/OrganizationORM.js.map +1 -0
- package/dist/models/ReportAvailableColumnDto.d.ts +9 -0
- package/dist/models/ReportAvailableColumnDto.js +32 -0
- package/dist/models/ReportAvailableColumnDto.js.map +1 -0
- package/dist/models/ReportAvailableColumnsListOutput.d.ts +9 -0
- package/dist/models/ReportAvailableColumnsListOutput.js +29 -0
- package/dist/models/ReportAvailableColumnsListOutput.js.map +1 -0
- package/dist/models/ReportColumnFilterORM.d.ts +12 -0
- package/dist/models/ReportColumnFilterORM.js +42 -0
- package/dist/models/ReportColumnFilterORM.js.map +1 -0
- package/dist/models/ReportColumnORM.d.ts +16 -0
- package/dist/models/ReportColumnORM.js +54 -0
- package/dist/models/ReportColumnORM.js.map +1 -0
- package/dist/models/ReportConfigurationDto.d.ts +9 -0
- package/dist/models/ReportConfigurationDto.js +32 -0
- package/dist/models/ReportConfigurationDto.js.map +1 -0
- package/dist/models/ReportDataCSVDto.d.ts +8 -0
- package/dist/models/ReportDataCSVDto.js +28 -0
- package/dist/models/ReportDataCSVDto.js.map +1 -0
- package/dist/models/ReportDataDto.d.ts +11 -0
- package/dist/models/ReportDataDto.js +30 -0
- package/dist/models/ReportDataDto.js.map +1 -0
- package/dist/models/ReportDataJSONDto.d.ts +9 -0
- package/dist/models/ReportDataJSONDto.js +29 -0
- package/dist/models/ReportDataJSONDto.js.map +1 -0
- package/dist/models/ReportDataORM.d.ts +9 -0
- package/dist/models/ReportDataORM.js +29 -0
- package/dist/models/ReportDataORM.js.map +1 -0
- package/dist/models/ReportDataOutput.d.ts +9 -0
- package/dist/models/ReportDataOutput.js +29 -0
- package/dist/models/ReportDataOutput.js.map +1 -0
- package/dist/models/ReportDataRowORM.d.ts +8 -0
- package/dist/models/ReportDataRowORM.js +28 -0
- package/dist/models/ReportDataRowORM.js.map +1 -0
- package/dist/models/ReportDto.d.ts +9 -0
- package/dist/models/ReportDto.js +32 -0
- package/dist/models/ReportDto.js.map +1 -0
- package/dist/models/ReportListOutput.d.ts +9 -0
- package/dist/models/ReportListOutput.js +29 -0
- package/dist/models/ReportListOutput.js.map +1 -0
- package/dist/models/ReportORM.d.ts +12 -0
- package/dist/models/ReportORM.js +38 -0
- package/dist/models/ReportORM.js.map +1 -0
- package/dist/models/ReportOutput.d.ts +9 -0
- package/dist/models/ReportOutput.js +29 -0
- package/dist/models/ReportOutput.js.map +1 -0
- package/dist/models/SearchORM.d.ts +10 -0
- package/dist/models/SearchORM.js +36 -0
- package/dist/models/SearchORM.js.map +1 -0
- package/dist/models/SearchOutput.d.ts +9 -0
- package/dist/models/SearchOutput.js +29 -0
- package/dist/models/SearchOutput.js.map +1 -0
- package/dist/models/SearchResultDto.d.ts +9 -0
- package/dist/models/SearchResultDto.js +29 -0
- package/dist/models/SearchResultDto.js.map +1 -0
- package/dist/models/SearchResultSectionDto.d.ts +11 -0
- package/dist/models/SearchResultSectionDto.js +37 -0
- package/dist/models/SearchResultSectionDto.js.map +1 -0
- package/dist/models/SearchResultSectionItem.d.ts +12 -0
- package/dist/models/SearchResultSectionItem.js +39 -0
- package/dist/models/SearchResultSectionItem.js.map +1 -0
- package/dist/models/SourceDto.d.ts +9 -0
- package/dist/models/SourceDto.js +30 -0
- package/dist/models/SourceDto.js.map +1 -0
- package/dist/models/SourceListOutput.d.ts +9 -0
- package/dist/models/SourceListOutput.js +29 -0
- package/dist/models/SourceListOutput.js.map +1 -0
- package/dist/models/SourceOutput.d.ts +9 -0
- package/dist/models/SourceOutput.js +29 -0
- package/dist/models/SourceOutput.js.map +1 -0
- package/dist/models/StateMachineDefinitionListOutput.d.ts +9 -0
- package/dist/models/StateMachineDefinitionListOutput.js +29 -0
- package/dist/models/StateMachineDefinitionListOutput.js.map +1 -0
- package/dist/models/StateMachineDefinitionOutputDto.d.ts +14 -0
- package/dist/models/StateMachineDefinitionOutputDto.js +46 -0
- package/dist/models/StateMachineDefinitionOutputDto.js.map +1 -0
- package/dist/models/StateMachineORM.d.ts +10 -0
- package/dist/models/StateMachineORM.js +32 -0
- package/dist/models/StateMachineORM.js.map +1 -0
- package/dist/models/StateMachineStateORM.d.ts +11 -0
- package/dist/models/StateMachineStateORM.js +38 -0
- package/dist/models/StateMachineStateORM.js.map +1 -0
- package/dist/models/StateMachineStateOutputDto.d.ts +10 -0
- package/dist/models/StateMachineStateOutputDto.js +36 -0
- package/dist/models/StateMachineStateOutputDto.js.map +1 -0
- package/dist/models/StateMachineTransitionLogORM.d.ts +12 -0
- package/dist/models/StateMachineTransitionLogORM.js +40 -0
- package/dist/models/StateMachineTransitionLogORM.js.map +1 -0
- package/dist/models/StateMachineTransitionORM.d.ts +12 -0
- package/dist/models/StateMachineTransitionORM.js +42 -0
- package/dist/models/StateMachineTransitionORM.js.map +1 -0
- package/dist/models/StateMachineTransitionOutputDto.d.ts +11 -0
- package/dist/models/StateMachineTransitionOutputDto.js +40 -0
- package/dist/models/StateMachineTransitionOutputDto.js.map +1 -0
- package/dist/models/UpdateUserInOrganizationPasswordDto.d.ts +8 -0
- package/dist/models/UpdateUserInOrganizationPasswordDto.js +28 -0
- package/dist/models/UpdateUserInOrganizationPasswordDto.js.map +1 -0
- package/dist/models/UploadDto.d.ts +9 -0
- package/dist/models/UploadDto.js +32 -0
- package/dist/models/UploadDto.js.map +1 -0
- package/dist/models/UploadOutput.d.ts +9 -0
- package/dist/models/UploadOutput.js +29 -0
- package/dist/models/UploadOutput.js.map +1 -0
- package/dist/models/UserDto.d.ts +10 -0
- package/dist/models/UserDto.js +33 -0
- package/dist/models/UserDto.js.map +1 -0
- package/dist/models/UserInOrganizationDto.d.ts +15 -0
- package/dist/models/UserInOrganizationDto.js +56 -0
- package/dist/models/UserInOrganizationDto.js.map +1 -0
- package/dist/models/UserInOrganizationOutput.d.ts +9 -0
- package/dist/models/UserInOrganizationOutput.js +29 -0
- package/dist/models/UserInOrganizationOutput.js.map +1 -0
- package/dist/models/UserORM.d.ts +17 -0
- package/dist/models/UserORM.js +60 -0
- package/dist/models/UserORM.js.map +1 -0
- package/dist/models/XAxisOptions.d.ts +10 -0
- package/dist/models/XAxisOptions.js +33 -0
- package/dist/models/XAxisOptions.js.map +1 -0
- package/dist/models/YAxisOptions.d.ts +10 -0
- package/dist/models/YAxisOptions.js +33 -0
- package/dist/models/YAxisOptions.js.map +1 -0
- package/{src/models/index.ts → dist/models/index.d.ts} +0 -2
- package/dist/models/index.js +131 -0
- package/dist/models/index.js.map +1 -0
- package/dist/runtime.d.ts +154 -0
- package/dist/runtime.js +286 -0
- package/dist/runtime.js.map +1 -0
- package/package.json +4 -1
- package/.env.template +0 -23
- package/src/apis/AccountApi.ts +0 -171
- package/src/apis/ArticleApi.ts +0 -62
- package/src/apis/HealthcheckApi.ts +0 -55
- package/src/apis/ItemApi.ts +0 -662
- package/src/apis/JournalApi.ts +0 -181
- package/src/apis/LocationApi.ts +0 -113
- package/src/apis/LoginApi.ts +0 -291
- package/src/apis/MapApi.ts +0 -340
- package/src/apis/MultimediaApi.ts +0 -152
- package/src/apis/OrganizationApi.ts +0 -269
- package/src/apis/ReportApi.ts +0 -171
- package/src/apis/SearchApi.ts +0 -110
- package/src/apis/SourceApi.ts +0 -103
- package/src/apis/StateMachineApi.ts +0 -62
- package/src/models/AccountORM.ts +0 -73
- package/src/models/AccountOutput.ts +0 -74
- package/src/models/AddUserToOrganizationDto.ts +0 -74
- package/src/models/ArticleORM.ts +0 -108
- package/src/models/ArticlePresentationORM.ts +0 -83
- package/src/models/ArticleTypeORM.ts +0 -74
- package/src/models/AutoCompleteORM.ts +0 -98
- package/src/models/AvailableArticlesDto.ts +0 -138
- package/src/models/AvailableArticlesOutput.ts +0 -74
- package/src/models/AxisTitle.ts +0 -75
- package/src/models/ChartConfiguration.ts +0 -99
- package/src/models/ChartData.ts +0 -74
- package/src/models/ChartDataset.ts +0 -131
- package/src/models/ChartLegend.ts +0 -79
- package/src/models/ChartOptions.ts +0 -99
- package/src/models/ChartPlugins.ts +0 -90
- package/src/models/ChartScales.ts +0 -90
- package/src/models/ChartTitle.ts +0 -75
- package/src/models/DataPoint.ts +0 -75
- package/src/models/ItemLayerLinkInputDto.ts +0 -66
- package/src/models/ItemLinkToLayerOutput.ts +0 -66
- package/src/models/ItemTypeFormDto.ts +0 -106
- package/src/models/ItemTypeFormOutput.ts +0 -74
- package/src/models/ItemTypeORM.ts +0 -108
- package/src/models/ItemTypeOutput.ts +0 -74
- package/src/models/ItemsOutput.ts +0 -74
- package/src/models/JournalBookORM.ts +0 -84
- package/src/models/JournalEntryArticleORM.ts +0 -110
- package/src/models/JournalEntryListOutput.ts +0 -74
- package/src/models/JournalEntryMultimediaInput.ts +0 -66
- package/src/models/JournalEntryMultimediaORM.ts +0 -83
- package/src/models/JournalEntryMultimediaOutput.ts +0 -66
- package/src/models/JournalEntryORM.ts +0 -107
- package/src/models/JournalEntryOutput.ts +0 -74
- package/src/models/JournalEntryOutputDto.ts +0 -75
- package/src/models/LegendPosition.ts +0 -55
- package/src/models/LocationORM.ts +0 -218
- package/src/models/LocationOutput.ts +0 -74
- package/src/models/MagnitudeORM.ts +0 -74
- package/src/models/ManualLoginInput.ts +0 -75
- package/src/models/ManualLoginPasswordUpdateInput.ts +0 -75
- package/src/models/ManualRegisterInput.ts +0 -84
- package/src/models/MapItemArticleInputDto.ts +0 -109
- package/src/models/MapItemArticleORM.ts +0 -110
- package/src/models/MapItemCustomFieldDefinitionORM.ts +0 -92
- package/src/models/MapItemDynamicFieldInputDto.ts +0 -91
- package/src/models/MapItemDynamicFieldORM.ts +0 -92
- package/src/models/MapItemDynamicFieldWithDefinitionORM.ts +0 -90
- package/src/models/MapItemInput.ts +0 -191
- package/src/models/MapItemLinkORM.ts +0 -108
- package/src/models/MapItemLinkOutput.ts +0 -74
- package/src/models/MapItemListOutput.ts +0 -74
- package/src/models/MapItemMultimediaORM.ts +0 -83
- package/src/models/MapItemMultimediaOutput.ts +0 -74
- package/src/models/MapItemNearByORM.ts +0 -75
- package/src/models/MapItemORM.ts +0 -133
- package/src/models/MapItemOutput.ts +0 -74
- package/src/models/MapItemOutputDto.ts +0 -225
- package/src/models/MapItemOutputDtoProps.ts +0 -225
- package/src/models/MapItemTypeDynamicFieldDefinitionOutput.ts +0 -74
- package/src/models/MapItemTypeDynamicFieldDefinitionValuesOutput.ts +0 -66
- package/src/models/MapItemTypeFormORM.ts +0 -83
- package/src/models/MapItemTypeFormSectionDto.ts +0 -90
- package/src/models/MapItemTypeFormSectionFieldORM.ts +0 -101
- package/src/models/MapItemTypeFormSectionORM.ts +0 -92
- package/src/models/MapItemTypeORM.ts +0 -135
- package/src/models/MapItemTypeOutput.ts +0 -74
- package/src/models/MapLayerInput.ts +0 -84
- package/src/models/MapLayerItemListOutput.ts +0 -74
- package/src/models/MapLayerItemORM.ts +0 -101
- package/src/models/MapLayerItemOutput.ts +0 -74
- package/src/models/MapLayerListOutput.ts +0 -74
- package/src/models/MapLayerORM.ts +0 -99
- package/src/models/MapLayerOutput.ts +0 -74
- package/src/models/MapLayerOutputDto.ts +0 -118
- package/src/models/MapListOutput.ts +0 -74
- package/src/models/MapORM.ts +0 -108
- package/src/models/MapOutput.ts +0 -74
- package/src/models/MapZoneInput.ts +0 -66
- package/src/models/MapZoneORM.ts +0 -83
- package/src/models/MapZoneOutput.ts +0 -74
- package/src/models/MapZoneOutputDto.ts +0 -100
- package/src/models/MapZonePointORM.ts +0 -83
- package/src/models/MeasureUnitORM.ts +0 -92
- package/src/models/ModelRequestContext.ts +0 -74
- package/src/models/MultimediaORM.ts +0 -99
- package/src/models/MultimediaOutput.ts +0 -74
- package/src/models/NominatimAddressORM.ts +0 -147
- package/src/models/NominatimORM.ts +0 -192
- package/src/models/OrganizationORM.ts +0 -83
- package/src/models/ReportAvailableColumnDto.ts +0 -75
- package/src/models/ReportAvailableColumnsListOutput.ts +0 -74
- package/src/models/ReportColumnFilterORM.ts +0 -101
- package/src/models/ReportColumnORM.ts +0 -135
- package/src/models/ReportConfigurationDto.ts +0 -75
- package/src/models/ReportDataCSVDto.ts +0 -66
- package/src/models/ReportDataDto.ts +0 -88
- package/src/models/ReportDataJSONDto.ts +0 -74
- package/src/models/ReportDataORM.ts +0 -74
- package/src/models/ReportDataOutput.ts +0 -74
- package/src/models/ReportDataRowORM.ts +0 -66
- package/src/models/ReportDto.ts +0 -75
- package/src/models/ReportListOutput.ts +0 -74
- package/src/models/ReportORM.ts +0 -99
- package/src/models/ReportOutput.ts +0 -74
- package/src/models/SearchORM.ts +0 -84
- package/src/models/SearchOutput.ts +0 -74
- package/src/models/SearchResultDto.ts +0 -74
- package/src/models/SearchResultSectionDto.ts +0 -92
- package/src/models/SearchResultSectionItem.ts +0 -100
- package/src/models/SourceDto.ts +0 -74
- package/src/models/SourceListOutput.ts +0 -74
- package/src/models/SourceOutput.ts +0 -74
- package/src/models/StateMachineDefinitionListOutput.ts +0 -74
- package/src/models/StateMachineDefinitionOutputDto.ts +0 -117
- package/src/models/StateMachineORM.ts +0 -82
- package/src/models/StateMachineStateORM.ts +0 -92
- package/src/models/StateMachineStateOutputDto.ts +0 -84
- package/src/models/StateMachineTransitionLogORM.ts +0 -100
- package/src/models/StateMachineTransitionORM.ts +0 -101
- package/src/models/StateMachineTransitionOutputDto.ts +0 -93
- package/src/models/UpdateUserInOrganizationPasswordDto.ts +0 -66
- package/src/models/UploadDto.ts +0 -75
- package/src/models/UploadOutput.ts +0 -74
- package/src/models/UserDto.ts +0 -83
- package/src/models/UserInOrganizationDto.ts +0 -129
- package/src/models/UserInOrganizationOutput.ts +0 -74
- package/src/models/UserORM.ts +0 -145
- package/src/models/XAxisOptions.ts +0 -83
- package/src/models/YAxisOptions.ts +0 -83
- package/src/runtime.ts +0 -431
- package/ts2js.sh +0 -1
- package/tsconfig.build.json +0 -15
- package/tsconfig.json +0 -82
package/src/runtime.ts
DELETED
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Security Map API
|
|
5
|
-
* Security Map API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
17
|
-
|
|
18
|
-
export interface ConfigurationParameters {
|
|
19
|
-
basePath?: string; // override base path
|
|
20
|
-
fetchApi?: FetchAPI; // override for fetch implementation
|
|
21
|
-
middleware?: Middleware[]; // middleware to apply before/after fetch requests
|
|
22
|
-
queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
|
|
23
|
-
username?: string; // parameter for basic security
|
|
24
|
-
password?: string; // parameter for basic security
|
|
25
|
-
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security
|
|
26
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
|
|
27
|
-
headers?: HTTPHeaders; //header params we want to use on every request
|
|
28
|
-
credentials?: RequestCredentials; //value for the credentials param we want to use on each request
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export class Configuration {
|
|
32
|
-
constructor(private configuration: ConfigurationParameters = {}) {}
|
|
33
|
-
|
|
34
|
-
set config(configuration: Configuration) {
|
|
35
|
-
this.configuration = configuration;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
get basePath(): string {
|
|
39
|
-
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
get fetchApi(): FetchAPI | undefined {
|
|
43
|
-
return this.configuration.fetchApi;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
get middleware(): Middleware[] {
|
|
47
|
-
return this.configuration.middleware || [];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
get queryParamsStringify(): (params: HTTPQuery) => string {
|
|
51
|
-
return this.configuration.queryParamsStringify || querystring;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
get username(): string | undefined {
|
|
55
|
-
return this.configuration.username;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
get password(): string | undefined {
|
|
59
|
-
return this.configuration.password;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
get apiKey(): ((name: string) => string | Promise<string>) | undefined {
|
|
63
|
-
const apiKey = this.configuration.apiKey;
|
|
64
|
-
if (apiKey) {
|
|
65
|
-
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
66
|
-
}
|
|
67
|
-
return undefined;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
|
|
71
|
-
const accessToken = this.configuration.accessToken;
|
|
72
|
-
if (accessToken) {
|
|
73
|
-
return typeof accessToken === 'function' ? accessToken : async () => accessToken;
|
|
74
|
-
}
|
|
75
|
-
return undefined;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
get headers(): HTTPHeaders | undefined {
|
|
79
|
-
return this.configuration.headers;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
get credentials(): RequestCredentials | undefined {
|
|
83
|
-
return this.configuration.credentials;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export const DefaultConfig = new Configuration();
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* This is the base class for all generated API classes.
|
|
91
|
-
*/
|
|
92
|
-
export class BaseAPI {
|
|
93
|
-
|
|
94
|
-
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
95
|
-
private middleware: Middleware[];
|
|
96
|
-
|
|
97
|
-
constructor(protected configuration = DefaultConfig) {
|
|
98
|
-
this.middleware = configuration.middleware;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
|
102
|
-
const next = this.clone<T>();
|
|
103
|
-
next.middleware = next.middleware.concat(...middlewares);
|
|
104
|
-
return next;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
|
|
108
|
-
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
109
|
-
return this.withMiddleware<T>(...middlewares);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
|
|
113
|
-
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
114
|
-
return this.withMiddleware<T>(...middlewares);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Check if the given MIME is a JSON MIME.
|
|
119
|
-
* JSON MIME examples:
|
|
120
|
-
* application/json
|
|
121
|
-
* application/json; charset=UTF8
|
|
122
|
-
* APPLICATION/JSON
|
|
123
|
-
* application/vnd.company+json
|
|
124
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
125
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
126
|
-
*/
|
|
127
|
-
protected isJsonMime(mime: string | null | undefined): boolean {
|
|
128
|
-
if (!mime) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
return BaseAPI.jsonRegex.test(mime);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
|
|
135
|
-
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
136
|
-
const response = await this.fetchApi(url, init);
|
|
137
|
-
if (response && (response.status >= 200 && response.status < 300)) {
|
|
138
|
-
return response;
|
|
139
|
-
}
|
|
140
|
-
throw new ResponseError(response, 'Response returned an error code');
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {
|
|
144
|
-
let url = this.configuration.basePath + context.path;
|
|
145
|
-
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
146
|
-
// only add the querystring to the URL if there are query parameters.
|
|
147
|
-
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
148
|
-
// do not handle correctly sometimes.
|
|
149
|
-
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
153
|
-
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
154
|
-
|
|
155
|
-
const initOverrideFn =
|
|
156
|
-
typeof initOverrides === "function"
|
|
157
|
-
? initOverrides
|
|
158
|
-
: async () => initOverrides;
|
|
159
|
-
|
|
160
|
-
const initParams = {
|
|
161
|
-
method: context.method,
|
|
162
|
-
headers,
|
|
163
|
-
body: context.body,
|
|
164
|
-
credentials: this.configuration.credentials,
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
const overriddenInit: RequestInit = {
|
|
168
|
-
...initParams,
|
|
169
|
-
...(await initOverrideFn({
|
|
170
|
-
init: initParams,
|
|
171
|
-
context,
|
|
172
|
-
}))
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
let body: any;
|
|
176
|
-
if (isFormData(overriddenInit.body)
|
|
177
|
-
|| (overriddenInit.body instanceof URLSearchParams)
|
|
178
|
-
|| isBlob(overriddenInit.body)) {
|
|
179
|
-
body = overriddenInit.body;
|
|
180
|
-
} else if (this.isJsonMime(headers['Content-Type'])) {
|
|
181
|
-
body = JSON.stringify(overriddenInit.body);
|
|
182
|
-
} else {
|
|
183
|
-
body = overriddenInit.body;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
const init: RequestInit = {
|
|
187
|
-
...overriddenInit,
|
|
188
|
-
body
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
return { url, init };
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
private fetchApi = async (url: string, init: RequestInit) => {
|
|
195
|
-
let fetchParams = { url, init };
|
|
196
|
-
for (const middleware of this.middleware) {
|
|
197
|
-
if (middleware.pre) {
|
|
198
|
-
fetchParams = await middleware.pre({
|
|
199
|
-
fetch: this.fetchApi,
|
|
200
|
-
...fetchParams,
|
|
201
|
-
}) || fetchParams;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
let response: Response | undefined = undefined;
|
|
205
|
-
try {
|
|
206
|
-
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
207
|
-
} catch (e) {
|
|
208
|
-
for (const middleware of this.middleware) {
|
|
209
|
-
if (middleware.onError) {
|
|
210
|
-
response = await middleware.onError({
|
|
211
|
-
fetch: this.fetchApi,
|
|
212
|
-
url: fetchParams.url,
|
|
213
|
-
init: fetchParams.init,
|
|
214
|
-
error: e,
|
|
215
|
-
response: response ? response.clone() : undefined,
|
|
216
|
-
}) || response;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
if (response === undefined) {
|
|
220
|
-
if (e instanceof Error) {
|
|
221
|
-
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
222
|
-
} else {
|
|
223
|
-
throw e;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
for (const middleware of this.middleware) {
|
|
228
|
-
if (middleware.post) {
|
|
229
|
-
response = await middleware.post({
|
|
230
|
-
fetch: this.fetchApi,
|
|
231
|
-
url: fetchParams.url,
|
|
232
|
-
init: fetchParams.init,
|
|
233
|
-
response: response.clone(),
|
|
234
|
-
}) || response;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
return response;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
242
|
-
* and then shallow cloning data members.
|
|
243
|
-
*/
|
|
244
|
-
private clone<T extends BaseAPI>(this: T): T {
|
|
245
|
-
const constructor = this.constructor as any;
|
|
246
|
-
const next = new constructor(this.configuration);
|
|
247
|
-
next.middleware = this.middleware.slice();
|
|
248
|
-
return next;
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
function isBlob(value: any): value is Blob {
|
|
253
|
-
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
function isFormData(value: any): value is FormData {
|
|
257
|
-
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export class ResponseError extends Error {
|
|
261
|
-
override name: "ResponseError" = "ResponseError";
|
|
262
|
-
constructor(public response: Response, msg?: string) {
|
|
263
|
-
super(msg);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export class FetchError extends Error {
|
|
268
|
-
override name: "FetchError" = "FetchError";
|
|
269
|
-
constructor(public cause: Error, msg?: string) {
|
|
270
|
-
super(msg);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export class RequiredError extends Error {
|
|
275
|
-
override name: "RequiredError" = "RequiredError";
|
|
276
|
-
constructor(public field: string, msg?: string) {
|
|
277
|
-
super(msg);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export const COLLECTION_FORMATS = {
|
|
282
|
-
csv: ",",
|
|
283
|
-
ssv: " ",
|
|
284
|
-
tsv: "\t",
|
|
285
|
-
pipes: "|",
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
289
|
-
|
|
290
|
-
export type Json = any;
|
|
291
|
-
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
292
|
-
export type HTTPHeaders = { [key: string]: string };
|
|
293
|
-
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
|
|
294
|
-
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
295
|
-
export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
|
|
296
|
-
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
297
|
-
|
|
298
|
-
export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
|
|
299
|
-
|
|
300
|
-
export interface FetchParams {
|
|
301
|
-
url: string;
|
|
302
|
-
init: RequestInit;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export interface RequestOpts {
|
|
306
|
-
path: string;
|
|
307
|
-
method: HTTPMethod;
|
|
308
|
-
headers: HTTPHeaders;
|
|
309
|
-
query?: HTTPQuery;
|
|
310
|
-
body?: HTTPBody;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export function querystring(params: HTTPQuery, prefix: string = ''): string {
|
|
314
|
-
return Object.keys(params)
|
|
315
|
-
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
316
|
-
.filter(part => part.length > 0)
|
|
317
|
-
.join('&');
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
|
|
321
|
-
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
322
|
-
if (value instanceof Array) {
|
|
323
|
-
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
324
|
-
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
325
|
-
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
326
|
-
}
|
|
327
|
-
if (value instanceof Set) {
|
|
328
|
-
const valueAsArray = Array.from(value);
|
|
329
|
-
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
330
|
-
}
|
|
331
|
-
if (value instanceof Date) {
|
|
332
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
333
|
-
}
|
|
334
|
-
if (value instanceof Object) {
|
|
335
|
-
return querystring(value as HTTPQuery, fullKey);
|
|
336
|
-
}
|
|
337
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export function exists(json: any, key: string) {
|
|
341
|
-
const value = json[key];
|
|
342
|
-
return value !== null && value !== undefined;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export function mapValues(data: any, fn: (item: any) => any) {
|
|
346
|
-
return Object.keys(data).reduce(
|
|
347
|
-
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
|
|
348
|
-
{}
|
|
349
|
-
);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
353
|
-
for (const consume of consumes) {
|
|
354
|
-
if ('multipart/form-data' === consume.contentType) {
|
|
355
|
-
return true;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return false;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export interface Consume {
|
|
362
|
-
contentType: string;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export interface RequestContext {
|
|
366
|
-
fetch: FetchAPI;
|
|
367
|
-
url: string;
|
|
368
|
-
init: RequestInit;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export interface ResponseContext {
|
|
372
|
-
fetch: FetchAPI;
|
|
373
|
-
url: string;
|
|
374
|
-
init: RequestInit;
|
|
375
|
-
response: Response;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export interface ErrorContext {
|
|
379
|
-
fetch: FetchAPI;
|
|
380
|
-
url: string;
|
|
381
|
-
init: RequestInit;
|
|
382
|
-
error: unknown;
|
|
383
|
-
response?: Response;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
export interface Middleware {
|
|
387
|
-
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
388
|
-
post?(context: ResponseContext): Promise<Response | void>;
|
|
389
|
-
onError?(context: ErrorContext): Promise<Response | void>;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export interface ApiResponse<T> {
|
|
393
|
-
raw: Response;
|
|
394
|
-
value(): Promise<T>;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export interface ResponseTransformer<T> {
|
|
398
|
-
(json: any): T;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
export class JSONApiResponse<T> {
|
|
402
|
-
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
|
|
403
|
-
|
|
404
|
-
async value(): Promise<T> {
|
|
405
|
-
return this.transformer(await this.raw.json());
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export class VoidApiResponse {
|
|
410
|
-
constructor(public raw: Response) {}
|
|
411
|
-
|
|
412
|
-
async value(): Promise<void> {
|
|
413
|
-
return undefined;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export class BlobApiResponse {
|
|
418
|
-
constructor(public raw: Response) {}
|
|
419
|
-
|
|
420
|
-
async value(): Promise<Blob> {
|
|
421
|
-
return await this.raw.blob();
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export class TextApiResponse {
|
|
426
|
-
constructor(public raw: Response) {}
|
|
427
|
-
|
|
428
|
-
async value(): Promise<string> {
|
|
429
|
-
return await this.raw.text();
|
|
430
|
-
};
|
|
431
|
-
}
|
package/ts2js.sh
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
find dist -name '*.js' -exec sed -i 's/from "\([^"]*\)"/from "\1.js"/g' {} +
|
package/tsconfig.build.json
DELETED
package/tsconfig.json
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ts-node": {
|
|
3
|
-
"esm": true,
|
|
4
|
-
},
|
|
5
|
-
"include": ["src/**/*"],
|
|
6
|
-
"exclude": ["node_modules"],
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"compilerOptions": {
|
|
10
|
-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
11
|
-
|
|
12
|
-
/* Basic Options */
|
|
13
|
-
// "incremental": true, /* Enable incremental compilation */
|
|
14
|
-
"target": "es2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
15
|
-
"module": "es2022", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
16
|
-
"lib": ["es2022", "dom"], /* Specify library files to be included in the compilation. */
|
|
17
|
-
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
18
|
-
// "checkJs": true, /* Report errors in .js files. */
|
|
19
|
-
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
20
|
-
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
21
|
-
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
22
|
-
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
23
|
-
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
24
|
-
"outDir": "./dist", /* Redirect output structure to the directory. */
|
|
25
|
-
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
26
|
-
// "composite": true, /* Enable project compilation */
|
|
27
|
-
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
28
|
-
// "removeComments": true, /* Do not emit comments to output. */
|
|
29
|
-
// "noEmit": true, /* Do not emit outputs. */
|
|
30
|
-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
31
|
-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
32
|
-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
33
|
-
|
|
34
|
-
/* Strict Type-Checking Options */
|
|
35
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
36
|
-
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
37
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
38
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
39
|
-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
40
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
41
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
42
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
43
|
-
|
|
44
|
-
/* Additional Checks */
|
|
45
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
46
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
47
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
48
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
49
|
-
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
|
50
|
-
|
|
51
|
-
/* Module Resolution Options */
|
|
52
|
-
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
53
|
-
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
54
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
55
|
-
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
56
|
-
"typeRoots": [
|
|
57
|
-
"./types"
|
|
58
|
-
], /* List of folders to include type definitions from. */
|
|
59
|
-
// "types": [], /* Type declaration files to be included in compilation. */
|
|
60
|
-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
61
|
-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
62
|
-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
63
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
64
|
-
|
|
65
|
-
/* Source Map Options */
|
|
66
|
-
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
67
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
68
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
69
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
70
|
-
|
|
71
|
-
/* Experimental Options */
|
|
72
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
73
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
74
|
-
|
|
75
|
-
/* Advanced Options */
|
|
76
|
-
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
77
|
-
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
|
78
|
-
"removeComments": true,
|
|
79
|
-
"experimentalDecorators": true,
|
|
80
|
-
"sourceMap": true
|
|
81
|
-
}
|
|
82
|
-
}
|