geonetwork-ui 2.5.0-dev.a538998f8 → 2.5.0-dev.aed8e2abc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +11 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +20 -17
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +25 -9
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -4
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +8 -8
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -4
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +5 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -11
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +25 -5
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +10 -7
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +4 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -2
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +9 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +19 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +6 -1
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +15 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +2 -1
- package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +78 -0
- package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +32 -31
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +23 -3
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +94 -8
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +6 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +14 -4
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -3
- package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +10 -3
- package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
- package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -4
- package/esm2022/libs/util/data-fetcher/src/lib/readers/base-cache.mjs +12 -0
- package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +3 -3
- package/esm2022/libs/util/data-fetcher/src/lib/readers/base.mjs +1 -1
- package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +2 -2
- package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +2 -2
- package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +2 -2
- package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +5 -3
- package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +2 -2
- package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +19 -11
- package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +13 -9
- package/esm2022/translations/de.json +5 -77
- package/esm2022/translations/en.json +5 -77
- package/esm2022/translations/es.json +3 -75
- package/esm2022/translations/fr.json +17 -89
- package/esm2022/translations/it.json +22 -93
- package/esm2022/translations/nl.json +3 -75
- package/esm2022/translations/pt.json +3 -75
- package/fesm2022/geonetwork-ui.mjs +631 -933
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -0
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -2
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
- package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
- package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +16 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +5 -0
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +4 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +5 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts +16 -0
- package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts +5 -6
- package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +0 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +23 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +2 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -2
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/index.d.ts +0 -1
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
- package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts +8 -0
- package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts.map +1 -0
- package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/base.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/readers/base.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/gml.d.ts +5 -3
- package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +7 -4
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/utils.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +25 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +22 -16
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +44 -13
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +165 -0
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +22 -9
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +2 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +10 -10
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
- package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
- package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -11
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +26 -4
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -3
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +16 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +21 -2
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -0
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +30 -1
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +12 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +3 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +7 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +3 -1
- package/src/libs/ui/elements/src/index.ts +1 -0
- package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.css +0 -0
- package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +25 -0
- package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.ts +70 -0
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +20 -14
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.ts +29 -32
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +21 -9
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +13 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
- package/src/libs/ui/inputs/src/index.ts +0 -1
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +36 -19
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +91 -2
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +3 -2
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +37 -1
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +8 -2
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +2 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -0
- package/src/libs/ui/widgets/src/index.ts +0 -1
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +36 -11
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts +9 -1
- package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
- package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +13 -4
- package/src/libs/util/data-fetcher/src/lib/readers/base-cache.ts +14 -0
- package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +2 -1
- package/src/libs/util/data-fetcher/src/lib/readers/base.ts +2 -2
- package/src/libs/util/data-fetcher/src/lib/readers/csv.ts +1 -1
- package/src/libs/util/data-fetcher/src/lib/readers/excel.ts +1 -1
- package/src/libs/util/data-fetcher/src/lib/readers/geojson.ts +1 -1
- package/src/libs/util/data-fetcher/src/lib/readers/gml.ts +7 -7
- package/src/libs/util/data-fetcher/src/lib/readers/json.ts +1 -1
- package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +34 -11
- package/src/libs/util/data-fetcher/src/lib/utils.ts +38 -32
- package/translations/de.json +5 -77
- package/translations/en.json +5 -77
- package/translations/es.json +3 -75
- package/translations/fr.json +17 -89
- package/translations/it.json +22 -93
- package/translations/nl.json +3 -75
- package/translations/pt.json +3 -75
- package/translations/sk.json +3 -75
- package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
- package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
- package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
- package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
- package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
- package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
- package/src/libs/data-access/datafeeder/src/index.ts +0 -1
- package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
- package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
- package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
- package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
- package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
- package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
- package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
- package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
- package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
- package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
- package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
- package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
- package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
- package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
- package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
- package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
- package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
- package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
- package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
- package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
- package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
|
@@ -1,734 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DataFeeder API
|
|
3
|
-
* This API covers dataset upload and publishing features of the application
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: psc@georchestra.org
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
-
|
|
14
|
-
import { Inject, Injectable, Optional } from '@angular/core'
|
|
15
|
-
import {
|
|
16
|
-
HttpClient,
|
|
17
|
-
HttpHeaders,
|
|
18
|
-
HttpParams,
|
|
19
|
-
HttpResponse,
|
|
20
|
-
HttpEvent,
|
|
21
|
-
HttpParameterCodec,
|
|
22
|
-
} from '@angular/common/http'
|
|
23
|
-
import { CustomHttpParameterCodec } from '../encoder'
|
|
24
|
-
import { Observable } from 'rxjs'
|
|
25
|
-
|
|
26
|
-
import { BoundingBoxApiModel } from '../model/models'
|
|
27
|
-
import { UploadJobStatusApiModel } from '../model/models'
|
|
28
|
-
|
|
29
|
-
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|
30
|
-
import { Configuration } from '../configuration'
|
|
31
|
-
|
|
32
|
-
@Injectable({
|
|
33
|
-
providedIn: 'root',
|
|
34
|
-
})
|
|
35
|
-
export class FileUploadApiService {
|
|
36
|
-
protected basePath = 'https://localhost:8080'
|
|
37
|
-
public defaultHeaders = new HttpHeaders()
|
|
38
|
-
public configuration = new Configuration()
|
|
39
|
-
public encoder: HttpParameterCodec
|
|
40
|
-
|
|
41
|
-
constructor(
|
|
42
|
-
protected httpClient: HttpClient,
|
|
43
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
44
|
-
@Optional() configuration: Configuration
|
|
45
|
-
) {
|
|
46
|
-
if (configuration) {
|
|
47
|
-
this.configuration = configuration
|
|
48
|
-
}
|
|
49
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
50
|
-
if (typeof basePath !== 'string') {
|
|
51
|
-
basePath = this.basePath
|
|
52
|
-
}
|
|
53
|
-
this.configuration.basePath = basePath
|
|
54
|
-
}
|
|
55
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @param consumes string[] mime-types
|
|
60
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
61
|
-
*/
|
|
62
|
-
private canConsumeForm(consumes: string[]): boolean {
|
|
63
|
-
const form = 'multipart/form-data'
|
|
64
|
-
for (const consume of consumes) {
|
|
65
|
-
if (form === consume) {
|
|
66
|
-
return true
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return false
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private addToHttpParams(
|
|
73
|
-
httpParams: HttpParams,
|
|
74
|
-
value: any,
|
|
75
|
-
key?: string
|
|
76
|
-
): HttpParams {
|
|
77
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
78
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value)
|
|
79
|
-
} else {
|
|
80
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
|
|
81
|
-
}
|
|
82
|
-
return httpParams
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private addToHttpParamsRecursive(
|
|
86
|
-
httpParams: HttpParams,
|
|
87
|
-
value?: any,
|
|
88
|
-
key?: string
|
|
89
|
-
): HttpParams {
|
|
90
|
-
if (value == null) {
|
|
91
|
-
return httpParams
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (typeof value === 'object') {
|
|
95
|
-
if (Array.isArray(value)) {
|
|
96
|
-
;(value as any[]).forEach(
|
|
97
|
-
(elem) =>
|
|
98
|
-
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
|
|
99
|
-
)
|
|
100
|
-
} else if (value instanceof Date) {
|
|
101
|
-
if (key != null) {
|
|
102
|
-
httpParams = httpParams.append(
|
|
103
|
-
key,
|
|
104
|
-
(value as Date).toISOString().substr(0, 10)
|
|
105
|
-
)
|
|
106
|
-
} else {
|
|
107
|
-
throw Error('key may not be null if value is Date')
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
Object.keys(value).forEach(
|
|
111
|
-
(k) =>
|
|
112
|
-
(httpParams = this.addToHttpParamsRecursive(
|
|
113
|
-
httpParams,
|
|
114
|
-
value[k],
|
|
115
|
-
key != null ? `${key}.${k}` : k
|
|
116
|
-
))
|
|
117
|
-
)
|
|
118
|
-
}
|
|
119
|
-
} else if (key != null) {
|
|
120
|
-
httpParams = httpParams.append(key, value)
|
|
121
|
-
} else {
|
|
122
|
-
throw Error('key may not be null if value is not object or array')
|
|
123
|
-
}
|
|
124
|
-
return httpParams
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Poll the status of all the upload jobs. Access restricted to administrators
|
|
129
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
130
|
-
* @param reportProgress flag to report request and response progress.
|
|
131
|
-
*/
|
|
132
|
-
public findAllUploadJobs(
|
|
133
|
-
observe?: 'body',
|
|
134
|
-
reportProgress?: boolean,
|
|
135
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
136
|
-
): Observable<Array<UploadJobStatusApiModel>>
|
|
137
|
-
public findAllUploadJobs(
|
|
138
|
-
observe?: 'response',
|
|
139
|
-
reportProgress?: boolean,
|
|
140
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
141
|
-
): Observable<HttpResponse<Array<UploadJobStatusApiModel>>>
|
|
142
|
-
public findAllUploadJobs(
|
|
143
|
-
observe?: 'events',
|
|
144
|
-
reportProgress?: boolean,
|
|
145
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
146
|
-
): Observable<HttpEvent<Array<UploadJobStatusApiModel>>>
|
|
147
|
-
public findAllUploadJobs(
|
|
148
|
-
observe: any = 'body',
|
|
149
|
-
reportProgress: boolean = false,
|
|
150
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
151
|
-
): Observable<any> {
|
|
152
|
-
let headers = this.defaultHeaders
|
|
153
|
-
|
|
154
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
155
|
-
options && options.httpHeaderAccept
|
|
156
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
157
|
-
// to determine the Accept header
|
|
158
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
159
|
-
httpHeaderAcceptSelected =
|
|
160
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
161
|
-
}
|
|
162
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
163
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
167
|
-
if (
|
|
168
|
-
httpHeaderAcceptSelected &&
|
|
169
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
170
|
-
) {
|
|
171
|
-
responseType_ = 'text'
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
return this.httpClient.get<Array<UploadJobStatusApiModel>>(
|
|
175
|
-
`${this.configuration.basePath}/upload/all`,
|
|
176
|
-
{
|
|
177
|
-
responseType: <any>responseType_,
|
|
178
|
-
withCredentials: this.configuration.withCredentials,
|
|
179
|
-
headers: headers,
|
|
180
|
-
observe: observe,
|
|
181
|
-
reportProgress: reportProgress,
|
|
182
|
-
}
|
|
183
|
-
)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Poll the status of a given upload job by id
|
|
188
|
-
* @param jobId Unique job identifier
|
|
189
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
190
|
-
* @param reportProgress flag to report request and response progress.
|
|
191
|
-
*/
|
|
192
|
-
public findUploadJob(
|
|
193
|
-
jobId: string,
|
|
194
|
-
observe?: 'body',
|
|
195
|
-
reportProgress?: boolean,
|
|
196
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
197
|
-
): Observable<UploadJobStatusApiModel>
|
|
198
|
-
public findUploadJob(
|
|
199
|
-
jobId: string,
|
|
200
|
-
observe?: 'response',
|
|
201
|
-
reportProgress?: boolean,
|
|
202
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
203
|
-
): Observable<HttpResponse<UploadJobStatusApiModel>>
|
|
204
|
-
public findUploadJob(
|
|
205
|
-
jobId: string,
|
|
206
|
-
observe?: 'events',
|
|
207
|
-
reportProgress?: boolean,
|
|
208
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
209
|
-
): Observable<HttpEvent<UploadJobStatusApiModel>>
|
|
210
|
-
public findUploadJob(
|
|
211
|
-
jobId: string,
|
|
212
|
-
observe: any = 'body',
|
|
213
|
-
reportProgress: boolean = false,
|
|
214
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
215
|
-
): Observable<any> {
|
|
216
|
-
if (jobId === null || jobId === undefined) {
|
|
217
|
-
throw new Error(
|
|
218
|
-
'Required parameter jobId was null or undefined when calling findUploadJob.'
|
|
219
|
-
)
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
let headers = this.defaultHeaders
|
|
223
|
-
|
|
224
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
225
|
-
options && options.httpHeaderAccept
|
|
226
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
227
|
-
// to determine the Accept header
|
|
228
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
229
|
-
httpHeaderAcceptSelected =
|
|
230
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
231
|
-
}
|
|
232
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
233
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
237
|
-
if (
|
|
238
|
-
httpHeaderAcceptSelected &&
|
|
239
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
240
|
-
) {
|
|
241
|
-
responseType_ = 'text'
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return this.httpClient.get<UploadJobStatusApiModel>(
|
|
245
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
246
|
-
String(jobId)
|
|
247
|
-
)}`,
|
|
248
|
-
{
|
|
249
|
-
responseType: <any>responseType_,
|
|
250
|
-
withCredentials: this.configuration.withCredentials,
|
|
251
|
-
headers: headers,
|
|
252
|
-
observe: observe,
|
|
253
|
-
reportProgress: reportProgress,
|
|
254
|
-
}
|
|
255
|
-
)
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Poll the status of all the upload jobs owned by the calling user
|
|
260
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
261
|
-
* @param reportProgress flag to report request and response progress.
|
|
262
|
-
*/
|
|
263
|
-
public findUserUploadJobs(
|
|
264
|
-
observe?: 'body',
|
|
265
|
-
reportProgress?: boolean,
|
|
266
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
267
|
-
): Observable<Array<UploadJobStatusApiModel>>
|
|
268
|
-
public findUserUploadJobs(
|
|
269
|
-
observe?: 'response',
|
|
270
|
-
reportProgress?: boolean,
|
|
271
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
272
|
-
): Observable<HttpResponse<Array<UploadJobStatusApiModel>>>
|
|
273
|
-
public findUserUploadJobs(
|
|
274
|
-
observe?: 'events',
|
|
275
|
-
reportProgress?: boolean,
|
|
276
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
277
|
-
): Observable<HttpEvent<Array<UploadJobStatusApiModel>>>
|
|
278
|
-
public findUserUploadJobs(
|
|
279
|
-
observe: any = 'body',
|
|
280
|
-
reportProgress: boolean = false,
|
|
281
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
282
|
-
): Observable<any> {
|
|
283
|
-
let headers = this.defaultHeaders
|
|
284
|
-
|
|
285
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
286
|
-
options && options.httpHeaderAccept
|
|
287
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
288
|
-
// to determine the Accept header
|
|
289
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
290
|
-
httpHeaderAcceptSelected =
|
|
291
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
292
|
-
}
|
|
293
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
294
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
298
|
-
if (
|
|
299
|
-
httpHeaderAcceptSelected &&
|
|
300
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
301
|
-
) {
|
|
302
|
-
responseType_ = 'text'
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
return this.httpClient.get<Array<UploadJobStatusApiModel>>(
|
|
306
|
-
`${this.configuration.basePath}/upload`,
|
|
307
|
-
{
|
|
308
|
-
responseType: <any>responseType_,
|
|
309
|
-
withCredentials: this.configuration.withCredentials,
|
|
310
|
-
headers: headers,
|
|
311
|
-
observe: observe,
|
|
312
|
-
reportProgress: reportProgress,
|
|
313
|
-
}
|
|
314
|
-
)
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Get the bounding box of the dataset, optionally indicating the CRS and whether to reproject from the native CRS to the new one The returned geometry CRS is controlled by the \"srs\", and \"srsOverride\" query parameters. If none is provided, the geometry is returned as-is, in the dataset\'s native CRS (possibly null). The \"srsOverride\" parameter allows to override the dataset\'s native CRS, which also means assuming a native CRS when the dataset didn\'t provide a native CRS (e.g. a shapefile uploaded without .prj side-car file). The \"srs\" parameter specifies the output geometry CRS. The geometry will be reprojected from the source CRS to the output CRS.
|
|
319
|
-
* @param jobId Unique job identifier
|
|
320
|
-
* @param typeName Feature type name
|
|
321
|
-
* @param srs Optional, output coordinate reference system (e.g. \'EPSG:3857\')
|
|
322
|
-
* @param srsOverride Optional, EPSG SRS used to override the native CRS, or assume a native SRS when the native CRS is unknown (for example, a shapefile uploaded without .prj side-car file). This allows to request the dataset bounds using a user defined native CRS for datasets that do not specify a native CRS, and still get a reprojected response to another CRS in combination with the \"srs\" parameter.
|
|
323
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
324
|
-
* @param reportProgress flag to report request and response progress.
|
|
325
|
-
*/
|
|
326
|
-
public getBounds(
|
|
327
|
-
jobId: string,
|
|
328
|
-
typeName: string,
|
|
329
|
-
srs?: string,
|
|
330
|
-
srsOverride?: string,
|
|
331
|
-
observe?: 'body',
|
|
332
|
-
reportProgress?: boolean,
|
|
333
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
334
|
-
): Observable<BoundingBoxApiModel>
|
|
335
|
-
public getBounds(
|
|
336
|
-
jobId: string,
|
|
337
|
-
typeName: string,
|
|
338
|
-
srs?: string,
|
|
339
|
-
srsOverride?: string,
|
|
340
|
-
observe?: 'response',
|
|
341
|
-
reportProgress?: boolean,
|
|
342
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
343
|
-
): Observable<HttpResponse<BoundingBoxApiModel>>
|
|
344
|
-
public getBounds(
|
|
345
|
-
jobId: string,
|
|
346
|
-
typeName: string,
|
|
347
|
-
srs?: string,
|
|
348
|
-
srsOverride?: string,
|
|
349
|
-
observe?: 'events',
|
|
350
|
-
reportProgress?: boolean,
|
|
351
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
352
|
-
): Observable<HttpEvent<BoundingBoxApiModel>>
|
|
353
|
-
public getBounds(
|
|
354
|
-
jobId: string,
|
|
355
|
-
typeName: string,
|
|
356
|
-
srs?: string,
|
|
357
|
-
srsOverride?: string,
|
|
358
|
-
observe: any = 'body',
|
|
359
|
-
reportProgress: boolean = false,
|
|
360
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
361
|
-
): Observable<any> {
|
|
362
|
-
if (jobId === null || jobId === undefined) {
|
|
363
|
-
throw new Error(
|
|
364
|
-
'Required parameter jobId was null or undefined when calling getBounds.'
|
|
365
|
-
)
|
|
366
|
-
}
|
|
367
|
-
if (typeName === null || typeName === undefined) {
|
|
368
|
-
throw new Error(
|
|
369
|
-
'Required parameter typeName was null or undefined when calling getBounds.'
|
|
370
|
-
)
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
let queryParameters = new HttpParams({ encoder: this.encoder })
|
|
374
|
-
if (srs !== undefined && srs !== null) {
|
|
375
|
-
queryParameters = this.addToHttpParams(queryParameters, <any>srs, 'srs')
|
|
376
|
-
}
|
|
377
|
-
if (srsOverride !== undefined && srsOverride !== null) {
|
|
378
|
-
queryParameters = this.addToHttpParams(
|
|
379
|
-
queryParameters,
|
|
380
|
-
<any>srsOverride,
|
|
381
|
-
'srsOverride'
|
|
382
|
-
)
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
let headers = this.defaultHeaders
|
|
386
|
-
|
|
387
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
388
|
-
options && options.httpHeaderAccept
|
|
389
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
390
|
-
// to determine the Accept header
|
|
391
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
392
|
-
httpHeaderAcceptSelected =
|
|
393
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
394
|
-
}
|
|
395
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
396
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
400
|
-
if (
|
|
401
|
-
httpHeaderAcceptSelected &&
|
|
402
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
403
|
-
) {
|
|
404
|
-
responseType_ = 'text'
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
return this.httpClient.get<BoundingBoxApiModel>(
|
|
408
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
409
|
-
String(jobId)
|
|
410
|
-
)}/${encodeURIComponent(String(typeName))}/bounds`,
|
|
411
|
-
{
|
|
412
|
-
params: queryParameters,
|
|
413
|
-
responseType: <any>responseType_,
|
|
414
|
-
withCredentials: this.configuration.withCredentials,
|
|
415
|
-
headers: headers,
|
|
416
|
-
observe: observe,
|
|
417
|
-
reportProgress: reportProgress,
|
|
418
|
-
}
|
|
419
|
-
)
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Obtain a sample dataset feature in GeoJSON format, optionally specifying a feature index, crs, and/or dataset\'s character encoding. The response encoding is always UTF-8. The \'encoding\' parameter can be used to force reading the native data in a different charset. The returned geometry CRS is controlled by the \"srs\", and \"srsOverride\" query parameters. If none is provided, the geometry is returned as-is, in the dataset\'s native CRS (possibly null). The \"srsOverride\" parameter allows to override the dataset\'s native CRS, which also means assuming a native CRS when the dataset didn\'t provide a native CRS (e.g. a shapefile uploaded without .prj side-car file). The \"srs\" parameter specifies the output geometry CRS. The geometry will be reprojected from the source CRS to the output CRS.
|
|
424
|
-
* @param jobId Unique job identifier
|
|
425
|
-
* @param typeName Feature type name
|
|
426
|
-
* @param featureIndex Optional feature index, if unspecified, the first feature (index 0) is returned
|
|
427
|
-
* @param encoding Optional, force dataset encoding
|
|
428
|
-
* @param srs Optional, coordinate reference system (e.g. \'EPSG:3857\')
|
|
429
|
-
* @param srsOverride Optional, EPSG SRS used to override the native CRS, or assume a native SRS when the native CRS is unknown (for example, a shapefile uploaded without .prj side-car file). This allows to request a feature using a source CRS for datasets that do not specify a native CRS, and still get a reprojected response to another CRS in combination with the \"srs\" parameter.
|
|
430
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
431
|
-
* @param reportProgress flag to report request and response progress.
|
|
432
|
-
*/
|
|
433
|
-
public getSampleFeature(
|
|
434
|
-
jobId: string,
|
|
435
|
-
typeName: string,
|
|
436
|
-
featureIndex?: number,
|
|
437
|
-
encoding?: string,
|
|
438
|
-
srs?: string,
|
|
439
|
-
srsOverride?: string,
|
|
440
|
-
observe?: 'body',
|
|
441
|
-
reportProgress?: boolean,
|
|
442
|
-
options?: { httpHeaderAccept?: 'application/geo+json' }
|
|
443
|
-
): Observable<object>
|
|
444
|
-
public getSampleFeature(
|
|
445
|
-
jobId: string,
|
|
446
|
-
typeName: string,
|
|
447
|
-
featureIndex?: number,
|
|
448
|
-
encoding?: string,
|
|
449
|
-
srs?: string,
|
|
450
|
-
srsOverride?: string,
|
|
451
|
-
observe?: 'response',
|
|
452
|
-
reportProgress?: boolean,
|
|
453
|
-
options?: { httpHeaderAccept?: 'application/geo+json' }
|
|
454
|
-
): Observable<HttpResponse<object>>
|
|
455
|
-
public getSampleFeature(
|
|
456
|
-
jobId: string,
|
|
457
|
-
typeName: string,
|
|
458
|
-
featureIndex?: number,
|
|
459
|
-
encoding?: string,
|
|
460
|
-
srs?: string,
|
|
461
|
-
srsOverride?: string,
|
|
462
|
-
observe?: 'events',
|
|
463
|
-
reportProgress?: boolean,
|
|
464
|
-
options?: { httpHeaderAccept?: 'application/geo+json' }
|
|
465
|
-
): Observable<HttpEvent<object>>
|
|
466
|
-
public getSampleFeature(
|
|
467
|
-
jobId: string,
|
|
468
|
-
typeName: string,
|
|
469
|
-
featureIndex?: number,
|
|
470
|
-
encoding?: string,
|
|
471
|
-
srs?: string,
|
|
472
|
-
srsOverride?: string,
|
|
473
|
-
observe: any = 'body',
|
|
474
|
-
reportProgress: boolean = false,
|
|
475
|
-
options?: { httpHeaderAccept?: 'application/geo+json' }
|
|
476
|
-
): Observable<any> {
|
|
477
|
-
if (jobId === null || jobId === undefined) {
|
|
478
|
-
throw new Error(
|
|
479
|
-
'Required parameter jobId was null or undefined when calling getSampleFeature.'
|
|
480
|
-
)
|
|
481
|
-
}
|
|
482
|
-
if (typeName === null || typeName === undefined) {
|
|
483
|
-
throw new Error(
|
|
484
|
-
'Required parameter typeName was null or undefined when calling getSampleFeature.'
|
|
485
|
-
)
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
let queryParameters = new HttpParams({ encoder: this.encoder })
|
|
489
|
-
if (featureIndex !== undefined && featureIndex !== null) {
|
|
490
|
-
queryParameters = this.addToHttpParams(
|
|
491
|
-
queryParameters,
|
|
492
|
-
<any>featureIndex,
|
|
493
|
-
'featureIndex'
|
|
494
|
-
)
|
|
495
|
-
}
|
|
496
|
-
if (encoding !== undefined && encoding !== null) {
|
|
497
|
-
queryParameters = this.addToHttpParams(
|
|
498
|
-
queryParameters,
|
|
499
|
-
<any>encoding,
|
|
500
|
-
'encoding'
|
|
501
|
-
)
|
|
502
|
-
}
|
|
503
|
-
if (srs !== undefined && srs !== null) {
|
|
504
|
-
queryParameters = this.addToHttpParams(queryParameters, <any>srs, 'srs')
|
|
505
|
-
}
|
|
506
|
-
if (srsOverride !== undefined && srsOverride !== null) {
|
|
507
|
-
queryParameters = this.addToHttpParams(
|
|
508
|
-
queryParameters,
|
|
509
|
-
<any>srsOverride,
|
|
510
|
-
'srsOverride'
|
|
511
|
-
)
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
let headers = this.defaultHeaders
|
|
515
|
-
|
|
516
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
517
|
-
options && options.httpHeaderAccept
|
|
518
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
519
|
-
// to determine the Accept header
|
|
520
|
-
const httpHeaderAccepts: string[] = ['application/geo+json']
|
|
521
|
-
httpHeaderAcceptSelected =
|
|
522
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
523
|
-
}
|
|
524
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
525
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
529
|
-
if (
|
|
530
|
-
httpHeaderAcceptSelected &&
|
|
531
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
532
|
-
) {
|
|
533
|
-
responseType_ = 'text'
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
return this.httpClient.get<object>(
|
|
537
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
538
|
-
String(jobId)
|
|
539
|
-
)}/${encodeURIComponent(String(typeName))}/sampleFeature`,
|
|
540
|
-
{
|
|
541
|
-
params: queryParameters,
|
|
542
|
-
responseType: <any>responseType_,
|
|
543
|
-
withCredentials: this.configuration.withCredentials,
|
|
544
|
-
headers: headers,
|
|
545
|
-
observe: observe,
|
|
546
|
-
reportProgress: reportProgress,
|
|
547
|
-
}
|
|
548
|
-
)
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Remove a job and all its resources (e.g. temporary files). Does not unpublish. Use abort=true to abort a running analysis or publishing job
|
|
553
|
-
* @param jobId Unique job identifier
|
|
554
|
-
* @param abort If true, abort the dataset analysis or publishing, if running. Defaults to false
|
|
555
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
556
|
-
* @param reportProgress flag to report request and response progress.
|
|
557
|
-
*/
|
|
558
|
-
public removeJob(
|
|
559
|
-
jobId: string,
|
|
560
|
-
abort?: boolean,
|
|
561
|
-
observe?: 'body',
|
|
562
|
-
reportProgress?: boolean,
|
|
563
|
-
options?: { httpHeaderAccept?: undefined }
|
|
564
|
-
): Observable<any>
|
|
565
|
-
public removeJob(
|
|
566
|
-
jobId: string,
|
|
567
|
-
abort?: boolean,
|
|
568
|
-
observe?: 'response',
|
|
569
|
-
reportProgress?: boolean,
|
|
570
|
-
options?: { httpHeaderAccept?: undefined }
|
|
571
|
-
): Observable<HttpResponse<any>>
|
|
572
|
-
public removeJob(
|
|
573
|
-
jobId: string,
|
|
574
|
-
abort?: boolean,
|
|
575
|
-
observe?: 'events',
|
|
576
|
-
reportProgress?: boolean,
|
|
577
|
-
options?: { httpHeaderAccept?: undefined }
|
|
578
|
-
): Observable<HttpEvent<any>>
|
|
579
|
-
public removeJob(
|
|
580
|
-
jobId: string,
|
|
581
|
-
abort?: boolean,
|
|
582
|
-
observe: any = 'body',
|
|
583
|
-
reportProgress: boolean = false,
|
|
584
|
-
options?: { httpHeaderAccept?: undefined }
|
|
585
|
-
): Observable<any> {
|
|
586
|
-
if (jobId === null || jobId === undefined) {
|
|
587
|
-
throw new Error(
|
|
588
|
-
'Required parameter jobId was null or undefined when calling removeJob.'
|
|
589
|
-
)
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
let queryParameters = new HttpParams({ encoder: this.encoder })
|
|
593
|
-
if (abort !== undefined && abort !== null) {
|
|
594
|
-
queryParameters = this.addToHttpParams(
|
|
595
|
-
queryParameters,
|
|
596
|
-
<any>abort,
|
|
597
|
-
'abort'
|
|
598
|
-
)
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
let headers = this.defaultHeaders
|
|
602
|
-
|
|
603
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
604
|
-
options && options.httpHeaderAccept
|
|
605
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
606
|
-
// to determine the Accept header
|
|
607
|
-
const httpHeaderAccepts: string[] = []
|
|
608
|
-
httpHeaderAcceptSelected =
|
|
609
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
610
|
-
}
|
|
611
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
612
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
616
|
-
if (
|
|
617
|
-
httpHeaderAcceptSelected &&
|
|
618
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
619
|
-
) {
|
|
620
|
-
responseType_ = 'text'
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
return this.httpClient.delete<any>(
|
|
624
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
625
|
-
String(jobId)
|
|
626
|
-
)}`,
|
|
627
|
-
{
|
|
628
|
-
params: queryParameters,
|
|
629
|
-
responseType: <any>responseType_,
|
|
630
|
-
withCredentials: this.configuration.withCredentials,
|
|
631
|
-
headers: headers,
|
|
632
|
-
observe: observe,
|
|
633
|
-
reportProgress: reportProgress,
|
|
634
|
-
}
|
|
635
|
-
)
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Upload one or multiple files to the server, and get a handle to the job. Once the files are uploaded, the analysis process is automatically triggered. Its status can be polled with GET /upload/{jobId}
|
|
640
|
-
* @param filename
|
|
641
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
642
|
-
* @param reportProgress flag to report request and response progress.
|
|
643
|
-
*/
|
|
644
|
-
public uploadFiles(
|
|
645
|
-
filename?: Array<Blob>,
|
|
646
|
-
observe?: 'body',
|
|
647
|
-
reportProgress?: boolean,
|
|
648
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
649
|
-
): Observable<UploadJobStatusApiModel>
|
|
650
|
-
public uploadFiles(
|
|
651
|
-
filename?: Array<Blob>,
|
|
652
|
-
observe?: 'response',
|
|
653
|
-
reportProgress?: boolean,
|
|
654
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
655
|
-
): Observable<HttpResponse<UploadJobStatusApiModel>>
|
|
656
|
-
public uploadFiles(
|
|
657
|
-
filename?: Array<Blob>,
|
|
658
|
-
observe?: 'events',
|
|
659
|
-
reportProgress?: boolean,
|
|
660
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
661
|
-
): Observable<HttpEvent<UploadJobStatusApiModel>>
|
|
662
|
-
public uploadFiles(
|
|
663
|
-
filename?: Array<Blob>,
|
|
664
|
-
observe: any = 'body',
|
|
665
|
-
reportProgress: boolean = false,
|
|
666
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
667
|
-
): Observable<any> {
|
|
668
|
-
let headers = this.defaultHeaders
|
|
669
|
-
|
|
670
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
671
|
-
options && options.httpHeaderAccept
|
|
672
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
673
|
-
// to determine the Accept header
|
|
674
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
675
|
-
httpHeaderAcceptSelected =
|
|
676
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
677
|
-
}
|
|
678
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
679
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
// to determine the Content-Type header
|
|
683
|
-
const consumes: string[] = ['multipart/form-data']
|
|
684
|
-
|
|
685
|
-
const canConsumeForm = this.canConsumeForm(consumes)
|
|
686
|
-
|
|
687
|
-
let formParams: { append(param: string, value: any): any }
|
|
688
|
-
let useForm = false
|
|
689
|
-
let convertFormParamsToString = false
|
|
690
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
691
|
-
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
692
|
-
useForm = canConsumeForm
|
|
693
|
-
if (useForm) {
|
|
694
|
-
formParams = new FormData()
|
|
695
|
-
} else {
|
|
696
|
-
formParams = new HttpParams({ encoder: this.encoder })
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (filename) {
|
|
700
|
-
if (useForm) {
|
|
701
|
-
filename.forEach((element) => {
|
|
702
|
-
formParams =
|
|
703
|
-
(formParams.append('filename', <any>element) as any) || formParams
|
|
704
|
-
})
|
|
705
|
-
} else {
|
|
706
|
-
formParams =
|
|
707
|
-
(formParams.append(
|
|
708
|
-
'filename',
|
|
709
|
-
filename.join(COLLECTION_FORMATS['csv'])
|
|
710
|
-
) as any) || formParams
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
715
|
-
if (
|
|
716
|
-
httpHeaderAcceptSelected &&
|
|
717
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
718
|
-
) {
|
|
719
|
-
responseType_ = 'text'
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
return this.httpClient.post<UploadJobStatusApiModel>(
|
|
723
|
-
`${this.configuration.basePath}/upload`,
|
|
724
|
-
convertFormParamsToString ? formParams.toString() : formParams,
|
|
725
|
-
{
|
|
726
|
-
responseType: <any>responseType_,
|
|
727
|
-
withCredentials: this.configuration.withCredentials,
|
|
728
|
-
headers: headers,
|
|
729
|
-
observe: observe,
|
|
730
|
-
reportProgress: reportProgress,
|
|
731
|
-
}
|
|
732
|
-
)
|
|
733
|
-
}
|
|
734
|
-
}
|