From 5d41d8a055a716fefe29b71de96bede4ca0da812 Mon Sep 17 00:00:00 2001 From: Christian Beilschmidt Date: Fri, 8 Dec 2023 17:37:05 +0100 Subject: [PATCH] typescript package --- .generation/generate.py | 26 +- .generation/override.env | 2 +- ...post_process.py => post_process_python.py} | 0 typescript/.gitignore | 4 + typescript/.npmignore | 1 + typescript/.openapi-generator-ignore | 23 + typescript/.openapi-generator/FILES | 243 +++++++ typescript/.openapi-generator/VERSION | 1 + typescript/README.md | 45 ++ typescript/package.json | 21 + typescript/src/apis/DatasetsApi.ts | 400 +++++++++++ typescript/src/apis/GeneralApi.ts | 85 +++ typescript/src/apis/LayersApi.ts | 655 ++++++++++++++++++ typescript/src/apis/OGCWCSApi.ts | 337 +++++++++ typescript/src/apis/OGCWFSApi.ts | 243 +++++++ typescript/src/apis/OGCWMSApi.ts | 371 ++++++++++ typescript/src/apis/PermissionsApi.ts | 122 ++++ typescript/src/apis/PlotsApi.ts | 106 +++ typescript/src/apis/ProjectsApi.ts | 380 ++++++++++ typescript/src/apis/SessionApi.ts | 217 ++++++ typescript/src/apis/SpatialReferencesApi.ts | 70 ++ typescript/src/apis/TasksApi.ts | 182 +++++ typescript/src/apis/UploadsApi.ts | 193 ++++++ typescript/src/apis/UserApi.ts | 396 +++++++++++ typescript/src/apis/WorkflowsApi.ts | 408 +++++++++++ typescript/src/apis/index.ts | 17 + typescript/src/index.ts | 5 + typescript/src/models/AbortedTaskStatus.ts | 85 +++ .../src/models/AddCollection200Response.ts | 66 ++ typescript/src/models/AddDataset.ts | 121 ++++ typescript/src/models/AddLayer.ts | 121 ++++ typescript/src/models/AddLayerCollection.ts | 83 +++ typescript/src/models/AddRole.ts | 66 ++ typescript/src/models/AutoCreateDataset.ts | 101 +++ .../src/models/AutoOgrSourceTimeFormat.ts | 76 ++ typescript/src/models/AxisOrder.ts | 38 + typescript/src/models/BoundingBox2D.ts | 83 +++ typescript/src/models/Breakpoint.ts | 73 ++ .../src/models/ClassificationMeasurement.ts | 75 ++ .../ClassificationMeasurementWithType.ts | 94 +++ typescript/src/models/CollectionItem.ts | 72 ++ typescript/src/models/CollectionType.ts | 37 + typescript/src/models/ColorParam.ts | 72 ++ typescript/src/models/Colorizer.ts | 94 +++ typescript/src/models/CompletedTaskStatus.ts | 119 ++++ .../src/models/ContinuousMeasurement.ts | 74 ++ .../models/ContinuousMeasurementWithType.ts | 93 +++ typescript/src/models/Coordinate2D.ts | 75 ++ typescript/src/models/CreateDataset.ts | 88 +++ .../models/CreateDatasetHandler200Response.ts | 66 ++ typescript/src/models/CreateProject.ts | 105 +++ typescript/src/models/CsvHeader.ts | 39 ++ .../src/models/CustomOgrSourceTimeFormat.ts | 92 +++ typescript/src/models/DataId.ts | 72 ++ typescript/src/models/DataPath.ts | 65 ++ typescript/src/models/DataPathOneOf.ts | 66 ++ typescript/src/models/DataPathOneOf1.ts | 66 ++ typescript/src/models/Dataset.ts | 146 ++++ typescript/src/models/DatasetDefinition.ts | 88 +++ typescript/src/models/DatasetIdResourceId.ts | 85 +++ typescript/src/models/DatasetListing.ts | 141 ++++ typescript/src/models/DatasetResource.ts | 85 +++ typescript/src/models/DateTime.ts | 66 ++ typescript/src/models/DateTimeParseFormat.ts | 84 +++ typescript/src/models/DerivedColor.ts | 82 +++ typescript/src/models/DerivedColorWithType.ts | 101 +++ typescript/src/models/DerivedNumber.ts | 84 +++ .../src/models/DerivedNumberWithType.ts | 103 +++ .../src/models/DescribeCoverageRequest.ts | 37 + typescript/src/models/ErrorResponse.ts | 75 ++ typescript/src/models/ExternalDataId.ts | 75 ++ .../src/models/ExternalDataIdWithType.ts | 94 +++ typescript/src/models/FailedTaskStatus.ts | 94 +++ typescript/src/models/FeatureDataType.ts | 42 ++ typescript/src/models/FileNotFoundHandling.ts | 38 + typescript/src/models/FormatSpecifics.ts | 55 ++ typescript/src/models/FormatSpecificsOneOf.ts | 73 ++ .../src/models/FormatSpecificsOneOfCsv.ts | 73 ++ .../src/models/GdalDatasetGeoTransform.ts | 91 +++ .../src/models/GdalDatasetParameters.ts | 170 +++++ .../models/GdalLoadingInfoTemporalSlice.ts | 95 +++ typescript/src/models/GdalMetaDataList.ts | 88 +++ .../src/models/GdalMetaDataListWithType.ts | 107 +++ typescript/src/models/GdalMetaDataRegular.ts | 141 ++++ .../src/models/GdalMetaDataRegularWithType.ts | 160 +++++ typescript/src/models/GdalMetaDataStatic.ts | 110 +++ .../src/models/GdalMetaDataStaticWithType.ts | 129 ++++ typescript/src/models/GdalMetadataMapping.ts | 97 +++ typescript/src/models/GdalMetadataNetCdfCf.ts | 139 ++++ .../models/GdalMetadataNetCdfCfWithType.ts | 158 +++++ .../src/models/GdalSourceTimePlaceholder.ts | 88 +++ typescript/src/models/GeoJson.ts | 82 +++ .../src/models/GetCapabilitiesFormat.ts | 37 + .../src/models/GetCapabilitiesRequest.ts | 37 + typescript/src/models/GetCoverageFormat.ts | 37 + typescript/src/models/GetCoverageRequest.ts | 37 + typescript/src/models/GetFeatureRequest.ts | 37 + .../src/models/GetLegendGraphicRequest.ts | 37 + .../src/models/GetMapExceptionFormat.ts | 38 + typescript/src/models/GetMapFormat.ts | 37 + typescript/src/models/GetMapRequest.ts | 37 + .../models/InfiniteOgrSourceDurationSpec.ts | 76 ++ typescript/src/models/InternalDataId.ts | 86 +++ typescript/src/models/Layer.ts | 136 ++++ typescript/src/models/LayerCollection.ts | 123 ++++ .../src/models/LayerCollectionListing.ts | 99 +++ .../models/LayerCollectionListingWithType.ts | 119 ++++ .../src/models/LayerCollectionResource.ts | 85 +++ .../src/models/LayerCollectionResourceId.ts | 85 +++ typescript/src/models/LayerListing.ts | 99 +++ typescript/src/models/LayerListingWithType.ts | 118 ++++ typescript/src/models/LayerResource.ts | 85 +++ typescript/src/models/LayerResourceId.ts | 85 +++ typescript/src/models/LayerUpdate.ts | 65 ++ typescript/src/models/LayerVisibility.ts | 75 ++ typescript/src/models/LineSymbology.ts | 96 +++ .../src/models/LineSymbologyWithType.ts | 115 +++ typescript/src/models/LinearGradient.ts | 100 +++ .../src/models/LinearGradientWithType.ts | 122 ++++ typescript/src/models/LogarithmicGradient.ts | 100 +++ .../src/models/LogarithmicGradientWithType.ts | 119 ++++ typescript/src/models/Measurement.ts | 83 +++ typescript/src/models/MetaDataDefinition.ts | 116 ++++ typescript/src/models/MetaDataSuggestion.ts | 91 +++ .../MockDatasetDataSourceLoadingInfo.ts | 73 ++ typescript/src/models/MockMetaData.ts | 88 +++ typescript/src/models/MockMetaDataWithType.ts | 112 +++ typescript/src/models/ModelIdResourceId.ts | 85 +++ typescript/src/models/MultiLineString.ts | 73 ++ typescript/src/models/MultiPoint.ts | 73 ++ typescript/src/models/MultiPolygon.ts | 73 ++ .../models/NoneOgrSourceDatasetTimeType.ts | 76 ++ typescript/src/models/NumberParam.ts | 72 ++ typescript/src/models/OgrMetaData.ts | 88 +++ typescript/src/models/OgrMetaDataWithType.ts | 107 +++ typescript/src/models/OgrSourceColumnSpec.ts | 137 ++++ typescript/src/models/OgrSourceDataset.ts | 187 +++++ .../src/models/OgrSourceDatasetTimeType.ts | 94 +++ .../src/models/OgrSourceDurationSpec.ts | 83 +++ typescript/src/models/OgrSourceErrorSpec.ts | 38 + typescript/src/models/OgrSourceTimeFormat.ts | 83 +++ typescript/src/models/OrderBy.ts | 38 + typescript/src/models/PaletteColorizer.ts | 105 +++ typescript/src/models/Permission.ts | 38 + typescript/src/models/PermissionRequest.ts | 97 +++ typescript/src/models/Plot.ts | 75 ++ typescript/src/models/PlotOutputFormat.ts | 39 ++ typescript/src/models/PlotQueryRectangle.ts | 103 +++ typescript/src/models/PlotResultDescriptor.ts | 95 +++ .../models/PlotResultDescriptorWithType.ts | 114 +++ typescript/src/models/PlotUpdate.ts | 65 ++ typescript/src/models/PointSymbology.ts | 117 ++++ .../src/models/PointSymbologyWithType.ts | 136 ++++ typescript/src/models/PolygonSymbology.ts | 111 +++ .../src/models/PolygonSymbologyWithType.ts | 130 ++++ typescript/src/models/Project.ts | 160 +++++ typescript/src/models/ProjectLayer.ts | 106 +++ typescript/src/models/ProjectListing.ts | 111 +++ typescript/src/models/ProjectResource.ts | 85 +++ typescript/src/models/ProjectResourceId.ts | 85 +++ typescript/src/models/ProjectVersion.ts | 75 ++ typescript/src/models/Provenance.ts | 84 +++ typescript/src/models/ProvenanceEntry.ts | 88 +++ typescript/src/models/ProvenanceOutput.ts | 87 +++ .../src/models/ProviderLayerCollectionId.ts | 75 ++ typescript/src/models/ProviderLayerId.ts | 75 ++ typescript/src/models/Quota.ts | 75 ++ typescript/src/models/RasterBandDescriptor.ts | 82 +++ typescript/src/models/RasterDataType.ts | 46 ++ .../src/models/RasterDatasetFromWorkflow.ts | 106 +++ .../models/RasterDatasetFromWorkflowResult.ts | 75 ++ .../src/models/RasterPropertiesEntryType.ts | 38 + typescript/src/models/RasterPropertiesKey.ts | 74 ++ typescript/src/models/RasterQueryRectangle.ts | 103 +++ .../src/models/RasterResultDescriptor.ts | 139 ++++ .../models/RasterResultDescriptorWithType.ts | 158 +++++ .../models/RasterStreamWebsocketResultType.ts | 37 + typescript/src/models/RasterSymbology.ts | 82 +++ .../src/models/RasterSymbologyWithType.ts | 101 +++ typescript/src/models/Resource.ts | 94 +++ typescript/src/models/ResourceId.ts | 105 +++ typescript/src/models/RgbaColorizer.ts | 76 ++ typescript/src/models/Role.ts | 75 ++ typescript/src/models/RoleDescription.ts | 82 +++ typescript/src/models/RunningTaskStatus.ts | 128 ++++ typescript/src/models/STRectangle.ts | 97 +++ typescript/src/models/ServerInfo.ts | 93 +++ typescript/src/models/SpatialPartition2D.ts | 82 +++ .../src/models/SpatialReferenceAuthority.ts | 40 ++ .../models/SpatialReferenceSpecification.ts | 123 ++++ typescript/src/models/SpatialResolution.ts | 75 ++ .../StartDurationOgrSourceDatasetTimeType.ts | 110 +++ .../StartEndOgrSourceDatasetTimeType.ts | 119 ++++ .../models/StartOgrSourceDatasetTimeType.ts | 116 ++++ typescript/src/models/StaticColorParam.ts | 86 +++ typescript/src/models/StaticNumberParam.ts | 86 +++ typescript/src/models/StrokeParam.ts | 88 +++ typescript/src/models/Symbology.ts | 94 +++ typescript/src/models/TaskAbortOptions.ts | 65 ++ typescript/src/models/TaskFilter.ts | 40 ++ typescript/src/models/TaskListOptions.ts | 88 +++ typescript/src/models/TaskResponse.ts | 66 ++ typescript/src/models/TaskStatus.ts | 94 +++ typescript/src/models/TaskStatusWithId.ts | 75 ++ typescript/src/models/TextSymbology.ts | 97 +++ typescript/src/models/TimeGranularity.ts | 43 ++ typescript/src/models/TimeInterval.ts | 75 ++ typescript/src/models/TimeReference.ts | 38 + typescript/src/models/TimeStep.ts | 82 +++ typescript/src/models/TimeStepWithType.ts | 101 +++ typescript/src/models/TypedGeometry.ts | 85 +++ typescript/src/models/TypedGeometryOneOf.ts | 66 ++ typescript/src/models/TypedGeometryOneOf1.ts | 73 ++ typescript/src/models/TypedGeometryOneOf2.ts | 73 ++ typescript/src/models/TypedGeometryOneOf3.ts | 73 ++ typescript/src/models/TypedOperator.ts | 94 +++ .../src/models/TypedOperatorOperator.ts | 82 +++ .../src/models/TypedResultDescriptor.ts | 83 +++ typescript/src/models/UnitlessMeasurement.ts | 78 +++ .../UnixTimeStampOgrSourceTimeFormat.ts | 92 +++ typescript/src/models/UnixTimeStampType.ts | 38 + typescript/src/models/UpdateProject.ts | 139 ++++ typescript/src/models/UpdateQuota.ts | 66 ++ .../src/models/UploadFileLayersResponse.ts | 66 ++ typescript/src/models/UploadFilesResponse.ts | 66 ++ typescript/src/models/UserCredentials.ts | 75 ++ typescript/src/models/UserInfo.ts | 82 +++ typescript/src/models/UserRegistration.ts | 84 +++ typescript/src/models/UserSession.ts | 131 ++++ typescript/src/models/VectorColumnInfo.ts | 88 +++ typescript/src/models/VectorDataType.ts | 40 ++ typescript/src/models/VectorQueryRectangle.ts | 103 +++ .../src/models/VectorResultDescriptor.ts | 125 ++++ .../models/VectorResultDescriptorWithType.ts | 144 ++++ typescript/src/models/Volume.ts | 75 ++ typescript/src/models/WcsBoundingbox.ts | 74 ++ typescript/src/models/WcsService.ts | 37 + typescript/src/models/WcsVersion.ts | 38 + typescript/src/models/WfsService.ts | 37 + typescript/src/models/WfsVersion.ts | 37 + typescript/src/models/WmsService.ts | 37 + typescript/src/models/WmsVersion.ts | 37 + typescript/src/models/Workflow.ts | 94 +++ typescript/src/models/WrappedPlotOutput.ts | 91 +++ .../src/models/ZeroOgrSourceDurationSpec.ts | 76 ++ typescript/src/models/index.ts | 220 ++++++ typescript/src/runtime.ts | 431 ++++++++++++ typescript/tsconfig.esm.json | 7 + typescript/tsconfig.json | 16 + 249 files changed, 23846 insertions(+), 10 deletions(-) rename .generation/{post_process.py => post_process_python.py} (100%) create mode 100644 typescript/.gitignore create mode 100644 typescript/.npmignore create mode 100644 typescript/.openapi-generator-ignore create mode 100644 typescript/.openapi-generator/FILES create mode 100644 typescript/.openapi-generator/VERSION create mode 100644 typescript/README.md create mode 100644 typescript/package.json create mode 100644 typescript/src/apis/DatasetsApi.ts create mode 100644 typescript/src/apis/GeneralApi.ts create mode 100644 typescript/src/apis/LayersApi.ts create mode 100644 typescript/src/apis/OGCWCSApi.ts create mode 100644 typescript/src/apis/OGCWFSApi.ts create mode 100644 typescript/src/apis/OGCWMSApi.ts create mode 100644 typescript/src/apis/PermissionsApi.ts create mode 100644 typescript/src/apis/PlotsApi.ts create mode 100644 typescript/src/apis/ProjectsApi.ts create mode 100644 typescript/src/apis/SessionApi.ts create mode 100644 typescript/src/apis/SpatialReferencesApi.ts create mode 100644 typescript/src/apis/TasksApi.ts create mode 100644 typescript/src/apis/UploadsApi.ts create mode 100644 typescript/src/apis/UserApi.ts create mode 100644 typescript/src/apis/WorkflowsApi.ts create mode 100644 typescript/src/apis/index.ts create mode 100644 typescript/src/index.ts create mode 100644 typescript/src/models/AbortedTaskStatus.ts create mode 100644 typescript/src/models/AddCollection200Response.ts create mode 100644 typescript/src/models/AddDataset.ts create mode 100644 typescript/src/models/AddLayer.ts create mode 100644 typescript/src/models/AddLayerCollection.ts create mode 100644 typescript/src/models/AddRole.ts create mode 100644 typescript/src/models/AutoCreateDataset.ts create mode 100644 typescript/src/models/AutoOgrSourceTimeFormat.ts create mode 100644 typescript/src/models/AxisOrder.ts create mode 100644 typescript/src/models/BoundingBox2D.ts create mode 100644 typescript/src/models/Breakpoint.ts create mode 100644 typescript/src/models/ClassificationMeasurement.ts create mode 100644 typescript/src/models/ClassificationMeasurementWithType.ts create mode 100644 typescript/src/models/CollectionItem.ts create mode 100644 typescript/src/models/CollectionType.ts create mode 100644 typescript/src/models/ColorParam.ts create mode 100644 typescript/src/models/Colorizer.ts create mode 100644 typescript/src/models/CompletedTaskStatus.ts create mode 100644 typescript/src/models/ContinuousMeasurement.ts create mode 100644 typescript/src/models/ContinuousMeasurementWithType.ts create mode 100644 typescript/src/models/Coordinate2D.ts create mode 100644 typescript/src/models/CreateDataset.ts create mode 100644 typescript/src/models/CreateDatasetHandler200Response.ts create mode 100644 typescript/src/models/CreateProject.ts create mode 100644 typescript/src/models/CsvHeader.ts create mode 100644 typescript/src/models/CustomOgrSourceTimeFormat.ts create mode 100644 typescript/src/models/DataId.ts create mode 100644 typescript/src/models/DataPath.ts create mode 100644 typescript/src/models/DataPathOneOf.ts create mode 100644 typescript/src/models/DataPathOneOf1.ts create mode 100644 typescript/src/models/Dataset.ts create mode 100644 typescript/src/models/DatasetDefinition.ts create mode 100644 typescript/src/models/DatasetIdResourceId.ts create mode 100644 typescript/src/models/DatasetListing.ts create mode 100644 typescript/src/models/DatasetResource.ts create mode 100644 typescript/src/models/DateTime.ts create mode 100644 typescript/src/models/DateTimeParseFormat.ts create mode 100644 typescript/src/models/DerivedColor.ts create mode 100644 typescript/src/models/DerivedColorWithType.ts create mode 100644 typescript/src/models/DerivedNumber.ts create mode 100644 typescript/src/models/DerivedNumberWithType.ts create mode 100644 typescript/src/models/DescribeCoverageRequest.ts create mode 100644 typescript/src/models/ErrorResponse.ts create mode 100644 typescript/src/models/ExternalDataId.ts create mode 100644 typescript/src/models/ExternalDataIdWithType.ts create mode 100644 typescript/src/models/FailedTaskStatus.ts create mode 100644 typescript/src/models/FeatureDataType.ts create mode 100644 typescript/src/models/FileNotFoundHandling.ts create mode 100644 typescript/src/models/FormatSpecifics.ts create mode 100644 typescript/src/models/FormatSpecificsOneOf.ts create mode 100644 typescript/src/models/FormatSpecificsOneOfCsv.ts create mode 100644 typescript/src/models/GdalDatasetGeoTransform.ts create mode 100644 typescript/src/models/GdalDatasetParameters.ts create mode 100644 typescript/src/models/GdalLoadingInfoTemporalSlice.ts create mode 100644 typescript/src/models/GdalMetaDataList.ts create mode 100644 typescript/src/models/GdalMetaDataListWithType.ts create mode 100644 typescript/src/models/GdalMetaDataRegular.ts create mode 100644 typescript/src/models/GdalMetaDataRegularWithType.ts create mode 100644 typescript/src/models/GdalMetaDataStatic.ts create mode 100644 typescript/src/models/GdalMetaDataStaticWithType.ts create mode 100644 typescript/src/models/GdalMetadataMapping.ts create mode 100644 typescript/src/models/GdalMetadataNetCdfCf.ts create mode 100644 typescript/src/models/GdalMetadataNetCdfCfWithType.ts create mode 100644 typescript/src/models/GdalSourceTimePlaceholder.ts create mode 100644 typescript/src/models/GeoJson.ts create mode 100644 typescript/src/models/GetCapabilitiesFormat.ts create mode 100644 typescript/src/models/GetCapabilitiesRequest.ts create mode 100644 typescript/src/models/GetCoverageFormat.ts create mode 100644 typescript/src/models/GetCoverageRequest.ts create mode 100644 typescript/src/models/GetFeatureRequest.ts create mode 100644 typescript/src/models/GetLegendGraphicRequest.ts create mode 100644 typescript/src/models/GetMapExceptionFormat.ts create mode 100644 typescript/src/models/GetMapFormat.ts create mode 100644 typescript/src/models/GetMapRequest.ts create mode 100644 typescript/src/models/InfiniteOgrSourceDurationSpec.ts create mode 100644 typescript/src/models/InternalDataId.ts create mode 100644 typescript/src/models/Layer.ts create mode 100644 typescript/src/models/LayerCollection.ts create mode 100644 typescript/src/models/LayerCollectionListing.ts create mode 100644 typescript/src/models/LayerCollectionListingWithType.ts create mode 100644 typescript/src/models/LayerCollectionResource.ts create mode 100644 typescript/src/models/LayerCollectionResourceId.ts create mode 100644 typescript/src/models/LayerListing.ts create mode 100644 typescript/src/models/LayerListingWithType.ts create mode 100644 typescript/src/models/LayerResource.ts create mode 100644 typescript/src/models/LayerResourceId.ts create mode 100644 typescript/src/models/LayerUpdate.ts create mode 100644 typescript/src/models/LayerVisibility.ts create mode 100644 typescript/src/models/LineSymbology.ts create mode 100644 typescript/src/models/LineSymbologyWithType.ts create mode 100644 typescript/src/models/LinearGradient.ts create mode 100644 typescript/src/models/LinearGradientWithType.ts create mode 100644 typescript/src/models/LogarithmicGradient.ts create mode 100644 typescript/src/models/LogarithmicGradientWithType.ts create mode 100644 typescript/src/models/Measurement.ts create mode 100644 typescript/src/models/MetaDataDefinition.ts create mode 100644 typescript/src/models/MetaDataSuggestion.ts create mode 100644 typescript/src/models/MockDatasetDataSourceLoadingInfo.ts create mode 100644 typescript/src/models/MockMetaData.ts create mode 100644 typescript/src/models/MockMetaDataWithType.ts create mode 100644 typescript/src/models/ModelIdResourceId.ts create mode 100644 typescript/src/models/MultiLineString.ts create mode 100644 typescript/src/models/MultiPoint.ts create mode 100644 typescript/src/models/MultiPolygon.ts create mode 100644 typescript/src/models/NoneOgrSourceDatasetTimeType.ts create mode 100644 typescript/src/models/NumberParam.ts create mode 100644 typescript/src/models/OgrMetaData.ts create mode 100644 typescript/src/models/OgrMetaDataWithType.ts create mode 100644 typescript/src/models/OgrSourceColumnSpec.ts create mode 100644 typescript/src/models/OgrSourceDataset.ts create mode 100644 typescript/src/models/OgrSourceDatasetTimeType.ts create mode 100644 typescript/src/models/OgrSourceDurationSpec.ts create mode 100644 typescript/src/models/OgrSourceErrorSpec.ts create mode 100644 typescript/src/models/OgrSourceTimeFormat.ts create mode 100644 typescript/src/models/OrderBy.ts create mode 100644 typescript/src/models/PaletteColorizer.ts create mode 100644 typescript/src/models/Permission.ts create mode 100644 typescript/src/models/PermissionRequest.ts create mode 100644 typescript/src/models/Plot.ts create mode 100644 typescript/src/models/PlotOutputFormat.ts create mode 100644 typescript/src/models/PlotQueryRectangle.ts create mode 100644 typescript/src/models/PlotResultDescriptor.ts create mode 100644 typescript/src/models/PlotResultDescriptorWithType.ts create mode 100644 typescript/src/models/PlotUpdate.ts create mode 100644 typescript/src/models/PointSymbology.ts create mode 100644 typescript/src/models/PointSymbologyWithType.ts create mode 100644 typescript/src/models/PolygonSymbology.ts create mode 100644 typescript/src/models/PolygonSymbologyWithType.ts create mode 100644 typescript/src/models/Project.ts create mode 100644 typescript/src/models/ProjectLayer.ts create mode 100644 typescript/src/models/ProjectListing.ts create mode 100644 typescript/src/models/ProjectResource.ts create mode 100644 typescript/src/models/ProjectResourceId.ts create mode 100644 typescript/src/models/ProjectVersion.ts create mode 100644 typescript/src/models/Provenance.ts create mode 100644 typescript/src/models/ProvenanceEntry.ts create mode 100644 typescript/src/models/ProvenanceOutput.ts create mode 100644 typescript/src/models/ProviderLayerCollectionId.ts create mode 100644 typescript/src/models/ProviderLayerId.ts create mode 100644 typescript/src/models/Quota.ts create mode 100644 typescript/src/models/RasterBandDescriptor.ts create mode 100644 typescript/src/models/RasterDataType.ts create mode 100644 typescript/src/models/RasterDatasetFromWorkflow.ts create mode 100644 typescript/src/models/RasterDatasetFromWorkflowResult.ts create mode 100644 typescript/src/models/RasterPropertiesEntryType.ts create mode 100644 typescript/src/models/RasterPropertiesKey.ts create mode 100644 typescript/src/models/RasterQueryRectangle.ts create mode 100644 typescript/src/models/RasterResultDescriptor.ts create mode 100644 typescript/src/models/RasterResultDescriptorWithType.ts create mode 100644 typescript/src/models/RasterStreamWebsocketResultType.ts create mode 100644 typescript/src/models/RasterSymbology.ts create mode 100644 typescript/src/models/RasterSymbologyWithType.ts create mode 100644 typescript/src/models/Resource.ts create mode 100644 typescript/src/models/ResourceId.ts create mode 100644 typescript/src/models/RgbaColorizer.ts create mode 100644 typescript/src/models/Role.ts create mode 100644 typescript/src/models/RoleDescription.ts create mode 100644 typescript/src/models/RunningTaskStatus.ts create mode 100644 typescript/src/models/STRectangle.ts create mode 100644 typescript/src/models/ServerInfo.ts create mode 100644 typescript/src/models/SpatialPartition2D.ts create mode 100644 typescript/src/models/SpatialReferenceAuthority.ts create mode 100644 typescript/src/models/SpatialReferenceSpecification.ts create mode 100644 typescript/src/models/SpatialResolution.ts create mode 100644 typescript/src/models/StartDurationOgrSourceDatasetTimeType.ts create mode 100644 typescript/src/models/StartEndOgrSourceDatasetTimeType.ts create mode 100644 typescript/src/models/StartOgrSourceDatasetTimeType.ts create mode 100644 typescript/src/models/StaticColorParam.ts create mode 100644 typescript/src/models/StaticNumberParam.ts create mode 100644 typescript/src/models/StrokeParam.ts create mode 100644 typescript/src/models/Symbology.ts create mode 100644 typescript/src/models/TaskAbortOptions.ts create mode 100644 typescript/src/models/TaskFilter.ts create mode 100644 typescript/src/models/TaskListOptions.ts create mode 100644 typescript/src/models/TaskResponse.ts create mode 100644 typescript/src/models/TaskStatus.ts create mode 100644 typescript/src/models/TaskStatusWithId.ts create mode 100644 typescript/src/models/TextSymbology.ts create mode 100644 typescript/src/models/TimeGranularity.ts create mode 100644 typescript/src/models/TimeInterval.ts create mode 100644 typescript/src/models/TimeReference.ts create mode 100644 typescript/src/models/TimeStep.ts create mode 100644 typescript/src/models/TimeStepWithType.ts create mode 100644 typescript/src/models/TypedGeometry.ts create mode 100644 typescript/src/models/TypedGeometryOneOf.ts create mode 100644 typescript/src/models/TypedGeometryOneOf1.ts create mode 100644 typescript/src/models/TypedGeometryOneOf2.ts create mode 100644 typescript/src/models/TypedGeometryOneOf3.ts create mode 100644 typescript/src/models/TypedOperator.ts create mode 100644 typescript/src/models/TypedOperatorOperator.ts create mode 100644 typescript/src/models/TypedResultDescriptor.ts create mode 100644 typescript/src/models/UnitlessMeasurement.ts create mode 100644 typescript/src/models/UnixTimeStampOgrSourceTimeFormat.ts create mode 100644 typescript/src/models/UnixTimeStampType.ts create mode 100644 typescript/src/models/UpdateProject.ts create mode 100644 typescript/src/models/UpdateQuota.ts create mode 100644 typescript/src/models/UploadFileLayersResponse.ts create mode 100644 typescript/src/models/UploadFilesResponse.ts create mode 100644 typescript/src/models/UserCredentials.ts create mode 100644 typescript/src/models/UserInfo.ts create mode 100644 typescript/src/models/UserRegistration.ts create mode 100644 typescript/src/models/UserSession.ts create mode 100644 typescript/src/models/VectorColumnInfo.ts create mode 100644 typescript/src/models/VectorDataType.ts create mode 100644 typescript/src/models/VectorQueryRectangle.ts create mode 100644 typescript/src/models/VectorResultDescriptor.ts create mode 100644 typescript/src/models/VectorResultDescriptorWithType.ts create mode 100644 typescript/src/models/Volume.ts create mode 100644 typescript/src/models/WcsBoundingbox.ts create mode 100644 typescript/src/models/WcsService.ts create mode 100644 typescript/src/models/WcsVersion.ts create mode 100644 typescript/src/models/WfsService.ts create mode 100644 typescript/src/models/WfsVersion.ts create mode 100644 typescript/src/models/WmsService.ts create mode 100644 typescript/src/models/WmsVersion.ts create mode 100644 typescript/src/models/Workflow.ts create mode 100644 typescript/src/models/WrappedPlotOutput.ts create mode 100644 typescript/src/models/ZeroOgrSourceDurationSpec.ts create mode 100644 typescript/src/models/index.ts create mode 100644 typescript/src/runtime.ts create mode 100644 typescript/tsconfig.esm.json create mode 100644 typescript/tsconfig.json diff --git a/.generation/generate.py b/.generation/generate.py index cc2f1638..270a3fac 100755 --- a/.generation/generate.py +++ b/.generation/generate.py @@ -10,6 +10,7 @@ from pathlib import Path from urllib import request from urllib.error import URLError +from urllib.parse import urlsplit import configparser import json import os @@ -176,8 +177,14 @@ def generate_python_code(*, package_name: str, package_version: str, package_url ) -def generate_typescript_code(*, package_name: str, package_version: str, package_url: str): +def generate_typescript_code(*, npm_name: str, npm_version: str, repository_url: str): '''Run the generator.''' + + parsed_url = urlsplit(repository_url) + (url_path, _url_ext) = os.path.splitext(parsed_url.path) + (url_path, git_user_id) = os.path.split(url_path) + (url_path, git_repo_id) = os.path.split(url_path) + subprocess.run( [ "podman", "run", @@ -191,12 +198,13 @@ def generate_typescript_code(*, package_name: str, package_version: str, package "-i", f"{'/local' / CWD / 'input/openapi.json'}", "-g", "typescript-fetch", "--additional-properties=" + ",".join([ - "useOneOfDiscriminatorLookup=true", - # "generateSourceCodeOnly=true", - f"packageName={package_name}", - f"packageVersion={package_version}", - f"packageUrl={package_url}", + "supportsES6=true", + f"npmName={npm_name}", + f"npmVersion={npm_version}", ]), + "--git-host", parsed_url.netloc, + "--git-user-id", git_user_id, + "--git-repo-id", git_repo_id, "--enable-post-process-file", "-o", "/local/typescript/", ], @@ -225,9 +233,9 @@ def main(): ) elif args.language == 'typescript': generate_typescript_code( - package_name=config.typescript_package_name, - package_version=config.typescript_package_version, - package_url=config.github_url, + npm_name=config.typescript_package_name, + npm_version=config.typescript_package_version, + repository_url=config.github_url, ) else: raise RuntimeError(f'Unknown language {args.language}.') diff --git a/.generation/override.env b/.generation/override.env index 869e584b..eebc6331 100644 --- a/.generation/override.env +++ b/.generation/override.env @@ -1 +1 @@ -PYTHON_POST_PROCESS_FILE=python3 /local/.generation/post_process.py +PYTHON_POST_PROCESS_FILE=python3 /local/.generation/post_process_python.py diff --git a/.generation/post_process.py b/.generation/post_process_python.py similarity index 100% rename from .generation/post_process.py rename to .generation/post_process_python.py diff --git a/typescript/.gitignore b/typescript/.gitignore new file mode 100644 index 00000000..149b5765 --- /dev/null +++ b/typescript/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/typescript/.npmignore b/typescript/.npmignore new file mode 100644 index 00000000..42061c01 --- /dev/null +++ b/typescript/.npmignore @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/typescript/.openapi-generator-ignore b/typescript/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/typescript/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/typescript/.openapi-generator/FILES b/typescript/.openapi-generator/FILES new file mode 100644 index 00000000..752a546a --- /dev/null +++ b/typescript/.openapi-generator/FILES @@ -0,0 +1,243 @@ +.gitignore +.npmignore +README.md +package.json +src/apis/DatasetsApi.ts +src/apis/GeneralApi.ts +src/apis/LayersApi.ts +src/apis/OGCWCSApi.ts +src/apis/OGCWFSApi.ts +src/apis/OGCWMSApi.ts +src/apis/PermissionsApi.ts +src/apis/PlotsApi.ts +src/apis/ProjectsApi.ts +src/apis/SessionApi.ts +src/apis/SpatialReferencesApi.ts +src/apis/TasksApi.ts +src/apis/UploadsApi.ts +src/apis/UserApi.ts +src/apis/WorkflowsApi.ts +src/apis/index.ts +src/index.ts +src/models/AbortedTaskStatus.ts +src/models/AddCollection200Response.ts +src/models/AddDataset.ts +src/models/AddLayer.ts +src/models/AddLayerCollection.ts +src/models/AddRole.ts +src/models/AutoCreateDataset.ts +src/models/AutoOgrSourceTimeFormat.ts +src/models/AxisOrder.ts +src/models/BoundingBox2D.ts +src/models/Breakpoint.ts +src/models/ClassificationMeasurement.ts +src/models/ClassificationMeasurementWithType.ts +src/models/CollectionItem.ts +src/models/CollectionType.ts +src/models/ColorParam.ts +src/models/Colorizer.ts +src/models/CompletedTaskStatus.ts +src/models/ContinuousMeasurement.ts +src/models/ContinuousMeasurementWithType.ts +src/models/Coordinate2D.ts +src/models/CreateDataset.ts +src/models/CreateDatasetHandler200Response.ts +src/models/CreateProject.ts +src/models/CsvHeader.ts +src/models/CustomOgrSourceTimeFormat.ts +src/models/DataId.ts +src/models/DataPath.ts +src/models/DataPathOneOf.ts +src/models/DataPathOneOf1.ts +src/models/Dataset.ts +src/models/DatasetDefinition.ts +src/models/DatasetIdResourceId.ts +src/models/DatasetListing.ts +src/models/DatasetResource.ts +src/models/DateTime.ts +src/models/DateTimeParseFormat.ts +src/models/DerivedColor.ts +src/models/DerivedColorWithType.ts +src/models/DerivedNumber.ts +src/models/DerivedNumberWithType.ts +src/models/DescribeCoverageRequest.ts +src/models/ErrorResponse.ts +src/models/ExternalDataId.ts +src/models/ExternalDataIdWithType.ts +src/models/FailedTaskStatus.ts +src/models/FeatureDataType.ts +src/models/FileNotFoundHandling.ts +src/models/FormatSpecifics.ts +src/models/FormatSpecificsOneOf.ts +src/models/FormatSpecificsOneOfCsv.ts +src/models/GdalDatasetGeoTransform.ts +src/models/GdalDatasetParameters.ts +src/models/GdalLoadingInfoTemporalSlice.ts +src/models/GdalMetaDataList.ts +src/models/GdalMetaDataListWithType.ts +src/models/GdalMetaDataRegular.ts +src/models/GdalMetaDataRegularWithType.ts +src/models/GdalMetaDataStatic.ts +src/models/GdalMetaDataStaticWithType.ts +src/models/GdalMetadataMapping.ts +src/models/GdalMetadataNetCdfCf.ts +src/models/GdalMetadataNetCdfCfWithType.ts +src/models/GdalSourceTimePlaceholder.ts +src/models/GeoJson.ts +src/models/GetCapabilitiesFormat.ts +src/models/GetCapabilitiesRequest.ts +src/models/GetCoverageFormat.ts +src/models/GetCoverageRequest.ts +src/models/GetFeatureRequest.ts +src/models/GetLegendGraphicRequest.ts +src/models/GetMapExceptionFormat.ts +src/models/GetMapFormat.ts +src/models/GetMapRequest.ts +src/models/InfiniteOgrSourceDurationSpec.ts +src/models/InternalDataId.ts +src/models/Layer.ts +src/models/LayerCollection.ts +src/models/LayerCollectionListing.ts +src/models/LayerCollectionListingWithType.ts +src/models/LayerCollectionResource.ts +src/models/LayerCollectionResourceId.ts +src/models/LayerListing.ts +src/models/LayerListingWithType.ts +src/models/LayerResource.ts +src/models/LayerResourceId.ts +src/models/LayerUpdate.ts +src/models/LayerVisibility.ts +src/models/LineSymbology.ts +src/models/LineSymbologyWithType.ts +src/models/LinearGradient.ts +src/models/LinearGradientWithType.ts +src/models/LogarithmicGradient.ts +src/models/LogarithmicGradientWithType.ts +src/models/Measurement.ts +src/models/MetaDataDefinition.ts +src/models/MetaDataSuggestion.ts +src/models/MockDatasetDataSourceLoadingInfo.ts +src/models/MockMetaData.ts +src/models/MockMetaDataWithType.ts +src/models/ModelIdResourceId.ts +src/models/MultiLineString.ts +src/models/MultiPoint.ts +src/models/MultiPolygon.ts +src/models/NoneOgrSourceDatasetTimeType.ts +src/models/NumberParam.ts +src/models/OgrMetaData.ts +src/models/OgrMetaDataWithType.ts +src/models/OgrSourceColumnSpec.ts +src/models/OgrSourceDataset.ts +src/models/OgrSourceDatasetTimeType.ts +src/models/OgrSourceDurationSpec.ts +src/models/OgrSourceErrorSpec.ts +src/models/OgrSourceTimeFormat.ts +src/models/OrderBy.ts +src/models/PaletteColorizer.ts +src/models/Permission.ts +src/models/PermissionRequest.ts +src/models/Plot.ts +src/models/PlotOutputFormat.ts +src/models/PlotQueryRectangle.ts +src/models/PlotResultDescriptor.ts +src/models/PlotResultDescriptorWithType.ts +src/models/PlotUpdate.ts +src/models/PointSymbology.ts +src/models/PointSymbologyWithType.ts +src/models/PolygonSymbology.ts +src/models/PolygonSymbologyWithType.ts +src/models/Project.ts +src/models/ProjectLayer.ts +src/models/ProjectListing.ts +src/models/ProjectResource.ts +src/models/ProjectResourceId.ts +src/models/ProjectVersion.ts +src/models/Provenance.ts +src/models/ProvenanceEntry.ts +src/models/ProvenanceOutput.ts +src/models/ProviderLayerCollectionId.ts +src/models/ProviderLayerId.ts +src/models/Quota.ts +src/models/RasterBandDescriptor.ts +src/models/RasterDataType.ts +src/models/RasterDatasetFromWorkflow.ts +src/models/RasterDatasetFromWorkflowResult.ts +src/models/RasterPropertiesEntryType.ts +src/models/RasterPropertiesKey.ts +src/models/RasterQueryRectangle.ts +src/models/RasterResultDescriptor.ts +src/models/RasterResultDescriptorWithType.ts +src/models/RasterStreamWebsocketResultType.ts +src/models/RasterSymbology.ts +src/models/RasterSymbologyWithType.ts +src/models/Resource.ts +src/models/ResourceId.ts +src/models/RgbaColorizer.ts +src/models/Role.ts +src/models/RoleDescription.ts +src/models/RunningTaskStatus.ts +src/models/STRectangle.ts +src/models/ServerInfo.ts +src/models/SpatialPartition2D.ts +src/models/SpatialReferenceAuthority.ts +src/models/SpatialReferenceSpecification.ts +src/models/SpatialResolution.ts +src/models/StartDurationOgrSourceDatasetTimeType.ts +src/models/StartEndOgrSourceDatasetTimeType.ts +src/models/StartOgrSourceDatasetTimeType.ts +src/models/StaticColorParam.ts +src/models/StaticNumberParam.ts +src/models/StrokeParam.ts +src/models/Symbology.ts +src/models/TaskAbortOptions.ts +src/models/TaskFilter.ts +src/models/TaskListOptions.ts +src/models/TaskResponse.ts +src/models/TaskStatus.ts +src/models/TaskStatusWithId.ts +src/models/TextSymbology.ts +src/models/TimeGranularity.ts +src/models/TimeInterval.ts +src/models/TimeReference.ts +src/models/TimeStep.ts +src/models/TimeStepWithType.ts +src/models/TypedGeometry.ts +src/models/TypedGeometryOneOf.ts +src/models/TypedGeometryOneOf1.ts +src/models/TypedGeometryOneOf2.ts +src/models/TypedGeometryOneOf3.ts +src/models/TypedOperator.ts +src/models/TypedOperatorOperator.ts +src/models/TypedResultDescriptor.ts +src/models/UnitlessMeasurement.ts +src/models/UnixTimeStampOgrSourceTimeFormat.ts +src/models/UnixTimeStampType.ts +src/models/UpdateProject.ts +src/models/UpdateQuota.ts +src/models/UploadFileLayersResponse.ts +src/models/UploadFilesResponse.ts +src/models/UserCredentials.ts +src/models/UserInfo.ts +src/models/UserRegistration.ts +src/models/UserSession.ts +src/models/VectorColumnInfo.ts +src/models/VectorDataType.ts +src/models/VectorQueryRectangle.ts +src/models/VectorResultDescriptor.ts +src/models/VectorResultDescriptorWithType.ts +src/models/Volume.ts +src/models/WcsBoundingbox.ts +src/models/WcsService.ts +src/models/WcsVersion.ts +src/models/WfsService.ts +src/models/WfsVersion.ts +src/models/WmsService.ts +src/models/WmsVersion.ts +src/models/Workflow.ts +src/models/WrappedPlotOutput.ts +src/models/ZeroOgrSourceDurationSpec.ts +src/models/index.ts +src/runtime.ts +tsconfig.esm.json +tsconfig.json diff --git a/typescript/.openapi-generator/VERSION b/typescript/.openapi-generator/VERSION new file mode 100644 index 00000000..73a86b19 --- /dev/null +++ b/typescript/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.0.1 \ No newline at end of file diff --git a/typescript/README.md b/typescript/README.md new file mode 100644 index 00000000..097b4445 --- /dev/null +++ b/typescript/README.md @@ -0,0 +1,45 @@ +## geoengine_openapi_client@0.0.2 + +This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: + +Environment +* Node.js +* Webpack +* Browserify + +Language level +* ES5 - you must have a Promises/A+ library installed +* ES6 + +Module system +* CommonJS +* ES6 module system + +It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)) + +### Building + +To build and compile the typescript sources to javascript use: +``` +npm install +npm run build +``` + +### Publishing + +First build the package then run ```npm publish``` + +### Consuming + +navigate to the folder of your consuming project and run one of the following commands. + +_published:_ + +``` +npm install geoengine_openapi_client@0.0.2 --save +``` + +_unPublished (not recommended):_ + +``` +npm install PATH_TO_GENERATED_PACKAGE --save diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 00000000..d549f0c7 --- /dev/null +++ b/typescript/package.json @@ -0,0 +1,21 @@ +{ + "name": "geoengine_openapi_client", + "version": "0.0.2", + "description": "OpenAPI client for geoengine_openapi_client", + "author": "OpenAPI-Generator", + "repository": { + "type": "git", + "url": "https://github.com/openapi-client/geo-engine.git" + }, + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, + "scripts": { + "build": "tsc && tsc -p tsconfig.esm.json", + "prepare": "npm run build" + }, + "devDependencies": { + "typescript": "^4.0" + } +} diff --git a/typescript/src/apis/DatasetsApi.ts b/typescript/src/apis/DatasetsApi.ts new file mode 100644 index 00000000..8b2f4aee --- /dev/null +++ b/typescript/src/apis/DatasetsApi.ts @@ -0,0 +1,400 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AutoCreateDataset, + CreateDataset, + CreateDatasetHandler200Response, + Dataset, + DatasetListing, + ErrorResponse, + MetaDataSuggestion, + OrderBy, + Volume, +} from '../models/index'; +import { + AutoCreateDatasetFromJSON, + AutoCreateDatasetToJSON, + CreateDatasetFromJSON, + CreateDatasetToJSON, + CreateDatasetHandler200ResponseFromJSON, + CreateDatasetHandler200ResponseToJSON, + DatasetFromJSON, + DatasetToJSON, + DatasetListingFromJSON, + DatasetListingToJSON, + ErrorResponseFromJSON, + ErrorResponseToJSON, + MetaDataSuggestionFromJSON, + MetaDataSuggestionToJSON, + OrderByFromJSON, + OrderByToJSON, + VolumeFromJSON, + VolumeToJSON, +} from '../models/index'; + +export interface AutoCreateDatasetHandlerRequest { + autoCreateDataset: AutoCreateDataset; +} + +export interface CreateDatasetHandlerRequest { + createDataset: CreateDataset; +} + +export interface DeleteDatasetHandlerRequest { + dataset: string; +} + +export interface GetDatasetHandlerRequest { + dataset: string; +} + +export interface ListDatasetsHandlerRequest { + order: OrderBy; + offset: number; + limit: number; + filter?: string | null; +} + +export interface SuggestMetaDataHandlerRequest { + upload: string; + mainFile?: string | null; + layerName?: string | null; +} + +/** + * + */ +export class DatasetsApi extends runtime.BaseAPI { + + /** + * Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. + * Creates a new dataset using previously uploaded files. + */ + async autoCreateDatasetHandlerRaw(requestParameters: AutoCreateDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.autoCreateDataset === null || requestParameters.autoCreateDataset === undefined) { + throw new runtime.RequiredError('autoCreateDataset','Required parameter requestParameters.autoCreateDataset was null or undefined when calling autoCreateDatasetHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset/auto`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AutoCreateDatasetToJSON(requestParameters.autoCreateDataset), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDatasetHandler200ResponseFromJSON(jsonValue)); + } + + /** + * Creates a new dataset using previously uploaded files. The format of the files will be automatically detected when possible. + * Creates a new dataset using previously uploaded files. + */ + async autoCreateDatasetHandler(requestParameters: AutoCreateDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.autoCreateDatasetHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + * Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + */ + async createDatasetHandlerRaw(requestParameters: CreateDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.createDataset === null || requestParameters.createDataset === undefined) { + throw new runtime.RequiredError('createDataset','Required parameter requestParameters.createDataset was null or undefined when calling createDatasetHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateDatasetToJSON(requestParameters.createDataset), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDatasetHandler200ResponseFromJSON(jsonValue)); + } + + /** + * Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + * Creates a new dataset referencing files. Users can reference previously uploaded files. Admins can reference files from a volume. + */ + async createDatasetHandler(requestParameters: CreateDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createDatasetHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a dataset + * Delete a dataset + */ + async deleteDatasetHandlerRaw(requestParameters: DeleteDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.dataset === null || requestParameters.dataset === undefined) { + throw new runtime.RequiredError('dataset','Required parameter requestParameters.dataset was null or undefined when calling deleteDatasetHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters.dataset))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a dataset + * Delete a dataset + */ + async deleteDatasetHandler(requestParameters: DeleteDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteDatasetHandlerRaw(requestParameters, initOverrides); + } + + /** + * Retrieves details about a dataset using the internal name. + * Retrieves details about a dataset using the internal name. + */ + async getDatasetHandlerRaw(requestParameters: GetDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.dataset === null || requestParameters.dataset === undefined) { + throw new runtime.RequiredError('dataset','Required parameter requestParameters.dataset was null or undefined when calling getDatasetHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset/{dataset}`.replace(`{${"dataset"}}`, encodeURIComponent(String(requestParameters.dataset))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DatasetFromJSON(jsonValue)); + } + + /** + * Retrieves details about a dataset using the internal name. + * Retrieves details about a dataset using the internal name. + */ + async getDatasetHandler(requestParameters: GetDatasetHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getDatasetHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Lists available datasets. + * Lists available datasets. + */ + async listDatasetsHandlerRaw(requestParameters: ListDatasetsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.order === null || requestParameters.order === undefined) { + throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling listDatasetsHandler.'); + } + + if (requestParameters.offset === null || requestParameters.offset === undefined) { + throw new runtime.RequiredError('offset','Required parameter requestParameters.offset was null or undefined when calling listDatasetsHandler.'); + } + + if (requestParameters.limit === null || requestParameters.limit === undefined) { + throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling listDatasetsHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.filter !== undefined) { + queryParameters['filter'] = requestParameters.filter; + } + + if (requestParameters.order !== undefined) { + queryParameters['order'] = requestParameters.order; + } + + if (requestParameters.offset !== undefined) { + queryParameters['offset'] = requestParameters.offset; + } + + if (requestParameters.limit !== undefined) { + queryParameters['limit'] = requestParameters.limit; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/datasets`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DatasetListingFromJSON)); + } + + /** + * Lists available datasets. + * Lists available datasets. + */ + async listDatasetsHandler(requestParameters: ListDatasetsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.listDatasetsHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Lists available volumes. + * Lists available volumes. + */ + async listVolumesHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset/volumes`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VolumeFromJSON)); + } + + /** + * Lists available volumes. + * Lists available volumes. + */ + async listVolumesHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.listVolumesHandlerRaw(initOverrides); + return await response.value(); + } + + /** + * Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. + * Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. + */ + async suggestMetaDataHandlerRaw(requestParameters: SuggestMetaDataHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.upload === null || requestParameters.upload === undefined) { + throw new runtime.RequiredError('upload','Required parameter requestParameters.upload was null or undefined when calling suggestMetaDataHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.upload !== undefined) { + queryParameters['upload'] = requestParameters.upload; + } + + if (requestParameters.mainFile !== undefined) { + queryParameters['mainFile'] = requestParameters.mainFile; + } + + if (requestParameters.layerName !== undefined) { + queryParameters['layerName'] = requestParameters.layerName; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/dataset/suggest`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => MetaDataSuggestionFromJSON(jsonValue)); + } + + /** + * Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. Tries to automatically detect the main file and layer name if not specified. + * Inspects an upload and suggests metadata that can be used when creating a new dataset based on it. + */ + async suggestMetaDataHandler(requestParameters: SuggestMetaDataHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.suggestMetaDataHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/GeneralApi.ts b/typescript/src/apis/GeneralApi.ts new file mode 100644 index 00000000..2cfef3f6 --- /dev/null +++ b/typescript/src/apis/GeneralApi.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + ServerInfo, +} from '../models/index'; +import { + ServerInfoFromJSON, + ServerInfoToJSON, +} from '../models/index'; + +/** + * + */ +export class GeneralApi extends runtime.BaseAPI { + + /** + * Server availablity check. + * Server availablity check. + */ + async availableHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/available`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Server availablity check. + * Server availablity check. + */ + async availableHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.availableHandlerRaw(initOverrides); + } + + /** + * Shows information about the server software version. + * Shows information about the server software version. + */ + async serverInfoHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/info`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ServerInfoFromJSON(jsonValue)); + } + + /** + * Shows information about the server software version. + * Shows information about the server software version. + */ + async serverInfoHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.serverInfoHandlerRaw(initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/LayersApi.ts b/typescript/src/apis/LayersApi.ts new file mode 100644 index 00000000..051ada3d --- /dev/null +++ b/typescript/src/apis/LayersApi.ts @@ -0,0 +1,655 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddCollection200Response, + AddLayer, + AddLayerCollection, + Layer, + LayerCollection, + TaskResponse, +} from '../models/index'; +import { + AddCollection200ResponseFromJSON, + AddCollection200ResponseToJSON, + AddLayerFromJSON, + AddLayerToJSON, + AddLayerCollectionFromJSON, + AddLayerCollectionToJSON, + LayerFromJSON, + LayerToJSON, + LayerCollectionFromJSON, + LayerCollectionToJSON, + TaskResponseFromJSON, + TaskResponseToJSON, +} from '../models/index'; + +export interface AddCollectionRequest { + collection: string; + addLayerCollection: AddLayerCollection; +} + +export interface AddExistingCollectionToCollectionRequest { + parent: string; + collection: string; +} + +export interface AddExistingLayerToCollectionRequest { + collection: string; + layer: string; +} + +export interface AddLayerRequest { + collection: string; + addLayer: AddLayer; +} + +export interface LayerHandlerRequest { + provider: string; + layer: string; +} + +export interface LayerToDatasetRequest { + provider: string; + layer: string; +} + +export interface LayerToWorkflowIdHandlerRequest { + provider: string; + layer: string; +} + +export interface ListCollectionHandlerRequest { + provider: string; + collection: string; + offset: number; + limit: number; +} + +export interface ListRootCollectionsHandlerRequest { + offset: number; + limit: number; +} + +export interface RemoveCollectionRequest { + collection: string; +} + +export interface RemoveCollectionFromCollectionRequest { + parent: string; + collection: string; +} + +export interface RemoveLayerFromCollectionRequest { + collection: string; + layer: string; +} + +/** + * + */ +export class LayersApi extends runtime.BaseAPI { + + /** + * Add a new collection to an existing collection + * Add a new collection to an existing collection + */ + async addCollectionRaw(requestParameters: AddCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling addCollection.'); + } + + if (requestParameters.addLayerCollection === null || requestParameters.addLayerCollection === undefined) { + throw new runtime.RequiredError('addLayerCollection','Required parameter requestParameters.addLayerCollection was null or undefined when calling addCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{collection}/collections`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddLayerCollectionToJSON(requestParameters.addLayerCollection), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Add a new collection to an existing collection + * Add a new collection to an existing collection + */ + async addCollection(requestParameters: AddCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addCollectionRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Add an existing collection to a collection + * Add an existing collection to a collection + */ + async addExistingCollectionToCollectionRaw(requestParameters: AddExistingCollectionToCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.parent === null || requestParameters.parent === undefined) { + throw new runtime.RequiredError('parent','Required parameter requestParameters.parent was null or undefined when calling addExistingCollectionToCollection.'); + } + + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling addExistingCollectionToCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters.parent))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add an existing collection to a collection + * Add an existing collection to a collection + */ + async addExistingCollectionToCollection(requestParameters: AddExistingCollectionToCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.addExistingCollectionToCollectionRaw(requestParameters, initOverrides); + } + + /** + * Add an existing layer to a collection + * Add an existing layer to a collection + */ + async addExistingLayerToCollectionRaw(requestParameters: AddExistingLayerToCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling addExistingLayerToCollection.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling addExistingLayerToCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters.layer))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add an existing layer to a collection + * Add an existing layer to a collection + */ + async addExistingLayerToCollection(requestParameters: AddExistingLayerToCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.addExistingLayerToCollectionRaw(requestParameters, initOverrides); + } + + /** + * Add a new layer to a collection + * Add a new layer to a collection + */ + async addLayerRaw(requestParameters: AddLayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling addLayer.'); + } + + if (requestParameters.addLayer === null || requestParameters.addLayer === undefined) { + throw new runtime.RequiredError('addLayer','Required parameter requestParameters.addLayer was null or undefined when calling addLayer.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{collection}/layers`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddLayerToJSON(requestParameters.addLayer), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Add a new layer to a collection + * Add a new layer to a collection + */ + async addLayer(requestParameters: AddLayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addLayerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves the layer of the given provider + * Retrieves the layer of the given provider + */ + async layerHandlerRaw(requestParameters: LayerHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.provider === null || requestParameters.provider === undefined) { + throw new runtime.RequiredError('provider','Required parameter requestParameters.provider was null or undefined when calling layerHandler.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling layerHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layers/{provider}/{layer}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters.provider))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters.layer))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LayerFromJSON(jsonValue)); + } + + /** + * Retrieves the layer of the given provider + * Retrieves the layer of the given provider + */ + async layerHandler(requestParameters: LayerHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.layerHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Persist a raster layer from a provider as a dataset. + * Persist a raster layer from a provider as a dataset. + */ + async layerToDatasetRaw(requestParameters: LayerToDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.provider === null || requestParameters.provider === undefined) { + throw new runtime.RequiredError('provider','Required parameter requestParameters.provider was null or undefined when calling layerToDataset.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling layerToDataset.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layers/{provider}/{layer}/dataset`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters.provider))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters.layer))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TaskResponseFromJSON(jsonValue)); + } + + /** + * Persist a raster layer from a provider as a dataset. + * Persist a raster layer from a provider as a dataset. + */ + async layerToDataset(requestParameters: LayerToDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.layerToDatasetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Registers a layer from a provider as a workflow and returns the workflow id + * Registers a layer from a provider as a workflow and returns the workflow id + */ + async layerToWorkflowIdHandlerRaw(requestParameters: LayerToWorkflowIdHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.provider === null || requestParameters.provider === undefined) { + throw new runtime.RequiredError('provider','Required parameter requestParameters.provider was null or undefined when calling layerToWorkflowIdHandler.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling layerToWorkflowIdHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layers/{provider}/{layer}/workflowId`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters.provider))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters.layer))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Registers a layer from a provider as a workflow and returns the workflow id + * Registers a layer from a provider as a workflow and returns the workflow id + */ + async layerToWorkflowIdHandler(requestParameters: LayerToWorkflowIdHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.layerToWorkflowIdHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * List the contents of the collection of the given provider + * List the contents of the collection of the given provider + */ + async listCollectionHandlerRaw(requestParameters: ListCollectionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.provider === null || requestParameters.provider === undefined) { + throw new runtime.RequiredError('provider','Required parameter requestParameters.provider was null or undefined when calling listCollectionHandler.'); + } + + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling listCollectionHandler.'); + } + + if (requestParameters.offset === null || requestParameters.offset === undefined) { + throw new runtime.RequiredError('offset','Required parameter requestParameters.offset was null or undefined when calling listCollectionHandler.'); + } + + if (requestParameters.limit === null || requestParameters.limit === undefined) { + throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling listCollectionHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.offset !== undefined) { + queryParameters['offset'] = requestParameters.offset; + } + + if (requestParameters.limit !== undefined) { + queryParameters['limit'] = requestParameters.limit; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layers/collections/{provider}/{collection}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters.provider))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LayerCollectionFromJSON(jsonValue)); + } + + /** + * List the contents of the collection of the given provider + * List the contents of the collection of the given provider + */ + async listCollectionHandler(requestParameters: ListCollectionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listCollectionHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * List all layer collections + * List all layer collections + */ + async listRootCollectionsHandlerRaw(requestParameters: ListRootCollectionsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.offset === null || requestParameters.offset === undefined) { + throw new runtime.RequiredError('offset','Required parameter requestParameters.offset was null or undefined when calling listRootCollectionsHandler.'); + } + + if (requestParameters.limit === null || requestParameters.limit === undefined) { + throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling listRootCollectionsHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.offset !== undefined) { + queryParameters['offset'] = requestParameters.offset; + } + + if (requestParameters.limit !== undefined) { + queryParameters['limit'] = requestParameters.limit; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layers/collections`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => LayerCollectionFromJSON(jsonValue)); + } + + /** + * List all layer collections + * List all layer collections + */ + async listRootCollectionsHandler(requestParameters: ListRootCollectionsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listRootCollectionsHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Remove a collection + * Remove a collection + */ + async removeCollectionRaw(requestParameters: RemoveCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling removeCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{collection}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove a collection + * Remove a collection + */ + async removeCollection(requestParameters: RemoveCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removeCollectionRaw(requestParameters, initOverrides); + } + + /** + * Delete a collection from a collection + * Delete a collection from a collection + */ + async removeCollectionFromCollectionRaw(requestParameters: RemoveCollectionFromCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.parent === null || requestParameters.parent === undefined) { + throw new runtime.RequiredError('parent','Required parameter requestParameters.parent was null or undefined when calling removeCollectionFromCollection.'); + } + + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling removeCollectionFromCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{parent}/collections/{collection}`.replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters.parent))).replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a collection from a collection + * Delete a collection from a collection + */ + async removeCollectionFromCollection(requestParameters: RemoveCollectionFromCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removeCollectionFromCollectionRaw(requestParameters, initOverrides); + } + + /** + * Remove a layer from a collection + * Remove a layer from a collection + */ + async removeLayerFromCollectionRaw(requestParameters: RemoveLayerFromCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.collection === null || requestParameters.collection === undefined) { + throw new runtime.RequiredError('collection','Required parameter requestParameters.collection was null or undefined when calling removeLayerFromCollection.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling removeLayerFromCollection.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/layerDb/collections/{collection}/layers/{layer}`.replace(`{${"collection"}}`, encodeURIComponent(String(requestParameters.collection))).replace(`{${"layer"}}`, encodeURIComponent(String(requestParameters.layer))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove a layer from a collection + * Remove a layer from a collection + */ + async removeLayerFromCollection(requestParameters: RemoveLayerFromCollectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removeLayerFromCollectionRaw(requestParameters, initOverrides); + } + +} diff --git a/typescript/src/apis/OGCWCSApi.ts b/typescript/src/apis/OGCWCSApi.ts new file mode 100644 index 00000000..3d2d88d1 --- /dev/null +++ b/typescript/src/apis/OGCWCSApi.ts @@ -0,0 +1,337 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + DescribeCoverageRequest, + GetCapabilitiesRequest, + GetCoverageFormat, + GetCoverageRequest, + WcsService, + WcsVersion, +} from '../models/index'; +import { + DescribeCoverageRequestFromJSON, + DescribeCoverageRequestToJSON, + GetCapabilitiesRequestFromJSON, + GetCapabilitiesRequestToJSON, + GetCoverageFormatFromJSON, + GetCoverageFormatToJSON, + GetCoverageRequestFromJSON, + GetCoverageRequestToJSON, + WcsServiceFromJSON, + WcsServiceToJSON, + WcsVersionFromJSON, + WcsVersionToJSON, +} from '../models/index'; + +export interface WcsCapabilitiesHandlerRequest { + workflow: string; + service: WcsService; + request: GetCapabilitiesRequest; + version?: WcsVersion | null; +} + +export interface WcsDescribeCoverageHandlerRequest { + workflow: string; + version: WcsVersion; + service: WcsService; + request: DescribeCoverageRequest; + identifiers: string; +} + +export interface WcsGetCoverageHandlerRequest { + workflow: string; + version: WcsVersion; + service: WcsService; + request: GetCoverageRequest; + format: GetCoverageFormat; + identifier: string; + boundingbox: string; + gridbasecrs: string; + gridorigin?: string; + gridoffsets?: string; + time?: string; + resx?: number | null; + resy?: number | null; + nodatavalue?: number | null; +} + +/** + * + */ +export class OGCWCSApi extends runtime.BaseAPI { + + /** + * Get WCS Capabilities + * Get WCS Capabilities + */ + async wcsCapabilitiesHandlerRaw(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wcsCapabilitiesHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wcsCapabilitiesHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wcsCapabilitiesHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wcs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Get WCS Capabilities + * Get WCS Capabilities + */ + async wcsCapabilitiesHandler(requestParameters: WcsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wcsCapabilitiesHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get WCS Coverage Description + * Get WCS Coverage Description + */ + async wcsDescribeCoverageHandlerRaw(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wcsDescribeCoverageHandler.'); + } + + if (requestParameters.version === null || requestParameters.version === undefined) { + throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling wcsDescribeCoverageHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wcsDescribeCoverageHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wcsDescribeCoverageHandler.'); + } + + if (requestParameters.identifiers === null || requestParameters.identifiers === undefined) { + throw new runtime.RequiredError('identifiers','Required parameter requestParameters.identifiers was null or undefined when calling wcsDescribeCoverageHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.identifiers !== undefined) { + queryParameters['identifiers'] = requestParameters.identifiers; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wcs/{workflow}?request=DescribeCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Get WCS Coverage Description + * Get WCS Coverage Description + */ + async wcsDescribeCoverageHandler(requestParameters: WcsDescribeCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wcsDescribeCoverageHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get WCS Coverage + * Get WCS Coverage + */ + async wcsGetCoverageHandlerRaw(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.version === null || requestParameters.version === undefined) { + throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.format === null || requestParameters.format === undefined) { + throw new runtime.RequiredError('format','Required parameter requestParameters.format was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.identifier === null || requestParameters.identifier === undefined) { + throw new runtime.RequiredError('identifier','Required parameter requestParameters.identifier was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.boundingbox === null || requestParameters.boundingbox === undefined) { + throw new runtime.RequiredError('boundingbox','Required parameter requestParameters.boundingbox was null or undefined when calling wcsGetCoverageHandler.'); + } + + if (requestParameters.gridbasecrs === null || requestParameters.gridbasecrs === undefined) { + throw new runtime.RequiredError('gridbasecrs','Required parameter requestParameters.gridbasecrs was null or undefined when calling wcsGetCoverageHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.format !== undefined) { + queryParameters['format'] = requestParameters.format; + } + + if (requestParameters.identifier !== undefined) { + queryParameters['identifier'] = requestParameters.identifier; + } + + if (requestParameters.boundingbox !== undefined) { + queryParameters['boundingbox'] = requestParameters.boundingbox; + } + + if (requestParameters.gridbasecrs !== undefined) { + queryParameters['gridbasecrs'] = requestParameters.gridbasecrs; + } + + if (requestParameters.gridorigin !== undefined) { + queryParameters['gridorigin'] = requestParameters.gridorigin; + } + + if (requestParameters.gridoffsets !== undefined) { + queryParameters['gridoffsets'] = requestParameters.gridoffsets; + } + + if (requestParameters.time !== undefined) { + queryParameters['time'] = requestParameters.time; + } + + if (requestParameters.resx !== undefined) { + queryParameters['resx'] = requestParameters.resx; + } + + if (requestParameters.resy !== undefined) { + queryParameters['resy'] = requestParameters.resy; + } + + if (requestParameters.nodatavalue !== undefined) { + queryParameters['nodatavalue'] = requestParameters.nodatavalue; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wcs/{workflow}?request=GetCoverage`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get WCS Coverage + * Get WCS Coverage + */ + async wcsGetCoverageHandler(requestParameters: WcsGetCoverageHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wcsGetCoverageHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/OGCWFSApi.ts b/typescript/src/apis/OGCWFSApi.ts new file mode 100644 index 00000000..e9e9b91e --- /dev/null +++ b/typescript/src/apis/OGCWFSApi.ts @@ -0,0 +1,243 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + GeoJson, + GetCapabilitiesRequest, + GetFeatureRequest, + WfsService, + WfsVersion, +} from '../models/index'; +import { + GeoJsonFromJSON, + GeoJsonToJSON, + GetCapabilitiesRequestFromJSON, + GetCapabilitiesRequestToJSON, + GetFeatureRequestFromJSON, + GetFeatureRequestToJSON, + WfsServiceFromJSON, + WfsServiceToJSON, + WfsVersionFromJSON, + WfsVersionToJSON, +} from '../models/index'; + +export interface WfsCapabilitiesHandlerRequest { + workflow: string; + service: WfsService; + request: GetCapabilitiesRequest; + version?: WfsVersion | null; +} + +export interface WfsFeatureHandlerRequest { + workflow: string; + service: WfsService; + request: GetFeatureRequest; + typeNames: string; + bbox: string; + version?: WfsVersion | null; + time?: string; + srsName?: string | null; + namespaces?: string | null; + count?: number | null; + sortBy?: string | null; + resultType?: string | null; + filter?: string | null; + propertyName?: string | null; + queryResolution?: string | null; +} + +/** + * + */ +export class OGCWFSApi extends runtime.BaseAPI { + + /** + * Get WFS Capabilities + * Get WFS Capabilities + */ + async wfsCapabilitiesHandlerRaw(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wfsCapabilitiesHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wfsCapabilitiesHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wfsCapabilitiesHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wfs/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Get WFS Capabilities + * Get WFS Capabilities + */ + async wfsCapabilitiesHandler(requestParameters: WfsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wfsCapabilitiesHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get WCS Features + * Get WCS Features + */ + async wfsFeatureHandlerRaw(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wfsFeatureHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wfsFeatureHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wfsFeatureHandler.'); + } + + if (requestParameters.typeNames === null || requestParameters.typeNames === undefined) { + throw new runtime.RequiredError('typeNames','Required parameter requestParameters.typeNames was null or undefined when calling wfsFeatureHandler.'); + } + + if (requestParameters.bbox === null || requestParameters.bbox === undefined) { + throw new runtime.RequiredError('bbox','Required parameter requestParameters.bbox was null or undefined when calling wfsFeatureHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.typeNames !== undefined) { + queryParameters['typeNames'] = requestParameters.typeNames; + } + + if (requestParameters.bbox !== undefined) { + queryParameters['bbox'] = requestParameters.bbox; + } + + if (requestParameters.time !== undefined) { + queryParameters['time'] = requestParameters.time; + } + + if (requestParameters.srsName !== undefined) { + queryParameters['srsName'] = requestParameters.srsName; + } + + if (requestParameters.namespaces !== undefined) { + queryParameters['namespaces'] = requestParameters.namespaces; + } + + if (requestParameters.count !== undefined) { + queryParameters['count'] = requestParameters.count; + } + + if (requestParameters.sortBy !== undefined) { + queryParameters['sortBy'] = requestParameters.sortBy; + } + + if (requestParameters.resultType !== undefined) { + queryParameters['resultType'] = requestParameters.resultType; + } + + if (requestParameters.filter !== undefined) { + queryParameters['filter'] = requestParameters.filter; + } + + if (requestParameters.propertyName !== undefined) { + queryParameters['propertyName'] = requestParameters.propertyName; + } + + if (requestParameters.queryResolution !== undefined) { + queryParameters['queryResolution'] = requestParameters.queryResolution; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wfs/{workflow}?request=GetFeature`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GeoJsonFromJSON(jsonValue)); + } + + /** + * Get WCS Features + * Get WCS Features + */ + async wfsFeatureHandler(requestParameters: WfsFeatureHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wfsFeatureHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/OGCWMSApi.ts b/typescript/src/apis/OGCWMSApi.ts new file mode 100644 index 00000000..af6c527b --- /dev/null +++ b/typescript/src/apis/OGCWMSApi.ts @@ -0,0 +1,371 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + GetCapabilitiesFormat, + GetCapabilitiesRequest, + GetLegendGraphicRequest, + GetMapExceptionFormat, + GetMapFormat, + GetMapRequest, + WmsService, + WmsVersion, +} from '../models/index'; +import { + GetCapabilitiesFormatFromJSON, + GetCapabilitiesFormatToJSON, + GetCapabilitiesRequestFromJSON, + GetCapabilitiesRequestToJSON, + GetLegendGraphicRequestFromJSON, + GetLegendGraphicRequestToJSON, + GetMapExceptionFormatFromJSON, + GetMapExceptionFormatToJSON, + GetMapFormatFromJSON, + GetMapFormatToJSON, + GetMapRequestFromJSON, + GetMapRequestToJSON, + WmsServiceFromJSON, + WmsServiceToJSON, + WmsVersionFromJSON, + WmsVersionToJSON, +} from '../models/index'; + +export interface WmsCapabilitiesHandlerRequest { + workflow: string; + service: WmsService; + request: GetCapabilitiesRequest; + version?: WmsVersion | null; + format?: GetCapabilitiesFormat | null; +} + +export interface WmsLegendGraphicHandlerRequest { + workflow: string; + version: WmsVersion; + service: WmsService; + request: GetLegendGraphicRequest; + layer: string; +} + +export interface WmsMapHandlerRequest { + workflow: string; + version: WmsVersion; + service: WmsService; + request: GetMapRequest; + width: number; + height: number; + bbox: string; + format: GetMapFormat; + layers: string; + styles: string; + crs?: string | null; + time?: string; + transparent?: boolean | null; + bgcolor?: string | null; + sld?: string | null; + sldBody?: string | null; + elevation?: string | null; + exceptions?: GetMapExceptionFormat | null; +} + +/** + * + */ +export class OGCWMSApi extends runtime.BaseAPI { + + /** + * Get WMS Capabilities + * Get WMS Capabilities + */ + async wmsCapabilitiesHandlerRaw(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wmsCapabilitiesHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wmsCapabilitiesHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wmsCapabilitiesHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.format !== undefined) { + queryParameters['format'] = requestParameters.format; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wms/{workflow}?request=GetCapabilities`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Get WMS Capabilities + * Get WMS Capabilities + */ + async wmsCapabilitiesHandler(requestParameters: WmsCapabilitiesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wmsCapabilitiesHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get WMS Legend Graphic + * Get WMS Legend Graphic + */ + async wmsLegendGraphicHandlerRaw(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wmsLegendGraphicHandler.'); + } + + if (requestParameters.version === null || requestParameters.version === undefined) { + throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling wmsLegendGraphicHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wmsLegendGraphicHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wmsLegendGraphicHandler.'); + } + + if (requestParameters.layer === null || requestParameters.layer === undefined) { + throw new runtime.RequiredError('layer','Required parameter requestParameters.layer was null or undefined when calling wmsLegendGraphicHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.layer !== undefined) { + queryParameters['layer'] = requestParameters.layer; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wms/{workflow}?request=GetLegendGraphic`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Get WMS Legend Graphic + * Get WMS Legend Graphic + */ + async wmsLegendGraphicHandler(requestParameters: WmsLegendGraphicHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.wmsLegendGraphicHandlerRaw(requestParameters, initOverrides); + } + + /** + * Get WMS Map + * Get WMS Map + */ + async wmsMapHandlerRaw(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.version === null || requestParameters.version === undefined) { + throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.service === null || requestParameters.service === undefined) { + throw new runtime.RequiredError('service','Required parameter requestParameters.service was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.request === null || requestParameters.request === undefined) { + throw new runtime.RequiredError('request','Required parameter requestParameters.request was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.width === null || requestParameters.width === undefined) { + throw new runtime.RequiredError('width','Required parameter requestParameters.width was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.height === null || requestParameters.height === undefined) { + throw new runtime.RequiredError('height','Required parameter requestParameters.height was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.bbox === null || requestParameters.bbox === undefined) { + throw new runtime.RequiredError('bbox','Required parameter requestParameters.bbox was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.format === null || requestParameters.format === undefined) { + throw new runtime.RequiredError('format','Required parameter requestParameters.format was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.layers === null || requestParameters.layers === undefined) { + throw new runtime.RequiredError('layers','Required parameter requestParameters.layers was null or undefined when calling wmsMapHandler.'); + } + + if (requestParameters.styles === null || requestParameters.styles === undefined) { + throw new runtime.RequiredError('styles','Required parameter requestParameters.styles was null or undefined when calling wmsMapHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.version !== undefined) { + queryParameters['version'] = requestParameters.version; + } + + if (requestParameters.service !== undefined) { + queryParameters['service'] = requestParameters.service; + } + + if (requestParameters.request !== undefined) { + queryParameters['request'] = requestParameters.request; + } + + if (requestParameters.width !== undefined) { + queryParameters['width'] = requestParameters.width; + } + + if (requestParameters.height !== undefined) { + queryParameters['height'] = requestParameters.height; + } + + if (requestParameters.bbox !== undefined) { + queryParameters['bbox'] = requestParameters.bbox; + } + + if (requestParameters.format !== undefined) { + queryParameters['format'] = requestParameters.format; + } + + if (requestParameters.layers !== undefined) { + queryParameters['layers'] = requestParameters.layers; + } + + if (requestParameters.crs !== undefined) { + queryParameters['crs'] = requestParameters.crs; + } + + if (requestParameters.styles !== undefined) { + queryParameters['styles'] = requestParameters.styles; + } + + if (requestParameters.time !== undefined) { + queryParameters['time'] = requestParameters.time; + } + + if (requestParameters.transparent !== undefined) { + queryParameters['transparent'] = requestParameters.transparent; + } + + if (requestParameters.bgcolor !== undefined) { + queryParameters['bgcolor'] = requestParameters.bgcolor; + } + + if (requestParameters.sld !== undefined) { + queryParameters['sld'] = requestParameters.sld; + } + + if (requestParameters.sldBody !== undefined) { + queryParameters['sld_body'] = requestParameters.sldBody; + } + + if (requestParameters.elevation !== undefined) { + queryParameters['elevation'] = requestParameters.elevation; + } + + if (requestParameters.exceptions !== undefined) { + queryParameters['exceptions'] = requestParameters.exceptions; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/wms/{workflow}?request=GetMap`.replace(`{${"workflow"}}`, encodeURIComponent(String(requestParameters.workflow))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Get WMS Map + * Get WMS Map + */ + async wmsMapHandler(requestParameters: WmsMapHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.wmsMapHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/PermissionsApi.ts b/typescript/src/apis/PermissionsApi.ts new file mode 100644 index 00000000..f7a36293 --- /dev/null +++ b/typescript/src/apis/PermissionsApi.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + PermissionRequest, +} from '../models/index'; +import { + PermissionRequestFromJSON, + PermissionRequestToJSON, +} from '../models/index'; + +export interface AddPermissionHandlerRequest { + permissionRequest: PermissionRequest; +} + +export interface RemovePermissionHandlerRequest { + permissionRequest: PermissionRequest; +} + +/** + * + */ +export class PermissionsApi extends runtime.BaseAPI { + + /** + * Adds a new permission. + * Adds a new permission. + */ + async addPermissionHandlerRaw(requestParameters: AddPermissionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.permissionRequest === null || requestParameters.permissionRequest === undefined) { + throw new runtime.RequiredError('permissionRequest','Required parameter requestParameters.permissionRequest was null or undefined when calling addPermissionHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/permissions`, + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: PermissionRequestToJSON(requestParameters.permissionRequest), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Adds a new permission. + * Adds a new permission. + */ + async addPermissionHandler(requestParameters: AddPermissionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.addPermissionHandlerRaw(requestParameters, initOverrides); + } + + /** + * Removes an existing permission. + * Removes an existing permission. + */ + async removePermissionHandlerRaw(requestParameters: RemovePermissionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.permissionRequest === null || requestParameters.permissionRequest === undefined) { + throw new runtime.RequiredError('permissionRequest','Required parameter requestParameters.permissionRequest was null or undefined when calling removePermissionHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/permissions`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + body: PermissionRequestToJSON(requestParameters.permissionRequest), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Removes an existing permission. + * Removes an existing permission. + */ + async removePermissionHandler(requestParameters: RemovePermissionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removePermissionHandlerRaw(requestParameters, initOverrides); + } + +} diff --git a/typescript/src/apis/PlotsApi.ts b/typescript/src/apis/PlotsApi.ts new file mode 100644 index 00000000..b722a3c6 --- /dev/null +++ b/typescript/src/apis/PlotsApi.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + WrappedPlotOutput, +} from '../models/index'; +import { + WrappedPlotOutputFromJSON, + WrappedPlotOutputToJSON, +} from '../models/index'; + +export interface GetPlotHandlerRequest { + bbox: string; + time: string; + spatialResolution: string; + id: string; + crs?: string | null; +} + +/** + * + */ +export class PlotsApi extends runtime.BaseAPI { + + /** + * Generates a plot. # Example 1. Upload the file `plain_data.csv` with the following content: ```csv a 1 2 ``` 2. Create a dataset from it using the \"Plain Data\" example at `/dataset`. 3. Create a statistics workflow using the \"Statistics Plot\" example at `/workflow`. 4. Generate the plot with this handler. + * Generates a plot. + */ + async getPlotHandlerRaw(requestParameters: GetPlotHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.bbox === null || requestParameters.bbox === undefined) { + throw new runtime.RequiredError('bbox','Required parameter requestParameters.bbox was null or undefined when calling getPlotHandler.'); + } + + if (requestParameters.time === null || requestParameters.time === undefined) { + throw new runtime.RequiredError('time','Required parameter requestParameters.time was null or undefined when calling getPlotHandler.'); + } + + if (requestParameters.spatialResolution === null || requestParameters.spatialResolution === undefined) { + throw new runtime.RequiredError('spatialResolution','Required parameter requestParameters.spatialResolution was null or undefined when calling getPlotHandler.'); + } + + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getPlotHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.bbox !== undefined) { + queryParameters['bbox'] = requestParameters.bbox; + } + + if (requestParameters.crs !== undefined) { + queryParameters['crs'] = requestParameters.crs; + } + + if (requestParameters.time !== undefined) { + queryParameters['time'] = requestParameters.time; + } + + if (requestParameters.spatialResolution !== undefined) { + queryParameters['spatialResolution'] = requestParameters.spatialResolution; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/plot/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WrappedPlotOutputFromJSON(jsonValue)); + } + + /** + * Generates a plot. # Example 1. Upload the file `plain_data.csv` with the following content: ```csv a 1 2 ``` 2. Create a dataset from it using the \"Plain Data\" example at `/dataset`. 3. Create a statistics workflow using the \"Statistics Plot\" example at `/workflow`. 4. Generate the plot with this handler. + * Generates a plot. + */ + async getPlotHandler(requestParameters: GetPlotHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getPlotHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/ProjectsApi.ts b/typescript/src/apis/ProjectsApi.ts new file mode 100644 index 00000000..5a25b50f --- /dev/null +++ b/typescript/src/apis/ProjectsApi.ts @@ -0,0 +1,380 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddCollection200Response, + CreateProject, + OrderBy, + Project, + ProjectListing, + ProjectVersion, + UpdateProject, +} from '../models/index'; +import { + AddCollection200ResponseFromJSON, + AddCollection200ResponseToJSON, + CreateProjectFromJSON, + CreateProjectToJSON, + OrderByFromJSON, + OrderByToJSON, + ProjectFromJSON, + ProjectToJSON, + ProjectListingFromJSON, + ProjectListingToJSON, + ProjectVersionFromJSON, + ProjectVersionToJSON, + UpdateProjectFromJSON, + UpdateProjectToJSON, +} from '../models/index'; + +export interface CreateProjectHandlerRequest { + createProject: CreateProject; +} + +export interface DeleteProjectHandlerRequest { + project: string; +} + +export interface ListProjectsHandlerRequest { + order: OrderBy; + offset: number; + limit: number; +} + +export interface LoadProjectLatestHandlerRequest { + project: string; +} + +export interface LoadProjectVersionHandlerRequest { + project: string; + version: string; +} + +export interface ProjectVersionsHandlerRequest { + project: string; +} + +export interface UpdateProjectHandlerRequest { + project: string; + updateProject: UpdateProject; +} + +/** + * + */ +export class ProjectsApi extends runtime.BaseAPI { + + /** + * Create a new project for the user. + * Create a new project for the user. + */ + async createProjectHandlerRaw(requestParameters: CreateProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.createProject === null || requestParameters.createProject === undefined) { + throw new runtime.RequiredError('createProject','Required parameter requestParameters.createProject was null or undefined when calling createProjectHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateProjectToJSON(requestParameters.createProject), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Create a new project for the user. + * Create a new project for the user. + */ + async createProjectHandler(requestParameters: CreateProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createProjectHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Deletes a project. + * Deletes a project. + */ + async deleteProjectHandlerRaw(requestParameters: DeleteProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.project === null || requestParameters.project === undefined) { + throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteProjectHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Deletes a project. + * Deletes a project. + */ + async deleteProjectHandler(requestParameters: DeleteProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.deleteProjectHandlerRaw(requestParameters, initOverrides); + } + + /** + * List all projects accessible to the user that match the selected criteria. + * List all projects accessible to the user that match the selected criteria. + */ + async listProjectsHandlerRaw(requestParameters: ListProjectsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.order === null || requestParameters.order === undefined) { + throw new runtime.RequiredError('order','Required parameter requestParameters.order was null or undefined when calling listProjectsHandler.'); + } + + if (requestParameters.offset === null || requestParameters.offset === undefined) { + throw new runtime.RequiredError('offset','Required parameter requestParameters.offset was null or undefined when calling listProjectsHandler.'); + } + + if (requestParameters.limit === null || requestParameters.limit === undefined) { + throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling listProjectsHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/projects`.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters.order))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters.offset))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters.limit))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectListingFromJSON)); + } + + /** + * List all projects accessible to the user that match the selected criteria. + * List all projects accessible to the user that match the selected criteria. + */ + async listProjectsHandler(requestParameters: ListProjectsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.listProjectsHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves details about the latest version of a project. + * Retrieves details about the latest version of a project. + */ + async loadProjectLatestHandlerRaw(requestParameters: LoadProjectLatestHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.project === null || requestParameters.project === undefined) { + throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling loadProjectLatestHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue)); + } + + /** + * Retrieves details about the latest version of a project. + * Retrieves details about the latest version of a project. + */ + async loadProjectLatestHandler(requestParameters: LoadProjectLatestHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.loadProjectLatestHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves details about the given version of a project. + * Retrieves details about the given version of a project. + */ + async loadProjectVersionHandlerRaw(requestParameters: LoadProjectVersionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.project === null || requestParameters.project === undefined) { + throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling loadProjectVersionHandler.'); + } + + if (requestParameters.version === null || requestParameters.version === undefined) { + throw new runtime.RequiredError('version','Required parameter requestParameters.version was null or undefined when calling loadProjectVersionHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project/{project}/{version}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters.version))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue)); + } + + /** + * Retrieves details about the given version of a project. + * Retrieves details about the given version of a project. + */ + async loadProjectVersionHandler(requestParameters: LoadProjectVersionHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.loadProjectVersionHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Lists all available versions of a project. + * Lists all available versions of a project. + */ + async projectVersionsHandlerRaw(requestParameters: ProjectVersionsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.project === null || requestParameters.project === undefined) { + throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling projectVersionsHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project/{project}/versions`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectVersionFromJSON)); + } + + /** + * Lists all available versions of a project. + * Lists all available versions of a project. + */ + async projectVersionsHandler(requestParameters: ProjectVersionsHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.projectVersionsHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Updates a project. This will create a new version. + * Updates a project. + */ + async updateProjectHandlerRaw(requestParameters: UpdateProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.project === null || requestParameters.project === undefined) { + throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateProjectHandler.'); + } + + if (requestParameters.updateProject === null || requestParameters.updateProject === undefined) { + throw new runtime.RequiredError('updateProject','Required parameter requestParameters.updateProject was null or undefined when calling updateProjectHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/project/{project}`.replace(`{${"project"}}`, encodeURIComponent(String(requestParameters.project))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: UpdateProjectToJSON(requestParameters.updateProject), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Updates a project. This will create a new version. + * Updates a project. + */ + async updateProjectHandler(requestParameters: UpdateProjectHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.updateProjectHandlerRaw(requestParameters, initOverrides); + } + +} diff --git a/typescript/src/apis/SessionApi.ts b/typescript/src/apis/SessionApi.ts new file mode 100644 index 00000000..db2b1c14 --- /dev/null +++ b/typescript/src/apis/SessionApi.ts @@ -0,0 +1,217 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + UserCredentials, + UserRegistration, + UserSession, +} from '../models/index'; +import { + UserCredentialsFromJSON, + UserCredentialsToJSON, + UserRegistrationFromJSON, + UserRegistrationToJSON, + UserSessionFromJSON, + UserSessionToJSON, +} from '../models/index'; + +export interface LoginHandlerRequest { + userCredentials: UserCredentials; +} + +export interface RegisterUserHandlerRequest { + userRegistration: UserRegistration; +} + +/** + * + */ +export class SessionApi extends runtime.BaseAPI { + + /** + * Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. + * Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. + */ + async anonymousHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request({ + path: `/anonymous`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserSessionFromJSON(jsonValue)); + } + + /** + * Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. + * Creates session for anonymous user. The session\'s id serves as a Bearer token for requests. + */ + async anonymousHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.anonymousHandlerRaw(initOverrides); + return await response.value(); + } + + /** + * Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. + * Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. + */ + async loginHandlerRaw(requestParameters: LoginHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.userCredentials === null || requestParameters.userCredentials === undefined) { + throw new runtime.RequiredError('userCredentials','Required parameter requestParameters.userCredentials was null or undefined when calling loginHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/login`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserCredentialsToJSON(requestParameters.userCredentials), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserSessionFromJSON(jsonValue)); + } + + /** + * Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. + * Creates a session by providing user credentials. The session\'s id serves as a Bearer token for requests. + */ + async loginHandler(requestParameters: LoginHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.loginHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Ends a session. + * Ends a session. + */ + async logoutHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/logout`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Ends a session. + * Ends a session. + */ + async logoutHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.logoutHandlerRaw(initOverrides); + } + + /** + * Registers a user. + * Registers a user. + */ + async registerUserHandlerRaw(requestParameters: RegisterUserHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.userRegistration === null || requestParameters.userRegistration === undefined) { + throw new runtime.RequiredError('userRegistration','Required parameter requestParameters.userRegistration was null or undefined when calling registerUserHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request({ + path: `/user`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserRegistrationToJSON(requestParameters.userRegistration), + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Registers a user. + * Registers a user. + */ + async registerUserHandler(requestParameters: RegisterUserHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.registerUserHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves details about the current session. + * Retrieves details about the current session. + */ + async sessionHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/session`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UserSessionFromJSON(jsonValue)); + } + + /** + * Retrieves details about the current session. + * Retrieves details about the current session. + */ + async sessionHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.sessionHandlerRaw(initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/SpatialReferencesApi.ts b/typescript/src/apis/SpatialReferencesApi.ts new file mode 100644 index 00000000..f5d65541 --- /dev/null +++ b/typescript/src/apis/SpatialReferencesApi.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + SpatialReferenceSpecification, +} from '../models/index'; +import { + SpatialReferenceSpecificationFromJSON, + SpatialReferenceSpecificationToJSON, +} from '../models/index'; + +export interface GetSpatialReferenceSpecificationHandlerRequest { + srsString: string; +} + +/** + * + */ +export class SpatialReferencesApi extends runtime.BaseAPI { + + /** + */ + async getSpatialReferenceSpecificationHandlerRaw(requestParameters: GetSpatialReferenceSpecificationHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.srsString === null || requestParameters.srsString === undefined) { + throw new runtime.RequiredError('srsString','Required parameter requestParameters.srsString was null or undefined when calling getSpatialReferenceSpecificationHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/spatialReferenceSpecification/{srsString}`.replace(`{${"srsString"}}`, encodeURIComponent(String(requestParameters.srsString))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SpatialReferenceSpecificationFromJSON(jsonValue)); + } + + /** + */ + async getSpatialReferenceSpecificationHandler(requestParameters: GetSpatialReferenceSpecificationHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSpatialReferenceSpecificationHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/TasksApi.ts b/typescript/src/apis/TasksApi.ts new file mode 100644 index 00000000..39f99897 --- /dev/null +++ b/typescript/src/apis/TasksApi.ts @@ -0,0 +1,182 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + TaskFilter, + TaskStatus, + TaskStatusWithId, +} from '../models/index'; +import { + TaskFilterFromJSON, + TaskFilterToJSON, + TaskStatusFromJSON, + TaskStatusToJSON, + TaskStatusWithIdFromJSON, + TaskStatusWithIdToJSON, +} from '../models/index'; + +export interface AbortHandlerRequest { + id: string; + force?: boolean; +} + +export interface ListHandlerRequest { + filter: TaskFilter | null; + offset: number; + limit: number; +} + +export interface StatusHandlerRequest { + id: string; +} + +/** + * + */ +export class TasksApi extends runtime.BaseAPI { + + /** + * Abort a running task. # Parameters * `force` - If true, the task will be aborted without clean-up. You can abort a task that is already in the process of aborting. + * Abort a running task. + */ + async abortHandlerRaw(requestParameters: AbortHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling abortHandler.'); + } + + const queryParameters: any = {}; + + if (requestParameters.force !== undefined) { + queryParameters['force'] = requestParameters.force; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Abort a running task. # Parameters * `force` - If true, the task will be aborted without clean-up. You can abort a task that is already in the process of aborting. + * Abort a running task. + */ + async abortHandler(requestParameters: AbortHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.abortHandlerRaw(requestParameters, initOverrides); + } + + /** + * Retrieve the status of all tasks. + * Retrieve the status of all tasks. + */ + async listHandlerRaw(requestParameters: ListHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.filter === null || requestParameters.filter === undefined) { + throw new runtime.RequiredError('filter','Required parameter requestParameters.filter was null or undefined when calling listHandler.'); + } + + if (requestParameters.offset === null || requestParameters.offset === undefined) { + throw new runtime.RequiredError('offset','Required parameter requestParameters.offset was null or undefined when calling listHandler.'); + } + + if (requestParameters.limit === null || requestParameters.limit === undefined) { + throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling listHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/tasks/list`.replace(`{${"filter"}}`, encodeURIComponent(String(requestParameters.filter))).replace(`{${"offset"}}`, encodeURIComponent(String(requestParameters.offset))).replace(`{${"limit"}}`, encodeURIComponent(String(requestParameters.limit))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TaskStatusWithIdFromJSON)); + } + + /** + * Retrieve the status of all tasks. + * Retrieve the status of all tasks. + */ + async listHandler(requestParameters: ListHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.listHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieve the status of a task. + * Retrieve the status of a task. + */ + async statusHandlerRaw(requestParameters: StatusHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling statusHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/tasks/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TaskStatusFromJSON(jsonValue)); + } + + /** + * Retrieve the status of a task. + * Retrieve the status of a task. + */ + async statusHandler(requestParameters: StatusHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.statusHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/UploadsApi.ts b/typescript/src/apis/UploadsApi.ts new file mode 100644 index 00000000..96d05fc4 --- /dev/null +++ b/typescript/src/apis/UploadsApi.ts @@ -0,0 +1,193 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddCollection200Response, + UploadFilesResponse, +} from '../models/index'; +import { + AddCollection200ResponseFromJSON, + AddCollection200ResponseToJSON, + UploadFilesResponseFromJSON, + UploadFilesResponseToJSON, +} from '../models/index'; + +export interface ListUploadFileLayersHandlerRequest { + uploadId: string; + fileName: string; +} + +export interface ListUploadFilesHandlerRequest { + uploadId: string; +} + +export interface UploadHandlerRequest { + files: Array; +} + +/** + * + */ +export class UploadsApi extends runtime.BaseAPI { + + /** + * List the layers of on uploaded file. + * List the layers of on uploaded file. + */ + async listUploadFileLayersHandlerRaw(requestParameters: ListUploadFileLayersHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.uploadId === null || requestParameters.uploadId === undefined) { + throw new runtime.RequiredError('uploadId','Required parameter requestParameters.uploadId was null or undefined when calling listUploadFileLayersHandler.'); + } + + if (requestParameters.fileName === null || requestParameters.fileName === undefined) { + throw new runtime.RequiredError('fileName','Required parameter requestParameters.fileName was null or undefined when calling listUploadFileLayersHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/uploads/{upload_id}/files/{file_name}/layers`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters.uploadId))).replace(`{${"file_name"}}`, encodeURIComponent(String(requestParameters.fileName))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UploadFilesResponseFromJSON(jsonValue)); + } + + /** + * List the layers of on uploaded file. + * List the layers of on uploaded file. + */ + async listUploadFileLayersHandler(requestParameters: ListUploadFileLayersHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listUploadFileLayersHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * List the files of on upload. + * List the files of on upload. + */ + async listUploadFilesHandlerRaw(requestParameters: ListUploadFilesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.uploadId === null || requestParameters.uploadId === undefined) { + throw new runtime.RequiredError('uploadId','Required parameter requestParameters.uploadId was null or undefined when calling listUploadFilesHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/uploads/{upload_id}/files`.replace(`{${"upload_id"}}`, encodeURIComponent(String(requestParameters.uploadId))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UploadFilesResponseFromJSON(jsonValue)); + } + + /** + * List the files of on upload. + * List the files of on upload. + */ + async listUploadFilesHandler(requestParameters: ListUploadFilesHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listUploadFilesHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Uploads files. + * Uploads files. + */ + async uploadHandlerRaw(requestParameters: UploadHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.files === null || requestParameters.files === undefined) { + throw new runtime.RequiredError('files','Required parameter requestParameters.files was null or undefined when calling uploadHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const consumes: runtime.Consume[] = [ + { contentType: 'multipart/form-data' }, + ]; + // @ts-ignore: canConsumeForm may be unused + const canConsumeForm = runtime.canConsumeForm(consumes); + + let formParams: { append(param: string, value: any): any }; + let useForm = false; + // use FormData to transmit files using content-type "multipart/form-data" + useForm = canConsumeForm; + if (useForm) { + formParams = new FormData(); + } else { + formParams = new URLSearchParams(); + } + + if (requestParameters.files) { + requestParameters.files.forEach((element) => { + formParams.append('files[]', element as any); + }) + } + + const response = await this.request({ + path: `/upload`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: formParams, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Uploads files. + * Uploads files. + */ + async uploadHandler(requestParameters: UploadHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.uploadHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/UserApi.ts b/typescript/src/apis/UserApi.ts new file mode 100644 index 00000000..c1c9060e --- /dev/null +++ b/typescript/src/apis/UserApi.ts @@ -0,0 +1,396 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddRole, + Quota, + RoleDescription, + UpdateQuota, +} from '../models/index'; +import { + AddRoleFromJSON, + AddRoleToJSON, + QuotaFromJSON, + QuotaToJSON, + RoleDescriptionFromJSON, + RoleDescriptionToJSON, + UpdateQuotaFromJSON, + UpdateQuotaToJSON, +} from '../models/index'; + +export interface AddRoleHandlerRequest { + addRole: AddRole; +} + +export interface AssignRoleHandlerRequest { + user: string; + role: string; +} + +export interface GetUserQuotaHandlerRequest { + user: string; +} + +export interface RemoveRoleHandlerRequest { + role: string; +} + +export interface RevokeRoleHandlerRequest { + user: string; + role: string; +} + +export interface UpdateUserQuotaHandlerRequest { + user: string; + updateQuota: UpdateQuota; +} + +/** + * + */ +export class UserApi extends runtime.BaseAPI { + + /** + * Add a new role. Requires admin privilige. + * Add a new role. Requires admin privilige. + */ + async addRoleHandlerRaw(requestParameters: AddRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.addRole === null || requestParameters.addRole === undefined) { + throw new runtime.RequiredError('addRole','Required parameter requestParameters.addRole was null or undefined when calling addRoleHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/roles`, + method: 'PUT', + headers: headerParameters, + query: queryParameters, + body: AddRoleToJSON(requestParameters.addRole), + }, initOverrides); + + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } else { + return new runtime.TextApiResponse(response) as any; + } + } + + /** + * Add a new role. Requires admin privilige. + * Add a new role. Requires admin privilige. + */ + async addRoleHandler(requestParameters: AddRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addRoleHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Assign a role to a user. Requires admin privilige. + * Assign a role to a user. Requires admin privilige. + */ + async assignRoleHandlerRaw(requestParameters: AssignRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling assignRoleHandler.'); + } + + if (requestParameters.role === null || requestParameters.role === undefined) { + throw new runtime.RequiredError('role','Required parameter requestParameters.role was null or undefined when calling assignRoleHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Assign a role to a user. Requires admin privilige. + * Assign a role to a user. Requires admin privilige. + */ + async assignRoleHandler(requestParameters: AssignRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.assignRoleHandlerRaw(requestParameters, initOverrides); + } + + /** + * Query roles for the current user. + * Query roles for the current user. + */ + async getRoleDescriptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/user/roles/descriptions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RoleDescriptionFromJSON)); + } + + /** + * Query roles for the current user. + * Query roles for the current user. + */ + async getRoleDescriptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getRoleDescriptionsRaw(initOverrides); + return await response.value(); + } + + /** + * Retrieves the available and used quota of a specific user. + * Retrieves the available and used quota of a specific user. + */ + async getUserQuotaHandlerRaw(requestParameters: GetUserQuotaHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling getUserQuotaHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => QuotaFromJSON(jsonValue)); + } + + /** + * Retrieves the available and used quota of a specific user. + * Retrieves the available and used quota of a specific user. + */ + async getUserQuotaHandler(requestParameters: GetUserQuotaHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getUserQuotaHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves the available and used quota of the current user. + * Retrieves the available and used quota of the current user. + */ + async quotaHandlerRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/quota`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => QuotaFromJSON(jsonValue)); + } + + /** + * Retrieves the available and used quota of the current user. + * Retrieves the available and used quota of the current user. + */ + async quotaHandler(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.quotaHandlerRaw(initOverrides); + return await response.value(); + } + + /** + * Remove a role. Requires admin privilige. + * Remove a role. Requires admin privilige. + */ + async removeRoleHandlerRaw(requestParameters: RemoveRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.role === null || requestParameters.role === undefined) { + throw new runtime.RequiredError('role','Required parameter requestParameters.role was null or undefined when calling removeRoleHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/roles/{role}`.replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove a role. Requires admin privilige. + * Remove a role. Requires admin privilige. + */ + async removeRoleHandler(requestParameters: RemoveRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removeRoleHandlerRaw(requestParameters, initOverrides); + } + + /** + * Revoke a role from a user. Requires admin privilige. + * Revoke a role from a user. Requires admin privilige. + */ + async revokeRoleHandlerRaw(requestParameters: RevokeRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling revokeRoleHandler.'); + } + + if (requestParameters.role === null || requestParameters.role === undefined) { + throw new runtime.RequiredError('role','Required parameter requestParameters.role was null or undefined when calling revokeRoleHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/{user}/roles/{role}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))).replace(`{${"role"}}`, encodeURIComponent(String(requestParameters.role))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revoke a role from a user. Requires admin privilige. + * Revoke a role from a user. Requires admin privilige. + */ + async revokeRoleHandler(requestParameters: RevokeRoleHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.revokeRoleHandlerRaw(requestParameters, initOverrides); + } + + /** + * Update the available quota of a specific user. + * Update the available quota of a specific user. + */ + async updateUserQuotaHandlerRaw(requestParameters: UpdateUserQuotaHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.user === null || requestParameters.user === undefined) { + throw new runtime.RequiredError('user','Required parameter requestParameters.user was null or undefined when calling updateUserQuotaHandler.'); + } + + if (requestParameters.updateQuota === null || requestParameters.updateQuota === undefined) { + throw new runtime.RequiredError('updateQuota','Required parameter requestParameters.updateQuota was null or undefined when calling updateUserQuotaHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/quotas/{user}`.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters.user))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UpdateQuotaToJSON(requestParameters.updateQuota), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the available quota of a specific user. + * Update the available quota of a specific user. + */ + async updateUserQuotaHandler(requestParameters: UpdateUserQuotaHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.updateUserQuotaHandlerRaw(requestParameters, initOverrides); + } + +} diff --git a/typescript/src/apis/WorkflowsApi.ts b/typescript/src/apis/WorkflowsApi.ts new file mode 100644 index 00000000..f1bca7cc --- /dev/null +++ b/typescript/src/apis/WorkflowsApi.ts @@ -0,0 +1,408 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + AddCollection200Response, + ProvenanceEntry, + RasterDatasetFromWorkflow, + RasterStreamWebsocketResultType, + SpatialPartition2D, + SpatialResolution, + TaskResponse, + TypedResultDescriptor, + Workflow, +} from '../models/index'; +import { + AddCollection200ResponseFromJSON, + AddCollection200ResponseToJSON, + ProvenanceEntryFromJSON, + ProvenanceEntryToJSON, + RasterDatasetFromWorkflowFromJSON, + RasterDatasetFromWorkflowToJSON, + RasterStreamWebsocketResultTypeFromJSON, + RasterStreamWebsocketResultTypeToJSON, + SpatialPartition2DFromJSON, + SpatialPartition2DToJSON, + SpatialResolutionFromJSON, + SpatialResolutionToJSON, + TaskResponseFromJSON, + TaskResponseToJSON, + TypedResultDescriptorFromJSON, + TypedResultDescriptorToJSON, + WorkflowFromJSON, + WorkflowToJSON, +} from '../models/index'; + +export interface DatasetFromWorkflowHandlerRequest { + id: string; + rasterDatasetFromWorkflow: RasterDatasetFromWorkflow; +} + +export interface GetWorkflowAllMetadataZipHandlerRequest { + id: string; +} + +export interface GetWorkflowMetadataHandlerRequest { + id: string; +} + +export interface GetWorkflowProvenanceHandlerRequest { + id: string; +} + +export interface LoadWorkflowHandlerRequest { + id: string; +} + +export interface RasterStreamWebsocketRequest { + id: string; + spatialBounds: SpatialPartition2D; + timeInterval: string; + spatialResolution: SpatialResolution; + resultType: RasterStreamWebsocketResultType; +} + +export interface RegisterWorkflowHandlerRequest { + workflow: Workflow; +} + +/** + * + */ +export class WorkflowsApi extends runtime.BaseAPI { + + /** + * Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task + * Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. + */ + async datasetFromWorkflowHandlerRaw(requestParameters: DatasetFromWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling datasetFromWorkflowHandler.'); + } + + if (requestParameters.rasterDatasetFromWorkflow === null || requestParameters.rasterDatasetFromWorkflow === undefined) { + throw new runtime.RequiredError('rasterDatasetFromWorkflow','Required parameter requestParameters.rasterDatasetFromWorkflow was null or undefined when calling datasetFromWorkflowHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/datasetFromWorkflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RasterDatasetFromWorkflowToJSON(requestParameters.rasterDatasetFromWorkflow), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TaskResponseFromJSON(jsonValue)); + } + + /** + * Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. Returns the id of the created task + * Create a task for creating a new dataset from the result of the workflow given by its `id` and the dataset parameters in the request body. + */ + async datasetFromWorkflowHandler(requestParameters: DatasetFromWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.datasetFromWorkflowHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Gets a ZIP archive of the worklow, its provenance and the output metadata. + * Gets a ZIP archive of the worklow, its provenance and the output metadata. + */ + async getWorkflowAllMetadataZipHandlerRaw(requestParameters: GetWorkflowAllMetadataZipHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getWorkflowAllMetadataZipHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow/{id}/allMetadata/zip`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.BlobApiResponse(response); + } + + /** + * Gets a ZIP archive of the worklow, its provenance and the output metadata. + * Gets a ZIP archive of the worklow, its provenance and the output metadata. + */ + async getWorkflowAllMetadataZipHandler(requestParameters: GetWorkflowAllMetadataZipHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getWorkflowAllMetadataZipHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Gets the metadata of a workflow + * Gets the metadata of a workflow + */ + async getWorkflowMetadataHandlerRaw(requestParameters: GetWorkflowMetadataHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getWorkflowMetadataHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow/{id}/metadata`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => TypedResultDescriptorFromJSON(jsonValue)); + } + + /** + * Gets the metadata of a workflow + * Gets the metadata of a workflow + */ + async getWorkflowMetadataHandler(requestParameters: GetWorkflowMetadataHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getWorkflowMetadataHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Gets the provenance of all datasets used in a workflow. + * Gets the provenance of all datasets used in a workflow. + */ + async getWorkflowProvenanceHandlerRaw(requestParameters: GetWorkflowProvenanceHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getWorkflowProvenanceHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow/{id}/provenance`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProvenanceEntryFromJSON)); + } + + /** + * Gets the provenance of all datasets used in a workflow. + * Gets the provenance of all datasets used in a workflow. + */ + async getWorkflowProvenanceHandler(requestParameters: GetWorkflowProvenanceHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getWorkflowProvenanceHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieves an existing Workflow. + * Retrieves an existing Workflow. + */ + async loadWorkflowHandlerRaw(requestParameters: LoadWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling loadWorkflowHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => WorkflowFromJSON(jsonValue)); + } + + /** + * Retrieves an existing Workflow. + * Retrieves an existing Workflow. + */ + async loadWorkflowHandler(requestParameters: LoadWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.loadWorkflowHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Query a workflow raster result as a stream of tiles via a websocket connection. + * Query a workflow raster result as a stream of tiles via a websocket connection. + */ + async rasterStreamWebsocketRaw(requestParameters: RasterStreamWebsocketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.id === null || requestParameters.id === undefined) { + throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling rasterStreamWebsocket.'); + } + + if (requestParameters.spatialBounds === null || requestParameters.spatialBounds === undefined) { + throw new runtime.RequiredError('spatialBounds','Required parameter requestParameters.spatialBounds was null or undefined when calling rasterStreamWebsocket.'); + } + + if (requestParameters.timeInterval === null || requestParameters.timeInterval === undefined) { + throw new runtime.RequiredError('timeInterval','Required parameter requestParameters.timeInterval was null or undefined when calling rasterStreamWebsocket.'); + } + + if (requestParameters.spatialResolution === null || requestParameters.spatialResolution === undefined) { + throw new runtime.RequiredError('spatialResolution','Required parameter requestParameters.spatialResolution was null or undefined when calling rasterStreamWebsocket.'); + } + + if (requestParameters.resultType === null || requestParameters.resultType === undefined) { + throw new runtime.RequiredError('resultType','Required parameter requestParameters.resultType was null or undefined when calling rasterStreamWebsocket.'); + } + + const queryParameters: any = {}; + + if (requestParameters.spatialBounds !== undefined) { + queryParameters['spatialBounds'] = requestParameters.spatialBounds; + } + + if (requestParameters.timeInterval !== undefined) { + queryParameters['timeInterval'] = requestParameters.timeInterval; + } + + if (requestParameters.spatialResolution !== undefined) { + queryParameters['spatialResolution'] = requestParameters.spatialResolution; + } + + if (requestParameters.resultType !== undefined) { + queryParameters['resultType'] = requestParameters.resultType; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow/{id}/rasterStream`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Query a workflow raster result as a stream of tiles via a websocket connection. + * Query a workflow raster result as a stream of tiles via a websocket connection. + */ + async rasterStreamWebsocket(requestParameters: RasterStreamWebsocketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.rasterStreamWebsocketRaw(requestParameters, initOverrides); + } + + /** + * Registers a new Workflow. + * Registers a new Workflow. + */ + async registerWorkflowHandlerRaw(requestParameters: RegisterWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters.workflow === null || requestParameters.workflow === undefined) { + throw new runtime.RequiredError('workflow','Required parameter requestParameters.workflow was null or undefined when calling registerWorkflowHandler.'); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("session_token", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/workflow`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: WorkflowToJSON(requestParameters.workflow), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddCollection200ResponseFromJSON(jsonValue)); + } + + /** + * Registers a new Workflow. + * Registers a new Workflow. + */ + async registerWorkflowHandler(requestParameters: RegisterWorkflowHandlerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.registerWorkflowHandlerRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/typescript/src/apis/index.ts b/typescript/src/apis/index.ts new file mode 100644 index 00000000..5d34e466 --- /dev/null +++ b/typescript/src/apis/index.ts @@ -0,0 +1,17 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './DatasetsApi'; +export * from './GeneralApi'; +export * from './LayersApi'; +export * from './OGCWCSApi'; +export * from './OGCWFSApi'; +export * from './OGCWMSApi'; +export * from './PermissionsApi'; +export * from './PlotsApi'; +export * from './ProjectsApi'; +export * from './SessionApi'; +export * from './SpatialReferencesApi'; +export * from './TasksApi'; +export * from './UploadsApi'; +export * from './UserApi'; +export * from './WorkflowsApi'; diff --git a/typescript/src/index.ts b/typescript/src/index.ts new file mode 100644 index 00000000..bebe8bbb --- /dev/null +++ b/typescript/src/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/typescript/src/models/AbortedTaskStatus.ts b/typescript/src/models/AbortedTaskStatus.ts new file mode 100644 index 00000000..3798dd65 --- /dev/null +++ b/typescript/src/models/AbortedTaskStatus.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AbortedTaskStatus + */ +export interface AbortedTaskStatus { + /** + * + * @type {any} + * @memberof AbortedTaskStatus + */ + cleanUp: any | null; + /** + * + * @type {string} + * @memberof AbortedTaskStatus + */ + status: AbortedTaskStatusStatusEnum; +} + + +/** + * @export + */ +export const AbortedTaskStatusStatusEnum = { + Aborted: 'aborted' +} as const; +export type AbortedTaskStatusStatusEnum = typeof AbortedTaskStatusStatusEnum[keyof typeof AbortedTaskStatusStatusEnum]; + + +/** + * Check if a given object implements the AbortedTaskStatus interface. + */ +export function instanceOfAbortedTaskStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "cleanUp" in value; + isInstance = isInstance && "status" in value; + + return isInstance; +} + +export function AbortedTaskStatusFromJSON(json: any): AbortedTaskStatus { + return AbortedTaskStatusFromJSONTyped(json, false); +} + +export function AbortedTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AbortedTaskStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cleanUp': json['cleanUp'], + 'status': json['status'], + }; +} + +export function AbortedTaskStatusToJSON(value?: AbortedTaskStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cleanUp': value.cleanUp, + 'status': value.status, + }; +} + diff --git a/typescript/src/models/AddCollection200Response.ts b/typescript/src/models/AddCollection200Response.ts new file mode 100644 index 00000000..b2e084ea --- /dev/null +++ b/typescript/src/models/AddCollection200Response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AddCollection200Response + */ +export interface AddCollection200Response { + /** + * + * @type {string} + * @memberof AddCollection200Response + */ + id: string; +} + +/** + * Check if a given object implements the AddCollection200Response interface. + */ +export function instanceOfAddCollection200Response(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + + return isInstance; +} + +export function AddCollection200ResponseFromJSON(json: any): AddCollection200Response { + return AddCollection200ResponseFromJSONTyped(json, false); +} + +export function AddCollection200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCollection200Response { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + }; +} + +export function AddCollection200ResponseToJSON(value?: AddCollection200Response | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + }; +} + diff --git a/typescript/src/models/AddDataset.ts b/typescript/src/models/AddDataset.ts new file mode 100644 index 00000000..e62ba78d --- /dev/null +++ b/typescript/src/models/AddDataset.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Provenance } from './Provenance'; +import { + ProvenanceFromJSON, + ProvenanceFromJSONTyped, + ProvenanceToJSON, +} from './Provenance'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; + +/** + * + * @export + * @interface AddDataset + */ +export interface AddDataset { + /** + * + * @type {string} + * @memberof AddDataset + */ + description: string; + /** + * + * @type {string} + * @memberof AddDataset + */ + displayName: string; + /** + * + * @type {string} + * @memberof AddDataset + */ + name?: string | null; + /** + * + * @type {Array} + * @memberof AddDataset + */ + provenance?: Array | null; + /** + * + * @type {string} + * @memberof AddDataset + */ + sourceOperator: string; + /** + * + * @type {Symbology} + * @memberof AddDataset + */ + symbology?: Symbology | null; +} + +/** + * Check if a given object implements the AddDataset interface. + */ +export function instanceOfAddDataset(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "displayName" in value; + isInstance = isInstance && "sourceOperator" in value; + + return isInstance; +} + +export function AddDatasetFromJSON(json: any): AddDataset { + return AddDatasetFromJSONTyped(json, false); +} + +export function AddDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddDataset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'displayName': json['displayName'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'provenance': !exists(json, 'provenance') ? undefined : (json['provenance'] === null ? null : (json['provenance'] as Array).map(ProvenanceFromJSON)), + 'sourceOperator': json['sourceOperator'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + }; +} + +export function AddDatasetToJSON(value?: AddDataset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'displayName': value.displayName, + 'name': value.name, + 'provenance': value.provenance === undefined ? undefined : (value.provenance === null ? null : (value.provenance as Array).map(ProvenanceToJSON)), + 'sourceOperator': value.sourceOperator, + 'symbology': SymbologyToJSON(value.symbology), + }; +} + diff --git a/typescript/src/models/AddLayer.ts b/typescript/src/models/AddLayer.ts new file mode 100644 index 00000000..1b3c9982 --- /dev/null +++ b/typescript/src/models/AddLayer.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; +import type { Workflow } from './Workflow'; +import { + WorkflowFromJSON, + WorkflowFromJSONTyped, + WorkflowToJSON, +} from './Workflow'; + +/** + * + * @export + * @interface AddLayer + */ +export interface AddLayer { + /** + * + * @type {string} + * @memberof AddLayer + */ + description: string; + /** + * metadata used for loading the data + * @type {{ [key: string]: string; }} + * @memberof AddLayer + */ + metadata?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof AddLayer + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof AddLayer + */ + properties?: Array>; + /** + * + * @type {Symbology} + * @memberof AddLayer + */ + symbology?: Symbology | null; + /** + * + * @type {Workflow} + * @memberof AddLayer + */ + workflow: Workflow; +} + +/** + * Check if a given object implements the AddLayer interface. + */ +export function instanceOfAddLayer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + + return isInstance; +} + +export function AddLayerFromJSON(json: any): AddLayer { + return AddLayerFromJSONTyped(json, false); +} + +export function AddLayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddLayer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + 'workflow': WorkflowFromJSON(json['workflow']), + }; +} + +export function AddLayerToJSON(value?: AddLayer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'metadata': value.metadata, + 'name': value.name, + 'properties': value.properties, + 'symbology': SymbologyToJSON(value.symbology), + 'workflow': WorkflowToJSON(value.workflow), + }; +} + diff --git a/typescript/src/models/AddLayerCollection.ts b/typescript/src/models/AddLayerCollection.ts new file mode 100644 index 00000000..aa5c283e --- /dev/null +++ b/typescript/src/models/AddLayerCollection.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AddLayerCollection + */ +export interface AddLayerCollection { + /** + * + * @type {string} + * @memberof AddLayerCollection + */ + description: string; + /** + * + * @type {string} + * @memberof AddLayerCollection + */ + name: string; + /** + * + * @type {Array>} + * @memberof AddLayerCollection + */ + properties?: Array>; +} + +/** + * Check if a given object implements the AddLayerCollection interface. + */ +export function instanceOfAddLayerCollection(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function AddLayerCollectionFromJSON(json: any): AddLayerCollection { + return AddLayerCollectionFromJSONTyped(json, false); +} + +export function AddLayerCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddLayerCollection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + }; +} + +export function AddLayerCollectionToJSON(value?: AddLayerCollection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'name': value.name, + 'properties': value.properties, + }; +} + diff --git a/typescript/src/models/AddRole.ts b/typescript/src/models/AddRole.ts new file mode 100644 index 00000000..92f79eb4 --- /dev/null +++ b/typescript/src/models/AddRole.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AddRole + */ +export interface AddRole { + /** + * + * @type {string} + * @memberof AddRole + */ + name: string; +} + +/** + * Check if a given object implements the AddRole interface. + */ +export function instanceOfAddRole(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function AddRoleFromJSON(json: any): AddRole { + return AddRoleFromJSONTyped(json, false); +} + +export function AddRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddRole { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + }; +} + +export function AddRoleToJSON(value?: AddRole | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + }; +} + diff --git a/typescript/src/models/AutoCreateDataset.ts b/typescript/src/models/AutoCreateDataset.ts new file mode 100644 index 00000000..119a8469 --- /dev/null +++ b/typescript/src/models/AutoCreateDataset.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AutoCreateDataset + */ +export interface AutoCreateDataset { + /** + * + * @type {string} + * @memberof AutoCreateDataset + */ + datasetDescription: string; + /** + * + * @type {string} + * @memberof AutoCreateDataset + */ + datasetName: string; + /** + * + * @type {string} + * @memberof AutoCreateDataset + */ + layerName?: string | null; + /** + * + * @type {string} + * @memberof AutoCreateDataset + */ + mainFile: string; + /** + * + * @type {string} + * @memberof AutoCreateDataset + */ + upload: string; +} + +/** + * Check if a given object implements the AutoCreateDataset interface. + */ +export function instanceOfAutoCreateDataset(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "datasetDescription" in value; + isInstance = isInstance && "datasetName" in value; + isInstance = isInstance && "mainFile" in value; + isInstance = isInstance && "upload" in value; + + return isInstance; +} + +export function AutoCreateDatasetFromJSON(json: any): AutoCreateDataset { + return AutoCreateDatasetFromJSONTyped(json, false); +} + +export function AutoCreateDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoCreateDataset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'datasetDescription': json['datasetDescription'], + 'datasetName': json['datasetName'], + 'layerName': !exists(json, 'layerName') ? undefined : json['layerName'], + 'mainFile': json['mainFile'], + 'upload': json['upload'], + }; +} + +export function AutoCreateDatasetToJSON(value?: AutoCreateDataset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'datasetDescription': value.datasetDescription, + 'datasetName': value.datasetName, + 'layerName': value.layerName, + 'mainFile': value.mainFile, + 'upload': value.upload, + }; +} + diff --git a/typescript/src/models/AutoOgrSourceTimeFormat.ts b/typescript/src/models/AutoOgrSourceTimeFormat.ts new file mode 100644 index 00000000..87df8074 --- /dev/null +++ b/typescript/src/models/AutoOgrSourceTimeFormat.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface AutoOgrSourceTimeFormat + */ +export interface AutoOgrSourceTimeFormat { + /** + * + * @type {string} + * @memberof AutoOgrSourceTimeFormat + */ + format: AutoOgrSourceTimeFormatFormatEnum; +} + + +/** + * @export + */ +export const AutoOgrSourceTimeFormatFormatEnum = { + Auto: 'auto' +} as const; +export type AutoOgrSourceTimeFormatFormatEnum = typeof AutoOgrSourceTimeFormatFormatEnum[keyof typeof AutoOgrSourceTimeFormatFormatEnum]; + + +/** + * Check if a given object implements the AutoOgrSourceTimeFormat interface. + */ +export function instanceOfAutoOgrSourceTimeFormat(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "format" in value; + + return isInstance; +} + +export function AutoOgrSourceTimeFormatFromJSON(json: any): AutoOgrSourceTimeFormat { + return AutoOgrSourceTimeFormatFromJSONTyped(json, false); +} + +export function AutoOgrSourceTimeFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoOgrSourceTimeFormat { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'format': json['format'], + }; +} + +export function AutoOgrSourceTimeFormatToJSON(value?: AutoOgrSourceTimeFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'format': value.format, + }; +} + diff --git a/typescript/src/models/AxisOrder.ts b/typescript/src/models/AxisOrder.ts new file mode 100644 index 00000000..28b6682f --- /dev/null +++ b/typescript/src/models/AxisOrder.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const AxisOrder = { + NorthEast: 'northEast', + EastNorth: 'eastNorth' +} as const; +export type AxisOrder = typeof AxisOrder[keyof typeof AxisOrder]; + + +export function AxisOrderFromJSON(json: any): AxisOrder { + return AxisOrderFromJSONTyped(json, false); +} + +export function AxisOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): AxisOrder { + return json as AxisOrder; +} + +export function AxisOrderToJSON(value?: AxisOrder | null): any { + return value as any; +} + diff --git a/typescript/src/models/BoundingBox2D.ts b/typescript/src/models/BoundingBox2D.ts new file mode 100644 index 00000000..b78d3fac --- /dev/null +++ b/typescript/src/models/BoundingBox2D.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * A bounding box that includes all border points. + * Note: may degenerate to a point! + * @export + * @interface BoundingBox2D + */ +export interface BoundingBox2D { + /** + * + * @type {Coordinate2D} + * @memberof BoundingBox2D + */ + lowerLeftCoordinate: Coordinate2D; + /** + * + * @type {Coordinate2D} + * @memberof BoundingBox2D + */ + upperRightCoordinate: Coordinate2D; +} + +/** + * Check if a given object implements the BoundingBox2D interface. + */ +export function instanceOfBoundingBox2D(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "lowerLeftCoordinate" in value; + isInstance = isInstance && "upperRightCoordinate" in value; + + return isInstance; +} + +export function BoundingBox2DFromJSON(json: any): BoundingBox2D { + return BoundingBox2DFromJSONTyped(json, false); +} + +export function BoundingBox2DFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoundingBox2D { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lowerLeftCoordinate': Coordinate2DFromJSON(json['lowerLeftCoordinate']), + 'upperRightCoordinate': Coordinate2DFromJSON(json['upperRightCoordinate']), + }; +} + +export function BoundingBox2DToJSON(value?: BoundingBox2D | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lowerLeftCoordinate': Coordinate2DToJSON(value.lowerLeftCoordinate), + 'upperRightCoordinate': Coordinate2DToJSON(value.upperRightCoordinate), + }; +} + diff --git a/typescript/src/models/Breakpoint.ts b/typescript/src/models/Breakpoint.ts new file mode 100644 index 00000000..26475141 --- /dev/null +++ b/typescript/src/models/Breakpoint.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Breakpoint + */ +export interface Breakpoint { + /** + * + * @type {Array} + * @memberof Breakpoint + */ + color?: Array; + /** + * + * @type {number} + * @memberof Breakpoint + */ + value?: number; +} + +/** + * Check if a given object implements the Breakpoint interface. + */ +export function instanceOfBreakpoint(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function BreakpointFromJSON(json: any): Breakpoint { + return BreakpointFromJSONTyped(json, false); +} + +export function BreakpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Breakpoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'color': !exists(json, 'color') ? undefined : json['color'], + 'value': !exists(json, 'value') ? undefined : json['value'], + }; +} + +export function BreakpointToJSON(value?: Breakpoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'color': value.color, + 'value': value.value, + }; +} + diff --git a/typescript/src/models/ClassificationMeasurement.ts b/typescript/src/models/ClassificationMeasurement.ts new file mode 100644 index 00000000..1972dc20 --- /dev/null +++ b/typescript/src/models/ClassificationMeasurement.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ClassificationMeasurement + */ +export interface ClassificationMeasurement { + /** + * + * @type {{ [key: string]: string; }} + * @memberof ClassificationMeasurement + */ + classes: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof ClassificationMeasurement + */ + measurement: string; +} + +/** + * Check if a given object implements the ClassificationMeasurement interface. + */ +export function instanceOfClassificationMeasurement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "classes" in value; + isInstance = isInstance && "measurement" in value; + + return isInstance; +} + +export function ClassificationMeasurementFromJSON(json: any): ClassificationMeasurement { + return ClassificationMeasurementFromJSONTyped(json, false); +} + +export function ClassificationMeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassificationMeasurement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'classes': json['classes'], + 'measurement': json['measurement'], + }; +} + +export function ClassificationMeasurementToJSON(value?: ClassificationMeasurement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'classes': value.classes, + 'measurement': value.measurement, + }; +} + diff --git a/typescript/src/models/ClassificationMeasurementWithType.ts b/typescript/src/models/ClassificationMeasurementWithType.ts new file mode 100644 index 00000000..25ba8f78 --- /dev/null +++ b/typescript/src/models/ClassificationMeasurementWithType.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ClassificationMeasurementWithType + */ +export interface ClassificationMeasurementWithType { + /** + * + * @type {{ [key: string]: string; }} + * @memberof ClassificationMeasurementWithType + */ + classes: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof ClassificationMeasurementWithType + */ + measurement: string; + /** + * + * @type {string} + * @memberof ClassificationMeasurementWithType + */ + type: ClassificationMeasurementWithTypeTypeEnum; +} + + +/** + * @export + */ +export const ClassificationMeasurementWithTypeTypeEnum = { + Classification: 'classification' +} as const; +export type ClassificationMeasurementWithTypeTypeEnum = typeof ClassificationMeasurementWithTypeTypeEnum[keyof typeof ClassificationMeasurementWithTypeTypeEnum]; + + +/** + * Check if a given object implements the ClassificationMeasurementWithType interface. + */ +export function instanceOfClassificationMeasurementWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "classes" in value; + isInstance = isInstance && "measurement" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ClassificationMeasurementWithTypeFromJSON(json: any): ClassificationMeasurementWithType { + return ClassificationMeasurementWithTypeFromJSONTyped(json, false); +} + +export function ClassificationMeasurementWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassificationMeasurementWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'classes': json['classes'], + 'measurement': json['measurement'], + 'type': json['type'], + }; +} + +export function ClassificationMeasurementWithTypeToJSON(value?: ClassificationMeasurementWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'classes': value.classes, + 'measurement': value.measurement, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/CollectionItem.ts b/typescript/src/models/CollectionItem.ts new file mode 100644 index 00000000..ba57b16c --- /dev/null +++ b/typescript/src/models/CollectionItem.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + LayerCollectionListingWithType, + instanceOfLayerCollectionListingWithType, + LayerCollectionListingWithTypeFromJSON, + LayerCollectionListingWithTypeFromJSONTyped, + LayerCollectionListingWithTypeToJSON, +} from './LayerCollectionListingWithType'; +import { + LayerListingWithType, + instanceOfLayerListingWithType, + LayerListingWithTypeFromJSON, + LayerListingWithTypeFromJSONTyped, + LayerListingWithTypeToJSON, +} from './LayerListingWithType'; + +/** + * @type CollectionItem + * + * @export + */ +export type CollectionItem = { type: 'collection' } & LayerCollectionListingWithType | { type: 'layer' } & LayerListingWithType; + +export function CollectionItemFromJSON(json: any): CollectionItem { + return CollectionItemFromJSONTyped(json, false); +} + +export function CollectionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionItem { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'collection': + return {...LayerCollectionListingWithTypeFromJSONTyped(json, true), type: 'collection'}; + case 'layer': + return {...LayerListingWithTypeFromJSONTyped(json, true), type: 'layer'}; + default: + throw new Error(`No variant of CollectionItem exists with 'type=${json['type']}'`); + } +} + +export function CollectionItemToJSON(value?: CollectionItem | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'collection': + return LayerCollectionListingWithTypeToJSON(value); + case 'layer': + return LayerListingWithTypeToJSON(value); + default: + throw new Error(`No variant of CollectionItem exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/CollectionType.ts b/typescript/src/models/CollectionType.ts new file mode 100644 index 00000000..8f73afe5 --- /dev/null +++ b/typescript/src/models/CollectionType.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const CollectionType = { + FeatureCollection: 'FeatureCollection' +} as const; +export type CollectionType = typeof CollectionType[keyof typeof CollectionType]; + + +export function CollectionTypeFromJSON(json: any): CollectionType { + return CollectionTypeFromJSONTyped(json, false); +} + +export function CollectionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionType { + return json as CollectionType; +} + +export function CollectionTypeToJSON(value?: CollectionType | null): any { + return value as any; +} + diff --git a/typescript/src/models/ColorParam.ts b/typescript/src/models/ColorParam.ts new file mode 100644 index 00000000..8e7abb63 --- /dev/null +++ b/typescript/src/models/ColorParam.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + DerivedColorWithType, + instanceOfDerivedColorWithType, + DerivedColorWithTypeFromJSON, + DerivedColorWithTypeFromJSONTyped, + DerivedColorWithTypeToJSON, +} from './DerivedColorWithType'; +import { + StaticColorParam, + instanceOfStaticColorParam, + StaticColorParamFromJSON, + StaticColorParamFromJSONTyped, + StaticColorParamToJSON, +} from './StaticColorParam'; + +/** + * @type ColorParam + * + * @export + */ +export type ColorParam = { type: 'derived' } & DerivedColorWithType | { type: 'static' } & StaticColorParam; + +export function ColorParamFromJSON(json: any): ColorParam { + return ColorParamFromJSONTyped(json, false); +} + +export function ColorParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): ColorParam { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'derived': + return {...DerivedColorWithTypeFromJSONTyped(json, true), type: 'derived'}; + case 'static': + return {...StaticColorParamFromJSONTyped(json, true), type: 'static'}; + default: + throw new Error(`No variant of ColorParam exists with 'type=${json['type']}'`); + } +} + +export function ColorParamToJSON(value?: ColorParam | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'derived': + return DerivedColorWithTypeToJSON(value); + case 'static': + return StaticColorParamToJSON(value); + default: + throw new Error(`No variant of ColorParam exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/Colorizer.ts b/typescript/src/models/Colorizer.ts new file mode 100644 index 00000000..62c6cbc0 --- /dev/null +++ b/typescript/src/models/Colorizer.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + LinearGradientWithType, + instanceOfLinearGradientWithType, + LinearGradientWithTypeFromJSON, + LinearGradientWithTypeFromJSONTyped, + LinearGradientWithTypeToJSON, +} from './LinearGradientWithType'; +import { + LogarithmicGradientWithType, + instanceOfLogarithmicGradientWithType, + LogarithmicGradientWithTypeFromJSON, + LogarithmicGradientWithTypeFromJSONTyped, + LogarithmicGradientWithTypeToJSON, +} from './LogarithmicGradientWithType'; +import { + PaletteColorizer, + instanceOfPaletteColorizer, + PaletteColorizerFromJSON, + PaletteColorizerFromJSONTyped, + PaletteColorizerToJSON, +} from './PaletteColorizer'; +import { + RgbaColorizer, + instanceOfRgbaColorizer, + RgbaColorizerFromJSON, + RgbaColorizerFromJSONTyped, + RgbaColorizerToJSON, +} from './RgbaColorizer'; + +/** + * @type Colorizer + * + * @export + */ +export type Colorizer = { type: 'linearGradient' } & LinearGradientWithType | { type: 'logarithmicGradient' } & LogarithmicGradientWithType | { type: 'palette' } & PaletteColorizer | { type: 'rgba' } & RgbaColorizer; + +export function ColorizerFromJSON(json: any): Colorizer { + return ColorizerFromJSONTyped(json, false); +} + +export function ColorizerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Colorizer { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'linearGradient': + return {...LinearGradientWithTypeFromJSONTyped(json, true), type: 'linearGradient'}; + case 'logarithmicGradient': + return {...LogarithmicGradientWithTypeFromJSONTyped(json, true), type: 'logarithmicGradient'}; + case 'palette': + return {...PaletteColorizerFromJSONTyped(json, true), type: 'palette'}; + case 'rgba': + return {...RgbaColorizerFromJSONTyped(json, true), type: 'rgba'}; + default: + throw new Error(`No variant of Colorizer exists with 'type=${json['type']}'`); + } +} + +export function ColorizerToJSON(value?: Colorizer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'linearGradient': + return LinearGradientWithTypeToJSON(value); + case 'logarithmicGradient': + return LogarithmicGradientWithTypeToJSON(value); + case 'palette': + return PaletteColorizerToJSON(value); + case 'rgba': + return RgbaColorizerToJSON(value); + default: + throw new Error(`No variant of Colorizer exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/CompletedTaskStatus.ts b/typescript/src/models/CompletedTaskStatus.ts new file mode 100644 index 00000000..98377eee --- /dev/null +++ b/typescript/src/models/CompletedTaskStatus.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CompletedTaskStatus + */ +export interface CompletedTaskStatus { + /** + * + * @type {string} + * @memberof CompletedTaskStatus + */ + description?: string; + /** + * + * @type {any} + * @memberof CompletedTaskStatus + */ + info?: any | null; + /** + * + * @type {string} + * @memberof CompletedTaskStatus + */ + status: CompletedTaskStatusStatusEnum; + /** + * + * @type {string} + * @memberof CompletedTaskStatus + */ + taskType: string; + /** + * + * @type {string} + * @memberof CompletedTaskStatus + */ + timeStarted: string; + /** + * + * @type {string} + * @memberof CompletedTaskStatus + */ + timeTotal: string; +} + + +/** + * @export + */ +export const CompletedTaskStatusStatusEnum = { + Completed: 'completed' +} as const; +export type CompletedTaskStatusStatusEnum = typeof CompletedTaskStatusStatusEnum[keyof typeof CompletedTaskStatusStatusEnum]; + + +/** + * Check if a given object implements the CompletedTaskStatus interface. + */ +export function instanceOfCompletedTaskStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "taskType" in value; + isInstance = isInstance && "timeStarted" in value; + isInstance = isInstance && "timeTotal" in value; + + return isInstance; +} + +export function CompletedTaskStatusFromJSON(json: any): CompletedTaskStatus { + return CompletedTaskStatusFromJSONTyped(json, false); +} + +export function CompletedTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompletedTaskStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'description') ? undefined : json['description'], + 'info': !exists(json, 'info') ? undefined : json['info'], + 'status': json['status'], + 'taskType': json['taskType'], + 'timeStarted': json['timeStarted'], + 'timeTotal': json['timeTotal'], + }; +} + +export function CompletedTaskStatusToJSON(value?: CompletedTaskStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'info': value.info, + 'status': value.status, + 'taskType': value.taskType, + 'timeStarted': value.timeStarted, + 'timeTotal': value.timeTotal, + }; +} + diff --git a/typescript/src/models/ContinuousMeasurement.ts b/typescript/src/models/ContinuousMeasurement.ts new file mode 100644 index 00000000..97376ece --- /dev/null +++ b/typescript/src/models/ContinuousMeasurement.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ContinuousMeasurement + */ +export interface ContinuousMeasurement { + /** + * + * @type {string} + * @memberof ContinuousMeasurement + */ + measurement: string; + /** + * + * @type {string} + * @memberof ContinuousMeasurement + */ + unit?: string | null; +} + +/** + * Check if a given object implements the ContinuousMeasurement interface. + */ +export function instanceOfContinuousMeasurement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "measurement" in value; + + return isInstance; +} + +export function ContinuousMeasurementFromJSON(json: any): ContinuousMeasurement { + return ContinuousMeasurementFromJSONTyped(json, false); +} + +export function ContinuousMeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContinuousMeasurement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'measurement': json['measurement'], + 'unit': !exists(json, 'unit') ? undefined : json['unit'], + }; +} + +export function ContinuousMeasurementToJSON(value?: ContinuousMeasurement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'measurement': value.measurement, + 'unit': value.unit, + }; +} + diff --git a/typescript/src/models/ContinuousMeasurementWithType.ts b/typescript/src/models/ContinuousMeasurementWithType.ts new file mode 100644 index 00000000..e48a5a73 --- /dev/null +++ b/typescript/src/models/ContinuousMeasurementWithType.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ContinuousMeasurementWithType + */ +export interface ContinuousMeasurementWithType { + /** + * + * @type {string} + * @memberof ContinuousMeasurementWithType + */ + measurement: string; + /** + * + * @type {string} + * @memberof ContinuousMeasurementWithType + */ + type: ContinuousMeasurementWithTypeTypeEnum; + /** + * + * @type {string} + * @memberof ContinuousMeasurementWithType + */ + unit?: string | null; +} + + +/** + * @export + */ +export const ContinuousMeasurementWithTypeTypeEnum = { + Continuous: 'continuous' +} as const; +export type ContinuousMeasurementWithTypeTypeEnum = typeof ContinuousMeasurementWithTypeTypeEnum[keyof typeof ContinuousMeasurementWithTypeTypeEnum]; + + +/** + * Check if a given object implements the ContinuousMeasurementWithType interface. + */ +export function instanceOfContinuousMeasurementWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "measurement" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ContinuousMeasurementWithTypeFromJSON(json: any): ContinuousMeasurementWithType { + return ContinuousMeasurementWithTypeFromJSONTyped(json, false); +} + +export function ContinuousMeasurementWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContinuousMeasurementWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'measurement': json['measurement'], + 'type': json['type'], + 'unit': !exists(json, 'unit') ? undefined : json['unit'], + }; +} + +export function ContinuousMeasurementWithTypeToJSON(value?: ContinuousMeasurementWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'measurement': value.measurement, + 'type': value.type, + 'unit': value.unit, + }; +} + diff --git a/typescript/src/models/Coordinate2D.ts b/typescript/src/models/Coordinate2D.ts new file mode 100644 index 00000000..250609f0 --- /dev/null +++ b/typescript/src/models/Coordinate2D.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Coordinate2D + */ +export interface Coordinate2D { + /** + * + * @type {number} + * @memberof Coordinate2D + */ + x: number; + /** + * + * @type {number} + * @memberof Coordinate2D + */ + y: number; +} + +/** + * Check if a given object implements the Coordinate2D interface. + */ +export function instanceOfCoordinate2D(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "x" in value; + isInstance = isInstance && "y" in value; + + return isInstance; +} + +export function Coordinate2DFromJSON(json: any): Coordinate2D { + return Coordinate2DFromJSONTyped(json, false); +} + +export function Coordinate2DFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coordinate2D { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'x': json['x'], + 'y': json['y'], + }; +} + +export function Coordinate2DToJSON(value?: Coordinate2D | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'x': value.x, + 'y': value.y, + }; +} + diff --git a/typescript/src/models/CreateDataset.ts b/typescript/src/models/CreateDataset.ts new file mode 100644 index 00000000..52f99c84 --- /dev/null +++ b/typescript/src/models/CreateDataset.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { DataPath } from './DataPath'; +import { + DataPathFromJSON, + DataPathFromJSONTyped, + DataPathToJSON, +} from './DataPath'; +import type { DatasetDefinition } from './DatasetDefinition'; +import { + DatasetDefinitionFromJSON, + DatasetDefinitionFromJSONTyped, + DatasetDefinitionToJSON, +} from './DatasetDefinition'; + +/** + * + * @export + * @interface CreateDataset + */ +export interface CreateDataset { + /** + * + * @type {DataPath} + * @memberof CreateDataset + */ + dataPath: DataPath; + /** + * + * @type {DatasetDefinition} + * @memberof CreateDataset + */ + definition: DatasetDefinition; +} + +/** + * Check if a given object implements the CreateDataset interface. + */ +export function instanceOfCreateDataset(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "dataPath" in value; + isInstance = isInstance && "definition" in value; + + return isInstance; +} + +export function CreateDatasetFromJSON(json: any): CreateDataset { + return CreateDatasetFromJSONTyped(json, false); +} + +export function CreateDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDataset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataPath': DataPathFromJSON(json['dataPath']), + 'definition': DatasetDefinitionFromJSON(json['definition']), + }; +} + +export function CreateDatasetToJSON(value?: CreateDataset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataPath': DataPathToJSON(value.dataPath), + 'definition': DatasetDefinitionToJSON(value.definition), + }; +} + diff --git a/typescript/src/models/CreateDatasetHandler200Response.ts b/typescript/src/models/CreateDatasetHandler200Response.ts new file mode 100644 index 00000000..2d099df0 --- /dev/null +++ b/typescript/src/models/CreateDatasetHandler200Response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateDatasetHandler200Response + */ +export interface CreateDatasetHandler200Response { + /** + * + * @type {string} + * @memberof CreateDatasetHandler200Response + */ + datasetName: string; +} + +/** + * Check if a given object implements the CreateDatasetHandler200Response interface. + */ +export function instanceOfCreateDatasetHandler200Response(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "datasetName" in value; + + return isInstance; +} + +export function CreateDatasetHandler200ResponseFromJSON(json: any): CreateDatasetHandler200Response { + return CreateDatasetHandler200ResponseFromJSONTyped(json, false); +} + +export function CreateDatasetHandler200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDatasetHandler200Response { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'datasetName': json['datasetName'], + }; +} + +export function CreateDatasetHandler200ResponseToJSON(value?: CreateDatasetHandler200Response | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'datasetName': value.datasetName, + }; +} + diff --git a/typescript/src/models/CreateProject.ts b/typescript/src/models/CreateProject.ts new file mode 100644 index 00000000..0efa683e --- /dev/null +++ b/typescript/src/models/CreateProject.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { STRectangle } from './STRectangle'; +import { + STRectangleFromJSON, + STRectangleFromJSONTyped, + STRectangleToJSON, +} from './STRectangle'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * + * @export + * @interface CreateProject + */ +export interface CreateProject { + /** + * + * @type {STRectangle} + * @memberof CreateProject + */ + bounds: STRectangle; + /** + * + * @type {string} + * @memberof CreateProject + */ + description: string; + /** + * + * @type {string} + * @memberof CreateProject + */ + name: string; + /** + * + * @type {TimeStep} + * @memberof CreateProject + */ + timeStep?: TimeStep | null; +} + +/** + * Check if a given object implements the CreateProject interface. + */ +export function instanceOfCreateProject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bounds" in value; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function CreateProjectFromJSON(json: any): CreateProject { + return CreateProjectFromJSONTyped(json, false); +} + +export function CreateProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bounds': STRectangleFromJSON(json['bounds']), + 'description': json['description'], + 'name': json['name'], + 'timeStep': !exists(json, 'timeStep') ? undefined : TimeStepFromJSON(json['timeStep']), + }; +} + +export function CreateProjectToJSON(value?: CreateProject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bounds': STRectangleToJSON(value.bounds), + 'description': value.description, + 'name': value.name, + 'timeStep': TimeStepToJSON(value.timeStep), + }; +} + diff --git a/typescript/src/models/CsvHeader.ts b/typescript/src/models/CsvHeader.ts new file mode 100644 index 00000000..bda78c2f --- /dev/null +++ b/typescript/src/models/CsvHeader.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const CsvHeader = { + Yes: 'yes', + No: 'no', + Auto: 'auto' +} as const; +export type CsvHeader = typeof CsvHeader[keyof typeof CsvHeader]; + + +export function CsvHeaderFromJSON(json: any): CsvHeader { + return CsvHeaderFromJSONTyped(json, false); +} + +export function CsvHeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): CsvHeader { + return json as CsvHeader; +} + +export function CsvHeaderToJSON(value?: CsvHeader | null): any { + return value as any; +} + diff --git a/typescript/src/models/CustomOgrSourceTimeFormat.ts b/typescript/src/models/CustomOgrSourceTimeFormat.ts new file mode 100644 index 00000000..0456ec8b --- /dev/null +++ b/typescript/src/models/CustomOgrSourceTimeFormat.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { DateTimeParseFormat } from './DateTimeParseFormat'; +import { + DateTimeParseFormatFromJSON, + DateTimeParseFormatFromJSONTyped, + DateTimeParseFormatToJSON, +} from './DateTimeParseFormat'; + +/** + * + * @export + * @interface CustomOgrSourceTimeFormat + */ +export interface CustomOgrSourceTimeFormat { + /** + * + * @type {DateTimeParseFormat} + * @memberof CustomOgrSourceTimeFormat + */ + customFormat: DateTimeParseFormat; + /** + * + * @type {string} + * @memberof CustomOgrSourceTimeFormat + */ + format: CustomOgrSourceTimeFormatFormatEnum; +} + + +/** + * @export + */ +export const CustomOgrSourceTimeFormatFormatEnum = { + Custom: 'custom' +} as const; +export type CustomOgrSourceTimeFormatFormatEnum = typeof CustomOgrSourceTimeFormatFormatEnum[keyof typeof CustomOgrSourceTimeFormatFormatEnum]; + + +/** + * Check if a given object implements the CustomOgrSourceTimeFormat interface. + */ +export function instanceOfCustomOgrSourceTimeFormat(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "customFormat" in value; + isInstance = isInstance && "format" in value; + + return isInstance; +} + +export function CustomOgrSourceTimeFormatFromJSON(json: any): CustomOgrSourceTimeFormat { + return CustomOgrSourceTimeFormatFromJSONTyped(json, false); +} + +export function CustomOgrSourceTimeFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomOgrSourceTimeFormat { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'customFormat': DateTimeParseFormatFromJSON(json['customFormat']), + 'format': json['format'], + }; +} + +export function CustomOgrSourceTimeFormatToJSON(value?: CustomOgrSourceTimeFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'customFormat': DateTimeParseFormatToJSON(value.customFormat), + 'format': value.format, + }; +} + diff --git a/typescript/src/models/DataId.ts b/typescript/src/models/DataId.ts new file mode 100644 index 00000000..886c895c --- /dev/null +++ b/typescript/src/models/DataId.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + ExternalDataIdWithType, + instanceOfExternalDataIdWithType, + ExternalDataIdWithTypeFromJSON, + ExternalDataIdWithTypeFromJSONTyped, + ExternalDataIdWithTypeToJSON, +} from './ExternalDataIdWithType'; +import { + InternalDataId, + instanceOfInternalDataId, + InternalDataIdFromJSON, + InternalDataIdFromJSONTyped, + InternalDataIdToJSON, +} from './InternalDataId'; + +/** + * @type DataId + * + * @export + */ +export type DataId = { type: 'external' } & ExternalDataIdWithType | { type: 'internal' } & InternalDataId; + +export function DataIdFromJSON(json: any): DataId { + return DataIdFromJSONTyped(json, false); +} + +export function DataIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataId { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'external': + return {...ExternalDataIdWithTypeFromJSONTyped(json, true), type: 'external'}; + case 'internal': + return {...InternalDataIdFromJSONTyped(json, true), type: 'internal'}; + default: + throw new Error(`No variant of DataId exists with 'type=${json['type']}'`); + } +} + +export function DataIdToJSON(value?: DataId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'external': + return ExternalDataIdWithTypeToJSON(value); + case 'internal': + return InternalDataIdToJSON(value); + default: + throw new Error(`No variant of DataId exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/DataPath.ts b/typescript/src/models/DataPath.ts new file mode 100644 index 00000000..62469373 --- /dev/null +++ b/typescript/src/models/DataPath.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + DataPathOneOf, + instanceOfDataPathOneOf, + DataPathOneOfFromJSON, + DataPathOneOfFromJSONTyped, + DataPathOneOfToJSON, +} from './DataPathOneOf'; +import { + DataPathOneOf1, + instanceOfDataPathOneOf1, + DataPathOneOf1FromJSON, + DataPathOneOf1FromJSONTyped, + DataPathOneOf1ToJSON, +} from './DataPathOneOf1'; + +/** + * @type DataPath + * + * @export + */ +export type DataPath = DataPathOneOf | DataPathOneOf1; + +export function DataPathFromJSON(json: any): DataPath { + return DataPathFromJSONTyped(json, false); +} + +export function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPath { + if ((json === undefined) || (json === null)) { + return json; + } + return { ...DataPathOneOfFromJSONTyped(json, true), ...DataPathOneOf1FromJSONTyped(json, true) }; +} + +export function DataPathToJSON(value?: DataPath | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + + if (instanceOfDataPathOneOf(value)) { + return DataPathOneOfToJSON(value as DataPathOneOf); + } + if (instanceOfDataPathOneOf1(value)) { + return DataPathOneOf1ToJSON(value as DataPathOneOf1); + } + + return {}; +} + diff --git a/typescript/src/models/DataPathOneOf.ts b/typescript/src/models/DataPathOneOf.ts new file mode 100644 index 00000000..fc7cc776 --- /dev/null +++ b/typescript/src/models/DataPathOneOf.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DataPathOneOf + */ +export interface DataPathOneOf { + /** + * + * @type {string} + * @memberof DataPathOneOf + */ + volume: string; +} + +/** + * Check if a given object implements the DataPathOneOf interface. + */ +export function instanceOfDataPathOneOf(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "volume" in value; + + return isInstance; +} + +export function DataPathOneOfFromJSON(json: any): DataPathOneOf { + return DataPathOneOfFromJSONTyped(json, false); +} + +export function DataPathOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'volume': json['volume'], + }; +} + +export function DataPathOneOfToJSON(value?: DataPathOneOf | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'volume': value.volume, + }; +} + diff --git a/typescript/src/models/DataPathOneOf1.ts b/typescript/src/models/DataPathOneOf1.ts new file mode 100644 index 00000000..e872ddb5 --- /dev/null +++ b/typescript/src/models/DataPathOneOf1.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DataPathOneOf1 + */ +export interface DataPathOneOf1 { + /** + * + * @type {string} + * @memberof DataPathOneOf1 + */ + upload: string; +} + +/** + * Check if a given object implements the DataPathOneOf1 interface. + */ +export function instanceOfDataPathOneOf1(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "upload" in value; + + return isInstance; +} + +export function DataPathOneOf1FromJSON(json: any): DataPathOneOf1 { + return DataPathOneOf1FromJSONTyped(json, false); +} + +export function DataPathOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf1 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'upload': json['upload'], + }; +} + +export function DataPathOneOf1ToJSON(value?: DataPathOneOf1 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'upload': value.upload, + }; +} + diff --git a/typescript/src/models/Dataset.ts b/typescript/src/models/Dataset.ts new file mode 100644 index 00000000..e7cdebb7 --- /dev/null +++ b/typescript/src/models/Dataset.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Provenance } from './Provenance'; +import { + ProvenanceFromJSON, + ProvenanceFromJSONTyped, + ProvenanceToJSON, +} from './Provenance'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; +import type { TypedResultDescriptor } from './TypedResultDescriptor'; +import { + TypedResultDescriptorFromJSON, + TypedResultDescriptorFromJSONTyped, + TypedResultDescriptorToJSON, +} from './TypedResultDescriptor'; + +/** + * + * @export + * @interface Dataset + */ +export interface Dataset { + /** + * + * @type {string} + * @memberof Dataset + */ + description: string; + /** + * + * @type {string} + * @memberof Dataset + */ + displayName: string; + /** + * + * @type {string} + * @memberof Dataset + */ + id: string; + /** + * + * @type {string} + * @memberof Dataset + */ + name: string; + /** + * + * @type {Array} + * @memberof Dataset + */ + provenance?: Array | null; + /** + * + * @type {TypedResultDescriptor} + * @memberof Dataset + */ + resultDescriptor: TypedResultDescriptor; + /** + * + * @type {string} + * @memberof Dataset + */ + sourceOperator: string; + /** + * + * @type {Symbology} + * @memberof Dataset + */ + symbology?: Symbology | null; +} + +/** + * Check if a given object implements the Dataset interface. + */ +export function instanceOfDataset(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "displayName" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "sourceOperator" in value; + + return isInstance; +} + +export function DatasetFromJSON(json: any): Dataset { + return DatasetFromJSONTyped(json, false); +} + +export function DatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dataset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'displayName': json['displayName'], + 'id': json['id'], + 'name': json['name'], + 'provenance': !exists(json, 'provenance') ? undefined : (json['provenance'] === null ? null : (json['provenance'] as Array).map(ProvenanceFromJSON)), + 'resultDescriptor': TypedResultDescriptorFromJSON(json['resultDescriptor']), + 'sourceOperator': json['sourceOperator'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + }; +} + +export function DatasetToJSON(value?: Dataset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'displayName': value.displayName, + 'id': value.id, + 'name': value.name, + 'provenance': value.provenance === undefined ? undefined : (value.provenance === null ? null : (value.provenance as Array).map(ProvenanceToJSON)), + 'resultDescriptor': TypedResultDescriptorToJSON(value.resultDescriptor), + 'sourceOperator': value.sourceOperator, + 'symbology': SymbologyToJSON(value.symbology), + }; +} + diff --git a/typescript/src/models/DatasetDefinition.ts b/typescript/src/models/DatasetDefinition.ts new file mode 100644 index 00000000..321bde4d --- /dev/null +++ b/typescript/src/models/DatasetDefinition.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { AddDataset } from './AddDataset'; +import { + AddDatasetFromJSON, + AddDatasetFromJSONTyped, + AddDatasetToJSON, +} from './AddDataset'; +import type { MetaDataDefinition } from './MetaDataDefinition'; +import { + MetaDataDefinitionFromJSON, + MetaDataDefinitionFromJSONTyped, + MetaDataDefinitionToJSON, +} from './MetaDataDefinition'; + +/** + * + * @export + * @interface DatasetDefinition + */ +export interface DatasetDefinition { + /** + * + * @type {MetaDataDefinition} + * @memberof DatasetDefinition + */ + metaData: MetaDataDefinition; + /** + * + * @type {AddDataset} + * @memberof DatasetDefinition + */ + properties: AddDataset; +} + +/** + * Check if a given object implements the DatasetDefinition interface. + */ +export function instanceOfDatasetDefinition(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "metaData" in value; + isInstance = isInstance && "properties" in value; + + return isInstance; +} + +export function DatasetDefinitionFromJSON(json: any): DatasetDefinition { + return DatasetDefinitionFromJSONTyped(json, false); +} + +export function DatasetDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetDefinition { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'metaData': MetaDataDefinitionFromJSON(json['metaData']), + 'properties': AddDatasetFromJSON(json['properties']), + }; +} + +export function DatasetDefinitionToJSON(value?: DatasetDefinition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'metaData': MetaDataDefinitionToJSON(value.metaData), + 'properties': AddDatasetToJSON(value.properties), + }; +} + diff --git a/typescript/src/models/DatasetIdResourceId.ts b/typescript/src/models/DatasetIdResourceId.ts new file mode 100644 index 00000000..aef85c73 --- /dev/null +++ b/typescript/src/models/DatasetIdResourceId.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DatasetIdResourceId + */ +export interface DatasetIdResourceId { + /** + * + * @type {string} + * @memberof DatasetIdResourceId + */ + id: string; + /** + * + * @type {string} + * @memberof DatasetIdResourceId + */ + type: DatasetIdResourceIdTypeEnum; +} + + +/** + * @export + */ +export const DatasetIdResourceIdTypeEnum = { + DatasetId: 'DatasetId' +} as const; +export type DatasetIdResourceIdTypeEnum = typeof DatasetIdResourceIdTypeEnum[keyof typeof DatasetIdResourceIdTypeEnum]; + + +/** + * Check if a given object implements the DatasetIdResourceId interface. + */ +export function instanceOfDatasetIdResourceId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function DatasetIdResourceIdFromJSON(json: any): DatasetIdResourceId { + return DatasetIdResourceIdFromJSONTyped(json, false); +} + +export function DatasetIdResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetIdResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function DatasetIdResourceIdToJSON(value?: DatasetIdResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/DatasetListing.ts b/typescript/src/models/DatasetListing.ts new file mode 100644 index 00000000..58b979eb --- /dev/null +++ b/typescript/src/models/DatasetListing.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; +import type { TypedResultDescriptor } from './TypedResultDescriptor'; +import { + TypedResultDescriptorFromJSON, + TypedResultDescriptorFromJSONTyped, + TypedResultDescriptorToJSON, +} from './TypedResultDescriptor'; + +/** + * + * @export + * @interface DatasetListing + */ +export interface DatasetListing { + /** + * + * @type {string} + * @memberof DatasetListing + */ + description: string; + /** + * + * @type {string} + * @memberof DatasetListing + */ + displayName: string; + /** + * + * @type {string} + * @memberof DatasetListing + */ + id: string; + /** + * + * @type {string} + * @memberof DatasetListing + */ + name: string; + /** + * + * @type {TypedResultDescriptor} + * @memberof DatasetListing + */ + resultDescriptor: TypedResultDescriptor; + /** + * + * @type {string} + * @memberof DatasetListing + */ + sourceOperator: string; + /** + * + * @type {Symbology} + * @memberof DatasetListing + */ + symbology?: Symbology | null; + /** + * + * @type {Array} + * @memberof DatasetListing + */ + tags: Array; +} + +/** + * Check if a given object implements the DatasetListing interface. + */ +export function instanceOfDatasetListing(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "displayName" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "sourceOperator" in value; + isInstance = isInstance && "tags" in value; + + return isInstance; +} + +export function DatasetListingFromJSON(json: any): DatasetListing { + return DatasetListingFromJSONTyped(json, false); +} + +export function DatasetListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetListing { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'displayName': json['displayName'], + 'id': json['id'], + 'name': json['name'], + 'resultDescriptor': TypedResultDescriptorFromJSON(json['resultDescriptor']), + 'sourceOperator': json['sourceOperator'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + 'tags': json['tags'], + }; +} + +export function DatasetListingToJSON(value?: DatasetListing | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'displayName': value.displayName, + 'id': value.id, + 'name': value.name, + 'resultDescriptor': TypedResultDescriptorToJSON(value.resultDescriptor), + 'sourceOperator': value.sourceOperator, + 'symbology': SymbologyToJSON(value.symbology), + 'tags': value.tags, + }; +} + diff --git a/typescript/src/models/DatasetResource.ts b/typescript/src/models/DatasetResource.ts new file mode 100644 index 00000000..50f36de9 --- /dev/null +++ b/typescript/src/models/DatasetResource.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DatasetResource + */ +export interface DatasetResource { + /** + * + * @type {string} + * @memberof DatasetResource + */ + id: string; + /** + * + * @type {string} + * @memberof DatasetResource + */ + type: DatasetResourceTypeEnum; +} + + +/** + * @export + */ +export const DatasetResourceTypeEnum = { + Dataset: 'dataset' +} as const; +export type DatasetResourceTypeEnum = typeof DatasetResourceTypeEnum[keyof typeof DatasetResourceTypeEnum]; + + +/** + * Check if a given object implements the DatasetResource interface. + */ +export function instanceOfDatasetResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function DatasetResourceFromJSON(json: any): DatasetResource { + return DatasetResourceFromJSONTyped(json, false); +} + +export function DatasetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function DatasetResourceToJSON(value?: DatasetResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/DateTime.ts b/typescript/src/models/DateTime.ts new file mode 100644 index 00000000..ea723668 --- /dev/null +++ b/typescript/src/models/DateTime.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * An object that composes the date and a timestamp with time zone. + * @export + * @interface DateTime + */ +export interface DateTime { + /** + * + * @type {Date} + * @memberof DateTime + */ + datetime: Date; +} + +/** + * Check if a given object implements the DateTime interface. + */ +export function instanceOfDateTime(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "datetime" in value; + + return isInstance; +} + +export function DateTimeFromJSON(json: any): DateTime { + return DateTimeFromJSONTyped(json, false); +} + +export function DateTimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTime { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'datetime': (new Date(json['datetime'])), + }; +} + +export function DateTimeToJSON(value?: DateTime | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'datetime': (value.datetime.toISOString()), + }; +} + diff --git a/typescript/src/models/DateTimeParseFormat.ts b/typescript/src/models/DateTimeParseFormat.ts new file mode 100644 index 00000000..74f9ad43 --- /dev/null +++ b/typescript/src/models/DateTimeParseFormat.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DateTimeParseFormat + */ +export interface DateTimeParseFormat { + /** + * + * @type {string} + * @memberof DateTimeParseFormat + */ + fmt: string; + /** + * + * @type {boolean} + * @memberof DateTimeParseFormat + */ + hasTime: boolean; + /** + * + * @type {boolean} + * @memberof DateTimeParseFormat + */ + hasTz: boolean; +} + +/** + * Check if a given object implements the DateTimeParseFormat interface. + */ +export function instanceOfDateTimeParseFormat(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fmt" in value; + isInstance = isInstance && "hasTime" in value; + isInstance = isInstance && "hasTz" in value; + + return isInstance; +} + +export function DateTimeParseFormatFromJSON(json: any): DateTimeParseFormat { + return DateTimeParseFormatFromJSONTyped(json, false); +} + +export function DateTimeParseFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): DateTimeParseFormat { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fmt': json['fmt'], + 'hasTime': json['has_time'], + 'hasTz': json['has_tz'], + }; +} + +export function DateTimeParseFormatToJSON(value?: DateTimeParseFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fmt': value.fmt, + 'has_time': value.hasTime, + 'has_tz': value.hasTz, + }; +} + diff --git a/typescript/src/models/DerivedColor.ts b/typescript/src/models/DerivedColor.ts new file mode 100644 index 00000000..331838fb --- /dev/null +++ b/typescript/src/models/DerivedColor.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Colorizer } from './Colorizer'; +import { + ColorizerFromJSON, + ColorizerFromJSONTyped, + ColorizerToJSON, +} from './Colorizer'; + +/** + * + * @export + * @interface DerivedColor + */ +export interface DerivedColor { + /** + * + * @type {string} + * @memberof DerivedColor + */ + attribute: string; + /** + * + * @type {Colorizer} + * @memberof DerivedColor + */ + colorizer: Colorizer; +} + +/** + * Check if a given object implements the DerivedColor interface. + */ +export function instanceOfDerivedColor(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attribute" in value; + isInstance = isInstance && "colorizer" in value; + + return isInstance; +} + +export function DerivedColorFromJSON(json: any): DerivedColor { + return DerivedColorFromJSONTyped(json, false); +} + +export function DerivedColorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DerivedColor { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attribute': json['attribute'], + 'colorizer': ColorizerFromJSON(json['colorizer']), + }; +} + +export function DerivedColorToJSON(value?: DerivedColor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attribute': value.attribute, + 'colorizer': ColorizerToJSON(value.colorizer), + }; +} + diff --git a/typescript/src/models/DerivedColorWithType.ts b/typescript/src/models/DerivedColorWithType.ts new file mode 100644 index 00000000..8d3870f7 --- /dev/null +++ b/typescript/src/models/DerivedColorWithType.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Colorizer } from './Colorizer'; +import { + ColorizerFromJSON, + ColorizerFromJSONTyped, + ColorizerToJSON, +} from './Colorizer'; + +/** + * + * @export + * @interface DerivedColorWithType + */ +export interface DerivedColorWithType { + /** + * + * @type {string} + * @memberof DerivedColorWithType + */ + attribute: string; + /** + * + * @type {Colorizer} + * @memberof DerivedColorWithType + */ + colorizer: Colorizer; + /** + * + * @type {string} + * @memberof DerivedColorWithType + */ + type: DerivedColorWithTypeTypeEnum; +} + + +/** + * @export + */ +export const DerivedColorWithTypeTypeEnum = { + Derived: 'derived' +} as const; +export type DerivedColorWithTypeTypeEnum = typeof DerivedColorWithTypeTypeEnum[keyof typeof DerivedColorWithTypeTypeEnum]; + + +/** + * Check if a given object implements the DerivedColorWithType interface. + */ +export function instanceOfDerivedColorWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attribute" in value; + isInstance = isInstance && "colorizer" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function DerivedColorWithTypeFromJSON(json: any): DerivedColorWithType { + return DerivedColorWithTypeFromJSONTyped(json, false); +} + +export function DerivedColorWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DerivedColorWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attribute': json['attribute'], + 'colorizer': ColorizerFromJSON(json['colorizer']), + 'type': json['type'], + }; +} + +export function DerivedColorWithTypeToJSON(value?: DerivedColorWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attribute': value.attribute, + 'colorizer': ColorizerToJSON(value.colorizer), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/DerivedNumber.ts b/typescript/src/models/DerivedNumber.ts new file mode 100644 index 00000000..df4ac1d4 --- /dev/null +++ b/typescript/src/models/DerivedNumber.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DerivedNumber + */ +export interface DerivedNumber { + /** + * + * @type {string} + * @memberof DerivedNumber + */ + attribute: string; + /** + * + * @type {number} + * @memberof DerivedNumber + */ + defaultValue: number; + /** + * + * @type {number} + * @memberof DerivedNumber + */ + factor: number; +} + +/** + * Check if a given object implements the DerivedNumber interface. + */ +export function instanceOfDerivedNumber(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attribute" in value; + isInstance = isInstance && "defaultValue" in value; + isInstance = isInstance && "factor" in value; + + return isInstance; +} + +export function DerivedNumberFromJSON(json: any): DerivedNumber { + return DerivedNumberFromJSONTyped(json, false); +} + +export function DerivedNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): DerivedNumber { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attribute': json['attribute'], + 'defaultValue': json['defaultValue'], + 'factor': json['factor'], + }; +} + +export function DerivedNumberToJSON(value?: DerivedNumber | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attribute': value.attribute, + 'defaultValue': value.defaultValue, + 'factor': value.factor, + }; +} + diff --git a/typescript/src/models/DerivedNumberWithType.ts b/typescript/src/models/DerivedNumberWithType.ts new file mode 100644 index 00000000..e052efd2 --- /dev/null +++ b/typescript/src/models/DerivedNumberWithType.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface DerivedNumberWithType + */ +export interface DerivedNumberWithType { + /** + * + * @type {string} + * @memberof DerivedNumberWithType + */ + attribute: string; + /** + * + * @type {number} + * @memberof DerivedNumberWithType + */ + defaultValue: number; + /** + * + * @type {number} + * @memberof DerivedNumberWithType + */ + factor: number; + /** + * + * @type {string} + * @memberof DerivedNumberWithType + */ + type: DerivedNumberWithTypeTypeEnum; +} + + +/** + * @export + */ +export const DerivedNumberWithTypeTypeEnum = { + Derived: 'derived' +} as const; +export type DerivedNumberWithTypeTypeEnum = typeof DerivedNumberWithTypeTypeEnum[keyof typeof DerivedNumberWithTypeTypeEnum]; + + +/** + * Check if a given object implements the DerivedNumberWithType interface. + */ +export function instanceOfDerivedNumberWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attribute" in value; + isInstance = isInstance && "defaultValue" in value; + isInstance = isInstance && "factor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function DerivedNumberWithTypeFromJSON(json: any): DerivedNumberWithType { + return DerivedNumberWithTypeFromJSONTyped(json, false); +} + +export function DerivedNumberWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DerivedNumberWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attribute': json['attribute'], + 'defaultValue': json['defaultValue'], + 'factor': json['factor'], + 'type': json['type'], + }; +} + +export function DerivedNumberWithTypeToJSON(value?: DerivedNumberWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attribute': value.attribute, + 'defaultValue': value.defaultValue, + 'factor': value.factor, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/DescribeCoverageRequest.ts b/typescript/src/models/DescribeCoverageRequest.ts new file mode 100644 index 00000000..b6bcb2dc --- /dev/null +++ b/typescript/src/models/DescribeCoverageRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const DescribeCoverageRequest = { + DescribeCoverage: 'DescribeCoverage' +} as const; +export type DescribeCoverageRequest = typeof DescribeCoverageRequest[keyof typeof DescribeCoverageRequest]; + + +export function DescribeCoverageRequestFromJSON(json: any): DescribeCoverageRequest { + return DescribeCoverageRequestFromJSONTyped(json, false); +} + +export function DescribeCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescribeCoverageRequest { + return json as DescribeCoverageRequest; +} + +export function DescribeCoverageRequestToJSON(value?: DescribeCoverageRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/ErrorResponse.ts b/typescript/src/models/ErrorResponse.ts new file mode 100644 index 00000000..032fe9a8 --- /dev/null +++ b/typescript/src/models/ErrorResponse.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ErrorResponse + */ +export interface ErrorResponse { + /** + * + * @type {string} + * @memberof ErrorResponse + */ + error: string; + /** + * + * @type {string} + * @memberof ErrorResponse + */ + message: string; +} + +/** + * Check if a given object implements the ErrorResponse interface. + */ +export function instanceOfErrorResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "error" in value; + isInstance = isInstance && "message" in value; + + return isInstance; +} + +export function ErrorResponseFromJSON(json: any): ErrorResponse { + return ErrorResponseFromJSONTyped(json, false); +} + +export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'error': json['error'], + 'message': json['message'], + }; +} + +export function ErrorResponseToJSON(value?: ErrorResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'error': value.error, + 'message': value.message, + }; +} + diff --git a/typescript/src/models/ExternalDataId.ts b/typescript/src/models/ExternalDataId.ts new file mode 100644 index 00000000..5c0a22e3 --- /dev/null +++ b/typescript/src/models/ExternalDataId.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ExternalDataId + */ +export interface ExternalDataId { + /** + * + * @type {string} + * @memberof ExternalDataId + */ + layerId: string; + /** + * + * @type {string} + * @memberof ExternalDataId + */ + providerId: string; +} + +/** + * Check if a given object implements the ExternalDataId interface. + */ +export function instanceOfExternalDataId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "layerId" in value; + isInstance = isInstance && "providerId" in value; + + return isInstance; +} + +export function ExternalDataIdFromJSON(json: any): ExternalDataId { + return ExternalDataIdFromJSONTyped(json, false); +} + +export function ExternalDataIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalDataId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'layerId': json['layerId'], + 'providerId': json['providerId'], + }; +} + +export function ExternalDataIdToJSON(value?: ExternalDataId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'layerId': value.layerId, + 'providerId': value.providerId, + }; +} + diff --git a/typescript/src/models/ExternalDataIdWithType.ts b/typescript/src/models/ExternalDataIdWithType.ts new file mode 100644 index 00000000..b9865f03 --- /dev/null +++ b/typescript/src/models/ExternalDataIdWithType.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ExternalDataIdWithType + */ +export interface ExternalDataIdWithType { + /** + * + * @type {string} + * @memberof ExternalDataIdWithType + */ + layerId: string; + /** + * + * @type {string} + * @memberof ExternalDataIdWithType + */ + providerId: string; + /** + * + * @type {string} + * @memberof ExternalDataIdWithType + */ + type: ExternalDataIdWithTypeTypeEnum; +} + + +/** + * @export + */ +export const ExternalDataIdWithTypeTypeEnum = { + External: 'external' +} as const; +export type ExternalDataIdWithTypeTypeEnum = typeof ExternalDataIdWithTypeTypeEnum[keyof typeof ExternalDataIdWithTypeTypeEnum]; + + +/** + * Check if a given object implements the ExternalDataIdWithType interface. + */ +export function instanceOfExternalDataIdWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "layerId" in value; + isInstance = isInstance && "providerId" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ExternalDataIdWithTypeFromJSON(json: any): ExternalDataIdWithType { + return ExternalDataIdWithTypeFromJSONTyped(json, false); +} + +export function ExternalDataIdWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalDataIdWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'layerId': json['layerId'], + 'providerId': json['providerId'], + 'type': json['type'], + }; +} + +export function ExternalDataIdWithTypeToJSON(value?: ExternalDataIdWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'layerId': value.layerId, + 'providerId': value.providerId, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/FailedTaskStatus.ts b/typescript/src/models/FailedTaskStatus.ts new file mode 100644 index 00000000..2f0ede21 --- /dev/null +++ b/typescript/src/models/FailedTaskStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface FailedTaskStatus + */ +export interface FailedTaskStatus { + /** + * + * @type {any} + * @memberof FailedTaskStatus + */ + cleanUp: any | null; + /** + * + * @type {any} + * @memberof FailedTaskStatus + */ + error: any | null; + /** + * + * @type {string} + * @memberof FailedTaskStatus + */ + status: FailedTaskStatusStatusEnum; +} + + +/** + * @export + */ +export const FailedTaskStatusStatusEnum = { + Failed: 'failed' +} as const; +export type FailedTaskStatusStatusEnum = typeof FailedTaskStatusStatusEnum[keyof typeof FailedTaskStatusStatusEnum]; + + +/** + * Check if a given object implements the FailedTaskStatus interface. + */ +export function instanceOfFailedTaskStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "cleanUp" in value; + isInstance = isInstance && "error" in value; + isInstance = isInstance && "status" in value; + + return isInstance; +} + +export function FailedTaskStatusFromJSON(json: any): FailedTaskStatus { + return FailedTaskStatusFromJSONTyped(json, false); +} + +export function FailedTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): FailedTaskStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cleanUp': json['cleanUp'], + 'error': json['error'], + 'status': json['status'], + }; +} + +export function FailedTaskStatusToJSON(value?: FailedTaskStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cleanUp': value.cleanUp, + 'error': value.error, + 'status': value.status, + }; +} + diff --git a/typescript/src/models/FeatureDataType.ts b/typescript/src/models/FeatureDataType.ts new file mode 100644 index 00000000..733fa6cb --- /dev/null +++ b/typescript/src/models/FeatureDataType.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const FeatureDataType = { + Category: 'category', + Int: 'int', + Float: 'float', + Text: 'text', + Bool: 'bool', + DateTime: 'dateTime' +} as const; +export type FeatureDataType = typeof FeatureDataType[keyof typeof FeatureDataType]; + + +export function FeatureDataTypeFromJSON(json: any): FeatureDataType { + return FeatureDataTypeFromJSONTyped(json, false); +} + +export function FeatureDataTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureDataType { + return json as FeatureDataType; +} + +export function FeatureDataTypeToJSON(value?: FeatureDataType | null): any { + return value as any; +} + diff --git a/typescript/src/models/FileNotFoundHandling.ts b/typescript/src/models/FileNotFoundHandling.ts new file mode 100644 index 00000000..86cb0877 --- /dev/null +++ b/typescript/src/models/FileNotFoundHandling.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const FileNotFoundHandling = { + NoData: 'NoData', + Error: 'Error' +} as const; +export type FileNotFoundHandling = typeof FileNotFoundHandling[keyof typeof FileNotFoundHandling]; + + +export function FileNotFoundHandlingFromJSON(json: any): FileNotFoundHandling { + return FileNotFoundHandlingFromJSONTyped(json, false); +} + +export function FileNotFoundHandlingFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileNotFoundHandling { + return json as FileNotFoundHandling; +} + +export function FileNotFoundHandlingToJSON(value?: FileNotFoundHandling | null): any { + return value as any; +} + diff --git a/typescript/src/models/FormatSpecifics.ts b/typescript/src/models/FormatSpecifics.ts new file mode 100644 index 00000000..2e093273 --- /dev/null +++ b/typescript/src/models/FormatSpecifics.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + FormatSpecificsOneOf, + instanceOfFormatSpecificsOneOf, + FormatSpecificsOneOfFromJSON, + FormatSpecificsOneOfFromJSONTyped, + FormatSpecificsOneOfToJSON, +} from './FormatSpecificsOneOf'; + +/** + * @type FormatSpecifics + * + * @export + */ +export type FormatSpecifics = FormatSpecificsOneOf; + +export function FormatSpecificsFromJSON(json: any): FormatSpecifics { + return FormatSpecificsFromJSONTyped(json, false); +} + +export function FormatSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecifics { + if ((json === undefined) || (json === null)) { + return json; + } + return { ...FormatSpecificsOneOfFromJSONTyped(json, true) }; +} + +export function FormatSpecificsToJSON(value?: FormatSpecifics | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + + if (instanceOfFormatSpecificsOneOf(value)) { + return FormatSpecificsOneOfToJSON(value as FormatSpecificsOneOf); + } + + return {}; +} + diff --git a/typescript/src/models/FormatSpecificsOneOf.ts b/typescript/src/models/FormatSpecificsOneOf.ts new file mode 100644 index 00000000..00fde74e --- /dev/null +++ b/typescript/src/models/FormatSpecificsOneOf.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { FormatSpecificsOneOfCsv } from './FormatSpecificsOneOfCsv'; +import { + FormatSpecificsOneOfCsvFromJSON, + FormatSpecificsOneOfCsvFromJSONTyped, + FormatSpecificsOneOfCsvToJSON, +} from './FormatSpecificsOneOfCsv'; + +/** + * + * @export + * @interface FormatSpecificsOneOf + */ +export interface FormatSpecificsOneOf { + /** + * + * @type {FormatSpecificsOneOfCsv} + * @memberof FormatSpecificsOneOf + */ + csv: FormatSpecificsOneOfCsv; +} + +/** + * Check if a given object implements the FormatSpecificsOneOf interface. + */ +export function instanceOfFormatSpecificsOneOf(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "csv" in value; + + return isInstance; +} + +export function FormatSpecificsOneOfFromJSON(json: any): FormatSpecificsOneOf { + return FormatSpecificsOneOfFromJSONTyped(json, false); +} + +export function FormatSpecificsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOf { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'csv': FormatSpecificsOneOfCsvFromJSON(json['csv']), + }; +} + +export function FormatSpecificsOneOfToJSON(value?: FormatSpecificsOneOf | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'csv': FormatSpecificsOneOfCsvToJSON(value.csv), + }; +} + diff --git a/typescript/src/models/FormatSpecificsOneOfCsv.ts b/typescript/src/models/FormatSpecificsOneOfCsv.ts new file mode 100644 index 00000000..3c4c0227 --- /dev/null +++ b/typescript/src/models/FormatSpecificsOneOfCsv.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { CsvHeader } from './CsvHeader'; +import { + CsvHeaderFromJSON, + CsvHeaderFromJSONTyped, + CsvHeaderToJSON, +} from './CsvHeader'; + +/** + * + * @export + * @interface FormatSpecificsOneOfCsv + */ +export interface FormatSpecificsOneOfCsv { + /** + * + * @type {CsvHeader} + * @memberof FormatSpecificsOneOfCsv + */ + header: CsvHeader; +} + +/** + * Check if a given object implements the FormatSpecificsOneOfCsv interface. + */ +export function instanceOfFormatSpecificsOneOfCsv(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "header" in value; + + return isInstance; +} + +export function FormatSpecificsOneOfCsvFromJSON(json: any): FormatSpecificsOneOfCsv { + return FormatSpecificsOneOfCsvFromJSONTyped(json, false); +} + +export function FormatSpecificsOneOfCsvFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormatSpecificsOneOfCsv { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'header': CsvHeaderFromJSON(json['header']), + }; +} + +export function FormatSpecificsOneOfCsvToJSON(value?: FormatSpecificsOneOfCsv | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'header': CsvHeaderToJSON(value.header), + }; +} + diff --git a/typescript/src/models/GdalDatasetGeoTransform.ts b/typescript/src/models/GdalDatasetGeoTransform.ts new file mode 100644 index 00000000..52778a25 --- /dev/null +++ b/typescript/src/models/GdalDatasetGeoTransform.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * + * @export + * @interface GdalDatasetGeoTransform + */ +export interface GdalDatasetGeoTransform { + /** + * + * @type {Coordinate2D} + * @memberof GdalDatasetGeoTransform + */ + originCoordinate: Coordinate2D; + /** + * + * @type {number} + * @memberof GdalDatasetGeoTransform + */ + xPixelSize: number; + /** + * + * @type {number} + * @memberof GdalDatasetGeoTransform + */ + yPixelSize: number; +} + +/** + * Check if a given object implements the GdalDatasetGeoTransform interface. + */ +export function instanceOfGdalDatasetGeoTransform(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "originCoordinate" in value; + isInstance = isInstance && "xPixelSize" in value; + isInstance = isInstance && "yPixelSize" in value; + + return isInstance; +} + +export function GdalDatasetGeoTransformFromJSON(json: any): GdalDatasetGeoTransform { + return GdalDatasetGeoTransformFromJSONTyped(json, false); +} + +export function GdalDatasetGeoTransformFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalDatasetGeoTransform { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'originCoordinate': Coordinate2DFromJSON(json['originCoordinate']), + 'xPixelSize': json['xPixelSize'], + 'yPixelSize': json['yPixelSize'], + }; +} + +export function GdalDatasetGeoTransformToJSON(value?: GdalDatasetGeoTransform | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'originCoordinate': Coordinate2DToJSON(value.originCoordinate), + 'xPixelSize': value.xPixelSize, + 'yPixelSize': value.yPixelSize, + }; +} + diff --git a/typescript/src/models/GdalDatasetParameters.ts b/typescript/src/models/GdalDatasetParameters.ts new file mode 100644 index 00000000..69c7819a --- /dev/null +++ b/typescript/src/models/GdalDatasetParameters.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { FileNotFoundHandling } from './FileNotFoundHandling'; +import { + FileNotFoundHandlingFromJSON, + FileNotFoundHandlingFromJSONTyped, + FileNotFoundHandlingToJSON, +} from './FileNotFoundHandling'; +import type { GdalDatasetGeoTransform } from './GdalDatasetGeoTransform'; +import { + GdalDatasetGeoTransformFromJSON, + GdalDatasetGeoTransformFromJSONTyped, + GdalDatasetGeoTransformToJSON, +} from './GdalDatasetGeoTransform'; +import type { GdalMetadataMapping } from './GdalMetadataMapping'; +import { + GdalMetadataMappingFromJSON, + GdalMetadataMappingFromJSONTyped, + GdalMetadataMappingToJSON, +} from './GdalMetadataMapping'; + +/** + * Parameters for loading data using Gdal + * @export + * @interface GdalDatasetParameters + */ +export interface GdalDatasetParameters { + /** + * + * @type {boolean} + * @memberof GdalDatasetParameters + */ + allowAlphabandAsMask?: boolean; + /** + * + * @type {FileNotFoundHandling} + * @memberof GdalDatasetParameters + */ + fileNotFoundHandling: FileNotFoundHandling; + /** + * + * @type {string} + * @memberof GdalDatasetParameters + */ + filePath: string; + /** + * + * @type {Array>} + * @memberof GdalDatasetParameters + */ + gdalConfigOptions?: Array> | null; + /** + * + * @type {Array} + * @memberof GdalDatasetParameters + */ + gdalOpenOptions?: Array | null; + /** + * + * @type {GdalDatasetGeoTransform} + * @memberof GdalDatasetParameters + */ + geoTransform: GdalDatasetGeoTransform; + /** + * + * @type {number} + * @memberof GdalDatasetParameters + */ + height: number; + /** + * + * @type {number} + * @memberof GdalDatasetParameters + */ + noDataValue?: number | null; + /** + * + * @type {Array} + * @memberof GdalDatasetParameters + */ + propertiesMapping?: Array | null; + /** + * + * @type {number} + * @memberof GdalDatasetParameters + */ + rasterbandChannel: number; + /** + * + * @type {number} + * @memberof GdalDatasetParameters + */ + width: number; +} + +/** + * Check if a given object implements the GdalDatasetParameters interface. + */ +export function instanceOfGdalDatasetParameters(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fileNotFoundHandling" in value; + isInstance = isInstance && "filePath" in value; + isInstance = isInstance && "geoTransform" in value; + isInstance = isInstance && "height" in value; + isInstance = isInstance && "rasterbandChannel" in value; + isInstance = isInstance && "width" in value; + + return isInstance; +} + +export function GdalDatasetParametersFromJSON(json: any): GdalDatasetParameters { + return GdalDatasetParametersFromJSONTyped(json, false); +} + +export function GdalDatasetParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalDatasetParameters { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'allowAlphabandAsMask': !exists(json, 'allowAlphabandAsMask') ? undefined : json['allowAlphabandAsMask'], + 'fileNotFoundHandling': FileNotFoundHandlingFromJSON(json['fileNotFoundHandling']), + 'filePath': json['filePath'], + 'gdalConfigOptions': !exists(json, 'gdalConfigOptions') ? undefined : json['gdalConfigOptions'], + 'gdalOpenOptions': !exists(json, 'gdalOpenOptions') ? undefined : json['gdalOpenOptions'], + 'geoTransform': GdalDatasetGeoTransformFromJSON(json['geoTransform']), + 'height': json['height'], + 'noDataValue': !exists(json, 'noDataValue') ? undefined : json['noDataValue'], + 'propertiesMapping': !exists(json, 'propertiesMapping') ? undefined : (json['propertiesMapping'] === null ? null : (json['propertiesMapping'] as Array).map(GdalMetadataMappingFromJSON)), + 'rasterbandChannel': json['rasterbandChannel'], + 'width': json['width'], + }; +} + +export function GdalDatasetParametersToJSON(value?: GdalDatasetParameters | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'allowAlphabandAsMask': value.allowAlphabandAsMask, + 'fileNotFoundHandling': FileNotFoundHandlingToJSON(value.fileNotFoundHandling), + 'filePath': value.filePath, + 'gdalConfigOptions': value.gdalConfigOptions, + 'gdalOpenOptions': value.gdalOpenOptions, + 'geoTransform': GdalDatasetGeoTransformToJSON(value.geoTransform), + 'height': value.height, + 'noDataValue': value.noDataValue, + 'propertiesMapping': value.propertiesMapping === undefined ? undefined : (value.propertiesMapping === null ? null : (value.propertiesMapping as Array).map(GdalMetadataMappingToJSON)), + 'rasterbandChannel': value.rasterbandChannel, + 'width': value.width, + }; +} + diff --git a/typescript/src/models/GdalLoadingInfoTemporalSlice.ts b/typescript/src/models/GdalLoadingInfoTemporalSlice.ts new file mode 100644 index 00000000..49098e2d --- /dev/null +++ b/typescript/src/models/GdalLoadingInfoTemporalSlice.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * one temporal slice of the dataset that requires reading from exactly one Gdal dataset + * @export + * @interface GdalLoadingInfoTemporalSlice + */ +export interface GdalLoadingInfoTemporalSlice { + /** + * + * @type {number} + * @memberof GdalLoadingInfoTemporalSlice + */ + cacheTtl?: number; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalLoadingInfoTemporalSlice + */ + params?: GdalDatasetParameters | null; + /** + * + * @type {TimeInterval} + * @memberof GdalLoadingInfoTemporalSlice + */ + time: TimeInterval; +} + +/** + * Check if a given object implements the GdalLoadingInfoTemporalSlice interface. + */ +export function instanceOfGdalLoadingInfoTemporalSlice(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "time" in value; + + return isInstance; +} + +export function GdalLoadingInfoTemporalSliceFromJSON(json: any): GdalLoadingInfoTemporalSlice { + return GdalLoadingInfoTemporalSliceFromJSONTyped(json, false); +} + +export function GdalLoadingInfoTemporalSliceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalLoadingInfoTemporalSlice { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'params': !exists(json, 'params') ? undefined : GdalDatasetParametersFromJSON(json['params']), + 'time': TimeIntervalFromJSON(json['time']), + }; +} + +export function GdalLoadingInfoTemporalSliceToJSON(value?: GdalLoadingInfoTemporalSlice | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cacheTtl': value.cacheTtl, + 'params': GdalDatasetParametersToJSON(value.params), + 'time': TimeIntervalToJSON(value.time), + }; +} + diff --git a/typescript/src/models/GdalMetaDataList.ts b/typescript/src/models/GdalMetaDataList.ts new file mode 100644 index 00000000..314b8b7e --- /dev/null +++ b/typescript/src/models/GdalMetaDataList.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalLoadingInfoTemporalSlice } from './GdalLoadingInfoTemporalSlice'; +import { + GdalLoadingInfoTemporalSliceFromJSON, + GdalLoadingInfoTemporalSliceFromJSONTyped, + GdalLoadingInfoTemporalSliceToJSON, +} from './GdalLoadingInfoTemporalSlice'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; + +/** + * + * @export + * @interface GdalMetaDataList + */ +export interface GdalMetaDataList { + /** + * + * @type {Array} + * @memberof GdalMetaDataList + */ + params: Array; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataList + */ + resultDescriptor: RasterResultDescriptor; +} + +/** + * Check if a given object implements the GdalMetaDataList interface. + */ +export function instanceOfGdalMetaDataList(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + + return isInstance; +} + +export function GdalMetaDataListFromJSON(json: any): GdalMetaDataList { + return GdalMetaDataListFromJSONTyped(json, false); +} + +export function GdalMetaDataListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataList { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'params': ((json['params'] as Array).map(GdalLoadingInfoTemporalSliceFromJSON)), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + }; +} + +export function GdalMetaDataListToJSON(value?: GdalMetaDataList | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'params': ((value.params as Array).map(GdalLoadingInfoTemporalSliceToJSON)), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + }; +} + diff --git a/typescript/src/models/GdalMetaDataListWithType.ts b/typescript/src/models/GdalMetaDataListWithType.ts new file mode 100644 index 00000000..d5ac9883 --- /dev/null +++ b/typescript/src/models/GdalMetaDataListWithType.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalLoadingInfoTemporalSlice } from './GdalLoadingInfoTemporalSlice'; +import { + GdalLoadingInfoTemporalSliceFromJSON, + GdalLoadingInfoTemporalSliceFromJSONTyped, + GdalLoadingInfoTemporalSliceToJSON, +} from './GdalLoadingInfoTemporalSlice'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; + +/** + * + * @export + * @interface GdalMetaDataListWithType + */ +export interface GdalMetaDataListWithType { + /** + * + * @type {Array} + * @memberof GdalMetaDataListWithType + */ + params: Array; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataListWithType + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {string} + * @memberof GdalMetaDataListWithType + */ + type: GdalMetaDataListWithTypeTypeEnum; +} + + +/** + * @export + */ +export const GdalMetaDataListWithTypeTypeEnum = { + GdalMetaDataList: 'GdalMetaDataList' +} as const; +export type GdalMetaDataListWithTypeTypeEnum = typeof GdalMetaDataListWithTypeTypeEnum[keyof typeof GdalMetaDataListWithTypeTypeEnum]; + + +/** + * Check if a given object implements the GdalMetaDataListWithType interface. + */ +export function instanceOfGdalMetaDataListWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function GdalMetaDataListWithTypeFromJSON(json: any): GdalMetaDataListWithType { + return GdalMetaDataListWithTypeFromJSONTyped(json, false); +} + +export function GdalMetaDataListWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataListWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'params': ((json['params'] as Array).map(GdalLoadingInfoTemporalSliceFromJSON)), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'type': json['type'], + }; +} + +export function GdalMetaDataListWithTypeToJSON(value?: GdalMetaDataListWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'params': ((value.params as Array).map(GdalLoadingInfoTemporalSliceToJSON)), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/GdalMetaDataRegular.ts b/typescript/src/models/GdalMetaDataRegular.ts new file mode 100644 index 00000000..0c1b199c --- /dev/null +++ b/typescript/src/models/GdalMetaDataRegular.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { GdalSourceTimePlaceholder } from './GdalSourceTimePlaceholder'; +import { + GdalSourceTimePlaceholderFromJSON, + GdalSourceTimePlaceholderFromJSONTyped, + GdalSourceTimePlaceholderToJSON, +} from './GdalSourceTimePlaceholder'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * + * @export + * @interface GdalMetaDataRegular + */ +export interface GdalMetaDataRegular { + /** + * + * @type {number} + * @memberof GdalMetaDataRegular + */ + cacheTtl?: number; + /** + * + * @type {TimeInterval} + * @memberof GdalMetaDataRegular + */ + dataTime: TimeInterval; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetaDataRegular + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataRegular + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {TimeStep} + * @memberof GdalMetaDataRegular + */ + step: TimeStep; + /** + * + * @type {{ [key: string]: GdalSourceTimePlaceholder; }} + * @memberof GdalMetaDataRegular + */ + timePlaceholders: { [key: string]: GdalSourceTimePlaceholder; }; +} + +/** + * Check if a given object implements the GdalMetaDataRegular interface. + */ +export function instanceOfGdalMetaDataRegular(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "dataTime" in value; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "step" in value; + isInstance = isInstance && "timePlaceholders" in value; + + return isInstance; +} + +export function GdalMetaDataRegularFromJSON(json: any): GdalMetaDataRegular { + return GdalMetaDataRegularFromJSONTyped(json, false); +} + +export function GdalMetaDataRegularFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataRegular { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'dataTime': TimeIntervalFromJSON(json['dataTime']), + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'step': TimeStepFromJSON(json['step']), + 'timePlaceholders': (mapValues(json['timePlaceholders'], GdalSourceTimePlaceholderFromJSON)), + }; +} + +export function GdalMetaDataRegularToJSON(value?: GdalMetaDataRegular | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cacheTtl': value.cacheTtl, + 'dataTime': TimeIntervalToJSON(value.dataTime), + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'step': TimeStepToJSON(value.step), + 'timePlaceholders': (mapValues(value.timePlaceholders, GdalSourceTimePlaceholderToJSON)), + }; +} + diff --git a/typescript/src/models/GdalMetaDataRegularWithType.ts b/typescript/src/models/GdalMetaDataRegularWithType.ts new file mode 100644 index 00000000..78125713 --- /dev/null +++ b/typescript/src/models/GdalMetaDataRegularWithType.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { GdalSourceTimePlaceholder } from './GdalSourceTimePlaceholder'; +import { + GdalSourceTimePlaceholderFromJSON, + GdalSourceTimePlaceholderFromJSONTyped, + GdalSourceTimePlaceholderToJSON, +} from './GdalSourceTimePlaceholder'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * + * @export + * @interface GdalMetaDataRegularWithType + */ +export interface GdalMetaDataRegularWithType { + /** + * + * @type {number} + * @memberof GdalMetaDataRegularWithType + */ + cacheTtl?: number; + /** + * + * @type {TimeInterval} + * @memberof GdalMetaDataRegularWithType + */ + dataTime: TimeInterval; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetaDataRegularWithType + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataRegularWithType + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {TimeStep} + * @memberof GdalMetaDataRegularWithType + */ + step: TimeStep; + /** + * + * @type {{ [key: string]: GdalSourceTimePlaceholder; }} + * @memberof GdalMetaDataRegularWithType + */ + timePlaceholders: { [key: string]: GdalSourceTimePlaceholder; }; + /** + * + * @type {string} + * @memberof GdalMetaDataRegularWithType + */ + type: GdalMetaDataRegularWithTypeTypeEnum; +} + + +/** + * @export + */ +export const GdalMetaDataRegularWithTypeTypeEnum = { + GdalMetaDataRegular: 'GdalMetaDataRegular' +} as const; +export type GdalMetaDataRegularWithTypeTypeEnum = typeof GdalMetaDataRegularWithTypeTypeEnum[keyof typeof GdalMetaDataRegularWithTypeTypeEnum]; + + +/** + * Check if a given object implements the GdalMetaDataRegularWithType interface. + */ +export function instanceOfGdalMetaDataRegularWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "dataTime" in value; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "step" in value; + isInstance = isInstance && "timePlaceholders" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function GdalMetaDataRegularWithTypeFromJSON(json: any): GdalMetaDataRegularWithType { + return GdalMetaDataRegularWithTypeFromJSONTyped(json, false); +} + +export function GdalMetaDataRegularWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataRegularWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'dataTime': TimeIntervalFromJSON(json['dataTime']), + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'step': TimeStepFromJSON(json['step']), + 'timePlaceholders': (mapValues(json['timePlaceholders'], GdalSourceTimePlaceholderFromJSON)), + 'type': json['type'], + }; +} + +export function GdalMetaDataRegularWithTypeToJSON(value?: GdalMetaDataRegularWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cacheTtl': value.cacheTtl, + 'dataTime': TimeIntervalToJSON(value.dataTime), + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'step': TimeStepToJSON(value.step), + 'timePlaceholders': (mapValues(value.timePlaceholders, GdalSourceTimePlaceholderToJSON)), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/GdalMetaDataStatic.ts b/typescript/src/models/GdalMetaDataStatic.ts new file mode 100644 index 00000000..6565bb98 --- /dev/null +++ b/typescript/src/models/GdalMetaDataStatic.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * + * @export + * @interface GdalMetaDataStatic + */ +export interface GdalMetaDataStatic { + /** + * + * @type {number} + * @memberof GdalMetaDataStatic + */ + cacheTtl?: number; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetaDataStatic + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataStatic + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {TimeInterval} + * @memberof GdalMetaDataStatic + */ + time?: TimeInterval | null; +} + +/** + * Check if a given object implements the GdalMetaDataStatic interface. + */ +export function instanceOfGdalMetaDataStatic(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + + return isInstance; +} + +export function GdalMetaDataStaticFromJSON(json: any): GdalMetaDataStatic { + return GdalMetaDataStaticFromJSONTyped(json, false); +} + +export function GdalMetaDataStaticFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataStatic { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + }; +} + +export function GdalMetaDataStaticToJSON(value?: GdalMetaDataStatic | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cacheTtl': value.cacheTtl, + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'time': TimeIntervalToJSON(value.time), + }; +} + diff --git a/typescript/src/models/GdalMetaDataStaticWithType.ts b/typescript/src/models/GdalMetaDataStaticWithType.ts new file mode 100644 index 00000000..904bc82f --- /dev/null +++ b/typescript/src/models/GdalMetaDataStaticWithType.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * + * @export + * @interface GdalMetaDataStaticWithType + */ +export interface GdalMetaDataStaticWithType { + /** + * + * @type {number} + * @memberof GdalMetaDataStaticWithType + */ + cacheTtl?: number; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetaDataStaticWithType + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetaDataStaticWithType + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {TimeInterval} + * @memberof GdalMetaDataStaticWithType + */ + time?: TimeInterval | null; + /** + * + * @type {string} + * @memberof GdalMetaDataStaticWithType + */ + type: GdalMetaDataStaticWithTypeTypeEnum; +} + + +/** + * @export + */ +export const GdalMetaDataStaticWithTypeTypeEnum = { + GdalStatic: 'GdalStatic' +} as const; +export type GdalMetaDataStaticWithTypeTypeEnum = typeof GdalMetaDataStaticWithTypeTypeEnum[keyof typeof GdalMetaDataStaticWithTypeTypeEnum]; + + +/** + * Check if a given object implements the GdalMetaDataStaticWithType interface. + */ +export function instanceOfGdalMetaDataStaticWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function GdalMetaDataStaticWithTypeFromJSON(json: any): GdalMetaDataStaticWithType { + return GdalMetaDataStaticWithTypeFromJSONTyped(json, false); +} + +export function GdalMetaDataStaticWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetaDataStaticWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + 'type': json['type'], + }; +} + +export function GdalMetaDataStaticWithTypeToJSON(value?: GdalMetaDataStaticWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'cacheTtl': value.cacheTtl, + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'time': TimeIntervalToJSON(value.time), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/GdalMetadataMapping.ts b/typescript/src/models/GdalMetadataMapping.ts new file mode 100644 index 00000000..d501158e --- /dev/null +++ b/typescript/src/models/GdalMetadataMapping.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { RasterPropertiesEntryType } from './RasterPropertiesEntryType'; +import { + RasterPropertiesEntryTypeFromJSON, + RasterPropertiesEntryTypeFromJSONTyped, + RasterPropertiesEntryTypeToJSON, +} from './RasterPropertiesEntryType'; +import type { RasterPropertiesKey } from './RasterPropertiesKey'; +import { + RasterPropertiesKeyFromJSON, + RasterPropertiesKeyFromJSONTyped, + RasterPropertiesKeyToJSON, +} from './RasterPropertiesKey'; + +/** + * + * @export + * @interface GdalMetadataMapping + */ +export interface GdalMetadataMapping { + /** + * + * @type {RasterPropertiesKey} + * @memberof GdalMetadataMapping + */ + sourceKey: RasterPropertiesKey; + /** + * + * @type {RasterPropertiesKey} + * @memberof GdalMetadataMapping + */ + targetKey: RasterPropertiesKey; + /** + * + * @type {RasterPropertiesEntryType} + * @memberof GdalMetadataMapping + */ + targetType: RasterPropertiesEntryType; +} + +/** + * Check if a given object implements the GdalMetadataMapping interface. + */ +export function instanceOfGdalMetadataMapping(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "sourceKey" in value; + isInstance = isInstance && "targetKey" in value; + isInstance = isInstance && "targetType" in value; + + return isInstance; +} + +export function GdalMetadataMappingFromJSON(json: any): GdalMetadataMapping { + return GdalMetadataMappingFromJSONTyped(json, false); +} + +export function GdalMetadataMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetadataMapping { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'sourceKey': RasterPropertiesKeyFromJSON(json['source_key']), + 'targetKey': RasterPropertiesKeyFromJSON(json['target_key']), + 'targetType': RasterPropertiesEntryTypeFromJSON(json['target_type']), + }; +} + +export function GdalMetadataMappingToJSON(value?: GdalMetadataMapping | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'source_key': RasterPropertiesKeyToJSON(value.sourceKey), + 'target_key': RasterPropertiesKeyToJSON(value.targetKey), + 'target_type': RasterPropertiesEntryTypeToJSON(value.targetType), + }; +} + diff --git a/typescript/src/models/GdalMetadataNetCdfCf.ts b/typescript/src/models/GdalMetadataNetCdfCf.ts new file mode 100644 index 00000000..5476fe3f --- /dev/null +++ b/typescript/src/models/GdalMetadataNetCdfCf.ts @@ -0,0 +1,139 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * Meta data for 4D `NetCDF` CF datasets + * @export + * @interface GdalMetadataNetCdfCf + */ +export interface GdalMetadataNetCdfCf { + /** + * A band offset specifies the first band index to use for the first point in time. + * All other time steps are added to this offset. + * @type {number} + * @memberof GdalMetadataNetCdfCf + */ + bandOffset: number; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCf + */ + cacheTtl?: number; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCf + */ + end: number; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetadataNetCdfCf + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetadataNetCdfCf + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCf + */ + start: number; + /** + * + * @type {TimeStep} + * @memberof GdalMetadataNetCdfCf + */ + step: TimeStep; +} + +/** + * Check if a given object implements the GdalMetadataNetCdfCf interface. + */ +export function instanceOfGdalMetadataNetCdfCf(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bandOffset" in value; + isInstance = isInstance && "end" in value; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "start" in value; + isInstance = isInstance && "step" in value; + + return isInstance; +} + +export function GdalMetadataNetCdfCfFromJSON(json: any): GdalMetadataNetCdfCf { + return GdalMetadataNetCdfCfFromJSONTyped(json, false); +} + +export function GdalMetadataNetCdfCfFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetadataNetCdfCf { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bandOffset': json['bandOffset'], + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'end': json['end'], + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'start': json['start'], + 'step': TimeStepFromJSON(json['step']), + }; +} + +export function GdalMetadataNetCdfCfToJSON(value?: GdalMetadataNetCdfCf | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bandOffset': value.bandOffset, + 'cacheTtl': value.cacheTtl, + 'end': value.end, + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'start': value.start, + 'step': TimeStepToJSON(value.step), + }; +} + diff --git a/typescript/src/models/GdalMetadataNetCdfCfWithType.ts b/typescript/src/models/GdalMetadataNetCdfCfWithType.ts new file mode 100644 index 00000000..d80a7e4f --- /dev/null +++ b/typescript/src/models/GdalMetadataNetCdfCfWithType.ts @@ -0,0 +1,158 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { GdalDatasetParameters } from './GdalDatasetParameters'; +import { + GdalDatasetParametersFromJSON, + GdalDatasetParametersFromJSONTyped, + GdalDatasetParametersToJSON, +} from './GdalDatasetParameters'; +import type { RasterResultDescriptor } from './RasterResultDescriptor'; +import { + RasterResultDescriptorFromJSON, + RasterResultDescriptorFromJSONTyped, + RasterResultDescriptorToJSON, +} from './RasterResultDescriptor'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * Meta data for 4D `NetCDF` CF datasets + * @export + * @interface GdalMetadataNetCdfCfWithType + */ +export interface GdalMetadataNetCdfCfWithType { + /** + * A band offset specifies the first band index to use for the first point in time. + * All other time steps are added to this offset. + * @type {number} + * @memberof GdalMetadataNetCdfCfWithType + */ + bandOffset: number; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCfWithType + */ + cacheTtl?: number; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCfWithType + */ + end: number; + /** + * + * @type {GdalDatasetParameters} + * @memberof GdalMetadataNetCdfCfWithType + */ + params: GdalDatasetParameters; + /** + * + * @type {RasterResultDescriptor} + * @memberof GdalMetadataNetCdfCfWithType + */ + resultDescriptor: RasterResultDescriptor; + /** + * + * @type {number} + * @memberof GdalMetadataNetCdfCfWithType + */ + start: number; + /** + * + * @type {TimeStep} + * @memberof GdalMetadataNetCdfCfWithType + */ + step: TimeStep; + /** + * + * @type {string} + * @memberof GdalMetadataNetCdfCfWithType + */ + type: GdalMetadataNetCdfCfWithTypeTypeEnum; +} + + +/** + * @export + */ +export const GdalMetadataNetCdfCfWithTypeTypeEnum = { + GdalMetadataNetCdfCf: 'GdalMetadataNetCdfCf' +} as const; +export type GdalMetadataNetCdfCfWithTypeTypeEnum = typeof GdalMetadataNetCdfCfWithTypeTypeEnum[keyof typeof GdalMetadataNetCdfCfWithTypeTypeEnum]; + + +/** + * Check if a given object implements the GdalMetadataNetCdfCfWithType interface. + */ +export function instanceOfGdalMetadataNetCdfCfWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bandOffset" in value; + isInstance = isInstance && "end" in value; + isInstance = isInstance && "params" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "start" in value; + isInstance = isInstance && "step" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function GdalMetadataNetCdfCfWithTypeFromJSON(json: any): GdalMetadataNetCdfCfWithType { + return GdalMetadataNetCdfCfWithTypeFromJSONTyped(json, false); +} + +export function GdalMetadataNetCdfCfWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalMetadataNetCdfCfWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bandOffset': json['bandOffset'], + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'end': json['end'], + 'params': GdalDatasetParametersFromJSON(json['params']), + 'resultDescriptor': RasterResultDescriptorFromJSON(json['resultDescriptor']), + 'start': json['start'], + 'step': TimeStepFromJSON(json['step']), + 'type': json['type'], + }; +} + +export function GdalMetadataNetCdfCfWithTypeToJSON(value?: GdalMetadataNetCdfCfWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bandOffset': value.bandOffset, + 'cacheTtl': value.cacheTtl, + 'end': value.end, + 'params': GdalDatasetParametersToJSON(value.params), + 'resultDescriptor': RasterResultDescriptorToJSON(value.resultDescriptor), + 'start': value.start, + 'step': TimeStepToJSON(value.step), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/GdalSourceTimePlaceholder.ts b/typescript/src/models/GdalSourceTimePlaceholder.ts new file mode 100644 index 00000000..791fbc04 --- /dev/null +++ b/typescript/src/models/GdalSourceTimePlaceholder.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { DateTimeParseFormat } from './DateTimeParseFormat'; +import { + DateTimeParseFormatFromJSON, + DateTimeParseFormatFromJSONTyped, + DateTimeParseFormatToJSON, +} from './DateTimeParseFormat'; +import type { TimeReference } from './TimeReference'; +import { + TimeReferenceFromJSON, + TimeReferenceFromJSONTyped, + TimeReferenceToJSON, +} from './TimeReference'; + +/** + * + * @export + * @interface GdalSourceTimePlaceholder + */ +export interface GdalSourceTimePlaceholder { + /** + * + * @type {DateTimeParseFormat} + * @memberof GdalSourceTimePlaceholder + */ + format: DateTimeParseFormat; + /** + * + * @type {TimeReference} + * @memberof GdalSourceTimePlaceholder + */ + reference: TimeReference; +} + +/** + * Check if a given object implements the GdalSourceTimePlaceholder interface. + */ +export function instanceOfGdalSourceTimePlaceholder(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "format" in value; + isInstance = isInstance && "reference" in value; + + return isInstance; +} + +export function GdalSourceTimePlaceholderFromJSON(json: any): GdalSourceTimePlaceholder { + return GdalSourceTimePlaceholderFromJSONTyped(json, false); +} + +export function GdalSourceTimePlaceholderFromJSONTyped(json: any, ignoreDiscriminator: boolean): GdalSourceTimePlaceholder { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'format': DateTimeParseFormatFromJSON(json['format']), + 'reference': TimeReferenceFromJSON(json['reference']), + }; +} + +export function GdalSourceTimePlaceholderToJSON(value?: GdalSourceTimePlaceholder | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'format': DateTimeParseFormatToJSON(value.format), + 'reference': TimeReferenceToJSON(value.reference), + }; +} + diff --git a/typescript/src/models/GeoJson.ts b/typescript/src/models/GeoJson.ts new file mode 100644 index 00000000..42dc881a --- /dev/null +++ b/typescript/src/models/GeoJson.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { CollectionType } from './CollectionType'; +import { + CollectionTypeFromJSON, + CollectionTypeFromJSONTyped, + CollectionTypeToJSON, +} from './CollectionType'; + +/** + * + * @export + * @interface GeoJson + */ +export interface GeoJson { + /** + * + * @type {Array} + * @memberof GeoJson + */ + features: Array; + /** + * + * @type {CollectionType} + * @memberof GeoJson + */ + type: CollectionType; +} + +/** + * Check if a given object implements the GeoJson interface. + */ +export function instanceOfGeoJson(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "features" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function GeoJsonFromJSON(json: any): GeoJson { + return GeoJsonFromJSONTyped(json, false); +} + +export function GeoJsonFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoJson { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'features': json['features'], + 'type': CollectionTypeFromJSON(json['type']), + }; +} + +export function GeoJsonToJSON(value?: GeoJson | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'features': value.features, + 'type': CollectionTypeToJSON(value.type), + }; +} + diff --git a/typescript/src/models/GetCapabilitiesFormat.ts b/typescript/src/models/GetCapabilitiesFormat.ts new file mode 100644 index 00000000..46bdbc49 --- /dev/null +++ b/typescript/src/models/GetCapabilitiesFormat.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetCapabilitiesFormat = { + TextXml: 'text/xml' +} as const; +export type GetCapabilitiesFormat = typeof GetCapabilitiesFormat[keyof typeof GetCapabilitiesFormat]; + + +export function GetCapabilitiesFormatFromJSON(json: any): GetCapabilitiesFormat { + return GetCapabilitiesFormatFromJSONTyped(json, false); +} + +export function GetCapabilitiesFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesFormat { + return json as GetCapabilitiesFormat; +} + +export function GetCapabilitiesFormatToJSON(value?: GetCapabilitiesFormat | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetCapabilitiesRequest.ts b/typescript/src/models/GetCapabilitiesRequest.ts new file mode 100644 index 00000000..f6af3b79 --- /dev/null +++ b/typescript/src/models/GetCapabilitiesRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetCapabilitiesRequest = { + GetCapabilities: 'GetCapabilities' +} as const; +export type GetCapabilitiesRequest = typeof GetCapabilitiesRequest[keyof typeof GetCapabilitiesRequest]; + + +export function GetCapabilitiesRequestFromJSON(json: any): GetCapabilitiesRequest { + return GetCapabilitiesRequestFromJSONTyped(json, false); +} + +export function GetCapabilitiesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCapabilitiesRequest { + return json as GetCapabilitiesRequest; +} + +export function GetCapabilitiesRequestToJSON(value?: GetCapabilitiesRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetCoverageFormat.ts b/typescript/src/models/GetCoverageFormat.ts new file mode 100644 index 00000000..42e1f21a --- /dev/null +++ b/typescript/src/models/GetCoverageFormat.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetCoverageFormat = { + ImageTiff: 'image/tiff' +} as const; +export type GetCoverageFormat = typeof GetCoverageFormat[keyof typeof GetCoverageFormat]; + + +export function GetCoverageFormatFromJSON(json: any): GetCoverageFormat { + return GetCoverageFormatFromJSONTyped(json, false); +} + +export function GetCoverageFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoverageFormat { + return json as GetCoverageFormat; +} + +export function GetCoverageFormatToJSON(value?: GetCoverageFormat | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetCoverageRequest.ts b/typescript/src/models/GetCoverageRequest.ts new file mode 100644 index 00000000..4fd7ec35 --- /dev/null +++ b/typescript/src/models/GetCoverageRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetCoverageRequest = { + GetCoverage: 'GetCoverage' +} as const; +export type GetCoverageRequest = typeof GetCoverageRequest[keyof typeof GetCoverageRequest]; + + +export function GetCoverageRequestFromJSON(json: any): GetCoverageRequest { + return GetCoverageRequestFromJSONTyped(json, false); +} + +export function GetCoverageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCoverageRequest { + return json as GetCoverageRequest; +} + +export function GetCoverageRequestToJSON(value?: GetCoverageRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetFeatureRequest.ts b/typescript/src/models/GetFeatureRequest.ts new file mode 100644 index 00000000..21d46d44 --- /dev/null +++ b/typescript/src/models/GetFeatureRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetFeatureRequest = { + GetFeature: 'GetFeature' +} as const; +export type GetFeatureRequest = typeof GetFeatureRequest[keyof typeof GetFeatureRequest]; + + +export function GetFeatureRequestFromJSON(json: any): GetFeatureRequest { + return GetFeatureRequestFromJSONTyped(json, false); +} + +export function GetFeatureRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFeatureRequest { + return json as GetFeatureRequest; +} + +export function GetFeatureRequestToJSON(value?: GetFeatureRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetLegendGraphicRequest.ts b/typescript/src/models/GetLegendGraphicRequest.ts new file mode 100644 index 00000000..6ba43651 --- /dev/null +++ b/typescript/src/models/GetLegendGraphicRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetLegendGraphicRequest = { + GetLegendGraphic: 'GetLegendGraphic' +} as const; +export type GetLegendGraphicRequest = typeof GetLegendGraphicRequest[keyof typeof GetLegendGraphicRequest]; + + +export function GetLegendGraphicRequestFromJSON(json: any): GetLegendGraphicRequest { + return GetLegendGraphicRequestFromJSONTyped(json, false); +} + +export function GetLegendGraphicRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLegendGraphicRequest { + return json as GetLegendGraphicRequest; +} + +export function GetLegendGraphicRequestToJSON(value?: GetLegendGraphicRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetMapExceptionFormat.ts b/typescript/src/models/GetMapExceptionFormat.ts new file mode 100644 index 00000000..45b455c6 --- /dev/null +++ b/typescript/src/models/GetMapExceptionFormat.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetMapExceptionFormat = { + Xml: 'XML', + Json: 'JSON' +} as const; +export type GetMapExceptionFormat = typeof GetMapExceptionFormat[keyof typeof GetMapExceptionFormat]; + + +export function GetMapExceptionFormatFromJSON(json: any): GetMapExceptionFormat { + return GetMapExceptionFormatFromJSONTyped(json, false); +} + +export function GetMapExceptionFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapExceptionFormat { + return json as GetMapExceptionFormat; +} + +export function GetMapExceptionFormatToJSON(value?: GetMapExceptionFormat | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetMapFormat.ts b/typescript/src/models/GetMapFormat.ts new file mode 100644 index 00000000..b8976cd0 --- /dev/null +++ b/typescript/src/models/GetMapFormat.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetMapFormat = { + ImagePng: 'image/png' +} as const; +export type GetMapFormat = typeof GetMapFormat[keyof typeof GetMapFormat]; + + +export function GetMapFormatFromJSON(json: any): GetMapFormat { + return GetMapFormatFromJSONTyped(json, false); +} + +export function GetMapFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapFormat { + return json as GetMapFormat; +} + +export function GetMapFormatToJSON(value?: GetMapFormat | null): any { + return value as any; +} + diff --git a/typescript/src/models/GetMapRequest.ts b/typescript/src/models/GetMapRequest.ts new file mode 100644 index 00000000..57dbf9a7 --- /dev/null +++ b/typescript/src/models/GetMapRequest.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const GetMapRequest = { + GetMap: 'GetMap' +} as const; +export type GetMapRequest = typeof GetMapRequest[keyof typeof GetMapRequest]; + + +export function GetMapRequestFromJSON(json: any): GetMapRequest { + return GetMapRequestFromJSONTyped(json, false); +} + +export function GetMapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMapRequest { + return json as GetMapRequest; +} + +export function GetMapRequestToJSON(value?: GetMapRequest | null): any { + return value as any; +} + diff --git a/typescript/src/models/InfiniteOgrSourceDurationSpec.ts b/typescript/src/models/InfiniteOgrSourceDurationSpec.ts new file mode 100644 index 00000000..1b816e45 --- /dev/null +++ b/typescript/src/models/InfiniteOgrSourceDurationSpec.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface InfiniteOgrSourceDurationSpec + */ +export interface InfiniteOgrSourceDurationSpec { + /** + * + * @type {string} + * @memberof InfiniteOgrSourceDurationSpec + */ + type: InfiniteOgrSourceDurationSpecTypeEnum; +} + + +/** + * @export + */ +export const InfiniteOgrSourceDurationSpecTypeEnum = { + Infinite: 'infinite' +} as const; +export type InfiniteOgrSourceDurationSpecTypeEnum = typeof InfiniteOgrSourceDurationSpecTypeEnum[keyof typeof InfiniteOgrSourceDurationSpecTypeEnum]; + + +/** + * Check if a given object implements the InfiniteOgrSourceDurationSpec interface. + */ +export function instanceOfInfiniteOgrSourceDurationSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function InfiniteOgrSourceDurationSpecFromJSON(json: any): InfiniteOgrSourceDurationSpec { + return InfiniteOgrSourceDurationSpecFromJSONTyped(json, false); +} + +export function InfiniteOgrSourceDurationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): InfiniteOgrSourceDurationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function InfiniteOgrSourceDurationSpecToJSON(value?: InfiniteOgrSourceDurationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/typescript/src/models/InternalDataId.ts b/typescript/src/models/InternalDataId.ts new file mode 100644 index 00000000..873454b9 --- /dev/null +++ b/typescript/src/models/InternalDataId.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalDataId + */ +export interface InternalDataId { + /** + * + * @type {string} + * @memberof InternalDataId + */ + datasetId: string; + /** + * + * @type {string} + * @memberof InternalDataId + */ + type: InternalDataIdTypeEnum; +} + + +/** + * @export + */ +export const InternalDataIdTypeEnum = { + Internal: 'internal', + External: 'external' +} as const; +export type InternalDataIdTypeEnum = typeof InternalDataIdTypeEnum[keyof typeof InternalDataIdTypeEnum]; + + +/** + * Check if a given object implements the InternalDataId interface. + */ +export function instanceOfInternalDataId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "datasetId" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function InternalDataIdFromJSON(json: any): InternalDataId { + return InternalDataIdFromJSONTyped(json, false); +} + +export function InternalDataIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): InternalDataId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'datasetId': json['datasetId'], + 'type': json['type'], + }; +} + +export function InternalDataIdToJSON(value?: InternalDataId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'datasetId': value.datasetId, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Layer.ts b/typescript/src/models/Layer.ts new file mode 100644 index 00000000..08fbfdf2 --- /dev/null +++ b/typescript/src/models/Layer.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ProviderLayerId } from './ProviderLayerId'; +import { + ProviderLayerIdFromJSON, + ProviderLayerIdFromJSONTyped, + ProviderLayerIdToJSON, +} from './ProviderLayerId'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; +import type { Workflow } from './Workflow'; +import { + WorkflowFromJSON, + WorkflowFromJSONTyped, + WorkflowToJSON, +} from './Workflow'; + +/** + * + * @export + * @interface Layer + */ +export interface Layer { + /** + * + * @type {string} + * @memberof Layer + */ + description: string; + /** + * + * @type {ProviderLayerId} + * @memberof Layer + */ + id: ProviderLayerId; + /** + * metadata used for loading the data + * @type {{ [key: string]: string; }} + * @memberof Layer + */ + metadata?: { [key: string]: string; }; + /** + * + * @type {string} + * @memberof Layer + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof Layer + */ + properties?: Array>; + /** + * + * @type {Symbology} + * @memberof Layer + */ + symbology?: Symbology | null; + /** + * + * @type {Workflow} + * @memberof Layer + */ + workflow: Workflow; +} + +/** + * Check if a given object implements the Layer interface. + */ +export function instanceOfLayer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + + return isInstance; +} + +export function LayerFromJSON(json: any): Layer { + return LayerFromJSONTyped(json, false); +} + +export function LayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Layer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'id': ProviderLayerIdFromJSON(json['id']), + 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'symbology': !exists(json, 'symbology') ? undefined : SymbologyFromJSON(json['symbology']), + 'workflow': WorkflowFromJSON(json['workflow']), + }; +} + +export function LayerToJSON(value?: Layer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'id': ProviderLayerIdToJSON(value.id), + 'metadata': value.metadata, + 'name': value.name, + 'properties': value.properties, + 'symbology': SymbologyToJSON(value.symbology), + 'workflow': WorkflowToJSON(value.workflow), + }; +} + diff --git a/typescript/src/models/LayerCollection.ts b/typescript/src/models/LayerCollection.ts new file mode 100644 index 00000000..63ee6c9f --- /dev/null +++ b/typescript/src/models/LayerCollection.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { CollectionItem } from './CollectionItem'; +import { + CollectionItemFromJSON, + CollectionItemFromJSONTyped, + CollectionItemToJSON, +} from './CollectionItem'; +import type { ProviderLayerCollectionId } from './ProviderLayerCollectionId'; +import { + ProviderLayerCollectionIdFromJSON, + ProviderLayerCollectionIdFromJSONTyped, + ProviderLayerCollectionIdToJSON, +} from './ProviderLayerCollectionId'; + +/** + * + * @export + * @interface LayerCollection + */ +export interface LayerCollection { + /** + * + * @type {string} + * @memberof LayerCollection + */ + description: string; + /** + * a common label for the collection's entries, if there is any + * @type {string} + * @memberof LayerCollection + */ + entryLabel?: string | null; + /** + * + * @type {ProviderLayerCollectionId} + * @memberof LayerCollection + */ + id: ProviderLayerCollectionId; + /** + * + * @type {Array} + * @memberof LayerCollection + */ + items: Array; + /** + * + * @type {string} + * @memberof LayerCollection + */ + name: string; + /** + * + * @type {Array>} + * @memberof LayerCollection + */ + properties: Array>; +} + +/** + * Check if a given object implements the LayerCollection interface. + */ +export function instanceOfLayerCollection(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "items" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "properties" in value; + + return isInstance; +} + +export function LayerCollectionFromJSON(json: any): LayerCollection { + return LayerCollectionFromJSONTyped(json, false); +} + +export function LayerCollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerCollection { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'entryLabel': !exists(json, 'entryLabel') ? undefined : json['entryLabel'], + 'id': ProviderLayerCollectionIdFromJSON(json['id']), + 'items': ((json['items'] as Array).map(CollectionItemFromJSON)), + 'name': json['name'], + 'properties': json['properties'], + }; +} + +export function LayerCollectionToJSON(value?: LayerCollection | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'entryLabel': value.entryLabel, + 'id': ProviderLayerCollectionIdToJSON(value.id), + 'items': ((value.items as Array).map(CollectionItemToJSON)), + 'name': value.name, + 'properties': value.properties, + }; +} + diff --git a/typescript/src/models/LayerCollectionListing.ts b/typescript/src/models/LayerCollectionListing.ts new file mode 100644 index 00000000..6476eec6 --- /dev/null +++ b/typescript/src/models/LayerCollectionListing.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ProviderLayerCollectionId } from './ProviderLayerCollectionId'; +import { + ProviderLayerCollectionIdFromJSON, + ProviderLayerCollectionIdFromJSONTyped, + ProviderLayerCollectionIdToJSON, +} from './ProviderLayerCollectionId'; + +/** + * + * @export + * @interface LayerCollectionListing + */ +export interface LayerCollectionListing { + /** + * + * @type {string} + * @memberof LayerCollectionListing + */ + description: string; + /** + * + * @type {ProviderLayerCollectionId} + * @memberof LayerCollectionListing + */ + id: ProviderLayerCollectionId; + /** + * + * @type {string} + * @memberof LayerCollectionListing + */ + name: string; + /** + * + * @type {Array>} + * @memberof LayerCollectionListing + */ + properties?: Array>; +} + +/** + * Check if a given object implements the LayerCollectionListing interface. + */ +export function instanceOfLayerCollectionListing(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function LayerCollectionListingFromJSON(json: any): LayerCollectionListing { + return LayerCollectionListingFromJSONTyped(json, false); +} + +export function LayerCollectionListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerCollectionListing { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'id': ProviderLayerCollectionIdFromJSON(json['id']), + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + }; +} + +export function LayerCollectionListingToJSON(value?: LayerCollectionListing | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'id': ProviderLayerCollectionIdToJSON(value.id), + 'name': value.name, + 'properties': value.properties, + }; +} + diff --git a/typescript/src/models/LayerCollectionListingWithType.ts b/typescript/src/models/LayerCollectionListingWithType.ts new file mode 100644 index 00000000..89d69446 --- /dev/null +++ b/typescript/src/models/LayerCollectionListingWithType.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ProviderLayerCollectionId } from './ProviderLayerCollectionId'; +import { + ProviderLayerCollectionIdFromJSON, + ProviderLayerCollectionIdFromJSONTyped, + ProviderLayerCollectionIdToJSON, +} from './ProviderLayerCollectionId'; + +/** + * + * @export + * @interface LayerCollectionListingWithType + */ +export interface LayerCollectionListingWithType { + /** + * + * @type {string} + * @memberof LayerCollectionListingWithType + */ + description: string; + /** + * + * @type {ProviderLayerCollectionId} + * @memberof LayerCollectionListingWithType + */ + id: ProviderLayerCollectionId; + /** + * + * @type {string} + * @memberof LayerCollectionListingWithType + */ + name: string; + /** + * + * @type {Array>} + * @memberof LayerCollectionListingWithType + */ + properties?: Array>; + /** + * + * @type {string} + * @memberof LayerCollectionListingWithType + */ + type: LayerCollectionListingWithTypeTypeEnum; +} + + +/** + * @export + */ +export const LayerCollectionListingWithTypeTypeEnum = { + Collection: 'collection', + Layer: 'layer' +} as const; +export type LayerCollectionListingWithTypeTypeEnum = typeof LayerCollectionListingWithTypeTypeEnum[keyof typeof LayerCollectionListingWithTypeTypeEnum]; + + +/** + * Check if a given object implements the LayerCollectionListingWithType interface. + */ +export function instanceOfLayerCollectionListingWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerCollectionListingWithTypeFromJSON(json: any): LayerCollectionListingWithType { + return LayerCollectionListingWithTypeFromJSONTyped(json, false); +} + +export function LayerCollectionListingWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerCollectionListingWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'id': ProviderLayerCollectionIdFromJSON(json['id']), + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'type': json['type'], + }; +} + +export function LayerCollectionListingWithTypeToJSON(value?: LayerCollectionListingWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'id': ProviderLayerCollectionIdToJSON(value.id), + 'name': value.name, + 'properties': value.properties, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerCollectionResource.ts b/typescript/src/models/LayerCollectionResource.ts new file mode 100644 index 00000000..61c4b3e6 --- /dev/null +++ b/typescript/src/models/LayerCollectionResource.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LayerCollectionResource + */ +export interface LayerCollectionResource { + /** + * + * @type {string} + * @memberof LayerCollectionResource + */ + id: string; + /** + * + * @type {string} + * @memberof LayerCollectionResource + */ + type: LayerCollectionResourceTypeEnum; +} + + +/** + * @export + */ +export const LayerCollectionResourceTypeEnum = { + LayerCollection: 'layerCollection' +} as const; +export type LayerCollectionResourceTypeEnum = typeof LayerCollectionResourceTypeEnum[keyof typeof LayerCollectionResourceTypeEnum]; + + +/** + * Check if a given object implements the LayerCollectionResource interface. + */ +export function instanceOfLayerCollectionResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerCollectionResourceFromJSON(json: any): LayerCollectionResource { + return LayerCollectionResourceFromJSONTyped(json, false); +} + +export function LayerCollectionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerCollectionResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function LayerCollectionResourceToJSON(value?: LayerCollectionResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerCollectionResourceId.ts b/typescript/src/models/LayerCollectionResourceId.ts new file mode 100644 index 00000000..6e55ed74 --- /dev/null +++ b/typescript/src/models/LayerCollectionResourceId.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LayerCollectionResourceId + */ +export interface LayerCollectionResourceId { + /** + * + * @type {string} + * @memberof LayerCollectionResourceId + */ + id: string; + /** + * + * @type {string} + * @memberof LayerCollectionResourceId + */ + type: LayerCollectionResourceIdTypeEnum; +} + + +/** + * @export + */ +export const LayerCollectionResourceIdTypeEnum = { + LayerCollection: 'LayerCollection' +} as const; +export type LayerCollectionResourceIdTypeEnum = typeof LayerCollectionResourceIdTypeEnum[keyof typeof LayerCollectionResourceIdTypeEnum]; + + +/** + * Check if a given object implements the LayerCollectionResourceId interface. + */ +export function instanceOfLayerCollectionResourceId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerCollectionResourceIdFromJSON(json: any): LayerCollectionResourceId { + return LayerCollectionResourceIdFromJSONTyped(json, false); +} + +export function LayerCollectionResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerCollectionResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function LayerCollectionResourceIdToJSON(value?: LayerCollectionResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerListing.ts b/typescript/src/models/LayerListing.ts new file mode 100644 index 00000000..cde117ff --- /dev/null +++ b/typescript/src/models/LayerListing.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ProviderLayerId } from './ProviderLayerId'; +import { + ProviderLayerIdFromJSON, + ProviderLayerIdFromJSONTyped, + ProviderLayerIdToJSON, +} from './ProviderLayerId'; + +/** + * + * @export + * @interface LayerListing + */ +export interface LayerListing { + /** + * + * @type {string} + * @memberof LayerListing + */ + description: string; + /** + * + * @type {ProviderLayerId} + * @memberof LayerListing + */ + id: ProviderLayerId; + /** + * + * @type {string} + * @memberof LayerListing + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof LayerListing + */ + properties?: Array>; +} + +/** + * Check if a given object implements the LayerListing interface. + */ +export function instanceOfLayerListing(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function LayerListingFromJSON(json: any): LayerListing { + return LayerListingFromJSONTyped(json, false); +} + +export function LayerListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerListing { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'id': ProviderLayerIdFromJSON(json['id']), + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + }; +} + +export function LayerListingToJSON(value?: LayerListing | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'id': ProviderLayerIdToJSON(value.id), + 'name': value.name, + 'properties': value.properties, + }; +} + diff --git a/typescript/src/models/LayerListingWithType.ts b/typescript/src/models/LayerListingWithType.ts new file mode 100644 index 00000000..9f36335e --- /dev/null +++ b/typescript/src/models/LayerListingWithType.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ProviderLayerId } from './ProviderLayerId'; +import { + ProviderLayerIdFromJSON, + ProviderLayerIdFromJSONTyped, + ProviderLayerIdToJSON, +} from './ProviderLayerId'; + +/** + * + * @export + * @interface LayerListingWithType + */ +export interface LayerListingWithType { + /** + * + * @type {string} + * @memberof LayerListingWithType + */ + description: string; + /** + * + * @type {ProviderLayerId} + * @memberof LayerListingWithType + */ + id: ProviderLayerId; + /** + * + * @type {string} + * @memberof LayerListingWithType + */ + name: string; + /** + * properties, for instance, to be rendered in the UI + * @type {Array>} + * @memberof LayerListingWithType + */ + properties?: Array>; + /** + * + * @type {string} + * @memberof LayerListingWithType + */ + type: LayerListingWithTypeTypeEnum; +} + + +/** + * @export + */ +export const LayerListingWithTypeTypeEnum = { + Layer: 'layer' +} as const; +export type LayerListingWithTypeTypeEnum = typeof LayerListingWithTypeTypeEnum[keyof typeof LayerListingWithTypeTypeEnum]; + + +/** + * Check if a given object implements the LayerListingWithType interface. + */ +export function instanceOfLayerListingWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerListingWithTypeFromJSON(json: any): LayerListingWithType { + return LayerListingWithTypeFromJSONTyped(json, false); +} + +export function LayerListingWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerListingWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': json['description'], + 'id': ProviderLayerIdFromJSON(json['id']), + 'name': json['name'], + 'properties': !exists(json, 'properties') ? undefined : json['properties'], + 'type': json['type'], + }; +} + +export function LayerListingWithTypeToJSON(value?: LayerListingWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'id': ProviderLayerIdToJSON(value.id), + 'name': value.name, + 'properties': value.properties, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerResource.ts b/typescript/src/models/LayerResource.ts new file mode 100644 index 00000000..b4b49c05 --- /dev/null +++ b/typescript/src/models/LayerResource.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LayerResource + */ +export interface LayerResource { + /** + * + * @type {string} + * @memberof LayerResource + */ + id: string; + /** + * + * @type {string} + * @memberof LayerResource + */ + type: LayerResourceTypeEnum; +} + + +/** + * @export + */ +export const LayerResourceTypeEnum = { + Layer: 'layer' +} as const; +export type LayerResourceTypeEnum = typeof LayerResourceTypeEnum[keyof typeof LayerResourceTypeEnum]; + + +/** + * Check if a given object implements the LayerResource interface. + */ +export function instanceOfLayerResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerResourceFromJSON(json: any): LayerResource { + return LayerResourceFromJSONTyped(json, false); +} + +export function LayerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function LayerResourceToJSON(value?: LayerResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerResourceId.ts b/typescript/src/models/LayerResourceId.ts new file mode 100644 index 00000000..3ba633dc --- /dev/null +++ b/typescript/src/models/LayerResourceId.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LayerResourceId + */ +export interface LayerResourceId { + /** + * + * @type {string} + * @memberof LayerResourceId + */ + id: string; + /** + * + * @type {string} + * @memberof LayerResourceId + */ + type: LayerResourceIdTypeEnum; +} + + +/** + * @export + */ +export const LayerResourceIdTypeEnum = { + Layer: 'Layer' +} as const; +export type LayerResourceIdTypeEnum = typeof LayerResourceIdTypeEnum[keyof typeof LayerResourceIdTypeEnum]; + + +/** + * Check if a given object implements the LayerResourceId interface. + */ +export function instanceOfLayerResourceId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LayerResourceIdFromJSON(json: any): LayerResourceId { + return LayerResourceIdFromJSONTyped(json, false); +} + +export function LayerResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function LayerResourceIdToJSON(value?: LayerResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LayerUpdate.ts b/typescript/src/models/LayerUpdate.ts new file mode 100644 index 00000000..7ffd4c9a --- /dev/null +++ b/typescript/src/models/LayerUpdate.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + ProjectLayer, + instanceOfProjectLayer, + ProjectLayerFromJSON, + ProjectLayerFromJSONTyped, + ProjectLayerToJSON, +} from './ProjectLayer'; +import { + string, + instanceOfstring, + stringFromJSON, + stringFromJSONTyped, + stringToJSON, +} from './string'; + +/** + * @type LayerUpdate + * + * @export + */ +export type LayerUpdate = ProjectLayer | string; + +export function LayerUpdateFromJSON(json: any): LayerUpdate { + return LayerUpdateFromJSONTyped(json, false); +} + +export function LayerUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerUpdate { + if ((json === undefined) || (json === null)) { + return json; + } + return { ...ProjectLayerFromJSONTyped(json, true), ...stringFromJSONTyped(json, true) }; +} + +export function LayerUpdateToJSON(value?: LayerUpdate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + + if (instanceOfProjectLayer(value)) { + return ProjectLayerToJSON(value as ProjectLayer); + } + if (instanceOfstring(value)) { + return stringToJSON(value as string); + } + + return {}; +} + diff --git a/typescript/src/models/LayerVisibility.ts b/typescript/src/models/LayerVisibility.ts new file mode 100644 index 00000000..f806d4f2 --- /dev/null +++ b/typescript/src/models/LayerVisibility.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface LayerVisibility + */ +export interface LayerVisibility { + /** + * + * @type {boolean} + * @memberof LayerVisibility + */ + data: boolean; + /** + * + * @type {boolean} + * @memberof LayerVisibility + */ + legend: boolean; +} + +/** + * Check if a given object implements the LayerVisibility interface. + */ +export function instanceOfLayerVisibility(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "data" in value; + isInstance = isInstance && "legend" in value; + + return isInstance; +} + +export function LayerVisibilityFromJSON(json: any): LayerVisibility { + return LayerVisibilityFromJSONTyped(json, false); +} + +export function LayerVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayerVisibility { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': json['data'], + 'legend': json['legend'], + }; +} + +export function LayerVisibilityToJSON(value?: LayerVisibility | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'data': value.data, + 'legend': value.legend, + }; +} + diff --git a/typescript/src/models/LineSymbology.ts b/typescript/src/models/LineSymbology.ts new file mode 100644 index 00000000..70e4bc83 --- /dev/null +++ b/typescript/src/models/LineSymbology.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface LineSymbology + */ +export interface LineSymbology { + /** + * + * @type {boolean} + * @memberof LineSymbology + */ + autoSimplified: boolean; + /** + * + * @type {StrokeParam} + * @memberof LineSymbology + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof LineSymbology + */ + text?: TextSymbology | null; +} + +/** + * Check if a given object implements the LineSymbology interface. + */ +export function instanceOfLineSymbology(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "autoSimplified" in value; + isInstance = isInstance && "stroke" in value; + + return isInstance; +} + +export function LineSymbologyFromJSON(json: any): LineSymbology { + return LineSymbologyFromJSONTyped(json, false); +} + +export function LineSymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineSymbology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'autoSimplified': json['autoSimplified'], + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + }; +} + +export function LineSymbologyToJSON(value?: LineSymbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'autoSimplified': value.autoSimplified, + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + }; +} + diff --git a/typescript/src/models/LineSymbologyWithType.ts b/typescript/src/models/LineSymbologyWithType.ts new file mode 100644 index 00000000..ea183d87 --- /dev/null +++ b/typescript/src/models/LineSymbologyWithType.ts @@ -0,0 +1,115 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface LineSymbologyWithType + */ +export interface LineSymbologyWithType { + /** + * + * @type {boolean} + * @memberof LineSymbologyWithType + */ + autoSimplified: boolean; + /** + * + * @type {StrokeParam} + * @memberof LineSymbologyWithType + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof LineSymbologyWithType + */ + text?: TextSymbology | null; + /** + * + * @type {string} + * @memberof LineSymbologyWithType + */ + type: LineSymbologyWithTypeTypeEnum; +} + + +/** + * @export + */ +export const LineSymbologyWithTypeTypeEnum = { + Line: 'line' +} as const; +export type LineSymbologyWithTypeTypeEnum = typeof LineSymbologyWithTypeTypeEnum[keyof typeof LineSymbologyWithTypeTypeEnum]; + + +/** + * Check if a given object implements the LineSymbologyWithType interface. + */ +export function instanceOfLineSymbologyWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "autoSimplified" in value; + isInstance = isInstance && "stroke" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function LineSymbologyWithTypeFromJSON(json: any): LineSymbologyWithType { + return LineSymbologyWithTypeFromJSONTyped(json, false); +} + +export function LineSymbologyWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineSymbologyWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'autoSimplified': json['autoSimplified'], + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + 'type': json['type'], + }; +} + +export function LineSymbologyWithTypeToJSON(value?: LineSymbologyWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'autoSimplified': value.autoSimplified, + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/LinearGradient.ts b/typescript/src/models/LinearGradient.ts new file mode 100644 index 00000000..bb1dfc9e --- /dev/null +++ b/typescript/src/models/LinearGradient.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Breakpoint } from './Breakpoint'; +import { + BreakpointFromJSON, + BreakpointFromJSONTyped, + BreakpointToJSON, +} from './Breakpoint'; + +/** + * + * @export + * @interface LinearGradient + */ +export interface LinearGradient { + /** + * + * @type {Array} + * @memberof LinearGradient + */ + breakpoints: Array; + /** + * + * @type {Array} + * @memberof LinearGradient + */ + noDataColor: Array; + /** + * + * @type {Array} + * @memberof LinearGradient + */ + overColor: Array; + /** + * + * @type {Array} + * @memberof LinearGradient + */ + underColor: Array; +} + +/** + * Check if a given object implements the LinearGradient interface. + */ +export function instanceOfLinearGradient(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "breakpoints" in value; + isInstance = isInstance && "noDataColor" in value; + isInstance = isInstance && "overColor" in value; + isInstance = isInstance && "underColor" in value; + + return isInstance; +} + +export function LinearGradientFromJSON(json: any): LinearGradient { + return LinearGradientFromJSONTyped(json, false); +} + +export function LinearGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinearGradient { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'breakpoints': ((json['breakpoints'] as Array).map(BreakpointFromJSON)), + 'noDataColor': json['noDataColor'], + 'overColor': json['overColor'], + 'underColor': json['underColor'], + }; +} + +export function LinearGradientToJSON(value?: LinearGradient | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'breakpoints': ((value.breakpoints as Array).map(BreakpointToJSON)), + 'noDataColor': value.noDataColor, + 'overColor': value.overColor, + 'underColor': value.underColor, + }; +} + diff --git a/typescript/src/models/LinearGradientWithType.ts b/typescript/src/models/LinearGradientWithType.ts new file mode 100644 index 00000000..775e21c7 --- /dev/null +++ b/typescript/src/models/LinearGradientWithType.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Breakpoint } from './Breakpoint'; +import { + BreakpointFromJSON, + BreakpointFromJSONTyped, + BreakpointToJSON, +} from './Breakpoint'; + +/** + * + * @export + * @interface LinearGradientWithType + */ +export interface LinearGradientWithType { + /** + * + * @type {Array} + * @memberof LinearGradientWithType + */ + breakpoints: Array; + /** + * + * @type {Array} + * @memberof LinearGradientWithType + */ + noDataColor: Array; + /** + * + * @type {Array} + * @memberof LinearGradientWithType + */ + overColor: Array; + /** + * + * @type {string} + * @memberof LinearGradientWithType + */ + type: LinearGradientWithTypeTypeEnum; + /** + * + * @type {Array} + * @memberof LinearGradientWithType + */ + underColor: Array; +} + + +/** + * @export + */ +export const LinearGradientWithTypeTypeEnum = { + LinearGradient: 'linearGradient', + LogarithmicGradient: 'logarithmicGradient', + Palette: 'palette', + Rgba: 'rgba' +} as const; +export type LinearGradientWithTypeTypeEnum = typeof LinearGradientWithTypeTypeEnum[keyof typeof LinearGradientWithTypeTypeEnum]; + + +/** + * Check if a given object implements the LinearGradientWithType interface. + */ +export function instanceOfLinearGradientWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "breakpoints" in value; + isInstance = isInstance && "noDataColor" in value; + isInstance = isInstance && "overColor" in value; + isInstance = isInstance && "type" in value; + isInstance = isInstance && "underColor" in value; + + return isInstance; +} + +export function LinearGradientWithTypeFromJSON(json: any): LinearGradientWithType { + return LinearGradientWithTypeFromJSONTyped(json, false); +} + +export function LinearGradientWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinearGradientWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'breakpoints': ((json['breakpoints'] as Array).map(BreakpointFromJSON)), + 'noDataColor': json['noDataColor'], + 'overColor': json['overColor'], + 'type': json['type'], + 'underColor': json['underColor'], + }; +} + +export function LinearGradientWithTypeToJSON(value?: LinearGradientWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'breakpoints': ((value.breakpoints as Array).map(BreakpointToJSON)), + 'noDataColor': value.noDataColor, + 'overColor': value.overColor, + 'type': value.type, + 'underColor': value.underColor, + }; +} + diff --git a/typescript/src/models/LogarithmicGradient.ts b/typescript/src/models/LogarithmicGradient.ts new file mode 100644 index 00000000..90e9674c --- /dev/null +++ b/typescript/src/models/LogarithmicGradient.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Breakpoint } from './Breakpoint'; +import { + BreakpointFromJSON, + BreakpointFromJSONTyped, + BreakpointToJSON, +} from './Breakpoint'; + +/** + * + * @export + * @interface LogarithmicGradient + */ +export interface LogarithmicGradient { + /** + * + * @type {Array} + * @memberof LogarithmicGradient + */ + breakpoints: Array; + /** + * + * @type {Array} + * @memberof LogarithmicGradient + */ + noDataColor: Array; + /** + * + * @type {Array} + * @memberof LogarithmicGradient + */ + overColor: Array; + /** + * + * @type {Array} + * @memberof LogarithmicGradient + */ + underColor: Array; +} + +/** + * Check if a given object implements the LogarithmicGradient interface. + */ +export function instanceOfLogarithmicGradient(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "breakpoints" in value; + isInstance = isInstance && "noDataColor" in value; + isInstance = isInstance && "overColor" in value; + isInstance = isInstance && "underColor" in value; + + return isInstance; +} + +export function LogarithmicGradientFromJSON(json: any): LogarithmicGradient { + return LogarithmicGradientFromJSONTyped(json, false); +} + +export function LogarithmicGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogarithmicGradient { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'breakpoints': ((json['breakpoints'] as Array).map(BreakpointFromJSON)), + 'noDataColor': json['noDataColor'], + 'overColor': json['overColor'], + 'underColor': json['underColor'], + }; +} + +export function LogarithmicGradientToJSON(value?: LogarithmicGradient | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'breakpoints': ((value.breakpoints as Array).map(BreakpointToJSON)), + 'noDataColor': value.noDataColor, + 'overColor': value.overColor, + 'underColor': value.underColor, + }; +} + diff --git a/typescript/src/models/LogarithmicGradientWithType.ts b/typescript/src/models/LogarithmicGradientWithType.ts new file mode 100644 index 00000000..7c4fd95a --- /dev/null +++ b/typescript/src/models/LogarithmicGradientWithType.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Breakpoint } from './Breakpoint'; +import { + BreakpointFromJSON, + BreakpointFromJSONTyped, + BreakpointToJSON, +} from './Breakpoint'; + +/** + * + * @export + * @interface LogarithmicGradientWithType + */ +export interface LogarithmicGradientWithType { + /** + * + * @type {Array} + * @memberof LogarithmicGradientWithType + */ + breakpoints: Array; + /** + * + * @type {Array} + * @memberof LogarithmicGradientWithType + */ + noDataColor: Array; + /** + * + * @type {Array} + * @memberof LogarithmicGradientWithType + */ + overColor: Array; + /** + * + * @type {string} + * @memberof LogarithmicGradientWithType + */ + type: LogarithmicGradientWithTypeTypeEnum; + /** + * + * @type {Array} + * @memberof LogarithmicGradientWithType + */ + underColor: Array; +} + + +/** + * @export + */ +export const LogarithmicGradientWithTypeTypeEnum = { + LogarithmicGradient: 'logarithmicGradient' +} as const; +export type LogarithmicGradientWithTypeTypeEnum = typeof LogarithmicGradientWithTypeTypeEnum[keyof typeof LogarithmicGradientWithTypeTypeEnum]; + + +/** + * Check if a given object implements the LogarithmicGradientWithType interface. + */ +export function instanceOfLogarithmicGradientWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "breakpoints" in value; + isInstance = isInstance && "noDataColor" in value; + isInstance = isInstance && "overColor" in value; + isInstance = isInstance && "type" in value; + isInstance = isInstance && "underColor" in value; + + return isInstance; +} + +export function LogarithmicGradientWithTypeFromJSON(json: any): LogarithmicGradientWithType { + return LogarithmicGradientWithTypeFromJSONTyped(json, false); +} + +export function LogarithmicGradientWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogarithmicGradientWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'breakpoints': ((json['breakpoints'] as Array).map(BreakpointFromJSON)), + 'noDataColor': json['noDataColor'], + 'overColor': json['overColor'], + 'type': json['type'], + 'underColor': json['underColor'], + }; +} + +export function LogarithmicGradientWithTypeToJSON(value?: LogarithmicGradientWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'breakpoints': ((value.breakpoints as Array).map(BreakpointToJSON)), + 'noDataColor': value.noDataColor, + 'overColor': value.overColor, + 'type': value.type, + 'underColor': value.underColor, + }; +} + diff --git a/typescript/src/models/Measurement.ts b/typescript/src/models/Measurement.ts new file mode 100644 index 00000000..fbc0f2f5 --- /dev/null +++ b/typescript/src/models/Measurement.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + ClassificationMeasurementWithType, + instanceOfClassificationMeasurementWithType, + ClassificationMeasurementWithTypeFromJSON, + ClassificationMeasurementWithTypeFromJSONTyped, + ClassificationMeasurementWithTypeToJSON, +} from './ClassificationMeasurementWithType'; +import { + ContinuousMeasurementWithType, + instanceOfContinuousMeasurementWithType, + ContinuousMeasurementWithTypeFromJSON, + ContinuousMeasurementWithTypeFromJSONTyped, + ContinuousMeasurementWithTypeToJSON, +} from './ContinuousMeasurementWithType'; +import { + UnitlessMeasurement, + instanceOfUnitlessMeasurement, + UnitlessMeasurementFromJSON, + UnitlessMeasurementFromJSONTyped, + UnitlessMeasurementToJSON, +} from './UnitlessMeasurement'; + +/** + * @type Measurement + * + * @export + */ +export type Measurement = { type: 'classification' } & ClassificationMeasurementWithType | { type: 'continuous' } & ContinuousMeasurementWithType | { type: 'unitless' } & UnitlessMeasurement; + +export function MeasurementFromJSON(json: any): Measurement { + return MeasurementFromJSONTyped(json, false); +} + +export function MeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Measurement { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'classification': + return {...ClassificationMeasurementWithTypeFromJSONTyped(json, true), type: 'classification'}; + case 'continuous': + return {...ContinuousMeasurementWithTypeFromJSONTyped(json, true), type: 'continuous'}; + case 'unitless': + return {...UnitlessMeasurementFromJSONTyped(json, true), type: 'unitless'}; + default: + throw new Error(`No variant of Measurement exists with 'type=${json['type']}'`); + } +} + +export function MeasurementToJSON(value?: Measurement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'classification': + return ClassificationMeasurementWithTypeToJSON(value); + case 'continuous': + return ContinuousMeasurementWithTypeToJSON(value); + case 'unitless': + return UnitlessMeasurementToJSON(value); + default: + throw new Error(`No variant of Measurement exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/MetaDataDefinition.ts b/typescript/src/models/MetaDataDefinition.ts new file mode 100644 index 00000000..48faf946 --- /dev/null +++ b/typescript/src/models/MetaDataDefinition.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + GdalMetaDataListWithType, + instanceOfGdalMetaDataListWithType, + GdalMetaDataListWithTypeFromJSON, + GdalMetaDataListWithTypeFromJSONTyped, + GdalMetaDataListWithTypeToJSON, +} from './GdalMetaDataListWithType'; +import { + GdalMetaDataRegularWithType, + instanceOfGdalMetaDataRegularWithType, + GdalMetaDataRegularWithTypeFromJSON, + GdalMetaDataRegularWithTypeFromJSONTyped, + GdalMetaDataRegularWithTypeToJSON, +} from './GdalMetaDataRegularWithType'; +import { + GdalMetaDataStaticWithType, + instanceOfGdalMetaDataStaticWithType, + GdalMetaDataStaticWithTypeFromJSON, + GdalMetaDataStaticWithTypeFromJSONTyped, + GdalMetaDataStaticWithTypeToJSON, +} from './GdalMetaDataStaticWithType'; +import { + GdalMetadataNetCdfCfWithType, + instanceOfGdalMetadataNetCdfCfWithType, + GdalMetadataNetCdfCfWithTypeFromJSON, + GdalMetadataNetCdfCfWithTypeFromJSONTyped, + GdalMetadataNetCdfCfWithTypeToJSON, +} from './GdalMetadataNetCdfCfWithType'; +import { + MockMetaDataWithType, + instanceOfMockMetaDataWithType, + MockMetaDataWithTypeFromJSON, + MockMetaDataWithTypeFromJSONTyped, + MockMetaDataWithTypeToJSON, +} from './MockMetaDataWithType'; +import { + OgrMetaDataWithType, + instanceOfOgrMetaDataWithType, + OgrMetaDataWithTypeFromJSON, + OgrMetaDataWithTypeFromJSONTyped, + OgrMetaDataWithTypeToJSON, +} from './OgrMetaDataWithType'; + +/** + * @type MetaDataDefinition + * + * @export + */ +export type MetaDataDefinition = { type: 'GdalMetaDataList' } & GdalMetaDataListWithType | { type: 'GdalMetaDataRegular' } & GdalMetaDataRegularWithType | { type: 'GdalMetadataNetCdfCf' } & GdalMetadataNetCdfCfWithType | { type: 'GdalStatic' } & GdalMetaDataStaticWithType | { type: 'MockMetaData' } & MockMetaDataWithType | { type: 'OgrMetaData' } & OgrMetaDataWithType; + +export function MetaDataDefinitionFromJSON(json: any): MetaDataDefinition { + return MetaDataDefinitionFromJSONTyped(json, false); +} + +export function MetaDataDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetaDataDefinition { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'GdalMetaDataList': + return {...GdalMetaDataListWithTypeFromJSONTyped(json, true), type: 'GdalMetaDataList'}; + case 'GdalMetaDataRegular': + return {...GdalMetaDataRegularWithTypeFromJSONTyped(json, true), type: 'GdalMetaDataRegular'}; + case 'GdalMetadataNetCdfCf': + return {...GdalMetadataNetCdfCfWithTypeFromJSONTyped(json, true), type: 'GdalMetadataNetCdfCf'}; + case 'GdalStatic': + return {...GdalMetaDataStaticWithTypeFromJSONTyped(json, true), type: 'GdalStatic'}; + case 'MockMetaData': + return {...MockMetaDataWithTypeFromJSONTyped(json, true), type: 'MockMetaData'}; + case 'OgrMetaData': + return {...OgrMetaDataWithTypeFromJSONTyped(json, true), type: 'OgrMetaData'}; + default: + throw new Error(`No variant of MetaDataDefinition exists with 'type=${json['type']}'`); + } +} + +export function MetaDataDefinitionToJSON(value?: MetaDataDefinition | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'GdalMetaDataList': + return GdalMetaDataListWithTypeToJSON(value); + case 'GdalMetaDataRegular': + return GdalMetaDataRegularWithTypeToJSON(value); + case 'GdalMetadataNetCdfCf': + return GdalMetadataNetCdfCfWithTypeToJSON(value); + case 'GdalStatic': + return GdalMetaDataStaticWithTypeToJSON(value); + case 'MockMetaData': + return MockMetaDataWithTypeToJSON(value); + case 'OgrMetaData': + return OgrMetaDataWithTypeToJSON(value); + default: + throw new Error(`No variant of MetaDataDefinition exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/MetaDataSuggestion.ts b/typescript/src/models/MetaDataSuggestion.ts new file mode 100644 index 00000000..961423c6 --- /dev/null +++ b/typescript/src/models/MetaDataSuggestion.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MetaDataDefinition } from './MetaDataDefinition'; +import { + MetaDataDefinitionFromJSON, + MetaDataDefinitionFromJSONTyped, + MetaDataDefinitionToJSON, +} from './MetaDataDefinition'; + +/** + * + * @export + * @interface MetaDataSuggestion + */ +export interface MetaDataSuggestion { + /** + * + * @type {string} + * @memberof MetaDataSuggestion + */ + layerName: string; + /** + * + * @type {string} + * @memberof MetaDataSuggestion + */ + mainFile: string; + /** + * + * @type {MetaDataDefinition} + * @memberof MetaDataSuggestion + */ + metaData: MetaDataDefinition; +} + +/** + * Check if a given object implements the MetaDataSuggestion interface. + */ +export function instanceOfMetaDataSuggestion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "layerName" in value; + isInstance = isInstance && "mainFile" in value; + isInstance = isInstance && "metaData" in value; + + return isInstance; +} + +export function MetaDataSuggestionFromJSON(json: any): MetaDataSuggestion { + return MetaDataSuggestionFromJSONTyped(json, false); +} + +export function MetaDataSuggestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetaDataSuggestion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'layerName': json['layerName'], + 'mainFile': json['mainFile'], + 'metaData': MetaDataDefinitionFromJSON(json['metaData']), + }; +} + +export function MetaDataSuggestionToJSON(value?: MetaDataSuggestion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'layerName': value.layerName, + 'mainFile': value.mainFile, + 'metaData': MetaDataDefinitionToJSON(value.metaData), + }; +} + diff --git a/typescript/src/models/MockDatasetDataSourceLoadingInfo.ts b/typescript/src/models/MockDatasetDataSourceLoadingInfo.ts new file mode 100644 index 00000000..192c2d45 --- /dev/null +++ b/typescript/src/models/MockDatasetDataSourceLoadingInfo.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * + * @export + * @interface MockDatasetDataSourceLoadingInfo + */ +export interface MockDatasetDataSourceLoadingInfo { + /** + * + * @type {Array} + * @memberof MockDatasetDataSourceLoadingInfo + */ + points: Array; +} + +/** + * Check if a given object implements the MockDatasetDataSourceLoadingInfo interface. + */ +export function instanceOfMockDatasetDataSourceLoadingInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "points" in value; + + return isInstance; +} + +export function MockDatasetDataSourceLoadingInfoFromJSON(json: any): MockDatasetDataSourceLoadingInfo { + return MockDatasetDataSourceLoadingInfoFromJSONTyped(json, false); +} + +export function MockDatasetDataSourceLoadingInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MockDatasetDataSourceLoadingInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'points': ((json['points'] as Array).map(Coordinate2DFromJSON)), + }; +} + +export function MockDatasetDataSourceLoadingInfoToJSON(value?: MockDatasetDataSourceLoadingInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'points': ((value.points as Array).map(Coordinate2DToJSON)), + }; +} + diff --git a/typescript/src/models/MockMetaData.ts b/typescript/src/models/MockMetaData.ts new file mode 100644 index 00000000..c9ec168f --- /dev/null +++ b/typescript/src/models/MockMetaData.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MockDatasetDataSourceLoadingInfo } from './MockDatasetDataSourceLoadingInfo'; +import { + MockDatasetDataSourceLoadingInfoFromJSON, + MockDatasetDataSourceLoadingInfoFromJSONTyped, + MockDatasetDataSourceLoadingInfoToJSON, +} from './MockDatasetDataSourceLoadingInfo'; +import type { VectorResultDescriptor } from './VectorResultDescriptor'; +import { + VectorResultDescriptorFromJSON, + VectorResultDescriptorFromJSONTyped, + VectorResultDescriptorToJSON, +} from './VectorResultDescriptor'; + +/** + * + * @export + * @interface MockMetaData + */ +export interface MockMetaData { + /** + * + * @type {MockDatasetDataSourceLoadingInfo} + * @memberof MockMetaData + */ + loadingInfo: MockDatasetDataSourceLoadingInfo; + /** + * + * @type {VectorResultDescriptor} + * @memberof MockMetaData + */ + resultDescriptor: VectorResultDescriptor; +} + +/** + * Check if a given object implements the MockMetaData interface. + */ +export function instanceOfMockMetaData(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "loadingInfo" in value; + isInstance = isInstance && "resultDescriptor" in value; + + return isInstance; +} + +export function MockMetaDataFromJSON(json: any): MockMetaData { + return MockMetaDataFromJSONTyped(json, false); +} + +export function MockMetaDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): MockMetaData { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadingInfo': MockDatasetDataSourceLoadingInfoFromJSON(json['loadingInfo']), + 'resultDescriptor': VectorResultDescriptorFromJSON(json['resultDescriptor']), + }; +} + +export function MockMetaDataToJSON(value?: MockMetaData | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'loadingInfo': MockDatasetDataSourceLoadingInfoToJSON(value.loadingInfo), + 'resultDescriptor': VectorResultDescriptorToJSON(value.resultDescriptor), + }; +} + diff --git a/typescript/src/models/MockMetaDataWithType.ts b/typescript/src/models/MockMetaDataWithType.ts new file mode 100644 index 00000000..990de451 --- /dev/null +++ b/typescript/src/models/MockMetaDataWithType.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MockDatasetDataSourceLoadingInfo } from './MockDatasetDataSourceLoadingInfo'; +import { + MockDatasetDataSourceLoadingInfoFromJSON, + MockDatasetDataSourceLoadingInfoFromJSONTyped, + MockDatasetDataSourceLoadingInfoToJSON, +} from './MockDatasetDataSourceLoadingInfo'; +import type { VectorResultDescriptor } from './VectorResultDescriptor'; +import { + VectorResultDescriptorFromJSON, + VectorResultDescriptorFromJSONTyped, + VectorResultDescriptorToJSON, +} from './VectorResultDescriptor'; + +/** + * + * @export + * @interface MockMetaDataWithType + */ +export interface MockMetaDataWithType { + /** + * + * @type {MockDatasetDataSourceLoadingInfo} + * @memberof MockMetaDataWithType + */ + loadingInfo: MockDatasetDataSourceLoadingInfo; + /** + * + * @type {VectorResultDescriptor} + * @memberof MockMetaDataWithType + */ + resultDescriptor: VectorResultDescriptor; + /** + * + * @type {string} + * @memberof MockMetaDataWithType + */ + type: MockMetaDataWithTypeTypeEnum; +} + + +/** + * @export + */ +export const MockMetaDataWithTypeTypeEnum = { + MockMetaData: 'MockMetaData', + OgrMetaData: 'OgrMetaData', + GdalMetaDataRegular: 'GdalMetaDataRegular', + GdalStatic: 'GdalStatic', + GdalMetadataNetCdfCf: 'GdalMetadataNetCdfCf', + GdalMetaDataList: 'GdalMetaDataList' +} as const; +export type MockMetaDataWithTypeTypeEnum = typeof MockMetaDataWithTypeTypeEnum[keyof typeof MockMetaDataWithTypeTypeEnum]; + + +/** + * Check if a given object implements the MockMetaDataWithType interface. + */ +export function instanceOfMockMetaDataWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "loadingInfo" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function MockMetaDataWithTypeFromJSON(json: any): MockMetaDataWithType { + return MockMetaDataWithTypeFromJSONTyped(json, false); +} + +export function MockMetaDataWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MockMetaDataWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadingInfo': MockDatasetDataSourceLoadingInfoFromJSON(json['loadingInfo']), + 'resultDescriptor': VectorResultDescriptorFromJSON(json['resultDescriptor']), + 'type': json['type'], + }; +} + +export function MockMetaDataWithTypeToJSON(value?: MockMetaDataWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'loadingInfo': MockDatasetDataSourceLoadingInfoToJSON(value.loadingInfo), + 'resultDescriptor': VectorResultDescriptorToJSON(value.resultDescriptor), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/ModelIdResourceId.ts b/typescript/src/models/ModelIdResourceId.ts new file mode 100644 index 00000000..75fcc073 --- /dev/null +++ b/typescript/src/models/ModelIdResourceId.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ModelIdResourceId + */ +export interface ModelIdResourceId { + /** + * + * @type {string} + * @memberof ModelIdResourceId + */ + id: string; + /** + * + * @type {string} + * @memberof ModelIdResourceId + */ + type: ModelIdResourceIdTypeEnum; +} + + +/** + * @export + */ +export const ModelIdResourceIdTypeEnum = { + ModelId: 'ModelId' +} as const; +export type ModelIdResourceIdTypeEnum = typeof ModelIdResourceIdTypeEnum[keyof typeof ModelIdResourceIdTypeEnum]; + + +/** + * Check if a given object implements the ModelIdResourceId interface. + */ +export function instanceOfModelIdResourceId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ModelIdResourceIdFromJSON(json: any): ModelIdResourceId { + return ModelIdResourceIdFromJSONTyped(json, false); +} + +export function ModelIdResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelIdResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function ModelIdResourceIdToJSON(value?: ModelIdResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/MultiLineString.ts b/typescript/src/models/MultiLineString.ts new file mode 100644 index 00000000..26fee9e8 --- /dev/null +++ b/typescript/src/models/MultiLineString.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * + * @export + * @interface MultiLineString + */ +export interface MultiLineString { + /** + * + * @type {Array>} + * @memberof MultiLineString + */ + coordinates: Array>; +} + +/** + * Check if a given object implements the MultiLineString interface. + */ +export function instanceOfMultiLineString(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "coordinates" in value; + + return isInstance; +} + +export function MultiLineStringFromJSON(json: any): MultiLineString { + return MultiLineStringFromJSONTyped(json, false); +} + +export function MultiLineStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'coordinates': json['coordinates'], + }; +} + +export function MultiLineStringToJSON(value?: MultiLineString | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'coordinates': value.coordinates, + }; +} + diff --git a/typescript/src/models/MultiPoint.ts b/typescript/src/models/MultiPoint.ts new file mode 100644 index 00000000..bc9ddd6f --- /dev/null +++ b/typescript/src/models/MultiPoint.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * + * @export + * @interface MultiPoint + */ +export interface MultiPoint { + /** + * + * @type {Array} + * @memberof MultiPoint + */ + coordinates: Array; +} + +/** + * Check if a given object implements the MultiPoint interface. + */ +export function instanceOfMultiPoint(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "coordinates" in value; + + return isInstance; +} + +export function MultiPointFromJSON(json: any): MultiPoint { + return MultiPointFromJSONTyped(json, false); +} + +export function MultiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'coordinates': ((json['coordinates'] as Array).map(Coordinate2DFromJSON)), + }; +} + +export function MultiPointToJSON(value?: MultiPoint | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'coordinates': ((value.coordinates as Array).map(Coordinate2DToJSON)), + }; +} + diff --git a/typescript/src/models/MultiPolygon.ts b/typescript/src/models/MultiPolygon.ts new file mode 100644 index 00000000..c40becdb --- /dev/null +++ b/typescript/src/models/MultiPolygon.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * + * @export + * @interface MultiPolygon + */ +export interface MultiPolygon { + /** + * + * @type {Array>>} + * @memberof MultiPolygon + */ + polygons: Array>>; +} + +/** + * Check if a given object implements the MultiPolygon interface. + */ +export function instanceOfMultiPolygon(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "polygons" in value; + + return isInstance; +} + +export function MultiPolygonFromJSON(json: any): MultiPolygon { + return MultiPolygonFromJSONTyped(json, false); +} + +export function MultiPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'polygons': json['polygons'], + }; +} + +export function MultiPolygonToJSON(value?: MultiPolygon | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'polygons': value.polygons, + }; +} + diff --git a/typescript/src/models/NoneOgrSourceDatasetTimeType.ts b/typescript/src/models/NoneOgrSourceDatasetTimeType.ts new file mode 100644 index 00000000..cdb17d46 --- /dev/null +++ b/typescript/src/models/NoneOgrSourceDatasetTimeType.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface NoneOgrSourceDatasetTimeType + */ +export interface NoneOgrSourceDatasetTimeType { + /** + * + * @type {string} + * @memberof NoneOgrSourceDatasetTimeType + */ + type: NoneOgrSourceDatasetTimeTypeTypeEnum; +} + + +/** + * @export + */ +export const NoneOgrSourceDatasetTimeTypeTypeEnum = { + None: 'none' +} as const; +export type NoneOgrSourceDatasetTimeTypeTypeEnum = typeof NoneOgrSourceDatasetTimeTypeTypeEnum[keyof typeof NoneOgrSourceDatasetTimeTypeTypeEnum]; + + +/** + * Check if a given object implements the NoneOgrSourceDatasetTimeType interface. + */ +export function instanceOfNoneOgrSourceDatasetTimeType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function NoneOgrSourceDatasetTimeTypeFromJSON(json: any): NoneOgrSourceDatasetTimeType { + return NoneOgrSourceDatasetTimeTypeFromJSONTyped(json, false); +} + +export function NoneOgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NoneOgrSourceDatasetTimeType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function NoneOgrSourceDatasetTimeTypeToJSON(value?: NoneOgrSourceDatasetTimeType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/typescript/src/models/NumberParam.ts b/typescript/src/models/NumberParam.ts new file mode 100644 index 00000000..346e1e9c --- /dev/null +++ b/typescript/src/models/NumberParam.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + DerivedNumberWithType, + instanceOfDerivedNumberWithType, + DerivedNumberWithTypeFromJSON, + DerivedNumberWithTypeFromJSONTyped, + DerivedNumberWithTypeToJSON, +} from './DerivedNumberWithType'; +import { + StaticNumberParam, + instanceOfStaticNumberParam, + StaticNumberParamFromJSON, + StaticNumberParamFromJSONTyped, + StaticNumberParamToJSON, +} from './StaticNumberParam'; + +/** + * @type NumberParam + * + * @export + */ +export type NumberParam = { type: 'derived' } & DerivedNumberWithType | { type: 'static' } & StaticNumberParam; + +export function NumberParamFromJSON(json: any): NumberParam { + return NumberParamFromJSONTyped(json, false); +} + +export function NumberParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): NumberParam { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'derived': + return {...DerivedNumberWithTypeFromJSONTyped(json, true), type: 'derived'}; + case 'static': + return {...StaticNumberParamFromJSONTyped(json, true), type: 'static'}; + default: + throw new Error(`No variant of NumberParam exists with 'type=${json['type']}'`); + } +} + +export function NumberParamToJSON(value?: NumberParam | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'derived': + return DerivedNumberWithTypeToJSON(value); + case 'static': + return StaticNumberParamToJSON(value); + default: + throw new Error(`No variant of NumberParam exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/OgrMetaData.ts b/typescript/src/models/OgrMetaData.ts new file mode 100644 index 00000000..bc9cf374 --- /dev/null +++ b/typescript/src/models/OgrMetaData.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceDataset } from './OgrSourceDataset'; +import { + OgrSourceDatasetFromJSON, + OgrSourceDatasetFromJSONTyped, + OgrSourceDatasetToJSON, +} from './OgrSourceDataset'; +import type { VectorResultDescriptor } from './VectorResultDescriptor'; +import { + VectorResultDescriptorFromJSON, + VectorResultDescriptorFromJSONTyped, + VectorResultDescriptorToJSON, +} from './VectorResultDescriptor'; + +/** + * + * @export + * @interface OgrMetaData + */ +export interface OgrMetaData { + /** + * + * @type {OgrSourceDataset} + * @memberof OgrMetaData + */ + loadingInfo: OgrSourceDataset; + /** + * + * @type {VectorResultDescriptor} + * @memberof OgrMetaData + */ + resultDescriptor: VectorResultDescriptor; +} + +/** + * Check if a given object implements the OgrMetaData interface. + */ +export function instanceOfOgrMetaData(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "loadingInfo" in value; + isInstance = isInstance && "resultDescriptor" in value; + + return isInstance; +} + +export function OgrMetaDataFromJSON(json: any): OgrMetaData { + return OgrMetaDataFromJSONTyped(json, false); +} + +export function OgrMetaDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrMetaData { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadingInfo': OgrSourceDatasetFromJSON(json['loadingInfo']), + 'resultDescriptor': VectorResultDescriptorFromJSON(json['resultDescriptor']), + }; +} + +export function OgrMetaDataToJSON(value?: OgrMetaData | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'loadingInfo': OgrSourceDatasetToJSON(value.loadingInfo), + 'resultDescriptor': VectorResultDescriptorToJSON(value.resultDescriptor), + }; +} + diff --git a/typescript/src/models/OgrMetaDataWithType.ts b/typescript/src/models/OgrMetaDataWithType.ts new file mode 100644 index 00000000..7ded8a3b --- /dev/null +++ b/typescript/src/models/OgrMetaDataWithType.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceDataset } from './OgrSourceDataset'; +import { + OgrSourceDatasetFromJSON, + OgrSourceDatasetFromJSONTyped, + OgrSourceDatasetToJSON, +} from './OgrSourceDataset'; +import type { VectorResultDescriptor } from './VectorResultDescriptor'; +import { + VectorResultDescriptorFromJSON, + VectorResultDescriptorFromJSONTyped, + VectorResultDescriptorToJSON, +} from './VectorResultDescriptor'; + +/** + * + * @export + * @interface OgrMetaDataWithType + */ +export interface OgrMetaDataWithType { + /** + * + * @type {OgrSourceDataset} + * @memberof OgrMetaDataWithType + */ + loadingInfo: OgrSourceDataset; + /** + * + * @type {VectorResultDescriptor} + * @memberof OgrMetaDataWithType + */ + resultDescriptor: VectorResultDescriptor; + /** + * + * @type {string} + * @memberof OgrMetaDataWithType + */ + type: OgrMetaDataWithTypeTypeEnum; +} + + +/** + * @export + */ +export const OgrMetaDataWithTypeTypeEnum = { + OgrMetaData: 'OgrMetaData' +} as const; +export type OgrMetaDataWithTypeTypeEnum = typeof OgrMetaDataWithTypeTypeEnum[keyof typeof OgrMetaDataWithTypeTypeEnum]; + + +/** + * Check if a given object implements the OgrMetaDataWithType interface. + */ +export function instanceOfOgrMetaDataWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "loadingInfo" in value; + isInstance = isInstance && "resultDescriptor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function OgrMetaDataWithTypeFromJSON(json: any): OgrMetaDataWithType { + return OgrMetaDataWithTypeFromJSONTyped(json, false); +} + +export function OgrMetaDataWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrMetaDataWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'loadingInfo': OgrSourceDatasetFromJSON(json['loadingInfo']), + 'resultDescriptor': VectorResultDescriptorFromJSON(json['resultDescriptor']), + 'type': json['type'], + }; +} + +export function OgrMetaDataWithTypeToJSON(value?: OgrMetaDataWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'loadingInfo': OgrSourceDatasetToJSON(value.loadingInfo), + 'resultDescriptor': VectorResultDescriptorToJSON(value.resultDescriptor), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/OgrSourceColumnSpec.ts b/typescript/src/models/OgrSourceColumnSpec.ts new file mode 100644 index 00000000..881aa10f --- /dev/null +++ b/typescript/src/models/OgrSourceColumnSpec.ts @@ -0,0 +1,137 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { FormatSpecifics } from './FormatSpecifics'; +import { + FormatSpecificsFromJSON, + FormatSpecificsFromJSONTyped, + FormatSpecificsToJSON, +} from './FormatSpecifics'; + +/** + * + * @export + * @interface OgrSourceColumnSpec + */ +export interface OgrSourceColumnSpec { + /** + * + * @type {Array} + * @memberof OgrSourceColumnSpec + */ + bool?: Array; + /** + * + * @type {Array} + * @memberof OgrSourceColumnSpec + */ + datetime?: Array; + /** + * + * @type {Array} + * @memberof OgrSourceColumnSpec + */ + _float?: Array; + /** + * + * @type {FormatSpecifics} + * @memberof OgrSourceColumnSpec + */ + formatSpecifics?: FormatSpecifics | null; + /** + * + * @type {Array} + * @memberof OgrSourceColumnSpec + */ + _int?: Array; + /** + * + * @type {{ [key: string]: string; }} + * @memberof OgrSourceColumnSpec + */ + rename?: { [key: string]: string; } | null; + /** + * + * @type {Array} + * @memberof OgrSourceColumnSpec + */ + text?: Array; + /** + * + * @type {string} + * @memberof OgrSourceColumnSpec + */ + x: string; + /** + * + * @type {string} + * @memberof OgrSourceColumnSpec + */ + y?: string | null; +} + +/** + * Check if a given object implements the OgrSourceColumnSpec interface. + */ +export function instanceOfOgrSourceColumnSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "x" in value; + + return isInstance; +} + +export function OgrSourceColumnSpecFromJSON(json: any): OgrSourceColumnSpec { + return OgrSourceColumnSpecFromJSONTyped(json, false); +} + +export function OgrSourceColumnSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceColumnSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bool': !exists(json, 'bool') ? undefined : json['bool'], + 'datetime': !exists(json, 'datetime') ? undefined : json['datetime'], + '_float': !exists(json, 'float') ? undefined : json['float'], + 'formatSpecifics': !exists(json, 'formatSpecifics') ? undefined : FormatSpecificsFromJSON(json['formatSpecifics']), + '_int': !exists(json, 'int') ? undefined : json['int'], + 'rename': !exists(json, 'rename') ? undefined : json['rename'], + 'text': !exists(json, 'text') ? undefined : json['text'], + 'x': json['x'], + 'y': !exists(json, 'y') ? undefined : json['y'], + }; +} + +export function OgrSourceColumnSpecToJSON(value?: OgrSourceColumnSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bool': value.bool, + 'datetime': value.datetime, + 'float': value._float, + 'formatSpecifics': FormatSpecificsToJSON(value.formatSpecifics), + 'int': value._int, + 'rename': value.rename, + 'text': value.text, + 'x': value.x, + 'y': value.y, + }; +} + diff --git a/typescript/src/models/OgrSourceDataset.ts b/typescript/src/models/OgrSourceDataset.ts new file mode 100644 index 00000000..fa60823e --- /dev/null +++ b/typescript/src/models/OgrSourceDataset.ts @@ -0,0 +1,187 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceColumnSpec } from './OgrSourceColumnSpec'; +import { + OgrSourceColumnSpecFromJSON, + OgrSourceColumnSpecFromJSONTyped, + OgrSourceColumnSpecToJSON, +} from './OgrSourceColumnSpec'; +import type { OgrSourceDatasetTimeType } from './OgrSourceDatasetTimeType'; +import { + OgrSourceDatasetTimeTypeFromJSON, + OgrSourceDatasetTimeTypeFromJSONTyped, + OgrSourceDatasetTimeTypeToJSON, +} from './OgrSourceDatasetTimeType'; +import type { OgrSourceErrorSpec } from './OgrSourceErrorSpec'; +import { + OgrSourceErrorSpecFromJSON, + OgrSourceErrorSpecFromJSONTyped, + OgrSourceErrorSpecToJSON, +} from './OgrSourceErrorSpec'; +import type { TypedGeometry } from './TypedGeometry'; +import { + TypedGeometryFromJSON, + TypedGeometryFromJSONTyped, + TypedGeometryToJSON, +} from './TypedGeometry'; +import type { VectorDataType } from './VectorDataType'; +import { + VectorDataTypeFromJSON, + VectorDataTypeFromJSONTyped, + VectorDataTypeToJSON, +} from './VectorDataType'; + +/** + * + * @export + * @interface OgrSourceDataset + */ +export interface OgrSourceDataset { + /** + * + * @type {string} + * @memberof OgrSourceDataset + */ + attributeQuery?: string | null; + /** + * + * @type {number} + * @memberof OgrSourceDataset + */ + cacheTtl?: number; + /** + * + * @type {OgrSourceColumnSpec} + * @memberof OgrSourceDataset + */ + columns?: OgrSourceColumnSpec | null; + /** + * + * @type {VectorDataType} + * @memberof OgrSourceDataset + */ + dataType?: VectorDataType | null; + /** + * + * @type {TypedGeometry} + * @memberof OgrSourceDataset + */ + defaultGeometry?: TypedGeometry | null; + /** + * + * @type {string} + * @memberof OgrSourceDataset + */ + fileName: string; + /** + * + * @type {boolean} + * @memberof OgrSourceDataset + */ + forceOgrSpatialFilter?: boolean; + /** + * + * @type {boolean} + * @memberof OgrSourceDataset + */ + forceOgrTimeFilter?: boolean; + /** + * + * @type {string} + * @memberof OgrSourceDataset + */ + layerName: string; + /** + * + * @type {OgrSourceErrorSpec} + * @memberof OgrSourceDataset + */ + onError: OgrSourceErrorSpec; + /** + * + * @type {string} + * @memberof OgrSourceDataset + */ + sqlQuery?: string | null; + /** + * + * @type {OgrSourceDatasetTimeType} + * @memberof OgrSourceDataset + */ + time?: OgrSourceDatasetTimeType; +} + +/** + * Check if a given object implements the OgrSourceDataset interface. + */ +export function instanceOfOgrSourceDataset(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fileName" in value; + isInstance = isInstance && "layerName" in value; + isInstance = isInstance && "onError" in value; + + return isInstance; +} + +export function OgrSourceDatasetFromJSON(json: any): OgrSourceDataset { + return OgrSourceDatasetFromJSONTyped(json, false); +} + +export function OgrSourceDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceDataset { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attributeQuery': !exists(json, 'attributeQuery') ? undefined : json['attributeQuery'], + 'cacheTtl': !exists(json, 'cacheTtl') ? undefined : json['cacheTtl'], + 'columns': !exists(json, 'columns') ? undefined : OgrSourceColumnSpecFromJSON(json['columns']), + 'dataType': !exists(json, 'dataType') ? undefined : VectorDataTypeFromJSON(json['dataType']), + 'defaultGeometry': !exists(json, 'defaultGeometry') ? undefined : TypedGeometryFromJSON(json['defaultGeometry']), + 'fileName': json['fileName'], + 'forceOgrSpatialFilter': !exists(json, 'forceOgrSpatialFilter') ? undefined : json['forceOgrSpatialFilter'], + 'forceOgrTimeFilter': !exists(json, 'forceOgrTimeFilter') ? undefined : json['forceOgrTimeFilter'], + 'layerName': json['layerName'], + 'onError': OgrSourceErrorSpecFromJSON(json['onError']), + 'sqlQuery': !exists(json, 'sqlQuery') ? undefined : json['sqlQuery'], + 'time': !exists(json, 'time') ? undefined : OgrSourceDatasetTimeTypeFromJSON(json['time']), + }; +} + +export function OgrSourceDatasetToJSON(value?: OgrSourceDataset | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attributeQuery': value.attributeQuery, + 'cacheTtl': value.cacheTtl, + 'columns': OgrSourceColumnSpecToJSON(value.columns), + 'dataType': VectorDataTypeToJSON(value.dataType), + 'defaultGeometry': TypedGeometryToJSON(value.defaultGeometry), + 'fileName': value.fileName, + 'forceOgrSpatialFilter': value.forceOgrSpatialFilter, + 'forceOgrTimeFilter': value.forceOgrTimeFilter, + 'layerName': value.layerName, + 'onError': OgrSourceErrorSpecToJSON(value.onError), + 'sqlQuery': value.sqlQuery, + 'time': OgrSourceDatasetTimeTypeToJSON(value.time), + }; +} + diff --git a/typescript/src/models/OgrSourceDatasetTimeType.ts b/typescript/src/models/OgrSourceDatasetTimeType.ts new file mode 100644 index 00000000..846d7d3d --- /dev/null +++ b/typescript/src/models/OgrSourceDatasetTimeType.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + NoneOgrSourceDatasetTimeType, + instanceOfNoneOgrSourceDatasetTimeType, + NoneOgrSourceDatasetTimeTypeFromJSON, + NoneOgrSourceDatasetTimeTypeFromJSONTyped, + NoneOgrSourceDatasetTimeTypeToJSON, +} from './NoneOgrSourceDatasetTimeType'; +import { + StartDurationOgrSourceDatasetTimeType, + instanceOfStartDurationOgrSourceDatasetTimeType, + StartDurationOgrSourceDatasetTimeTypeFromJSON, + StartDurationOgrSourceDatasetTimeTypeFromJSONTyped, + StartDurationOgrSourceDatasetTimeTypeToJSON, +} from './StartDurationOgrSourceDatasetTimeType'; +import { + StartEndOgrSourceDatasetTimeType, + instanceOfStartEndOgrSourceDatasetTimeType, + StartEndOgrSourceDatasetTimeTypeFromJSON, + StartEndOgrSourceDatasetTimeTypeFromJSONTyped, + StartEndOgrSourceDatasetTimeTypeToJSON, +} from './StartEndOgrSourceDatasetTimeType'; +import { + StartOgrSourceDatasetTimeType, + instanceOfStartOgrSourceDatasetTimeType, + StartOgrSourceDatasetTimeTypeFromJSON, + StartOgrSourceDatasetTimeTypeFromJSONTyped, + StartOgrSourceDatasetTimeTypeToJSON, +} from './StartOgrSourceDatasetTimeType'; + +/** + * @type OgrSourceDatasetTimeType + * + * @export + */ +export type OgrSourceDatasetTimeType = { type: 'none' } & NoneOgrSourceDatasetTimeType | { type: 'start' } & StartOgrSourceDatasetTimeType | { type: 'startDuration' } & StartDurationOgrSourceDatasetTimeType | { type: 'startEnd' } & StartEndOgrSourceDatasetTimeType; + +export function OgrSourceDatasetTimeTypeFromJSON(json: any): OgrSourceDatasetTimeType { + return OgrSourceDatasetTimeTypeFromJSONTyped(json, false); +} + +export function OgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceDatasetTimeType { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'none': + return {...NoneOgrSourceDatasetTimeTypeFromJSONTyped(json, true), type: 'none'}; + case 'start': + return {...StartOgrSourceDatasetTimeTypeFromJSONTyped(json, true), type: 'start'}; + case 'startDuration': + return {...StartDurationOgrSourceDatasetTimeTypeFromJSONTyped(json, true), type: 'startDuration'}; + case 'startEnd': + return {...StartEndOgrSourceDatasetTimeTypeFromJSONTyped(json, true), type: 'startEnd'}; + default: + throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`); + } +} + +export function OgrSourceDatasetTimeTypeToJSON(value?: OgrSourceDatasetTimeType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'none': + return NoneOgrSourceDatasetTimeTypeToJSON(value); + case 'start': + return StartOgrSourceDatasetTimeTypeToJSON(value); + case 'startDuration': + return StartDurationOgrSourceDatasetTimeTypeToJSON(value); + case 'startEnd': + return StartEndOgrSourceDatasetTimeTypeToJSON(value); + default: + throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/OgrSourceDurationSpec.ts b/typescript/src/models/OgrSourceDurationSpec.ts new file mode 100644 index 00000000..2f208b49 --- /dev/null +++ b/typescript/src/models/OgrSourceDurationSpec.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + InfiniteOgrSourceDurationSpec, + instanceOfInfiniteOgrSourceDurationSpec, + InfiniteOgrSourceDurationSpecFromJSON, + InfiniteOgrSourceDurationSpecFromJSONTyped, + InfiniteOgrSourceDurationSpecToJSON, +} from './InfiniteOgrSourceDurationSpec'; +import { + TimeStepWithType, + instanceOfTimeStepWithType, + TimeStepWithTypeFromJSON, + TimeStepWithTypeFromJSONTyped, + TimeStepWithTypeToJSON, +} from './TimeStepWithType'; +import { + ZeroOgrSourceDurationSpec, + instanceOfZeroOgrSourceDurationSpec, + ZeroOgrSourceDurationSpecFromJSON, + ZeroOgrSourceDurationSpecFromJSONTyped, + ZeroOgrSourceDurationSpecToJSON, +} from './ZeroOgrSourceDurationSpec'; + +/** + * @type OgrSourceDurationSpec + * + * @export + */ +export type OgrSourceDurationSpec = { type: 'infinite' } & InfiniteOgrSourceDurationSpec | { type: 'value' } & TimeStepWithType | { type: 'zero' } & ZeroOgrSourceDurationSpec; + +export function OgrSourceDurationSpecFromJSON(json: any): OgrSourceDurationSpec { + return OgrSourceDurationSpecFromJSONTyped(json, false); +} + +export function OgrSourceDurationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceDurationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'infinite': + return {...InfiniteOgrSourceDurationSpecFromJSONTyped(json, true), type: 'infinite'}; + case 'value': + return {...TimeStepWithTypeFromJSONTyped(json, true), type: 'value'}; + case 'zero': + return {...ZeroOgrSourceDurationSpecFromJSONTyped(json, true), type: 'zero'}; + default: + throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${json['type']}'`); + } +} + +export function OgrSourceDurationSpecToJSON(value?: OgrSourceDurationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'infinite': + return InfiniteOgrSourceDurationSpecToJSON(value); + case 'value': + return TimeStepWithTypeToJSON(value); + case 'zero': + return ZeroOgrSourceDurationSpecToJSON(value); + default: + throw new Error(`No variant of OgrSourceDurationSpec exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/OgrSourceErrorSpec.ts b/typescript/src/models/OgrSourceErrorSpec.ts new file mode 100644 index 00000000..32a6746c --- /dev/null +++ b/typescript/src/models/OgrSourceErrorSpec.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const OgrSourceErrorSpec = { + Ignore: 'ignore', + Abort: 'abort' +} as const; +export type OgrSourceErrorSpec = typeof OgrSourceErrorSpec[keyof typeof OgrSourceErrorSpec]; + + +export function OgrSourceErrorSpecFromJSON(json: any): OgrSourceErrorSpec { + return OgrSourceErrorSpecFromJSONTyped(json, false); +} + +export function OgrSourceErrorSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceErrorSpec { + return json as OgrSourceErrorSpec; +} + +export function OgrSourceErrorSpecToJSON(value?: OgrSourceErrorSpec | null): any { + return value as any; +} + diff --git a/typescript/src/models/OgrSourceTimeFormat.ts b/typescript/src/models/OgrSourceTimeFormat.ts new file mode 100644 index 00000000..1335acd4 --- /dev/null +++ b/typescript/src/models/OgrSourceTimeFormat.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + AutoOgrSourceTimeFormat, + instanceOfAutoOgrSourceTimeFormat, + AutoOgrSourceTimeFormatFromJSON, + AutoOgrSourceTimeFormatFromJSONTyped, + AutoOgrSourceTimeFormatToJSON, +} from './AutoOgrSourceTimeFormat'; +import { + CustomOgrSourceTimeFormat, + instanceOfCustomOgrSourceTimeFormat, + CustomOgrSourceTimeFormatFromJSON, + CustomOgrSourceTimeFormatFromJSONTyped, + CustomOgrSourceTimeFormatToJSON, +} from './CustomOgrSourceTimeFormat'; +import { + UnixTimeStampOgrSourceTimeFormat, + instanceOfUnixTimeStampOgrSourceTimeFormat, + UnixTimeStampOgrSourceTimeFormatFromJSON, + UnixTimeStampOgrSourceTimeFormatFromJSONTyped, + UnixTimeStampOgrSourceTimeFormatToJSON, +} from './UnixTimeStampOgrSourceTimeFormat'; + +/** + * @type OgrSourceTimeFormat + * + * @export + */ +export type OgrSourceTimeFormat = { format: 'auto' } & AutoOgrSourceTimeFormat | { format: 'custom' } & CustomOgrSourceTimeFormat | { format: 'unixTimeStamp' } & UnixTimeStampOgrSourceTimeFormat; + +export function OgrSourceTimeFormatFromJSON(json: any): OgrSourceTimeFormat { + return OgrSourceTimeFormatFromJSONTyped(json, false); +} + +export function OgrSourceTimeFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceTimeFormat { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['format']) { + case 'auto': + return {...AutoOgrSourceTimeFormatFromJSONTyped(json, true), format: 'auto'}; + case 'custom': + return {...CustomOgrSourceTimeFormatFromJSONTyped(json, true), format: 'custom'}; + case 'unixTimeStamp': + return {...UnixTimeStampOgrSourceTimeFormatFromJSONTyped(json, true), format: 'unixTimeStamp'}; + default: + throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${json['format']}'`); + } +} + +export function OgrSourceTimeFormatToJSON(value?: OgrSourceTimeFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['format']) { + case 'auto': + return AutoOgrSourceTimeFormatToJSON(value); + case 'custom': + return CustomOgrSourceTimeFormatToJSON(value); + case 'unixTimeStamp': + return UnixTimeStampOgrSourceTimeFormatToJSON(value); + default: + throw new Error(`No variant of OgrSourceTimeFormat exists with 'format=${value['format']}'`); + } + +} + diff --git a/typescript/src/models/OrderBy.ts b/typescript/src/models/OrderBy.ts new file mode 100644 index 00000000..757e2d42 --- /dev/null +++ b/typescript/src/models/OrderBy.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const OrderBy = { + NameAsc: 'NameAsc', + NameDesc: 'NameDesc' +} as const; +export type OrderBy = typeof OrderBy[keyof typeof OrderBy]; + + +export function OrderByFromJSON(json: any): OrderBy { + return OrderByFromJSONTyped(json, false); +} + +export function OrderByFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderBy { + return json as OrderBy; +} + +export function OrderByToJSON(value?: OrderBy | null): any { + return value as any; +} + diff --git a/typescript/src/models/PaletteColorizer.ts b/typescript/src/models/PaletteColorizer.ts new file mode 100644 index 00000000..4e69836b --- /dev/null +++ b/typescript/src/models/PaletteColorizer.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface PaletteColorizer + */ +export interface PaletteColorizer { + /** + * A map from value to color + * + * It is assumed that is has at least one and at most 256 entries. + * @type {{ [key: string]: Array; }} + * @memberof PaletteColorizer + */ + colors: { [key: string]: Array; }; + /** + * + * @type {Array} + * @memberof PaletteColorizer + */ + defaultColor: Array; + /** + * + * @type {Array} + * @memberof PaletteColorizer + */ + noDataColor: Array; + /** + * + * @type {string} + * @memberof PaletteColorizer + */ + type: PaletteColorizerTypeEnum; +} + + +/** + * @export + */ +export const PaletteColorizerTypeEnum = { + Palette: 'palette' +} as const; +export type PaletteColorizerTypeEnum = typeof PaletteColorizerTypeEnum[keyof typeof PaletteColorizerTypeEnum]; + + +/** + * Check if a given object implements the PaletteColorizer interface. + */ +export function instanceOfPaletteColorizer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "colors" in value; + isInstance = isInstance && "defaultColor" in value; + isInstance = isInstance && "noDataColor" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function PaletteColorizerFromJSON(json: any): PaletteColorizer { + return PaletteColorizerFromJSONTyped(json, false); +} + +export function PaletteColorizerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaletteColorizer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'colors': json['colors'], + 'defaultColor': json['defaultColor'], + 'noDataColor': json['noDataColor'], + 'type': json['type'], + }; +} + +export function PaletteColorizerToJSON(value?: PaletteColorizer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'colors': value.colors, + 'defaultColor': value.defaultColor, + 'noDataColor': value.noDataColor, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Permission.ts b/typescript/src/models/Permission.ts new file mode 100644 index 00000000..d57ff5b4 --- /dev/null +++ b/typescript/src/models/Permission.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const Permission = { + Read: 'Read', + Owner: 'Owner' +} as const; +export type Permission = typeof Permission[keyof typeof Permission]; + + +export function PermissionFromJSON(json: any): Permission { + return PermissionFromJSONTyped(json, false); +} + +export function PermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Permission { + return json as Permission; +} + +export function PermissionToJSON(value?: Permission | null): any { + return value as any; +} + diff --git a/typescript/src/models/PermissionRequest.ts b/typescript/src/models/PermissionRequest.ts new file mode 100644 index 00000000..acb4cfe4 --- /dev/null +++ b/typescript/src/models/PermissionRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Permission } from './Permission'; +import { + PermissionFromJSON, + PermissionFromJSONTyped, + PermissionToJSON, +} from './Permission'; +import type { Resource } from './Resource'; +import { + ResourceFromJSON, + ResourceFromJSONTyped, + ResourceToJSON, +} from './Resource'; + +/** + * Request for adding a new permission to the given role on the given resource + * @export + * @interface PermissionRequest + */ +export interface PermissionRequest { + /** + * + * @type {Permission} + * @memberof PermissionRequest + */ + permission: Permission; + /** + * + * @type {Resource} + * @memberof PermissionRequest + */ + resource: Resource; + /** + * + * @type {string} + * @memberof PermissionRequest + */ + roleId: string; +} + +/** + * Check if a given object implements the PermissionRequest interface. + */ +export function instanceOfPermissionRequest(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "permission" in value; + isInstance = isInstance && "resource" in value; + isInstance = isInstance && "roleId" in value; + + return isInstance; +} + +export function PermissionRequestFromJSON(json: any): PermissionRequest { + return PermissionRequestFromJSONTyped(json, false); +} + +export function PermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionRequest { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'permission': PermissionFromJSON(json['permission']), + 'resource': ResourceFromJSON(json['resource']), + 'roleId': json['roleId'], + }; +} + +export function PermissionRequestToJSON(value?: PermissionRequest | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'permission': PermissionToJSON(value.permission), + 'resource': ResourceToJSON(value.resource), + 'roleId': value.roleId, + }; +} + diff --git a/typescript/src/models/Plot.ts b/typescript/src/models/Plot.ts new file mode 100644 index 00000000..b828cf67 --- /dev/null +++ b/typescript/src/models/Plot.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Plot + */ +export interface Plot { + /** + * + * @type {string} + * @memberof Plot + */ + name: string; + /** + * + * @type {string} + * @memberof Plot + */ + workflow: string; +} + +/** + * Check if a given object implements the Plot interface. + */ +export function instanceOfPlot(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "workflow" in value; + + return isInstance; +} + +export function PlotFromJSON(json: any): Plot { + return PlotFromJSONTyped(json, false); +} + +export function PlotFromJSONTyped(json: any, ignoreDiscriminator: boolean): Plot { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'workflow': json['workflow'], + }; +} + +export function PlotToJSON(value?: Plot | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'workflow': value.workflow, + }; +} + diff --git a/typescript/src/models/PlotOutputFormat.ts b/typescript/src/models/PlotOutputFormat.ts new file mode 100644 index 00000000..349e3a00 --- /dev/null +++ b/typescript/src/models/PlotOutputFormat.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const PlotOutputFormat = { + JsonPlain: 'JsonPlain', + JsonVega: 'JsonVega', + ImagePng: 'ImagePng' +} as const; +export type PlotOutputFormat = typeof PlotOutputFormat[keyof typeof PlotOutputFormat]; + + +export function PlotOutputFormatFromJSON(json: any): PlotOutputFormat { + return PlotOutputFormatFromJSONTyped(json, false); +} + +export function PlotOutputFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlotOutputFormat { + return json as PlotOutputFormat; +} + +export function PlotOutputFormatToJSON(value?: PlotOutputFormat | null): any { + return value as any; +} + diff --git a/typescript/src/models/PlotQueryRectangle.ts b/typescript/src/models/PlotQueryRectangle.ts new file mode 100644 index 00000000..36af5b0b --- /dev/null +++ b/typescript/src/models/PlotQueryRectangle.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { SpatialResolution } from './SpatialResolution'; +import { + SpatialResolutionFromJSON, + SpatialResolutionFromJSONTyped, + SpatialResolutionToJSON, +} from './SpatialResolution'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A spatio-temporal rectangle with a specified resolution + * @export + * @interface PlotQueryRectangle + */ +export interface PlotQueryRectangle { + /** + * + * @type {BoundingBox2D} + * @memberof PlotQueryRectangle + */ + spatialBounds: BoundingBox2D; + /** + * + * @type {SpatialResolution} + * @memberof PlotQueryRectangle + */ + spatialResolution: SpatialResolution; + /** + * + * @type {TimeInterval} + * @memberof PlotQueryRectangle + */ + timeInterval: TimeInterval; +} + +/** + * Check if a given object implements the PlotQueryRectangle interface. + */ +export function instanceOfPlotQueryRectangle(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spatialBounds" in value; + isInstance = isInstance && "spatialResolution" in value; + isInstance = isInstance && "timeInterval" in value; + + return isInstance; +} + +export function PlotQueryRectangleFromJSON(json: any): PlotQueryRectangle { + return PlotQueryRectangleFromJSONTyped(json, false); +} + +export function PlotQueryRectangleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlotQueryRectangle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'spatialBounds': BoundingBox2DFromJSON(json['spatialBounds']), + 'spatialResolution': SpatialResolutionFromJSON(json['spatialResolution']), + 'timeInterval': TimeIntervalFromJSON(json['timeInterval']), + }; +} + +export function PlotQueryRectangleToJSON(value?: PlotQueryRectangle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'spatialBounds': BoundingBox2DToJSON(value.spatialBounds), + 'spatialResolution': SpatialResolutionToJSON(value.spatialResolution), + 'timeInterval': TimeIntervalToJSON(value.timeInterval), + }; +} + diff --git a/typescript/src/models/PlotResultDescriptor.ts b/typescript/src/models/PlotResultDescriptor.ts new file mode 100644 index 00000000..895942d4 --- /dev/null +++ b/typescript/src/models/PlotResultDescriptor.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A `ResultDescriptor` for plot queries + * @export + * @interface PlotResultDescriptor + */ +export interface PlotResultDescriptor { + /** + * + * @type {BoundingBox2D} + * @memberof PlotResultDescriptor + */ + bbox?: BoundingBox2D | null; + /** + * + * @type {string} + * @memberof PlotResultDescriptor + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof PlotResultDescriptor + */ + time?: TimeInterval | null; +} + +/** + * Check if a given object implements the PlotResultDescriptor interface. + */ +export function instanceOfPlotResultDescriptor(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spatialReference" in value; + + return isInstance; +} + +export function PlotResultDescriptorFromJSON(json: any): PlotResultDescriptor { + return PlotResultDescriptorFromJSONTyped(json, false); +} + +export function PlotResultDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlotResultDescriptor { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bbox': !exists(json, 'bbox') ? undefined : BoundingBox2DFromJSON(json['bbox']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + }; +} + +export function PlotResultDescriptorToJSON(value?: PlotResultDescriptor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bbox': BoundingBox2DToJSON(value.bbox), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + }; +} + diff --git a/typescript/src/models/PlotResultDescriptorWithType.ts b/typescript/src/models/PlotResultDescriptorWithType.ts new file mode 100644 index 00000000..9ce51ee6 --- /dev/null +++ b/typescript/src/models/PlotResultDescriptorWithType.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A `ResultDescriptor` for plot queries + * @export + * @interface PlotResultDescriptorWithType + */ +export interface PlotResultDescriptorWithType { + /** + * + * @type {BoundingBox2D} + * @memberof PlotResultDescriptorWithType + */ + bbox?: BoundingBox2D | null; + /** + * + * @type {string} + * @memberof PlotResultDescriptorWithType + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof PlotResultDescriptorWithType + */ + time?: TimeInterval | null; + /** + * + * @type {string} + * @memberof PlotResultDescriptorWithType + */ + type: PlotResultDescriptorWithTypeTypeEnum; +} + + +/** + * @export + */ +export const PlotResultDescriptorWithTypeTypeEnum = { + Plot: 'plot' +} as const; +export type PlotResultDescriptorWithTypeTypeEnum = typeof PlotResultDescriptorWithTypeTypeEnum[keyof typeof PlotResultDescriptorWithTypeTypeEnum]; + + +/** + * Check if a given object implements the PlotResultDescriptorWithType interface. + */ +export function instanceOfPlotResultDescriptorWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spatialReference" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function PlotResultDescriptorWithTypeFromJSON(json: any): PlotResultDescriptorWithType { + return PlotResultDescriptorWithTypeFromJSONTyped(json, false); +} + +export function PlotResultDescriptorWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlotResultDescriptorWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bbox': !exists(json, 'bbox') ? undefined : BoundingBox2DFromJSON(json['bbox']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + 'type': json['type'], + }; +} + +export function PlotResultDescriptorWithTypeToJSON(value?: PlotResultDescriptorWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bbox': BoundingBox2DToJSON(value.bbox), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/PlotUpdate.ts b/typescript/src/models/PlotUpdate.ts new file mode 100644 index 00000000..7077f856 --- /dev/null +++ b/typescript/src/models/PlotUpdate.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + Plot, + instanceOfPlot, + PlotFromJSON, + PlotFromJSONTyped, + PlotToJSON, +} from './Plot'; +import { + string, + instanceOfstring, + stringFromJSON, + stringFromJSONTyped, + stringToJSON, +} from './string'; + +/** + * @type PlotUpdate + * + * @export + */ +export type PlotUpdate = Plot | string; + +export function PlotUpdateFromJSON(json: any): PlotUpdate { + return PlotUpdateFromJSONTyped(json, false); +} + +export function PlotUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlotUpdate { + if ((json === undefined) || (json === null)) { + return json; + } + return { ...PlotFromJSONTyped(json, true), ...stringFromJSONTyped(json, true) }; +} + +export function PlotUpdateToJSON(value?: PlotUpdate | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + + if (instanceOfPlot(value)) { + return PlotToJSON(value as Plot); + } + if (instanceOfstring(value)) { + return stringToJSON(value as string); + } + + return {}; +} + diff --git a/typescript/src/models/PointSymbology.ts b/typescript/src/models/PointSymbology.ts new file mode 100644 index 00000000..d8dda557 --- /dev/null +++ b/typescript/src/models/PointSymbology.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { NumberParam } from './NumberParam'; +import { + NumberParamFromJSON, + NumberParamFromJSONTyped, + NumberParamToJSON, +} from './NumberParam'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface PointSymbology + */ +export interface PointSymbology { + /** + * + * @type {ColorParam} + * @memberof PointSymbology + */ + fillColor: ColorParam; + /** + * + * @type {NumberParam} + * @memberof PointSymbology + */ + radius: NumberParam; + /** + * + * @type {StrokeParam} + * @memberof PointSymbology + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof PointSymbology + */ + text?: TextSymbology | null; +} + +/** + * Check if a given object implements the PointSymbology interface. + */ +export function instanceOfPointSymbology(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fillColor" in value; + isInstance = isInstance && "radius" in value; + isInstance = isInstance && "stroke" in value; + + return isInstance; +} + +export function PointSymbologyFromJSON(json: any): PointSymbology { + return PointSymbologyFromJSONTyped(json, false); +} + +export function PointSymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointSymbology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fillColor': ColorParamFromJSON(json['fillColor']), + 'radius': NumberParamFromJSON(json['radius']), + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + }; +} + +export function PointSymbologyToJSON(value?: PointSymbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fillColor': ColorParamToJSON(value.fillColor), + 'radius': NumberParamToJSON(value.radius), + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + }; +} + diff --git a/typescript/src/models/PointSymbologyWithType.ts b/typescript/src/models/PointSymbologyWithType.ts new file mode 100644 index 00000000..9fea0c60 --- /dev/null +++ b/typescript/src/models/PointSymbologyWithType.ts @@ -0,0 +1,136 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { NumberParam } from './NumberParam'; +import { + NumberParamFromJSON, + NumberParamFromJSONTyped, + NumberParamToJSON, +} from './NumberParam'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface PointSymbologyWithType + */ +export interface PointSymbologyWithType { + /** + * + * @type {ColorParam} + * @memberof PointSymbologyWithType + */ + fillColor: ColorParam; + /** + * + * @type {NumberParam} + * @memberof PointSymbologyWithType + */ + radius: NumberParam; + /** + * + * @type {StrokeParam} + * @memberof PointSymbologyWithType + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof PointSymbologyWithType + */ + text?: TextSymbology | null; + /** + * + * @type {string} + * @memberof PointSymbologyWithType + */ + type: PointSymbologyWithTypeTypeEnum; +} + + +/** + * @export + */ +export const PointSymbologyWithTypeTypeEnum = { + Point: 'point' +} as const; +export type PointSymbologyWithTypeTypeEnum = typeof PointSymbologyWithTypeTypeEnum[keyof typeof PointSymbologyWithTypeTypeEnum]; + + +/** + * Check if a given object implements the PointSymbologyWithType interface. + */ +export function instanceOfPointSymbologyWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "fillColor" in value; + isInstance = isInstance && "radius" in value; + isInstance = isInstance && "stroke" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function PointSymbologyWithTypeFromJSON(json: any): PointSymbologyWithType { + return PointSymbologyWithTypeFromJSONTyped(json, false); +} + +export function PointSymbologyWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PointSymbologyWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'fillColor': ColorParamFromJSON(json['fillColor']), + 'radius': NumberParamFromJSON(json['radius']), + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + 'type': json['type'], + }; +} + +export function PointSymbologyWithTypeToJSON(value?: PointSymbologyWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'fillColor': ColorParamToJSON(value.fillColor), + 'radius': NumberParamToJSON(value.radius), + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/PolygonSymbology.ts b/typescript/src/models/PolygonSymbology.ts new file mode 100644 index 00000000..29336274 --- /dev/null +++ b/typescript/src/models/PolygonSymbology.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface PolygonSymbology + */ +export interface PolygonSymbology { + /** + * + * @type {boolean} + * @memberof PolygonSymbology + */ + autoSimplified: boolean; + /** + * + * @type {ColorParam} + * @memberof PolygonSymbology + */ + fillColor: ColorParam; + /** + * + * @type {StrokeParam} + * @memberof PolygonSymbology + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof PolygonSymbology + */ + text?: TextSymbology | null; +} + +/** + * Check if a given object implements the PolygonSymbology interface. + */ +export function instanceOfPolygonSymbology(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "autoSimplified" in value; + isInstance = isInstance && "fillColor" in value; + isInstance = isInstance && "stroke" in value; + + return isInstance; +} + +export function PolygonSymbologyFromJSON(json: any): PolygonSymbology { + return PolygonSymbologyFromJSONTyped(json, false); +} + +export function PolygonSymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonSymbology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'autoSimplified': json['autoSimplified'], + 'fillColor': ColorParamFromJSON(json['fillColor']), + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + }; +} + +export function PolygonSymbologyToJSON(value?: PolygonSymbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'autoSimplified': value.autoSimplified, + 'fillColor': ColorParamToJSON(value.fillColor), + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + }; +} + diff --git a/typescript/src/models/PolygonSymbologyWithType.ts b/typescript/src/models/PolygonSymbologyWithType.ts new file mode 100644 index 00000000..a3e67126 --- /dev/null +++ b/typescript/src/models/PolygonSymbologyWithType.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; +import type { TextSymbology } from './TextSymbology'; +import { + TextSymbologyFromJSON, + TextSymbologyFromJSONTyped, + TextSymbologyToJSON, +} from './TextSymbology'; + +/** + * + * @export + * @interface PolygonSymbologyWithType + */ +export interface PolygonSymbologyWithType { + /** + * + * @type {boolean} + * @memberof PolygonSymbologyWithType + */ + autoSimplified: boolean; + /** + * + * @type {ColorParam} + * @memberof PolygonSymbologyWithType + */ + fillColor: ColorParam; + /** + * + * @type {StrokeParam} + * @memberof PolygonSymbologyWithType + */ + stroke: StrokeParam; + /** + * + * @type {TextSymbology} + * @memberof PolygonSymbologyWithType + */ + text?: TextSymbology | null; + /** + * + * @type {string} + * @memberof PolygonSymbologyWithType + */ + type: PolygonSymbologyWithTypeTypeEnum; +} + + +/** + * @export + */ +export const PolygonSymbologyWithTypeTypeEnum = { + Polygon: 'polygon' +} as const; +export type PolygonSymbologyWithTypeTypeEnum = typeof PolygonSymbologyWithTypeTypeEnum[keyof typeof PolygonSymbologyWithTypeTypeEnum]; + + +/** + * Check if a given object implements the PolygonSymbologyWithType interface. + */ +export function instanceOfPolygonSymbologyWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "autoSimplified" in value; + isInstance = isInstance && "fillColor" in value; + isInstance = isInstance && "stroke" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function PolygonSymbologyWithTypeFromJSON(json: any): PolygonSymbologyWithType { + return PolygonSymbologyWithTypeFromJSONTyped(json, false); +} + +export function PolygonSymbologyWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonSymbologyWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'autoSimplified': json['autoSimplified'], + 'fillColor': ColorParamFromJSON(json['fillColor']), + 'stroke': StrokeParamFromJSON(json['stroke']), + 'text': !exists(json, 'text') ? undefined : TextSymbologyFromJSON(json['text']), + 'type': json['type'], + }; +} + +export function PolygonSymbologyWithTypeToJSON(value?: PolygonSymbologyWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'autoSimplified': value.autoSimplified, + 'fillColor': ColorParamToJSON(value.fillColor), + 'stroke': StrokeParamToJSON(value.stroke), + 'text': TextSymbologyToJSON(value.text), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Project.ts b/typescript/src/models/Project.ts new file mode 100644 index 00000000..07a77f1e --- /dev/null +++ b/typescript/src/models/Project.ts @@ -0,0 +1,160 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Plot } from './Plot'; +import { + PlotFromJSON, + PlotFromJSONTyped, + PlotToJSON, +} from './Plot'; +import type { ProjectLayer } from './ProjectLayer'; +import { + ProjectLayerFromJSON, + ProjectLayerFromJSONTyped, + ProjectLayerToJSON, +} from './ProjectLayer'; +import type { ProjectVersion } from './ProjectVersion'; +import { + ProjectVersionFromJSON, + ProjectVersionFromJSONTyped, + ProjectVersionToJSON, +} from './ProjectVersion'; +import type { STRectangle } from './STRectangle'; +import { + STRectangleFromJSON, + STRectangleFromJSONTyped, + STRectangleToJSON, +} from './STRectangle'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * + * @export + * @interface Project + */ +export interface Project { + /** + * + * @type {STRectangle} + * @memberof Project + */ + bounds: STRectangle; + /** + * + * @type {string} + * @memberof Project + */ + description: string; + /** + * + * @type {string} + * @memberof Project + */ + id: string; + /** + * + * @type {Array} + * @memberof Project + */ + layers: Array; + /** + * + * @type {string} + * @memberof Project + */ + name: string; + /** + * + * @type {Array} + * @memberof Project + */ + plots: Array; + /** + * + * @type {TimeStep} + * @memberof Project + */ + timeStep: TimeStep; + /** + * + * @type {ProjectVersion} + * @memberof Project + */ + version: ProjectVersion; +} + +/** + * Check if a given object implements the Project interface. + */ +export function instanceOfProject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bounds" in value; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "layers" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "plots" in value; + isInstance = isInstance && "timeStep" in value; + isInstance = isInstance && "version" in value; + + return isInstance; +} + +export function ProjectFromJSON(json: any): Project { + return ProjectFromJSONTyped(json, false); +} + +export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bounds': STRectangleFromJSON(json['bounds']), + 'description': json['description'], + 'id': json['id'], + 'layers': ((json['layers'] as Array).map(ProjectLayerFromJSON)), + 'name': json['name'], + 'plots': ((json['plots'] as Array).map(PlotFromJSON)), + 'timeStep': TimeStepFromJSON(json['timeStep']), + 'version': ProjectVersionFromJSON(json['version']), + }; +} + +export function ProjectToJSON(value?: Project | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bounds': STRectangleToJSON(value.bounds), + 'description': value.description, + 'id': value.id, + 'layers': ((value.layers as Array).map(ProjectLayerToJSON)), + 'name': value.name, + 'plots': ((value.plots as Array).map(PlotToJSON)), + 'timeStep': TimeStepToJSON(value.timeStep), + 'version': ProjectVersionToJSON(value.version), + }; +} + diff --git a/typescript/src/models/ProjectLayer.ts b/typescript/src/models/ProjectLayer.ts new file mode 100644 index 00000000..33b382de --- /dev/null +++ b/typescript/src/models/ProjectLayer.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { LayerVisibility } from './LayerVisibility'; +import { + LayerVisibilityFromJSON, + LayerVisibilityFromJSONTyped, + LayerVisibilityToJSON, +} from './LayerVisibility'; +import type { Symbology } from './Symbology'; +import { + SymbologyFromJSON, + SymbologyFromJSONTyped, + SymbologyToJSON, +} from './Symbology'; + +/** + * + * @export + * @interface ProjectLayer + */ +export interface ProjectLayer { + /** + * + * @type {string} + * @memberof ProjectLayer + */ + name: string; + /** + * + * @type {Symbology} + * @memberof ProjectLayer + */ + symbology: Symbology; + /** + * + * @type {LayerVisibility} + * @memberof ProjectLayer + */ + visibility: LayerVisibility; + /** + * + * @type {string} + * @memberof ProjectLayer + */ + workflow: string; +} + +/** + * Check if a given object implements the ProjectLayer interface. + */ +export function instanceOfProjectLayer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "symbology" in value; + isInstance = isInstance && "visibility" in value; + isInstance = isInstance && "workflow" in value; + + return isInstance; +} + +export function ProjectLayerFromJSON(json: any): ProjectLayer { + return ProjectLayerFromJSONTyped(json, false); +} + +export function ProjectLayerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectLayer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'symbology': SymbologyFromJSON(json['symbology']), + 'visibility': LayerVisibilityFromJSON(json['visibility']), + 'workflow': json['workflow'], + }; +} + +export function ProjectLayerToJSON(value?: ProjectLayer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'symbology': SymbologyToJSON(value.symbology), + 'visibility': LayerVisibilityToJSON(value.visibility), + 'workflow': value.workflow, + }; +} + diff --git a/typescript/src/models/ProjectListing.ts b/typescript/src/models/ProjectListing.ts new file mode 100644 index 00000000..d722969f --- /dev/null +++ b/typescript/src/models/ProjectListing.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProjectListing + */ +export interface ProjectListing { + /** + * + * @type {Date} + * @memberof ProjectListing + */ + changed: Date; + /** + * + * @type {string} + * @memberof ProjectListing + */ + description: string; + /** + * + * @type {string} + * @memberof ProjectListing + */ + id: string; + /** + * + * @type {Array} + * @memberof ProjectListing + */ + layerNames: Array; + /** + * + * @type {string} + * @memberof ProjectListing + */ + name: string; + /** + * + * @type {Array} + * @memberof ProjectListing + */ + plotNames: Array; +} + +/** + * Check if a given object implements the ProjectListing interface. + */ +export function instanceOfProjectListing(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "changed" in value; + isInstance = isInstance && "description" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "layerNames" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "plotNames" in value; + + return isInstance; +} + +export function ProjectListingFromJSON(json: any): ProjectListing { + return ProjectListingFromJSONTyped(json, false); +} + +export function ProjectListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectListing { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'changed': (new Date(json['changed'])), + 'description': json['description'], + 'id': json['id'], + 'layerNames': json['layerNames'], + 'name': json['name'], + 'plotNames': json['plotNames'], + }; +} + +export function ProjectListingToJSON(value?: ProjectListing | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'changed': (value.changed.toISOString()), + 'description': value.description, + 'id': value.id, + 'layerNames': value.layerNames, + 'name': value.name, + 'plotNames': value.plotNames, + }; +} + diff --git a/typescript/src/models/ProjectResource.ts b/typescript/src/models/ProjectResource.ts new file mode 100644 index 00000000..aef40f4a --- /dev/null +++ b/typescript/src/models/ProjectResource.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProjectResource + */ +export interface ProjectResource { + /** + * + * @type {string} + * @memberof ProjectResource + */ + id: string; + /** + * + * @type {string} + * @memberof ProjectResource + */ + type: ProjectResourceTypeEnum; +} + + +/** + * @export + */ +export const ProjectResourceTypeEnum = { + Project: 'project' +} as const; +export type ProjectResourceTypeEnum = typeof ProjectResourceTypeEnum[keyof typeof ProjectResourceTypeEnum]; + + +/** + * Check if a given object implements the ProjectResource interface. + */ +export function instanceOfProjectResource(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ProjectResourceFromJSON(json: any): ProjectResource { + return ProjectResourceFromJSONTyped(json, false); +} + +export function ProjectResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResource { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function ProjectResourceToJSON(value?: ProjectResource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/ProjectResourceId.ts b/typescript/src/models/ProjectResourceId.ts new file mode 100644 index 00000000..877c8cf9 --- /dev/null +++ b/typescript/src/models/ProjectResourceId.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProjectResourceId + */ +export interface ProjectResourceId { + /** + * + * @type {string} + * @memberof ProjectResourceId + */ + id: string; + /** + * + * @type {string} + * @memberof ProjectResourceId + */ + type: ProjectResourceIdTypeEnum; +} + + +/** + * @export + */ +export const ProjectResourceIdTypeEnum = { + Project: 'Project' +} as const; +export type ProjectResourceIdTypeEnum = typeof ProjectResourceIdTypeEnum[keyof typeof ProjectResourceIdTypeEnum]; + + +/** + * Check if a given object implements the ProjectResourceId interface. + */ +export function instanceOfProjectResourceId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ProjectResourceIdFromJSON(json: any): ProjectResourceId { + return ProjectResourceIdFromJSONTyped(json, false); +} + +export function ProjectResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + }; +} + +export function ProjectResourceIdToJSON(value?: ProjectResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/ProjectVersion.ts b/typescript/src/models/ProjectVersion.ts new file mode 100644 index 00000000..b1dc1b58 --- /dev/null +++ b/typescript/src/models/ProjectVersion.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProjectVersion + */ +export interface ProjectVersion { + /** + * + * @type {Date} + * @memberof ProjectVersion + */ + changed: Date; + /** + * + * @type {string} + * @memberof ProjectVersion + */ + id: string; +} + +/** + * Check if a given object implements the ProjectVersion interface. + */ +export function instanceOfProjectVersion(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "changed" in value; + isInstance = isInstance && "id" in value; + + return isInstance; +} + +export function ProjectVersionFromJSON(json: any): ProjectVersion { + return ProjectVersionFromJSONTyped(json, false); +} + +export function ProjectVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectVersion { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'changed': (new Date(json['changed'])), + 'id': json['id'], + }; +} + +export function ProjectVersionToJSON(value?: ProjectVersion | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'changed': (value.changed.toISOString()), + 'id': value.id, + }; +} + diff --git a/typescript/src/models/Provenance.ts b/typescript/src/models/Provenance.ts new file mode 100644 index 00000000..e822e1f5 --- /dev/null +++ b/typescript/src/models/Provenance.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Provenance + */ +export interface Provenance { + /** + * + * @type {string} + * @memberof Provenance + */ + citation: string; + /** + * + * @type {string} + * @memberof Provenance + */ + license: string; + /** + * + * @type {string} + * @memberof Provenance + */ + uri: string; +} + +/** + * Check if a given object implements the Provenance interface. + */ +export function instanceOfProvenance(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "citation" in value; + isInstance = isInstance && "license" in value; + isInstance = isInstance && "uri" in value; + + return isInstance; +} + +export function ProvenanceFromJSON(json: any): Provenance { + return ProvenanceFromJSONTyped(json, false); +} + +export function ProvenanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Provenance { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'citation': json['citation'], + 'license': json['license'], + 'uri': json['uri'], + }; +} + +export function ProvenanceToJSON(value?: Provenance | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'citation': value.citation, + 'license': value.license, + 'uri': value.uri, + }; +} + diff --git a/typescript/src/models/ProvenanceEntry.ts b/typescript/src/models/ProvenanceEntry.ts new file mode 100644 index 00000000..7fcbfe29 --- /dev/null +++ b/typescript/src/models/ProvenanceEntry.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { DataId } from './DataId'; +import { + DataIdFromJSON, + DataIdFromJSONTyped, + DataIdToJSON, +} from './DataId'; +import type { Provenance } from './Provenance'; +import { + ProvenanceFromJSON, + ProvenanceFromJSONTyped, + ProvenanceToJSON, +} from './Provenance'; + +/** + * + * @export + * @interface ProvenanceEntry + */ +export interface ProvenanceEntry { + /** + * + * @type {Array} + * @memberof ProvenanceEntry + */ + data: Array; + /** + * + * @type {Provenance} + * @memberof ProvenanceEntry + */ + provenance: Provenance; +} + +/** + * Check if a given object implements the ProvenanceEntry interface. + */ +export function instanceOfProvenanceEntry(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "data" in value; + isInstance = isInstance && "provenance" in value; + + return isInstance; +} + +export function ProvenanceEntryFromJSON(json: any): ProvenanceEntry { + return ProvenanceEntryFromJSONTyped(json, false); +} + +export function ProvenanceEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProvenanceEntry { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': ((json['data'] as Array).map(DataIdFromJSON)), + 'provenance': ProvenanceFromJSON(json['provenance']), + }; +} + +export function ProvenanceEntryToJSON(value?: ProvenanceEntry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'data': ((value.data as Array).map(DataIdToJSON)), + 'provenance': ProvenanceToJSON(value.provenance), + }; +} + diff --git a/typescript/src/models/ProvenanceOutput.ts b/typescript/src/models/ProvenanceOutput.ts new file mode 100644 index 00000000..d3cd4adc --- /dev/null +++ b/typescript/src/models/ProvenanceOutput.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { DataId } from './DataId'; +import { + DataIdFromJSON, + DataIdFromJSONTyped, + DataIdToJSON, +} from './DataId'; +import type { Provenance } from './Provenance'; +import { + ProvenanceFromJSON, + ProvenanceFromJSONTyped, + ProvenanceToJSON, +} from './Provenance'; + +/** + * + * @export + * @interface ProvenanceOutput + */ +export interface ProvenanceOutput { + /** + * + * @type {DataId} + * @memberof ProvenanceOutput + */ + data: DataId; + /** + * + * @type {Array} + * @memberof ProvenanceOutput + */ + provenance?: Array | null; +} + +/** + * Check if a given object implements the ProvenanceOutput interface. + */ +export function instanceOfProvenanceOutput(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "data" in value; + + return isInstance; +} + +export function ProvenanceOutputFromJSON(json: any): ProvenanceOutput { + return ProvenanceOutputFromJSONTyped(json, false); +} + +export function ProvenanceOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProvenanceOutput { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': DataIdFromJSON(json['data']), + 'provenance': !exists(json, 'provenance') ? undefined : (json['provenance'] === null ? null : (json['provenance'] as Array).map(ProvenanceFromJSON)), + }; +} + +export function ProvenanceOutputToJSON(value?: ProvenanceOutput | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'data': DataIdToJSON(value.data), + 'provenance': value.provenance === undefined ? undefined : (value.provenance === null ? null : (value.provenance as Array).map(ProvenanceToJSON)), + }; +} + diff --git a/typescript/src/models/ProviderLayerCollectionId.ts b/typescript/src/models/ProviderLayerCollectionId.ts new file mode 100644 index 00000000..32cfc9ec --- /dev/null +++ b/typescript/src/models/ProviderLayerCollectionId.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProviderLayerCollectionId + */ +export interface ProviderLayerCollectionId { + /** + * + * @type {string} + * @memberof ProviderLayerCollectionId + */ + collectionId: string; + /** + * + * @type {string} + * @memberof ProviderLayerCollectionId + */ + providerId: string; +} + +/** + * Check if a given object implements the ProviderLayerCollectionId interface. + */ +export function instanceOfProviderLayerCollectionId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "collectionId" in value; + isInstance = isInstance && "providerId" in value; + + return isInstance; +} + +export function ProviderLayerCollectionIdFromJSON(json: any): ProviderLayerCollectionId { + return ProviderLayerCollectionIdFromJSONTyped(json, false); +} + +export function ProviderLayerCollectionIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderLayerCollectionId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'collectionId': json['collectionId'], + 'providerId': json['providerId'], + }; +} + +export function ProviderLayerCollectionIdToJSON(value?: ProviderLayerCollectionId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'collectionId': value.collectionId, + 'providerId': value.providerId, + }; +} + diff --git a/typescript/src/models/ProviderLayerId.ts b/typescript/src/models/ProviderLayerId.ts new file mode 100644 index 00000000..b3600f2f --- /dev/null +++ b/typescript/src/models/ProviderLayerId.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ProviderLayerId + */ +export interface ProviderLayerId { + /** + * + * @type {string} + * @memberof ProviderLayerId + */ + layerId: string; + /** + * + * @type {string} + * @memberof ProviderLayerId + */ + providerId: string; +} + +/** + * Check if a given object implements the ProviderLayerId interface. + */ +export function instanceOfProviderLayerId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "layerId" in value; + isInstance = isInstance && "providerId" in value; + + return isInstance; +} + +export function ProviderLayerIdFromJSON(json: any): ProviderLayerId { + return ProviderLayerIdFromJSONTyped(json, false); +} + +export function ProviderLayerIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderLayerId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'layerId': json['layerId'], + 'providerId': json['providerId'], + }; +} + +export function ProviderLayerIdToJSON(value?: ProviderLayerId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'layerId': value.layerId, + 'providerId': value.providerId, + }; +} + diff --git a/typescript/src/models/Quota.ts b/typescript/src/models/Quota.ts new file mode 100644 index 00000000..415f727c --- /dev/null +++ b/typescript/src/models/Quota.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Quota + */ +export interface Quota { + /** + * + * @type {number} + * @memberof Quota + */ + available: number; + /** + * + * @type {number} + * @memberof Quota + */ + used: number; +} + +/** + * Check if a given object implements the Quota interface. + */ +export function instanceOfQuota(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "available" in value; + isInstance = isInstance && "used" in value; + + return isInstance; +} + +export function QuotaFromJSON(json: any): Quota { + return QuotaFromJSONTyped(json, false); +} + +export function QuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Quota { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'available': json['available'], + 'used': json['used'], + }; +} + +export function QuotaToJSON(value?: Quota | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'available': value.available, + 'used': value.used, + }; +} + diff --git a/typescript/src/models/RasterBandDescriptor.ts b/typescript/src/models/RasterBandDescriptor.ts new file mode 100644 index 00000000..82e1c906 --- /dev/null +++ b/typescript/src/models/RasterBandDescriptor.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Measurement } from './Measurement'; +import { + MeasurementFromJSON, + MeasurementFromJSONTyped, + MeasurementToJSON, +} from './Measurement'; + +/** + * + * @export + * @interface RasterBandDescriptor + */ +export interface RasterBandDescriptor { + /** + * + * @type {Measurement} + * @memberof RasterBandDescriptor + */ + measurement: Measurement; + /** + * + * @type {string} + * @memberof RasterBandDescriptor + */ + name: string; +} + +/** + * Check if a given object implements the RasterBandDescriptor interface. + */ +export function instanceOfRasterBandDescriptor(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "measurement" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function RasterBandDescriptorFromJSON(json: any): RasterBandDescriptor { + return RasterBandDescriptorFromJSONTyped(json, false); +} + +export function RasterBandDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterBandDescriptor { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'measurement': MeasurementFromJSON(json['measurement']), + 'name': json['name'], + }; +} + +export function RasterBandDescriptorToJSON(value?: RasterBandDescriptor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'measurement': MeasurementToJSON(value.measurement), + 'name': value.name, + }; +} + diff --git a/typescript/src/models/RasterDataType.ts b/typescript/src/models/RasterDataType.ts new file mode 100644 index 00000000..83d98da9 --- /dev/null +++ b/typescript/src/models/RasterDataType.ts @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const RasterDataType = { + U8: 'U8', + U16: 'U16', + U32: 'U32', + U64: 'U64', + I8: 'I8', + I16: 'I16', + I32: 'I32', + I64: 'I64', + F32: 'F32', + F64: 'F64' +} as const; +export type RasterDataType = typeof RasterDataType[keyof typeof RasterDataType]; + + +export function RasterDataTypeFromJSON(json: any): RasterDataType { + return RasterDataTypeFromJSONTyped(json, false); +} + +export function RasterDataTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterDataType { + return json as RasterDataType; +} + +export function RasterDataTypeToJSON(value?: RasterDataType | null): any { + return value as any; +} + diff --git a/typescript/src/models/RasterDatasetFromWorkflow.ts b/typescript/src/models/RasterDatasetFromWorkflow.ts new file mode 100644 index 00000000..04be9566 --- /dev/null +++ b/typescript/src/models/RasterDatasetFromWorkflow.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { RasterQueryRectangle } from './RasterQueryRectangle'; +import { + RasterQueryRectangleFromJSON, + RasterQueryRectangleFromJSONTyped, + RasterQueryRectangleToJSON, +} from './RasterQueryRectangle'; + +/** + * parameter for the dataset from workflow handler (body) + * @export + * @interface RasterDatasetFromWorkflow + */ +export interface RasterDatasetFromWorkflow { + /** + * + * @type {boolean} + * @memberof RasterDatasetFromWorkflow + */ + asCog?: boolean; + /** + * + * @type {string} + * @memberof RasterDatasetFromWorkflow + */ + description?: string | null; + /** + * + * @type {string} + * @memberof RasterDatasetFromWorkflow + */ + displayName: string; + /** + * + * @type {string} + * @memberof RasterDatasetFromWorkflow + */ + name?: string | null; + /** + * + * @type {RasterQueryRectangle} + * @memberof RasterDatasetFromWorkflow + */ + query: RasterQueryRectangle; +} + +/** + * Check if a given object implements the RasterDatasetFromWorkflow interface. + */ +export function instanceOfRasterDatasetFromWorkflow(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "displayName" in value; + isInstance = isInstance && "query" in value; + + return isInstance; +} + +export function RasterDatasetFromWorkflowFromJSON(json: any): RasterDatasetFromWorkflow { + return RasterDatasetFromWorkflowFromJSONTyped(json, false); +} + +export function RasterDatasetFromWorkflowFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterDatasetFromWorkflow { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'asCog': !exists(json, 'asCog') ? undefined : json['asCog'], + 'description': !exists(json, 'description') ? undefined : json['description'], + 'displayName': json['displayName'], + 'name': !exists(json, 'name') ? undefined : json['name'], + 'query': RasterQueryRectangleFromJSON(json['query']), + }; +} + +export function RasterDatasetFromWorkflowToJSON(value?: RasterDatasetFromWorkflow | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'asCog': value.asCog, + 'description': value.description, + 'displayName': value.displayName, + 'name': value.name, + 'query': RasterQueryRectangleToJSON(value.query), + }; +} + diff --git a/typescript/src/models/RasterDatasetFromWorkflowResult.ts b/typescript/src/models/RasterDatasetFromWorkflowResult.ts new file mode 100644 index 00000000..e4076756 --- /dev/null +++ b/typescript/src/models/RasterDatasetFromWorkflowResult.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * response of the dataset from workflow handler + * @export + * @interface RasterDatasetFromWorkflowResult + */ +export interface RasterDatasetFromWorkflowResult { + /** + * + * @type {string} + * @memberof RasterDatasetFromWorkflowResult + */ + dataset: string; + /** + * + * @type {string} + * @memberof RasterDatasetFromWorkflowResult + */ + upload: string; +} + +/** + * Check if a given object implements the RasterDatasetFromWorkflowResult interface. + */ +export function instanceOfRasterDatasetFromWorkflowResult(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "dataset" in value; + isInstance = isInstance && "upload" in value; + + return isInstance; +} + +export function RasterDatasetFromWorkflowResultFromJSON(json: any): RasterDatasetFromWorkflowResult { + return RasterDatasetFromWorkflowResultFromJSONTyped(json, false); +} + +export function RasterDatasetFromWorkflowResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterDatasetFromWorkflowResult { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataset': json['dataset'], + 'upload': json['upload'], + }; +} + +export function RasterDatasetFromWorkflowResultToJSON(value?: RasterDatasetFromWorkflowResult | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataset': value.dataset, + 'upload': value.upload, + }; +} + diff --git a/typescript/src/models/RasterPropertiesEntryType.ts b/typescript/src/models/RasterPropertiesEntryType.ts new file mode 100644 index 00000000..3b162da3 --- /dev/null +++ b/typescript/src/models/RasterPropertiesEntryType.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const RasterPropertiesEntryType = { + Number: 'Number', + String: 'String' +} as const; +export type RasterPropertiesEntryType = typeof RasterPropertiesEntryType[keyof typeof RasterPropertiesEntryType]; + + +export function RasterPropertiesEntryTypeFromJSON(json: any): RasterPropertiesEntryType { + return RasterPropertiesEntryTypeFromJSONTyped(json, false); +} + +export function RasterPropertiesEntryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterPropertiesEntryType { + return json as RasterPropertiesEntryType; +} + +export function RasterPropertiesEntryTypeToJSON(value?: RasterPropertiesEntryType | null): any { + return value as any; +} + diff --git a/typescript/src/models/RasterPropertiesKey.ts b/typescript/src/models/RasterPropertiesKey.ts new file mode 100644 index 00000000..9adb743f --- /dev/null +++ b/typescript/src/models/RasterPropertiesKey.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RasterPropertiesKey + */ +export interface RasterPropertiesKey { + /** + * + * @type {string} + * @memberof RasterPropertiesKey + */ + domain?: string | null; + /** + * + * @type {string} + * @memberof RasterPropertiesKey + */ + key: string; +} + +/** + * Check if a given object implements the RasterPropertiesKey interface. + */ +export function instanceOfRasterPropertiesKey(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "key" in value; + + return isInstance; +} + +export function RasterPropertiesKeyFromJSON(json: any): RasterPropertiesKey { + return RasterPropertiesKeyFromJSONTyped(json, false); +} + +export function RasterPropertiesKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterPropertiesKey { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'domain': !exists(json, 'domain') ? undefined : json['domain'], + 'key': json['key'], + }; +} + +export function RasterPropertiesKeyToJSON(value?: RasterPropertiesKey | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'domain': value.domain, + 'key': value.key, + }; +} + diff --git a/typescript/src/models/RasterQueryRectangle.ts b/typescript/src/models/RasterQueryRectangle.ts new file mode 100644 index 00000000..e15212bd --- /dev/null +++ b/typescript/src/models/RasterQueryRectangle.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { SpatialPartition2D } from './SpatialPartition2D'; +import { + SpatialPartition2DFromJSON, + SpatialPartition2DFromJSONTyped, + SpatialPartition2DToJSON, +} from './SpatialPartition2D'; +import type { SpatialResolution } from './SpatialResolution'; +import { + SpatialResolutionFromJSON, + SpatialResolutionFromJSONTyped, + SpatialResolutionToJSON, +} from './SpatialResolution'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A spatio-temporal rectangle with a specified resolution + * @export + * @interface RasterQueryRectangle + */ +export interface RasterQueryRectangle { + /** + * + * @type {SpatialPartition2D} + * @memberof RasterQueryRectangle + */ + spatialBounds: SpatialPartition2D; + /** + * + * @type {SpatialResolution} + * @memberof RasterQueryRectangle + */ + spatialResolution: SpatialResolution; + /** + * + * @type {TimeInterval} + * @memberof RasterQueryRectangle + */ + timeInterval: TimeInterval; +} + +/** + * Check if a given object implements the RasterQueryRectangle interface. + */ +export function instanceOfRasterQueryRectangle(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spatialBounds" in value; + isInstance = isInstance && "spatialResolution" in value; + isInstance = isInstance && "timeInterval" in value; + + return isInstance; +} + +export function RasterQueryRectangleFromJSON(json: any): RasterQueryRectangle { + return RasterQueryRectangleFromJSONTyped(json, false); +} + +export function RasterQueryRectangleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterQueryRectangle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'spatialBounds': SpatialPartition2DFromJSON(json['spatialBounds']), + 'spatialResolution': SpatialResolutionFromJSON(json['spatialResolution']), + 'timeInterval': TimeIntervalFromJSON(json['timeInterval']), + }; +} + +export function RasterQueryRectangleToJSON(value?: RasterQueryRectangle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'spatialBounds': SpatialPartition2DToJSON(value.spatialBounds), + 'spatialResolution': SpatialResolutionToJSON(value.spatialResolution), + 'timeInterval': TimeIntervalToJSON(value.timeInterval), + }; +} + diff --git a/typescript/src/models/RasterResultDescriptor.ts b/typescript/src/models/RasterResultDescriptor.ts new file mode 100644 index 00000000..1ac7eabc --- /dev/null +++ b/typescript/src/models/RasterResultDescriptor.ts @@ -0,0 +1,139 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { RasterBandDescriptor } from './RasterBandDescriptor'; +import { + RasterBandDescriptorFromJSON, + RasterBandDescriptorFromJSONTyped, + RasterBandDescriptorToJSON, +} from './RasterBandDescriptor'; +import type { RasterDataType } from './RasterDataType'; +import { + RasterDataTypeFromJSON, + RasterDataTypeFromJSONTyped, + RasterDataTypeToJSON, +} from './RasterDataType'; +import type { SpatialPartition2D } from './SpatialPartition2D'; +import { + SpatialPartition2DFromJSON, + SpatialPartition2DFromJSONTyped, + SpatialPartition2DToJSON, +} from './SpatialPartition2D'; +import type { SpatialResolution } from './SpatialResolution'; +import { + SpatialResolutionFromJSON, + SpatialResolutionFromJSONTyped, + SpatialResolutionToJSON, +} from './SpatialResolution'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A `ResultDescriptor` for raster queries + * @export + * @interface RasterResultDescriptor + */ +export interface RasterResultDescriptor { + /** + * + * @type {Array} + * @memberof RasterResultDescriptor + */ + bands: Array; + /** + * + * @type {SpatialPartition2D} + * @memberof RasterResultDescriptor + */ + bbox?: SpatialPartition2D | null; + /** + * + * @type {RasterDataType} + * @memberof RasterResultDescriptor + */ + dataType: RasterDataType; + /** + * + * @type {SpatialResolution} + * @memberof RasterResultDescriptor + */ + resolution?: SpatialResolution | null; + /** + * + * @type {string} + * @memberof RasterResultDescriptor + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof RasterResultDescriptor + */ + time?: TimeInterval | null; +} + +/** + * Check if a given object implements the RasterResultDescriptor interface. + */ +export function instanceOfRasterResultDescriptor(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bands" in value; + isInstance = isInstance && "dataType" in value; + isInstance = isInstance && "spatialReference" in value; + + return isInstance; +} + +export function RasterResultDescriptorFromJSON(json: any): RasterResultDescriptor { + return RasterResultDescriptorFromJSONTyped(json, false); +} + +export function RasterResultDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterResultDescriptor { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bands': ((json['bands'] as Array).map(RasterBandDescriptorFromJSON)), + 'bbox': !exists(json, 'bbox') ? undefined : SpatialPartition2DFromJSON(json['bbox']), + 'dataType': RasterDataTypeFromJSON(json['dataType']), + 'resolution': !exists(json, 'resolution') ? undefined : SpatialResolutionFromJSON(json['resolution']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + }; +} + +export function RasterResultDescriptorToJSON(value?: RasterResultDescriptor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bands': ((value.bands as Array).map(RasterBandDescriptorToJSON)), + 'bbox': SpatialPartition2DToJSON(value.bbox), + 'dataType': RasterDataTypeToJSON(value.dataType), + 'resolution': SpatialResolutionToJSON(value.resolution), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + }; +} + diff --git a/typescript/src/models/RasterResultDescriptorWithType.ts b/typescript/src/models/RasterResultDescriptorWithType.ts new file mode 100644 index 00000000..c02a2079 --- /dev/null +++ b/typescript/src/models/RasterResultDescriptorWithType.ts @@ -0,0 +1,158 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { RasterBandDescriptor } from './RasterBandDescriptor'; +import { + RasterBandDescriptorFromJSON, + RasterBandDescriptorFromJSONTyped, + RasterBandDescriptorToJSON, +} from './RasterBandDescriptor'; +import type { RasterDataType } from './RasterDataType'; +import { + RasterDataTypeFromJSON, + RasterDataTypeFromJSONTyped, + RasterDataTypeToJSON, +} from './RasterDataType'; +import type { SpatialPartition2D } from './SpatialPartition2D'; +import { + SpatialPartition2DFromJSON, + SpatialPartition2DFromJSONTyped, + SpatialPartition2DToJSON, +} from './SpatialPartition2D'; +import type { SpatialResolution } from './SpatialResolution'; +import { + SpatialResolutionFromJSON, + SpatialResolutionFromJSONTyped, + SpatialResolutionToJSON, +} from './SpatialResolution'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A `ResultDescriptor` for raster queries + * @export + * @interface RasterResultDescriptorWithType + */ +export interface RasterResultDescriptorWithType { + /** + * + * @type {Array} + * @memberof RasterResultDescriptorWithType + */ + bands: Array; + /** + * + * @type {SpatialPartition2D} + * @memberof RasterResultDescriptorWithType + */ + bbox?: SpatialPartition2D | null; + /** + * + * @type {RasterDataType} + * @memberof RasterResultDescriptorWithType + */ + dataType: RasterDataType; + /** + * + * @type {SpatialResolution} + * @memberof RasterResultDescriptorWithType + */ + resolution?: SpatialResolution | null; + /** + * + * @type {string} + * @memberof RasterResultDescriptorWithType + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof RasterResultDescriptorWithType + */ + time?: TimeInterval | null; + /** + * + * @type {string} + * @memberof RasterResultDescriptorWithType + */ + type: RasterResultDescriptorWithTypeTypeEnum; +} + + +/** + * @export + */ +export const RasterResultDescriptorWithTypeTypeEnum = { + Raster: 'raster' +} as const; +export type RasterResultDescriptorWithTypeTypeEnum = typeof RasterResultDescriptorWithTypeTypeEnum[keyof typeof RasterResultDescriptorWithTypeTypeEnum]; + + +/** + * Check if a given object implements the RasterResultDescriptorWithType interface. + */ +export function instanceOfRasterResultDescriptorWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bands" in value; + isInstance = isInstance && "dataType" in value; + isInstance = isInstance && "spatialReference" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function RasterResultDescriptorWithTypeFromJSON(json: any): RasterResultDescriptorWithType { + return RasterResultDescriptorWithTypeFromJSONTyped(json, false); +} + +export function RasterResultDescriptorWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterResultDescriptorWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bands': ((json['bands'] as Array).map(RasterBandDescriptorFromJSON)), + 'bbox': !exists(json, 'bbox') ? undefined : SpatialPartition2DFromJSON(json['bbox']), + 'dataType': RasterDataTypeFromJSON(json['dataType']), + 'resolution': !exists(json, 'resolution') ? undefined : SpatialResolutionFromJSON(json['resolution']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + 'type': json['type'], + }; +} + +export function RasterResultDescriptorWithTypeToJSON(value?: RasterResultDescriptorWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bands': ((value.bands as Array).map(RasterBandDescriptorToJSON)), + 'bbox': SpatialPartition2DToJSON(value.bbox), + 'dataType': RasterDataTypeToJSON(value.dataType), + 'resolution': SpatialResolutionToJSON(value.resolution), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/RasterStreamWebsocketResultType.ts b/typescript/src/models/RasterStreamWebsocketResultType.ts new file mode 100644 index 00000000..6df5d607 --- /dev/null +++ b/typescript/src/models/RasterStreamWebsocketResultType.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * The stream result type for `raster_stream_websocket`. + * @export + */ +export const RasterStreamWebsocketResultType = { + Arrow: 'arrow' +} as const; +export type RasterStreamWebsocketResultType = typeof RasterStreamWebsocketResultType[keyof typeof RasterStreamWebsocketResultType]; + + +export function RasterStreamWebsocketResultTypeFromJSON(json: any): RasterStreamWebsocketResultType { + return RasterStreamWebsocketResultTypeFromJSONTyped(json, false); +} + +export function RasterStreamWebsocketResultTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStreamWebsocketResultType { + return json as RasterStreamWebsocketResultType; +} + +export function RasterStreamWebsocketResultTypeToJSON(value?: RasterStreamWebsocketResultType | null): any { + return value as any; +} + diff --git a/typescript/src/models/RasterSymbology.ts b/typescript/src/models/RasterSymbology.ts new file mode 100644 index 00000000..8a61bd50 --- /dev/null +++ b/typescript/src/models/RasterSymbology.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Colorizer } from './Colorizer'; +import { + ColorizerFromJSON, + ColorizerFromJSONTyped, + ColorizerToJSON, +} from './Colorizer'; + +/** + * + * @export + * @interface RasterSymbology + */ +export interface RasterSymbology { + /** + * + * @type {Colorizer} + * @memberof RasterSymbology + */ + colorizer: Colorizer; + /** + * + * @type {number} + * @memberof RasterSymbology + */ + opacity: number; +} + +/** + * Check if a given object implements the RasterSymbology interface. + */ +export function instanceOfRasterSymbology(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "colorizer" in value; + isInstance = isInstance && "opacity" in value; + + return isInstance; +} + +export function RasterSymbologyFromJSON(json: any): RasterSymbology { + return RasterSymbologyFromJSONTyped(json, false); +} + +export function RasterSymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterSymbology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'colorizer': ColorizerFromJSON(json['colorizer']), + 'opacity': json['opacity'], + }; +} + +export function RasterSymbologyToJSON(value?: RasterSymbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'colorizer': ColorizerToJSON(value.colorizer), + 'opacity': value.opacity, + }; +} + diff --git a/typescript/src/models/RasterSymbologyWithType.ts b/typescript/src/models/RasterSymbologyWithType.ts new file mode 100644 index 00000000..f53de374 --- /dev/null +++ b/typescript/src/models/RasterSymbologyWithType.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Colorizer } from './Colorizer'; +import { + ColorizerFromJSON, + ColorizerFromJSONTyped, + ColorizerToJSON, +} from './Colorizer'; + +/** + * + * @export + * @interface RasterSymbologyWithType + */ +export interface RasterSymbologyWithType { + /** + * + * @type {Colorizer} + * @memberof RasterSymbologyWithType + */ + colorizer: Colorizer; + /** + * + * @type {number} + * @memberof RasterSymbologyWithType + */ + opacity: number; + /** + * + * @type {string} + * @memberof RasterSymbologyWithType + */ + type: RasterSymbologyWithTypeTypeEnum; +} + + +/** + * @export + */ +export const RasterSymbologyWithTypeTypeEnum = { + Raster: 'raster' +} as const; +export type RasterSymbologyWithTypeTypeEnum = typeof RasterSymbologyWithTypeTypeEnum[keyof typeof RasterSymbologyWithTypeTypeEnum]; + + +/** + * Check if a given object implements the RasterSymbologyWithType interface. + */ +export function instanceOfRasterSymbologyWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "colorizer" in value; + isInstance = isInstance && "opacity" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function RasterSymbologyWithTypeFromJSON(json: any): RasterSymbologyWithType { + return RasterSymbologyWithTypeFromJSONTyped(json, false); +} + +export function RasterSymbologyWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterSymbologyWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'colorizer': ColorizerFromJSON(json['colorizer']), + 'opacity': json['opacity'], + 'type': json['type'], + }; +} + +export function RasterSymbologyWithTypeToJSON(value?: RasterSymbologyWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'colorizer': ColorizerToJSON(value.colorizer), + 'opacity': value.opacity, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Resource.ts b/typescript/src/models/Resource.ts new file mode 100644 index 00000000..f70fb13f --- /dev/null +++ b/typescript/src/models/Resource.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + DatasetResource, + instanceOfDatasetResource, + DatasetResourceFromJSON, + DatasetResourceFromJSONTyped, + DatasetResourceToJSON, +} from './DatasetResource'; +import { + LayerCollectionResource, + instanceOfLayerCollectionResource, + LayerCollectionResourceFromJSON, + LayerCollectionResourceFromJSONTyped, + LayerCollectionResourceToJSON, +} from './LayerCollectionResource'; +import { + LayerResource, + instanceOfLayerResource, + LayerResourceFromJSON, + LayerResourceFromJSONTyped, + LayerResourceToJSON, +} from './LayerResource'; +import { + ProjectResource, + instanceOfProjectResource, + ProjectResourceFromJSON, + ProjectResourceFromJSONTyped, + ProjectResourceToJSON, +} from './ProjectResource'; + +/** + * @type Resource + * + * @export + */ +export type Resource = { type: 'dataset' } & DatasetResource | { type: 'layer' } & LayerResource | { type: 'layerCollection' } & LayerCollectionResource | { type: 'project' } & ProjectResource; + +export function ResourceFromJSON(json: any): Resource { + return ResourceFromJSONTyped(json, false); +} + +export function ResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resource { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'dataset': + return {...DatasetResourceFromJSONTyped(json, true), type: 'dataset'}; + case 'layer': + return {...LayerResourceFromJSONTyped(json, true), type: 'layer'}; + case 'layerCollection': + return {...LayerCollectionResourceFromJSONTyped(json, true), type: 'layerCollection'}; + case 'project': + return {...ProjectResourceFromJSONTyped(json, true), type: 'project'}; + default: + throw new Error(`No variant of Resource exists with 'type=${json['type']}'`); + } +} + +export function ResourceToJSON(value?: Resource | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'dataset': + return DatasetResourceToJSON(value); + case 'layer': + return LayerResourceToJSON(value); + case 'layerCollection': + return LayerCollectionResourceToJSON(value); + case 'project': + return ProjectResourceToJSON(value); + default: + throw new Error(`No variant of Resource exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/ResourceId.ts b/typescript/src/models/ResourceId.ts new file mode 100644 index 00000000..874b1f67 --- /dev/null +++ b/typescript/src/models/ResourceId.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + DatasetIdResourceId, + instanceOfDatasetIdResourceId, + DatasetIdResourceIdFromJSON, + DatasetIdResourceIdFromJSONTyped, + DatasetIdResourceIdToJSON, +} from './DatasetIdResourceId'; +import { + LayerCollectionResourceId, + instanceOfLayerCollectionResourceId, + LayerCollectionResourceIdFromJSON, + LayerCollectionResourceIdFromJSONTyped, + LayerCollectionResourceIdToJSON, +} from './LayerCollectionResourceId'; +import { + LayerResourceId, + instanceOfLayerResourceId, + LayerResourceIdFromJSON, + LayerResourceIdFromJSONTyped, + LayerResourceIdToJSON, +} from './LayerResourceId'; +import { + ModelIdResourceId, + instanceOfModelIdResourceId, + ModelIdResourceIdFromJSON, + ModelIdResourceIdFromJSONTyped, + ModelIdResourceIdToJSON, +} from './ModelIdResourceId'; +import { + ProjectResourceId, + instanceOfProjectResourceId, + ProjectResourceIdFromJSON, + ProjectResourceIdFromJSONTyped, + ProjectResourceIdToJSON, +} from './ProjectResourceId'; + +/** + * @type ResourceId + * + * @export + */ +export type ResourceId = { type: 'DatasetId' } & DatasetIdResourceId | { type: 'Layer' } & LayerResourceId | { type: 'LayerCollection' } & LayerCollectionResourceId | { type: 'ModelId' } & ModelIdResourceId | { type: 'Project' } & ProjectResourceId; + +export function ResourceIdFromJSON(json: any): ResourceId { + return ResourceIdFromJSONTyped(json, false); +} + +export function ResourceIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceId { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'DatasetId': + return {...DatasetIdResourceIdFromJSONTyped(json, true), type: 'DatasetId'}; + case 'Layer': + return {...LayerResourceIdFromJSONTyped(json, true), type: 'Layer'}; + case 'LayerCollection': + return {...LayerCollectionResourceIdFromJSONTyped(json, true), type: 'LayerCollection'}; + case 'ModelId': + return {...ModelIdResourceIdFromJSONTyped(json, true), type: 'ModelId'}; + case 'Project': + return {...ProjectResourceIdFromJSONTyped(json, true), type: 'Project'}; + default: + throw new Error(`No variant of ResourceId exists with 'type=${json['type']}'`); + } +} + +export function ResourceIdToJSON(value?: ResourceId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'DatasetId': + return DatasetIdResourceIdToJSON(value); + case 'Layer': + return LayerResourceIdToJSON(value); + case 'LayerCollection': + return LayerCollectionResourceIdToJSON(value); + case 'ModelId': + return ModelIdResourceIdToJSON(value); + case 'Project': + return ProjectResourceIdToJSON(value); + default: + throw new Error(`No variant of ResourceId exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/RgbaColorizer.ts b/typescript/src/models/RgbaColorizer.ts new file mode 100644 index 00000000..17ca0b8f --- /dev/null +++ b/typescript/src/models/RgbaColorizer.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RgbaColorizer + */ +export interface RgbaColorizer { + /** + * + * @type {string} + * @memberof RgbaColorizer + */ + type: RgbaColorizerTypeEnum; +} + + +/** + * @export + */ +export const RgbaColorizerTypeEnum = { + Rgba: 'rgba' +} as const; +export type RgbaColorizerTypeEnum = typeof RgbaColorizerTypeEnum[keyof typeof RgbaColorizerTypeEnum]; + + +/** + * Check if a given object implements the RgbaColorizer interface. + */ +export function instanceOfRgbaColorizer(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function RgbaColorizerFromJSON(json: any): RgbaColorizer { + return RgbaColorizerFromJSONTyped(json, false); +} + +export function RgbaColorizerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RgbaColorizer { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function RgbaColorizerToJSON(value?: RgbaColorizer | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Role.ts b/typescript/src/models/Role.ts new file mode 100644 index 00000000..5ba44a2e --- /dev/null +++ b/typescript/src/models/Role.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Role + */ +export interface Role { + /** + * + * @type {string} + * @memberof Role + */ + id: string; + /** + * + * @type {string} + * @memberof Role + */ + name: string; +} + +/** + * Check if a given object implements the Role interface. + */ +export function instanceOfRole(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "name" in value; + + return isInstance; +} + +export function RoleFromJSON(json: any): Role { + return RoleFromJSONTyped(json, false); +} + +export function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'id': json['id'], + 'name': json['name'], + }; +} + +export function RoleToJSON(value?: Role | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'id': value.id, + 'name': value.name, + }; +} + diff --git a/typescript/src/models/RoleDescription.ts b/typescript/src/models/RoleDescription.ts new file mode 100644 index 00000000..62f07532 --- /dev/null +++ b/typescript/src/models/RoleDescription.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Role } from './Role'; +import { + RoleFromJSON, + RoleFromJSONTyped, + RoleToJSON, +} from './Role'; + +/** + * + * @export + * @interface RoleDescription + */ +export interface RoleDescription { + /** + * + * @type {boolean} + * @memberof RoleDescription + */ + individual: boolean; + /** + * + * @type {Role} + * @memberof RoleDescription + */ + role: Role; +} + +/** + * Check if a given object implements the RoleDescription interface. + */ +export function instanceOfRoleDescription(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "individual" in value; + isInstance = isInstance && "role" in value; + + return isInstance; +} + +export function RoleDescriptionFromJSON(json: any): RoleDescription { + return RoleDescriptionFromJSONTyped(json, false); +} + +export function RoleDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleDescription { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'individual': json['individual'], + 'role': RoleFromJSON(json['role']), + }; +} + +export function RoleDescriptionToJSON(value?: RoleDescription | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'individual': value.individual, + 'role': RoleToJSON(value.role), + }; +} + diff --git a/typescript/src/models/RunningTaskStatus.ts b/typescript/src/models/RunningTaskStatus.ts new file mode 100644 index 00000000..751ec96b --- /dev/null +++ b/typescript/src/models/RunningTaskStatus.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface RunningTaskStatus + */ +export interface RunningTaskStatus { + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + description?: string; + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + estimatedTimeRemaining: string; + /** + * + * @type {any} + * @memberof RunningTaskStatus + */ + info?: any | null; + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + pctComplete: string; + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + status: RunningTaskStatusStatusEnum; + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + taskType: string; + /** + * + * @type {string} + * @memberof RunningTaskStatus + */ + timeStarted: string; +} + + +/** + * @export + */ +export const RunningTaskStatusStatusEnum = { + Running: 'running' +} as const; +export type RunningTaskStatusStatusEnum = typeof RunningTaskStatusStatusEnum[keyof typeof RunningTaskStatusStatusEnum]; + + +/** + * Check if a given object implements the RunningTaskStatus interface. + */ +export function instanceOfRunningTaskStatus(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "estimatedTimeRemaining" in value; + isInstance = isInstance && "pctComplete" in value; + isInstance = isInstance && "status" in value; + isInstance = isInstance && "taskType" in value; + isInstance = isInstance && "timeStarted" in value; + + return isInstance; +} + +export function RunningTaskStatusFromJSON(json: any): RunningTaskStatus { + return RunningTaskStatusFromJSONTyped(json, false); +} + +export function RunningTaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunningTaskStatus { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'description': !exists(json, 'description') ? undefined : json['description'], + 'estimatedTimeRemaining': json['estimatedTimeRemaining'], + 'info': !exists(json, 'info') ? undefined : json['info'], + 'pctComplete': json['pctComplete'], + 'status': json['status'], + 'taskType': json['taskType'], + 'timeStarted': json['timeStarted'], + }; +} + +export function RunningTaskStatusToJSON(value?: RunningTaskStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'description': value.description, + 'estimatedTimeRemaining': value.estimatedTimeRemaining, + 'info': value.info, + 'pctComplete': value.pctComplete, + 'status': value.status, + 'taskType': value.taskType, + 'timeStarted': value.timeStarted, + }; +} + diff --git a/typescript/src/models/STRectangle.ts b/typescript/src/models/STRectangle.ts new file mode 100644 index 00000000..b13a5c93 --- /dev/null +++ b/typescript/src/models/STRectangle.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * + * @export + * @interface STRectangle + */ +export interface STRectangle { + /** + * + * @type {BoundingBox2D} + * @memberof STRectangle + */ + boundingBox: BoundingBox2D; + /** + * + * @type {string} + * @memberof STRectangle + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof STRectangle + */ + timeInterval: TimeInterval; +} + +/** + * Check if a given object implements the STRectangle interface. + */ +export function instanceOfSTRectangle(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "boundingBox" in value; + isInstance = isInstance && "spatialReference" in value; + isInstance = isInstance && "timeInterval" in value; + + return isInstance; +} + +export function STRectangleFromJSON(json: any): STRectangle { + return STRectangleFromJSONTyped(json, false); +} + +export function STRectangleFromJSONTyped(json: any, ignoreDiscriminator: boolean): STRectangle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'boundingBox': BoundingBox2DFromJSON(json['boundingBox']), + 'spatialReference': json['spatialReference'], + 'timeInterval': TimeIntervalFromJSON(json['timeInterval']), + }; +} + +export function STRectangleToJSON(value?: STRectangle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'boundingBox': BoundingBox2DToJSON(value.boundingBox), + 'spatialReference': value.spatialReference, + 'timeInterval': TimeIntervalToJSON(value.timeInterval), + }; +} + diff --git a/typescript/src/models/ServerInfo.ts b/typescript/src/models/ServerInfo.ts new file mode 100644 index 00000000..56c1a7f3 --- /dev/null +++ b/typescript/src/models/ServerInfo.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ServerInfo + */ +export interface ServerInfo { + /** + * + * @type {string} + * @memberof ServerInfo + */ + buildDate: string; + /** + * + * @type {string} + * @memberof ServerInfo + */ + commitHash: string; + /** + * + * @type {string} + * @memberof ServerInfo + */ + features: string; + /** + * + * @type {string} + * @memberof ServerInfo + */ + version: string; +} + +/** + * Check if a given object implements the ServerInfo interface. + */ +export function instanceOfServerInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "buildDate" in value; + isInstance = isInstance && "commitHash" in value; + isInstance = isInstance && "features" in value; + isInstance = isInstance && "version" in value; + + return isInstance; +} + +export function ServerInfoFromJSON(json: any): ServerInfo { + return ServerInfoFromJSONTyped(json, false); +} + +export function ServerInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'buildDate': json['buildDate'], + 'commitHash': json['commitHash'], + 'features': json['features'], + 'version': json['version'], + }; +} + +export function ServerInfoToJSON(value?: ServerInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'buildDate': value.buildDate, + 'commitHash': value.commitHash, + 'features': value.features, + 'version': value.version, + }; +} + diff --git a/typescript/src/models/SpatialPartition2D.ts b/typescript/src/models/SpatialPartition2D.ts new file mode 100644 index 00000000..2883d1d9 --- /dev/null +++ b/typescript/src/models/SpatialPartition2D.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, +} from './Coordinate2D'; + +/** + * A partition of space that include the upper left but excludes the lower right coordinate + * @export + * @interface SpatialPartition2D + */ +export interface SpatialPartition2D { + /** + * + * @type {Coordinate2D} + * @memberof SpatialPartition2D + */ + lowerRightCoordinate: Coordinate2D; + /** + * + * @type {Coordinate2D} + * @memberof SpatialPartition2D + */ + upperLeftCoordinate: Coordinate2D; +} + +/** + * Check if a given object implements the SpatialPartition2D interface. + */ +export function instanceOfSpatialPartition2D(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "lowerRightCoordinate" in value; + isInstance = isInstance && "upperLeftCoordinate" in value; + + return isInstance; +} + +export function SpatialPartition2DFromJSON(json: any): SpatialPartition2D { + return SpatialPartition2DFromJSONTyped(json, false); +} + +export function SpatialPartition2DFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpatialPartition2D { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'lowerRightCoordinate': Coordinate2DFromJSON(json['lowerRightCoordinate']), + 'upperLeftCoordinate': Coordinate2DFromJSON(json['upperLeftCoordinate']), + }; +} + +export function SpatialPartition2DToJSON(value?: SpatialPartition2D | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'lowerRightCoordinate': Coordinate2DToJSON(value.lowerRightCoordinate), + 'upperLeftCoordinate': Coordinate2DToJSON(value.upperLeftCoordinate), + }; +} + diff --git a/typescript/src/models/SpatialReferenceAuthority.ts b/typescript/src/models/SpatialReferenceAuthority.ts new file mode 100644 index 00000000..f81b7bec --- /dev/null +++ b/typescript/src/models/SpatialReferenceAuthority.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * A spatial reference authority that is part of a spatial reference definition + * @export + */ +export const SpatialReferenceAuthority = { + Epsg: 'EPSG', + SrOrg: 'SR-ORG', + Iau2000: 'IAU2000', + Esri: 'ESRI' +} as const; +export type SpatialReferenceAuthority = typeof SpatialReferenceAuthority[keyof typeof SpatialReferenceAuthority]; + + +export function SpatialReferenceAuthorityFromJSON(json: any): SpatialReferenceAuthority { + return SpatialReferenceAuthorityFromJSONTyped(json, false); +} + +export function SpatialReferenceAuthorityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpatialReferenceAuthority { + return json as SpatialReferenceAuthority; +} + +export function SpatialReferenceAuthorityToJSON(value?: SpatialReferenceAuthority | null): any { + return value as any; +} + diff --git a/typescript/src/models/SpatialReferenceSpecification.ts b/typescript/src/models/SpatialReferenceSpecification.ts new file mode 100644 index 00000000..a6dc45ae --- /dev/null +++ b/typescript/src/models/SpatialReferenceSpecification.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { AxisOrder } from './AxisOrder'; +import { + AxisOrderFromJSON, + AxisOrderFromJSONTyped, + AxisOrderToJSON, +} from './AxisOrder'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; + +/** + * The specification of a spatial reference, where extent and axis labels are given + * in natural order (x, y) = (east, north) + * @export + * @interface SpatialReferenceSpecification + */ +export interface SpatialReferenceSpecification { + /** + * + * @type {Array} + * @memberof SpatialReferenceSpecification + */ + axisLabels?: Array | null; + /** + * + * @type {AxisOrder} + * @memberof SpatialReferenceSpecification + */ + axisOrder?: AxisOrder | null; + /** + * + * @type {BoundingBox2D} + * @memberof SpatialReferenceSpecification + */ + extent: BoundingBox2D; + /** + * + * @type {string} + * @memberof SpatialReferenceSpecification + */ + name: string; + /** + * + * @type {string} + * @memberof SpatialReferenceSpecification + */ + projString: string; + /** + * + * @type {string} + * @memberof SpatialReferenceSpecification + */ + spatialReference: string; +} + +/** + * Check if a given object implements the SpatialReferenceSpecification interface. + */ +export function instanceOfSpatialReferenceSpecification(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "extent" in value; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "projString" in value; + isInstance = isInstance && "spatialReference" in value; + + return isInstance; +} + +export function SpatialReferenceSpecificationFromJSON(json: any): SpatialReferenceSpecification { + return SpatialReferenceSpecificationFromJSONTyped(json, false); +} + +export function SpatialReferenceSpecificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpatialReferenceSpecification { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'axisLabels': !exists(json, 'axisLabels') ? undefined : json['axisLabels'], + 'axisOrder': !exists(json, 'axisOrder') ? undefined : AxisOrderFromJSON(json['axisOrder']), + 'extent': BoundingBox2DFromJSON(json['extent']), + 'name': json['name'], + 'projString': json['projString'], + 'spatialReference': json['spatialReference'], + }; +} + +export function SpatialReferenceSpecificationToJSON(value?: SpatialReferenceSpecification | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'axisLabels': value.axisLabels, + 'axisOrder': AxisOrderToJSON(value.axisOrder), + 'extent': BoundingBox2DToJSON(value.extent), + 'name': value.name, + 'projString': value.projString, + 'spatialReference': value.spatialReference, + }; +} + diff --git a/typescript/src/models/SpatialResolution.ts b/typescript/src/models/SpatialResolution.ts new file mode 100644 index 00000000..fdaff479 --- /dev/null +++ b/typescript/src/models/SpatialResolution.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * The spatial resolution in SRS units + * @export + * @interface SpatialResolution + */ +export interface SpatialResolution { + /** + * + * @type {number} + * @memberof SpatialResolution + */ + x: number; + /** + * + * @type {number} + * @memberof SpatialResolution + */ + y: number; +} + +/** + * Check if a given object implements the SpatialResolution interface. + */ +export function instanceOfSpatialResolution(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "x" in value; + isInstance = isInstance && "y" in value; + + return isInstance; +} + +export function SpatialResolutionFromJSON(json: any): SpatialResolution { + return SpatialResolutionFromJSONTyped(json, false); +} + +export function SpatialResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpatialResolution { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'x': json['x'], + 'y': json['y'], + }; +} + +export function SpatialResolutionToJSON(value?: SpatialResolution | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'x': value.x, + 'y': value.y, + }; +} + diff --git a/typescript/src/models/StartDurationOgrSourceDatasetTimeType.ts b/typescript/src/models/StartDurationOgrSourceDatasetTimeType.ts new file mode 100644 index 00000000..16ea1044 --- /dev/null +++ b/typescript/src/models/StartDurationOgrSourceDatasetTimeType.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceTimeFormat } from './OgrSourceTimeFormat'; +import { + OgrSourceTimeFormatFromJSON, + OgrSourceTimeFormatFromJSONTyped, + OgrSourceTimeFormatToJSON, +} from './OgrSourceTimeFormat'; + +/** + * + * @export + * @interface StartDurationOgrSourceDatasetTimeType + */ +export interface StartDurationOgrSourceDatasetTimeType { + /** + * + * @type {string} + * @memberof StartDurationOgrSourceDatasetTimeType + */ + durationField: string; + /** + * + * @type {string} + * @memberof StartDurationOgrSourceDatasetTimeType + */ + startField: string; + /** + * + * @type {OgrSourceTimeFormat} + * @memberof StartDurationOgrSourceDatasetTimeType + */ + startFormat: OgrSourceTimeFormat; + /** + * + * @type {string} + * @memberof StartDurationOgrSourceDatasetTimeType + */ + type: StartDurationOgrSourceDatasetTimeTypeTypeEnum; +} + + +/** + * @export + */ +export const StartDurationOgrSourceDatasetTimeTypeTypeEnum = { + StartDuration: 'startDuration' +} as const; +export type StartDurationOgrSourceDatasetTimeTypeTypeEnum = typeof StartDurationOgrSourceDatasetTimeTypeTypeEnum[keyof typeof StartDurationOgrSourceDatasetTimeTypeTypeEnum]; + + +/** + * Check if a given object implements the StartDurationOgrSourceDatasetTimeType interface. + */ +export function instanceOfStartDurationOgrSourceDatasetTimeType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "durationField" in value; + isInstance = isInstance && "startField" in value; + isInstance = isInstance && "startFormat" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function StartDurationOgrSourceDatasetTimeTypeFromJSON(json: any): StartDurationOgrSourceDatasetTimeType { + return StartDurationOgrSourceDatasetTimeTypeFromJSONTyped(json, false); +} + +export function StartDurationOgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartDurationOgrSourceDatasetTimeType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'durationField': json['durationField'], + 'startField': json['startField'], + 'startFormat': OgrSourceTimeFormatFromJSON(json['startFormat']), + 'type': json['type'], + }; +} + +export function StartDurationOgrSourceDatasetTimeTypeToJSON(value?: StartDurationOgrSourceDatasetTimeType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'durationField': value.durationField, + 'startField': value.startField, + 'startFormat': OgrSourceTimeFormatToJSON(value.startFormat), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/StartEndOgrSourceDatasetTimeType.ts b/typescript/src/models/StartEndOgrSourceDatasetTimeType.ts new file mode 100644 index 00000000..815c1828 --- /dev/null +++ b/typescript/src/models/StartEndOgrSourceDatasetTimeType.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceTimeFormat } from './OgrSourceTimeFormat'; +import { + OgrSourceTimeFormatFromJSON, + OgrSourceTimeFormatFromJSONTyped, + OgrSourceTimeFormatToJSON, +} from './OgrSourceTimeFormat'; + +/** + * + * @export + * @interface StartEndOgrSourceDatasetTimeType + */ +export interface StartEndOgrSourceDatasetTimeType { + /** + * + * @type {string} + * @memberof StartEndOgrSourceDatasetTimeType + */ + endField: string; + /** + * + * @type {OgrSourceTimeFormat} + * @memberof StartEndOgrSourceDatasetTimeType + */ + endFormat: OgrSourceTimeFormat; + /** + * + * @type {string} + * @memberof StartEndOgrSourceDatasetTimeType + */ + startField: string; + /** + * + * @type {OgrSourceTimeFormat} + * @memberof StartEndOgrSourceDatasetTimeType + */ + startFormat: OgrSourceTimeFormat; + /** + * + * @type {string} + * @memberof StartEndOgrSourceDatasetTimeType + */ + type: StartEndOgrSourceDatasetTimeTypeTypeEnum; +} + + +/** + * @export + */ +export const StartEndOgrSourceDatasetTimeTypeTypeEnum = { + StartEnd: 'startEnd' +} as const; +export type StartEndOgrSourceDatasetTimeTypeTypeEnum = typeof StartEndOgrSourceDatasetTimeTypeTypeEnum[keyof typeof StartEndOgrSourceDatasetTimeTypeTypeEnum]; + + +/** + * Check if a given object implements the StartEndOgrSourceDatasetTimeType interface. + */ +export function instanceOfStartEndOgrSourceDatasetTimeType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "endField" in value; + isInstance = isInstance && "endFormat" in value; + isInstance = isInstance && "startField" in value; + isInstance = isInstance && "startFormat" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function StartEndOgrSourceDatasetTimeTypeFromJSON(json: any): StartEndOgrSourceDatasetTimeType { + return StartEndOgrSourceDatasetTimeTypeFromJSONTyped(json, false); +} + +export function StartEndOgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartEndOgrSourceDatasetTimeType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'endField': json['endField'], + 'endFormat': OgrSourceTimeFormatFromJSON(json['endFormat']), + 'startField': json['startField'], + 'startFormat': OgrSourceTimeFormatFromJSON(json['startFormat']), + 'type': json['type'], + }; +} + +export function StartEndOgrSourceDatasetTimeTypeToJSON(value?: StartEndOgrSourceDatasetTimeType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'endField': value.endField, + 'endFormat': OgrSourceTimeFormatToJSON(value.endFormat), + 'startField': value.startField, + 'startFormat': OgrSourceTimeFormatToJSON(value.startFormat), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/StartOgrSourceDatasetTimeType.ts b/typescript/src/models/StartOgrSourceDatasetTimeType.ts new file mode 100644 index 00000000..cff421e3 --- /dev/null +++ b/typescript/src/models/StartOgrSourceDatasetTimeType.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { OgrSourceDurationSpec } from './OgrSourceDurationSpec'; +import { + OgrSourceDurationSpecFromJSON, + OgrSourceDurationSpecFromJSONTyped, + OgrSourceDurationSpecToJSON, +} from './OgrSourceDurationSpec'; +import type { OgrSourceTimeFormat } from './OgrSourceTimeFormat'; +import { + OgrSourceTimeFormatFromJSON, + OgrSourceTimeFormatFromJSONTyped, + OgrSourceTimeFormatToJSON, +} from './OgrSourceTimeFormat'; + +/** + * + * @export + * @interface StartOgrSourceDatasetTimeType + */ +export interface StartOgrSourceDatasetTimeType { + /** + * + * @type {OgrSourceDurationSpec} + * @memberof StartOgrSourceDatasetTimeType + */ + duration: OgrSourceDurationSpec; + /** + * + * @type {string} + * @memberof StartOgrSourceDatasetTimeType + */ + startField: string; + /** + * + * @type {OgrSourceTimeFormat} + * @memberof StartOgrSourceDatasetTimeType + */ + startFormat: OgrSourceTimeFormat; + /** + * + * @type {string} + * @memberof StartOgrSourceDatasetTimeType + */ + type: StartOgrSourceDatasetTimeTypeTypeEnum; +} + + +/** + * @export + */ +export const StartOgrSourceDatasetTimeTypeTypeEnum = { + Start: 'start' +} as const; +export type StartOgrSourceDatasetTimeTypeTypeEnum = typeof StartOgrSourceDatasetTimeTypeTypeEnum[keyof typeof StartOgrSourceDatasetTimeTypeTypeEnum]; + + +/** + * Check if a given object implements the StartOgrSourceDatasetTimeType interface. + */ +export function instanceOfStartOgrSourceDatasetTimeType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "duration" in value; + isInstance = isInstance && "startField" in value; + isInstance = isInstance && "startFormat" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function StartOgrSourceDatasetTimeTypeFromJSON(json: any): StartOgrSourceDatasetTimeType { + return StartOgrSourceDatasetTimeTypeFromJSONTyped(json, false); +} + +export function StartOgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartOgrSourceDatasetTimeType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'duration': OgrSourceDurationSpecFromJSON(json['duration']), + 'startField': json['startField'], + 'startFormat': OgrSourceTimeFormatFromJSON(json['startFormat']), + 'type': json['type'], + }; +} + +export function StartOgrSourceDatasetTimeTypeToJSON(value?: StartOgrSourceDatasetTimeType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'duration': OgrSourceDurationSpecToJSON(value.duration), + 'startField': value.startField, + 'startFormat': OgrSourceTimeFormatToJSON(value.startFormat), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/StaticColorParam.ts b/typescript/src/models/StaticColorParam.ts new file mode 100644 index 00000000..78ea995b --- /dev/null +++ b/typescript/src/models/StaticColorParam.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface StaticColorParam + */ +export interface StaticColorParam { + /** + * + * @type {Array} + * @memberof StaticColorParam + */ + color: Array; + /** + * + * @type {string} + * @memberof StaticColorParam + */ + type: StaticColorParamTypeEnum; +} + + +/** + * @export + */ +export const StaticColorParamTypeEnum = { + Static: 'static', + Derived: 'derived' +} as const; +export type StaticColorParamTypeEnum = typeof StaticColorParamTypeEnum[keyof typeof StaticColorParamTypeEnum]; + + +/** + * Check if a given object implements the StaticColorParam interface. + */ +export function instanceOfStaticColorParam(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "color" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function StaticColorParamFromJSON(json: any): StaticColorParam { + return StaticColorParamFromJSONTyped(json, false); +} + +export function StaticColorParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): StaticColorParam { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'color': json['color'], + 'type': json['type'], + }; +} + +export function StaticColorParamToJSON(value?: StaticColorParam | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'color': value.color, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/StaticNumberParam.ts b/typescript/src/models/StaticNumberParam.ts new file mode 100644 index 00000000..9c46884e --- /dev/null +++ b/typescript/src/models/StaticNumberParam.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface StaticNumberParam + */ +export interface StaticNumberParam { + /** + * + * @type {string} + * @memberof StaticNumberParam + */ + type: StaticNumberParamTypeEnum; + /** + * + * @type {number} + * @memberof StaticNumberParam + */ + value: number; +} + + +/** + * @export + */ +export const StaticNumberParamTypeEnum = { + Static: 'static', + Derived: 'derived' +} as const; +export type StaticNumberParamTypeEnum = typeof StaticNumberParamTypeEnum[keyof typeof StaticNumberParamTypeEnum]; + + +/** + * Check if a given object implements the StaticNumberParam interface. + */ +export function instanceOfStaticNumberParam(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + isInstance = isInstance && "value" in value; + + return isInstance; +} + +export function StaticNumberParamFromJSON(json: any): StaticNumberParam { + return StaticNumberParamFromJSONTyped(json, false); +} + +export function StaticNumberParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): StaticNumberParam { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + 'value': json['value'], + }; +} + +export function StaticNumberParamToJSON(value?: StaticNumberParam | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + 'value': value.value, + }; +} + diff --git a/typescript/src/models/StrokeParam.ts b/typescript/src/models/StrokeParam.ts new file mode 100644 index 00000000..bbd3555c --- /dev/null +++ b/typescript/src/models/StrokeParam.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { NumberParam } from './NumberParam'; +import { + NumberParamFromJSON, + NumberParamFromJSONTyped, + NumberParamToJSON, +} from './NumberParam'; + +/** + * + * @export + * @interface StrokeParam + */ +export interface StrokeParam { + /** + * + * @type {ColorParam} + * @memberof StrokeParam + */ + color: ColorParam; + /** + * + * @type {NumberParam} + * @memberof StrokeParam + */ + width: NumberParam; +} + +/** + * Check if a given object implements the StrokeParam interface. + */ +export function instanceOfStrokeParam(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "color" in value; + isInstance = isInstance && "width" in value; + + return isInstance; +} + +export function StrokeParamFromJSON(json: any): StrokeParam { + return StrokeParamFromJSONTyped(json, false); +} + +export function StrokeParamFromJSONTyped(json: any, ignoreDiscriminator: boolean): StrokeParam { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'color': ColorParamFromJSON(json['color']), + 'width': NumberParamFromJSON(json['width']), + }; +} + +export function StrokeParamToJSON(value?: StrokeParam | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'color': ColorParamToJSON(value.color), + 'width': NumberParamToJSON(value.width), + }; +} + diff --git a/typescript/src/models/Symbology.ts b/typescript/src/models/Symbology.ts new file mode 100644 index 00000000..b5fc67a6 --- /dev/null +++ b/typescript/src/models/Symbology.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + LineSymbologyWithType, + instanceOfLineSymbologyWithType, + LineSymbologyWithTypeFromJSON, + LineSymbologyWithTypeFromJSONTyped, + LineSymbologyWithTypeToJSON, +} from './LineSymbologyWithType'; +import { + PointSymbologyWithType, + instanceOfPointSymbologyWithType, + PointSymbologyWithTypeFromJSON, + PointSymbologyWithTypeFromJSONTyped, + PointSymbologyWithTypeToJSON, +} from './PointSymbologyWithType'; +import { + PolygonSymbologyWithType, + instanceOfPolygonSymbologyWithType, + PolygonSymbologyWithTypeFromJSON, + PolygonSymbologyWithTypeFromJSONTyped, + PolygonSymbologyWithTypeToJSON, +} from './PolygonSymbologyWithType'; +import { + RasterSymbologyWithType, + instanceOfRasterSymbologyWithType, + RasterSymbologyWithTypeFromJSON, + RasterSymbologyWithTypeFromJSONTyped, + RasterSymbologyWithTypeToJSON, +} from './RasterSymbologyWithType'; + +/** + * @type Symbology + * + * @export + */ +export type Symbology = { type: 'line' } & LineSymbologyWithType | { type: 'point' } & PointSymbologyWithType | { type: 'polygon' } & PolygonSymbologyWithType | { type: 'raster' } & RasterSymbologyWithType; + +export function SymbologyFromJSON(json: any): Symbology { + return SymbologyFromJSONTyped(json, false); +} + +export function SymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbology { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'line': + return {...LineSymbologyWithTypeFromJSONTyped(json, true), type: 'line'}; + case 'point': + return {...PointSymbologyWithTypeFromJSONTyped(json, true), type: 'point'}; + case 'polygon': + return {...PolygonSymbologyWithTypeFromJSONTyped(json, true), type: 'polygon'}; + case 'raster': + return {...RasterSymbologyWithTypeFromJSONTyped(json, true), type: 'raster'}; + default: + throw new Error(`No variant of Symbology exists with 'type=${json['type']}'`); + } +} + +export function SymbologyToJSON(value?: Symbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'line': + return LineSymbologyWithTypeToJSON(value); + case 'point': + return PointSymbologyWithTypeToJSON(value); + case 'polygon': + return PolygonSymbologyWithTypeToJSON(value); + case 'raster': + return RasterSymbologyWithTypeToJSON(value); + default: + throw new Error(`No variant of Symbology exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/TaskAbortOptions.ts b/typescript/src/models/TaskAbortOptions.ts new file mode 100644 index 00000000..aa6e9090 --- /dev/null +++ b/typescript/src/models/TaskAbortOptions.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface TaskAbortOptions + */ +export interface TaskAbortOptions { + /** + * + * @type {boolean} + * @memberof TaskAbortOptions + */ + force?: boolean; +} + +/** + * Check if a given object implements the TaskAbortOptions interface. + */ +export function instanceOfTaskAbortOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function TaskAbortOptionsFromJSON(json: any): TaskAbortOptions { + return TaskAbortOptionsFromJSONTyped(json, false); +} + +export function TaskAbortOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskAbortOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'force': !exists(json, 'force') ? undefined : json['force'], + }; +} + +export function TaskAbortOptionsToJSON(value?: TaskAbortOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'force': value.force, + }; +} + diff --git a/typescript/src/models/TaskFilter.ts b/typescript/src/models/TaskFilter.ts new file mode 100644 index 00000000..1ee785e2 --- /dev/null +++ b/typescript/src/models/TaskFilter.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const TaskFilter = { + Running: 'running', + Aborted: 'aborted', + Failed: 'failed', + Completed: 'completed' +} as const; +export type TaskFilter = typeof TaskFilter[keyof typeof TaskFilter]; + + +export function TaskFilterFromJSON(json: any): TaskFilter { + return TaskFilterFromJSONTyped(json, false); +} + +export function TaskFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskFilter { + return json as TaskFilter; +} + +export function TaskFilterToJSON(value?: TaskFilter | null): any { + return value as any; +} + diff --git a/typescript/src/models/TaskListOptions.ts b/typescript/src/models/TaskListOptions.ts new file mode 100644 index 00000000..9a8eee1a --- /dev/null +++ b/typescript/src/models/TaskListOptions.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TaskFilter } from './TaskFilter'; +import { + TaskFilterFromJSON, + TaskFilterFromJSONTyped, + TaskFilterToJSON, +} from './TaskFilter'; + +/** + * + * @export + * @interface TaskListOptions + */ +export interface TaskListOptions { + /** + * + * @type {TaskFilter} + * @memberof TaskListOptions + */ + filter?: TaskFilter | null; + /** + * + * @type {number} + * @memberof TaskListOptions + */ + limit?: number; + /** + * + * @type {number} + * @memberof TaskListOptions + */ + offset?: number; +} + +/** + * Check if a given object implements the TaskListOptions interface. + */ +export function instanceOfTaskListOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function TaskListOptionsFromJSON(json: any): TaskListOptions { + return TaskListOptionsFromJSONTyped(json, false); +} + +export function TaskListOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskListOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'filter': !exists(json, 'filter') ? undefined : TaskFilterFromJSON(json['filter']), + 'limit': !exists(json, 'limit') ? undefined : json['limit'], + 'offset': !exists(json, 'offset') ? undefined : json['offset'], + }; +} + +export function TaskListOptionsToJSON(value?: TaskListOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'filter': TaskFilterToJSON(value.filter), + 'limit': value.limit, + 'offset': value.offset, + }; +} + diff --git a/typescript/src/models/TaskResponse.ts b/typescript/src/models/TaskResponse.ts new file mode 100644 index 00000000..7e3b39bd --- /dev/null +++ b/typescript/src/models/TaskResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Create a task somewhere and respond with a task id to query the task status. + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {string} + * @memberof TaskResponse + */ + taskId: string; +} + +/** + * Check if a given object implements the TaskResponse interface. + */ +export function instanceOfTaskResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "taskId" in value; + + return isInstance; +} + +export function TaskResponseFromJSON(json: any): TaskResponse { + return TaskResponseFromJSONTyped(json, false); +} + +export function TaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'taskId': json['taskId'], + }; +} + +export function TaskResponseToJSON(value?: TaskResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'taskId': value.taskId, + }; +} + diff --git a/typescript/src/models/TaskStatus.ts b/typescript/src/models/TaskStatus.ts new file mode 100644 index 00000000..70adf681 --- /dev/null +++ b/typescript/src/models/TaskStatus.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + AbortedTaskStatus, + instanceOfAbortedTaskStatus, + AbortedTaskStatusFromJSON, + AbortedTaskStatusFromJSONTyped, + AbortedTaskStatusToJSON, +} from './AbortedTaskStatus'; +import { + CompletedTaskStatus, + instanceOfCompletedTaskStatus, + CompletedTaskStatusFromJSON, + CompletedTaskStatusFromJSONTyped, + CompletedTaskStatusToJSON, +} from './CompletedTaskStatus'; +import { + FailedTaskStatus, + instanceOfFailedTaskStatus, + FailedTaskStatusFromJSON, + FailedTaskStatusFromJSONTyped, + FailedTaskStatusToJSON, +} from './FailedTaskStatus'; +import { + RunningTaskStatus, + instanceOfRunningTaskStatus, + RunningTaskStatusFromJSON, + RunningTaskStatusFromJSONTyped, + RunningTaskStatusToJSON, +} from './RunningTaskStatus'; + +/** + * @type TaskStatus + * + * @export + */ +export type TaskStatus = { status: 'aborted' } & AbortedTaskStatus | { status: 'completed' } & CompletedTaskStatus | { status: 'failed' } & FailedTaskStatus | { status: 'running' } & RunningTaskStatus; + +export function TaskStatusFromJSON(json: any): TaskStatus { + return TaskStatusFromJSONTyped(json, false); +} + +export function TaskStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskStatus { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['status']) { + case 'aborted': + return {...AbortedTaskStatusFromJSONTyped(json, true), status: 'aborted'}; + case 'completed': + return {...CompletedTaskStatusFromJSONTyped(json, true), status: 'completed'}; + case 'failed': + return {...FailedTaskStatusFromJSONTyped(json, true), status: 'failed'}; + case 'running': + return {...RunningTaskStatusFromJSONTyped(json, true), status: 'running'}; + default: + throw new Error(`No variant of TaskStatus exists with 'status=${json['status']}'`); + } +} + +export function TaskStatusToJSON(value?: TaskStatus | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['status']) { + case 'aborted': + return AbortedTaskStatusToJSON(value); + case 'completed': + return CompletedTaskStatusToJSON(value); + case 'failed': + return FailedTaskStatusToJSON(value); + case 'running': + return RunningTaskStatusToJSON(value); + default: + throw new Error(`No variant of TaskStatus exists with 'status=${value['status']}'`); + } + +} + diff --git a/typescript/src/models/TaskStatusWithId.ts b/typescript/src/models/TaskStatusWithId.ts new file mode 100644 index 00000000..59ec2744 --- /dev/null +++ b/typescript/src/models/TaskStatusWithId.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TaskStatus } from './TaskStatus'; +import { + TaskStatusFromJSON, + TaskStatusFromJSONTyped, + TaskStatusToJSON, +} from './TaskStatus'; + +/** + * + * @export + * @interface TaskStatusWithId + */ +export interface TaskStatusWithId extends TaskStatus { + /** + * + * @type {string} + * @memberof TaskStatusWithId + */ + taskId: string; +} + + + +/** + * Check if a given object implements the TaskStatusWithId interface. + */ +export function instanceOfTaskStatusWithId(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "taskId" in value; + + return isInstance; +} + +export function TaskStatusWithIdFromJSON(json: any): TaskStatusWithId { + return TaskStatusWithIdFromJSONTyped(json, false); +} + +export function TaskStatusWithIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskStatusWithId { + if ((json === undefined) || (json === null)) { + return json; + } + return { + ...TaskStatusFromJSONTyped(json, ignoreDiscriminator), + 'taskId': json['taskId'], + }; +} + +export function TaskStatusWithIdToJSON(value?: TaskStatusWithId | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + ...TaskStatusToJSON(value), + 'taskId': value.taskId, + }; +} + diff --git a/typescript/src/models/TextSymbology.ts b/typescript/src/models/TextSymbology.ts new file mode 100644 index 00000000..73b81d8a --- /dev/null +++ b/typescript/src/models/TextSymbology.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { ColorParam } from './ColorParam'; +import { + ColorParamFromJSON, + ColorParamFromJSONTyped, + ColorParamToJSON, +} from './ColorParam'; +import type { StrokeParam } from './StrokeParam'; +import { + StrokeParamFromJSON, + StrokeParamFromJSONTyped, + StrokeParamToJSON, +} from './StrokeParam'; + +/** + * + * @export + * @interface TextSymbology + */ +export interface TextSymbology { + /** + * + * @type {string} + * @memberof TextSymbology + */ + attribute: string; + /** + * + * @type {ColorParam} + * @memberof TextSymbology + */ + fillColor: ColorParam; + /** + * + * @type {StrokeParam} + * @memberof TextSymbology + */ + stroke: StrokeParam; +} + +/** + * Check if a given object implements the TextSymbology interface. + */ +export function instanceOfTextSymbology(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "attribute" in value; + isInstance = isInstance && "fillColor" in value; + isInstance = isInstance && "stroke" in value; + + return isInstance; +} + +export function TextSymbologyFromJSON(json: any): TextSymbology { + return TextSymbologyFromJSONTyped(json, false); +} + +export function TextSymbologyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextSymbology { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'attribute': json['attribute'], + 'fillColor': ColorParamFromJSON(json['fillColor']), + 'stroke': StrokeParamFromJSON(json['stroke']), + }; +} + +export function TextSymbologyToJSON(value?: TextSymbology | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'attribute': value.attribute, + 'fillColor': ColorParamToJSON(value.fillColor), + 'stroke': StrokeParamToJSON(value.stroke), + }; +} + diff --git a/typescript/src/models/TimeGranularity.ts b/typescript/src/models/TimeGranularity.ts new file mode 100644 index 00000000..70179a5b --- /dev/null +++ b/typescript/src/models/TimeGranularity.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * A time granularity. + * @export + */ +export const TimeGranularity = { + Millis: 'millis', + Seconds: 'seconds', + Minutes: 'minutes', + Hours: 'hours', + Days: 'days', + Months: 'months', + Years: 'years' +} as const; +export type TimeGranularity = typeof TimeGranularity[keyof typeof TimeGranularity]; + + +export function TimeGranularityFromJSON(json: any): TimeGranularity { + return TimeGranularityFromJSONTyped(json, false); +} + +export function TimeGranularityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeGranularity { + return json as TimeGranularity; +} + +export function TimeGranularityToJSON(value?: TimeGranularity | null): any { + return value as any; +} + diff --git a/typescript/src/models/TimeInterval.ts b/typescript/src/models/TimeInterval.ts new file mode 100644 index 00000000..725effbe --- /dev/null +++ b/typescript/src/models/TimeInterval.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * Stores time intervals in ms in close-open semantic [start, end) + * @export + * @interface TimeInterval + */ +export interface TimeInterval { + /** + * + * @type {number} + * @memberof TimeInterval + */ + end: number; + /** + * + * @type {number} + * @memberof TimeInterval + */ + start: number; +} + +/** + * Check if a given object implements the TimeInterval interface. + */ +export function instanceOfTimeInterval(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "end" in value; + isInstance = isInstance && "start" in value; + + return isInstance; +} + +export function TimeIntervalFromJSON(json: any): TimeInterval { + return TimeIntervalFromJSONTyped(json, false); +} + +export function TimeIntervalFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeInterval { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'end': json['end'], + 'start': json['start'], + }; +} + +export function TimeIntervalToJSON(value?: TimeInterval | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'end': value.end, + 'start': value.start, + }; +} + diff --git a/typescript/src/models/TimeReference.ts b/typescript/src/models/TimeReference.ts new file mode 100644 index 00000000..e34fd2eb --- /dev/null +++ b/typescript/src/models/TimeReference.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const TimeReference = { + Start: 'start', + End: 'end' +} as const; +export type TimeReference = typeof TimeReference[keyof typeof TimeReference]; + + +export function TimeReferenceFromJSON(json: any): TimeReference { + return TimeReferenceFromJSONTyped(json, false); +} + +export function TimeReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeReference { + return json as TimeReference; +} + +export function TimeReferenceToJSON(value?: TimeReference | null): any { + return value as any; +} + diff --git a/typescript/src/models/TimeStep.ts b/typescript/src/models/TimeStep.ts new file mode 100644 index 00000000..f4c41286 --- /dev/null +++ b/typescript/src/models/TimeStep.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TimeGranularity } from './TimeGranularity'; +import { + TimeGranularityFromJSON, + TimeGranularityFromJSONTyped, + TimeGranularityToJSON, +} from './TimeGranularity'; + +/** + * + * @export + * @interface TimeStep + */ +export interface TimeStep { + /** + * + * @type {TimeGranularity} + * @memberof TimeStep + */ + granularity: TimeGranularity; + /** + * + * @type {number} + * @memberof TimeStep + */ + step: number; +} + +/** + * Check if a given object implements the TimeStep interface. + */ +export function instanceOfTimeStep(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "granularity" in value; + isInstance = isInstance && "step" in value; + + return isInstance; +} + +export function TimeStepFromJSON(json: any): TimeStep { + return TimeStepFromJSONTyped(json, false); +} + +export function TimeStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeStep { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'granularity': TimeGranularityFromJSON(json['granularity']), + 'step': json['step'], + }; +} + +export function TimeStepToJSON(value?: TimeStep | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'granularity': TimeGranularityToJSON(value.granularity), + 'step': value.step, + }; +} + diff --git a/typescript/src/models/TimeStepWithType.ts b/typescript/src/models/TimeStepWithType.ts new file mode 100644 index 00000000..f8ec7aeb --- /dev/null +++ b/typescript/src/models/TimeStepWithType.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TimeGranularity } from './TimeGranularity'; +import { + TimeGranularityFromJSON, + TimeGranularityFromJSONTyped, + TimeGranularityToJSON, +} from './TimeGranularity'; + +/** + * + * @export + * @interface TimeStepWithType + */ +export interface TimeStepWithType { + /** + * + * @type {TimeGranularity} + * @memberof TimeStepWithType + */ + granularity: TimeGranularity; + /** + * + * @type {number} + * @memberof TimeStepWithType + */ + step: number; + /** + * + * @type {string} + * @memberof TimeStepWithType + */ + type: TimeStepWithTypeTypeEnum; +} + + +/** + * @export + */ +export const TimeStepWithTypeTypeEnum = { + Value: 'value' +} as const; +export type TimeStepWithTypeTypeEnum = typeof TimeStepWithTypeTypeEnum[keyof typeof TimeStepWithTypeTypeEnum]; + + +/** + * Check if a given object implements the TimeStepWithType interface. + */ +export function instanceOfTimeStepWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "granularity" in value; + isInstance = isInstance && "step" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function TimeStepWithTypeFromJSON(json: any): TimeStepWithType { + return TimeStepWithTypeFromJSONTyped(json, false); +} + +export function TimeStepWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeStepWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'granularity': TimeGranularityFromJSON(json['granularity']), + 'step': json['step'], + 'type': json['type'], + }; +} + +export function TimeStepWithTypeToJSON(value?: TimeStepWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'granularity': TimeGranularityToJSON(value.granularity), + 'step': value.step, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/TypedGeometry.ts b/typescript/src/models/TypedGeometry.ts new file mode 100644 index 00000000..5929be78 --- /dev/null +++ b/typescript/src/models/TypedGeometry.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + TypedGeometryOneOf, + instanceOfTypedGeometryOneOf, + TypedGeometryOneOfFromJSON, + TypedGeometryOneOfFromJSONTyped, + TypedGeometryOneOfToJSON, +} from './TypedGeometryOneOf'; +import { + TypedGeometryOneOf1, + instanceOfTypedGeometryOneOf1, + TypedGeometryOneOf1FromJSON, + TypedGeometryOneOf1FromJSONTyped, + TypedGeometryOneOf1ToJSON, +} from './TypedGeometryOneOf1'; +import { + TypedGeometryOneOf2, + instanceOfTypedGeometryOneOf2, + TypedGeometryOneOf2FromJSON, + TypedGeometryOneOf2FromJSONTyped, + TypedGeometryOneOf2ToJSON, +} from './TypedGeometryOneOf2'; +import { + TypedGeometryOneOf3, + instanceOfTypedGeometryOneOf3, + TypedGeometryOneOf3FromJSON, + TypedGeometryOneOf3FromJSONTyped, + TypedGeometryOneOf3ToJSON, +} from './TypedGeometryOneOf3'; + +/** + * @type TypedGeometry + * + * @export + */ +export type TypedGeometry = TypedGeometryOneOf | TypedGeometryOneOf1 | TypedGeometryOneOf2 | TypedGeometryOneOf3; + +export function TypedGeometryFromJSON(json: any): TypedGeometry { + return TypedGeometryFromJSONTyped(json, false); +} + +export function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometry { + if ((json === undefined) || (json === null)) { + return json; + } + return { ...TypedGeometryOneOfFromJSONTyped(json, true), ...TypedGeometryOneOf1FromJSONTyped(json, true), ...TypedGeometryOneOf2FromJSONTyped(json, true), ...TypedGeometryOneOf3FromJSONTyped(json, true) }; +} + +export function TypedGeometryToJSON(value?: TypedGeometry | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + + if (instanceOfTypedGeometryOneOf(value)) { + return TypedGeometryOneOfToJSON(value as TypedGeometryOneOf); + } + if (instanceOfTypedGeometryOneOf1(value)) { + return TypedGeometryOneOf1ToJSON(value as TypedGeometryOneOf1); + } + if (instanceOfTypedGeometryOneOf2(value)) { + return TypedGeometryOneOf2ToJSON(value as TypedGeometryOneOf2); + } + if (instanceOfTypedGeometryOneOf3(value)) { + return TypedGeometryOneOf3ToJSON(value as TypedGeometryOneOf3); + } + + return {}; +} + diff --git a/typescript/src/models/TypedGeometryOneOf.ts b/typescript/src/models/TypedGeometryOneOf.ts new file mode 100644 index 00000000..6ce5e779 --- /dev/null +++ b/typescript/src/models/TypedGeometryOneOf.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface TypedGeometryOneOf + */ +export interface TypedGeometryOneOf { + /** + * + * @type {any} + * @memberof TypedGeometryOneOf + */ + data: any | null; +} + +/** + * Check if a given object implements the TypedGeometryOneOf interface. + */ +export function instanceOfTypedGeometryOneOf(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "data" in value; + + return isInstance; +} + +export function TypedGeometryOneOfFromJSON(json: any): TypedGeometryOneOf { + return TypedGeometryOneOfFromJSONTyped(json, false); +} + +export function TypedGeometryOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': json['Data'], + }; +} + +export function TypedGeometryOneOfToJSON(value?: TypedGeometryOneOf | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'Data': value.data, + }; +} + diff --git a/typescript/src/models/TypedGeometryOneOf1.ts b/typescript/src/models/TypedGeometryOneOf1.ts new file mode 100644 index 00000000..954c38b4 --- /dev/null +++ b/typescript/src/models/TypedGeometryOneOf1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MultiPoint } from './MultiPoint'; +import { + MultiPointFromJSON, + MultiPointFromJSONTyped, + MultiPointToJSON, +} from './MultiPoint'; + +/** + * + * @export + * @interface TypedGeometryOneOf1 + */ +export interface TypedGeometryOneOf1 { + /** + * + * @type {MultiPoint} + * @memberof TypedGeometryOneOf1 + */ + multiPoint: MultiPoint; +} + +/** + * Check if a given object implements the TypedGeometryOneOf1 interface. + */ +export function instanceOfTypedGeometryOneOf1(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "multiPoint" in value; + + return isInstance; +} + +export function TypedGeometryOneOf1FromJSON(json: any): TypedGeometryOneOf1 { + return TypedGeometryOneOf1FromJSONTyped(json, false); +} + +export function TypedGeometryOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf1 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'multiPoint': MultiPointFromJSON(json['MultiPoint']), + }; +} + +export function TypedGeometryOneOf1ToJSON(value?: TypedGeometryOneOf1 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MultiPoint': MultiPointToJSON(value.multiPoint), + }; +} + diff --git a/typescript/src/models/TypedGeometryOneOf2.ts b/typescript/src/models/TypedGeometryOneOf2.ts new file mode 100644 index 00000000..b75b314d --- /dev/null +++ b/typescript/src/models/TypedGeometryOneOf2.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MultiLineString } from './MultiLineString'; +import { + MultiLineStringFromJSON, + MultiLineStringFromJSONTyped, + MultiLineStringToJSON, +} from './MultiLineString'; + +/** + * + * @export + * @interface TypedGeometryOneOf2 + */ +export interface TypedGeometryOneOf2 { + /** + * + * @type {MultiLineString} + * @memberof TypedGeometryOneOf2 + */ + multiLineString: MultiLineString; +} + +/** + * Check if a given object implements the TypedGeometryOneOf2 interface. + */ +export function instanceOfTypedGeometryOneOf2(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "multiLineString" in value; + + return isInstance; +} + +export function TypedGeometryOneOf2FromJSON(json: any): TypedGeometryOneOf2 { + return TypedGeometryOneOf2FromJSONTyped(json, false); +} + +export function TypedGeometryOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf2 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'multiLineString': MultiLineStringFromJSON(json['MultiLineString']), + }; +} + +export function TypedGeometryOneOf2ToJSON(value?: TypedGeometryOneOf2 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MultiLineString': MultiLineStringToJSON(value.multiLineString), + }; +} + diff --git a/typescript/src/models/TypedGeometryOneOf3.ts b/typescript/src/models/TypedGeometryOneOf3.ts new file mode 100644 index 00000000..abd5a928 --- /dev/null +++ b/typescript/src/models/TypedGeometryOneOf3.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { MultiPolygon } from './MultiPolygon'; +import { + MultiPolygonFromJSON, + MultiPolygonFromJSONTyped, + MultiPolygonToJSON, +} from './MultiPolygon'; + +/** + * + * @export + * @interface TypedGeometryOneOf3 + */ +export interface TypedGeometryOneOf3 { + /** + * + * @type {MultiPolygon} + * @memberof TypedGeometryOneOf3 + */ + multiPolygon: MultiPolygon; +} + +/** + * Check if a given object implements the TypedGeometryOneOf3 interface. + */ +export function instanceOfTypedGeometryOneOf3(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "multiPolygon" in value; + + return isInstance; +} + +export function TypedGeometryOneOf3FromJSON(json: any): TypedGeometryOneOf3 { + return TypedGeometryOneOf3FromJSONTyped(json, false); +} + +export function TypedGeometryOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf3 { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'multiPolygon': MultiPolygonFromJSON(json['MultiPolygon']), + }; +} + +export function TypedGeometryOneOf3ToJSON(value?: TypedGeometryOneOf3 | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'MultiPolygon': MultiPolygonToJSON(value.multiPolygon), + }; +} + diff --git a/typescript/src/models/TypedOperator.ts b/typescript/src/models/TypedOperator.ts new file mode 100644 index 00000000..381f73cf --- /dev/null +++ b/typescript/src/models/TypedOperator.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TypedOperatorOperator } from './TypedOperatorOperator'; +import { + TypedOperatorOperatorFromJSON, + TypedOperatorOperatorFromJSONTyped, + TypedOperatorOperatorToJSON, +} from './TypedOperatorOperator'; + +/** + * An enum to differentiate between `Operator` variants + * @export + * @interface TypedOperator + */ +export interface TypedOperator { + /** + * + * @type {TypedOperatorOperator} + * @memberof TypedOperator + */ + operator: TypedOperatorOperator; + /** + * + * @type {string} + * @memberof TypedOperator + */ + type: TypedOperatorTypeEnum; +} + + +/** + * @export + */ +export const TypedOperatorTypeEnum = { + Vector: 'Vector', + Raster: 'Raster', + Plot: 'Plot' +} as const; +export type TypedOperatorTypeEnum = typeof TypedOperatorTypeEnum[keyof typeof TypedOperatorTypeEnum]; + + +/** + * Check if a given object implements the TypedOperator interface. + */ +export function instanceOfTypedOperator(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "operator" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function TypedOperatorFromJSON(json: any): TypedOperator { + return TypedOperatorFromJSONTyped(json, false); +} + +export function TypedOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedOperator { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'operator': TypedOperatorOperatorFromJSON(json['operator']), + 'type': json['type'], + }; +} + +export function TypedOperatorToJSON(value?: TypedOperator | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'operator': TypedOperatorOperatorToJSON(value.operator), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/TypedOperatorOperator.ts b/typescript/src/models/TypedOperatorOperator.ts new file mode 100644 index 00000000..37dab5c0 --- /dev/null +++ b/typescript/src/models/TypedOperatorOperator.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface TypedOperatorOperator + */ +export interface TypedOperatorOperator { + /** + * + * @type {object} + * @memberof TypedOperatorOperator + */ + params?: object; + /** + * + * @type {object} + * @memberof TypedOperatorOperator + */ + sources?: object; + /** + * + * @type {string} + * @memberof TypedOperatorOperator + */ + type: string; +} + +/** + * Check if a given object implements the TypedOperatorOperator interface. + */ +export function instanceOfTypedOperatorOperator(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function TypedOperatorOperatorFromJSON(json: any): TypedOperatorOperator { + return TypedOperatorOperatorFromJSONTyped(json, false); +} + +export function TypedOperatorOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedOperatorOperator { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'params': !exists(json, 'params') ? undefined : json['params'], + 'sources': !exists(json, 'sources') ? undefined : json['sources'], + 'type': json['type'], + }; +} + +export function TypedOperatorOperatorToJSON(value?: TypedOperatorOperator | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'params': value.params, + 'sources': value.sources, + 'type': value.type, + }; +} + diff --git a/typescript/src/models/TypedResultDescriptor.ts b/typescript/src/models/TypedResultDescriptor.ts new file mode 100644 index 00000000..bd4eb87d --- /dev/null +++ b/typescript/src/models/TypedResultDescriptor.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { + PlotResultDescriptorWithType, + instanceOfPlotResultDescriptorWithType, + PlotResultDescriptorWithTypeFromJSON, + PlotResultDescriptorWithTypeFromJSONTyped, + PlotResultDescriptorWithTypeToJSON, +} from './PlotResultDescriptorWithType'; +import { + RasterResultDescriptorWithType, + instanceOfRasterResultDescriptorWithType, + RasterResultDescriptorWithTypeFromJSON, + RasterResultDescriptorWithTypeFromJSONTyped, + RasterResultDescriptorWithTypeToJSON, +} from './RasterResultDescriptorWithType'; +import { + VectorResultDescriptorWithType, + instanceOfVectorResultDescriptorWithType, + VectorResultDescriptorWithTypeFromJSON, + VectorResultDescriptorWithTypeFromJSONTyped, + VectorResultDescriptorWithTypeToJSON, +} from './VectorResultDescriptorWithType'; + +/** + * @type TypedResultDescriptor + * + * @export + */ +export type TypedResultDescriptor = { type: 'plot' } & PlotResultDescriptorWithType | { type: 'raster' } & RasterResultDescriptorWithType | { type: 'vector' } & VectorResultDescriptorWithType; + +export function TypedResultDescriptorFromJSON(json: any): TypedResultDescriptor { + return TypedResultDescriptorFromJSONTyped(json, false); +} + +export function TypedResultDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedResultDescriptor { + if ((json === undefined) || (json === null)) { + return json; + } + switch (json['type']) { + case 'plot': + return {...PlotResultDescriptorWithTypeFromJSONTyped(json, true), type: 'plot'}; + case 'raster': + return {...RasterResultDescriptorWithTypeFromJSONTyped(json, true), type: 'raster'}; + case 'vector': + return {...VectorResultDescriptorWithTypeFromJSONTyped(json, true), type: 'vector'}; + default: + throw new Error(`No variant of TypedResultDescriptor exists with 'type=${json['type']}'`); + } +} + +export function TypedResultDescriptorToJSON(value?: TypedResultDescriptor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + switch (value['type']) { + case 'plot': + return PlotResultDescriptorWithTypeToJSON(value); + case 'raster': + return RasterResultDescriptorWithTypeToJSON(value); + case 'vector': + return VectorResultDescriptorWithTypeToJSON(value); + default: + throw new Error(`No variant of TypedResultDescriptor exists with 'type=${value['type']}'`); + } + +} + diff --git a/typescript/src/models/UnitlessMeasurement.ts b/typescript/src/models/UnitlessMeasurement.ts new file mode 100644 index 00000000..59f684cf --- /dev/null +++ b/typescript/src/models/UnitlessMeasurement.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UnitlessMeasurement + */ +export interface UnitlessMeasurement { + /** + * + * @type {string} + * @memberof UnitlessMeasurement + */ + type: UnitlessMeasurementTypeEnum; +} + + +/** + * @export + */ +export const UnitlessMeasurementTypeEnum = { + Unitless: 'unitless', + Continuous: 'continuous', + Classification: 'classification' +} as const; +export type UnitlessMeasurementTypeEnum = typeof UnitlessMeasurementTypeEnum[keyof typeof UnitlessMeasurementTypeEnum]; + + +/** + * Check if a given object implements the UnitlessMeasurement interface. + */ +export function instanceOfUnitlessMeasurement(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function UnitlessMeasurementFromJSON(json: any): UnitlessMeasurement { + return UnitlessMeasurementFromJSONTyped(json, false); +} + +export function UnitlessMeasurementFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitlessMeasurement { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function UnitlessMeasurementToJSON(value?: UnitlessMeasurement | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/typescript/src/models/UnixTimeStampOgrSourceTimeFormat.ts b/typescript/src/models/UnixTimeStampOgrSourceTimeFormat.ts new file mode 100644 index 00000000..ba24d961 --- /dev/null +++ b/typescript/src/models/UnixTimeStampOgrSourceTimeFormat.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { UnixTimeStampType } from './UnixTimeStampType'; +import { + UnixTimeStampTypeFromJSON, + UnixTimeStampTypeFromJSONTyped, + UnixTimeStampTypeToJSON, +} from './UnixTimeStampType'; + +/** + * + * @export + * @interface UnixTimeStampOgrSourceTimeFormat + */ +export interface UnixTimeStampOgrSourceTimeFormat { + /** + * + * @type {string} + * @memberof UnixTimeStampOgrSourceTimeFormat + */ + format: UnixTimeStampOgrSourceTimeFormatFormatEnum; + /** + * + * @type {UnixTimeStampType} + * @memberof UnixTimeStampOgrSourceTimeFormat + */ + timestampType: UnixTimeStampType; +} + + +/** + * @export + */ +export const UnixTimeStampOgrSourceTimeFormatFormatEnum = { + UnixTimeStamp: 'unixTimeStamp' +} as const; +export type UnixTimeStampOgrSourceTimeFormatFormatEnum = typeof UnixTimeStampOgrSourceTimeFormatFormatEnum[keyof typeof UnixTimeStampOgrSourceTimeFormatFormatEnum]; + + +/** + * Check if a given object implements the UnixTimeStampOgrSourceTimeFormat interface. + */ +export function instanceOfUnixTimeStampOgrSourceTimeFormat(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "format" in value; + isInstance = isInstance && "timestampType" in value; + + return isInstance; +} + +export function UnixTimeStampOgrSourceTimeFormatFromJSON(json: any): UnixTimeStampOgrSourceTimeFormat { + return UnixTimeStampOgrSourceTimeFormatFromJSONTyped(json, false); +} + +export function UnixTimeStampOgrSourceTimeFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnixTimeStampOgrSourceTimeFormat { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'format': json['format'], + 'timestampType': UnixTimeStampTypeFromJSON(json['timestampType']), + }; +} + +export function UnixTimeStampOgrSourceTimeFormatToJSON(value?: UnixTimeStampOgrSourceTimeFormat | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'format': value.format, + 'timestampType': UnixTimeStampTypeToJSON(value.timestampType), + }; +} + diff --git a/typescript/src/models/UnixTimeStampType.ts b/typescript/src/models/UnixTimeStampType.ts new file mode 100644 index 00000000..6f639c20 --- /dev/null +++ b/typescript/src/models/UnixTimeStampType.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const UnixTimeStampType = { + EpochSeconds: 'epochSeconds', + EpochMilliseconds: 'epochMilliseconds' +} as const; +export type UnixTimeStampType = typeof UnixTimeStampType[keyof typeof UnixTimeStampType]; + + +export function UnixTimeStampTypeFromJSON(json: any): UnixTimeStampType { + return UnixTimeStampTypeFromJSONTyped(json, false); +} + +export function UnixTimeStampTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnixTimeStampType { + return json as UnixTimeStampType; +} + +export function UnixTimeStampTypeToJSON(value?: UnixTimeStampType | null): any { + return value as any; +} + diff --git a/typescript/src/models/UpdateProject.ts b/typescript/src/models/UpdateProject.ts new file mode 100644 index 00000000..bee392fd --- /dev/null +++ b/typescript/src/models/UpdateProject.ts @@ -0,0 +1,139 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { LayerUpdate } from './LayerUpdate'; +import { + LayerUpdateFromJSON, + LayerUpdateFromJSONTyped, + LayerUpdateToJSON, +} from './LayerUpdate'; +import type { PlotUpdate } from './PlotUpdate'; +import { + PlotUpdateFromJSON, + PlotUpdateFromJSONTyped, + PlotUpdateToJSON, +} from './PlotUpdate'; +import type { STRectangle } from './STRectangle'; +import { + STRectangleFromJSON, + STRectangleFromJSONTyped, + STRectangleToJSON, +} from './STRectangle'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, +} from './TimeStep'; + +/** + * + * @export + * @interface UpdateProject + */ +export interface UpdateProject { + /** + * + * @type {STRectangle} + * @memberof UpdateProject + */ + bounds?: STRectangle | null; + /** + * + * @type {string} + * @memberof UpdateProject + */ + description?: string | null; + /** + * + * @type {string} + * @memberof UpdateProject + */ + id: string; + /** + * + * @type {Array} + * @memberof UpdateProject + */ + layers?: Array | null; + /** + * + * @type {string} + * @memberof UpdateProject + */ + name?: string | null; + /** + * + * @type {Array} + * @memberof UpdateProject + */ + plots?: Array | null; + /** + * + * @type {TimeStep} + * @memberof UpdateProject + */ + timeStep?: TimeStep | null; +} + +/** + * Check if a given object implements the UpdateProject interface. + */ +export function instanceOfUpdateProject(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + + return isInstance; +} + +export function UpdateProjectFromJSON(json: any): UpdateProject { + return UpdateProjectFromJSONTyped(json, false); +} + +export function UpdateProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProject { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bounds': !exists(json, 'bounds') ? undefined : STRectangleFromJSON(json['bounds']), + 'description': !exists(json, 'description') ? undefined : json['description'], + 'id': json['id'], + 'layers': !exists(json, 'layers') ? undefined : (json['layers'] === null ? null : (json['layers'] as Array).map(LayerUpdateFromJSON)), + 'name': !exists(json, 'name') ? undefined : json['name'], + 'plots': !exists(json, 'plots') ? undefined : (json['plots'] === null ? null : (json['plots'] as Array).map(PlotUpdateFromJSON)), + 'timeStep': !exists(json, 'timeStep') ? undefined : TimeStepFromJSON(json['timeStep']), + }; +} + +export function UpdateProjectToJSON(value?: UpdateProject | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bounds': STRectangleToJSON(value.bounds), + 'description': value.description, + 'id': value.id, + 'layers': value.layers === undefined ? undefined : (value.layers === null ? null : (value.layers as Array).map(LayerUpdateToJSON)), + 'name': value.name, + 'plots': value.plots === undefined ? undefined : (value.plots === null ? null : (value.plots as Array).map(PlotUpdateToJSON)), + 'timeStep': TimeStepToJSON(value.timeStep), + }; +} + diff --git a/typescript/src/models/UpdateQuota.ts b/typescript/src/models/UpdateQuota.ts new file mode 100644 index 00000000..5d87023d --- /dev/null +++ b/typescript/src/models/UpdateQuota.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateQuota + */ +export interface UpdateQuota { + /** + * + * @type {number} + * @memberof UpdateQuota + */ + available: number; +} + +/** + * Check if a given object implements the UpdateQuota interface. + */ +export function instanceOfUpdateQuota(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "available" in value; + + return isInstance; +} + +export function UpdateQuotaFromJSON(json: any): UpdateQuota { + return UpdateQuotaFromJSONTyped(json, false); +} + +export function UpdateQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateQuota { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'available': json['available'], + }; +} + +export function UpdateQuotaToJSON(value?: UpdateQuota | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'available': value.available, + }; +} + diff --git a/typescript/src/models/UploadFileLayersResponse.ts b/typescript/src/models/UploadFileLayersResponse.ts new file mode 100644 index 00000000..28262964 --- /dev/null +++ b/typescript/src/models/UploadFileLayersResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UploadFileLayersResponse + */ +export interface UploadFileLayersResponse { + /** + * + * @type {Array} + * @memberof UploadFileLayersResponse + */ + layers: Array; +} + +/** + * Check if a given object implements the UploadFileLayersResponse interface. + */ +export function instanceOfUploadFileLayersResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "layers" in value; + + return isInstance; +} + +export function UploadFileLayersResponseFromJSON(json: any): UploadFileLayersResponse { + return UploadFileLayersResponseFromJSONTyped(json, false); +} + +export function UploadFileLayersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadFileLayersResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'layers': json['layers'], + }; +} + +export function UploadFileLayersResponseToJSON(value?: UploadFileLayersResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'layers': value.layers, + }; +} + diff --git a/typescript/src/models/UploadFilesResponse.ts b/typescript/src/models/UploadFilesResponse.ts new file mode 100644 index 00000000..a0b92586 --- /dev/null +++ b/typescript/src/models/UploadFilesResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UploadFilesResponse + */ +export interface UploadFilesResponse { + /** + * + * @type {Array} + * @memberof UploadFilesResponse + */ + files: Array; +} + +/** + * Check if a given object implements the UploadFilesResponse interface. + */ +export function instanceOfUploadFilesResponse(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "files" in value; + + return isInstance; +} + +export function UploadFilesResponseFromJSON(json: any): UploadFilesResponse { + return UploadFilesResponseFromJSONTyped(json, false); +} + +export function UploadFilesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadFilesResponse { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'files': json['files'], + }; +} + +export function UploadFilesResponseToJSON(value?: UploadFilesResponse | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'files': value.files, + }; +} + diff --git a/typescript/src/models/UserCredentials.ts b/typescript/src/models/UserCredentials.ts new file mode 100644 index 00000000..2f7ed234 --- /dev/null +++ b/typescript/src/models/UserCredentials.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UserCredentials + */ +export interface UserCredentials { + /** + * + * @type {string} + * @memberof UserCredentials + */ + email: string; + /** + * + * @type {string} + * @memberof UserCredentials + */ + password: string; +} + +/** + * Check if a given object implements the UserCredentials interface. + */ +export function instanceOfUserCredentials(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "email" in value; + isInstance = isInstance && "password" in value; + + return isInstance; +} + +export function UserCredentialsFromJSON(json: any): UserCredentials { + return UserCredentialsFromJSONTyped(json, false); +} + +export function UserCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCredentials { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'email': json['email'], + 'password': json['password'], + }; +} + +export function UserCredentialsToJSON(value?: UserCredentials | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'email': value.email, + 'password': value.password, + }; +} + diff --git a/typescript/src/models/UserInfo.ts b/typescript/src/models/UserInfo.ts new file mode 100644 index 00000000..d2a32ca5 --- /dev/null +++ b/typescript/src/models/UserInfo.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UserInfo + */ +export interface UserInfo { + /** + * + * @type {string} + * @memberof UserInfo + */ + email?: string | null; + /** + * + * @type {string} + * @memberof UserInfo + */ + id: string; + /** + * + * @type {string} + * @memberof UserInfo + */ + realName?: string | null; +} + +/** + * Check if a given object implements the UserInfo interface. + */ +export function instanceOfUserInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "id" in value; + + return isInstance; +} + +export function UserInfoFromJSON(json: any): UserInfo { + return UserInfoFromJSONTyped(json, false); +} + +export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'email': !exists(json, 'email') ? undefined : json['email'], + 'id': json['id'], + 'realName': !exists(json, 'realName') ? undefined : json['realName'], + }; +} + +export function UserInfoToJSON(value?: UserInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'email': value.email, + 'id': value.id, + 'realName': value.realName, + }; +} + diff --git a/typescript/src/models/UserRegistration.ts b/typescript/src/models/UserRegistration.ts new file mode 100644 index 00000000..3aa9316b --- /dev/null +++ b/typescript/src/models/UserRegistration.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface UserRegistration + */ +export interface UserRegistration { + /** + * + * @type {string} + * @memberof UserRegistration + */ + email: string; + /** + * + * @type {string} + * @memberof UserRegistration + */ + password: string; + /** + * + * @type {string} + * @memberof UserRegistration + */ + realName: string; +} + +/** + * Check if a given object implements the UserRegistration interface. + */ +export function instanceOfUserRegistration(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "email" in value; + isInstance = isInstance && "password" in value; + isInstance = isInstance && "realName" in value; + + return isInstance; +} + +export function UserRegistrationFromJSON(json: any): UserRegistration { + return UserRegistrationFromJSONTyped(json, false); +} + +export function UserRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRegistration { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'email': json['email'], + 'password': json['password'], + 'realName': json['realName'], + }; +} + +export function UserRegistrationToJSON(value?: UserRegistration | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'email': value.email, + 'password': value.password, + 'realName': value.realName, + }; +} + diff --git a/typescript/src/models/UserSession.ts b/typescript/src/models/UserSession.ts new file mode 100644 index 00000000..de8afd3c --- /dev/null +++ b/typescript/src/models/UserSession.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { STRectangle } from './STRectangle'; +import { + STRectangleFromJSON, + STRectangleFromJSONTyped, + STRectangleToJSON, +} from './STRectangle'; +import type { UserInfo } from './UserInfo'; +import { + UserInfoFromJSON, + UserInfoFromJSONTyped, + UserInfoToJSON, +} from './UserInfo'; + +/** + * + * @export + * @interface UserSession + */ +export interface UserSession { + /** + * + * @type {Date} + * @memberof UserSession + */ + created: Date; + /** + * + * @type {string} + * @memberof UserSession + */ + id: string; + /** + * + * @type {string} + * @memberof UserSession + */ + project?: string | null; + /** + * + * @type {Array} + * @memberof UserSession + */ + roles: Array; + /** + * + * @type {UserInfo} + * @memberof UserSession + */ + user: UserInfo; + /** + * + * @type {Date} + * @memberof UserSession + */ + validUntil: Date; + /** + * + * @type {STRectangle} + * @memberof UserSession + */ + view?: STRectangle | null; +} + +/** + * Check if a given object implements the UserSession interface. + */ +export function instanceOfUserSession(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "created" in value; + isInstance = isInstance && "id" in value; + isInstance = isInstance && "roles" in value; + isInstance = isInstance && "user" in value; + isInstance = isInstance && "validUntil" in value; + + return isInstance; +} + +export function UserSessionFromJSON(json: any): UserSession { + return UserSessionFromJSONTyped(json, false); +} + +export function UserSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSession { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'created': (new Date(json['created'])), + 'id': json['id'], + 'project': !exists(json, 'project') ? undefined : json['project'], + 'roles': json['roles'], + 'user': UserInfoFromJSON(json['user']), + 'validUntil': (new Date(json['validUntil'])), + 'view': !exists(json, 'view') ? undefined : STRectangleFromJSON(json['view']), + }; +} + +export function UserSessionToJSON(value?: UserSession | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'created': (value.created.toISOString()), + 'id': value.id, + 'project': value.project, + 'roles': value.roles, + 'user': UserInfoToJSON(value.user), + 'validUntil': (value.validUntil.toISOString()), + 'view': STRectangleToJSON(value.view), + }; +} + diff --git a/typescript/src/models/VectorColumnInfo.ts b/typescript/src/models/VectorColumnInfo.ts new file mode 100644 index 00000000..10c5f65e --- /dev/null +++ b/typescript/src/models/VectorColumnInfo.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { FeatureDataType } from './FeatureDataType'; +import { + FeatureDataTypeFromJSON, + FeatureDataTypeFromJSONTyped, + FeatureDataTypeToJSON, +} from './FeatureDataType'; +import type { Measurement } from './Measurement'; +import { + MeasurementFromJSON, + MeasurementFromJSONTyped, + MeasurementToJSON, +} from './Measurement'; + +/** + * + * @export + * @interface VectorColumnInfo + */ +export interface VectorColumnInfo { + /** + * + * @type {FeatureDataType} + * @memberof VectorColumnInfo + */ + dataType: FeatureDataType; + /** + * + * @type {Measurement} + * @memberof VectorColumnInfo + */ + measurement: Measurement; +} + +/** + * Check if a given object implements the VectorColumnInfo interface. + */ +export function instanceOfVectorColumnInfo(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "dataType" in value; + isInstance = isInstance && "measurement" in value; + + return isInstance; +} + +export function VectorColumnInfoFromJSON(json: any): VectorColumnInfo { + return VectorColumnInfoFromJSONTyped(json, false); +} + +export function VectorColumnInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorColumnInfo { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'dataType': FeatureDataTypeFromJSON(json['dataType']), + 'measurement': MeasurementFromJSON(json['measurement']), + }; +} + +export function VectorColumnInfoToJSON(value?: VectorColumnInfo | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'dataType': FeatureDataTypeToJSON(value.dataType), + 'measurement': MeasurementToJSON(value.measurement), + }; +} + diff --git a/typescript/src/models/VectorDataType.ts b/typescript/src/models/VectorDataType.ts new file mode 100644 index 00000000..9227e961 --- /dev/null +++ b/typescript/src/models/VectorDataType.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * An enum that contains all possible vector data types + * @export + */ +export const VectorDataType = { + Data: 'Data', + MultiPoint: 'MultiPoint', + MultiLineString: 'MultiLineString', + MultiPolygon: 'MultiPolygon' +} as const; +export type VectorDataType = typeof VectorDataType[keyof typeof VectorDataType]; + + +export function VectorDataTypeFromJSON(json: any): VectorDataType { + return VectorDataTypeFromJSONTyped(json, false); +} + +export function VectorDataTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorDataType { + return json as VectorDataType; +} + +export function VectorDataTypeToJSON(value?: VectorDataType | null): any { + return value as any; +} + diff --git a/typescript/src/models/VectorQueryRectangle.ts b/typescript/src/models/VectorQueryRectangle.ts new file mode 100644 index 00000000..19226ae2 --- /dev/null +++ b/typescript/src/models/VectorQueryRectangle.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { SpatialResolution } from './SpatialResolution'; +import { + SpatialResolutionFromJSON, + SpatialResolutionFromJSONTyped, + SpatialResolutionToJSON, +} from './SpatialResolution'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; + +/** + * A spatio-temporal rectangle with a specified resolution + * @export + * @interface VectorQueryRectangle + */ +export interface VectorQueryRectangle { + /** + * + * @type {BoundingBox2D} + * @memberof VectorQueryRectangle + */ + spatialBounds: BoundingBox2D; + /** + * + * @type {SpatialResolution} + * @memberof VectorQueryRectangle + */ + spatialResolution: SpatialResolution; + /** + * + * @type {TimeInterval} + * @memberof VectorQueryRectangle + */ + timeInterval: TimeInterval; +} + +/** + * Check if a given object implements the VectorQueryRectangle interface. + */ +export function instanceOfVectorQueryRectangle(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "spatialBounds" in value; + isInstance = isInstance && "spatialResolution" in value; + isInstance = isInstance && "timeInterval" in value; + + return isInstance; +} + +export function VectorQueryRectangleFromJSON(json: any): VectorQueryRectangle { + return VectorQueryRectangleFromJSONTyped(json, false); +} + +export function VectorQueryRectangleFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorQueryRectangle { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'spatialBounds': BoundingBox2DFromJSON(json['spatialBounds']), + 'spatialResolution': SpatialResolutionFromJSON(json['spatialResolution']), + 'timeInterval': TimeIntervalFromJSON(json['timeInterval']), + }; +} + +export function VectorQueryRectangleToJSON(value?: VectorQueryRectangle | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'spatialBounds': BoundingBox2DToJSON(value.spatialBounds), + 'spatialResolution': SpatialResolutionToJSON(value.spatialResolution), + 'timeInterval': TimeIntervalToJSON(value.timeInterval), + }; +} + diff --git a/typescript/src/models/VectorResultDescriptor.ts b/typescript/src/models/VectorResultDescriptor.ts new file mode 100644 index 00000000..e5ec9440 --- /dev/null +++ b/typescript/src/models/VectorResultDescriptor.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; +import type { VectorColumnInfo } from './VectorColumnInfo'; +import { + VectorColumnInfoFromJSON, + VectorColumnInfoFromJSONTyped, + VectorColumnInfoToJSON, +} from './VectorColumnInfo'; +import type { VectorDataType } from './VectorDataType'; +import { + VectorDataTypeFromJSON, + VectorDataTypeFromJSONTyped, + VectorDataTypeToJSON, +} from './VectorDataType'; + +/** + * + * @export + * @interface VectorResultDescriptor + */ +export interface VectorResultDescriptor { + /** + * + * @type {BoundingBox2D} + * @memberof VectorResultDescriptor + */ + bbox?: BoundingBox2D | null; + /** + * + * @type {{ [key: string]: VectorColumnInfo; }} + * @memberof VectorResultDescriptor + */ + columns: { [key: string]: VectorColumnInfo; }; + /** + * + * @type {VectorDataType} + * @memberof VectorResultDescriptor + */ + dataType: VectorDataType; + /** + * + * @type {string} + * @memberof VectorResultDescriptor + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof VectorResultDescriptor + */ + time?: TimeInterval | null; +} + +/** + * Check if a given object implements the VectorResultDescriptor interface. + */ +export function instanceOfVectorResultDescriptor(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "columns" in value; + isInstance = isInstance && "dataType" in value; + isInstance = isInstance && "spatialReference" in value; + + return isInstance; +} + +export function VectorResultDescriptorFromJSON(json: any): VectorResultDescriptor { + return VectorResultDescriptorFromJSONTyped(json, false); +} + +export function VectorResultDescriptorFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorResultDescriptor { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bbox': !exists(json, 'bbox') ? undefined : BoundingBox2DFromJSON(json['bbox']), + 'columns': (mapValues(json['columns'], VectorColumnInfoFromJSON)), + 'dataType': VectorDataTypeFromJSON(json['dataType']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + }; +} + +export function VectorResultDescriptorToJSON(value?: VectorResultDescriptor | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bbox': BoundingBox2DToJSON(value.bbox), + 'columns': (mapValues(value.columns, VectorColumnInfoToJSON)), + 'dataType': VectorDataTypeToJSON(value.dataType), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + }; +} + diff --git a/typescript/src/models/VectorResultDescriptorWithType.ts b/typescript/src/models/VectorResultDescriptorWithType.ts new file mode 100644 index 00000000..52d43b22 --- /dev/null +++ b/typescript/src/models/VectorResultDescriptorWithType.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { BoundingBox2D } from './BoundingBox2D'; +import { + BoundingBox2DFromJSON, + BoundingBox2DFromJSONTyped, + BoundingBox2DToJSON, +} from './BoundingBox2D'; +import type { TimeInterval } from './TimeInterval'; +import { + TimeIntervalFromJSON, + TimeIntervalFromJSONTyped, + TimeIntervalToJSON, +} from './TimeInterval'; +import type { VectorColumnInfo } from './VectorColumnInfo'; +import { + VectorColumnInfoFromJSON, + VectorColumnInfoFromJSONTyped, + VectorColumnInfoToJSON, +} from './VectorColumnInfo'; +import type { VectorDataType } from './VectorDataType'; +import { + VectorDataTypeFromJSON, + VectorDataTypeFromJSONTyped, + VectorDataTypeToJSON, +} from './VectorDataType'; + +/** + * + * @export + * @interface VectorResultDescriptorWithType + */ +export interface VectorResultDescriptorWithType { + /** + * + * @type {BoundingBox2D} + * @memberof VectorResultDescriptorWithType + */ + bbox?: BoundingBox2D | null; + /** + * + * @type {{ [key: string]: VectorColumnInfo; }} + * @memberof VectorResultDescriptorWithType + */ + columns: { [key: string]: VectorColumnInfo; }; + /** + * + * @type {VectorDataType} + * @memberof VectorResultDescriptorWithType + */ + dataType: VectorDataType; + /** + * + * @type {string} + * @memberof VectorResultDescriptorWithType + */ + spatialReference: string; + /** + * + * @type {TimeInterval} + * @memberof VectorResultDescriptorWithType + */ + time?: TimeInterval | null; + /** + * + * @type {string} + * @memberof VectorResultDescriptorWithType + */ + type: VectorResultDescriptorWithTypeTypeEnum; +} + + +/** + * @export + */ +export const VectorResultDescriptorWithTypeTypeEnum = { + Vector: 'vector' +} as const; +export type VectorResultDescriptorWithTypeTypeEnum = typeof VectorResultDescriptorWithTypeTypeEnum[keyof typeof VectorResultDescriptorWithTypeTypeEnum]; + + +/** + * Check if a given object implements the VectorResultDescriptorWithType interface. + */ +export function instanceOfVectorResultDescriptorWithType(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "columns" in value; + isInstance = isInstance && "dataType" in value; + isInstance = isInstance && "spatialReference" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function VectorResultDescriptorWithTypeFromJSON(json: any): VectorResultDescriptorWithType { + return VectorResultDescriptorWithTypeFromJSONTyped(json, false); +} + +export function VectorResultDescriptorWithTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorResultDescriptorWithType { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bbox': !exists(json, 'bbox') ? undefined : BoundingBox2DFromJSON(json['bbox']), + 'columns': (mapValues(json['columns'], VectorColumnInfoFromJSON)), + 'dataType': VectorDataTypeFromJSON(json['dataType']), + 'spatialReference': json['spatialReference'], + 'time': !exists(json, 'time') ? undefined : TimeIntervalFromJSON(json['time']), + 'type': json['type'], + }; +} + +export function VectorResultDescriptorWithTypeToJSON(value?: VectorResultDescriptorWithType | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bbox': BoundingBox2DToJSON(value.bbox), + 'columns': (mapValues(value.columns, VectorColumnInfoToJSON)), + 'dataType': VectorDataTypeToJSON(value.dataType), + 'spatialReference': value.spatialReference, + 'time': TimeIntervalToJSON(value.time), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/Volume.ts b/typescript/src/models/Volume.ts new file mode 100644 index 00000000..5ee1cd6b --- /dev/null +++ b/typescript/src/models/Volume.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface Volume + */ +export interface Volume { + /** + * + * @type {string} + * @memberof Volume + */ + name: string; + /** + * + * @type {string} + * @memberof Volume + */ + path: string; +} + +/** + * Check if a given object implements the Volume interface. + */ +export function instanceOfVolume(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "name" in value; + isInstance = isInstance && "path" in value; + + return isInstance; +} + +export function VolumeFromJSON(json: any): Volume { + return VolumeFromJSONTyped(json, false); +} + +export function VolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'name': json['name'], + 'path': json['path'], + }; +} + +export function VolumeToJSON(value?: Volume | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'name': value.name, + 'path': value.path, + }; +} + diff --git a/typescript/src/models/WcsBoundingbox.ts b/typescript/src/models/WcsBoundingbox.ts new file mode 100644 index 00000000..fabf8eb6 --- /dev/null +++ b/typescript/src/models/WcsBoundingbox.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface WcsBoundingbox + */ +export interface WcsBoundingbox { + /** + * + * @type {Array} + * @memberof WcsBoundingbox + */ + bbox: Array; + /** + * + * @type {string} + * @memberof WcsBoundingbox + */ + spatialReference?: string | null; +} + +/** + * Check if a given object implements the WcsBoundingbox interface. + */ +export function instanceOfWcsBoundingbox(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "bbox" in value; + + return isInstance; +} + +export function WcsBoundingboxFromJSON(json: any): WcsBoundingbox { + return WcsBoundingboxFromJSONTyped(json, false); +} + +export function WcsBoundingboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsBoundingbox { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'bbox': json['bbox'], + 'spatialReference': !exists(json, 'spatial_reference') ? undefined : json['spatial_reference'], + }; +} + +export function WcsBoundingboxToJSON(value?: WcsBoundingbox | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'bbox': value.bbox, + 'spatial_reference': value.spatialReference, + }; +} + diff --git a/typescript/src/models/WcsService.ts b/typescript/src/models/WcsService.ts new file mode 100644 index 00000000..af1630d3 --- /dev/null +++ b/typescript/src/models/WcsService.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WcsService = { + Wcs: 'WCS' +} as const; +export type WcsService = typeof WcsService[keyof typeof WcsService]; + + +export function WcsServiceFromJSON(json: any): WcsService { + return WcsServiceFromJSONTyped(json, false); +} + +export function WcsServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsService { + return json as WcsService; +} + +export function WcsServiceToJSON(value?: WcsService | null): any { + return value as any; +} + diff --git a/typescript/src/models/WcsVersion.ts b/typescript/src/models/WcsVersion.ts new file mode 100644 index 00000000..9aab0541 --- /dev/null +++ b/typescript/src/models/WcsVersion.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WcsVersion = { + _0: '1.1.0', + _1: '1.1.1' +} as const; +export type WcsVersion = typeof WcsVersion[keyof typeof WcsVersion]; + + +export function WcsVersionFromJSON(json: any): WcsVersion { + return WcsVersionFromJSONTyped(json, false); +} + +export function WcsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WcsVersion { + return json as WcsVersion; +} + +export function WcsVersionToJSON(value?: WcsVersion | null): any { + return value as any; +} + diff --git a/typescript/src/models/WfsService.ts b/typescript/src/models/WfsService.ts new file mode 100644 index 00000000..63849eb7 --- /dev/null +++ b/typescript/src/models/WfsService.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WfsService = { + Wfs: 'WFS' +} as const; +export type WfsService = typeof WfsService[keyof typeof WfsService]; + + +export function WfsServiceFromJSON(json: any): WfsService { + return WfsServiceFromJSONTyped(json, false); +} + +export function WfsServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WfsService { + return json as WfsService; +} + +export function WfsServiceToJSON(value?: WfsService | null): any { + return value as any; +} + diff --git a/typescript/src/models/WfsVersion.ts b/typescript/src/models/WfsVersion.ts new file mode 100644 index 00000000..aa8c8510 --- /dev/null +++ b/typescript/src/models/WfsVersion.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WfsVersion = { + _200: '2.0.0' +} as const; +export type WfsVersion = typeof WfsVersion[keyof typeof WfsVersion]; + + +export function WfsVersionFromJSON(json: any): WfsVersion { + return WfsVersionFromJSONTyped(json, false); +} + +export function WfsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WfsVersion { + return json as WfsVersion; +} + +export function WfsVersionToJSON(value?: WfsVersion | null): any { + return value as any; +} + diff --git a/typescript/src/models/WmsService.ts b/typescript/src/models/WmsService.ts new file mode 100644 index 00000000..1718440b --- /dev/null +++ b/typescript/src/models/WmsService.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WmsService = { + Wms: 'WMS' +} as const; +export type WmsService = typeof WmsService[keyof typeof WmsService]; + + +export function WmsServiceFromJSON(json: any): WmsService { + return WmsServiceFromJSONTyped(json, false); +} + +export function WmsServiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsService { + return json as WmsService; +} + +export function WmsServiceToJSON(value?: WmsService | null): any { + return value as any; +} + diff --git a/typescript/src/models/WmsVersion.ts b/typescript/src/models/WmsVersion.ts new file mode 100644 index 00000000..959f502c --- /dev/null +++ b/typescript/src/models/WmsVersion.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const WmsVersion = { + _130: '1.3.0' +} as const; +export type WmsVersion = typeof WmsVersion[keyof typeof WmsVersion]; + + +export function WmsVersionFromJSON(json: any): WmsVersion { + return WmsVersionFromJSONTyped(json, false); +} + +export function WmsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WmsVersion { + return json as WmsVersion; +} + +export function WmsVersionToJSON(value?: WmsVersion | null): any { + return value as any; +} + diff --git a/typescript/src/models/Workflow.ts b/typescript/src/models/Workflow.ts new file mode 100644 index 00000000..fc06e59a --- /dev/null +++ b/typescript/src/models/Workflow.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { TypedOperatorOperator } from './TypedOperatorOperator'; +import { + TypedOperatorOperatorFromJSON, + TypedOperatorOperatorFromJSONTyped, + TypedOperatorOperatorToJSON, +} from './TypedOperatorOperator'; + +/** + * + * @export + * @interface Workflow + */ +export interface Workflow { + /** + * + * @type {TypedOperatorOperator} + * @memberof Workflow + */ + operator: TypedOperatorOperator; + /** + * + * @type {string} + * @memberof Workflow + */ + type: WorkflowTypeEnum; +} + + +/** + * @export + */ +export const WorkflowTypeEnum = { + Vector: 'Vector', + Raster: 'Raster', + Plot: 'Plot' +} as const; +export type WorkflowTypeEnum = typeof WorkflowTypeEnum[keyof typeof WorkflowTypeEnum]; + + +/** + * Check if a given object implements the Workflow interface. + */ +export function instanceOfWorkflow(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "operator" in value; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function WorkflowFromJSON(json: any): Workflow { + return WorkflowFromJSONTyped(json, false); +} + +export function WorkflowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Workflow { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'operator': TypedOperatorOperatorFromJSON(json['operator']), + 'type': json['type'], + }; +} + +export function WorkflowToJSON(value?: Workflow | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'operator': TypedOperatorOperatorToJSON(value.operator), + 'type': value.type, + }; +} + diff --git a/typescript/src/models/WrappedPlotOutput.ts b/typescript/src/models/WrappedPlotOutput.ts new file mode 100644 index 00000000..22e508d0 --- /dev/null +++ b/typescript/src/models/WrappedPlotOutput.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { PlotOutputFormat } from './PlotOutputFormat'; +import { + PlotOutputFormatFromJSON, + PlotOutputFormatFromJSONTyped, + PlotOutputFormatToJSON, +} from './PlotOutputFormat'; + +/** + * + * @export + * @interface WrappedPlotOutput + */ +export interface WrappedPlotOutput { + /** + * + * @type {object} + * @memberof WrappedPlotOutput + */ + data: object; + /** + * + * @type {PlotOutputFormat} + * @memberof WrappedPlotOutput + */ + outputFormat: PlotOutputFormat; + /** + * + * @type {string} + * @memberof WrappedPlotOutput + */ + plotType: string; +} + +/** + * Check if a given object implements the WrappedPlotOutput interface. + */ +export function instanceOfWrappedPlotOutput(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "data" in value; + isInstance = isInstance && "outputFormat" in value; + isInstance = isInstance && "plotType" in value; + + return isInstance; +} + +export function WrappedPlotOutputFromJSON(json: any): WrappedPlotOutput { + return WrappedPlotOutputFromJSONTyped(json, false); +} + +export function WrappedPlotOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): WrappedPlotOutput { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'data': json['data'], + 'outputFormat': PlotOutputFormatFromJSON(json['outputFormat']), + 'plotType': json['plotType'], + }; +} + +export function WrappedPlotOutputToJSON(value?: WrappedPlotOutput | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'data': value.data, + 'outputFormat': PlotOutputFormatToJSON(value.outputFormat), + 'plotType': value.plotType, + }; +} + diff --git a/typescript/src/models/ZeroOgrSourceDurationSpec.ts b/typescript/src/models/ZeroOgrSourceDurationSpec.ts new file mode 100644 index 00000000..cc0bc307 --- /dev/null +++ b/typescript/src/models/ZeroOgrSourceDurationSpec.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +/** + * + * @export + * @interface ZeroOgrSourceDurationSpec + */ +export interface ZeroOgrSourceDurationSpec { + /** + * + * @type {string} + * @memberof ZeroOgrSourceDurationSpec + */ + type: ZeroOgrSourceDurationSpecTypeEnum; +} + + +/** + * @export + */ +export const ZeroOgrSourceDurationSpecTypeEnum = { + Zero: 'zero' +} as const; +export type ZeroOgrSourceDurationSpecTypeEnum = typeof ZeroOgrSourceDurationSpecTypeEnum[keyof typeof ZeroOgrSourceDurationSpecTypeEnum]; + + +/** + * Check if a given object implements the ZeroOgrSourceDurationSpec interface. + */ +export function instanceOfZeroOgrSourceDurationSpec(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "type" in value; + + return isInstance; +} + +export function ZeroOgrSourceDurationSpecFromJSON(json: any): ZeroOgrSourceDurationSpec { + return ZeroOgrSourceDurationSpecFromJSONTyped(json, false); +} + +export function ZeroOgrSourceDurationSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZeroOgrSourceDurationSpec { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function ZeroOgrSourceDurationSpecToJSON(value?: ZeroOgrSourceDurationSpec | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'type': value.type, + }; +} + diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts new file mode 100644 index 00000000..304d3648 --- /dev/null +++ b/typescript/src/models/index.ts @@ -0,0 +1,220 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AbortedTaskStatus'; +export * from './AddCollection200Response'; +export * from './AddDataset'; +export * from './AddLayer'; +export * from './AddLayerCollection'; +export * from './AddRole'; +export * from './AutoCreateDataset'; +export * from './AutoOgrSourceTimeFormat'; +export * from './AxisOrder'; +export * from './BoundingBox2D'; +export * from './Breakpoint'; +export * from './ClassificationMeasurement'; +export * from './ClassificationMeasurementWithType'; +export * from './CollectionItem'; +export * from './CollectionType'; +export * from './ColorParam'; +export * from './Colorizer'; +export * from './CompletedTaskStatus'; +export * from './ContinuousMeasurement'; +export * from './ContinuousMeasurementWithType'; +export * from './Coordinate2D'; +export * from './CreateDataset'; +export * from './CreateDatasetHandler200Response'; +export * from './CreateProject'; +export * from './CsvHeader'; +export * from './CustomOgrSourceTimeFormat'; +export * from './DataId'; +export * from './DataPath'; +export * from './DataPathOneOf'; +export * from './DataPathOneOf1'; +export * from './Dataset'; +export * from './DatasetDefinition'; +export * from './DatasetIdResourceId'; +export * from './DatasetListing'; +export * from './DatasetResource'; +export * from './DateTime'; +export * from './DateTimeParseFormat'; +export * from './DerivedColor'; +export * from './DerivedColorWithType'; +export * from './DerivedNumber'; +export * from './DerivedNumberWithType'; +export * from './DescribeCoverageRequest'; +export * from './ErrorResponse'; +export * from './ExternalDataId'; +export * from './ExternalDataIdWithType'; +export * from './FailedTaskStatus'; +export * from './FeatureDataType'; +export * from './FileNotFoundHandling'; +export * from './FormatSpecifics'; +export * from './FormatSpecificsOneOf'; +export * from './FormatSpecificsOneOfCsv'; +export * from './GdalDatasetGeoTransform'; +export * from './GdalDatasetParameters'; +export * from './GdalLoadingInfoTemporalSlice'; +export * from './GdalMetaDataList'; +export * from './GdalMetaDataListWithType'; +export * from './GdalMetaDataRegular'; +export * from './GdalMetaDataRegularWithType'; +export * from './GdalMetaDataStatic'; +export * from './GdalMetaDataStaticWithType'; +export * from './GdalMetadataMapping'; +export * from './GdalMetadataNetCdfCf'; +export * from './GdalMetadataNetCdfCfWithType'; +export * from './GdalSourceTimePlaceholder'; +export * from './GeoJson'; +export * from './GetCapabilitiesFormat'; +export * from './GetCapabilitiesRequest'; +export * from './GetCoverageFormat'; +export * from './GetCoverageRequest'; +export * from './GetFeatureRequest'; +export * from './GetLegendGraphicRequest'; +export * from './GetMapExceptionFormat'; +export * from './GetMapFormat'; +export * from './GetMapRequest'; +export * from './InfiniteOgrSourceDurationSpec'; +export * from './InternalDataId'; +export * from './Layer'; +export * from './LayerCollection'; +export * from './LayerCollectionListing'; +export * from './LayerCollectionListingWithType'; +export * from './LayerCollectionResource'; +export * from './LayerCollectionResourceId'; +export * from './LayerListing'; +export * from './LayerListingWithType'; +export * from './LayerResource'; +export * from './LayerResourceId'; +export * from './LayerUpdate'; +export * from './LayerVisibility'; +export * from './LineSymbology'; +export * from './LineSymbologyWithType'; +export * from './LinearGradient'; +export * from './LinearGradientWithType'; +export * from './LogarithmicGradient'; +export * from './LogarithmicGradientWithType'; +export * from './Measurement'; +export * from './MetaDataDefinition'; +export * from './MetaDataSuggestion'; +export * from './MockDatasetDataSourceLoadingInfo'; +export * from './MockMetaData'; +export * from './MockMetaDataWithType'; +export * from './ModelIdResourceId'; +export * from './MultiLineString'; +export * from './MultiPoint'; +export * from './MultiPolygon'; +export * from './NoneOgrSourceDatasetTimeType'; +export * from './NumberParam'; +export * from './OgrMetaData'; +export * from './OgrMetaDataWithType'; +export * from './OgrSourceColumnSpec'; +export * from './OgrSourceDataset'; +export * from './OgrSourceDatasetTimeType'; +export * from './OgrSourceDurationSpec'; +export * from './OgrSourceErrorSpec'; +export * from './OgrSourceTimeFormat'; +export * from './OrderBy'; +export * from './PaletteColorizer'; +export * from './Permission'; +export * from './PermissionRequest'; +export * from './Plot'; +export * from './PlotOutputFormat'; +export * from './PlotQueryRectangle'; +export * from './PlotResultDescriptor'; +export * from './PlotResultDescriptorWithType'; +export * from './PlotUpdate'; +export * from './PointSymbology'; +export * from './PointSymbologyWithType'; +export * from './PolygonSymbology'; +export * from './PolygonSymbologyWithType'; +export * from './Project'; +export * from './ProjectLayer'; +export * from './ProjectListing'; +export * from './ProjectResource'; +export * from './ProjectResourceId'; +export * from './ProjectVersion'; +export * from './Provenance'; +export * from './ProvenanceEntry'; +export * from './ProvenanceOutput'; +export * from './ProviderLayerCollectionId'; +export * from './ProviderLayerId'; +export * from './Quota'; +export * from './RasterBandDescriptor'; +export * from './RasterDataType'; +export * from './RasterDatasetFromWorkflow'; +export * from './RasterDatasetFromWorkflowResult'; +export * from './RasterPropertiesEntryType'; +export * from './RasterPropertiesKey'; +export * from './RasterQueryRectangle'; +export * from './RasterResultDescriptor'; +export * from './RasterResultDescriptorWithType'; +export * from './RasterStreamWebsocketResultType'; +export * from './RasterSymbology'; +export * from './RasterSymbologyWithType'; +export * from './Resource'; +export * from './ResourceId'; +export * from './RgbaColorizer'; +export * from './Role'; +export * from './RoleDescription'; +export * from './RunningTaskStatus'; +export * from './STRectangle'; +export * from './ServerInfo'; +export * from './SpatialPartition2D'; +export * from './SpatialReferenceAuthority'; +export * from './SpatialReferenceSpecification'; +export * from './SpatialResolution'; +export * from './StartDurationOgrSourceDatasetTimeType'; +export * from './StartEndOgrSourceDatasetTimeType'; +export * from './StartOgrSourceDatasetTimeType'; +export * from './StaticColorParam'; +export * from './StaticNumberParam'; +export * from './StrokeParam'; +export * from './Symbology'; +export * from './TaskAbortOptions'; +export * from './TaskFilter'; +export * from './TaskListOptions'; +export * from './TaskResponse'; +export * from './TaskStatus'; +export * from './TaskStatusWithId'; +export * from './TextSymbology'; +export * from './TimeGranularity'; +export * from './TimeInterval'; +export * from './TimeReference'; +export * from './TimeStep'; +export * from './TimeStepWithType'; +export * from './TypedGeometry'; +export * from './TypedGeometryOneOf'; +export * from './TypedGeometryOneOf1'; +export * from './TypedGeometryOneOf2'; +export * from './TypedGeometryOneOf3'; +export * from './TypedOperator'; +export * from './TypedOperatorOperator'; +export * from './TypedResultDescriptor'; +export * from './UnitlessMeasurement'; +export * from './UnixTimeStampOgrSourceTimeFormat'; +export * from './UnixTimeStampType'; +export * from './UpdateProject'; +export * from './UpdateQuota'; +export * from './UploadFileLayersResponse'; +export * from './UploadFilesResponse'; +export * from './UserCredentials'; +export * from './UserInfo'; +export * from './UserRegistration'; +export * from './UserSession'; +export * from './VectorColumnInfo'; +export * from './VectorDataType'; +export * from './VectorQueryRectangle'; +export * from './VectorResultDescriptor'; +export * from './VectorResultDescriptorWithType'; +export * from './Volume'; +export * from './WcsBoundingbox'; +export * from './WcsService'; +export * from './WcsVersion'; +export * from './WfsService'; +export * from './WfsVersion'; +export * from './WmsService'; +export * from './WmsVersion'; +export * from './Workflow'; +export * from './WrappedPlotOutput'; +export * from './ZeroOgrSourceDurationSpec'; diff --git a/typescript/src/runtime.ts b/typescript/src/runtime.ts new file mode 100644 index 00000000..2f62b465 --- /dev/null +++ b/typescript/src/runtime.ts @@ -0,0 +1,431 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine Pro API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.7.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export const BASE_PATH = "http://0.0.0.0:8080/api".replace(/\/+$/, ""); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | ((name: string) => string); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; + + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== "undefined" && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } +} + +export class FetchError extends Error { + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function exists(json: any, key: string) { + const value = json[key]; + return value !== null && value !== undefined; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} + +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce( + (acc, key) => ({ ...acc, [key]: fn(data[key]) }), + {} + ); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + }; +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + }; +} diff --git a/typescript/tsconfig.esm.json b/typescript/tsconfig.esm.json new file mode 100644 index 00000000..2c0331cc --- /dev/null +++ b/typescript/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} diff --git a/typescript/tsconfig.json b/typescript/tsconfig.json new file mode 100644 index 00000000..250280d9 --- /dev/null +++ b/typescript/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "declaration": true, + "target": "es6", + "module": "commonjs", + "moduleResolution": "node", + "outDir": "dist", + "typeRoots": [ + "node_modules/@types" + ] + }, + "exclude": [ + "dist", + "node_modules" + ] +}