geonetwork-ui 2.5.0-dev.bd37f68b3 → 2.5.0-dev.c2edb114e
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 +34 -28
- 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 +23 -15
- 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 +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +2 -2
- 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-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 +6 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +46 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +3 -2
- 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/markdown-parser/markdown-parser.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +2 -1
- 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 +43 -3
- 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 +2 -7
- 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/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 +4 -76
- package/esm2022/translations/en.json +4 -76
- package/esm2022/translations/es.json +3 -75
- package/esm2022/translations/fr.json +16 -88
- package/esm2022/translations/it.json +21 -92
- package/esm2022/translations/nl.json +3 -75
- package/esm2022/translations/pt.json +3 -75
- package/fesm2022/geonetwork-ui.mjs +568 -900
- 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/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 +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +10 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.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/record-api-form/record-api-form.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 +16 -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 -3
- 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/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 +36 -27
- 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 +42 -21
- 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/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 +1 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +55 -0
- 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/markdown-parser/markdown-parser.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -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.ts +48 -0
- 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 +1 -7
- 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/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 +4 -76
- package/translations/en.json +4 -76
- package/translations/es.json +3 -75
- package/translations/fr.json +16 -88
- package/translations/it.json +21 -92
- 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,168 +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 { BASE_PATH, COLLECTION_FORMATS } from '../variables'
|
|
27
|
-
import { Configuration } from '../configuration'
|
|
28
|
-
|
|
29
|
-
@Injectable({
|
|
30
|
-
providedIn: 'root',
|
|
31
|
-
})
|
|
32
|
-
export class ConfigApiService {
|
|
33
|
-
protected basePath = 'https://localhost:8080'
|
|
34
|
-
public defaultHeaders = new HttpHeaders()
|
|
35
|
-
public configuration = new Configuration()
|
|
36
|
-
public encoder: HttpParameterCodec
|
|
37
|
-
|
|
38
|
-
constructor(
|
|
39
|
-
protected httpClient: HttpClient,
|
|
40
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
41
|
-
@Optional() configuration: Configuration
|
|
42
|
-
) {
|
|
43
|
-
if (configuration) {
|
|
44
|
-
this.configuration = configuration
|
|
45
|
-
}
|
|
46
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
47
|
-
if (typeof basePath !== 'string') {
|
|
48
|
-
basePath = this.basePath
|
|
49
|
-
}
|
|
50
|
-
this.configuration.basePath = basePath
|
|
51
|
-
}
|
|
52
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
private addToHttpParams(
|
|
56
|
-
httpParams: HttpParams,
|
|
57
|
-
value: any,
|
|
58
|
-
key?: string
|
|
59
|
-
): HttpParams {
|
|
60
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
61
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value)
|
|
62
|
-
} else {
|
|
63
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
|
|
64
|
-
}
|
|
65
|
-
return httpParams
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private addToHttpParamsRecursive(
|
|
69
|
-
httpParams: HttpParams,
|
|
70
|
-
value?: any,
|
|
71
|
-
key?: string
|
|
72
|
-
): HttpParams {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return httpParams
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (typeof value === 'object') {
|
|
78
|
-
if (Array.isArray(value)) {
|
|
79
|
-
;(value as any[]).forEach(
|
|
80
|
-
(elem) =>
|
|
81
|
-
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
|
|
82
|
-
)
|
|
83
|
-
} else if (value instanceof Date) {
|
|
84
|
-
if (key != null) {
|
|
85
|
-
httpParams = httpParams.append(
|
|
86
|
-
key,
|
|
87
|
-
(value as Date).toISOString().substr(0, 10)
|
|
88
|
-
)
|
|
89
|
-
} else {
|
|
90
|
-
throw Error('key may not be null if value is Date')
|
|
91
|
-
}
|
|
92
|
-
} else {
|
|
93
|
-
Object.keys(value).forEach(
|
|
94
|
-
(k) =>
|
|
95
|
-
(httpParams = this.addToHttpParamsRecursive(
|
|
96
|
-
httpParams,
|
|
97
|
-
value[k],
|
|
98
|
-
key != null ? `${key}.${k}` : k
|
|
99
|
-
))
|
|
100
|
-
)
|
|
101
|
-
}
|
|
102
|
-
} else if (key != null) {
|
|
103
|
-
httpParams = httpParams.append(key, value)
|
|
104
|
-
} else {
|
|
105
|
-
throw Error('key may not be null if value is not object or array')
|
|
106
|
-
}
|
|
107
|
-
return httpParams
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Get the front-end application configuration object
|
|
112
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
113
|
-
* @param reportProgress flag to report request and response progress.
|
|
114
|
-
*/
|
|
115
|
-
public getFrontendConfig(
|
|
116
|
-
observe?: 'body',
|
|
117
|
-
reportProgress?: boolean,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
119
|
-
): Observable<object>
|
|
120
|
-
public getFrontendConfig(
|
|
121
|
-
observe?: 'response',
|
|
122
|
-
reportProgress?: boolean,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
124
|
-
): Observable<HttpResponse<object>>
|
|
125
|
-
public getFrontendConfig(
|
|
126
|
-
observe?: 'events',
|
|
127
|
-
reportProgress?: boolean,
|
|
128
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
129
|
-
): Observable<HttpEvent<object>>
|
|
130
|
-
public getFrontendConfig(
|
|
131
|
-
observe: any = 'body',
|
|
132
|
-
reportProgress: boolean = false,
|
|
133
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
134
|
-
): Observable<any> {
|
|
135
|
-
let headers = this.defaultHeaders
|
|
136
|
-
|
|
137
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
138
|
-
options && options.httpHeaderAccept
|
|
139
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
140
|
-
// to determine the Accept header
|
|
141
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
142
|
-
httpHeaderAcceptSelected =
|
|
143
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
144
|
-
}
|
|
145
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
146
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
150
|
-
if (
|
|
151
|
-
httpHeaderAcceptSelected &&
|
|
152
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
153
|
-
) {
|
|
154
|
-
responseType_ = 'text'
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return this.httpClient.get<object>(
|
|
158
|
-
`${this.configuration.basePath}/config/frontend`,
|
|
159
|
-
{
|
|
160
|
-
responseType: <any>responseType_,
|
|
161
|
-
withCredentials: this.configuration.withCredentials,
|
|
162
|
-
headers: headers,
|
|
163
|
-
observe: observe,
|
|
164
|
-
reportProgress: reportProgress,
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
}
|
|
168
|
-
}
|
|
@@ -1,270 +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 { PublishJobStatusApiModel } from '../model/models'
|
|
27
|
-
import { PublishRequestApiModel } 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 DataPublishingApiService {
|
|
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
|
-
private addToHttpParams(
|
|
59
|
-
httpParams: HttpParams,
|
|
60
|
-
value: any,
|
|
61
|
-
key?: string
|
|
62
|
-
): HttpParams {
|
|
63
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
64
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value)
|
|
65
|
-
} else {
|
|
66
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
|
|
67
|
-
}
|
|
68
|
-
return httpParams
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private addToHttpParamsRecursive(
|
|
72
|
-
httpParams: HttpParams,
|
|
73
|
-
value?: any,
|
|
74
|
-
key?: string
|
|
75
|
-
): HttpParams {
|
|
76
|
-
if (value == null) {
|
|
77
|
-
return httpParams
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (typeof value === 'object') {
|
|
81
|
-
if (Array.isArray(value)) {
|
|
82
|
-
;(value as any[]).forEach(
|
|
83
|
-
(elem) =>
|
|
84
|
-
(httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
|
|
85
|
-
)
|
|
86
|
-
} else if (value instanceof Date) {
|
|
87
|
-
if (key != null) {
|
|
88
|
-
httpParams = httpParams.append(
|
|
89
|
-
key,
|
|
90
|
-
(value as Date).toISOString().substr(0, 10)
|
|
91
|
-
)
|
|
92
|
-
} else {
|
|
93
|
-
throw Error('key may not be null if value is Date')
|
|
94
|
-
}
|
|
95
|
-
} else {
|
|
96
|
-
Object.keys(value).forEach(
|
|
97
|
-
(k) =>
|
|
98
|
-
(httpParams = this.addToHttpParamsRecursive(
|
|
99
|
-
httpParams,
|
|
100
|
-
value[k],
|
|
101
|
-
key != null ? `${key}.${k}` : k
|
|
102
|
-
))
|
|
103
|
-
)
|
|
104
|
-
}
|
|
105
|
-
} else if (key != null) {
|
|
106
|
-
httpParams = httpParams.append(key, value)
|
|
107
|
-
} else {
|
|
108
|
-
throw Error('key may not be null if value is not object or array')
|
|
109
|
-
}
|
|
110
|
-
return httpParams
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Poll the publishing staus of the given job
|
|
115
|
-
* @param jobId Unique job identifier
|
|
116
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
117
|
-
* @param reportProgress flag to report request and response progress.
|
|
118
|
-
*/
|
|
119
|
-
public getPublishingStatus(
|
|
120
|
-
jobId: string,
|
|
121
|
-
observe?: 'body',
|
|
122
|
-
reportProgress?: boolean,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
124
|
-
): Observable<PublishJobStatusApiModel>
|
|
125
|
-
public getPublishingStatus(
|
|
126
|
-
jobId: string,
|
|
127
|
-
observe?: 'response',
|
|
128
|
-
reportProgress?: boolean,
|
|
129
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
130
|
-
): Observable<HttpResponse<PublishJobStatusApiModel>>
|
|
131
|
-
public getPublishingStatus(
|
|
132
|
-
jobId: string,
|
|
133
|
-
observe?: 'events',
|
|
134
|
-
reportProgress?: boolean,
|
|
135
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
136
|
-
): Observable<HttpEvent<PublishJobStatusApiModel>>
|
|
137
|
-
public getPublishingStatus(
|
|
138
|
-
jobId: string,
|
|
139
|
-
observe: any = 'body',
|
|
140
|
-
reportProgress: boolean = false,
|
|
141
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
142
|
-
): Observable<any> {
|
|
143
|
-
if (jobId === null || jobId === undefined) {
|
|
144
|
-
throw new Error(
|
|
145
|
-
'Required parameter jobId was null or undefined when calling getPublishingStatus.'
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let headers = this.defaultHeaders
|
|
150
|
-
|
|
151
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
152
|
-
options && options.httpHeaderAccept
|
|
153
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
154
|
-
// to determine the Accept header
|
|
155
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
156
|
-
httpHeaderAcceptSelected =
|
|
157
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
158
|
-
}
|
|
159
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
160
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
164
|
-
if (
|
|
165
|
-
httpHeaderAcceptSelected &&
|
|
166
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
167
|
-
) {
|
|
168
|
-
responseType_ = 'text'
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return this.httpClient.get<PublishJobStatusApiModel>(
|
|
172
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
173
|
-
String(jobId)
|
|
174
|
-
)}/publish`,
|
|
175
|
-
{
|
|
176
|
-
responseType: <any>responseType_,
|
|
177
|
-
withCredentials: this.configuration.withCredentials,
|
|
178
|
-
headers: headers,
|
|
179
|
-
observe: observe,
|
|
180
|
-
reportProgress: reportProgress,
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Publish the dataset(s) from the given upload
|
|
187
|
-
* @param jobId Unique job identifier
|
|
188
|
-
* @param publishRequestApiModel
|
|
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 publish(
|
|
193
|
-
jobId: string,
|
|
194
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
195
|
-
observe?: 'body',
|
|
196
|
-
reportProgress?: boolean,
|
|
197
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
198
|
-
): Observable<PublishJobStatusApiModel>
|
|
199
|
-
public publish(
|
|
200
|
-
jobId: string,
|
|
201
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
202
|
-
observe?: 'response',
|
|
203
|
-
reportProgress?: boolean,
|
|
204
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
205
|
-
): Observable<HttpResponse<PublishJobStatusApiModel>>
|
|
206
|
-
public publish(
|
|
207
|
-
jobId: string,
|
|
208
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
209
|
-
observe?: 'events',
|
|
210
|
-
reportProgress?: boolean,
|
|
211
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
212
|
-
): Observable<HttpEvent<PublishJobStatusApiModel>>
|
|
213
|
-
public publish(
|
|
214
|
-
jobId: string,
|
|
215
|
-
publishRequestApiModel?: PublishRequestApiModel,
|
|
216
|
-
observe: any = 'body',
|
|
217
|
-
reportProgress: boolean = false,
|
|
218
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
219
|
-
): Observable<any> {
|
|
220
|
-
if (jobId === null || jobId === undefined) {
|
|
221
|
-
throw new Error(
|
|
222
|
-
'Required parameter jobId was null or undefined when calling publish.'
|
|
223
|
-
)
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
let headers = this.defaultHeaders
|
|
227
|
-
|
|
228
|
-
let httpHeaderAcceptSelected: string | undefined =
|
|
229
|
-
options && options.httpHeaderAccept
|
|
230
|
-
if (httpHeaderAcceptSelected === undefined) {
|
|
231
|
-
// to determine the Accept header
|
|
232
|
-
const httpHeaderAccepts: string[] = ['application/json']
|
|
233
|
-
httpHeaderAcceptSelected =
|
|
234
|
-
this.configuration.selectHeaderAccept(httpHeaderAccepts)
|
|
235
|
-
}
|
|
236
|
-
if (httpHeaderAcceptSelected !== undefined) {
|
|
237
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected)
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// to determine the Content-Type header
|
|
241
|
-
const consumes: string[] = ['application/json']
|
|
242
|
-
const httpContentTypeSelected: string | undefined =
|
|
243
|
-
this.configuration.selectHeaderContentType(consumes)
|
|
244
|
-
if (httpContentTypeSelected !== undefined) {
|
|
245
|
-
headers = headers.set('Content-Type', httpContentTypeSelected)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
let responseType_: 'text' | 'json' = 'json'
|
|
249
|
-
if (
|
|
250
|
-
httpHeaderAcceptSelected &&
|
|
251
|
-
httpHeaderAcceptSelected.startsWith('text')
|
|
252
|
-
) {
|
|
253
|
-
responseType_ = 'text'
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
return this.httpClient.post<PublishJobStatusApiModel>(
|
|
257
|
-
`${this.configuration.basePath}/upload/${encodeURIComponent(
|
|
258
|
-
String(jobId)
|
|
259
|
-
)}/publish`,
|
|
260
|
-
publishRequestApiModel,
|
|
261
|
-
{
|
|
262
|
-
responseType: <any>responseType_,
|
|
263
|
-
withCredentials: this.configuration.withCredentials,
|
|
264
|
-
headers: headers,
|
|
265
|
-
observe: observe,
|
|
266
|
-
reportProgress: reportProgress,
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
}
|
|
270
|
-
}
|