From 16935267cd96349b2a7d4251f5429c4605089152 Mon Sep 17 00:00:00 2001 From: marcin Date: Tue, 11 Nov 2025 10:56:53 +0100 Subject: [PATCH 01/16] use openapi --- .eslintignore | 1 + openapitools.json | 17 + package-lock.json | 1525 +++++++++++++++-- package.json | 3 + .../registration-edit-button.component.ts | 9 +- .../add-update-delete-registration.service.ts | 55 +- .../attachmentHelpers.ts | 2 +- src/app/core/services/draft/draft-model.ts | 8 +- .../services/location/location.service.ts | 12 +- .../services/user-group/user-group.service.ts | 5 +- .../auth/services/regobs-auth.service.ts | 9 +- .../attachment-upload-edit.interface.ts | 2 +- .../water-level-measurement-upload-model.ts | 2 +- .../services/help-text/help-text.service.ts | 7 +- .../services/kdv/kdv.service.ts | 5 +- src/app/modules/common-regobs-api/.gitignore | 4 + .../.openapi-generator-ignore | 23 + .../.openapi-generator/FILES | 121 ++ .../.openapi-generator/VERSION | 1 + src/app/modules/common-regobs-api/README.md | 185 ++ .../common-regobs-api/api.base.service.ts | 83 + .../modules/common-regobs-api/api.module.ts | 30 + .../common-regobs-api/api/account.service.ts | 297 ++++ src/app/modules/common-regobs-api/api/api.ts | 19 + .../api/attachment.service.ts | 183 ++ .../common-regobs-api/api/geo-code.service.ts | 177 ++ .../common-regobs-api/api/helptext.service.ts | 103 ++ .../api/kdv-elements.service.ts | 106 ++ .../common-regobs-api/api/location.service.ts | 182 ++ .../api/registration.service.ts | 563 ++++++ .../common-regobs-api/api/search.service.ts | 772 +++++++++ .../common-regobs-api/api/trip.service.ts | 232 +++ .../modules/common-regobs-api/base-service.ts | 63 - .../common-regobs-api/configuration.ts | 204 +++ src/app/modules/common-regobs-api/encoder.ts | 20 + src/app/modules/common-regobs-api/git_push.sh | 57 + src/app/modules/common-regobs-api/index.ts | 12 +- .../model/areas-dto-forecast-regions.ts | 27 + .../common-regobs-api/model/areas-dto.ts | 22 + .../model/at-a-glance-view-model.ts | 33 + .../model/attachment-edit-model.ts | 48 + .../attachment-view-model-url-formats.ts | 22 + .../model/attachment-view-model.ts | 62 + .../avalanche-activity-obs-view-model.ts | 65 + .../avalanche-activity-obs2-edit-model.ts | 27 + .../avalanche-activity-obs2-view-model.ts | 34 + .../model/avalanche-danger-obs-view-model.ts | 18 + .../avalanche-eval-problem-view-model.ts | 32 + .../avalanche-eval-problem2-edit-model.ts | 66 + .../avalanche-eval-problem2-view-model.ts | 78 + .../model/avalanche-evaluation-view-model.ts | 30 + .../model/avalanche-evaluation2-view-model.ts | 28 + .../model/avalanche-evaluation3-edit-model.ts | 34 + .../model/avalanche-evaluation3-view-model.ts | 36 + .../model/avalanche-obs-edit-model.ts | 110 ++ .../model/avalanche-obs-view-model.ts | 115 ++ .../model/compression-test-edit-model.ts | 59 + .../model/compression-test-view-model.ts | 63 + .../common-regobs-api/model/county-dto.ts | 16 + .../model/create-trip-dto.ts | 21 + .../model/damage-obs-edit-model.ts | 21 + .../model/damage-obs-view-model.ts | 23 + .../model/danger-obs-edit-model.ts | 26 + .../model/danger-obs-view-model.ts | 28 + .../model/finish-trip-dto.ts | 15 + .../model/forecast-region-dto.ts | 20 + .../model/forecast-region-sub-region-dto.ts | 18 + .../model/general-observation-edit-model.ts | 32 + .../model/general-observation-view-model.ts | 33 + .../model/geo-hazard-types.ts | 30 + .../common-regobs-api/model/helptext-dto.ts | 18 + .../model/ice-cover-edit-model.ts | 37 + .../model/ice-cover-view-model.ts | 42 + .../model/ice-thickness-edit-model.ts | 40 + .../model/ice-thickness-layer-edit-model.ts | 26 + .../model/ice-thickness-layer-view-model.ts | 27 + .../model/ice-thickness-view-model.ts | 40 + .../model/incident-edit-model.ts | 103 ++ .../model/incident-view-model.ts | 127 ++ .../model/landslide-edit-model.ts | 81 + .../model/landslide-view-model.ts | 88 + .../common-regobs-api/model/lang-key.ts | 24 + .../common-regobs-api/model/lat-lng.ts | 16 + .../modules/common-regobs-api/model/models.ts | 99 ++ .../common-regobs-api/model/my-page-data.ts | 37 + .../model/obs-location-edit-model.ts | 42 + .../model/obs-location-view-model.ts | 60 + .../model/observer-competence-dto.ts | 18 + .../model/observer-competence-level-dto.ts | 18 + .../model/observer-group-dto.ts | 19 + .../model/observer-patch-request-dto.ts | 15 + .../model/observer-response-dto.ts | 18 + .../model/observer-view-model.ts | 18 + .../common-regobs-api/model/operator.ts | 16 + .../common-regobs-api/model/position-dto.ts | 16 + .../model/problem-details.ts | 22 + .../model/property-filter.ts | 30 + .../model/reg-obs-generic-value.ts | 22 + .../model/registration-edit-model.ts | 76 + .../model/registration-type-criteria-dto.ts | 19 + .../model/registration-type-dto.ts | 19 + .../model/registration-type-sub-type-dto.ts | 17 + .../model/registration-view-model.ts | 107 ++ .../model/registrations-with-attachments.ts | 23 + .../model/search-count-response-dto.ts | 15 + .../search-criteria-excl-user-request-dto.ts | 87 + .../model/search-criteria-request-dto.ts | 107 ++ ...side-bar-dto-observer-competence-levels.ts | 27 + .../search-side-bar-dto-registration-types.ts | 27 + .../model/search-side-bar-dto.ts | 20 + .../model/search-side-bar-request-dto.ts | 27 + .../model/snow-cover-obs-view-model.ts | 39 + .../model/snow-density-layer-model.ts | 30 + .../model/snow-density-model.ts | 19 + .../model/snow-profile-edit-model.ts | 24 + .../model/snow-profile-view-model.ts | 30 + .../model/snow-surface-edit-model.ts | 54 + .../model/snow-surface-view-model.ts | 68 + .../model/snow-temp-model.ts | 16 + .../model/snow-temp-obs-model.ts | 16 + .../model/strat-profile-edit-model.ts | 16 + .../model/strat-profile-layer-edit-model.ts | 26 + .../model/strat-profile-layer-view-model.ts | 32 + .../model/strat-profile-view-model.ts | 17 + .../common-regobs-api/model/summary.ts | 18 + .../common-regobs-api/model/url-edit-model.ts | 22 + .../common-regobs-api/model/url-view-model.ts | 22 + .../common-regobs-api/model/value-kind.ts | 18 + .../water-level-measurement-edit-model.ts | 20 + .../water-level-measurement-view-model.ts | 20 + .../model/water-level-view-model.ts | 21 + .../model/waterlevel2-edit-model.ts | 30 + .../model/waterlevel2-view-model.ts | 38 + .../model/weather-edit-model.ts | 20 + .../model/weather-view-model.ts | 22 + .../model/within-extent-criteria-dto.ts | 17 + .../model/within-radius-criteria-dto.ts | 17 + src/app/modules/common-regobs-api/models.ts | 95 - .../common-regobs-api/models/areas-dto.ts | 11 - .../models/at-aglance-view-model.ts | 29 - .../models/attachment-edit-model.ts | 45 - .../models/attachment-view-model.ts | 69 - .../avalanche-activity-obs-2edit-model.ts | 16 - .../avalanche-activity-obs-2view-model.ts | 23 - .../avalanche-activity-obs-view-model.ts | 65 - .../models/avalanche-danger-obs-view-model.ts | 7 - .../avalanche-eval-problem-2edit-model.ts | 63 - .../avalanche-eval-problem-2view-model.ts | 75 - .../avalanche-eval-problem-view-model.ts | 21 - .../avalanche-evaluation-2view-model.ts | 17 - .../avalanche-evaluation-3edit-model.ts | 28 - .../avalanche-evaluation-3view-model.ts | 30 - .../models/avalanche-evaluation-view-model.ts | 19 - .../models/avalanche-obs-edit-model.ts | 123 -- .../models/avalanche-obs-view-model.ts | 128 -- .../models/compression-test-edit-model.ts | 59 - .../models/compression-test-view-model.ts | 63 - .../common-regobs-api/models/county-dto.ts | 5 - .../models/create-trip-dto.ts | 10 - .../models/damage-obs-edit-model.ts | 10 - .../models/damage-obs-view-model.ts | 12 - .../models/danger-obs-edit-model.ts | 18 - .../models/danger-obs-view-model.ts | 20 - .../models/finish-trip-dto.ts | 4 - .../models/forecast-region-dto.ts | 9 - .../models/forecast-region-sub-region-dto.ts | 7 - .../models/general-observation-edit-model.ts | 25 - .../models/general-observation-view-model.ts | 26 - .../models/geo-location-info.ts | 14 - .../models/geo-location-summary.ts | 5 - .../common-regobs-api/models/helptext-dto.ts | 7 - .../models/ice-cover-edit-model.ts | 31 - .../models/ice-cover-view-model.ts | 36 - .../models/ice-thickness-edit-model.ts | 35 - .../models/ice-thickness-layer-edit-model.ts | 18 - .../models/ice-thickness-layer-view-model.ts | 19 - .../models/ice-thickness-view-model.ts | 35 - .../models/incident-edit-model.ts | 114 -- .../models/incident-view-model.ts | 143 -- .../common-regobs-api/models/kdv-element.ts | 6 - .../models/kdv-elements-response-dto.ts | 6 - .../models/landslide-edit-model.ts | 86 - .../models/landslide-view-model.ts | 93 - .../models/lat-lng-object.ts | 5 - .../common-regobs-api/models/lat-lng.ts | 5 - .../common-regobs-api/models/my-page-data.ts | 27 - .../models/obs-location-edit-model.ts | 38 - .../models/obs-location-view-model.ts | 59 - .../models/obs-locations-response-dto-v2.ts | 13 - .../models/observer-competence-dto.ts | 7 - .../models/observer-competence-level-dto.ts | 7 - .../models/observer-group-dto.ts | 8 - .../models/observer-patch-request-dto.ts | 4 - .../models/observer-response-dto.ts | 7 - .../models/observer-view-model.ts | 7 - .../common-regobs-api/models/position-dto.ts | 5 - .../models/property-filter.ts | 21 - .../models/reg-obs-generic-value.ts | 7 - .../models/registration-edit-model.ts | 66 - .../models/registration-type-criteria-dto.ts | 9 - .../models/registration-type-dto.ts | 8 - .../models/registration-type-sub-type-dto.ts | 6 - .../models/registration-view-model.ts | 99 -- .../models/search-count-response-dto.ts | 4 - .../search-criteria-excl-user-request-dto.ts | 100 -- .../models/search-criteria-request-dto.ts | 127 -- .../search-registrations-with-attachments.ts | 10 - .../models/search-side-bar-dto.ts | 9 - .../models/search-side-bar-request-dto.ts | 15 - .../models/snow-cover-obs-view-model.ts | 34 - .../models/snow-density-layer-model.ts | 22 - .../models/snow-density-model.ts | 8 - .../models/snow-profile-edit-model.ts | 13 - .../models/snow-profile-view-model.ts | 18 - .../models/snow-surface-edit-model.ts | 53 - .../models/snow-surface-view-model.ts | 69 - .../models/snow-temp-model.ts | 5 - .../models/snow-temp-obs-model.ts | 5 - .../models/strat-profile-edit-model.ts | 5 - .../models/strat-profile-layer-edit-model.ts | 15 - .../models/strat-profile-layer-view-model.ts | 21 - .../models/strat-profile-view-model.ts | 9 - .../common-regobs-api/models/summary.ts | 7 - .../models/url-edit-model.ts | 13 - .../models/url-view-model.ts | 13 - .../water-level-measurement-edit-model.ts | 9 - .../water-level-measurement-view-model.ts | 9 - .../models/water-level-view-model.ts | 10 - .../models/waterlevel-2edit-model.ts | 16 - .../models/waterlevel-2view-model.ts | 27 - .../models/weather-edit-model.ts | 9 - .../models/weather-view-model.ts | 11 - .../models/within-extent-criteria-dto.ts | 6 - .../models/within-radius-criteria-dto.ts | 6 - src/app/modules/common-regobs-api/param.ts | 69 + .../modules/common-regobs-api/provide-api.ts | 15 + .../modules/common-regobs-api/public-api.ts | 1 - .../regobs-api-configuration-provider.ts | 28 - .../regobs-api-configuration.ts | 16 - .../regobs-api-with-config.module.ts | 41 - .../common-regobs-api/regobs-api.module.ts | 45 - src/app/modules/common-regobs-api/services.ts | 9 - .../services/account.service.ts | 213 --- .../services/attachment.service.ts | 129 -- .../services/geo-code.service.ts | 208 --- .../services/helptext.service.ts | 70 - .../services/kdv-elements.service.ts | 105 -- .../services/location.service.ts | 167 -- .../services/registration.service.ts | 556 ------ .../services/search.service.ts | 461 ----- .../services/trip.service.ts | 134 -- .../common-regobs-api/strict-http-response.ts | 9 - src/app/modules/common-regobs-api/test.ts | 22 - .../modules/common-regobs-api/variables.ts | 9 + .../user-information/user-information.page.ts | 4 +- .../set-location-in-map.component.ts | 8 +- .../edit-registration-helper-functions.ts | 10 +- .../pages/obs-location/obs-location.page.ts | 18 +- .../view-observation/view-observation.page.ts | 8 +- src/main.ts | 9 +- 260 files changed, 8596 insertions(+), 5387 deletions(-) create mode 100644 openapitools.json create mode 100644 src/app/modules/common-regobs-api/.gitignore create mode 100644 src/app/modules/common-regobs-api/.openapi-generator-ignore create mode 100644 src/app/modules/common-regobs-api/.openapi-generator/FILES create mode 100644 src/app/modules/common-regobs-api/.openapi-generator/VERSION create mode 100644 src/app/modules/common-regobs-api/README.md create mode 100644 src/app/modules/common-regobs-api/api.base.service.ts create mode 100644 src/app/modules/common-regobs-api/api.module.ts create mode 100644 src/app/modules/common-regobs-api/api/account.service.ts create mode 100644 src/app/modules/common-regobs-api/api/api.ts create mode 100644 src/app/modules/common-regobs-api/api/attachment.service.ts create mode 100644 src/app/modules/common-regobs-api/api/geo-code.service.ts create mode 100644 src/app/modules/common-regobs-api/api/helptext.service.ts create mode 100644 src/app/modules/common-regobs-api/api/kdv-elements.service.ts create mode 100644 src/app/modules/common-regobs-api/api/location.service.ts create mode 100644 src/app/modules/common-regobs-api/api/registration.service.ts create mode 100644 src/app/modules/common-regobs-api/api/search.service.ts create mode 100644 src/app/modules/common-regobs-api/api/trip.service.ts delete mode 100644 src/app/modules/common-regobs-api/base-service.ts create mode 100644 src/app/modules/common-regobs-api/configuration.ts create mode 100644 src/app/modules/common-regobs-api/encoder.ts create mode 100644 src/app/modules/common-regobs-api/git_push.sh create mode 100644 src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts create mode 100644 src/app/modules/common-regobs-api/model/areas-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/attachment-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts create mode 100644 src/app/modules/common-regobs-api/model/attachment-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/compression-test-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/compression-test-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/county-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/create-trip-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/damage-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/danger-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/finish-trip-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/forecast-region-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/general-observation-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/general-observation-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/geo-hazard-types.ts create mode 100644 src/app/modules/common-regobs-api/model/helptext-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-cover-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/incident-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/incident-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/landslide-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/landslide-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/lang-key.ts create mode 100644 src/app/modules/common-regobs-api/model/lat-lng.ts create mode 100644 src/app/modules/common-regobs-api/model/models.ts create mode 100644 src/app/modules/common-regobs-api/model/my-page-data.ts create mode 100644 src/app/modules/common-regobs-api/model/obs-location-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/obs-location-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-competence-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-group-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/observer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/operator.ts create mode 100644 src/app/modules/common-regobs-api/model/position-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/problem-details.ts create mode 100644 src/app/modules/common-regobs-api/model/property-filter.ts create mode 100644 src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts create mode 100644 src/app/modules/common-regobs-api/model/registration-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/registration-type-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/registration-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/registrations-with-attachments.ts create mode 100644 src/app/modules/common-regobs-api/model/search-count-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts create mode 100644 src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts create mode 100644 src/app/modules/common-regobs-api/model/search-side-bar-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-density-layer-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-density-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-profile-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-surface-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-temp-model.ts create mode 100644 src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts create mode 100644 src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/strat-profile-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/summary.ts create mode 100644 src/app/modules/common-regobs-api/model/url-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/url-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/value-kind.ts create mode 100644 src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/water-level-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/weather-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/model/weather-view-model.ts create mode 100644 src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models.ts delete mode 100644 src/app/modules/common-regobs-api/models/areas-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/at-aglance-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/attachment-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/attachment-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs-2edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs-2view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem-2edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem-2view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation-2view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation-3edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation-3view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/compression-test-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/compression-test-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/county-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/create-trip-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/damage-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/danger-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/finish-trip-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/forecast-region-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/general-observation-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/general-observation-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/geo-location-info.ts delete mode 100644 src/app/modules/common-regobs-api/models/geo-location-summary.ts delete mode 100644 src/app/modules/common-regobs-api/models/helptext-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-cover-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/incident-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/incident-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/kdv-element.ts delete mode 100644 src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/landslide-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/landslide-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/lat-lng-object.ts delete mode 100644 src/app/modules/common-regobs-api/models/lat-lng.ts delete mode 100644 src/app/modules/common-regobs-api/models/my-page-data.ts delete mode 100644 src/app/modules/common-regobs-api/models/obs-location-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/obs-location-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-competence-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-group-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-response-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/observer-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/position-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/property-filter.ts delete mode 100644 src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts delete mode 100644 src/app/modules/common-regobs-api/models/registration-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/registration-type-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/registration-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-count-response-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-registrations-with-attachments.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-density-layer-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-density-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-profile-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-surface-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-temp-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/strat-profile-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/summary.ts delete mode 100644 src/app/modules/common-regobs-api/models/url-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/url-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/water-level-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/waterlevel-2edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/waterlevel-2view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/weather-edit-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/weather-view-model.ts delete mode 100644 src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts delete mode 100644 src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts create mode 100644 src/app/modules/common-regobs-api/param.ts create mode 100644 src/app/modules/common-regobs-api/provide-api.ts delete mode 100644 src/app/modules/common-regobs-api/public-api.ts delete mode 100644 src/app/modules/common-regobs-api/regobs-api-configuration-provider.ts delete mode 100644 src/app/modules/common-regobs-api/regobs-api-configuration.ts delete mode 100644 src/app/modules/common-regobs-api/regobs-api-with-config.module.ts delete mode 100644 src/app/modules/common-regobs-api/regobs-api.module.ts delete mode 100644 src/app/modules/common-regobs-api/services.ts delete mode 100644 src/app/modules/common-regobs-api/services/account.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/attachment.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/geo-code.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/helptext.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/kdv-elements.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/location.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/registration.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/search.service.ts delete mode 100644 src/app/modules/common-regobs-api/services/trip.service.ts delete mode 100644 src/app/modules/common-regobs-api/strict-http-response.ts delete mode 100644 src/app/modules/common-regobs-api/test.ts create mode 100644 src/app/modules/common-regobs-api/variables.ts diff --git a/.eslintignore b/.eslintignore index c77f8beaf..206888592 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ src/app/modules/common-regobs-api/* +src/app/api/* diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 000000000..1b4d25272 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,17 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.17.0", + "generators": { + "regobs-client": { + "generatorName": "typescript-angular", + "inputSpec": "https://test-api.regobs.no/v6/swagger/v6/swagger.json", + "output": "src/app/modules/common-regobs-api", + "additionalProperties": { + "fileNaming": "kebab-case" + } + } + } + } +} diff --git a/package-lock.json b/package-lock.json index c7615b961..5efbd205f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -97,6 +97,7 @@ "@ionic/angular-toolkit": "^11.0.1", "@ionic/cli": "^7.2.1", "@lokalise/node-api": "^8.5.1", + "@openapitools/openapi-generator-cli": "^2.25.0", "@sentry/cli": "^1.68.0", "@sentry/wizard": "^1.2.11", "@types/clone-deep": "^4.0.1", @@ -135,6 +136,7 @@ "karma-junit-reporter": "^2.0.1", "madge": "^5.0.1", "manifest-android": "^0.1.1", + "ng-openapi": "^0.2.8", "ng-swagger-gen": "^2.3.1", "plist": "^3.0.5", "prettier": "^3.4.2", @@ -4243,6 +4245,17 @@ "leaflet.markercluster": "1" } }, + "node_modules/@borewit/text-codec": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.1.1.tgz", + "integrity": "sha512-5L/uBxmjaCIX5h8Z+uu+kA9BQLkc/Wl06UGR5ajNRxu+/XjonB5i8JpgFMrPj3LXTCPA0pv8yxUvbUi+QthGGA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/@braintree/sanitize-url": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.1.tgz", @@ -5906,6 +5919,29 @@ "node": ">=16.0.0" } }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "dev": true, @@ -6306,6 +6342,16 @@ "node": ">=10" } }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/@mapbox/leaflet-pip": { "version": "1.1.0", "license": "ISC", @@ -6904,6 +6950,102 @@ "node": ">= 10" } }, + "node_modules/@nestjs/axios": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.1.tgz", + "integrity": "sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "axios": "^1.3.1", + "rxjs": "^7.0.0" + } + }, + "node_modules/@nestjs/common": { + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.6.tgz", + "integrity": "sha512-krKwLLcFmeuKDqngG2N/RuZHCs2ycsKcxWIDgcm7i1lf3sQ0iG03ci+DsP/r3FcT/eJDFsIHnKtNta2LIi7PzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "file-type": "21.0.0", + "iterare": "1.2.1", + "load-esm": "1.0.2", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "class-transformer": ">=0.4.1", + "class-validator": ">=0.13.2", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/core": { + "version": "11.1.6", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.1.6.tgz", + "integrity": "sha512-siWX7UDgErisW18VTeJA+x+/tpNZrJewjTBsRPF3JVxuWRuAB1kRoiJcxHgln8Lb5UY9NdvklITR84DUEXD0Cg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@nuxt/opencollective": "0.4.1", + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "8.2.0", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "engines": { + "node": ">= 20" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/microservices": "^11.0.0", + "@nestjs/platform-express": "^11.0.0", + "@nestjs/websockets": "^11.0.0", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } + } + }, + "node_modules/@nestjs/core/node_modules/path-to-regexp": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", + "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + } + }, "node_modules/@ngtools/webpack": { "version": "20.3.7", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-20.3.7.tgz", @@ -7230,33 +7372,393 @@ "which": "^5.0.0" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/@npmcli/run-script/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16" + } + }, + "node_modules/@npmcli/run-script/node_modules/which": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", + "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/@nuxt/opencollective": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@nuxt/opencollective/-/opencollective-0.4.1.tgz", + "integrity": "sha512-GXD3wy50qYbxCJ652bDrDzgMr3NFEkIS374+IgFQKkCvk9yiYcLvX2XDYr7UyQxf4wK0e+yqDYRubZ0DtOxnmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": "^14.18.0 || >=16.10.0", + "npm": ">=5.10.0" + } + }, + "node_modules/@nuxtjs/opencollective": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz", + "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "consola": "^2.15.0", + "node-fetch": "^2.6.1" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@nuxtjs/opencollective/node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@nuxtjs/opencollective/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@nuxtjs/opencollective/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.25.0", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.25.0.tgz", + "integrity": "sha512-u/3VAbF8c68AXBgm8nBAdDPLPW/KgrtHz28yemf92zNB0iDZFGdRUX2W80Lzf177g6ctYLz0GIPHCOU0LTJegQ==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@nestjs/axios": "4.0.1", + "@nestjs/common": "11.1.6", + "@nestjs/core": "11.1.6", + "@nuxtjs/opencollective": "0.3.2", + "axios": "1.12.2", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "6.1.1", + "concurrently": "9.2.1", + "console.table": "0.10.0", + "fs-extra": "11.3.2", + "glob": "11.0.3", + "inquirer": "8.2.7", + "proxy-agent": "6.5.0", + "reflect-metadata": "0.2.2", + "rxjs": "7.8.2", + "tslib": "2.8.1" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/fs-extra": { + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz", + "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/jackspeak": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", + "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/lru-cache": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.2.tgz", + "integrity": "sha512-F9ODfyqML2coTIsQpSkRHnLSZMtkU8Q+mSfcaIyKwy58u+8k5nvAYeiNhsyMARvzNcXJ9QfWVrcPsC9e9rAxtg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@npmcli/run-script/node_modules/isexe": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", - "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "node_modules/@openapitools/openapi-generator-cli/node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "dev": true, - "license": "ISC", - "engines": { - "node": ">=16" + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" } }, - "node_modules/@npmcli/run-script/node_modules/which": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", - "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", + "node_modules/@openapitools/openapi-generator-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "isexe": "^3.1.1" - }, - "bin": { - "node-which": "bin/which.js" + "has-flag": "^4.0.0" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": ">=8" } }, "node_modules/@openid/appauth": { @@ -8665,11 +9167,85 @@ "node": ">=10" } }, + "node_modules/@tokenizer/inflate": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.2.7.tgz", + "integrity": "sha512-MADQgmZT1eKjp06jpI2yozxaU9uVs4GzzgSL+uEq7bVcJ9V1ZXQkeGNql1fsSI0gMy1vhvNTNbUqrx+pZfJVmg==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "fflate": "^0.8.2", + "token-types": "^6.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@tokenizer/inflate/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "dev": true, + "license": "MIT" + }, "node_modules/@tootallnate/quickjs-emscripten": { "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", "dev": true, "license": "MIT" }, + "node_modules/@ts-morph/common": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz", + "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-glob": "^3.3.3", + "minimatch": "^10.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "dev": true, @@ -14866,6 +15442,13 @@ "@types/node": "*" } }, + "node_modules/@types/swagger-schema-official": { + "version": "2.0.25", + "resolved": "https://registry.npmjs.org/@types/swagger-schema-official/-/swagger-schema-official-2.0.25.tgz", + "integrity": "sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/trusted-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", @@ -15535,6 +16118,8 @@ }, "node_modules/ast-types": { "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, "license": "MIT", "dependencies": { @@ -15605,6 +16190,18 @@ "postcss": "^8.1.0" } }, + "node_modules/axios": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", + "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/babel-loader": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-10.0.0.tgz", @@ -15719,6 +16316,8 @@ }, "node_modules/basic-ftp": { "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", "dev": true, "license": "MIT", "engines": { @@ -16494,6 +17093,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==", + "dev": true, + "license": "MIT" + }, "node_modules/color-convert": { "version": "1.9.3", "devOptional": true, @@ -16559,6 +17165,13 @@ "dev": true, "license": "MIT" }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "dev": true, + "license": "MIT" + }, "node_modules/component-emitter": { "version": "1.3.1", "dev": true, @@ -16606,60 +17219,231 @@ "dev": true, "license": "MIT", "dependencies": { - "ms": "2.0.0" + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true, + "license": "MIT" + }, + "node_modules/compression/node_modules/negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/concaveman": { + "version": "1.2.1", + "license": "ISC", + "dependencies": { + "point-in-polygon": "^1.1.0", + "rbush": "^3.0.1", + "robust-predicates": "^2.0.4", + "tinyqueue": "^2.0.3" + } + }, + "node_modules/concurrently": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", + "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "4.1.2", + "rxjs": "7.8.2", + "shell-quote": "1.8.3", + "supports-color": "8.1.1", + "tree-kill": "1.2.2", + "yargs": "17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/concurrently/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/concurrently/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concurrently/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/concurrently/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" - }, - "node_modules/compression/node_modules/negotiator": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", - "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "node_modules/concurrently/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, "engines": { - "node": ">= 0.6" + "node": ">=12" } }, - "node_modules/compression/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", + "node_modules/concurrently/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "MIT" - }, - "node_modules/concaveman": { - "version": "1.2.1", "license": "ISC", - "dependencies": { - "point-in-polygon": "^1.1.0", - "rbush": "^3.0.1", - "robust-predicates": "^2.0.4", - "tinyqueue": "^2.0.3" + "engines": { + "node": ">=12" } }, "node_modules/confbox": { @@ -16720,6 +17504,29 @@ "dev": true, "license": "MIT" }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, "node_modules/content-disposition": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", @@ -17749,6 +18556,8 @@ }, "node_modules/data-uri-to-buffer": { "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", "dev": true, "license": "MIT", "engines": { @@ -17912,6 +18721,8 @@ }, "node_modules/degenerator": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", "dev": true, "license": "MIT", "dependencies": { @@ -18379,6 +19190,16 @@ "dev": true, "license": "MIT" }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", + "dev": true, + "license": "MIT", + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, "node_modules/ee-first": { "version": "1.1.1", "dev": true, @@ -19529,6 +20350,13 @@ "pend": "~1.2.0" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "dev": true, + "license": "MIT" + }, "node_modules/figures": { "version": "3.2.0", "dev": true, @@ -19554,6 +20382,25 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-type": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.0.0.tgz", + "integrity": "sha512-ek5xNX2YBYlXhiUXui3D/BXa3LdqPmoLJ7rqEx2bKJ7EAUEfmXgW0Das7Dc6Nr9MvqaOnIqiPV0mZk/r/UpNAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.2.7", + "strtok3": "^10.2.2", + "token-types": "^6.0.0", + "uint8array-extras": "^1.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, "node_modules/filing-cabinet": { "version": "3.3.1", "dev": true, @@ -19780,11 +20627,13 @@ } }, "node_modules/foreground-child": { - "version": "3.3.0", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, "license": "ISC", "dependencies": { - "cross-spawn": "^7.0.0", + "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" }, "engines": { @@ -20074,32 +20923,20 @@ } }, "node_modules/get-uri": { - "version": "6.0.3", + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.5.tgz", + "integrity": "sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==", "dev": true, "license": "MIT", "dependencies": { "basic-ftp": "^5.0.2", "data-uri-to-buffer": "^6.0.2", - "debug": "^4.3.4", - "fs-extra": "^11.2.0" + "debug": "^4.3.4" }, "engines": { "node": ">= 14" } }, - "node_modules/get-uri/node_modules/fs-extra": { - "version": "11.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", @@ -20662,89 +21499,274 @@ "minimatch": "^9.0.0" }, "engines": { - "node": "^18.17.0 || >=20.5.0" + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", + "dev": true, + "license": "MIT", + "optional": true, + "bin": { + "image-size": "bin/image-size.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/immediate": { + "version": "3.0.6", + "license": "MIT" + }, + "node_modules/immutable": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.2.tgz", + "integrity": "sha512-qHKXW1q6liAk1Oys6umoaZbDRqjcjgSrbnrifHsfsttza7zcvRAsL7mMV6xWcyhwQy7Xj5v4hhbr6b+iDYwlmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indexes-of": { + "version": "1.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ini": { + "version": "4.1.3", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/inquirer": { + "version": "8.2.7", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.7.tgz", + "integrity": "sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@inquirer/external-editor": "^1.0.0", + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/inquirer/node_modules/@inquirer/external-editor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.2.tgz", + "integrity": "sha512-yy9cOoBnx58TlsPrIxauKIFQTiyH+0MK4e97y4sV9ERbI+zDxw7i2hxHLCIEGIE/8PPvDxGhgzIOTSOWcs6/MQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chardet": "^2.1.0", + "iconv-lite": "^0.7.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/inquirer/node_modules/@types/node": { + "version": "24.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz", + "integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/image-size": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", - "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==", + "node_modules/inquirer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "license": "MIT", - "optional": true, - "bin": { - "image-size": "bin/image-size.js" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/immediate": { - "version": "3.0.6", - "license": "MIT" - }, - "node_modules/immutable": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.2.tgz", - "integrity": "sha512-qHKXW1q6liAk1Oys6umoaZbDRqjcjgSrbnrifHsfsttza7zcvRAsL7mMV6xWcyhwQy7Xj5v4hhbr6b+iDYwlmQ==", + "node_modules/inquirer/node_modules/chardet": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz", + "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==", "dev": true, "license": "MIT" }, - "node_modules/import-fresh": { - "version": "3.3.0", + "node_modules/inquirer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=7.0.0" } }, - "node_modules/import-fresh/node_modules/resolve-from": { + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/inquirer/node_modules/has-flag": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", + "node_modules/inquirer/node_modules/iconv-lite": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", "dev": true, "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, "engines": { - "node": ">=0.8.19" + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, - "node_modules/indexes-of": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, - "node_modules/inflight": { - "version": "1.0.6", + "node_modules/inquirer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/inherits": { - "version": "2.0.4", - "license": "ISC" + "node_modules/inquirer/node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, - "node_modules/ini": { - "version": "4.1.3", + "node_modules/inquirer/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "ISC", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": ">=8" } }, "node_modules/internmap": { @@ -21245,6 +22267,16 @@ "node": ">=8" } }, + "node_modules/iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=6" + } + }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", @@ -22170,6 +23202,26 @@ "license": "MIT", "optional": true }, + "node_modules/load-esm": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/load-esm/-/load-esm-1.0.2.tgz", + "integrity": "sha512-nVAvWk/jeyrWyXEAs84mpQCYccxRqgKY4OznLuJhJCa0XsPSfdOIr2zvBZEj3IHEHbX97jjscKRRV539bW0Gpw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + }, + { + "type": "buymeacoffee", + "url": "https://buymeacoffee.com/borewit" + } + ], + "license": "MIT", + "engines": { + "node": ">=13.2.0" + } + }, "node_modules/loader-runner": { "version": "4.3.0", "dev": true, @@ -23691,12 +24743,82 @@ }, "node_modules/netmask": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4.0" } }, + "node_modules/ng-openapi": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/ng-openapi/-/ng-openapi-0.2.8.tgz", + "integrity": "sha512-SksX8GUh32BqHytKsunIeZa2jdEsh267t94Van/hgmWHbxflYf1W3fhXGfIpGNjivf2utcCoKkW8bYs+xPb+ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/swagger-schema-official": "^2.0.25", + "commander": "^14.0.0", + "js-yaml": "^4.1.0", + "ts-morph": "^26.0.0", + "ts-node": "^10.9.2", + "typescript": "^5.8.3" + }, + "bin": { + "ng-openapi": "cli.cjs" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "funding": { + "type": "buymeacoffee", + "url": "https://buymeacoffee.com/ngopenapi" + }, + "peerDependencies": { + "@angular/common": ">=15", + "@angular/core": ">=15" + }, + "peerDependenciesMeta": { + "@angular/common": { + "optional": false + }, + "@angular/core": { + "optional": false + } + } + }, + "node_modules/ng-openapi/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/ng-openapi/node_modules/commander": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.2.tgz", + "integrity": "sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/ng-openapi/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/ng-swagger-gen": { "version": "2.3.1", "dev": true, @@ -24537,40 +25659,43 @@ } }, "node_modules/pac-proxy-agent": { - "version": "7.0.2", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", "dev": true, "license": "MIT", "dependencies": { "@tootallnate/quickjs-emscripten": "^0.23.0", - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "^4.3.4", "get-uri": "^6.0.1", "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.5", + "https-proxy-agent": "^7.0.6", "pac-resolver": "^7.0.1", - "socks-proxy-agent": "^8.0.4" + "socks-proxy-agent": "^8.0.5" }, "engines": { "node": ">= 14" } }, "node_modules/pac-proxy-agent/node_modules/agent-base": { - "version": "7.1.1", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, "engines": { "node": ">= 14" } }, "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.5", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dev": true, "license": "MIT", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { @@ -24579,6 +25704,8 @@ }, "node_modules/pac-resolver": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dev": true, "license": "MIT", "dependencies": { @@ -24786,6 +25913,13 @@ "node": ">= 0.8" } }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, "node_modules/path-data-parser": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", @@ -25426,40 +26560,43 @@ } }, "node_modules/proxy-agent": { - "version": "6.4.0", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", "dev": true, "license": "MIT", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "^4.3.4", "http-proxy-agent": "^7.0.1", - "https-proxy-agent": "^7.0.3", + "https-proxy-agent": "^7.0.6", "lru-cache": "^7.14.1", - "pac-proxy-agent": "^7.0.1", + "pac-proxy-agent": "^7.1.0", "proxy-from-env": "^1.1.0", - "socks-proxy-agent": "^8.0.2" + "socks-proxy-agent": "^8.0.5" }, "engines": { "node": ">= 14" } }, "node_modules/proxy-agent/node_modules/agent-base": { - "version": "7.1.1", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, "engines": { "node": ">= 14" } }, "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.5", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "dev": true, "license": "MIT", "dependencies": { - "agent-base": "^7.0.2", + "agent-base": "^7.1.2", "debug": "4" }, "engines": { @@ -26926,11 +28063,13 @@ } }, "node_modules/socks-proxy-agent": { - "version": "8.0.4", + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", "dev": true, "license": "MIT", "dependencies": { - "agent-base": "^7.1.1", + "agent-base": "^7.1.2", "debug": "^4.3.4", "socks": "^2.8.3" }, @@ -26939,12 +28078,11 @@ } }, "node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "7.1.1", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "dev": true, "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, "engines": { "node": ">= 14" } @@ -27342,6 +28480,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strtok3": { + "version": "10.3.4", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.3.4.tgz", + "integrity": "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/stylis": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", @@ -27720,6 +28875,25 @@ "node": ">=0.6" } }, + "node_modules/token-types": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.1.tgz", + "integrity": "sha512-kh9LVIWH5CnL63Ipf0jhlBIy0UsrMj/NJDfpsy1SqOXlLKEVyXXYrnFxFT1yOOYVGBSApeVnjPw/sBz5BfEjAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@borewit/text-codec": "^0.1.0", + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, "node_modules/topojson-client": { "version": "3.1.0", "license": "ISC", @@ -27788,8 +28962,21 @@ "node": ">=6.10" } }, + "node_modules/ts-morph": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz", + "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.27.0", + "code-block-writer": "^13.0.3" + } + }, "node_modules/ts-node": { - "version": "10.9.1", + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, "license": "MIT", "dependencies": { @@ -28056,6 +29243,32 @@ "version": "1.0.2", "license": "MIT" }, + "node_modules/uid": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", + "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lukeed/csprng": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uint8array-extras": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.5.0.tgz", + "integrity": "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/undici-types": { "version": "7.12.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz", diff --git a/package.json b/package.json index 9daf3d53a..b73684778 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "scripts": { "ng": "ng", "generate-swagger-api-module": "ng-swagger-gen -c ng-swagger-gen.json", + "generate-openapi-models": "npx openapi-generator-cli generate --generator-key regobs-client", "start": "ionic serve", "build": "ionic build", "build:prod": "ng build --configuration production", @@ -126,6 +127,7 @@ "@ionic/angular-toolkit": "^11.0.1", "@ionic/cli": "^7.2.1", "@lokalise/node-api": "^8.5.1", + "@openapitools/openapi-generator-cli": "^2.25.0", "@sentry/cli": "^1.68.0", "@sentry/wizard": "^1.2.11", "@types/clone-deep": "^4.0.1", @@ -164,6 +166,7 @@ "karma-junit-reporter": "^2.0.1", "madge": "^5.0.1", "manifest-android": "^0.1.1", + "ng-openapi": "^0.2.8", "ng-swagger-gen": "^2.3.1", "plist": "^3.0.5", "prettier": "^3.4.2", diff --git a/src/app/components/observation/registration-edit-button/registration-edit-button.component.ts b/src/app/components/observation/registration-edit-button/registration-edit-button.component.ts index 7e847d091..b29db765a 100644 --- a/src/app/components/observation/registration-edit-button/registration-edit-button.component.ts +++ b/src/app/components/observation/registration-edit-button/registration-edit-button.component.ts @@ -71,11 +71,9 @@ export class RegistrationEditButtonComponent { }); } - private fetchRegistrationBeforeEdit( - regId: RegistrationService.RegistrationGetParams['regId'] - ): Observable { + private fetchRegistrationBeforeEdit(regId: number): Observable { return this.userSettingService.language$.pipe( - switchMap((langKey) => this.registrationService.RegistrationGet({ regId, langKey })), + switchMap((langKey) => this.registrationService.registrationGet(regId, langKey)), timeout(FETCH_OBS_TIMEOUT_MS), catchError((error) => { let msg: string; @@ -109,6 +107,9 @@ export class RegistrationEditButtonComponent { //we don't have a local working copy of this registration yet, so fetch it and save as draft const obs = this.registration(); this.logger.debug(`Registration edit: Fetching from API. RegID = ${obs.RegId}, uuid = ${uuid}`, DEBUG_TAG); + if (!obs.RegId) { + throw new Error('regId is required to fetch registration for editing'); + } const registrationFromServer = await firstValueFrom(this.fetchRegistrationBeforeEdit(obs.RegId)); if (registrationFromServer === null) { const continueEditing = await this.confirmEditDespiteNoFreshRegistrationFromServer(); diff --git a/src/app/core/services/add-update-delete-registration/add-update-delete-registration.service.ts b/src/app/core/services/add-update-delete-registration/add-update-delete-registration.service.ts index d52f18d3f..c10048cbe 100644 --- a/src/app/core/services/add-update-delete-registration/add-update-delete-registration.service.ts +++ b/src/app/core/services/add-update-delete-registration/add-update-delete-registration.service.ts @@ -5,7 +5,11 @@ import { AnalyticService } from 'src/app/modules/analytics/services/analytic.ser import { LangKey } from 'src/app/modules/common-core/models'; import { removeEmptyRegistrations } from 'src/app/modules/common-registration/registration.helpers'; import { AttachmentUploadEditModel } from 'src/app/modules/common-registration/registration.models'; -import { RegistrationEditModel, RegistrationService, RegistrationViewModel } from 'src/app/modules/common-regobs-api'; +import { + type RegistrationEditModel, + RegistrationService, + type RegistrationViewModel, +} from 'src/app/modules/common-regobs-api'; import { RegistrationDraft, RegistrationEditModelWithRemoteOrLocalAttachments } from '../draft/draft-model'; import { UploadAttachmentsService } from '../upload-attachments/upload-attachments.service'; import { UserSettingService } from '../user-setting/user-setting.service'; @@ -67,16 +71,16 @@ export class AddUpdateDeleteRegistrationService { const langKey = await firstValueFrom(this.userSettings.language$); const registrationWithMeta = this.addMetadata(registration, draft); - const data: RegistrationService.RegistrationInsertParams = { - registration: registrationWithMeta, - langKey, - externalReferenceId: draft.uuid, - }; - - this.logger.debug('RegistrationInsert', DEBUG_TAG, data); + this.logger.debug('RegistrationInsert', DEBUG_TAG, { + uuid: draft.uuid, + langKey: langKey, + registrationWithMeta: registrationWithMeta, + }); // Send registration to regobs - const result = await firstValueFrom(this.regobsApiRegistrationService.RegistrationInsert(data)); + const result = await firstValueFrom( + this.regobsApiRegistrationService.registrationInsert(draft.uuid, langKey, registrationWithMeta) + ); this.logger.debug('RegistrationInsert result', DEBUG_TAG, { result, externalReferenceId: draft.uuid }); @@ -102,28 +106,33 @@ export class AddUpdateDeleteRegistrationService { async update(draft: RegistrationDraft, ignoreVersionCheck = false): Promise { this.logger.debug('Update registration', DEBUG_TAG, { draft, ignoreVersionCheck }); - if (draft.regId == null) { - throw new Error('Update operation needs regid'); - } - const langKey = await firstValueFrom(this.userSettings.language$); draft = removeEmptyRegistrations(draft); const uploadedAttachments = await this.uploadAttachments(draft); const registration = this.addAttachmentToRegistration(uploadedAttachments, draft.registration); const registrationWithMeta = this.addMetadata(registration, draft); - const data: RegistrationService.RegistrationInsertOrUpdateParams = { - registration: registrationWithMeta, - langKey, - externalReferenceId: draft.uuid, - id: draft.regId as number, // Type check higher up + this.logger.debug('RegistrationInsertOrUpdate', DEBUG_TAG, { + regId: draft.regId, + uuid: draft.uuid, + langKey: langKey, ignoreVersionCheck: ignoreVersionCheck, - }; - - this.logger.debug('RegistrationInsertOrUpdate', DEBUG_TAG, data); + registrationWithMeta: registrationWithMeta, + }); + if (draft.regId == null) { + throw new Error('Update operation needs regid'); + } // Send registration to regobs - const result = await firstValueFrom(this.regobsApiRegistrationService.RegistrationInsertOrUpdate(data)); + const result = await firstValueFrom( + this.regobsApiRegistrationService.registrationInsertOrUpdate( + draft.regId, + draft.uuid, + langKey, + ignoreVersionCheck, + registrationWithMeta + ) + ); this.logger.debug('RegistrationInsertOrUpdate result', DEBUG_TAG, { result, externalReferenceId: draft.uuid }); @@ -148,7 +157,7 @@ export class AddUpdateDeleteRegistrationService { throw new Error('regId required'); } return firstValueFrom( - this.regobsApiRegistrationService.RegistrationDelete(regId).pipe( + this.regobsApiRegistrationService.registrationDelete(regId).pipe( timeout(timeoutInMillis), tap(() => this.deletedRegistrationIds.next(regId)) ) diff --git a/src/app/core/services/add-update-delete-registration/attachmentHelpers.ts b/src/app/core/services/add-update-delete-registration/attachmentHelpers.ts index a58ac9e68..0c08a2b43 100644 --- a/src/app/core/services/add-update-delete-registration/attachmentHelpers.ts +++ b/src/app/core/services/add-update-delete-registration/attachmentHelpers.ts @@ -6,7 +6,7 @@ import { AttachmentUploadEditModel, WaterLevelMeasurementUploadModel, } from 'src/app/modules/common-registration/registration.models'; -import { AttachmentEditModel, RegistrationEditModel } from 'src/app/modules/common-regobs-api'; +import { type AttachmentEditModel, type RegistrationEditModel } from 'src/app/modules/common-regobs-api'; import { removeEmpty } from '../../helpers/remove-empty'; /** diff --git a/src/app/core/services/draft/draft-model.ts b/src/app/core/services/draft/draft-model.ts index d31d9bc03..f236e69a0 100644 --- a/src/app/core/services/draft/draft-model.ts +++ b/src/app/core/services/draft/draft-model.ts @@ -1,5 +1,9 @@ import { SyncStatus } from '../../../modules/common-registration/registration.models'; -import { AttachmentEditModel, AttachmentViewModel, RegistrationEditModel } from '../../../modules/common-regobs-api'; +import { + type AttachmentEditModel, + type AttachmentViewModel, + type RegistrationEditModel, +} from '../../../modules/common-regobs-api'; // eslint-disable-next-line @typescript-eslint/ban-types // If we want to make RegistrationEditModel immutable, use Immutable @@ -31,7 +35,7 @@ export interface RegistrationDraftError { export type RemoteOrLocalAttachmentEditModel = Pick & AttachmentEditModel; export interface RegistrationEditModelWithRemoteOrLocalAttachments extends Omit { - Attachments?: RemoteOrLocalAttachmentEditModel[]; + Attachments?: RemoteOrLocalAttachmentEditModel[] | null; } /** diff --git a/src/app/core/services/location/location.service.ts b/src/app/core/services/location/location.service.ts index e4bc622ca..30532072b 100644 --- a/src/app/core/services/location/location.service.ts +++ b/src/app/core/services/location/location.service.ts @@ -1,5 +1,5 @@ import { Injectable, inject } from '@angular/core'; -import { LocationService as RegobsApiLocationService } from 'src/app/modules/common-regobs-api/services'; +import { LocationService as RegobsApiLocationService } from 'src/app/modules/common-regobs-api'; import { GeoHazard } from 'src/app/modules/common-core/models'; import { catchError, switchMap } from 'rxjs/operators'; import { RegobsAuthService } from '../../../modules/auth/services/regobs-auth.service'; @@ -17,14 +17,8 @@ export class LocationService { getLocationWithinRadiusObservable(geoHazard: GeoHazard, lat: number, lng: number, radius: number) { return this.regobsAuthService.loggedInUser$.pipe( - switchMap(() => - this.apiLocationService.LocationWithinRadius({ - geoHazardTypeIds: [geoHazard], - radius, - latitude: lat, - longitude: lng, - returnCount: 100, - }) + switchMap( + () => this.apiLocationService.locationWithinRadius(lat, lng, radius, [geoHazard], 100) //TODO: sjekk om dette fungerer ), catchError((err) => { this.loggingService.error(err, DEBUG_TAG, 'Could not fetch loactions within radius'); diff --git a/src/app/core/services/user-group/user-group.service.ts b/src/app/core/services/user-group/user-group.service.ts index afa14c419..29ee4c00a 100644 --- a/src/app/core/services/user-group/user-group.service.ts +++ b/src/app/core/services/user-group/user-group.service.ts @@ -3,8 +3,7 @@ import { UserSettingService } from '../user-setting/user-setting.service'; import { NanoSql } from '../../../../nanosql'; import { AppMode } from 'src/app/modules/common-core/models'; import { DataLoadService } from '../../../modules/data-load/services/data-load.service'; -import { ObserverGroupDto } from 'src/app/modules/common-regobs-api/models'; -import { AccountService as RegobsApiAccountService } from 'src/app/modules/common-regobs-api/services'; +import { AccountService as RegobsApiAccountService, type ObserverGroupDto } from 'src/app/modules/common-regobs-api'; import moment from 'moment'; import { from, combineLatest, Observable, lastValueFrom, firstValueFrom } from 'rxjs'; import { switchMap } from 'rxjs/operators'; @@ -40,7 +39,7 @@ export class UserGroupService { async updateUserGroupsForUser(appMode: AppMode, email: string) { const dataLoadId = this.getDataLoadId(appMode, email); await this.dataLoadService.startLoading(dataLoadId); - const result = await lastValueFrom(this.accountApiService.AccountGetObserverGroups()); + const result = await lastValueFrom(this.accountApiService.accountGetObserverGroups()); this.saveUserGroups(appMode, email, result); await this.dataLoadService.loadingCompleted(dataLoadId, result.length); } diff --git a/src/app/modules/auth/services/regobs-auth.service.ts b/src/app/modules/auth/services/regobs-auth.service.ts index cfc6371bb..65edd67b9 100644 --- a/src/app/modules/auth/services/regobs-auth.service.ts +++ b/src/app/modules/auth/services/regobs-auth.service.ts @@ -8,13 +8,12 @@ import { filter, map, shareReplay, skip, switchMap, take, tap, withLatestFrom } import { LangKey } from 'src/app/modules/common-core/models'; import { UserSettingService } from '../../../core/services/user-setting/user-setting.service'; import { LoggedInUser } from '../../login/models/logged-in-user.model'; -import { MyPageData, ObserverResponseDto } from 'src/app/modules/common-regobs-api/models'; -import { AccountService } from 'src/app/modules/common-regobs-api/services'; import { LoggingService } from '../../shared/services/logging/logging.service'; import { Location } from '@angular/common'; import { nowInSeconds, StorageBackend } from '@openid/appauth'; import { NetworkStatusService } from 'src/app/core/services/network-status/network-status.service'; import { MapService, parseMapViewFromSearchParams } from '../../map/services/map/map.service'; +import { AccountService, type MyPageData, type ObserverResponseDto } from '../../common-regobs-api'; const DEBUG_TAG = 'RegobsAuthService'; export const RETURN_URL_KEY = 'authreturnurl'; @@ -84,7 +83,7 @@ export class RegobsAuthService { return this.loggedInUser$.pipe( take(1), switchMap((loggedInUser) => - loggedInUser.isLoggedIn ? this.accountApi.AccountGetMyPageData() : of(undefined) + loggedInUser.isLoggedIn ? this.accountApi.accountGetMyPageData() : of(undefined) ) ); }), @@ -186,12 +185,12 @@ export class RegobsAuthService { private async checkAndSetNickIfNickIsNull(): Promise { try { - const user = await lastValueFrom(this.accountService.AccountGetObserver()); + const user = await lastValueFrom(this.accountService.accountGetObserver()); if (user && user.Nick != null && user.Nick != '') { return user; } const nick = await this.showSetNickDialog(); - await lastValueFrom(this.accountService.AccountUpdateObserver({ Nick: nick })); + await lastValueFrom(this.accountService.accountUpdateObserver({ Nick: nick })); user.Nick = nick; return user; } catch (err) { diff --git a/src/app/modules/common-registration/models/attachment-upload-edit.interface.ts b/src/app/modules/common-registration/models/attachment-upload-edit.interface.ts index ff6812883..cb767d80e 100644 --- a/src/app/modules/common-registration/models/attachment-upload-edit.interface.ts +++ b/src/app/modules/common-registration/models/attachment-upload-edit.interface.ts @@ -1,5 +1,5 @@ import { RemoteOrLocalAttachmentEditModel } from 'src/app/core/services/draft/draft-model'; -import { AttachmentEditModel } from 'src/app/modules/common-regobs-api/models'; +import { type AttachmentEditModel } from 'src/app/modules/common-regobs-api'; export interface AttachmentUploadEditModel extends AttachmentEditModel { id: string; diff --git a/src/app/modules/common-registration/models/water-level-measurement-upload-model.ts b/src/app/modules/common-registration/models/water-level-measurement-upload-model.ts index 3b58f5948..73bc6e031 100644 --- a/src/app/modules/common-registration/models/water-level-measurement-upload-model.ts +++ b/src/app/modules/common-registration/models/water-level-measurement-upload-model.ts @@ -1,4 +1,4 @@ -import { WaterLevelMeasurementEditModel } from 'src/app/modules/common-regobs-api/models'; +import { WaterLevelMeasurementEditModel } from 'src/app/modules/common-regobs-api'; export interface WaterLevelMeasurementUploadModel extends WaterLevelMeasurementEditModel { /** diff --git a/src/app/modules/common-registration/services/help-text/help-text.service.ts b/src/app/modules/common-registration/services/help-text/help-text.service.ts index e21e589e1..c7e59be4d 100644 --- a/src/app/modules/common-registration/services/help-text/help-text.service.ts +++ b/src/app/modules/common-registration/services/help-text/help-text.service.ts @@ -1,6 +1,5 @@ import { Injectable, inject } from '@angular/core'; -import { HelptextDto } from 'src/app/modules/common-regobs-api/models'; -import { HelptextService as HelpTextApiService } from 'src/app/modules/common-regobs-api/services'; +import { HelptextService as HelpTextApiService, type HelptextDto } from 'src/app/modules/common-regobs-api'; import { AppMode, LangKey, GeoHazard } from 'src/app/modules/common-core/models'; import { HttpClient } from '@angular/common/http'; import { catchError, map } from 'rxjs/operators'; @@ -30,7 +29,7 @@ export class HelpTextService extends ApiSyncOfflineBaseService { } protected getUpdatedData(_: AppMode, langKey: LangKey): Observable { - return this.helpTextApiService.HelptextGet(langKey); + return this.helpTextApiService.helptextGet(langKey); } protected getFallbackData(_: AppMode, langKey: LangKey): Observable { @@ -43,7 +42,7 @@ export class HelpTextService extends ApiSyncOfflineBaseService { ); } - public getHelpTextObservable(geoHazard: GeoHazard, registrationTid: number): Observable { + public getHelpTextObservable(geoHazard: GeoHazard, registrationTid: number): Observable { return this.data$.pipe( map((helptexts: HelptextDto[]) => helptexts.find((data) => data.GeoHazardTID === geoHazard && data.RegistrationTID === registrationTid) diff --git a/src/app/modules/common-registration/services/kdv/kdv.service.ts b/src/app/modules/common-registration/services/kdv/kdv.service.ts index 360b945ba..0b8857a28 100644 --- a/src/app/modules/common-registration/services/kdv/kdv.service.ts +++ b/src/app/modules/common-registration/services/kdv/kdv.service.ts @@ -3,8 +3,7 @@ import { AppMode, LangKey } from 'src/app/modules/common-core/models'; import { getLangKeyString } from 'src/app/modules/common-core/helpers'; import { of, Observable } from 'rxjs'; import { map, catchError } from 'rxjs/operators'; -import { KdvElementsResponseDto, KdvElement } from 'src/app/modules/common-regobs-api/models'; -import { KdvElementsService } from 'src/app/modules/common-regobs-api/services'; +import { KdvElementsService, type KdvElementsResponseDto, type KdvElement } from 'src/app/modules/common-regobs-api'; import { HttpClient } from '@angular/common/http'; import { KdvKey } from '../../models/kdv-key.type'; import { KdvViewRepositoryKey } from '../../models/view-repository-key.type'; @@ -50,7 +49,7 @@ export class KdvService extends ApiSyncOfflineBaseService { - return this.kdvElementsService.KdvElementsGetKdvs({ langkey: langKey }); + return this.kdvElementsService.kdvElementsGetKdvs(langKey); } protected getOfflineDatabaseKey(appMode: AppMode, langKey: LangKey): string { diff --git a/src/app/modules/common-regobs-api/.gitignore b/src/app/modules/common-regobs-api/.gitignore new file mode 100644 index 000000000..149b57654 --- /dev/null +++ b/src/app/modules/common-regobs-api/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/src/app/modules/common-regobs-api/.openapi-generator-ignore b/src/app/modules/common-regobs-api/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/src/app/modules/common-regobs-api/.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/src/app/modules/common-regobs-api/.openapi-generator/FILES b/src/app/modules/common-regobs-api/.openapi-generator/FILES new file mode 100644 index 000000000..ed3e3c365 --- /dev/null +++ b/src/app/modules/common-regobs-api/.openapi-generator/FILES @@ -0,0 +1,121 @@ +.gitignore +README.md +api.base.service.ts +api.module.ts +api/account.service.ts +api/api.ts +api/attachment.service.ts +api/geo-code.service.ts +api/helptext.service.ts +api/kdv-elements.service.ts +api/location.service.ts +api/registration.service.ts +api/search.service.ts +api/trip.service.ts +configuration.ts +encoder.ts +git_push.sh +index.ts +model/areas-dto-forecast-regions.ts +model/areas-dto.ts +model/at-a-glance-view-model.ts +model/attachment-edit-model.ts +model/attachment-view-model-url-formats.ts +model/attachment-view-model.ts +model/avalanche-activity-obs-view-model.ts +model/avalanche-activity-obs2-edit-model.ts +model/avalanche-activity-obs2-view-model.ts +model/avalanche-danger-obs-view-model.ts +model/avalanche-eval-problem-view-model.ts +model/avalanche-eval-problem2-edit-model.ts +model/avalanche-eval-problem2-view-model.ts +model/avalanche-evaluation-view-model.ts +model/avalanche-evaluation2-view-model.ts +model/avalanche-evaluation3-edit-model.ts +model/avalanche-evaluation3-view-model.ts +model/avalanche-obs-edit-model.ts +model/avalanche-obs-view-model.ts +model/compression-test-edit-model.ts +model/compression-test-view-model.ts +model/county-dto.ts +model/create-trip-dto.ts +model/damage-obs-edit-model.ts +model/damage-obs-view-model.ts +model/danger-obs-edit-model.ts +model/danger-obs-view-model.ts +model/finish-trip-dto.ts +model/forecast-region-dto.ts +model/forecast-region-sub-region-dto.ts +model/general-observation-edit-model.ts +model/general-observation-view-model.ts +model/geo-hazard-types.ts +model/helptext-dto.ts +model/ice-cover-edit-model.ts +model/ice-cover-view-model.ts +model/ice-thickness-edit-model.ts +model/ice-thickness-layer-edit-model.ts +model/ice-thickness-layer-view-model.ts +model/ice-thickness-view-model.ts +model/incident-edit-model.ts +model/incident-view-model.ts +model/landslide-edit-model.ts +model/landslide-view-model.ts +model/lang-key.ts +model/lat-lng.ts +model/models.ts +model/my-page-data.ts +model/obs-location-edit-model.ts +model/obs-location-view-model.ts +model/observer-competence-dto.ts +model/observer-competence-level-dto.ts +model/observer-group-dto.ts +model/observer-patch-request-dto.ts +model/observer-response-dto.ts +model/observer-view-model.ts +model/operator.ts +model/position-dto.ts +model/problem-details.ts +model/property-filter.ts +model/reg-obs-generic-value.ts +model/registration-edit-model.ts +model/registration-type-criteria-dto.ts +model/registration-type-dto.ts +model/registration-type-sub-type-dto.ts +model/registration-view-model.ts +model/registrations-with-attachments.ts +model/search-count-response-dto.ts +model/search-criteria-excl-user-request-dto.ts +model/search-criteria-request-dto.ts +model/search-side-bar-dto-observer-competence-levels.ts +model/search-side-bar-dto-registration-types.ts +model/search-side-bar-dto.ts +model/search-side-bar-request-dto.ts +model/snow-cover-obs-view-model.ts +model/snow-density-layer-model.ts +model/snow-density-model.ts +model/snow-profile-edit-model.ts +model/snow-profile-view-model.ts +model/snow-surface-edit-model.ts +model/snow-surface-view-model.ts +model/snow-temp-model.ts +model/snow-temp-obs-model.ts +model/strat-profile-edit-model.ts +model/strat-profile-layer-edit-model.ts +model/strat-profile-layer-view-model.ts +model/strat-profile-view-model.ts +model/summary.ts +model/url-edit-model.ts +model/url-view-model.ts +model/value-kind.ts +model/water-level-measurement-edit-model.ts +model/water-level-measurement-view-model.ts +model/water-level-view-model.ts +model/waterlevel2-edit-model.ts +model/waterlevel2-view-model.ts +model/weather-edit-model.ts +model/weather-view-model.ts +model/within-extent-criteria-dto.ts +model/within-radius-criteria-dto.ts +param.ts +provide-api.ts +variables.ts diff --git a/src/app/modules/common-regobs-api/.openapi-generator/VERSION b/src/app/modules/common-regobs-api/.openapi-generator/VERSION new file mode 100644 index 000000000..6328c5424 --- /dev/null +++ b/src/app/modules/common-regobs-api/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.17.0 diff --git a/src/app/modules/common-regobs-api/README.md b/src/app/modules/common-regobs-api/README.md new file mode 100644 index 000000000..3c711d1dc --- /dev/null +++ b/src/app/modules/common-regobs-api/README.md @@ -0,0 +1,185 @@ +# @ + + ## Introduction RegObs is a tool for collecting observations and events
related to natural hazards. It is currently used by the
Norwegian flood, landslide and avalanche warning service in
Norway, but the data is openly available for anyone through this API.
Regobs has been developed by the Norwegian Water resources and
Energy Directorate (NVE), in collaboration with the Norwegian
Meteorological Institute (MET) and the Norwegian Public Roads
Administration (Statens vegvesen).
You can check out our representation of the data at [regobs.no](https://regobs.no).
For more info about the API, please visit the [RegObs page](https://api.nve.no/doc/regobs/) at api.nve.no.
## API lifetime Regobs API is constantly developed, and once in the future we will probably release a new version of the API with breaking changes.
The old version of the API will then be shut down 6 months after the new version is released.
**You should already monitor the \'[Sunset](https://www.rfc-editor.org/rfc/rfc8594.html)\' header in the API response.**
It will contain a shutdown date for current API when the new version is released.
## Authentication Some endpoints require a client ID used to fetch an authentication token.
This is primarily endpoints submitting data or fetching private data.
You can get a client ID by sending an email to
[regobs@nve.no](mailto:regobs@nve.no?subject=RegObs%20Client%20ID).
You must then fetch a token as outlined in
[NVE Account Authentication](https://api.nve.no/doc/nve-account-authentication/).
This is not necessary for simpler API queries, such as searching for observations.
To get a token with the swagger ui, log in by clicking on the green authorize button.
The `regObs_apptoken` header is a deprecated
form of client identification and is not necessary.
## Client library To simplify interaction with the API we are working on a
Python client library. Currently it supports submitting data
as well as searching. It is available at
[https://pypi.org/project/regobslib/](https://pypi.org/project/regobslib/).
## Data Types In order to find information on Regobs data types use the
GET/KDVElements method. KDVElements are used for describing an observation. If we look up GeoHazard in the response we get:
``` GeoHazardKDV: [ { Id: 0, Name: Not specified, Description: null }, { Id: 10, Name: Snow, Description: Avalanche }, { Id: 20, Name: Soil, Description: Earth slide }, ] ``` The GeoHazardTID of 10 corresponds to snow. The GeoHazardTID of 20 corresponds to soil and so on. Note that the naming of data types in the API ends with TID while the GET/KDVElements service returns data types with KDV. Otherwise the naming should be identical. ## Example Get the last 10 observations using python: ```python import requests r = requests.post(\'https://api.regobs.no/v6/Search\', data={\'NumberOfRecords\': 10}, headers={\'Content-Type\': \'application/json\'} ) data = r.json() print(len(data)) # 10 ``` + +The version of the OpenAPI document: v6 + +## Building + +To install the required dependencies and to build the typescript sources run: + +```console +npm install +npm run build +``` + +## Publishing + +First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!) + +## Consuming + +Navigate to the folder of your consuming project and run one of next commands. + +_published:_ + +```console +npm install @ --save +``` + +_without publishing (not recommended):_ + +```console +npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save +``` + +_It's important to take the tgz file, otherwise you'll get trouble with links on windows_ + +_using `npm link`:_ + +In PATH_TO_GENERATED_PACKAGE/dist: + +```console +npm link +``` + +In your project: + +```console +npm link +``` + +__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages. +Please refer to this issue for a solution / workaround. +Published packages are not effected by this issue. + +### General usage + +In your Angular project: + +```typescript + +import { ApplicationConfig } from '@angular/core'; +import { provideHttpClient } from '@angular/common/http'; +import { provideApi } from ''; + +export const appConfig: ApplicationConfig = { + providers: [ + // ... + provideHttpClient(), + provideApi() + ], +}; +``` + +**NOTE** +If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: +```typescript +import { ApiModule } from ''; +``` + +If different from the generated base path, during app bootstrap, you can provide the base path to your service. + +```typescript +import { ApplicationConfig } from '@angular/core'; +import { provideHttpClient } from '@angular/common/http'; +import { provideApi } from ''; + +export const appConfig: ApplicationConfig = { + providers: [ + // ... + provideHttpClient(), + provideApi('http://localhost:9999') + ], +}; +``` + +```typescript +// with a custom configuration +import { ApplicationConfig } from '@angular/core'; +import { provideHttpClient } from '@angular/common/http'; +import { provideApi } from ''; + +export const appConfig: ApplicationConfig = { + providers: [ + // ... + provideHttpClient(), + provideApi({ + withCredentials: true, + username: 'user', + password: 'password' + }) + ], +}; +``` + +```typescript +// with factory building a custom configuration +import { ApplicationConfig } from '@angular/core'; +import { provideHttpClient } from '@angular/common/http'; +import { provideApi, Configuration } from ''; + +export const appConfig: ApplicationConfig = { + providers: [ + // ... + provideHttpClient(), + { + provide: Configuration, + useFactory: (authService: AuthService) => new Configuration({ + basePath: 'http://localhost:9999', + withCredentials: true, + username: authService.getUsername(), + password: authService.getPassword(), + }), + deps: [AuthService], + multi: false + } + ], +}; +``` + +### Using multiple OpenAPI files / APIs + +In order to use multiple APIs generated from different OpenAPI files, +you can create an alias name when importing the modules +in order to avoid naming conflicts: + +```typescript +import { provideApi as provideUserApi } from 'my-user-api-path'; +import { provideApi as provideAdminApi } from 'my-admin-api-path'; +import { HttpClientModule } from '@angular/common/http'; +import { environment } from '../environments/environment'; + +export const appConfig: ApplicationConfig = { + providers: [ + // ... + provideHttpClient(), + provideUserApi(environment.basePath), + provideAdminApi(environment.basePath), + ], +}; +``` + +### Customizing path parameter encoding + +Without further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple' +and Dates for format 'date-time' are encoded correctly. + +Other styles (e.g. "matrix") are not that easy to encode +and thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]). + +To implement your own parameter encoding (or call another library), +pass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object +(see [General Usage](#general-usage) above). + +Example value for use in your Configuration-Provider: + +```typescript +new Configuration({ + encodeParam: (param: Param) => myFancyParamEncoder(param), +}) +``` + +[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations +[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values +[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts new file mode 100644 index 000000000..fb6873e41 --- /dev/null +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -0,0 +1,83 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { CustomHttpParameterCodec } from './encoder'; +import { Configuration } from './configuration'; + +export class BaseService { + protected basePath = 'https://test-api.regobs.no/v6'; + public defaultHeaders = new HttpHeaders(); + public configuration: Configuration; + public encoder: HttpParameterCodec; + + constructor(basePath?: string|string[], configuration?: Configuration) { + this.configuration = configuration || new Configuration(); + if (typeof this.configuration.basePath !== 'string') { + const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; + if (firstBasePath != undefined) { + basePath = firstBasePath; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + protected canConsumeForm(consumes: string[]): boolean { + return consumes.indexOf('multipart/form-data') !== -1; + } + + protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams { + // If the value is an object (but not a Date), recursively add its keys. + if (typeof value === 'object' && !(value instanceof Date)) { + return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep); + } + return this.addToHttpParamsRecursive(httpParams, value, key); + } + + protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams { + if (value === null || value === undefined) { + return httpParams; + } + if (typeof value === 'object') { + // If JSON format is preferred, key must be provided. + if (key != null) { + return isDeep + ? Object.keys(value as Record).reduce( + (hp, k) => hp.append(`${key}[${k}]`, value[k]), + httpParams, + ) + : httpParams.append(key, JSON.stringify(value)); + } + // Otherwise, if it's an array, add each element. + if (Array.isArray(value)) { + value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, value.toISOString()); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach(k => { + const paramKey = key ? `${key}.${k}` : k; + httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey); + }); + } + return httpParams; + } else if (key != null) { + return httpParams.append(key, value); + } + throw Error("key may not be null if value is not object or array"); + } +} diff --git a/src/app/modules/common-regobs-api/api.module.ts b/src/app/modules/common-regobs-api/api.module.ts new file mode 100644 index 000000000..58d341fbd --- /dev/null +++ b/src/app/modules/common-regobs-api/api.module.ts @@ -0,0 +1,30 @@ +import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; +import { Configuration } from './configuration'; +import { HttpClient } from '@angular/common/http'; + + +@NgModule({ + imports: [], + declarations: [], + exports: [], + providers: [] +}) +export class ApiModule { + public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { + return { + ngModule: ApiModule, + providers: [ { provide: Configuration, useFactory: configurationFactory } ] + }; + } + + constructor( @Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient) { + if (parentModule) { + throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); + } + if (!http) { + throw new Error('You need to import the HttpClientModule in your AppModule! \n' + + 'See also https://github.com/angular/angular/issues/20575'); + } + } +} diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts new file mode 100644 index 000000000..c98f14805 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -0,0 +1,297 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LangKey } from '../model/lang-key'; +// @ts-ignore +import { MyPageData } from '../model/my-page-data'; +// @ts-ignore +import { ObserverGroupDto } from '../model/observer-group-dto'; +// @ts-ignore +import { ObserverPatchRequestDto } from '../model/observer-patch-request-dto'; +// @ts-ignore +import { ObserverResponseDto } from '../model/observer-response-dto'; +// @ts-ignore +import { ProblemDetails } from '../model/problem-details'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AccountService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * @endpoint get /Account/Mypage + * @param langKey + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountGetMyPageData(langKey?: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public accountGetMyPageData(langKey?: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetMyPageData(langKey?: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetMyPageData(langKey?: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Account/Mypage`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * @endpoint get /Account/GetObserver + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountGetObserver(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public accountGetObserver(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetObserver(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetObserver(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Account/GetObserver`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * @endpoint get /Account/Groups + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountGetObserverGroups(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetObserverGroups(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public accountGetObserverGroups(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public accountGetObserverGroups(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Account/Groups`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Set nickname for an observer + * @endpoint put /Account/UpdateObserver + * @param observerPatchRequestDto + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Account/UpdateObserver`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: observerPatchRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/api.ts b/src/app/modules/common-regobs-api/api/api.ts new file mode 100644 index 000000000..9fa3ffbff --- /dev/null +++ b/src/app/modules/common-regobs-api/api/api.ts @@ -0,0 +1,19 @@ +export * from './account.service'; +import { AccountService } from './account.service'; +export * from './attachment.service'; +import { AttachmentService } from './attachment.service'; +export * from './geo-code.service'; +import { GeoCodeService } from './geo-code.service'; +export * from './helptext.service'; +import { HelptextService } from './helptext.service'; +export * from './kdv-elements.service'; +import { KdvElementsService } from './kdv-elements.service'; +export * from './location.service'; +import { LocationService } from './location.service'; +export * from './registration.service'; +import { RegistrationService } from './registration.service'; +export * from './search.service'; +import { SearchService } from './search.service'; +export * from './trip.service'; +import { TripService } from './trip.service'; +export const APIS = [AccountService, AttachmentService, GeoCodeService, HelptextService, KdvElementsService, LocationService, RegistrationService, SearchService, TripService]; diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts new file mode 100644 index 000000000..467525af7 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -0,0 +1,183 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class AttachmentService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Get Attachment file by id + * @endpoint get /Attachment/{format}/{id} + * @param id Attachment id + * @param format Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public attachmentGet(id: number, format: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public attachmentGet(id: number, format: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentGet(id: number, format: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentGet(id: number, format: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling attachmentGet.'); + } + if (format === null || format === undefined) { + throw new Error('Required parameter format was null or undefined when calling attachmentGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Attachment/${this.configuration.encodeParam({name: "format", value: format, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Upload an image to a registration + * @endpoint post /Attachment/Upload + * @param file + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public attachmentUpload(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public attachmentUpload(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentUpload(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentUpload(file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = [ + 'multipart/form-data' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + // use FormData to transmit files using content-type "multipart/form-data" + // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data + localVarUseForm = canConsumeForm; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (file !== undefined) { + localVarFormParams = localVarFormParams.append('file', file) as any || localVarFormParams; + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Attachment/Upload`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts new file mode 100644 index 000000000..3b85e321d --- /dev/null +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -0,0 +1,177 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LangKey } from '../model/lang-key'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class GeoCodeService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Get detailed geolocation info. + * @endpoint get /GeoCode/LocationInfo + * @param latitude Latitude + * @param longitude Longitude + * @param geoHazardId Geohazard ID + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + latitude, 'latitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + longitude, 'longitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + geoHazardId, 'geoHazardId'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/GeoCode/LocationInfo`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Get preformatted geolocation summary. + * @endpoint get /GeoCode/LocationSummary + * @param latitude Latitude + * @param longitude Longitude + * @param langKey Language key + * @param geoHazardId Geohazard ID + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + latitude, 'latitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + longitude, 'longitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + geoHazardId, 'geoHazardId'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/GeoCode/LocationSummary`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts new file mode 100644 index 000000000..a89464ae0 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -0,0 +1,103 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { HelptextDto } from '../model/helptext-dto'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class HelptextService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Get a list of helptext objects. + * @endpoint get /Helptext + * @param langKey Specify 1 for Norwegian or 2 for English + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public helptextGet(langKey?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public helptextGet(langKey?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public helptextGet(langKey?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public helptextGet(langKey?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Helptext`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts new file mode 100644 index 000000000..124ad5af6 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -0,0 +1,106 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LangKey } from '../model/lang-key'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class KdvElementsService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). + * @endpoint get /KdvElements + * @param langkey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian + * @param isActive False returns data types that are no longer in use + * @param sortOrder False returns data types sorted by id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langkey, 'langkey'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + isActive, 'isActive'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/KdvElements`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts new file mode 100644 index 000000000..cc6e12ed5 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -0,0 +1,182 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LangKey } from '../model/lang-key'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LocationService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Gets a specific location by ID. + * @endpoint get /Location/{locationId} + * @param locationId The ID of the location. + * @param langKey The language key. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationGet(locationId: number, langKey?: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public locationGet(locationId: number, langKey?: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationGet(locationId: number, langKey?: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationGet(locationId: number, langKey?: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (locationId === null || locationId === undefined) { + throw new Error('Required parameter locationId was null or undefined when calling locationGet.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Location/${this.configuration.encodeParam({name: "locationId", value: locationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. + * @endpoint get /Location/WithinRadius + * @param latitude + * @param longitude + * @param radius + * @param geoHazardTypeIds + * @param returnCount + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + latitude, 'latitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + longitude, 'longitude'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + radius, 'radius'); + if (geoHazardTypeIds) { + geoHazardTypeIds.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'geoHazardTypeIds'); + }) + } + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + returnCount, 'returnCount'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Location/WithinRadius`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts new file mode 100644 index 000000000..6158a2d5b --- /dev/null +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -0,0 +1,563 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { LangKey } from '../model/lang-key'; +// @ts-ignore +import { RegistrationEditModel } from '../model/registration-edit-model'; +// @ts-ignore +import { RegistrationViewModel } from '../model/registration-view-model'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class RegistrationService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Delete registration + * @endpoint delete /Registration/{id} + * @param id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationDelete(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationDelete(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationDelete(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationDelete(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling registrationDelete.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('delete', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Get registration by regId. + * @endpoint get /Registration/{regId}/{langKey} + * @param regId Registration Id + * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationGet(regId: number, langKey: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGet(regId: number, langKey: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(regId: number, langKey: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(regId: number, langKey: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (regId === null || regId === undefined) { + throw new Error('Required parameter regId was null or undefined when calling registrationGet.'); + } + if (langKey === null || langKey === undefined) { + throw new Error('Required parameter langKey was null or undefined when calling registrationGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/${this.configuration.encodeParam({name: "regId", value: regId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "langKey", value: langKey, in: "path", style: "simple", explode: false, dataType: "LangKey", dataFormat: undefined})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Get a registration in CAAML format + * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. + * @endpoint get /Registration/Caaml/{regId} + * @param regId Registration Id + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationGetCaaml(regId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGetCaaml(regId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(regId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(regId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + if (regId === null || regId === undefined) { + throw new Error('Required parameter regId was null or undefined when calling registrationGetCaaml.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/Caaml/${this.configuration.encodeParam({name: "regId", value: regId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Create a new registration. The purpose is to send in one or more forms. + * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } + * @endpoint post /Registration + * @param externalReferenceId Unique identifier for registration, in GUID format. This parameter will be required in next version of the API + * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. + * @param registrationEditModel ObsLocation, GeoHazardTID and DtObsTime are mandatory. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalReferenceId, 'externalReferenceId'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: registrationEditModel, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. + * @endpoint put /Registration/{id} + * @param id Set to regId if update existing registration, else leave blank + * @param externalReferenceId External reference id, must be unique for application and in GUID format + * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. + * @param ignoreVersionCheck Set this to true if you want to replace the last saved version of this registration even if your copy is outdated + * @param registrationEditModel Registration data + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling registrationInsertOrUpdate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalReferenceId, 'externalReferenceId'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + ignoreVersionCheck, 'ignoreVersionCheck'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: registrationEditModel, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Generate a preview figure for a snow profile registration. + * @endpoint post /Registration/PlotPreviewPng + * @param format + * @param height + * @param width + * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. + * @param registrationEditModel Snow profile registration + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + format, 'format'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + height, 'height'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + width, 'width'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + langKey, 'langKey'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/PlotPreviewPng`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: registrationEditModel, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Validate registration data. + * @endpoint post /Registration/Validate/{id} + * @param id RegId if existing registration else null if new + * @param externalReferenceId External reference id, must be unique for application and in GUID format + * @param registrationEditModel Registration data + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling registrationValidate.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + externalReferenceId, 'externalReferenceId'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Registration/Validate/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: registrationEditModel, + params: localVarQueryParameters, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts new file mode 100644 index 000000000..aab27d8f1 --- /dev/null +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -0,0 +1,772 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { AtAGlanceViewModel } from '../model/at-a-glance-view-model'; +// @ts-ignore +import { ProblemDetails } from '../model/problem-details'; +// @ts-ignore +import { RegistrationViewModel } from '../model/registration-view-model'; +// @ts-ignore +import { RegistrationsWithAttachments } from '../model/registrations-with-attachments'; +// @ts-ignore +import { SearchCountResponseDto } from '../model/search-count-response-dto'; +// @ts-ignore +import { SearchCriteriaExclUserRequestDto } from '../model/search-criteria-excl-user-request-dto'; +// @ts-ignore +import { SearchCriteriaRequestDto } from '../model/search-criteria-request-dto'; +// @ts-ignore +import { SearchSideBarDto } from '../model/search-side-bar-dto'; +// @ts-ignore +import { SearchSideBarRequestDto } from '../model/search-side-bar-request-dto'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class SearchService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info + * @endpoint post /Search/AtAGlance + * @param searchCriteriaRequestDto Search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/AtAGlance`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns search result count for registrations with attachments + * @endpoint post /Search/Attachments/Count + * @param searchCriteriaRequestDto Search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/Attachments/Count`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns search result count + * @endpoint post /Search/Count + * @param searchCriteriaRequestDto Search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/Count`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns number of registrations that were registered by the logged in user + * @endpoint post /Search/MyRegistrationsCount + * @param searchCriteriaExclUserRequestDto You may add additional filters + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/MyRegistrationsCount`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaExclUserRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. + * @endpoint post /Search/DeletedRegistrations + * @param searchCriteriaRequestDto Search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/DeletedRegistrations`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * @endpoint get /Search/SearchCriteria/{geoHazards}/{langKey} + * @param geoHazards A comma separated list of geo hazard ID\'s. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. + * @param langKey NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetSearchCriteria(geoHazards: string, langKey: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (geoHazards === null || geoHazards === undefined) { + throw new Error('Required parameter geoHazards was null or undefined when calling searchGetSearchCriteria.'); + } + if (langKey === null || langKey === undefined) { + throw new Error('Required parameter langKey was null or undefined when calling searchGetSearchCriteria.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/SearchCriteria/${this.configuration.encodeParam({name: "geoHazards", value: geoHazards, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/${this.configuration.encodeParam({name: "langKey", value: langKey, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * @endpoint post /Search + * @param searchCriteriaRequestDto Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * @endpoint post /Search/SearchCriteria + * @param searchSideBarRequestDto A request for relevant search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + * @deprecated + */ + public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/SearchCriteria`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchSideBarRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Search for images only + * @endpoint post /Search/Attachments + * @param searchCriteriaRequestDto Search criteria + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/Attachments`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * @endpoint post /Search/MyRegistrations + * @param searchCriteriaExclUserRequestDto Use this to filter out registrations and change ordering of them + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Search/MyRegistrations`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request>('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: searchCriteriaExclUserRequestDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts new file mode 100644 index 000000000..f36d0d8fe --- /dev/null +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -0,0 +1,232 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { CreateTripDto } from '../model/create-trip-dto'; +// @ts-ignore +import { FinishTripDto } from '../model/finish-trip-dto'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TripService extends BaseService { + + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); + } + + /** + * @endpoint post /Trip + * @param createTripDto + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripCreateTrip(createTripDto?: CreateTripDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Trip`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: createTripDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * Fetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group. + * @endpoint get /Trip/ObserverTrips + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripGetObserverTrips(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public tripGetObserverTrips(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripGetObserverTrips(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripGetObserverTrips(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Trip/ObserverTrips`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('get', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + + /** + * @endpoint put /Trip + * @param finishTripDto + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripUpdateTrip(finishTripDto?: FinishTripDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarHeaders = this.defaultHeaders; + + // authentication (ApiKey) required + localVarHeaders = this.configuration.addCredentialToHeaders('ApiKey', 'regObs_apptoken', localVarHeaders); + + // authentication (Bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); + + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); + + const localVarTransferCache: boolean = options?.transferCache ?? true; + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/json', + 'text/json', + 'application/*+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/Trip`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: finishTripDto, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); + } + +} diff --git a/src/app/modules/common-regobs-api/base-service.ts b/src/app/modules/common-regobs-api/base-service.ts deleted file mode 100644 index 56914f4da..000000000 --- a/src/app/modules/common-regobs-api/base-service.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -import { HttpClient, HttpParameterCodec, HttpParams } from '@angular/common/http'; -import { RegobsApiConfiguration } from './regobs-api-configuration'; - -/** - * Custom parameter codec to correctly handle the plus sign in parameter - * values. See https://github.com/angular/angular/issues/18261 - */ -class ParameterCodec implements HttpParameterCodec { - encodeKey(key: string): string { - return encodeURIComponent(key); - } - - encodeValue(value: string): string { - return encodeURIComponent(value); - } - - decodeKey(key: string): string { - return decodeURIComponent(key); - } - - decodeValue(value: string): string { - return decodeURIComponent(value); - } -} -const PARAMETER_CODEC = new ParameterCodec(); - -/** - * Base class for API services - */ -export class BaseService { - constructor( - protected config: RegobsApiConfiguration, - protected http: HttpClient - ) { - } - - private _rootUrl: string = ''; - - /** - * Returns the root url for API operations. If not set directly in this - * service, will fallback to ApiConfiguration.rootUrl. - */ - get rootUrl(): string { - return this._rootUrl || this.config.rootUrl; - } - - /** - * Sets the root URL for API operations in this service. - */ - set rootUrl(rootUrl: string) { - this._rootUrl = rootUrl; - } - - /** - * Creates a new `HttpParams` with the correct codec - */ - protected newParams(): HttpParams { - return new HttpParams({ - encoder: PARAMETER_CODEC - }); - } -} diff --git a/src/app/modules/common-regobs-api/configuration.ts b/src/app/modules/common-regobs-api/configuration.ts new file mode 100644 index 000000000..e4ee35071 --- /dev/null +++ b/src/app/modules/common-regobs-api/configuration.ts @@ -0,0 +1,204 @@ +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; +import { Param } from './param'; + +export interface ConfigurationParameters { + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Override the default method for encoding path parameters in various + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam?: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials?: {[ key: string ]: string | (() => string | undefined)}; +} + +export class Configuration { + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Encoding of various path parameter + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials: {[ key: string ]: string | (() => string | undefined)}; + +constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) { + if (apiKeys) { + this.apiKeys = apiKeys; + } + if (username !== undefined) { + this.username = username; + } + if (password !== undefined) { + this.password = password; + } + if (accessToken !== undefined) { + this.accessToken = accessToken; + } + if (basePath !== undefined) { + this.basePath = basePath; + } + if (withCredentials !== undefined) { + this.withCredentials = withCredentials; + } + if (encoder) { + this.encoder = encoder; + } + this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param)); + this.credentials = credentials ?? {}; + + // init default Bearer credential + if (!this.credentials['Bearer']) { + this.credentials['Bearer'] = () => { + return typeof this.accessToken === 'function' + ? this.accessToken() + : this.accessToken; + }; + } + + // init default ApiKey credential + if (!this.credentials['ApiKey']) { + this.credentials['ApiKey'] = () => { + if (this.apiKeys === null || this.apiKeys === undefined) { + return undefined; + } else { + return this.apiKeys['ApiKey'] || this.apiKeys['regObs_apptoken']; + } + }; + } + } + + /** + * Select the correct content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param contentTypes - the array of content types that are available for selection + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderContentType (contentTypes: string[]): string | undefined { + if (contentTypes.length === 0) { + return undefined; + } + + const type = contentTypes.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return contentTypes[0]; + } + return type; + } + + /** + * Select the correct accept content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param accepts - the array of content types that are available for selection. + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderAccept(accepts: string[]): string | undefined { + if (accepts.length === 0) { + return undefined; + } + + const type = accepts.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return accepts[0]; + } + return type; + } + + /** + * 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. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } + + public lookupCredential(key: string): string | undefined { + const value = this.credentials[key]; + return typeof value === 'function' + ? value() + : value; + } + + public addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders { + const value = this.lookupCredential(credentialKey); + return value + ? headers.set(headerName, (prefix ?? '') + value) + : headers; + } + + public addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams { + const value = this.lookupCredential(credentialKey); + return value + ? query.set(paramName, value) + : query; + } + + private defaultEncodeParam(param: Param): string { + // This implementation exists as fallback for missing configuration + // and for backwards compatibility to older typescript-angular generator versions. + // It only works for the 'simple' parameter style. + // Date-handling only works for the 'date-time' format. + // All other styles and Date-formats are probably handled incorrectly. + // + // But: if that's all you need (i.e.: the most common use-case): no need for customization! + + const value = param.dataFormat === 'date-time' && param.value instanceof Date + ? (param.value as Date).toISOString() + : param.value; + + return encodeURIComponent(String(value)); + } +} diff --git a/src/app/modules/common-regobs-api/encoder.ts b/src/app/modules/common-regobs-api/encoder.ts new file mode 100644 index 000000000..138c4d5cf --- /dev/null +++ b/src/app/modules/common-regobs-api/encoder.ts @@ -0,0 +1,20 @@ +import { HttpParameterCodec } from '@angular/common/http'; + +/** + * Custom HttpParameterCodec + * Workaround for https://github.com/angular/angular/issues/18261 + */ +export class CustomHttpParameterCodec implements HttpParameterCodec { + encodeKey(k: string): string { + return encodeURIComponent(k); + } + encodeValue(v: string): string { + return encodeURIComponent(v); + } + decodeKey(k: string): string { + return decodeURIComponent(k); + } + decodeValue(v: string): string { + return decodeURIComponent(v); + } +} diff --git a/src/app/modules/common-regobs-api/git_push.sh b/src/app/modules/common-regobs-api/git_push.sh new file mode 100644 index 000000000..f53a75d4f --- /dev/null +++ b/src/app/modules/common-regobs-api/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/src/app/modules/common-regobs-api/index.ts b/src/app/modules/common-regobs-api/index.ts index 6bccc4853..02cb7d437 100644 --- a/src/app/modules/common-regobs-api/index.ts +++ b/src/app/modules/common-regobs-api/index.ts @@ -1,5 +1,7 @@ -export * from './services'; -export * from './models'; -export * from './regobs-api.module'; -export * from './regobs-api-with-config.module'; -export * from './regobs-api-configuration'; +export * from './api/api'; +export * from './model/models'; +export * from './variables'; +export * from './configuration'; +export * from './api.module'; +export * from './provide-api'; +export * from './param'; diff --git a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts new file mode 100644 index 000000000..b3c28c6ac --- /dev/null +++ b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ForecastRegionDto } from './forecast-region-dto'; + + +export interface AreasDtoForecastRegions { + NotSpecified?: Array; + Avalanche?: Array; + EarthFlow?: Array; + LandSlide?: Array; + RockFall?: Array; + IceFall?: Array; + Flooding?: Array; + Ice?: Array; + EventOnGlacier?: Array; + 'Jøkulhaup'?: Array; + Drought?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/model/areas-dto.ts b/src/app/modules/common-regobs-api/model/areas-dto.ts new file mode 100644 index 000000000..8c3b25868 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/areas-dto.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AreasDtoForecastRegions } from './areas-dto-forecast-regions'; +import { CountyDto } from './county-dto'; + + +export interface AreasDto { + CountryId?: number; + CountryName?: string | null; + CountryDescription?: string | null; + SortOrder?: number; + ForecastRegions?: AreasDtoForecastRegions | null; + Counties?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts new file mode 100644 index 000000000..01cf0975a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts @@ -0,0 +1,33 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AtAGlanceViewModel { + RegId?: number; + GeoHazardTID?: number | null; + DtObsTime?: string; + NickName?: string | null; + CompetenceLevelTID?: number | null; + Title?: string | null; + Latitude?: number; + Longitude?: number; + UtmNorth?: number; + UtmEast?: number; + FormNames?: Array | null; + /** + * Returns first attachement url from the observation or null + */ + FirstAttachmentUrl?: string | null; + /** + * Count of all attachments + */ + AttachmentsCount?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts new file mode 100644 index 000000000..3e6b31103 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts @@ -0,0 +1,48 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AttachmentEditModel { + /** + * Navn på fotograf. + */ + Photographer?: string | null; + /** + * Rettigheter til bilde. + */ + Copyright?: string | null; + /** + * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ + Aspect?: number | null; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier + */ + RegistrationTID?: number | null; + /** + * Kommentarfelt for bildet. F.eks for å beskrive det. + */ + Comment?: string | null; + AttachmentMimeType?: string | null; + /** + * Om bildet skal vises først i registreringen, eller ikke + */ + IsMainAttachment?: boolean | null; + AttachmentId?: number | null; + /** + * Last opp attachment på forhånd og sett AttachmentUploadId + */ + AttachmentUploadId?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts new file mode 100644 index 000000000..57bdb5e43 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * Urls in different formats + */ +export interface AttachmentViewModelUrlFormats { + Raw?: string; + Original?: string; + Thumbnail?: string; + Large?: string; + Medium?: string; +} + diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model.ts b/src/app/modules/common-regobs-api/model/attachment-view-model.ts new file mode 100644 index 000000000..f33e3a279 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/attachment-view-model.ts @@ -0,0 +1,62 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AttachmentViewModelUrlFormats } from './attachment-view-model-url-formats'; + + +export interface AttachmentViewModel { + /** + * Navn på fotograf. + */ + Photographer?: string | null; + /** + * Rettigheter til bilde. + */ + Copyright?: string | null; + /** + * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ + Aspect?: number | null; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier + */ + RegistrationTID?: number | null; + /** + * Kommentarfelt for bildet. F.eks for å beskrive det. + */ + Comment?: string | null; + AttachmentMimeType?: string | null; + /** + * Om bildet skal vises først i registreringen, eller ikke + */ + IsMainAttachment?: boolean | null; + AttachmentId?: number; + /** + * GeoHazard name + */ + GeoHazardName?: string | null; + /** + * Registration name + */ + RegistrationName?: string | null; + UrlFormats?: AttachmentViewModelUrlFormats | null; + /** + * Full original image url + */ + Url?: string | null; + /** + * If true, the attachment is an image generated from a snow profile plot + */ + IsSnowProfilePlot?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts new file mode 100644 index 000000000..bdcb697f3 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts @@ -0,0 +1,65 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheActivityObsViewModel { + /** + * Unik id på denne tabellen da flere er mulig pr RegID. + */ + AvalancheActivityObsID?: number; + /** + * Hvilken side av fjellene har skredene gått? Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ + Aspect?: number; + /** + * Meter over havet på løsneområdet. + */ + HeigthStartZone?: number; + /** + * Når gikk skredene? Her bruker vi feltet som en ca. tid og brukerene oppfordres til å anta best mulig. + */ + DtAvalancheTime?: string; + /** + * Hvor store er skredene?. The DestructiveSizeKD unique identifier + */ + DestructiveSizeTID?: number | null; + DestructiveSizeName?: string | null; + /** + * Hvor mange skred er gått? The EstimatedNumKD unique identifier + */ + EstimatedNumTID?: number | null; + EstimatedNumName?: string | null; + /** + * Typen skred som er gått. The AvalancheKD unique identifier + */ + AvalancheTID?: number | null; + AvalancheName?: string | null; + /** + * Hva utløste skredet? Det er ofte beskrevet som det svake laget i snødekket. The AvalancheTriggerKD unique identifier + */ + AvalancheTriggerTID?: number | null; + AvalancheTriggerName?: string | null; + /** + * Hva slags terrengtype var det i løsneområdet. The TerrainStartZoneKD unique identifier + */ + TerrainStartZoneTID?: number | null; + TerrainStartZoneName?: string | null; + /** + * Hvor går snøgrensa i området? + */ + SnowLine?: number | null; + SnowLineName?: string | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ + Comment?: string | null; + DtOffAvalancheTime?: string; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts new file mode 100644 index 000000000..9ee097f26 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheActivityObs2EditModel { + EstimatedNumTID?: number | null; + DtStart?: string | null; + DtEnd?: string | null; + ValidExposition?: string | null; + ExposedHeight1?: number | null; + ExposedHeight2?: number | null; + ExposedHeightComboTID?: number | null; + AvalancheExtTID?: number | null; + AvalCauseTID?: number | null; + AvalTriggerSimpleTID?: number | null; + DestructiveSizeTID?: number | null; + AvalPropagationTID?: number | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts new file mode 100644 index 000000000..a7c71fbb5 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts @@ -0,0 +1,34 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheActivityObs2ViewModel { + EstimatedNumTID?: number | null; + DtStart?: string | null; + DtEnd?: string | null; + ValidExposition?: string | null; + ExposedHeight1?: number | null; + ExposedHeight2?: number | null; + ExposedHeightComboTID?: number | null; + AvalancheExtTID?: number | null; + AvalCauseTID?: number | null; + AvalTriggerSimpleTID?: number | null; + DestructiveSizeTID?: number | null; + AvalPropagationTID?: number | null; + Comment?: string | null; + EstimatedNumName?: string | null; + ExposedHeightComboName?: string | null; + AvalancheExtName?: string | null; + AvalCauseName?: string | null; + AvalTriggerSimpleName?: string | null; + DestructiveSizeName?: string | null; + AvalPropagationName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts new file mode 100644 index 000000000..666a99525 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheDangerObsViewModel { + AvalancheDangerObsID?: number; + DangerSignTID?: number | null; + DangerSignName?: string | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts new file mode 100644 index 000000000..e7647ad9d --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts @@ -0,0 +1,32 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvalProblemViewModel { + AvalancheEvalProblemID?: number; + AvalProbabilityTID?: number | null; + AvalProbabilityName?: string | null; + AvalTriggerSimpleTID?: number | null; + AvalTriggerSimpleName?: string | null; + DestructiveSizeExtTID?: number | null; + DestructiveSizeExtName?: string | null; + AvalancheExtTID?: number | null; + AvalancheExtName?: string | null; + AvalCauseTID?: number | null; + AvalCauseName?: string | null; + AvalCauseExtTID?: number | null; + AvalCauseExtName?: string | null; + AvalReleaseHeightTID?: number | null; + AvalReleaseHeightName?: string | null; + AvalancheProbabilityAutoText?: string | null; + AvalancheProblemAutoText?: string | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts new file mode 100644 index 000000000..9c106acc8 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts @@ -0,0 +1,66 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvalProblem2EditModel { + /** + * Sannsynlighet for skred. The AvalProbabilityKD unique identifier + */ + AvalProbabilityTID?: number | null; + /** + * + */ + AvalPropagationTID?: number | null; + /** + * The AvalTriggerSimpleKD unique identifier + */ + AvalTriggerSimpleTID?: number | null; + /** + * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier + */ + AvalCauseDepthTID?: number | null; + /** + * Velg utsatte retninger + */ + ValidExposition?: string | null; + /** + * Øverste høyde på “utsatt høyde” symbolet. + */ + ExposedHeight1?: number | null; + /** + * Nederste høyde på “utsatt høyde” symbolet. + */ + ExposedHeight2?: number | null; + /** + * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier + */ + ExposedHeightComboTID?: number | null; + /** + * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier + */ + AvalancheExtTID?: number | null; + /** + * Kommentar til skredproblemet + */ + Comment?: string | null; + /** + * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier + */ + AvalCauseTID?: number | null; + AvalCauseAttributeLightTID?: number; + AvalCauseAttributeThinTID?: number; + AvalCauseAttributeSoftTID?: number; + AvalCauseAttributeCrystalTID?: number; + /** + * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier + */ + DestructiveSizeTID?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts new file mode 100644 index 000000000..d675016cf --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts @@ -0,0 +1,78 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvalProblem2ViewModel { + /** + * Sannsynlighet for skred. The AvalProbabilityKD unique identifier + */ + AvalProbabilityTID?: number | null; + /** + * + */ + AvalPropagationTID?: number | null; + /** + * The AvalTriggerSimpleKD unique identifier + */ + AvalTriggerSimpleTID?: number | null; + /** + * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier + */ + AvalCauseDepthTID?: number | null; + /** + * Velg utsatte retninger + */ + ValidExposition?: string | null; + /** + * Øverste høyde på “utsatt høyde” symbolet. + */ + ExposedHeight1?: number | null; + /** + * Nederste høyde på “utsatt høyde” symbolet. + */ + ExposedHeight2?: number | null; + /** + * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier + */ + ExposedHeightComboTID?: number | null; + /** + * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier + */ + AvalancheExtTID?: number | null; + /** + * Kommentar til skredproblemet + */ + Comment?: string | null; + /** + * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier + */ + AvalCauseTID?: number | null; + AvalCauseAttributeLightTID?: number; + AvalCauseAttributeThinTID?: number; + AvalCauseAttributeSoftTID?: number; + AvalCauseAttributeCrystalTID?: number; + /** + * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier + */ + DestructiveSizeTID?: number | null; + AvalProbabilityName?: string | null; + AvalTriggerSimpleName?: string | null; + AvalCauseDepthName?: string | null; + ExposedHeightComboName?: string | null; + AvalancheExtName?: string | null; + AvalCauseName?: string | null; + DestructiveSizeName?: string | null; + AvalPropagationName?: string | null; + AvalCauseAttributeLightName?: string | null; + AvalCauseAttributeThinName?: string | null; + AvalCauseAttributeSoftName?: string | null; + AvalCauseAttributeCrystalName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts new file mode 100644 index 000000000..5d6c32915 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvaluationViewModel { + RegID?: number; + CanPublish?: boolean; + AvalancheDangerTID?: number; + AvalancheDangerName?: string | null; + ValidExposition?: string | null; + ValidHeightRelative?: string | null; + ValidHeightFrom?: number | null; + ValidHeigtTo?: number | null; + AvalancheProblemTID1?: number | null; + AvalancheProblemName1?: string | null; + AvalancheProblemTID2?: number | null; + AvalancheProblemName2?: string | null; + AvalancheProblemTID3?: number | null; + AvalancheProblemName3?: string | null; + AvalancheEvaluation1?: string | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts new file mode 100644 index 000000000..87db8064c --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts @@ -0,0 +1,28 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; + + +export interface AvalancheEvaluation2ViewModel { + AvalancheDangerName?: string | null; + ValidExposition?: string | null; + Comment?: string | null; + AvalancheEvaluation?: string | null; + AvalancheDevelopment?: string | null; + ExposedHeight1?: number | null; + ExposedHeight2?: number | null; + ExposedHeightComboTID?: number | null; + ExposedHeightComboName?: string | null; + ExposedClimateTID?: number | null; + ExposedClimateName?: string | null; + AvalancheDangerTID?: number | null; + AvalancheEvalProblems?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts new file mode 100644 index 000000000..31b3f750f --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts @@ -0,0 +1,34 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvaluation3EditModel { + /** + * Faregrad. The AvalancheDangerKD unique identifier + */ + AvalancheDangerTID?: number | null; + /** + * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen + */ + AvalancheEvaluation?: string | null; + /** + * Her blir forventet utvikling skrevet inn. + */ + AvalancheDevelopment?: string | null; + /** + * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier + */ + ForecastCorrectTID?: number | null; + /** + * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. + */ + ForecastComment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts new file mode 100644 index 000000000..05449e6fe --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts @@ -0,0 +1,36 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheEvaluation3ViewModel { + /** + * Faregrad. The AvalancheDangerKD unique identifier + */ + AvalancheDangerTID?: number | null; + /** + * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen + */ + AvalancheEvaluation?: string | null; + /** + * Her blir forventet utvikling skrevet inn. + */ + AvalancheDevelopment?: string | null; + /** + * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier + */ + ForecastCorrectTID?: number | null; + /** + * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. + */ + ForecastComment?: string | null; + AvalancheDangerName?: string | null; + ForecastCorrectName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts new file mode 100644 index 000000000..4b4b6cc09 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts @@ -0,0 +1,110 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheObsEditModel { + /** + * Tid da skredet gikk. + */ + DtAvalancheTime: string; + /** + * Tidligste tidspunkt da skredet gikk. + */ + DtEarliestAvalancheTime?: string | null; + /** + * Eksposisjon + */ + Aspect?: number | null; + /** + * Høyde i løsneområde + */ + HeightStartZone?: number | null; + /** + * Høyde i stoppområdet + */ + HeightStopZone?: number | null; + /** + * Størrelse. The DestructiveSizeKD unique identifier + */ + DestructiveSizeTID?: number | null; + /** + * Skredutløser. The AvalancheTriggerKD unique identifier + */ + AvalancheTriggerTID?: number | null; + /** + * Skredtype. The AvalancheKD unique identifier + */ + AvalancheTID?: number | null; + /** + * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier + */ + TerrainStartZoneTID?: number | null; + /** + * SnowLine + */ + SnowLine?: number | null; + /** + * ValidExposition + */ + ValidExposition?: string | null; + /** + * Skredutløser. The AvalCauseTID unique identifier + */ + AvalCauseTID?: number | null; + /** + * Bruddhøyde + */ + FractureHeight?: number | null; + /** + * Bruddbredde + */ + FractureWidth?: number | null; + /** + * Skredbanenavn + */ + Trajectory?: string | null; + /** + * StartLat + */ + StartLat?: number | null; + /** + * StartLong + */ + StartLong?: number | null; + /** + * StopLat + */ + StopLat?: number | null; + /** + * StopLong + */ + StopLong?: number | null; + /** + * Ble skredet fjernutløst? + */ + RemotelyTriggered?: boolean | null; + /** + * Hull of avalanche polygon, List(lon, lat) + */ + Extent?: Array> | null; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ + StartExtent?: Array> | null; + /** + * Hull of avalanche runout zone, List (lon, lat) + */ + StopExtent?: Array> | null; + /** + * Comment + */ + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts new file mode 100644 index 000000000..72192cd9e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts @@ -0,0 +1,115 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface AvalancheObsViewModel { + /** + * Tid da skredet gikk. + */ + DtAvalancheTime: string; + /** + * Tidligste tidspunkt da skredet gikk. + */ + DtEarliestAvalancheTime?: string | null; + /** + * Eksposisjon + */ + Aspect?: number | null; + /** + * Høyde i løsneområde + */ + HeightStartZone?: number | null; + /** + * Høyde i stoppområdet + */ + HeightStopZone?: number | null; + /** + * Størrelse. The DestructiveSizeKD unique identifier + */ + DestructiveSizeTID?: number | null; + /** + * Skredutløser. The AvalancheTriggerKD unique identifier + */ + AvalancheTriggerTID?: number | null; + /** + * Skredtype. The AvalancheKD unique identifier + */ + AvalancheTID?: number | null; + /** + * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier + */ + TerrainStartZoneTID?: number | null; + /** + * SnowLine + */ + SnowLine?: number | null; + /** + * ValidExposition + */ + ValidExposition?: string | null; + /** + * Skredutløser. The AvalCauseTID unique identifier + */ + AvalCauseTID?: number | null; + /** + * Bruddhøyde + */ + FractureHeight?: number | null; + /** + * Bruddbredde + */ + FractureWidth?: number | null; + /** + * Skredbanenavn + */ + Trajectory?: string | null; + /** + * StartLat + */ + StartLat?: number | null; + /** + * StartLong + */ + StartLong?: number | null; + /** + * StopLat + */ + StopLat?: number | null; + /** + * StopLong + */ + StopLong?: number | null; + /** + * Ble skredet fjernutløst? + */ + RemotelyTriggered?: boolean | null; + /** + * Hull of avalanche polygon, List(lon, lat) + */ + Extent?: Array> | null; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ + StartExtent?: Array> | null; + /** + * Hull of avalanche runout zone, List (lon, lat) + */ + StopExtent?: Array> | null; + /** + * Comment + */ + Comment?: string | null; + DestructiveSizeName?: string | null; + AvalancheTriggerName?: string | null; + AvalancheName?: string | null; + TerrainStartZoneName?: string | null; + AvalCauseName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts new file mode 100644 index 000000000..ec18afd3e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts @@ -0,0 +1,59 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface CompressionTestEditModel { + /** + * The CompressionTestKDV unique identifier + */ + CompressionTestTID?: number | null; + /** + * TapsFracture + */ + TapsFracture?: number | null; + /** + * TapsFullPropagation + */ + TapsFullPropagation?: number | null; + /** + * The PropagationKD unique identifier + */ + PropagationTID?: number | null; + /** + * FractureDepth + */ + FractureDepth?: number | null; + /** + * PST X distance (in meters) + */ + PstX?: number | null; + /** + * PST Y distance (in meters) + */ + PstY?: number | null; + /** + * The StabilityEvalKD unique identifier + */ + StabilityEvalTID?: number | null; + /** + * The ComprTestFractureKD unique identifier + */ + ComprTestFractureTID?: number | null; + /** + * Percentage of block that released in Rutchblock test + */ + RbRelease?: number | null; + /** + * Comment + */ + Comment?: string | null; + IncludeInSnowProfile?: boolean | null; +} + diff --git a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts new file mode 100644 index 000000000..6b12ad833 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts @@ -0,0 +1,63 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface CompressionTestViewModel { + /** + * The CompressionTestKDV unique identifier + */ + CompressionTestTID?: number | null; + /** + * TapsFracture + */ + TapsFracture?: number | null; + /** + * TapsFullPropagation + */ + TapsFullPropagation?: number | null; + /** + * The PropagationKD unique identifier + */ + PropagationTID?: number | null; + /** + * FractureDepth + */ + FractureDepth?: number | null; + /** + * PST X distance (in meters) + */ + PstX?: number | null; + /** + * PST Y distance (in meters) + */ + PstY?: number | null; + /** + * The StabilityEvalKD unique identifier + */ + StabilityEvalTID?: number | null; + /** + * The ComprTestFractureKD unique identifier + */ + ComprTestFractureTID?: number | null; + /** + * Percentage of block that released in Rutchblock test + */ + RbRelease?: number | null; + /** + * Comment + */ + Comment?: string | null; + IncludeInSnowProfile?: boolean | null; + CompressionTestName?: string | null; + PropagationName?: string | null; + StabilityEvalName?: string | null; + ComprTestFractureName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/county-dto.ts b/src/app/modules/common-regobs-api/model/county-dto.ts new file mode 100644 index 000000000..fc0fe5124 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/county-dto.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface CountyDto { + CountyNo?: string | null; + Name?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/create-trip-dto.ts b/src/app/modules/common-regobs-api/model/create-trip-dto.ts new file mode 100644 index 000000000..afd36f6e9 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/create-trip-dto.ts @@ -0,0 +1,21 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface CreateTripDto { + Comment?: string | null; + DeviceGuid?: string; + GeoHazardID?: number; + Lat?: string | null; + Lng?: string | null; + ObservationExpectedMinutes?: number; + TripTypeID?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts new file mode 100644 index 000000000..0cf669c08 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts @@ -0,0 +1,21 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LatLng } from './lat-lng'; +import { AttachmentEditModel } from './attachment-edit-model'; + + +export interface DamageObsEditModel { + GeoHazardTID?: number | null; + DamageTypeTID: number; + DamagePosition?: LatLng | null; + Comment?: string | null; + Attachments?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts new file mode 100644 index 000000000..6c29d846d --- /dev/null +++ b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts @@ -0,0 +1,23 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AttachmentViewModel } from './attachment-view-model'; +import { LatLng } from './lat-lng'; + + +export interface DamageObsViewModel { + GeoHazardTID?: number | null; + DamageTypeTID: number; + DamagePosition?: LatLng | null; + Comment?: string | null; + Attachments?: Array | null; + GeoHazardName?: string | null; + DamageTypeName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts new file mode 100644 index 000000000..096c87f07 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts @@ -0,0 +1,26 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface DangerObsEditModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier + */ + DangerSignTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om faretegnet. + */ + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts new file mode 100644 index 000000000..2d51e8d09 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts @@ -0,0 +1,28 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface DangerObsViewModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier + */ + DangerSignTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om faretegnet. + */ + Comment?: string | null; + GeoHazardName?: string | null; + DangerSignName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts new file mode 100644 index 000000000..765fb4438 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts @@ -0,0 +1,15 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface FinishTripDto { + DeviceGuid?: string; +} + diff --git a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts new file mode 100644 index 000000000..318c4548f --- /dev/null +++ b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts @@ -0,0 +1,20 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; + + +export interface ForecastRegionDto { + Id?: number; + Text?: string | null; + SortOrder?: number; + SubRegions?: Array | null; + IsRegionForGrouping?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts new file mode 100644 index 000000000..7114bc65c --- /dev/null +++ b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ForecastRegionSubRegionDto { + Id?: number; + Text?: string | null; + RegionType?: string | null; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts new file mode 100644 index 000000000..61d95dd1a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts @@ -0,0 +1,32 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlEditModel } from './url-edit-model'; + + +export interface GeneralObservationEditModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ + GeoHazardTID?: number | null; + /** + * Selve registreringen. + */ + ObsComment?: string | null; + /** + * Overskriften (hovedpoenget). + */ + ObsHeader?: string | null; + /** + * Kommentarfelt for å skrive utfyllende tekst + */ + Comment?: string | null; + Urls?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts new file mode 100644 index 000000000..cd08d1016 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts @@ -0,0 +1,33 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlViewModel } from './url-view-model'; + + +export interface GeneralObservationViewModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ + GeoHazardTID?: number | null; + /** + * Selve registreringen. + */ + ObsComment?: string | null; + /** + * Overskriften (hovedpoenget). + */ + ObsHeader?: string | null; + /** + * Kommentarfelt for å skrive utfyllende tekst + */ + Comment?: string | null; + Urls?: Array | null; + GeoHazardName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts new file mode 100644 index 000000000..4000b23b7 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * NotSpecified = 0, Avalanche = 10, EarthFlow = 20, LandSlide = 30, RockFall = 40, IceFall = 50, Flooding = 60, Ice = 70, EventOnGlacier = 100, Jøkulhaup = 110, Drought = 200, Unknown = 999 + */ +export const GeoHazardTypes = { + NUMBER_0: 0, + NUMBER_10: 10, + NUMBER_20: 20, + NUMBER_30: 30, + NUMBER_40: 40, + NUMBER_50: 50, + NUMBER_60: 60, + NUMBER_70: 70, + NUMBER_100: 100, + NUMBER_110: 110, + NUMBER_200: 200, + NUMBER_999: 999 +} as const; +export type GeoHazardTypes = typeof GeoHazardTypes[keyof typeof GeoHazardTypes]; + diff --git a/src/app/modules/common-regobs-api/model/helptext-dto.ts b/src/app/modules/common-regobs-api/model/helptext-dto.ts new file mode 100644 index 000000000..24505dfcb --- /dev/null +++ b/src/app/modules/common-regobs-api/model/helptext-dto.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface HelptextDto { + RegistrationTID?: number; + GeoHazardTID?: number; + LangKey?: number; + Text?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts new file mode 100644 index 000000000..a00adb28c --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts @@ -0,0 +1,37 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlEditModel } from './url-edit-model'; + + +export interface IceCoverEditModel { + /** + * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier + */ + IceCoverBeforeTID?: number | null; + /** + * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier + */ + IceCoverTID?: number | null; + IceCoverAfterTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ + Comment?: string | null; + /** + * Skøytebarhet. IceSkateabilityKD unique identifier + */ + IceSkateabilityTID?: number | null; + /** + * Bæreevne. IceCapacityKD unique identifier + */ + IceCapacityTID?: number | null; + Urls?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts new file mode 100644 index 000000000..befb1b0da --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts @@ -0,0 +1,42 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlViewModel } from './url-view-model'; + + +export interface IceCoverViewModel { + /** + * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier + */ + IceCoverBeforeTID?: number | null; + /** + * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier + */ + IceCoverTID?: number | null; + IceCoverAfterTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ + Comment?: string | null; + /** + * Skøytebarhet. IceSkateabilityKD unique identifier + */ + IceSkateabilityTID?: number | null; + /** + * Bæreevne. IceCapacityKD unique identifier + */ + IceCapacityTID?: number | null; + Urls?: Array | null; + IceCoverBeforeName?: string | null; + IceCoverName?: string | null; + IceCoverAfterName?: string | null; + IceSkateabilityName?: string | null; + IceCapacityName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts new file mode 100644 index 000000000..ea3ea3fe6 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts @@ -0,0 +1,40 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { IceThicknessLayerEditModel } from './ice-thickness-layer-edit-model'; + + +export interface IceThicknessEditModel { + /** + * Mengden tørr snø oppå isen. Verdi i meter [m]. + */ + SnowDepth?: number | null; + /** + * Mengden sørpe oppå isen. Verdi i meter [m]. + */ + SlushSnow?: number | null; + /** + * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. + */ + IceThicknessSum?: number | null; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. + */ + IceHeightBefore?: number | null; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. + */ + IceHeightAfter?: number | null; + /** + * Comment + */ + Comment?: string | null; + IceThicknessLayers?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts new file mode 100644 index 000000000..5d307745a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts @@ -0,0 +1,26 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface IceThicknessLayerEditModel { + /** + * The IceLayerKD unique identifier + */ + IceLayerTID?: number | null; + /** + * IceLayerThickness + */ + IceLayerThickness?: number | null; + /** + * Comment + */ + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts new file mode 100644 index 000000000..7c04ea593 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface IceThicknessLayerViewModel { + /** + * The IceLayerKD unique identifier + */ + IceLayerTID?: number | null; + /** + * IceLayerThickness + */ + IceLayerThickness?: number | null; + /** + * Comment + */ + Comment?: string | null; + IceLayerName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts new file mode 100644 index 000000000..5644b16bb --- /dev/null +++ b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts @@ -0,0 +1,40 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { IceThicknessLayerViewModel } from './ice-thickness-layer-view-model'; + + +export interface IceThicknessViewModel { + /** + * Mengden tørr snø oppå isen. Verdi i meter [m]. + */ + SnowDepth?: number | null; + /** + * Mengden sørpe oppå isen. Verdi i meter [m]. + */ + SlushSnow?: number | null; + /** + * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. + */ + IceThicknessSum?: number | null; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. + */ + IceHeightBefore?: number | null; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. + */ + IceHeightAfter?: number | null; + /** + * Comment + */ + Comment?: string | null; + IceThicknessLayers?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/incident-edit-model.ts b/src/app/modules/common-regobs-api/model/incident-edit-model.ts new file mode 100644 index 000000000..9f39b1c55 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/incident-edit-model.ts @@ -0,0 +1,103 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlEditModel } from './url-edit-model'; + + +export interface IncidentEditModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ + GeoHazardTID?: number | null; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ + ActivityInfluencedTID?: number | null; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ + DamageExtentTID?: number | null; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ + ForecastAccurateTID?: number | null; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ + LocalTouristTID?: number | null; + /** + * Hvor ofte er man i området? + */ + LocalKnowledgeTID?: number | null; + /** + * Hvor mange var involvert? + */ + InvolvedNum?: number | null; + /** + * Hvor mange var i skredet/vannet? + */ + CasualtiesNum?: number | null; + /** + * Hvor mange vart skadd? + */ + HarmedNum?: number | null; + /** + * Hvor mange døde? + */ + DeadNum?: number | null; + /** + * Hvor mange evakuerte? + */ + EvacuatedNum?: number | null; + /** + * Er trafikk hindret? + */ + TrafficObstructed?: boolean | null; + /** + * Er det noen materielle skader? + */ + MaterialDamages?: boolean | null; + /** + * Var det noe sikkerhetsutstyr i bruk? + */ + SafetyGearTID?: number | null; + /** + * Hvem gjennomførte redningen? + */ + RescueTID?: number | null; + /** + * Hvilken turfase? + */ + SlopeActivityTID?: number | null; + /** + * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? + */ + DtEndTime?: string | null; + /** + * Hendelsen beskrives med overskrift .. + */ + IncidentHeader?: string | null; + /** + * .. med ingress eller sammendrag .. + */ + IncidentIngress?: string | null; + /** + * .. og teksten eller artikkelen. + */ + IncidentText?: string | null; + /** + * Comment. + */ + Comment?: string | null; + /** + * Provide description for IncidentURLs + */ + IncidentURLs?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/incident-view-model.ts b/src/app/modules/common-regobs-api/model/incident-view-model.ts new file mode 100644 index 000000000..16ea4e036 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/incident-view-model.ts @@ -0,0 +1,127 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlViewModel } from './url-view-model'; + + +export interface IncidentViewModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ + GeoHazardTID?: number | null; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ + ActivityInfluencedTID?: number | null; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ + DamageExtentTID?: number | null; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ + ForecastAccurateTID?: number | null; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ + LocalTouristTID?: number | null; + /** + * Hvor ofte er man i området? + */ + LocalKnowledgeTID?: number | null; + /** + * Hvor mange var involvert? + */ + InvolvedNum?: number | null; + /** + * Hvor mange var i skredet/vannet? + */ + CasualtiesNum?: number | null; + /** + * Hvor mange vart skadd? + */ + HarmedNum?: number | null; + /** + * Hvor mange døde? + */ + DeadNum?: number | null; + /** + * Hvor mange evakuerte? + */ + EvacuatedNum?: number | null; + /** + * Er trafikk hindret? + */ + TrafficObstructed?: boolean | null; + /** + * Er det noen materielle skader? + */ + MaterialDamages?: boolean | null; + /** + * Var det noe sikkerhetsutstyr i bruk? + */ + SafetyGearTID?: number | null; + /** + * Hvem gjennomførte redningen? + */ + RescueTID?: number | null; + /** + * Hvilken turfase? + */ + SlopeActivityTID?: number | null; + /** + * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? + */ + DtEndTime?: string | null; + /** + * Hendelsen beskrives med overskrift .. + */ + IncidentHeader?: string | null; + /** + * .. med ingress eller sammendrag .. + */ + IncidentIngress?: string | null; + /** + * .. og teksten eller artikkelen. + */ + IncidentText?: string | null; + /** + * Comment. + */ + Comment?: string | null; + /** + * Provide description for IncidentURLs + */ + IncidentURLs?: Array | null; + GeoHazardName?: string | null; + ActivityInfluencedName?: string | null; + DamageExtentName?: string | null; + ForecastAccurateName?: string | null; + /** + * Hadde man sikkerhetsutstyr? + */ + SafetyGearName?: string | null; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ + LocalTouristName?: string | null; + /** + * Hvor ofte er man i området? + */ + LocalKnowledgeName?: string | null; + /** + * Hvem gjennomførte redningen? + */ + RescueName?: string | null; + /** + * Hvilken turfase gjelder det? + */ + SlopeActivityName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts new file mode 100644 index 000000000..f0b7aa752 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts @@ -0,0 +1,81 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlEditModel } from './url-edit-model'; + + +export interface LandslideEditModel { + /** + * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier + */ + LandSlideTID?: number | null; + /** + * Hva utløste skredet? The LandSlideTriggerKD unique identifier + */ + LandSlideTriggerTID?: number | null; + /** + * Hvor stort er skredet? The LandSlideSizeKD unique identifier + */ + LandSlideSizeTID?: number | null; + Comment?: string | null; + /** + * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ + ActivityInfluencedTID?: number | null; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ + ForecastAccurateTID?: number | null; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ + DamageExtentTID?: number | null; + /** + * Latitude start posisjon + */ + StartLat?: number | null; + /** + * Long start posisjon + */ + StartLong?: number | null; + /** + * Latitude stopp posisjon + */ + StopLat?: number | null; + /** + * Long stopp posisjon + */ + StopLong?: number | null; + /** + * Hull of avalanche polygon, List(lon, lat) + */ + Extent?: Array> | null; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ + StartExtent?: Array> | null; + /** + * Hull of avalanche runout zone, List(lon, lat) + */ + StopExtent?: Array> | null; + /** + * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. + */ + DtLandSlideTime: string; + /** + * Når stoppet skredet? + */ + DtLandSlideTimeEnd?: string | null; + Urls?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/landslide-view-model.ts b/src/app/modules/common-regobs-api/model/landslide-view-model.ts new file mode 100644 index 000000000..e82144750 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/landslide-view-model.ts @@ -0,0 +1,88 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UrlViewModel } from './url-view-model'; + + +export interface LandslideViewModel { + /** + * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier + */ + LandSlideTID?: number | null; + /** + * Hva utløste skredet? The LandSlideTriggerKD unique identifier + */ + LandSlideTriggerTID?: number | null; + /** + * Hvor stort er skredet? The LandSlideSizeKD unique identifier + */ + LandSlideSizeTID?: number | null; + Comment?: string | null; + /** + * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier + */ + GeoHazardTID?: number | null; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ + ActivityInfluencedTID?: number | null; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ + ForecastAccurateTID?: number | null; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ + DamageExtentTID?: number | null; + /** + * Latitude start posisjon + */ + StartLat?: number | null; + /** + * Long start posisjon + */ + StartLong?: number | null; + /** + * Latitude stopp posisjon + */ + StopLat?: number | null; + /** + * Long stopp posisjon + */ + StopLong?: number | null; + /** + * Hull of avalanche polygon, List(lon, lat) + */ + Extent?: Array> | null; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ + StartExtent?: Array> | null; + /** + * Hull of avalanche runout zone, List(lon, lat) + */ + StopExtent?: Array> | null; + /** + * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. + */ + DtLandSlideTime: string; + /** + * Når stoppet skredet? + */ + DtLandSlideTimeEnd?: string | null; + Urls?: Array | null; + LandSlideName?: string | null; + LandSlideTriggerName?: string | null; + LandSlideSizeName?: string | null; + GeoHazardName?: string | null; + ActivityInfluencedName?: string | null; + ForecastAccurateName?: string | null; + DamageExtentName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/lang-key.ts b/src/app/modules/common-regobs-api/model/lang-key.ts new file mode 100644 index 000000000..839fdf278 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/lang-key.ts @@ -0,0 +1,24 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * 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 LangKey = { + NUMBER_1: 1, + NUMBER_2: 2, + NUMBER_3: 3, + NUMBER_4: 4, + NUMBER_5: 5, + NUMBER_6: 6, + NUMBER_7: 7, + NUMBER_8: 8, + NUMBER_9: 9 +} as const; +export type LangKey = typeof LangKey[keyof typeof LangKey]; + diff --git a/src/app/modules/common-regobs-api/model/lat-lng.ts b/src/app/modules/common-regobs-api/model/lat-lng.ts new file mode 100644 index 000000000..0e74c0b52 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/lat-lng.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface LatLng { + Latitude?: number; + Longitude?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/models.ts b/src/app/modules/common-regobs-api/model/models.ts new file mode 100644 index 000000000..415f1689a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/models.ts @@ -0,0 +1,99 @@ +export * from './areas-dto'; +export * from './areas-dto-forecast-regions'; +export * from './at-a-glance-view-model'; +export * from './attachment-edit-model'; +export * from './attachment-view-model'; +export * from './attachment-view-model-url-formats'; +export * from './avalanche-activity-obs2-edit-model'; +export * from './avalanche-activity-obs2-view-model'; +export * from './avalanche-activity-obs-view-model'; +export * from './avalanche-danger-obs-view-model'; +export * from './avalanche-eval-problem2-edit-model'; +export * from './avalanche-eval-problem2-view-model'; +export * from './avalanche-eval-problem-view-model'; +export * from './avalanche-evaluation2-view-model'; +export * from './avalanche-evaluation3-edit-model'; +export * from './avalanche-evaluation3-view-model'; +export * from './avalanche-evaluation-view-model'; +export * from './avalanche-obs-edit-model'; +export * from './avalanche-obs-view-model'; +export * from './compression-test-edit-model'; +export * from './compression-test-view-model'; +export * from './county-dto'; +export * from './create-trip-dto'; +export * from './damage-obs-edit-model'; +export * from './damage-obs-view-model'; +export * from './danger-obs-edit-model'; +export * from './danger-obs-view-model'; +export * from './finish-trip-dto'; +export * from './forecast-region-dto'; +export * from './forecast-region-sub-region-dto'; +export * from './general-observation-edit-model'; +export * from './general-observation-view-model'; +export * from './geo-hazard-types'; +export * from './helptext-dto'; +export * from './ice-cover-edit-model'; +export * from './ice-cover-view-model'; +export * from './ice-thickness-edit-model'; +export * from './ice-thickness-layer-edit-model'; +export * from './ice-thickness-layer-view-model'; +export * from './ice-thickness-view-model'; +export * from './incident-edit-model'; +export * from './incident-view-model'; +export * from './landslide-edit-model'; +export * from './landslide-view-model'; +export * from './lang-key'; +export * from './lat-lng'; +export * from './my-page-data'; +export * from './obs-location-edit-model'; +export * from './obs-location-view-model'; +export * from './observer-competence-dto'; +export * from './observer-competence-level-dto'; +export * from './observer-group-dto'; +export * from './observer-patch-request-dto'; +export * from './observer-response-dto'; +export * from './observer-view-model'; +export * from './operator'; +export * from './position-dto'; +export * from './problem-details'; +export * from './property-filter'; +export * from './reg-obs-generic-value'; +export * from './registration-edit-model'; +export * from './registration-type-criteria-dto'; +export * from './registration-type-dto'; +export * from './registration-type-sub-type-dto'; +export * from './registration-view-model'; +export * from './registrations-with-attachments'; +export * from './search-count-response-dto'; +export * from './search-criteria-excl-user-request-dto'; +export * from './search-criteria-request-dto'; +export * from './search-side-bar-dto'; +export * from './search-side-bar-dto-observer-competence-levels'; +export * from './search-side-bar-dto-registration-types'; +export * from './search-side-bar-request-dto'; +export * from './snow-cover-obs-view-model'; +export * from './snow-density-layer-model'; +export * from './snow-density-model'; +export * from './snow-profile-edit-model'; +export * from './snow-profile-view-model'; +export * from './snow-surface-edit-model'; +export * from './snow-surface-view-model'; +export * from './snow-temp-model'; +export * from './snow-temp-obs-model'; +export * from './strat-profile-edit-model'; +export * from './strat-profile-layer-edit-model'; +export * from './strat-profile-layer-view-model'; +export * from './strat-profile-view-model'; +export * from './summary'; +export * from './url-edit-model'; +export * from './url-view-model'; +export * from './value-kind'; +export * from './water-level-measurement-edit-model'; +export * from './water-level-measurement-view-model'; +export * from './water-level-view-model'; +export * from './waterlevel2-edit-model'; +export * from './waterlevel2-view-model'; +export * from './weather-edit-model'; +export * from './weather-view-model'; +export * from './within-extent-criteria-dto'; +export * from './within-radius-criteria-dto'; diff --git a/src/app/modules/common-regobs-api/model/my-page-data.ts b/src/app/modules/common-regobs-api/model/my-page-data.ts new file mode 100644 index 000000000..6921b7bf4 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/my-page-data.ts @@ -0,0 +1,37 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ObserverGroupDto } from './observer-group-dto'; +import { ObserverCompetenceDto } from './observer-competence-dto'; + + +export interface MyPageData { + Guid?: string; + /** + * Returns unique id that identifies an observer + */ + ObserverId?: number; + NickName?: string | null; + Email?: string | null; + MobPhoneNr?: string | null; + FirstName?: string | null; + LastName?: string | null; + WorkPlace?: string | null; + Adrnr?: number | null; + DtRegTime?: string | null; + MemberOfGroups?: Array | null; + PendingInvitationsToGroups?: Array | null; + Competence?: Array | null; + NumberOfObservations?: number; + MainGeohazardTID?: number; + LastRegistrationDate?: string | null; + DefaultMunicipality?: string | null; + Roles?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts new file mode 100644 index 000000000..66c780e72 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts @@ -0,0 +1,42 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObsLocationEditModel { + /** + * ObsLocationID + */ + ObsLocationID?: number | null; + /** + * Navn på stedet + */ + LocationName?: string | null; + /** + * Beskriver stedet. + */ + LocationDescription?: string | null; + /** + * Latitude + */ + Latitude: number; + /** + * Longitude + */ + Longitude: number; + /** + * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD + */ + UTMSourceTID?: number | null; + /** + * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. + */ + Uncertainty?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts new file mode 100644 index 000000000..6a190b438 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -0,0 +1,60 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObsLocationViewModel { + /** + * ObsLocationID + */ + ObsLocationID?: number | null; + /** + * Navn på stedet + */ + LocationName?: string | null; + /** + * Beskriver stedet. + */ + LocationDescription?: string | null; + /** + * Latitude + */ + Latitude: number; + /** + * Longitude + */ + Longitude: number; + /** + * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD + */ + UTMSourceTID?: number | null; + /** + * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. + */ + Uncertainty?: number | null; + /** + * Anngir varslingsregion stedet tilhører. Varslingsregioner gitt i ForecastRegionKD. The ForecastRegionKD unique identifier + */ + ForecastRegionTID?: number | null; + ForecastRegionName?: string | null; + Height?: number | null; + MunicipalName?: string | null; + /** + * Kommune nr stedet tilhører + */ + MunicipalNo?: string | null; + CountryId?: number | null; + CountryName?: string | null; + UTMSourceName?: string | null; + /** + * Read-only generert tittel + */ + Title?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts new file mode 100644 index 000000000..e528c9391 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObserverCompetenceDto { + CompetenceTID?: number; + GeohazardTID?: number; + CompetenceName?: string | null; + CompetenceDescription?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts new file mode 100644 index 000000000..fe1baa649 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObserverCompetenceLevelDto { + Id?: number; + Name?: string | null; + Description?: string | null; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-group-dto.ts b/src/app/modules/common-regobs-api/model/observer-group-dto.ts new file mode 100644 index 000000000..9b351206d --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-group-dto.ts @@ -0,0 +1,19 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObserverGroupDto { + Id?: number; + Name?: string | null; + ObserverGroupDescription?: string | null; + WorkPlace?: string | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts new file mode 100644 index 000000000..0d0b6eae0 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts @@ -0,0 +1,15 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObserverPatchRequestDto { + Nick?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-response-dto.ts b/src/app/modules/common-regobs-api/model/observer-response-dto.ts new file mode 100644 index 000000000..9786b8e7c --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-response-dto.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ObserverGroupDto } from './observer-group-dto'; + + +export interface ObserverResponseDto { + Guid?: string; + ObserverGroup?: Array | null; + Nick?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-view-model.ts b/src/app/modules/common-regobs-api/model/observer-view-model.ts new file mode 100644 index 000000000..b26324c1b --- /dev/null +++ b/src/app/modules/common-regobs-api/model/observer-view-model.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ObserverViewModel { + NickName?: string | null; + ObserverID?: number; + CompetenceLevelTID?: number; + CompetenceLevelName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/operator.ts b/src/app/modules/common-regobs-api/model/operator.ts new file mode 100644 index 000000000..439162196 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/operator.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * 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 Operator = { + NUMBER_0: 0 +} as const; +export type Operator = typeof Operator[keyof typeof Operator]; + diff --git a/src/app/modules/common-regobs-api/model/position-dto.ts b/src/app/modules/common-regobs-api/model/position-dto.ts new file mode 100644 index 000000000..2f2f366c2 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/position-dto.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface PositionDto { + Latitude?: number; + Longitude?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/problem-details.ts b/src/app/modules/common-regobs-api/model/problem-details.ts new file mode 100644 index 000000000..80952e00d --- /dev/null +++ b/src/app/modules/common-regobs-api/model/problem-details.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ProblemDetails { + [key: string]: any | any; + + + type?: string | null; + title?: string | null; + status?: number | null; + detail?: string | null; + instance?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/property-filter.ts b/src/app/modules/common-regobs-api/model/property-filter.ts new file mode 100644 index 000000000..4782b3e6e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/property-filter.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Operator } from './operator'; + + +/** + * Filter by property value + */ +export interface PropertyFilter { + /** + * Property name. Properties in sub schemas must be prefixed with schema name. Example: AvalancheObs.AvalancheTID Multiple instance schemas, like DangerSign, are not supported. If you use unknown/unsupported properties, you will get an HTTP 400. + */ + Name?: string | null; + Operator?: Operator; + /** + * Target property value + */ + Value?: string | null; +} +export namespace PropertyFilter { +} + + diff --git a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts new file mode 100644 index 000000000..7f84c0ec0 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValueKind } from './value-kind'; + + +export interface RegObsGenericValue { + Kind?: ValueKind; + readonly KindType?: string | null; + Header?: string | null; + Value?: any | null; +} +export namespace RegObsGenericValue { +} + + diff --git a/src/app/modules/common-regobs-api/model/registration-edit-model.ts b/src/app/modules/common-regobs-api/model/registration-edit-model.ts new file mode 100644 index 000000000..3364f9b55 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registration-edit-model.ts @@ -0,0 +1,76 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { Waterlevel2EditModel } from './waterlevel2-edit-model'; +import { DangerObsEditModel } from './danger-obs-edit-model'; +import { AvalancheEvalProblem2EditModel } from './avalanche-eval-problem2-edit-model'; +import { SnowProfileEditModel } from './snow-profile-edit-model'; +import { GeoHazardTypes } from './geo-hazard-types'; +import { LandslideEditModel } from './landslide-edit-model'; +import { AvalancheActivityObs2EditModel } from './avalanche-activity-obs2-edit-model'; +import { AttachmentEditModel } from './attachment-edit-model'; +import { DamageObsEditModel } from './damage-obs-edit-model'; +import { IceThicknessEditModel } from './ice-thickness-edit-model'; +import { IncidentEditModel } from './incident-edit-model'; +import { WeatherEditModel } from './weather-edit-model'; +import { SnowSurfaceEditModel } from './snow-surface-edit-model'; +import { ObsLocationEditModel } from './obs-location-edit-model'; +import { AvalancheObsEditModel } from './avalanche-obs-edit-model'; +import { CompressionTestEditModel } from './compression-test-edit-model'; +import { GeneralObservationEditModel } from './general-observation-edit-model'; +import { IceCoverEditModel } from './ice-cover-edit-model'; +import { AvalancheEvaluation3EditModel } from './avalanche-evaluation3-edit-model'; + + +export interface RegistrationEditModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID: GeoHazardTypes; + /** + * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier + */ + SourceTID?: number | null; + /** + * Tiden da observasjonen ble gjort. + */ + DtObsTime: string; + DtChangeTime?: string | null; + ObserverGroupID?: number | null; + ObserverGroupName?: string | null; + /** + * If set to true, the user\'s account will not be shown publicly. NVE will still be able to see who sent in the observation. + */ + Anonymous?: boolean | null; + /** + * The observation location object. Latitude and longitute are needed to create a new registration. + */ + ObsLocation?: ObsLocationEditModel | null; + Attachments?: Array | null; + AvalancheActivityObs2?: Array | null; + AvalancheEvalProblem2?: Array | null; + AvalancheEvaluation3?: AvalancheEvaluation3EditModel | null; + AvalancheObs?: AvalancheObsEditModel | null; + CompressionTest?: Array | null; + DangerObs?: Array | null; + GeneralObservation?: GeneralObservationEditModel | null; + IceCoverObs?: IceCoverEditModel | null; + IceThickness?: IceThicknessEditModel | null; + Incident?: IncidentEditModel | null; + LandSlideObs?: LandslideEditModel | null; + SnowProfile2?: SnowProfileEditModel | null; + SnowSurfaceObservation?: SnowSurfaceEditModel | null; + WeatherObservation?: WeatherEditModel | null; + WaterLevel2?: Waterlevel2EditModel | null; + DamageObs?: Array | null; +} +export namespace RegistrationEditModel { +} + + diff --git a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts new file mode 100644 index 000000000..58bc00f3e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts @@ -0,0 +1,19 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface RegistrationTypeCriteriaDto { + /** + * TODO: See + */ + Id?: number; + SubTypes?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/registration-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-dto.ts new file mode 100644 index 000000000..00df23e3e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registration-type-dto.ts @@ -0,0 +1,19 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; + + +export interface RegistrationTypeDto { + Id?: number; + Name?: string | null; + SubTypes?: Array | null; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts new file mode 100644 index 000000000..0021603a2 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface RegistrationTypeSubTypeDto { + Id?: number; + Name?: string | null; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts new file mode 100644 index 000000000..7e2124ef0 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -0,0 +1,107 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { IceThicknessViewModel } from './ice-thickness-view-model'; +import { SnowSurfaceViewModel } from './snow-surface-view-model'; +import { IncidentViewModel } from './incident-view-model'; +import { ObserverViewModel } from './observer-view-model'; +import { GeoHazardTypes } from './geo-hazard-types'; +import { WeatherViewModel } from './weather-view-model'; +import { DamageObsViewModel } from './damage-obs-view-model'; +import { LandslideViewModel } from './landslide-view-model'; +import { WaterLevelViewModel } from './water-level-view-model'; +import { SnowProfileViewModel } from './snow-profile-view-model'; +import { AvalancheObsViewModel } from './avalanche-obs-view-model'; +import { AvalancheActivityObsViewModel } from './avalanche-activity-obs-view-model'; +import { AvalancheDangerObsViewModel } from './avalanche-danger-obs-view-model'; +import { SnowCoverObsViewModel } from './snow-cover-obs-view-model'; +import { AvalancheEvaluation3ViewModel } from './avalanche-evaluation3-view-model'; +import { CompressionTestViewModel } from './compression-test-view-model'; +import { IceCoverViewModel } from './ice-cover-view-model'; +import { AvalancheEvaluationViewModel } from './avalanche-evaluation-view-model'; +import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; +import { ObsLocationViewModel } from './obs-location-view-model'; +import { AvalancheActivityObs2ViewModel } from './avalanche-activity-obs2-view-model'; +import { AttachmentViewModel } from './attachment-view-model'; +import { Waterlevel2ViewModel } from './waterlevel2-view-model'; +import { DangerObsViewModel } from './danger-obs-view-model'; +import { AvalancheEvaluation2ViewModel } from './avalanche-evaluation2-view-model'; +import { AvalancheEvalProblem2ViewModel } from './avalanche-eval-problem2-view-model'; +import { Summary } from './summary'; +import { GeneralObservationViewModel } from './general-observation-view-model'; + + +export interface RegistrationViewModel { + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ + GeoHazardTID: GeoHazardTypes; + /** + * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier + */ + SourceTID?: number | null; + /** + * Tiden da observasjonen ble gjort. + */ + DtObsTime: string; + ObserverGroupID?: number | null; + ObserverGroupName?: string | null; + /** + * If set to true, the user\'s account will not be shown publicly. NVE will still be able to see who sent in the observation. + */ + Anonymous?: boolean | null; + RegId?: number; + /** + * Ekstern referanse ID. Må være unik for Applikasjon. + */ + ExternalReferenceId?: string | null; + GeoHazardName?: string | null; + /** + * Timestamp for registrert i systemet. (Read-Only) + */ + DtRegTime?: string | null; + /** + * Timestamp for endret i systemet. (Read-Only) + */ + DtChangeTime?: string | null; + SourceName?: string | null; + Observer?: ObserverViewModel | null; + ObsLocation?: ObsLocationViewModel | null; + Attachments?: Array | null; + AvalancheActivityObs2?: Array | null; + AvalancheEvalProblem2?: Array | null; + AvalancheEvaluation3?: AvalancheEvaluation3ViewModel | null; + AvalancheObs?: AvalancheObsViewModel | null; + CompressionTest?: Array | null; + DangerObs?: Array | null; + GeneralObservation?: GeneralObservationViewModel | null; + IceCoverObs?: IceCoverViewModel | null; + IceThickness?: IceThicknessViewModel | null; + Incident?: IncidentViewModel | null; + LandSlideObs?: LandslideViewModel | null; + SnowProfile2?: SnowProfileViewModel | null; + SnowSurfaceObservation?: SnowSurfaceViewModel | null; + WeatherObservation?: WeatherViewModel | null; + WaterLevel2?: Waterlevel2ViewModel | null; + DamageObs?: Array | null; + Summaries?: Array | null; + AttachmentSummaries?: Array | null; + SnowProfile?: AttachmentViewModel | null; + AvalancheEvaluation?: AvalancheEvaluationViewModel | null; + AvalancheActivityObs?: Array | null; + AvalancheDangerObs?: Array | null; + AvalancheEvalProblem?: Array | null; + AvalancheEvaluation2?: AvalancheEvaluation2ViewModel | null; + SnowCoverObs?: SnowCoverObsViewModel | null; + WaterLevel?: WaterLevelViewModel | null; +} +export namespace RegistrationViewModel { +} + + diff --git a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts new file mode 100644 index 000000000..ec366df75 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts @@ -0,0 +1,23 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AttachmentViewModel } from './attachment-view-model'; + + +export interface RegistrationsWithAttachments { + /** + * Unique registration id that contains attachments + */ + RegId?: number; + /** + * List of registration\'s attachments + */ + Attachments?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts new file mode 100644 index 000000000..2d344551e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts @@ -0,0 +1,15 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SearchCountResponseDto { + TotalMatches?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts new file mode 100644 index 000000000..1b1ecc33a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts @@ -0,0 +1,87 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; +import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; +import { PropertyFilter } from './property-filter'; +import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; + + +/** + * Use this to filter out registrations. + */ +export interface SearchCriteriaExclUserRequestDto { + /** + * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} + */ + RegId?: number | null; + /** + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + */ + LangKey?: number | null; + LocationId?: number | null; + /** + * Find registrations with obervation time after given date and time (inclusive) + */ + FromDtObsTime?: string | null; + /** + * Find registrations with obervation time before given date and time (inclusive) + */ + ToDtObsTime?: string | null; + /** + * Find registrations saved or changed after given date and time (inclusive) + */ + FromDtChangeTime?: string | null; + /** + * Find registrations saved or changed before given date and time (inclusive) + */ + ToDtChangeTime?: string | null; + /** + * Max number of registrations to return. Default = 100 + */ + NumberOfRecords?: number | null; + /** + * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk + */ + Offset?: number | null; + TimeZone?: string | null; + /** + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + */ + SelectedRegistrationTypes?: Array | null; + /** + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + */ + SelectedRegions?: Array | null; + /** + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + */ + SelectedGeoHazards?: Array | null; + Countries?: Array | null; + /** + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + */ + Counties?: Array | null; + TextSearch?: string | null; + Radius?: WithinRadiusCriteriaDto | null; + Extent?: WithinExtentCriteriaDto | null; + /** + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + */ + PropertyFilters?: Array | null; + /** + * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work + */ + OrderBy?: string | null; + /** + * Descending order is default. Set this to true to use ascending order. + */ + AscendingOrder?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts new file mode 100644 index 000000000..989a9d551 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts @@ -0,0 +1,107 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; +import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; +import { PropertyFilter } from './property-filter'; +import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; + + +/** + * Use this to filter out registrations. + */ +export interface SearchCriteriaRequestDto { + /** + * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} + */ + RegId?: number | null; + /** + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + */ + LangKey?: number | null; + LocationId?: number | null; + /** + * Find registrations with obervation time after given date and time (inclusive) + */ + FromDtObsTime?: string | null; + /** + * Find registrations with obervation time before given date and time (inclusive) + */ + ToDtObsTime?: string | null; + /** + * Find registrations saved or changed after given date and time (inclusive) + */ + FromDtChangeTime?: string | null; + /** + * Find registrations saved or changed before given date and time (inclusive) + */ + ToDtChangeTime?: string | null; + /** + * Max number of registrations to return. Default = 100 + */ + NumberOfRecords?: number | null; + /** + * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk + */ + Offset?: number | null; + TimeZone?: string | null; + /** + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + */ + SelectedRegistrationTypes?: Array | null; + /** + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + */ + SelectedRegions?: Array | null; + /** + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + */ + SelectedGeoHazards?: Array | null; + Countries?: Array | null; + /** + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + */ + Counties?: Array | null; + TextSearch?: string | null; + Radius?: WithinRadiusCriteriaDto | null; + Extent?: WithinExtentCriteriaDto | null; + /** + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + */ + PropertyFilters?: Array | null; + /** + * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work + */ + OrderBy?: string | null; + /** + * Descending order is default. Set this to true to use ascending order. + */ + AscendingOrder?: boolean; + /** + * Find registrations made by the observer with given ID + */ + ObserverId?: number | null; + /** + * Find registrations made by the observer with given GUID. This attribute is deprecated and will be removed in the future. + */ + ObserverGuid?: string | null; + /** + * Find registrations made by the observers in a specific group + */ + GroupId?: number | null; + /** + * Find registrations made by observers with specific competence level IDs Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. + */ + ObserverCompetence?: Array | null; + /** + * Find registrations made by the observer with given nick name + */ + ObserverNickName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts new file mode 100644 index 000000000..3eebbce7e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ObserverCompetenceLevelDto } from './observer-competence-level-dto'; + + +export interface SearchSideBarDtoObserverCompetenceLevels { + NotSpecified?: Array; + Avalanche?: Array; + EarthFlow?: Array; + LandSlide?: Array; + RockFall?: Array; + IceFall?: Array; + Flooding?: Array; + Ice?: Array; + EventOnGlacier?: Array; + 'Jøkulhaup'?: Array; + Drought?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts new file mode 100644 index 000000000..dcbe9acd9 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RegistrationTypeDto } from './registration-type-dto'; + + +export interface SearchSideBarDtoRegistrationTypes { + NotSpecified?: Array; + Avalanche?: Array; + EarthFlow?: Array; + LandSlide?: Array; + RockFall?: Array; + IceFall?: Array; + Flooding?: Array; + Ice?: Array; + EventOnGlacier?: Array; + 'Jøkulhaup'?: Array; + Drought?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts new file mode 100644 index 000000000..6339f4747 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts @@ -0,0 +1,20 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AreasDto } from './areas-dto'; +import { SearchSideBarDtoObserverCompetenceLevels } from './search-side-bar-dto-observer-competence-levels'; +import { SearchSideBarDtoRegistrationTypes } from './search-side-bar-dto-registration-types'; + + +export interface SearchSideBarDto { + RegistrationTypes?: SearchSideBarDtoRegistrationTypes | null; + ObserverCompetenceLevels?: SearchSideBarDtoObserverCompetenceLevels | null; + Areas?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts new file mode 100644 index 000000000..5fa8ca487 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts @@ -0,0 +1,27 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GeoHazardTypes } from './geo-hazard-types'; +import { LangKey } from './lang-key'; + + +export interface SearchSideBarRequestDto { + /** + * Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. + */ + GeoHazards?: Array | null; + /** + * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 Default = 2. + */ + LangKey?: LangKey; +} +export namespace SearchSideBarRequestDto { +} + + diff --git a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts new file mode 100644 index 000000000..dabcd2719 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts @@ -0,0 +1,39 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SnowCoverObsViewModel { + /** + * DepthHoarThickness + */ + DepthHoarThickness?: number | null; + /** + * CriticalLayerExists + */ + CriticalLayerExists?: boolean | null; + /** + * CriticalLayerLocation + */ + CriticalLayerLocation?: number | null; + /** + * The CriticalLayerKD unique identifier + */ + CriticalLayerTID?: number | null; + /** + * SnowPilotRef + */ + SnowPilotRef?: string | null; + /** + * Comment. + */ + Comment?: string | null; + CriticalLayerName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts new file mode 100644 index 000000000..40929b4af --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SnowDensityLayerModel { + Depth?: number | null; + /** + * thickness in m + */ + Thickness?: number | null; + /** + * Density in kg/m^3 + */ + Density?: number | null; + Comment?: string | null; + /** + * Weight in KG + */ + Weight?: number; + WaterEquivalent?: number; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-density-model.ts b/src/app/modules/common-regobs-api/model/snow-density-model.ts new file mode 100644 index 000000000..a760fb063 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-density-model.ts @@ -0,0 +1,19 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SnowDensityLayerModel } from './snow-density-layer-model'; + + +export interface SnowDensityModel { + CylinderDiameter?: number | null; + TareWeight?: number | null; + Comment?: string | null; + Layers?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts new file mode 100644 index 000000000..e0b10ae67 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts @@ -0,0 +1,24 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SnowDensityModel } from './snow-density-model'; +import { StratProfileEditModel } from './strat-profile-edit-model'; +import { SnowTempModel } from './snow-temp-model'; + + +export interface SnowProfileEditModel { + Comment?: string | null; + IsProfileToGround?: boolean | null; + Exposition?: number | null; + SlopeAngle?: number | null; + SnowTemp?: SnowTempModel | null; + SnowDensity?: Array | null; + StratProfile?: StratProfileEditModel | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts new file mode 100644 index 000000000..0df6048dd --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SnowDensityModel } from './snow-density-model'; +import { StratProfileViewModel } from './strat-profile-view-model'; +import { AttachmentViewModel } from './attachment-view-model'; +import { SnowTempModel } from './snow-temp-model'; + + +export interface SnowProfileViewModel { + Comment?: string | null; + IsProfileToGround?: boolean | null; + Exposition?: number | null; + SlopeAngle?: number | null; + SnowTemp?: SnowTempModel | null; + SnowDensity?: Array | null; + StratProfile?: StratProfileViewModel | null; + TotalDepth?: number; + /** + * Urls to simplified images of the snow profile model + */ + PlotImage?: AttachmentViewModel | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts new file mode 100644 index 000000000..5579c7e30 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts @@ -0,0 +1,54 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SnowSurfaceEditModel { + /** + * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. + */ + SnowDepth?: number | null; + /** + * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området + */ + NewSnowDepth24?: number | null; + /** + * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. + */ + NewSnowLine?: number | null; + /** + * Overflatefuktighet + */ + SurfaceWaterContentTID?: number | null; + /** + * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier + */ + SnowDriftTID?: number | null; + /** + * Snødekkehardhet + */ + SnowSurfaceTID?: number | null; + /** + * Skiføre + */ + SkiConditionsTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ + Comment?: string | null; + /** + * Grense lagdelt snø (moh) + */ + HeightLimitLayeredSnow?: number | null; + /** + * Snøgrense (moh) + */ + SnowLine?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts new file mode 100644 index 000000000..b2184bae3 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts @@ -0,0 +1,68 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SnowSurfaceViewModel { + /** + * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. + */ + SnowDepth?: number | null; + /** + * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området + */ + NewSnowDepth24?: number | null; + /** + * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. + */ + NewSnowLine?: number | null; + /** + * Overflatefuktighet + */ + SurfaceWaterContentTID?: number | null; + /** + * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier + */ + SnowDriftTID?: number | null; + /** + * Snødekkehardhet + */ + SnowSurfaceTID?: number | null; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ + Comment?: string | null; + /** + * Grense lagdelt snø (moh) + */ + HeightLimitLayeredSnow?: number | null; + /** + * Snøgrense (moh) + */ + SnowLine?: number | null; + /** + * Obsolete - Only in View Model + */ + SnowWindDepth24?: number | null; + SurfaceWaterContentName?: string | null; + SnowDriftName?: string | null; + SnowSurfaceName?: string | null; + SkiConditionsTID?: number | null; + SkiConditionsName?: string | null; + /** + * Obsolete - Only in View Model + */ + SurfaceRougnessTID?: number | null; + SurfaceRougnessName?: string | null; + /** + * Obsolete - Only in View Model + */ + FootPenetration?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-temp-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-model.ts new file mode 100644 index 000000000..89f11d3a9 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-temp-model.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SnowTempObsModel } from './snow-temp-obs-model'; + + +export interface SnowTempModel { + Layers?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts new file mode 100644 index 000000000..c01e375da --- /dev/null +++ b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface SnowTempObsModel { + Depth?: number; + SnowTemp?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts new file mode 100644 index 000000000..d572c028a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StratProfileLayerEditModel } from './strat-profile-layer-edit-model'; + + +export interface StratProfileEditModel { + Layers?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts new file mode 100644 index 000000000..e317b9a25 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts @@ -0,0 +1,26 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface StratProfileLayerEditModel { + DepthTop?: number | null; + Thickness?: number | null; + GrainFormPrimaryTID?: number | null; + GrainFormSecondaryTID?: number | null; + GrainSizeAvg?: number | null; + GrainSizeAvgMax?: number | null; + HardnessTID?: number | null; + HardnessBottomTID?: number | null; + WetnessTID?: number | null; + CriticalLayerTID?: number | null; + Comment?: string | null; + SortOrder?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts new file mode 100644 index 000000000..4b805d973 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts @@ -0,0 +1,32 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface StratProfileLayerViewModel { + DepthTop?: number | null; + Thickness?: number | null; + GrainFormPrimaryTID?: number | null; + GrainFormSecondaryTID?: number | null; + GrainSizeAvg?: number | null; + GrainSizeAvgMax?: number | null; + HardnessTID?: number | null; + HardnessBottomTID?: number | null; + WetnessTID?: number | null; + CriticalLayerTID?: number | null; + Comment?: string | null; + SortOrder?: number; + GrainFormPrimaryTName?: string | null; + GrainFormSecondaryTName?: string | null; + HardnessTName?: string | null; + HardnessBottomTName?: string | null; + WetnessTName?: string | null; + CriticalLayerTName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts new file mode 100644 index 000000000..f0788fb6a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; + + +export interface StratProfileViewModel { + Layers?: Array | null; + TotalDepth?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/summary.ts b/src/app/modules/common-regobs-api/model/summary.ts new file mode 100644 index 000000000..32c59f33c --- /dev/null +++ b/src/app/modules/common-regobs-api/model/summary.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RegObsGenericValue } from './reg-obs-generic-value'; + + +export interface Summary { + RegistrationTID?: number; + RegistrationName?: string | null; + Summaries?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/url-edit-model.ts b/src/app/modules/common-regobs-api/model/url-edit-model.ts new file mode 100644 index 000000000..171d0a06b --- /dev/null +++ b/src/app/modules/common-regobs-api/model/url-edit-model.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface UrlEditModel { + /** + * UrlDescription + */ + UrlDescription?: string | null; + /** + * UrlLine + */ + UrlLine: string; +} + diff --git a/src/app/modules/common-regobs-api/model/url-view-model.ts b/src/app/modules/common-regobs-api/model/url-view-model.ts new file mode 100644 index 000000000..33bd4ccab --- /dev/null +++ b/src/app/modules/common-regobs-api/model/url-view-model.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface UrlViewModel { + /** + * UrlDescription + */ + UrlDescription?: string | null; + /** + * UrlLine + */ + UrlLine: string; +} + diff --git a/src/app/modules/common-regobs-api/model/value-kind.ts b/src/app/modules/common-regobs-api/model/value-kind.ts new file mode 100644 index 000000000..312c7df4a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/value-kind.ts @@ -0,0 +1,18 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * 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 ValueKind = { + NUMBER_0: 0, + NUMBER_1: 1, + NUMBER_2: 2 +} as const; +export type ValueKind = typeof ValueKind[keyof typeof ValueKind]; + diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts new file mode 100644 index 000000000..3f21f3598 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts @@ -0,0 +1,20 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AttachmentEditModel } from './attachment-edit-model'; + + +export interface WaterLevelMeasurementEditModel { + WaterLevelMeasurementId?: number | null; + WaterLevelValue?: number | null; + DtMeasurementTime: string; + Comment?: string | null; + Attachments?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts new file mode 100644 index 000000000..52519f738 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts @@ -0,0 +1,20 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AttachmentViewModel } from './attachment-view-model'; + + +export interface WaterLevelMeasurementViewModel { + WaterLevelMeasurementId?: number; + WaterLevelValue?: number | null; + DtMeasurementTime: string; + Comment?: string | null; + Attachments?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/water-level-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-view-model.ts new file mode 100644 index 000000000..4e5fe145d --- /dev/null +++ b/src/app/modules/common-regobs-api/model/water-level-view-model.ts @@ -0,0 +1,21 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface WaterLevelViewModel { + WaterLevelDescribed?: string | null; + WaterLevelValue?: number | null; + WaterLevelRefTID?: number; + WaterLevelRefName?: string | null; + Comment?: string | null; + MeasuredDischarge?: number | null; + IsRiver?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts new file mode 100644 index 000000000..bfcc1aff8 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts @@ -0,0 +1,30 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WaterLevelMeasurementEditModel } from './water-level-measurement-edit-model'; + + +export interface Waterlevel2EditModel { + WaterAstrayTID?: number | null; + ObservationTimingTID?: number | null; + MeasurementReferenceTID?: number | null; + MeasurementTypeTID?: number | null; + WaterLevelMethodTID?: number | null; + MarkingReferenceTID?: number | null; + WaterLevelStateTID?: number | null; + MarkingTypeTID?: number | null; + MeasuringToolDescription?: string | null; + WaterLevelMeasurement?: Array | null; + /** + * Flood polygon area, List(lon, lat) + */ + Extent?: Array> | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts new file mode 100644 index 000000000..099d93df4 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts @@ -0,0 +1,38 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { WaterLevelMeasurementViewModel } from './water-level-measurement-view-model'; + + +export interface Waterlevel2ViewModel { + WaterAstrayTID?: number | null; + ObservationTimingTID?: number | null; + MeasurementReferenceTID?: number | null; + MeasurementTypeTID?: number | null; + WaterLevelMethodTID?: number | null; + MarkingReferenceTID?: number | null; + WaterLevelStateTID?: number | null; + MarkingTypeTID?: number | null; + MeasuringToolDescription?: string | null; + WaterLevelMeasurement?: Array | null; + Comment?: string | null; + WaterLevelStateName?: string | null; + WaterAstrayName?: string | null; + ObservationTimingName?: string | null; + MeasurementReferenceName?: string | null; + MeasurementTypeName?: string | null; + WaterLevelMethodName?: string | null; + MarkingReferenceName?: string | null; + MarkingTypeName?: string | null; + /** + * Flood polygon area, List(lon, lat) + */ + Extent?: Array> | null; +} + diff --git a/src/app/modules/common-regobs-api/model/weather-edit-model.ts b/src/app/modules/common-regobs-api/model/weather-edit-model.ts new file mode 100644 index 000000000..46f6f383a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/weather-edit-model.ts @@ -0,0 +1,20 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface WeatherEditModel { + PrecipitationTID?: number | null; + AirTemperature?: number | null; + WindSpeed?: number | null; + WindDirection?: number | null; + CloudCover?: number | null; + Comment?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/weather-view-model.ts b/src/app/modules/common-regobs-api/model/weather-view-model.ts new file mode 100644 index 000000000..ee83e2a2a --- /dev/null +++ b/src/app/modules/common-regobs-api/model/weather-view-model.ts @@ -0,0 +1,22 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface WeatherViewModel { + PrecipitationTID?: number | null; + AirTemperature?: number | null; + WindSpeed?: number | null; + WindDirection?: number | null; + CloudCover?: number | null; + Comment?: string | null; + PrecipitationName?: string | null; + WindDirectionName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts new file mode 100644 index 000000000..4cbb665df --- /dev/null +++ b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PositionDto } from './position-dto'; + + +export interface WithinExtentCriteriaDto { + TopLeft?: PositionDto | null; + BottomRight?: PositionDto | null; +} + diff --git a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts new file mode 100644 index 000000000..24b4d9b95 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.4 - commit: 59238037 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { PositionDto } from './position-dto'; + + +export interface WithinRadiusCriteriaDto { + Position?: PositionDto | null; + Radius?: number; +} + diff --git a/src/app/modules/common-regobs-api/models.ts b/src/app/modules/common-regobs-api/models.ts deleted file mode 100644 index d411f56a0..000000000 --- a/src/app/modules/common-regobs-api/models.ts +++ /dev/null @@ -1,95 +0,0 @@ -export type { ObserverResponseDto } from './models/observer-response-dto'; -export type { ObserverGroupDto } from './models/observer-group-dto'; -export type { MyPageData } from './models/my-page-data'; -export type { ObserverCompetenceDto } from './models/observer-competence-dto'; -export type { ObserverPatchRequestDto } from './models/observer-patch-request-dto'; -export type { GeoLocationInfo } from './models/geo-location-info'; -export type { GeoLocationSummary } from './models/geo-location-summary'; -export type { HelptextDto } from './models/helptext-dto'; -export type { KdvElementsResponseDto } from './models/kdv-elements-response-dto'; -export type { KdvElement } from './models/kdv-element'; -export type { ObsLocationsResponseDtoV2 } from './models/obs-locations-response-dto-v2'; -export type { LatLngObject } from './models/lat-lng-object'; -export type { RegistrationViewModel } from './models/registration-view-model'; -export type { ObserverViewModel } from './models/observer-view-model'; -export type { ObsLocationViewModel } from './models/obs-location-view-model'; -export type { AttachmentViewModel } from './models/attachment-view-model'; -export type { AvalancheActivityObs2ViewModel } from './models/avalanche-activity-obs-2view-model'; -export type { AvalancheEvalProblem2ViewModel } from './models/avalanche-eval-problem-2view-model'; -export type { AvalancheEvaluation3ViewModel } from './models/avalanche-evaluation-3view-model'; -export type { AvalancheObsViewModel } from './models/avalanche-obs-view-model'; -export type { CompressionTestViewModel } from './models/compression-test-view-model'; -export type { DangerObsViewModel } from './models/danger-obs-view-model'; -export type { GeneralObservationViewModel } from './models/general-observation-view-model'; -export type { IceCoverViewModel } from './models/ice-cover-view-model'; -export type { IceThicknessViewModel } from './models/ice-thickness-view-model'; -export type { IncidentViewModel } from './models/incident-view-model'; -export type { LandslideViewModel } from './models/landslide-view-model'; -export type { SnowProfileViewModel } from './models/snow-profile-view-model'; -export type { SnowSurfaceViewModel } from './models/snow-surface-view-model'; -export type { WeatherViewModel } from './models/weather-view-model'; -export type { Waterlevel2ViewModel } from './models/waterlevel-2view-model'; -export type { DamageObsViewModel } from './models/damage-obs-view-model'; -export type { Summary } from './models/summary'; -export type { AvalancheEvaluationViewModel } from './models/avalanche-evaluation-view-model'; -export type { AvalancheActivityObsViewModel } from './models/avalanche-activity-obs-view-model'; -export type { AvalancheDangerObsViewModel } from './models/avalanche-danger-obs-view-model'; -export type { AvalancheEvalProblemViewModel } from './models/avalanche-eval-problem-view-model'; -export type { AvalancheEvaluation2ViewModel } from './models/avalanche-evaluation-2view-model'; -export type { SnowCoverObsViewModel } from './models/snow-cover-obs-view-model'; -export type { WaterLevelViewModel } from './models/water-level-view-model'; -export type { UrlViewModel } from './models/url-view-model'; -export type { IceThicknessLayerViewModel } from './models/ice-thickness-layer-view-model'; -export type { StratProfileViewModel } from './models/strat-profile-view-model'; -export type { SnowTempModel } from './models/snow-temp-model'; -export type { SnowDensityModel } from './models/snow-density-model'; -export type { WaterLevelMeasurementViewModel } from './models/water-level-measurement-view-model'; -export type { LatLng } from './models/lat-lng'; -export type { RegObsGenericValue } from './models/reg-obs-generic-value'; -export type { StratProfileLayerViewModel } from './models/strat-profile-layer-view-model'; -export type { SnowTempObsModel } from './models/snow-temp-obs-model'; -export type { SnowDensityLayerModel } from './models/snow-density-layer-model'; -export type { RegistrationEditModel } from './models/registration-edit-model'; -export type { ObsLocationEditModel } from './models/obs-location-edit-model'; -export type { AttachmentEditModel } from './models/attachment-edit-model'; -export type { AvalancheActivityObs2EditModel } from './models/avalanche-activity-obs-2edit-model'; -export type { AvalancheEvalProblem2EditModel } from './models/avalanche-eval-problem-2edit-model'; -export type { AvalancheEvaluation3EditModel } from './models/avalanche-evaluation-3edit-model'; -export type { AvalancheObsEditModel } from './models/avalanche-obs-edit-model'; -export type { CompressionTestEditModel } from './models/compression-test-edit-model'; -export type { DangerObsEditModel } from './models/danger-obs-edit-model'; -export type { GeneralObservationEditModel } from './models/general-observation-edit-model'; -export type { IceCoverEditModel } from './models/ice-cover-edit-model'; -export type { IceThicknessEditModel } from './models/ice-thickness-edit-model'; -export type { IncidentEditModel } from './models/incident-edit-model'; -export type { LandslideEditModel } from './models/landslide-edit-model'; -export type { SnowProfileEditModel } from './models/snow-profile-edit-model'; -export type { SnowSurfaceEditModel } from './models/snow-surface-edit-model'; -export type { WeatherEditModel } from './models/weather-edit-model'; -export type { Waterlevel2EditModel } from './models/waterlevel-2edit-model'; -export type { DamageObsEditModel } from './models/damage-obs-edit-model'; -export type { UrlEditModel } from './models/url-edit-model'; -export type { IceThicknessLayerEditModel } from './models/ice-thickness-layer-edit-model'; -export type { StratProfileEditModel } from './models/strat-profile-edit-model'; -export type { WaterLevelMeasurementEditModel } from './models/water-level-measurement-edit-model'; -export type { StratProfileLayerEditModel } from './models/strat-profile-layer-edit-model'; -export type { SearchCriteriaRequestDto } from './models/search-criteria-request-dto'; -export type { RegistrationTypeCriteriaDto } from './models/registration-type-criteria-dto'; -export type { WithinRadiusCriteriaDto } from './models/within-radius-criteria-dto'; -export type { WithinExtentCriteriaDto } from './models/within-extent-criteria-dto'; -export type { PropertyFilter } from './models/property-filter'; -export type { PositionDto } from './models/position-dto'; -export type { SearchCriteriaExclUserRequestDto } from './models/search-criteria-excl-user-request-dto'; -export type { SearchCountResponseDto } from './models/search-count-response-dto'; -export type { SearchSideBarDto } from './models/search-side-bar-dto'; -export type { RegistrationTypeDto } from './models/registration-type-dto'; -export type { ObserverCompetenceLevelDto } from './models/observer-competence-level-dto'; -export type { AreasDto } from './models/areas-dto'; -export type { RegistrationTypeSubTypeDto } from './models/registration-type-sub-type-dto'; -export type { ForecastRegionDto } from './models/forecast-region-dto'; -export type { CountyDto } from './models/county-dto'; -export type { ForecastRegionSubRegionDto } from './models/forecast-region-sub-region-dto'; -export type { SearchSideBarRequestDto } from './models/search-side-bar-request-dto'; -export type { AtAGlanceViewModel } from './models/at-aglance-view-model'; -export type { FinishTripDto } from './models/finish-trip-dto'; -export type { CreateTripDto } from './models/create-trip-dto'; diff --git a/src/app/modules/common-regobs-api/models/areas-dto.ts b/src/app/modules/common-regobs-api/models/areas-dto.ts deleted file mode 100644 index 3b44a9fed..000000000 --- a/src/app/modules/common-regobs-api/models/areas-dto.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* tslint:disable */ -import { CountyDto } from './county-dto'; -import { ForecastRegionDto } from './forecast-region-dto'; -export interface AreasDto { - Counties?: Array; - CountryDescription?: string; - CountryId?: number; - CountryName?: string; - ForecastRegions?: {NotSpecified?: Array, Avalanche?: Array, EarthFlow?: Array, LandSlide?: Array, RockFall?: Array, IceFall?: Array, Flooding?: Array, Ice?: Array, EventOnGlacier?: Array, Jøkulhaup?: Array, Drought?: Array, Unknown?: Array}; - SortOrder?: number; -} diff --git a/src/app/modules/common-regobs-api/models/at-aglance-view-model.ts b/src/app/modules/common-regobs-api/models/at-aglance-view-model.ts deleted file mode 100644 index 2c168c511..000000000 --- a/src/app/modules/common-regobs-api/models/at-aglance-view-model.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* tslint:disable */ -export interface AtAGlanceViewModel { - - /** - * Count of all attachments - */ - AttachmentsCount?: number; - CompetenceLevelTID?: number; - DtObsTime?: string; - - /** - * this field is deprecated and wont be used inpcoming versions of the app - */ - FirstAttachmentId?: number; - - /** - * Returns first attachement url from the observation or null - */ - FirstAttachmentUrl?: string; - FormNames?: Array; - GeoHazardTID?: number; - Latitude?: number; - Longitude?: number; - NickName?: string; - RegId?: number; - Title?: string; - UtmEast?: number; - UtmNorth?: number; -} diff --git a/src/app/modules/common-regobs-api/models/attachment-edit-model.ts b/src/app/modules/common-regobs-api/models/attachment-edit-model.ts deleted file mode 100644 index add780174..000000000 --- a/src/app/modules/common-regobs-api/models/attachment-edit-model.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -export interface AttachmentEditModel { - - /** - * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. - */ - Aspect?: number; - AttachmentId?: number; - AttachmentMimeType?: string; - - /** - * Last opp attachment på forhånd og sett AttachmentUploadId - */ - AttachmentUploadId?: string; - - /** - * Kommentarfelt for bildet. F.eks for å beskrive det. - */ - Comment?: string; - - /** - * Rettigheter til bilde. - */ - Copyright?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; - - /** - * Om bildet skal vises først i registreringen, eller ikke - */ - IsMainAttachment?: boolean; - - /** - * Navn på fotograf. - */ - Photographer?: string; - - /** - * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier - */ - RegistrationTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/attachment-view-model.ts b/src/app/modules/common-regobs-api/models/attachment-view-model.ts deleted file mode 100644 index c8c330149..000000000 --- a/src/app/modules/common-regobs-api/models/attachment-view-model.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -export interface AttachmentViewModel { - - /** - * Unik beskrivelsen for bildet. Legges på klienten. Dette feltet kommer ikke fra api. - */ - Alt?: string; - /** - * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. - */ - Aspect?: number; - AttachmentId?: number; - AttachmentMimeType?: string; - - /** - * Kommentarfelt for bildet. F.eks for å beskrive det. - */ - Comment?: string; - - /** - * Rettigheter til bilde. - */ - Copyright?: string; - - /** - * GeoHazard name - */ - GeoHazardName?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; - - /** - * Om bildet skal vises først i registreringen, eller ikke - */ - IsMainAttachment?: boolean; - - /** - * Navn på fotograf. - */ - Photographer?: string; - - /** - * Registration name - */ - RegistrationName?: string; - - /** - * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier - */ - RegistrationTID?: number; - - /** - * Full original image url - */ - Url?: string; - - /** - * Urls in different formats - */ - UrlFormats?: {Raw?: string, Original?: string, Thumbnail?: string, Large?: string, Medium?: string}; - - /** - * Om bildet er generert fra et snøprofil-plott - */ - IsSnowProfilePlot?: boolean; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2edit-model.ts deleted file mode 100644 index 0c2fc518b..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2edit-model.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* tslint:disable */ -export interface AvalancheActivityObs2EditModel { - AvalCauseTID?: number; - AvalPropagationTID?: number; - AvalTriggerSimpleTID?: number; - AvalancheExtTID?: number; - Comment?: string; - DestructiveSizeTID?: number; - DtEnd?: string; - DtStart?: string; - EstimatedNumTID?: number; - ExposedHeight1?: number; - ExposedHeight2?: number; - ExposedHeightComboTID?: number; - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2view-model.ts deleted file mode 100644 index 99a907dca..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-2view-model.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* tslint:disable */ -export interface AvalancheActivityObs2ViewModel { - AvalCauseName?: string; - AvalCauseTID?: number; - AvalPropagationName?: string; - AvalPropagationTID?: number; - AvalTriggerSimpleName?: string; - AvalTriggerSimpleTID?: number; - AvalancheExtName?: string; - AvalancheExtTID?: number; - Comment?: string; - DestructiveSizeName?: string; - DestructiveSizeTID?: number; - DtEnd?: string; - DtStart?: string; - EstimatedNumName?: string; - EstimatedNumTID?: number; - ExposedHeight1?: number; - ExposedHeight2?: number; - ExposedHeightComboName?: string; - ExposedHeightComboTID?: number; - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts deleted file mode 100644 index 7e2c2e795..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -export interface AvalancheActivityObsViewModel { - - /** - * Hvilken side av fjellene har skredene gått? Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. - */ - Aspect?: number; - - /** - * Unik id på denne tabellen da flere er mulig pr RegID. - */ - AvalancheActivityObsID?: number; - AvalancheName?: string; - - /** - * Typen skred som er gått. The AvalancheKD unique identifier - */ - AvalancheTID?: number; - AvalancheTriggerName?: string; - - /** - * Hva utløste skredet? Det er ofte beskrevet som det svake laget i snødekket. The AvalancheTriggerKD unique identifier - */ - AvalancheTriggerTID?: number; - - /** - * Kommentarfelt for å skrive utfyllende tekst om observasjonen. - */ - Comment?: string; - DestructiveSizeName?: string; - - /** - * Hvor store er skredene?. The DestructiveSizeKD unique identifier - */ - DestructiveSizeTID?: number; - - /** - * Når gikk skredene? Her bruker vi feltet som en ca. tid og brukerene oppfordres til å anta best mulig. - */ - DtAvalancheTime?: string; - DtOffAvalancheTime?: string; - EstimatedNumName?: string; - - /** - * Hvor mange skred er gått? The EstimatedNumKD unique identifier - */ - EstimatedNumTID?: number; - - /** - * Meter over havet på løsneområdet. - */ - HeigthStartZone?: number; - - /** - * Hvor går snøgrensa i området? - */ - SnowLine?: number; - SnowLineName?: string; - TerrainStartZoneName?: string; - - /** - * Hva slags terrengtype var det i løsneområdet. The TerrainStartZoneKD unique identifier - */ - TerrainStartZoneTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts deleted file mode 100644 index 4fa757275..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface AvalancheDangerObsViewModel { - AvalancheDangerObsID?: number; - Comment?: string; - DangerSignName?: string; - DangerSignTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2edit-model.ts deleted file mode 100644 index ce75b0ce1..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2edit-model.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvalProblem2EditModel { - AvalCauseAttributeCrystalTID?: number; - AvalCauseAttributeLightTID?: number; - AvalCauseAttributeSoftTID?: number; - AvalCauseAttributeThinTID?: number; - - /** - * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier - */ - AvalCauseDepthTID?: number; - - /** - * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier - */ - AvalCauseTID?: number; - - /** - * Sannsynlighet for skred. The AvalProbabilityKD unique identifier - */ - AvalProbabilityTID?: number; - AvalPropagationTID?: number; - - /** - * The AvalTriggerSimpleKD unique identifier - */ - AvalTriggerSimpleTID?: number; - - /** - * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier - */ - AvalancheExtTID?: number; - - /** - * Kommentar til skredproblemet - */ - Comment?: string; - - /** - * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier - */ - DestructiveSizeTID?: number; - - /** - * Øverste høyde på “utsatt høyde” symbolet. - */ - ExposedHeight1?: number; - - /** - * Nederste høyde på “utsatt høyde” symbolet. - */ - ExposedHeight2?: number; - - /** - * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier - */ - ExposedHeightComboTID?: number; - - /** - * Velg utsatte retninger - */ - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2view-model.ts deleted file mode 100644 index eebbfb287..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-2view-model.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvalProblem2ViewModel { - AvalCauseAttributeCrystalName?: string; - AvalCauseAttributeCrystalTID?: number; - AvalCauseAttributeLightName?: string; - AvalCauseAttributeLightTID?: number; - AvalCauseAttributeSoftName?: string; - AvalCauseAttributeSoftTID?: number; - AvalCauseAttributeThinName?: string; - AvalCauseAttributeThinTID?: number; - AvalCauseDepthName?: string; - - /** - * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier - */ - AvalCauseDepthTID?: number; - AvalCauseName?: string; - - /** - * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier - */ - AvalCauseTID?: number; - AvalProbabilityName?: string; - - /** - * Sannsynlighet for skred. The AvalProbabilityKD unique identifier - */ - AvalProbabilityTID?: number; - AvalPropagationName?: string; - AvalPropagationTID?: number; - AvalTriggerSimpleName?: string; - - /** - * The AvalTriggerSimpleKD unique identifier - */ - AvalTriggerSimpleTID?: number; - AvalancheExtName?: string; - - /** - * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier - */ - AvalancheExtTID?: number; - - /** - * Kommentar til skredproblemet - */ - Comment?: string; - DestructiveSizeName?: string; - - /** - * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier - */ - DestructiveSizeTID?: number; - - /** - * Øverste høyde på “utsatt høyde” symbolet. - */ - ExposedHeight1?: number; - - /** - * Nederste høyde på “utsatt høyde” symbolet. - */ - ExposedHeight2?: number; - ExposedHeightComboName?: string; - - /** - * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier - */ - ExposedHeightComboTID?: number; - - /** - * Velg utsatte retninger - */ - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts deleted file mode 100644 index 9e5592184..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvalProblemViewModel { - AvalCauseExtName?: string; - AvalCauseExtTID?: number; - AvalCauseName?: string; - AvalCauseTID?: number; - AvalProbabilityName?: string; - AvalProbabilityTID?: number; - AvalReleaseHeightName?: string; - AvalReleaseHeightTID?: number; - AvalTriggerSimpleName?: string; - AvalTriggerSimpleTID?: number; - AvalancheEvalProblemID?: number; - AvalancheExtName?: string; - AvalancheExtTID?: number; - AvalancheProbabilityAutoText?: string; - AvalancheProblemAutoText?: string; - Comment?: string; - DestructiveSizeExtName?: string; - DestructiveSizeExtTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-2view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-2view-model.ts deleted file mode 100644 index 843822816..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation-2view-model.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* tslint:disable */ -import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; -export interface AvalancheEvaluation2ViewModel { - AvalancheDangerName?: string; - AvalancheDangerTID?: number; - AvalancheDevelopment?: string; - AvalancheEvalProblems?: Array; - AvalancheEvaluation?: string; - Comment?: string; - ExposedClimateName?: string; - ExposedClimateTID?: number; - ExposedHeight1?: number; - ExposedHeight2?: number; - ExposedHeightComboName?: string; - ExposedHeightComboTID?: number; - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-3edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-3edit-model.ts deleted file mode 100644 index f0ca82a69..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation-3edit-model.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvaluation3EditModel { - - /** - * Faregrad. The AvalancheDangerKD unique identifier - */ - AvalancheDangerTID?: number; - - /** - * Her blir forventet utvikling skrevet inn. - */ - AvalancheDevelopment?: string; - - /** - * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen - */ - AvalancheEvaluation?: string; - - /** - * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. - */ - ForecastComment?: string; - - /** - * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier - */ - ForecastCorrectTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-3view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-3view-model.ts deleted file mode 100644 index 6777046ab..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation-3view-model.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvaluation3ViewModel { - AvalancheDangerName?: string; - - /** - * Faregrad. The AvalancheDangerKD unique identifier - */ - AvalancheDangerTID?: number; - - /** - * Her blir forventet utvikling skrevet inn. - */ - AvalancheDevelopment?: string; - - /** - * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen - */ - AvalancheEvaluation?: string; - - /** - * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. - */ - ForecastComment?: string; - ForecastCorrectName?: string; - - /** - * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier - */ - ForecastCorrectTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts deleted file mode 100644 index c4be6aec4..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* tslint:disable */ -export interface AvalancheEvaluationViewModel { - AvalancheDangerName?: string; - AvalancheDangerTID?: number; - AvalancheEvaluation1?: string; - AvalancheProblemName1?: string; - AvalancheProblemName2?: string; - AvalancheProblemName3?: string; - AvalancheProblemTID1?: number; - AvalancheProblemTID2?: number; - AvalancheProblemTID3?: number; - CanPublish?: boolean; - Comment?: string; - RegID?: number; - ValidExposition?: string; - ValidHeightFrom?: number; - ValidHeightRelative?: string; - ValidHeigtTo?: number; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts deleted file mode 100644 index 95a0f0c4f..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* tslint:disable */ -export interface AvalancheObsEditModel { - - /** - * Eksposisjon - */ - Aspect?: number; - - /** - * Skredutløser. The AvalCauseTID unique identifier - */ - AvalCauseTID?: number; - - /** - * Skredtype. The AvalancheKD unique identifier - */ - AvalancheTID?: number; - - /** - * Skredutløser. The AvalancheTriggerKD unique identifier - */ - AvalancheTriggerTID?: number; - - /** - * Comment - */ - Comment?: string; - - /** - * Størrelse. The DestructiveSizeKD unique identifier - */ - DestructiveSizeTID?: number; - - /** - * Tid da skredet gikk. - */ - DtAvalancheTime: string; - - /** - * Tidligste tidspunkt da skredet gikk. - */ - DtEarliestAvalancheTime?: string; - - /** - * Hull of avalanche polygon, List(lon, lat) - */ - Extent?: Array>; - - /** - * Bruddhøyde - */ - FractureHeight?: number; - - /** - * Bruddbredde - */ - FractureWidth?: number; - - /** - * Høyde i løsneområde - */ - HeightStartZone?: number; - - /** - * Høyde i stoppområdet - */ - HeightStopZone?: number; - - /** - * Ble skredet fjernutløst? - */ - RemotelyTriggered?: boolean; - - /** - * SnowLine - */ - SnowLine?: number; - - /** - * Hull of avalanche starting zone, List(lon, lat) - */ - StartExtent?: Array>; - - /** - * StartLat - */ - StartLat?: number; - - /** - * StartLong - */ - StartLong?: number; - - /** - * Hull of avalanche runout zone, List (lon, lat) - */ - StopExtent?: Array>; - - /** - * StopLat - */ - StopLat?: number; - - /** - * StopLong - */ - StopLong?: number; - - /** - * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier - */ - TerrainStartZoneTID?: number; - - /** - * Skredbanenavn - */ - Trajectory?: string; - - /** - * ValidExposition - */ - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts deleted file mode 100644 index 193c42e87..000000000 --- a/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* tslint:disable */ -export interface AvalancheObsViewModel { - - /** - * Eksposisjon - */ - Aspect?: number; - AvalCauseName?: string; - - /** - * Skredutløser. The AvalCauseTID unique identifier - */ - AvalCauseTID?: number; - AvalancheName?: string; - - /** - * Skredtype. The AvalancheKD unique identifier - */ - AvalancheTID?: number; - AvalancheTriggerName?: string; - - /** - * Skredutløser. The AvalancheTriggerKD unique identifier - */ - AvalancheTriggerTID?: number; - - /** - * Comment - */ - Comment?: string; - DestructiveSizeName?: string; - - /** - * Størrelse. The DestructiveSizeKD unique identifier - */ - DestructiveSizeTID?: number; - - /** - * Tid da skredet gikk. - */ - DtAvalancheTime: string; - - /** - * Tidligste tidspunkt da skredet gikk. - */ - DtEarliestAvalancheTime?: string; - - /** - * Hull of avalanche polygon, List(lon, lat) - */ - Extent?: Array>; - - /** - * Bruddhøyde - */ - FractureHeight?: number; - - /** - * Bruddbredde - */ - FractureWidth?: number; - - /** - * Høyde i løsneområde - */ - HeightStartZone?: number; - - /** - * Høyde i stoppområdet - */ - HeightStopZone?: number; - - /** - * Ble skredet fjernutløst? - */ - RemotelyTriggered?: boolean; - - /** - * SnowLine - */ - SnowLine?: number; - - /** - * Hull of avalanche starting zone, List(lon, lat) - */ - StartExtent?: Array>; - - /** - * StartLat - */ - StartLat?: number; - - /** - * StartLong - */ - StartLong?: number; - - /** - * Hull of avalanche runout zone, List (lon, lat) - */ - StopExtent?: Array>; - - /** - * StopLat - */ - StopLat?: number; - - /** - * StopLong - */ - StopLong?: number; - TerrainStartZoneName?: string; - - /** - * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier - */ - TerrainStartZoneTID?: number; - - /** - * Skredbanenavn - */ - Trajectory?: string; - - /** - * ValidExposition - */ - ValidExposition?: string; -} diff --git a/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts deleted file mode 100644 index 2c928d96b..000000000 --- a/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -export interface CompressionTestEditModel { - - /** - * Comment - */ - Comment?: string; - - /** - * The ComprTestFractureKD unique identifier - */ - ComprTestFractureTID?: number; - - /** - * The CompressionTestKDV unique identifier - */ - CompressionTestTID?: number; - - /** - * FractureDepth - */ - FractureDepth?: number; - IncludeInSnowProfile?: boolean; - - /** - * The PropagationKD unique identifier - */ - PropagationTID?: number; - - /** - * PST X distance (in meters) - */ - PstX?: number; - - /** - * PST Y distance (in meters) - */ - PstY?: number; - - /** - * Percentage of block that released in Rutchblock test - */ - RbRelease?: number; - - /** - * The StabilityEvalKD unique identifier - */ - StabilityEvalTID?: number; - - /** - * TapsFracture - */ - TapsFracture?: number; - - /** - * TapsFullPropagation - */ - TapsFullPropagation?: number; -} diff --git a/src/app/modules/common-regobs-api/models/compression-test-view-model.ts b/src/app/modules/common-regobs-api/models/compression-test-view-model.ts deleted file mode 100644 index 8239db033..000000000 --- a/src/app/modules/common-regobs-api/models/compression-test-view-model.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -export interface CompressionTestViewModel { - - /** - * Comment - */ - Comment?: string; - ComprTestFractureName?: string; - - /** - * The ComprTestFractureKD unique identifier - */ - ComprTestFractureTID?: number; - CompressionTestName?: string; - - /** - * The CompressionTestKDV unique identifier - */ - CompressionTestTID?: number; - - /** - * FractureDepth - */ - FractureDepth?: number; - IncludeInSnowProfile?: boolean; - PropagationName?: string; - - /** - * The PropagationKD unique identifier - */ - PropagationTID?: number; - - /** - * PST X distance (in meters) - */ - PstX?: number; - - /** - * PST Y distance (in meters) - */ - PstY?: number; - - /** - * Percentage of block that released in Rutchblock test - */ - RbRelease?: number; - StabilityEvalName?: string; - - /** - * The StabilityEvalKD unique identifier - */ - StabilityEvalTID?: number; - - /** - * TapsFracture - */ - TapsFracture?: number; - - /** - * TapsFullPropagation - */ - TapsFullPropagation?: number; -} diff --git a/src/app/modules/common-regobs-api/models/county-dto.ts b/src/app/modules/common-regobs-api/models/county-dto.ts deleted file mode 100644 index 67cc41839..000000000 --- a/src/app/modules/common-regobs-api/models/county-dto.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface CountyDto { - CountyNo?: string; - Name?: string; -} diff --git a/src/app/modules/common-regobs-api/models/create-trip-dto.ts b/src/app/modules/common-regobs-api/models/create-trip-dto.ts deleted file mode 100644 index 0ef594209..000000000 --- a/src/app/modules/common-regobs-api/models/create-trip-dto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* tslint:disable */ -export interface CreateTripDto { - Comment?: string; - DeviceGuid?: string; - GeoHazardID?: number; - Lat?: string; - Lng?: string; - ObservationExpectedMinutes?: number; - TripTypeID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts deleted file mode 100644 index 3fda6e3a1..000000000 --- a/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* tslint:disable */ -import { AttachmentEditModel } from './attachment-edit-model'; -import { LatLng } from './lat-lng'; -export interface DamageObsEditModel { - Attachments?: Array; - Comment?: string; - DamagePosition?: LatLng; - DamageTypeTID: number; - GeoHazardTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts deleted file mode 100644 index 75156bc84..000000000 --- a/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* tslint:disable */ -import { AttachmentViewModel } from './attachment-view-model'; -import { LatLng } from './lat-lng'; -export interface DamageObsViewModel { - Attachments?: Array; - Comment?: string; - DamagePosition?: LatLng; - DamageTypeName?: string; - DamageTypeTID: number; - GeoHazardName?: string; - GeoHazardTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts deleted file mode 100644 index 1a1633839..000000000 --- a/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* tslint:disable */ -export interface DangerObsEditModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om faretegnet. - */ - Comment?: string; - - /** - * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier - */ - DangerSignTID: number; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts deleted file mode 100644 index 40ef332ac..000000000 --- a/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* tslint:disable */ -export interface DangerObsViewModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om faretegnet. - */ - Comment?: string; - DangerSignName?: string; - - /** - * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier - */ - DangerSignTID?: number; - GeoHazardName?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/finish-trip-dto.ts b/src/app/modules/common-regobs-api/models/finish-trip-dto.ts deleted file mode 100644 index b91606641..000000000 --- a/src/app/modules/common-regobs-api/models/finish-trip-dto.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* tslint:disable */ -export interface FinishTripDto { - DeviceGuid?: string; -} diff --git a/src/app/modules/common-regobs-api/models/forecast-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-dto.ts deleted file mode 100644 index 937ba8acf..000000000 --- a/src/app/modules/common-regobs-api/models/forecast-region-dto.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; -export interface ForecastRegionDto { - Id?: number; - IsRegionForGrouping?: boolean; - SortOrder?: number; - SubRegions?: Array; - Text?: string; -} diff --git a/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts deleted file mode 100644 index aa0215351..000000000 --- a/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface ForecastRegionSubRegionDto { - Id?: number; - RegionType?: string; - SortOrder?: number; - Text?: string; -} diff --git a/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts deleted file mode 100644 index 5b36bb46b..000000000 --- a/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* tslint:disable */ -import { UrlEditModel } from './url-edit-model'; -export interface GeneralObservationEditModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst - */ - Comment?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). - */ - GeoHazardTID?: number; - - /** - * Selve registreringen. - */ - ObsComment?: string; - - /** - * Overskriften (hovedpoenget). - */ - ObsHeader?: string; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/general-observation-view-model.ts b/src/app/modules/common-regobs-api/models/general-observation-view-model.ts deleted file mode 100644 index 55c562553..000000000 --- a/src/app/modules/common-regobs-api/models/general-observation-view-model.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* tslint:disable */ -import { UrlViewModel } from './url-view-model'; -export interface GeneralObservationViewModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst - */ - Comment?: string; - GeoHazardName?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). - */ - GeoHazardTID?: number; - - /** - * Selve registreringen. - */ - ObsComment?: string; - - /** - * Overskriften (hovedpoenget). - */ - ObsHeader?: string; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/geo-location-info.ts b/src/app/modules/common-regobs-api/models/geo-location-info.ts deleted file mode 100644 index 75883c74e..000000000 --- a/src/app/modules/common-regobs-api/models/geo-location-info.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* tslint:disable */ -export interface GeoLocationInfo { - AdminAreaId?: string; - AdminAreaName?: string; - Country?: string; - CountryCode?: string; - Masl?: number; - Municipality?: string; - MunicipalityId?: string; - Name?: string; - Steepness?: number; - WarningRegionId?: string; - WarningRegionName?: string; -} diff --git a/src/app/modules/common-regobs-api/models/geo-location-summary.ts b/src/app/modules/common-regobs-api/models/geo-location-summary.ts deleted file mode 100644 index ca6331e2b..000000000 --- a/src/app/modules/common-regobs-api/models/geo-location-summary.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface GeoLocationSummary { - Header?: string; - Lines?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/helptext-dto.ts b/src/app/modules/common-regobs-api/models/helptext-dto.ts deleted file mode 100644 index 67b00af51..000000000 --- a/src/app/modules/common-regobs-api/models/helptext-dto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface HelptextDto { - GeoHazardTID?: number; - LangKey?: number; - RegistrationTID?: number; - Text?: string; -} diff --git a/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts deleted file mode 100644 index 7edd34b2a..000000000 --- a/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -import { UrlEditModel } from './url-edit-model'; -export interface IceCoverEditModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om observasjonen. - */ - Comment?: string; - - /** - * Bæreevne. IceCapacityKD unique identifier - */ - IceCapacityTID?: number; - IceCoverAfterTID?: number; - - /** - * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier - */ - IceCoverBeforeTID?: number; - - /** - * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier - */ - IceCoverTID?: number; - - /** - * Skøytebarhet. IceSkateabilityKD unique identifier - */ - IceSkateabilityTID?: number; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts deleted file mode 100644 index 7b80bb4eb..000000000 --- a/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* tslint:disable */ -import { UrlViewModel } from './url-view-model'; -export interface IceCoverViewModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om observasjonen. - */ - Comment?: string; - IceCapacityName?: string; - - /** - * Bæreevne. IceCapacityKD unique identifier - */ - IceCapacityTID?: number; - IceCoverAfterName?: string; - IceCoverAfterTID?: number; - IceCoverBeforeName?: string; - - /** - * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier - */ - IceCoverBeforeTID?: number; - IceCoverName?: string; - - /** - * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier - */ - IceCoverTID?: number; - IceSkateabilityName?: string; - - /** - * Skøytebarhet. IceSkateabilityKD unique identifier - */ - IceSkateabilityTID?: number; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts deleted file mode 100644 index f867c2147..000000000 --- a/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -import { IceThicknessLayerEditModel } from './ice-thickness-layer-edit-model'; -export interface IceThicknessEditModel { - - /** - * Comment - */ - Comment?: string; - - /** - * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. - */ - IceHeightAfter?: number; - - /** - * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. - */ - IceHeightBefore?: number; - IceThicknessLayers?: Array; - - /** - * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. - */ - IceThicknessSum?: number; - - /** - * Mengden sørpe oppå isen. Verdi i meter [m]. - */ - SlushSnow?: number; - - /** - * Mengden tørr snø oppå isen. Verdi i meter [m]. - */ - SnowDepth?: number; -} diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts deleted file mode 100644 index 40cbd26bd..000000000 --- a/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* tslint:disable */ -export interface IceThicknessLayerEditModel { - - /** - * Comment - */ - Comment?: string; - - /** - * The IceLayerKD unique identifier - */ - IceLayerTID?: number; - - /** - * IceLayerThickness - */ - IceLayerThickness?: number; -} diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts deleted file mode 100644 index 1b908c323..000000000 --- a/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* tslint:disable */ -export interface IceThicknessLayerViewModel { - - /** - * Comment - */ - Comment?: string; - IceLayerName?: string; - - /** - * The IceLayerKD unique identifier - */ - IceLayerTID?: number; - - /** - * IceLayerThickness - */ - IceLayerThickness?: number; -} diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts deleted file mode 100644 index 681f6595b..000000000 --- a/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* tslint:disable */ -import { IceThicknessLayerViewModel } from './ice-thickness-layer-view-model'; -export interface IceThicknessViewModel { - - /** - * Comment - */ - Comment?: string; - - /** - * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. - */ - IceHeightAfter?: number; - - /** - * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. - */ - IceHeightBefore?: number; - IceThicknessLayers?: Array; - - /** - * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. - */ - IceThicknessSum?: number; - - /** - * Mengden sørpe oppå isen. Verdi i meter [m]. - */ - SlushSnow?: number; - - /** - * Mengden tørr snø oppå isen. Verdi i meter [m]. - */ - SnowDepth?: number; -} diff --git a/src/app/modules/common-regobs-api/models/incident-edit-model.ts b/src/app/modules/common-regobs-api/models/incident-edit-model.ts deleted file mode 100644 index e8dffc4df..000000000 --- a/src/app/modules/common-regobs-api/models/incident-edit-model.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* tslint:disable */ -import { UrlEditModel } from './url-edit-model'; -export interface IncidentEditModel { - - /** - * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier - */ - ActivityInfluencedTID?: number; - - /** - * Hvor mange var i skredet/vannet? - */ - CasualtiesNum?: number; - - /** - * Comment. - */ - Comment?: string; - - /** - * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier - */ - DamageExtentTID?: number; - - /** - * Hvor mange døde? - */ - DeadNum?: number; - - /** - * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? - */ - DtEndTime?: string; - - /** - * Hvor mange evakuerte? - */ - EvacuatedNum?: number; - - /** - * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier - */ - ForecastAccurateTID?: number; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). - */ - GeoHazardTID?: number; - - /** - * Hvor mange vart skadd? - */ - HarmedNum?: number; - - /** - * Hendelsen beskrives med overskrift .. - */ - IncidentHeader?: string; - - /** - * .. med ingress eller sammendrag .. - */ - IncidentIngress?: string; - - /** - * .. og teksten eller artikkelen. - */ - IncidentText?: string; - - /** - * Provide description for IncidentURLs - */ - IncidentURLs?: Array; - - /** - * Hvor mange var involvert? - */ - InvolvedNum?: number; - - /** - * Hvor ofte er man i området? - */ - LocalKnowledgeTID?: number; - - /** - * Var man lokal, norsk eller utenlandsk turist? - */ - LocalTouristTID?: number; - - /** - * Er det noen materielle skader? - */ - MaterialDamages?: boolean; - - /** - * Hvem gjennomførte redningen? - */ - RescueTID?: number; - - /** - * Var det noe sikkerhetsutstyr i bruk? - */ - SafetyGearTID?: number; - - /** - * Hvilken turfase? - */ - SlopeActivityTID?: number; - - /** - * Er trafikk hindret? - */ - TrafficObstructed?: boolean; -} diff --git a/src/app/modules/common-regobs-api/models/incident-view-model.ts b/src/app/modules/common-regobs-api/models/incident-view-model.ts deleted file mode 100644 index aa4f3823e..000000000 --- a/src/app/modules/common-regobs-api/models/incident-view-model.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* tslint:disable */ -import { UrlViewModel } from './url-view-model'; -export interface IncidentViewModel { - ActivityInfluencedName?: string; - - /** - * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier - */ - ActivityInfluencedTID?: number; - - /** - * Hvor mange var i skredet/vannet? - */ - CasualtiesNum?: number; - - /** - * Comment. - */ - Comment?: string; - DamageExtentName?: string; - - /** - * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier - */ - DamageExtentTID?: number; - - /** - * Hvor mange døde? - */ - DeadNum?: number; - - /** - * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? - */ - DtEndTime?: string; - - /** - * Hvor mange evakuerte? - */ - EvacuatedNum?: number; - ForecastAccurateName?: string; - - /** - * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier - */ - ForecastAccurateTID?: number; - GeoHazardName?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). - */ - GeoHazardTID?: number; - - /** - * Hvor mange vart skadd? - */ - HarmedNum?: number; - - /** - * Hendelsen beskrives med overskrift .. - */ - IncidentHeader?: string; - - /** - * .. med ingress eller sammendrag .. - */ - IncidentIngress?: string; - - /** - * .. og teksten eller artikkelen. - */ - IncidentText?: string; - - /** - * Provide description for IncidentURLs - */ - IncidentURLs?: Array; - - /** - * Hvor mange var involvert? - */ - InvolvedNum?: number; - - /** - * Hvor ofte er man i området? - */ - LocalKnowledgeName?: string; - - /** - * Hvor ofte er man i området? - */ - LocalKnowledgeTID?: number; - - /** - * Var man lokal, norsk eller utenlandsk turist? - */ - LocalTouristName?: string; - - /** - * Var man lokal, norsk eller utenlandsk turist? - */ - LocalTouristTID?: number; - - /** - * Er det noen materielle skader? - */ - MaterialDamages?: boolean; - - /** - * Hvem gjennomførte redningen? - */ - RescueName?: string; - - /** - * Hvem gjennomførte redningen? - */ - RescueTID?: number; - - /** - * Hadde man sikkerhetsutstyr? - */ - SafetyGearName?: string; - - /** - * Var det noe sikkerhetsutstyr i bruk? - */ - SafetyGearTID?: number; - - /** - * Hvilken turfase gjelder det? - */ - SlopeActivityName?: string; - - /** - * Hvilken turfase? - */ - SlopeActivityTID?: number; - - /** - * Er trafikk hindret? - */ - TrafficObstructed?: boolean; -} diff --git a/src/app/modules/common-regobs-api/models/kdv-element.ts b/src/app/modules/common-regobs-api/models/kdv-element.ts deleted file mode 100644 index 8b40291db..000000000 --- a/src/app/modules/common-regobs-api/models/kdv-element.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -export interface KdvElement { - Description?: string; - Id: number; - Name?: string; -} diff --git a/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts deleted file mode 100644 index 60f7579a6..000000000 --- a/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -import { KdvElement } from './kdv-element'; -export interface KdvElementsResponseDto { - KdvRepositories?: {[key: string]: Array}; - ViewRepositories?: {[key: string]: unknown}; -} diff --git a/src/app/modules/common-regobs-api/models/landslide-edit-model.ts b/src/app/modules/common-regobs-api/models/landslide-edit-model.ts deleted file mode 100644 index c95ed9d57..000000000 --- a/src/app/modules/common-regobs-api/models/landslide-edit-model.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* tslint:disable */ -import { UrlEditModel } from './url-edit-model'; -export interface LandslideEditModel { - - /** - * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier - */ - ActivityInfluencedTID?: number; - Comment?: string; - - /** - * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier - */ - DamageExtentTID?: number; - - /** - * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. - */ - DtLandSlideTime: string; - - /** - * Når stoppet skredet? - */ - DtLandSlideTimeEnd?: string; - - /** - * Hull of avalanche polygon, List(lon, lat) - */ - Extent?: Array>; - - /** - * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier - */ - ForecastAccurateTID?: number; - - /** - * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; - - /** - * Hvor stort er skredet? The LandSlideSizeKD unique identifier - */ - LandSlideSizeTID?: number; - - /** - * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier - */ - LandSlideTID?: number; - - /** - * Hva utløste skredet? The LandSlideTriggerKD unique identifier - */ - LandSlideTriggerTID?: number; - - /** - * Hull of avalanche starting zone, List(lon, lat) - */ - StartExtent?: Array>; - - /** - * Latitude start posisjon - */ - StartLat?: number; - - /** - * Long start posisjon - */ - StartLong?: number; - - /** - * Hull of avalanche runout zone, List(lon, lat) - */ - StopExtent?: Array>; - - /** - * Latitude stopp posisjon - */ - StopLat?: number; - - /** - * Long stopp posisjon - */ - StopLong?: number; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/landslide-view-model.ts b/src/app/modules/common-regobs-api/models/landslide-view-model.ts deleted file mode 100644 index ea2525df4..000000000 --- a/src/app/modules/common-regobs-api/models/landslide-view-model.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -import { UrlViewModel } from './url-view-model'; -export interface LandslideViewModel { - ActivityInfluencedName?: string; - - /** - * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier - */ - ActivityInfluencedTID?: number; - Comment?: string; - DamageExtentName?: string; - - /** - * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier - */ - DamageExtentTID?: number; - - /** - * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. - */ - DtLandSlideTime: string; - - /** - * Når stoppet skredet? - */ - DtLandSlideTimeEnd?: string; - - /** - * Hull of avalanche polygon, List(lon, lat) - */ - Extent?: Array>; - ForecastAccurateName?: string; - - /** - * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier - */ - ForecastAccurateTID?: number; - GeoHazardName?: string; - - /** - * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier - */ - GeoHazardTID?: number; - LandSlideName?: string; - LandSlideSizeName?: string; - - /** - * Hvor stort er skredet? The LandSlideSizeKD unique identifier - */ - LandSlideSizeTID?: number; - - /** - * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier - */ - LandSlideTID?: number; - LandSlideTriggerName?: string; - - /** - * Hva utløste skredet? The LandSlideTriggerKD unique identifier - */ - LandSlideTriggerTID?: number; - - /** - * Hull of avalanche starting zone, List(lon, lat) - */ - StartExtent?: Array>; - - /** - * Latitude start posisjon - */ - StartLat?: number; - - /** - * Long start posisjon - */ - StartLong?: number; - - /** - * Hull of avalanche runout zone, List(lon, lat) - */ - StopExtent?: Array>; - - /** - * Latitude stopp posisjon - */ - StopLat?: number; - - /** - * Long stopp posisjon - */ - StopLong?: number; - Urls?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/lat-lng-object.ts b/src/app/modules/common-regobs-api/models/lat-lng-object.ts deleted file mode 100644 index 8a4192d94..000000000 --- a/src/app/modules/common-regobs-api/models/lat-lng-object.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface LatLngObject { - Latitude: number; - Longitude: number; -} diff --git a/src/app/modules/common-regobs-api/models/lat-lng.ts b/src/app/modules/common-regobs-api/models/lat-lng.ts deleted file mode 100644 index d1f104eb1..000000000 --- a/src/app/modules/common-regobs-api/models/lat-lng.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface LatLng { - Latitude?: number; - Longitude?: number; -} diff --git a/src/app/modules/common-regobs-api/models/my-page-data.ts b/src/app/modules/common-regobs-api/models/my-page-data.ts deleted file mode 100644 index d18485d57..000000000 --- a/src/app/modules/common-regobs-api/models/my-page-data.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -import { ObserverCompetenceDto } from './observer-competence-dto'; -import { ObserverGroupDto } from './observer-group-dto'; -export interface MyPageData { - Adrnr?: number; - Competence?: Array; - DefaultMunicipality?: string; - DtRegTime?: string; - Email?: string; - FirstName?: string; - Guid?: string; - LastName?: string; - LastRegistrationDate?: string; - MainGeohazardTID?: number; - MemberOfGroups?: Array; - MobPhoneNr?: string; - NickName?: string; - NumberOfObservations?: number; - - /** - * Returns unique id that identifies an observer - */ - ObserverId?: number; - PendingInvitationsToGroups?: Array; - Roles?: Array; - WorkPlace?: string; -} diff --git a/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts deleted file mode 100644 index 6eb01b0cb..000000000 --- a/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* tslint:disable */ -export interface ObsLocationEditModel { - - /** - * Latitude - */ - Latitude: number; - - /** - * Beskriver stedet. - */ - LocationDescription?: string; - - /** - * Navn på stedet - */ - LocationName?: string; - - /** - * Longitude - */ - Longitude: number; - - /** - * ObsLocationID - */ - ObsLocationID?: number; - - /** - * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD - */ - UTMSourceTID?: number; - - /** - * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. - */ - Uncertainty?: number; -} diff --git a/src/app/modules/common-regobs-api/models/obs-location-view-model.ts b/src/app/modules/common-regobs-api/models/obs-location-view-model.ts deleted file mode 100644 index 751b0149f..000000000 --- a/src/app/modules/common-regobs-api/models/obs-location-view-model.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* tslint:disable */ -export interface ObsLocationViewModel { - CountryId?: number; - CountryName?: string; - ForecastRegionName?: string; - - /** - * Anngir varslingsregion stedet tilhører. Varslingsregioner gitt i ForecastRegionKD. The ForecastRegionKD unique identifier - */ - ForecastRegionTID?: number; - Height?: number; - - /** - * Latitude - */ - Latitude: number; - - /** - * Beskriver stedet. - */ - LocationDescription?: string; - - /** - * Navn på stedet - */ - LocationName?: string; - - /** - * Longitude - */ - Longitude: number; - MunicipalName?: string; - - /** - * Kommune nr stedet tilhører - */ - MunicipalNo?: string; - - /** - * ObsLocationID - */ - ObsLocationID?: number; - - /** - * Read-only generert tittel - */ - Title?: string; - UTMSourceName?: string; - - /** - * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD - */ - UTMSourceTID?: number; - - /** - * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. - */ - Uncertainty?: number; -} diff --git a/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts deleted file mode 100644 index fc47cf93c..000000000 --- a/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* tslint:disable */ -import { LatLngObject } from './lat-lng-object'; -export interface ObsLocationsResponseDtoV2 { - Distance?: number; - GeoHazardId?: number; - Id?: number; - LatLngObject?: LatLngObject; - LocationDescription?: string; - Name?: string; - ObserverGroupId?: number; - ObserverGroupName?: string; - ObserverNickName?: string; -} diff --git a/src/app/modules/common-regobs-api/models/observer-competence-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-dto.ts deleted file mode 100644 index 9c60b389a..000000000 --- a/src/app/modules/common-regobs-api/models/observer-competence-dto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface ObserverCompetenceDto { - CompetenceDescription?: string; - CompetenceName?: string; - CompetenceTID: number; - GeohazardTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts deleted file mode 100644 index 6bdbe652f..000000000 --- a/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface ObserverCompetenceLevelDto { - Description?: string; - Id: number; - Name: string; - SortOrder?: number; -} diff --git a/src/app/modules/common-regobs-api/models/observer-group-dto.ts b/src/app/modules/common-regobs-api/models/observer-group-dto.ts deleted file mode 100644 index 3ee8fa24e..000000000 --- a/src/app/modules/common-regobs-api/models/observer-group-dto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* tslint:disable */ -export interface ObserverGroupDto { - Comment?: string; - Id: number; - Name?: string; - ObserverGroupDescription?: string; - WorkPlace?: string; -} diff --git a/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts deleted file mode 100644 index 3ccb95e7d..000000000 --- a/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* tslint:disable */ -export interface ObserverPatchRequestDto { - Nick?: string; -} diff --git a/src/app/modules/common-regobs-api/models/observer-response-dto.ts b/src/app/modules/common-regobs-api/models/observer-response-dto.ts deleted file mode 100644 index 0db49c655..000000000 --- a/src/app/modules/common-regobs-api/models/observer-response-dto.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -import { ObserverGroupDto } from './observer-group-dto'; -export interface ObserverResponseDto { - Guid?: string; - Nick?: string; - ObserverGroup?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/observer-view-model.ts b/src/app/modules/common-regobs-api/models/observer-view-model.ts deleted file mode 100644 index 455b7e8b7..000000000 --- a/src/app/modules/common-regobs-api/models/observer-view-model.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface ObserverViewModel { - CompetenceLevelName?: string; - CompetenceLevelTID?: number; - NickName?: string; - ObserverID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/position-dto.ts b/src/app/modules/common-regobs-api/models/position-dto.ts deleted file mode 100644 index 95e2e769c..000000000 --- a/src/app/modules/common-regobs-api/models/position-dto.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface PositionDto { - Latitude?: number; - Longitude?: number; -} diff --git a/src/app/modules/common-regobs-api/models/property-filter.ts b/src/app/modules/common-regobs-api/models/property-filter.ts deleted file mode 100644 index 6e74a9053..000000000 --- a/src/app/modules/common-regobs-api/models/property-filter.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* tslint:disable */ - -/** - * Filter by property value - */ -export interface PropertyFilter { - - /** - * Property name. Properties in sub schemas must be prefixed with schema name. - * Example: AvalancheObs.AvalancheTID - * Multiple instance schemas, like DangerSign, are not supported. - * If you use unknown/unsupported properties, you will get an HTTP 400. - */ - Name?: string; - Operator?: 0; - - /** - * Target property value - */ - Value?: string; -} diff --git a/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts deleted file mode 100644 index 431861c02..000000000 --- a/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -export interface RegObsGenericValue { - Header?: string; - Kind?: 0 | 1 | 2; - KindType?: string; - Value?: {}; -} diff --git a/src/app/modules/common-regobs-api/models/registration-edit-model.ts b/src/app/modules/common-regobs-api/models/registration-edit-model.ts deleted file mode 100644 index 4e48e0718..000000000 --- a/src/app/modules/common-regobs-api/models/registration-edit-model.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -import { AttachmentEditModel } from './attachment-edit-model'; -import { AvalancheActivityObs2EditModel } from './avalanche-activity-obs-2edit-model'; -import { AvalancheEvalProblem2EditModel } from './avalanche-eval-problem-2edit-model'; -import { AvalancheEvaluation3EditModel } from './avalanche-evaluation-3edit-model'; -import { AvalancheObsEditModel } from './avalanche-obs-edit-model'; -import { CompressionTestEditModel } from './compression-test-edit-model'; -import { DamageObsEditModel } from './damage-obs-edit-model'; -import { DangerObsEditModel } from './danger-obs-edit-model'; -import { GeneralObservationEditModel } from './general-observation-edit-model'; -import { IceCoverEditModel } from './ice-cover-edit-model'; -import { IceThicknessEditModel } from './ice-thickness-edit-model'; -import { IncidentEditModel } from './incident-edit-model'; -import { LandslideEditModel } from './landslide-edit-model'; -import { ObsLocationEditModel } from './obs-location-edit-model'; -import { SnowProfileEditModel } from './snow-profile-edit-model'; -import { SnowSurfaceEditModel } from './snow-surface-edit-model'; -import { Waterlevel2EditModel } from './waterlevel-2edit-model'; -import { WeatherEditModel } from './weather-edit-model'; -export interface RegistrationEditModel { - - /** - * If set to true, the user's account will not be shown publicly. NVE will still be able to see who sent in the observation. - */ - Anonymous?: boolean; - Attachments?: Array; - AvalancheActivityObs2?: Array; - AvalancheEvalProblem2?: Array; - AvalancheEvaluation3?: AvalancheEvaluation3EditModel; - AvalancheObs?: AvalancheObsEditModel; - CompressionTest?: Array; - DamageObs?: Array; - DangerObs?: Array; - DtChangeTime?: string; - - /** - * Tiden da observasjonen ble gjort. - */ - DtObsTime: string; - GeneralObservation?: GeneralObservationEditModel; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID: 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 100 | 110 | 200 | 999; - IceCoverObs?: IceCoverEditModel; - IceThickness?: IceThicknessEditModel; - Incident?: IncidentEditModel; - LandSlideObs?: LandslideEditModel; - - /** - * The observation location object. Latitude and longitute are needed to create a new registration. - */ - ObsLocation?: ObsLocationEditModel; - ObserverGroupID?: number; - ObserverGroupName?: string; - SnowProfile2?: SnowProfileEditModel; - SnowSurfaceObservation?: SnowSurfaceEditModel; - - /** - * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier - */ - SourceTID?: number; - WaterLevel2?: Waterlevel2EditModel; - WeatherObservation?: WeatherEditModel; -} diff --git a/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts deleted file mode 100644 index 127fb3407..000000000 --- a/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -export interface RegistrationTypeCriteriaDto { - - /** - * TODO: See - */ - Id: number; - SubTypes?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/registration-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-dto.ts deleted file mode 100644 index 9c64f55d6..000000000 --- a/src/app/modules/common-regobs-api/models/registration-type-dto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* tslint:disable */ -import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; -export interface RegistrationTypeDto { - Id: number; - Name?: string; - SortOrder?: number; - SubTypes?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts deleted file mode 100644 index 09f7fd555..000000000 --- a/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -export interface RegistrationTypeSubTypeDto { - Id: number; - Name?: string; - SortOrder?: number; -} diff --git a/src/app/modules/common-regobs-api/models/registration-view-model.ts b/src/app/modules/common-regobs-api/models/registration-view-model.ts deleted file mode 100644 index f60b3ccfd..000000000 --- a/src/app/modules/common-regobs-api/models/registration-view-model.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -import { Summary } from './summary'; -import { AttachmentViewModel } from './attachment-view-model'; -import { AvalancheActivityObsViewModel } from './avalanche-activity-obs-view-model'; -import { AvalancheActivityObs2ViewModel } from './avalanche-activity-obs-2view-model'; -import { AvalancheDangerObsViewModel } from './avalanche-danger-obs-view-model'; -import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; -import { AvalancheEvalProblem2ViewModel } from './avalanche-eval-problem-2view-model'; -import { AvalancheEvaluationViewModel } from './avalanche-evaluation-view-model'; -import { AvalancheEvaluation2ViewModel } from './avalanche-evaluation-2view-model'; -import { AvalancheEvaluation3ViewModel } from './avalanche-evaluation-3view-model'; -import { AvalancheObsViewModel } from './avalanche-obs-view-model'; -import { CompressionTestViewModel } from './compression-test-view-model'; -import { DamageObsViewModel } from './damage-obs-view-model'; -import { DangerObsViewModel } from './danger-obs-view-model'; -import { GeneralObservationViewModel } from './general-observation-view-model'; -import { IceCoverViewModel } from './ice-cover-view-model'; -import { IceThicknessViewModel } from './ice-thickness-view-model'; -import { IncidentViewModel } from './incident-view-model'; -import { LandslideViewModel } from './landslide-view-model'; -import { ObsLocationViewModel } from './obs-location-view-model'; -import { ObserverViewModel } from './observer-view-model'; -import { SnowCoverObsViewModel } from './snow-cover-obs-view-model'; -import { SnowProfileViewModel } from './snow-profile-view-model'; -import { SnowSurfaceViewModel } from './snow-surface-view-model'; -import { WaterLevelViewModel } from './water-level-view-model'; -import { Waterlevel2ViewModel } from './waterlevel-2view-model'; -import { WeatherViewModel } from './weather-view-model'; -export interface RegistrationViewModel { - - /** - * If set to true, the user's account will not be shown publicly. NVE will still be able to see who sent in the observation. - */ - Anonymous?: boolean; - AttachmentSummaries?: Array; - Attachments?: Array; - AvalancheActivityObs?: Array; - AvalancheActivityObs2?: Array; - AvalancheDangerObs?: Array; - AvalancheEvalProblem?: Array; - AvalancheEvalProblem2?: Array; - AvalancheEvaluation?: AvalancheEvaluationViewModel; - AvalancheEvaluation2?: AvalancheEvaluation2ViewModel; - AvalancheEvaluation3?: AvalancheEvaluation3ViewModel; - AvalancheObs?: AvalancheObsViewModel; - CompressionTest?: Array; - DamageObs?: Array; - DangerObs?: Array; - - /** - * Timestamp for endret i systemet. (Read-Only) - */ - DtChangeTime?: string; - - /** - * Tiden da observasjonen ble gjort. - */ - DtObsTime: string; - - /** - * Timestamp for registrert i systemet. (Read-Only) - */ - DtRegTime: string; - - /** - * Ekstern referanse ID. Må være unik for Applikasjon. - */ - ExternalReferenceId?: string; - GeneralObservation?: GeneralObservationViewModel; - GeoHazardName?: string; - - /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier - */ - GeoHazardTID: 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 100 | 110 | 200 | 999; - IceCoverObs?: IceCoverViewModel; - IceThickness?: IceThicknessViewModel; - Incident?: IncidentViewModel; - LandSlideObs?: LandslideViewModel; - ObsLocation: ObsLocationViewModel; - Observer: ObserverViewModel; - ObserverGroupID?: number; - ObserverGroupName?: string; - RegId: number; - SnowCoverObs?: SnowCoverObsViewModel; - SnowProfile?: AttachmentViewModel; - SnowProfile2?: SnowProfileViewModel; - SnowSurfaceObservation?: SnowSurfaceViewModel; - SourceName?: string; - - /** - * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier - */ - SourceTID?: number; - Summaries?: Array; - WaterLevel?: WaterLevelViewModel; - WaterLevel2?: Waterlevel2ViewModel; - WeatherObservation?: WeatherViewModel; -} diff --git a/src/app/modules/common-regobs-api/models/search-count-response-dto.ts b/src/app/modules/common-regobs-api/models/search-count-response-dto.ts deleted file mode 100644 index 086749a62..000000000 --- a/src/app/modules/common-regobs-api/models/search-count-response-dto.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* tslint:disable */ -export interface SearchCountResponseDto { - TotalMatches?: number; -} diff --git a/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts deleted file mode 100644 index ecddfc559..000000000 --- a/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; -import { PropertyFilter } from './property-filter'; -import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; -import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; - -/** - * Use this to filter out registrations. - */ -export interface SearchCriteriaExclUserRequestDto { - - /** - * Descending order is default. Set this to true to use ascending order. - */ - AscendingOrder?: boolean; - - /** - * Find registrations in given county. - * Only relevant for Norway. - * ØSTFOLD = 01, AKERSHUS = 02, OSLO = 03, HEDMARK = 04, OPPLAND = 05, BUSKERUD = 06, VESTFOLD = 07, TELEMARK = 08, AUST-AGDER = 09, VEST-AGDER = 10, ROGALAND = 11, HORDALAND = 12, SOGN OG FJORDANE = 14, MØRE OG ROMSDAL = 15, SØR-TRØNDELAG = 16, NORD-TRØNDELAG = 17, NORDLAND = 18, TROMS = 19, FINNMARK = 20, SVALBARD = 21, VIKEN = 30, INNLANDET = 34, VESTFOLD OG TELEMARK = 38, AGDER = 42, VESTLAND = 46, Trøndelag = 50, TROMS OG FINNMARK = 54 - */ - Counties?: Array; - Countries?: Array; - Extent?: WithinExtentCriteriaDto; - - /** - * Find registrations saved or changed after given date and time (inclusive) - */ - FromDtChangeTime?: string; - - /** - * Find registrations with obervation time after given date and time (inclusive) - */ - FromDtObsTime?: string; - - /** - * Language of result - * Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. - * Default = 1 - */ - LangKey?: number; - LocationId?: number; - - /** - * Max number of registrations to return. Default = 100 - */ - NumberOfRecords?: number; - - /** - * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk - */ - Offset?: number; - - /** - * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work - */ - OrderBy?: string; - - /** - * Find registrations with given property value. - * [Obsolete("Experimental feature that may be changed or removed in later versions")] - */ - PropertyFilters?: Array; - Radius?: WithinRadiusCriteriaDto; - - /** - * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} - */ - RegId?: number; - - /** - * Find registrations on given geo hazard ID's. - * Snow = 10, dirt = 20, water = 60, ice = 70. - */ - SelectedGeoHazards?: Array; - - /** - * Find registrations in given regions. - * Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. - */ - SelectedRegions?: Array; - - /** - * Find registrations of given types. - * Use /Search/SearchCriteria to find out which types are used for different geo hazards. - */ - SelectedRegistrationTypes?: Array; - TextSearch?: string; - TimeZone?: string; - - /** - * Find registrations saved or changed before given date and time (inclusive) - */ - ToDtChangeTime?: string; - - /** - * Find registrations with obervation time before given date and time (inclusive) - */ - ToDtObsTime?: string; -} diff --git a/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts deleted file mode 100644 index cbfacb36a..000000000 --- a/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts +++ /dev/null @@ -1,127 +0,0 @@ -/* tslint:disable */ -import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; -import { PropertyFilter } from './property-filter'; -import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; -import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; - -/** - * Use this to filter out registrations. - */ -export interface SearchCriteriaRequestDto { - - /** - * Descending order is default. Set this to true to use ascending order. - */ - AscendingOrder?: boolean; - - /** - * Find registrations in given county. - * Only relevant for Norway. - * ØSTFOLD = 01, AKERSHUS = 02, OSLO = 03, HEDMARK = 04, OPPLAND = 05, BUSKERUD = 06, VESTFOLD = 07, TELEMARK = 08, AUST-AGDER = 09, VEST-AGDER = 10, ROGALAND = 11, HORDALAND = 12, SOGN OG FJORDANE = 14, MØRE OG ROMSDAL = 15, SØR-TRØNDELAG = 16, NORD-TRØNDELAG = 17, NORDLAND = 18, TROMS = 19, FINNMARK = 20, SVALBARD = 21, VIKEN = 30, INNLANDET = 34, VESTFOLD OG TELEMARK = 38, AGDER = 42, VESTLAND = 46, Trøndelag = 50, TROMS OG FINNMARK = 54 - */ - Counties?: Array; - Countries?: Array; - Extent?: WithinExtentCriteriaDto; - - /** - * Find registrations saved or changed after given date and time (inclusive) - */ - FromDtChangeTime?: string; - - /** - * Find registrations with obervation time after given date and time (inclusive) - */ - FromDtObsTime?: string; - - /** - * Find registrations made by the observers in a specific group - */ - GroupId?: number; - - /** - * Language of result - * Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. - * Default = 1 - */ - LangKey?: number; - LocationId?: number; - - /** - * Max number of registrations to return. Default = 100 - */ - NumberOfRecords?: number; - - /** - * Find registrations made by observers with specific competence level IDs - * Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. - */ - ObserverCompetence?: Array; - - /** - * Find registrations made by the observer with given GUID. - * This attribute is deprecated and will be removed in the future. - */ - ObserverGuid?: string; - - /** - * Find registrations made by the observer with given ID - */ - ObserverId?: number; - - /** - * Find registrations made by the observer with given nick name - */ - ObserverNickName?: string; - - /** - * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk - */ - Offset?: number; - - /** - * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work - */ - OrderBy?: string; - - /** - * Find registrations with given property value. - * [Obsolete("Experimental feature that may be changed or removed in later versions")] - */ - PropertyFilters?: Array; - Radius?: WithinRadiusCriteriaDto; - - /** - * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} - */ - RegId?: number; - - /** - * Find registrations on given geo hazard ID's. - * Snow = 10, dirt = 20, water = 60, ice = 70. - */ - SelectedGeoHazards?: Array; - - /** - * Find registrations in given regions. - * Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. - */ - SelectedRegions?: Array; - - /** - * Find registrations of given types. - * Use /Search/SearchCriteria to find out which types are used for different geo hazards. - */ - SelectedRegistrationTypes?: Array; - TextSearch?: string; - TimeZone?: string; - - /** - * Find registrations saved or changed before given date and time (inclusive) - */ - ToDtChangeTime?: string; - - /** - * Find registrations with obervation time before given date and time (inclusive) - */ - ToDtObsTime?: string; -} diff --git a/src/app/modules/common-regobs-api/models/search-registrations-with-attachments.ts b/src/app/modules/common-regobs-api/models/search-registrations-with-attachments.ts deleted file mode 100644 index 50baf93ce..000000000 --- a/src/app/modules/common-regobs-api/models/search-registrations-with-attachments.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { AttachmentViewModel } from "./attachment-view-model"; - -export interface SearchRegistrationsWithAttachments { - - /// Unique registration id that contains attachments - RegId: number - - /// List of registration's attachments - Attachments: Array -} diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts deleted file mode 100644 index 831562cc2..000000000 --- a/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { AreasDto } from './areas-dto'; -import { ObserverCompetenceLevelDto } from './observer-competence-level-dto'; -import { RegistrationTypeDto } from './registration-type-dto'; -export interface SearchSideBarDto { - Areas?: Array; - ObserverCompetenceLevels?: {NotSpecified?: Array, Avalanche?: Array, EarthFlow?: Array, LandSlide?: Array, RockFall?: Array, IceFall?: Array, Flooding?: Array, Ice?: Array, EventOnGlacier?: Array, Jøkulhaup?: Array, Drought?: Array, Unknown?: Array}; - RegistrationTypes?: {NotSpecified?: Array, Avalanche?: Array, EarthFlow?: Array, LandSlide?: Array, RockFall?: Array, IceFall?: Array, Flooding?: Array, Ice?: Array, EventOnGlacier?: Array, Jøkulhaup?: Array, Drought?: Array, Unknown?: Array}; -} diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts deleted file mode 100644 index fd3a91fbc..000000000 --- a/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* tslint:disable */ -export interface SearchSideBarRequestDto { - - /** - * Snow = 10, dirt = 20, water = 60, ice = 70. - * At least one geo hazard is required. - */ - GeoHazards?: Array<0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 100 | 110 | 200 | 999>; - - /** - * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 - * Default = 2. - */ - LangKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; -} diff --git a/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts deleted file mode 100644 index f65d91724..000000000 --- a/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* tslint:disable */ -export interface SnowCoverObsViewModel { - - /** - * Comment. - */ - Comment?: string; - - /** - * CriticalLayerExists - */ - CriticalLayerExists?: boolean; - - /** - * CriticalLayerLocation - */ - CriticalLayerLocation?: number; - CriticalLayerName?: string; - - /** - * The CriticalLayerKD unique identifier - */ - CriticalLayerTID?: number; - - /** - * DepthHoarThickness - */ - DepthHoarThickness?: number; - - /** - * SnowPilotRef - */ - SnowPilotRef?: string; -} diff --git a/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts deleted file mode 100644 index 64215d26a..000000000 --- a/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* tslint:disable */ -export interface SnowDensityLayerModel { - Comment?: string; - - /** - * Density in kg/m^3 - */ - Density?: number; - Depth?: number; - SortOrder?: number; - - /** - * thickness in m - */ - Thickness?: number; - WaterEquivalent?: number; - - /** - * Weight in KG - */ - Weight?: number; -} diff --git a/src/app/modules/common-regobs-api/models/snow-density-model.ts b/src/app/modules/common-regobs-api/models/snow-density-model.ts deleted file mode 100644 index 270d4e8b9..000000000 --- a/src/app/modules/common-regobs-api/models/snow-density-model.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* tslint:disable */ -import { SnowDensityLayerModel } from './snow-density-layer-model'; -export interface SnowDensityModel { - Comment?: string; - CylinderDiameter?: number; - Layers?: Array; - TareWeight?: number; -} diff --git a/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts deleted file mode 100644 index 76cabca25..000000000 --- a/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* tslint:disable */ -import { SnowDensityModel } from './snow-density-model'; -import { SnowTempModel } from './snow-temp-model'; -import { StratProfileEditModel } from './strat-profile-edit-model'; -export interface SnowProfileEditModel { - Comment?: string; - Exposition?: number; - IsProfileToGround?: boolean; - SlopeAngle?: number; - SnowDensity?: Array; - SnowTemp?: SnowTempModel; - StratProfile?: StratProfileEditModel; -} diff --git a/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts deleted file mode 100644 index 450808c62..000000000 --- a/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* tslint:disable */ -import { AttachmentViewModel } from './attachment-view-model'; -import { SnowDensityModel } from './snow-density-model'; -import { SnowTempModel } from './snow-temp-model'; -import { StratProfileViewModel } from './strat-profile-view-model'; -export interface SnowProfileViewModel { - Comment?: string; - Exposition?: number; - IsProfileToGround?: boolean; - SlopeAngle?: number; - SnowDensity?: Array; - SnowTemp?: SnowTempModel; - StratProfile?: StratProfileViewModel; - TotalDepth?: number; - - /** Metadata til bilde av snøprofil-plott */ - PlotImage?: AttachmentViewModel; -} diff --git a/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts deleted file mode 100644 index b5413cd34..000000000 --- a/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -export interface SnowSurfaceEditModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om observasjonen. - */ - Comment?: string; - - /** - * Grense lagdelt snø (moh) - */ - HeightLimitLayeredSnow?: number; - - /** - * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området - */ - NewSnowDepth24?: number; - - /** - * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. - */ - NewSnowLine?: number; - - /** - * Skiføre - */ - SkiConditionsTID?: number; - - /** - * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. - */ - SnowDepth?: number; - - /** - * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier - */ - SnowDriftTID?: number; - - /** - * Snøgrense (moh) - */ - SnowLine?: number; - - /** - * Snødekkehardhet - */ - SnowSurfaceTID?: number; - - /** - * Overflatefuktighet - */ - SurfaceWaterContentTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts deleted file mode 100644 index a38220f65..000000000 --- a/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* tslint:disable */ -export interface SnowSurfaceViewModel { - - /** - * Kommentarfelt for å skrive utfyllende tekst om observasjonen. - */ - Comment?: string; - - /** - * Obsolete - Only in View Model - */ - FootPenetration?: number; - - /** - * Grense lagdelt snø (moh) - */ - HeightLimitLayeredSnow?: number; - - /** - * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området - */ - NewSnowDepth24?: number; - - /** - * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. - */ - NewSnowLine?: number; - SkiConditionsName?: string; - SkiConditionsTID?: number; - - /** - * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. - */ - SnowDepth?: number; - SnowDriftName?: string; - - /** - * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier - */ - SnowDriftTID?: number; - - /** - * Snøgrense (moh) - */ - SnowLine?: number; - SnowSurfaceName?: string; - - /** - * Snødekkehardhet - */ - SnowSurfaceTID?: number; - - /** - * Obsolete - Only in View Model - */ - SnowWindDepth24?: number; - SurfaceRougnessName?: string; - - /** - * Obsolete - Only in View Model - */ - SurfaceRougnessTID?: number; - SurfaceWaterContentName?: string; - - /** - * Overflatefuktighet - */ - SurfaceWaterContentTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/snow-temp-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-model.ts deleted file mode 100644 index f5bffa7b4..000000000 --- a/src/app/modules/common-regobs-api/models/snow-temp-model.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -import { SnowTempObsModel } from './snow-temp-obs-model'; -export interface SnowTempModel { - Layers?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts deleted file mode 100644 index d0485d16b..000000000 --- a/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -export interface SnowTempObsModel { - Depth?: number; - SnowTemp?: number; -} diff --git a/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts deleted file mode 100644 index e9b723764..000000000 --- a/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* tslint:disable */ -import { StratProfileLayerEditModel } from './strat-profile-layer-edit-model'; -export interface StratProfileEditModel { - Layers?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts deleted file mode 100644 index 22bd7af75..000000000 --- a/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* tslint:disable */ -export interface StratProfileLayerEditModel { - Comment?: string; - CriticalLayerTID?: number; - DepthTop?: number; - GrainFormPrimaryTID?: number; - GrainFormSecondaryTID?: number; - GrainSizeAvg?: number; - GrainSizeAvgMax?: number; - HardnessBottomTID?: number; - HardnessTID?: number; - SortOrder?: number; - Thickness?: number; - WetnessTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts deleted file mode 100644 index 529bc09e7..000000000 --- a/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* tslint:disable */ -export interface StratProfileLayerViewModel { - Comment?: string; - CriticalLayerTID?: number; - CriticalLayerTName?: string; - DepthTop?: number; - GrainFormPrimaryTID?: number; - GrainFormPrimaryTName?: string; - GrainFormSecondaryTID?: number; - GrainFormSecondaryTName?: string; - GrainSizeAvg?: number; - GrainSizeAvgMax?: number; - HardnessBottomTID?: number; - HardnessBottomTName?: string; - HardnessTID?: number; - HardnessTName?: string; - SortOrder?: number; - Thickness?: number; - WetnessTID?: number; - WetnessTName?: string; -} diff --git a/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts deleted file mode 100644 index 0ec7de253..000000000 --- a/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; -export interface StratProfileViewModel { - Layers?: Array; - TotalDepth?: number; - - /** URL til bilde av snøprofil-plott */ - PlotImageUrl?: string; -} diff --git a/src/app/modules/common-regobs-api/models/summary.ts b/src/app/modules/common-regobs-api/models/summary.ts deleted file mode 100644 index 4268ceaab..000000000 --- a/src/app/modules/common-regobs-api/models/summary.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* tslint:disable */ -import { RegObsGenericValue } from './reg-obs-generic-value'; -export interface Summary { - RegistrationName?: string; - RegistrationTID?: number; - Summaries?: Array; -} diff --git a/src/app/modules/common-regobs-api/models/url-edit-model.ts b/src/app/modules/common-regobs-api/models/url-edit-model.ts deleted file mode 100644 index 57756f096..000000000 --- a/src/app/modules/common-regobs-api/models/url-edit-model.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* tslint:disable */ -export interface UrlEditModel { - - /** - * UrlDescription - */ - UrlDescription?: string; - - /** - * UrlLine - */ - UrlLine?: string; -} diff --git a/src/app/modules/common-regobs-api/models/url-view-model.ts b/src/app/modules/common-regobs-api/models/url-view-model.ts deleted file mode 100644 index 64adceb0d..000000000 --- a/src/app/modules/common-regobs-api/models/url-view-model.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* tslint:disable */ -export interface UrlViewModel { - - /** - * UrlDescription - */ - UrlDescription?: string; - - /** - * UrlLine - */ - UrlLine?: string; -} diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts deleted file mode 100644 index 93e1f5f61..000000000 --- a/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { AttachmentEditModel } from './attachment-edit-model'; -export interface WaterLevelMeasurementEditModel { - Attachments?: Array; - Comment?: string; - DtMeasurementTime: string; - WaterLevelMeasurementId?: number; - WaterLevelValue?: number; -} diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts deleted file mode 100644 index 7103c3d69..000000000 --- a/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { AttachmentViewModel } from './attachment-view-model'; -export interface WaterLevelMeasurementViewModel { - Attachments?: Array; - Comment?: string; - DtMeasurementTime: string; - WaterLevelMeasurementId?: number; - WaterLevelValue?: number; -} diff --git a/src/app/modules/common-regobs-api/models/water-level-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-view-model.ts deleted file mode 100644 index 1280717a6..000000000 --- a/src/app/modules/common-regobs-api/models/water-level-view-model.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* tslint:disable */ -export interface WaterLevelViewModel { - Comment?: string; - IsRiver?: boolean; - MeasuredDischarge?: number; - WaterLevelDescribed?: string; - WaterLevelRefName?: string; - WaterLevelRefTID?: number; - WaterLevelValue?: number; -} diff --git a/src/app/modules/common-regobs-api/models/waterlevel-2edit-model.ts b/src/app/modules/common-regobs-api/models/waterlevel-2edit-model.ts deleted file mode 100644 index 57212d007..000000000 --- a/src/app/modules/common-regobs-api/models/waterlevel-2edit-model.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* tslint:disable */ -import { WaterLevelMeasurementEditModel } from './water-level-measurement-edit-model'; -export interface Waterlevel2EditModel { - Comment?: string; - Extent?: Array>; - MarkingReferenceTID?: number; - MarkingTypeTID?: number; - MeasurementReferenceTID?: number; - MeasurementTypeTID?: number; - MeasuringToolDescription?: string; - ObservationTimingTID?: number; - WaterAstrayTID?: number; - WaterLevelMeasurement?: Array; - WaterLevelMethodTID?: number; - WaterLevelStateTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/waterlevel-2view-model.ts b/src/app/modules/common-regobs-api/models/waterlevel-2view-model.ts deleted file mode 100644 index 19c71e508..000000000 --- a/src/app/modules/common-regobs-api/models/waterlevel-2view-model.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* tslint:disable */ -import { WaterLevelMeasurementViewModel } from './water-level-measurement-view-model'; -export interface Waterlevel2ViewModel { - Comment?: string; - /** - * Flood polygon area, List(lon, lat) - */ - Extent?: Array>; - MarkingReferenceName?: string; - MarkingReferenceTID?: number; - MarkingTypeName?: string; - MarkingTypeTID?: number; - MeasurementReferenceName?: string; - MeasurementReferenceTID?: number; - MeasurementTypeName?: string; - MeasurementTypeTID?: number; - MeasuringToolDescription?: string; - ObservationTimingName?: string; - ObservationTimingTID?: number; - WaterAstrayName?: string; - WaterAstrayTID?: number; - WaterLevelMeasurement?: Array; - WaterLevelMethodName?: string; - WaterLevelMethodTID?: number; - WaterLevelStateName?: string; - WaterLevelStateTID?: number; -} diff --git a/src/app/modules/common-regobs-api/models/weather-edit-model.ts b/src/app/modules/common-regobs-api/models/weather-edit-model.ts deleted file mode 100644 index e2bb2d4ca..000000000 --- a/src/app/modules/common-regobs-api/models/weather-edit-model.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -export interface WeatherEditModel { - AirTemperature?: number; - CloudCover?: number; - Comment?: string; - PrecipitationTID?: number; - WindDirection?: number; - WindSpeed?: number; -} diff --git a/src/app/modules/common-regobs-api/models/weather-view-model.ts b/src/app/modules/common-regobs-api/models/weather-view-model.ts deleted file mode 100644 index 5fd7576ba..000000000 --- a/src/app/modules/common-regobs-api/models/weather-view-model.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* tslint:disable */ -export interface WeatherViewModel { - AirTemperature?: number; - CloudCover?: number; - Comment?: string; - PrecipitationName?: string; - PrecipitationTID?: number; - WindDirection?: number; - WindDirectionName?: string; - WindSpeed?: number; -} diff --git a/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts deleted file mode 100644 index f3edd4535..000000000 --- a/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -import { PositionDto } from './position-dto'; -export interface WithinExtentCriteriaDto { - BottomRight?: PositionDto; - TopLeft?: PositionDto; -} diff --git a/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts deleted file mode 100644 index 009924c40..000000000 --- a/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* tslint:disable */ -import { PositionDto } from './position-dto'; -export interface WithinRadiusCriteriaDto { - Position?: PositionDto; - Radius?: number; -} diff --git a/src/app/modules/common-regobs-api/param.ts b/src/app/modules/common-regobs-api/param.ts new file mode 100644 index 000000000..78a2d20a6 --- /dev/null +++ b/src/app/modules/common-regobs-api/param.ts @@ -0,0 +1,69 @@ +/** + * Standard parameter styles defined by OpenAPI spec + */ +export type StandardParamStyle = + | 'matrix' + | 'label' + | 'form' + | 'simple' + | 'spaceDelimited' + | 'pipeDelimited' + | 'deepObject' + ; + +/** + * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. + */ +export type ParamStyle = StandardParamStyle | string; + +/** + * Standard parameter locations defined by OpenAPI spec + */ +export type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; + +/** + * Standard types as defined in OpenAPI Specification: Data Types + */ +export type StandardDataType = + | "integer" + | "number" + | "boolean" + | "string" + | "object" + | "array" + ; + +/** + * Standard {@link DataType}s plus your own types/classes. + */ +export type DataType = StandardDataType | string; + +/** + * Standard formats as defined in OpenAPI Specification: Data Types + */ +export type StandardDataFormat = + | "int32" + | "int64" + | "float" + | "double" + | "byte" + | "binary" + | "date" + | "date-time" + | "password" + ; + +export type DataFormat = StandardDataFormat | string; + +/** + * The parameter to encode. + */ +export interface Param { + name: string; + value: unknown; + in: ParamLocation; + style: ParamStyle, + explode: boolean; + dataType: DataType; + dataFormat: DataFormat | undefined; +} diff --git a/src/app/modules/common-regobs-api/provide-api.ts b/src/app/modules/common-regobs-api/provide-api.ts new file mode 100644 index 000000000..19c762acd --- /dev/null +++ b/src/app/modules/common-regobs-api/provide-api.ts @@ -0,0 +1,15 @@ +import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; +import { Configuration, ConfigurationParameters } from './configuration'; +import { BASE_PATH } from './variables'; + +// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). +export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { + return makeEnvironmentProviders([ + typeof configOrBasePath === "string" + ? { provide: BASE_PATH, useValue: configOrBasePath } + : { + provide: Configuration, + useValue: new Configuration({ ...configOrBasePath }), + }, + ]); +} \ No newline at end of file diff --git a/src/app/modules/common-regobs-api/public-api.ts b/src/app/modules/common-regobs-api/public-api.ts deleted file mode 100644 index 12dbaf5d4..000000000 --- a/src/app/modules/common-regobs-api/public-api.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './index'; \ No newline at end of file diff --git a/src/app/modules/common-regobs-api/regobs-api-configuration-provider.ts b/src/app/modules/common-regobs-api/regobs-api-configuration-provider.ts deleted file mode 100644 index ef49f3b10..000000000 --- a/src/app/modules/common-regobs-api/regobs-api-configuration-provider.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { AppMode } from 'src/app/modules/common-core/models'; -import { RegobsApiConfigurationInterface } from './regobs-api-configuration'; -import { OnDestroy, Injectable } from '@angular/core'; -import { Subscription } from 'rxjs'; -import { settings } from 'src/settings'; -import { UserSettingService } from 'src/app/core/services/user-setting/user-setting.service'; - -@Injectable() -export class RegObsApiConfigurationProvider implements RegobsApiConfigurationInterface, OnDestroy { - private subscription: Subscription; - private appMode: AppMode = AppMode.Prod; - - constructor(private userSettingService: UserSettingService) { - this.subscription = this.userSettingService.appMode$.subscribe((val) => { - this.appMode = val; - }); - } - - get rootUrl() { - return settings.services.regObs.apiUrl[this.appMode]; - } - - ngOnDestroy(): void { - if (this.subscription) { - this.subscription.unsubscribe(); - } - } -} diff --git a/src/app/modules/common-regobs-api/regobs-api-configuration.ts b/src/app/modules/common-regobs-api/regobs-api-configuration.ts deleted file mode 100644 index 5b81ae736..000000000 --- a/src/app/modules/common-regobs-api/regobs-api-configuration.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; - -/** - * Global configuration for regobsApi services - */ -@Injectable({ - providedIn: 'root', -}) -export class RegobsApiConfiguration { - rootUrl: string = 'https://test-api.regobs.no/v5'; -} - -export interface RegobsApiConfigurationInterface { - rootUrl?: string; -} diff --git a/src/app/modules/common-regobs-api/regobs-api-with-config.module.ts b/src/app/modules/common-regobs-api/regobs-api-with-config.module.ts deleted file mode 100644 index 270119e68..000000000 --- a/src/app/modules/common-regobs-api/regobs-api-with-config.module.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { NgModule, InjectionToken, ModuleWithProviders } from '@angular/core'; -import { RegobsApiConfigurationInterface, RegobsApiConfiguration } from './regobs-api-configuration'; -import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; -import { UserSettingService } from 'src/app/core/services/user-setting/user-setting.service'; -import { RegObsApiConfigurationProvider } from './regobs-api-configuration-provider'; - -export const FOR_ROOT_OPTIONS_TOKEN = new InjectionToken('forRoot() Module configuration'); - - -@NgModule({imports: [], providers: [provideHttpClient(withInterceptorsFromDi())] }) -export class RegobsApiModuleWithConfig { - static forRoot(options?: RegobsApiConfigurationInterface): ModuleWithProviders { - return { - ngModule: RegobsApiModuleWithConfig, - providers: [ - { - provide: FOR_ROOT_OPTIONS_TOKEN, - useValue: options - }, - { - provide: RegobsApiConfiguration, - useFactory: regObsConfigurationFactory, - deps: [UserSettingService, FOR_ROOT_OPTIONS_TOKEN] - } - ] - }; - } - // static forTesting(): ModuleWithProviders { - // return ({ - // ngModule: RegobsApiModuleWithConfig, - // providers: [] - // }); - // } -} - -export function regObsConfigurationFactory( - userSettingService: UserSettingService, - options?: RegobsApiConfigurationInterface -) { - return options ? options : new RegObsApiConfigurationProvider(userSettingService); -} diff --git a/src/app/modules/common-regobs-api/regobs-api.module.ts b/src/app/modules/common-regobs-api/regobs-api.module.ts deleted file mode 100644 index f3dcb59dd..000000000 --- a/src/app/modules/common-regobs-api/regobs-api.module.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* tslint:disable */ -import { NgModule, ModuleWithProviders } from '@angular/core'; -import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; -import { RegobsApiConfiguration, RegobsApiConfigurationInterface } from './regobs-api-configuration'; - -import { AccountService } from './services/account.service'; -import { AttachmentService } from './services/attachment.service'; -import { GeoCodeService } from './services/geo-code.service'; -import { HelptextService } from './services/helptext.service'; -import { KdvElementsService } from './services/kdv-elements.service'; -import { LocationService } from './services/location.service'; -import { RegistrationService } from './services/registration.service'; -import { SearchService } from './services/search.service'; -import { TripService } from './services/trip.service'; - -/** - * Provider for all regobsApi services, plus RegobsApiConfiguration - */ -@NgModule({ - declarations: [], imports: [], providers: [ - RegobsApiConfiguration, - AccountService, - AttachmentService, - GeoCodeService, - HelptextService, - KdvElementsService, - LocationService, - RegistrationService, - SearchService, - TripService, - provideHttpClient(withInterceptorsFromDi()) - ] }) -export class RegobsApiModule { - static forRoot(customParams: RegobsApiConfigurationInterface): ModuleWithProviders { - return { - ngModule: RegobsApiModule, - providers: [ - { - provide: RegobsApiConfiguration, - useValue: {rootUrl: customParams.rootUrl} - } - ] - } - } -} diff --git a/src/app/modules/common-regobs-api/services.ts b/src/app/modules/common-regobs-api/services.ts deleted file mode 100644 index 7359ed459..000000000 --- a/src/app/modules/common-regobs-api/services.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { AccountService } from './services/account.service'; -export { AttachmentService } from './services/attachment.service'; -export { GeoCodeService } from './services/geo-code.service'; -export { HelptextService } from './services/helptext.service'; -export { KdvElementsService } from './services/kdv-elements.service'; -export { LocationService } from './services/location.service'; -export { RegistrationService } from './services/registration.service'; -export { SearchService } from './services/search.service'; -export { TripService } from './services/trip.service'; diff --git a/src/app/modules/common-regobs-api/services/account.service.ts b/src/app/modules/common-regobs-api/services/account.service.ts deleted file mode 100644 index f8de5ac4c..000000000 --- a/src/app/modules/common-regobs-api/services/account.service.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { ObserverResponseDto } from '../models/observer-response-dto'; -import { ObserverGroupDto } from '../models/observer-group-dto'; -import { MyPageData } from '../models/my-page-data'; -import { ObserverPatchRequestDto } from '../models/observer-patch-request-dto'; -@Injectable({ - providedIn: 'root', -}) -class AccountService extends __BaseService { - static readonly AccountGetObserverPath = '/Account/GetObserver'; - static readonly AccountGetObserverGroupsPath = '/Account/Groups'; - static readonly AccountGetAccountGroupsByGuidPath = '/Account/Groups/{guid}'; - static readonly AccountGetMyPageDataPath = '/Account/Mypage'; - static readonly AccountUpdateObserverPath = '/Account/UpdateObserver'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * @return OK - */ - AccountGetObserverResponse(): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Account/GetObserver`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * @return OK - */ - AccountGetObserver(): __Observable { - return this.AccountGetObserverResponse().pipe( - __map(_r => _r.body as ObserverResponseDto) - ); - } - - /** - * @return Observer Groups - */ - AccountGetObserverGroupsResponse(): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Account/Groups`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * @return Observer Groups - */ - AccountGetObserverGroups(): __Observable> { - return this.AccountGetObserverGroupsResponse().pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * Use GET Account/Groups instead - * @param guid undefined - * @return Observer Groups - */ - AccountGetAccountGroupsByGuidResponse(guid: string): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Account/Groups/${encodeURIComponent(String(guid))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Use GET Account/Groups instead - * @param guid undefined - * @return Observer Groups - */ - AccountGetAccountGroupsByGuid(guid: string): __Observable> { - return this.AccountGetAccountGroupsByGuidResponse(guid).pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * @param langKey undefined - * @return OK - */ - AccountGetMyPageDataResponse(langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (langKey != null) __params = __params.set('langKey', langKey.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Account/Mypage`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * @param langKey undefined - * @return OK - */ - AccountGetMyPageData(langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9): __Observable { - return this.AccountGetMyPageDataResponse(langKey).pipe( - __map(_r => _r.body as MyPageData) - ); - } - - /** - * Set nickname for an observer - * @param observerPatchRequestDto undefined - * @return OK - */ - AccountUpdateObserverResponse(observerPatchRequestDto: ObserverPatchRequestDto): __Observable<__StrictHttpResponse<{}>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = observerPatchRequestDto; - let req = new HttpRequest( - 'PUT', - this.rootUrl + `/Account/UpdateObserver`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse<{}>; - }) - ); - } - /** - * Set nickname for an observer - * @param observerPatchRequestDto undefined - * @return OK - */ - AccountUpdateObserver(observerPatchRequestDto: ObserverPatchRequestDto): __Observable<{}> { - return this.AccountUpdateObserverResponse(observerPatchRequestDto).pipe( - __map(_r => _r.body as {}) - ); - } -} - -module AccountService { -} - -export { AccountService } diff --git a/src/app/modules/common-regobs-api/services/attachment.service.ts b/src/app/modules/common-regobs-api/services/attachment.service.ts deleted file mode 100644 index 377b7b4a3..000000000 --- a/src/app/modules/common-regobs-api/services/attachment.service.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -@Injectable({ - providedIn: 'root', -}) -class AttachmentService extends __BaseService { - static readonly AttachmentPostPath = '/Attachment/Upload'; - static readonly AttachmentGetPath = '/Attachment/{format}/{id}'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Upload an image to a registration - * @param file Attachment to upload - * @return OK - */ - AttachmentPostResponse(file: Blob): __Observable<__StrictHttpResponse<{}>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - let __formData = new FormData(); - __body = __formData; - if (file != null) { __formData.append('file', file as string | Blob);} - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Attachment/Upload`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse<{}>; - }) - ); - } - /** - * Upload an image to a registration - * @param file Attachment to upload - * @return OK - */ - AttachmentPost(file: Blob): __Observable<{}> { - return this.AttachmentPostResponse(file).pipe( - __map(_r => _r.body as {}) - ); - } - - /** - * Get Attachment file by id - * @param params The `AttachmentService.AttachmentGetParams` containing the following parameters: - * - * - `id`: Attachment id - * - * - `format`: Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail - */ - AttachmentGetResponse(params: AttachmentService.AttachmentGetParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Attachment/${encodeURIComponent(String(params.format))}/${encodeURIComponent(String(params.id))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Get Attachment file by id - * @param params The `AttachmentService.AttachmentGetParams` containing the following parameters: - * - * - `id`: Attachment id - * - * - `format`: Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail - */ - AttachmentGet(params: AttachmentService.AttachmentGetParams): __Observable { - return this.AttachmentGetResponse(params).pipe( - __map(_r => _r.body as null) - ); - } -} - -module AttachmentService { - - /** - * Parameters for AttachmentGet - */ - export interface AttachmentGetParams { - - /** - * Attachment id - */ - id: number; - - /** - * Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail - */ - format: string; - } -} - -export { AttachmentService } diff --git a/src/app/modules/common-regobs-api/services/geo-code.service.ts b/src/app/modules/common-regobs-api/services/geo-code.service.ts deleted file mode 100644 index 4452e6397..000000000 --- a/src/app/modules/common-regobs-api/services/geo-code.service.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { GeoLocationInfo } from '../models/geo-location-info'; -import { GeoLocationSummary } from '../models/geo-location-summary'; -@Injectable({ - providedIn: 'root', -}) -class GeoCodeService extends __BaseService { - static readonly GeoCodeLocationInfoPath = '/GeoCode/LocationInfo'; - static readonly GeoCodeLocationSummaryPath = '/GeoCode/LocationSummary'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * @param params The `GeoCodeService.GeoCodeLocationInfoParams` containing the following parameters: - * - * - `longitude`: - * - * - `latitude`: - * - * - `geoHazardId`: - * - * @return OK - */ - GeoCodeLocationInfoResponse(params: GeoCodeService.GeoCodeLocationInfoParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (params.longitude != null) __params = __params.set('longitude', params.longitude.toString()); - if (params.latitude != null) __params = __params.set('latitude', params.latitude.toString()); - if (params.geoHazardId != null) __params = __params.set('geoHazardId', params.geoHazardId.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/GeoCode/LocationInfo`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * @param params The `GeoCodeService.GeoCodeLocationInfoParams` containing the following parameters: - * - * - `longitude`: - * - * - `latitude`: - * - * - `geoHazardId`: - * - * @return OK - */ - GeoCodeLocationInfo(params: GeoCodeService.GeoCodeLocationInfoParams): __Observable { - return this.GeoCodeLocationInfoResponse(params).pipe( - __map(_r => _r.body as GeoLocationInfo) - ); - } - - /** - * Get preformatted geolocation info. - * - * The response contains a header and one to three lines of geolocation info, depending on what kind of geolocation info the API has available. - * The header may be empty if no geolocation info is available, but at least the position is always returned (line 1). - * - * Example JSON response: - * - * ```json - * { - * "Header": "Lom", - * "Lines": [ - * "61,636°N, 8,313°Ø, 2469 moh", - * "Lom kommune", - * "Varslingsregion Jotunheimen" - * ] - * } - * ``` - * @param params The `GeoCodeService.GeoCodeLocationSummaryParams` containing the following parameters: - * - * - `longitude`: Longitude - * - * - `latitude`: Latitude - * - * - `langKey`: Language key, 1 = NO, 2 = EN etc - * - * - `geoHazardId`: Geohazard id, eg. 10 = Snow/Avalanche - * - * @return OK - */ - GeoCodeLocationSummaryResponse(params: GeoCodeService.GeoCodeLocationSummaryParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (params.longitude != null) __params = __params.set('longitude', params.longitude.toString()); - if (params.latitude != null) __params = __params.set('latitude', params.latitude.toString()); - if (params.langKey != null) __params = __params.set('langKey', params.langKey.toString()); - if (params.geoHazardId != null) __params = __params.set('geoHazardId', params.geoHazardId.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/GeoCode/LocationSummary`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Get preformatted geolocation info. - * - * The response contains a header and one to three lines of geolocation info, depending on what kind of geolocation info the API has available. - * The header may be empty if no geolocation info is available, but at least the position is always returned (line 1). - * - * Example JSON response: - * - * ```json - * { - * "Header": "Lom", - * "Lines": [ - * "61,636°N, 8,313°Ø, 2469 moh", - * "Lom kommune", - * "Varslingsregion Jotunheimen" - * ] - * } - * ``` - * @param params The `GeoCodeService.GeoCodeLocationSummaryParams` containing the following parameters: - * - * - `longitude`: Longitude - * - * - `latitude`: Latitude - * - * - `langKey`: Language key, 1 = NO, 2 = EN etc - * - * - `geoHazardId`: Geohazard id, eg. 10 = Snow/Avalanche - * - * @return OK - */ - GeoCodeLocationSummary(params: GeoCodeService.GeoCodeLocationSummaryParams): __Observable { - return this.GeoCodeLocationSummaryResponse(params).pipe( - __map(_r => _r.body as GeoLocationSummary) - ); - } -} - -module GeoCodeService { - - /** - * Parameters for GeoCodeLocationInfo - */ - export interface GeoCodeLocationInfoParams { - longitude: number; - latitude: number; - geoHazardId: number; - } - - /** - * Parameters for GeoCodeLocationSummary - */ - export interface GeoCodeLocationSummaryParams { - - /** - * Longitude - */ - longitude: number; - - /** - * Latitude - */ - latitude: number; - - /** - * Language key, 1 = NO, 2 = EN etc - */ - langKey: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - - /** - * Geohazard id, eg. 10 = Snow/Avalanche - */ - geoHazardId: number; - } -} - -export { GeoCodeService } diff --git a/src/app/modules/common-regobs-api/services/helptext.service.ts b/src/app/modules/common-regobs-api/services/helptext.service.ts deleted file mode 100644 index d3ad60b79..000000000 --- a/src/app/modules/common-regobs-api/services/helptext.service.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { HelptextDto } from '../models/helptext-dto'; -@Injectable({ - providedIn: 'root', -}) -class HelptextService extends __BaseService { - static readonly HelptextGetPath = '/HelpText'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Get a list of helptext objects. - * - * Used by the app and regobs.no web for displaying help texts. - * @param langKey Specify 1 for norwegian or 2 for english - * @return OK - */ - HelptextGetResponse(langKey: number): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (langKey != null) __params = __params.set('langKey', langKey.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/HelpText`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Get a list of helptext objects. - * - * Used by the app and regobs.no web for displaying help texts. - * @param langKey Specify 1 for norwegian or 2 for english - * @return OK - */ - HelptextGet(langKey: number): __Observable> { - return this.HelptextGetResponse(langKey).pipe( - __map(_r => _r.body as Array) - ); - } -} - -module HelptextService { -} - -export { HelptextService } diff --git a/src/app/modules/common-regobs-api/services/kdv-elements.service.ts b/src/app/modules/common-regobs-api/services/kdv-elements.service.ts deleted file mode 100644 index dfef22c58..000000000 --- a/src/app/modules/common-regobs-api/services/kdv-elements.service.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { KdvElementsResponseDto } from '../models/kdv-elements-response-dto'; -@Injectable({ - providedIn: 'root', -}) -class KdvElementsService extends __BaseService { - static readonly KdvElementsGetKdvsPath = '/KdvElements'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). - * If a type is missing in given language, we will fill the holes with equivalent types in English (if they exists) - * @param params The `KdvElementsService.KdvElementsGetKdvsParams` containing the following parameters: - * - * - `sortOrder`: False returns data types sorted by id - * - * - `langkey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian - * - * - `isActive`: False returns data types that are no longer in use - * - * @return OK - */ - KdvElementsGetKdvsResponse(params: KdvElementsService.KdvElementsGetKdvsParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (params.sortOrder != null) __params = __params.set('sortOrder', params.sortOrder.toString()); - if (params.langkey != null) __params = __params.set('langkey', params.langkey.toString()); - if (params.isActive != null) __params = __params.set('isActive', params.isActive.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/KdvElements`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). - * If a type is missing in given language, we will fill the holes with equivalent types in English (if they exists) - * @param params The `KdvElementsService.KdvElementsGetKdvsParams` containing the following parameters: - * - * - `sortOrder`: False returns data types sorted by id - * - * - `langkey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian - * - * - `isActive`: False returns data types that are no longer in use - * - * @return OK - */ - KdvElementsGetKdvs(params: KdvElementsService.KdvElementsGetKdvsParams): __Observable { - return this.KdvElementsGetKdvsResponse(params).pipe( - __map(_r => _r.body as KdvElementsResponseDto) - ); - } -} - -module KdvElementsService { - - /** - * Parameters for KdvElementsGetKdvs - */ - export interface KdvElementsGetKdvsParams { - - /** - * False returns data types sorted by id - */ - sortOrder?: boolean; - - /** - * 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian - */ - langkey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - - /** - * False returns data types that are no longer in use - */ - isActive?: boolean; - } -} - -export { KdvElementsService } diff --git a/src/app/modules/common-regobs-api/services/location.service.ts b/src/app/modules/common-regobs-api/services/location.service.ts deleted file mode 100644 index ee94320ae..000000000 --- a/src/app/modules/common-regobs-api/services/location.service.ts +++ /dev/null @@ -1,167 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { ObsLocationsResponseDtoV2 } from '../models/obs-locations-response-dto-v2'; -@Injectable({ - providedIn: 'root', -}) -class LocationService extends __BaseService { - static readonly LocationWithinRadiusPath = '/Location/WithinRadius'; - static readonly LocationGetPath = '/Location/{locationId}'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Returns a list of locations within the given radius from the given coordinates. - * For an unauthenticated client, it only returns public ice locations. - * For an authenticated client, it returns public locations as well as the - * authenticated user's private locations. - * Empty list if no registrations found. - * @param params The `LocationService.LocationWithinRadiusParams` containing the following parameters: - * - * - `radius`: - * - * - `longitude`: - * - * - `latitude`: - * - * - `returnCount`: - * - * - `geoHazardTypeIds`: - * - * @return OK - */ - LocationWithinRadiusResponse(params: LocationService.LocationWithinRadiusParams): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (params.radius != null) __params = __params.set('radius', params.radius.toString()); - if (params.longitude != null) __params = __params.set('longitude', params.longitude.toString()); - if (params.latitude != null) __params = __params.set('latitude', params.latitude.toString()); - if (params.returnCount != null) __params = __params.set('returnCount', params.returnCount.toString()); - (params.geoHazardTypeIds || []).forEach(val => {if (val != null) __params = __params.append('geoHazardTypeIds', val.toString())}); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Location/WithinRadius`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Returns a list of locations within the given radius from the given coordinates. - * For an unauthenticated client, it only returns public ice locations. - * For an authenticated client, it returns public locations as well as the - * authenticated user's private locations. - * Empty list if no registrations found. - * @param params The `LocationService.LocationWithinRadiusParams` containing the following parameters: - * - * - `radius`: - * - * - `longitude`: - * - * - `latitude`: - * - * - `returnCount`: - * - * - `geoHazardTypeIds`: - * - * @return OK - */ - LocationWithinRadius(params: LocationService.LocationWithinRadiusParams): __Observable> { - return this.LocationWithinRadiusResponse(params).pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * @param params The `LocationService.LocationGetParams` containing the following parameters: - * - * - `locationId`: - * - * - `langKey`: - * - * @return OK - */ - LocationGetResponse(params: LocationService.LocationGetParams): __Observable<__StrictHttpResponse<{}>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - if (params.langKey != null) __params = __params.set('langKey', params.langKey.toString()); - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Location/${encodeURIComponent(String(params.locationId))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse<{}>; - }) - ); - } - /** - * @param params The `LocationService.LocationGetParams` containing the following parameters: - * - * - `locationId`: - * - * - `langKey`: - * - * @return OK - */ - LocationGet(params: LocationService.LocationGetParams): __Observable<{}> { - return this.LocationGetResponse(params).pipe( - __map(_r => _r.body as {}) - ); - } -} - -module LocationService { - - /** - * Parameters for LocationWithinRadius - */ - export interface LocationWithinRadiusParams { - radius: number; - longitude: number; - latitude: number; - returnCount?: number; - geoHazardTypeIds?: Array; - } - - /** - * Parameters for LocationGet - */ - export interface LocationGetParams { - locationId: number; - langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - } -} - -export { LocationService } diff --git a/src/app/modules/common-regobs-api/services/registration.service.ts b/src/app/modules/common-regobs-api/services/registration.service.ts deleted file mode 100644 index 68be44f8c..000000000 --- a/src/app/modules/common-regobs-api/services/registration.service.ts +++ /dev/null @@ -1,556 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { RegistrationViewModel } from '../models/registration-view-model'; -import { RegistrationEditModel } from '../models/registration-edit-model'; -@Injectable({ - providedIn: 'root', -}) -class RegistrationService extends __BaseService { - static readonly RegistrationGetPath = '/Registration/{regId}/{langKey}'; - static readonly RegistrationGetCaamlPath = '/Registration/Caaml/{regId}'; - static readonly RegistrationPlotPreviewPngPath = '/Registration/PlotPreviewPng'; - static readonly RegistrationInsertOrUpdatePath = '/Registration/{id}'; - static readonly RegistrationDeletePath = '/Registration/{id}'; - static readonly RegistrationInsertPath = '/Registration'; - static readonly RegistrationValidatePath = '/Registration/Validate/{id}'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Get registration by regId. - * @param params The `RegistrationService.RegistrationGetParams` containing the following parameters: - * - * - `regId`: Registration Id - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * @return OK - */ - RegistrationGetResponse(params: RegistrationService.RegistrationGetParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Registration/${encodeURIComponent(String(params.regId))}/${encodeURIComponent(String(params.langKey))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Get registration by regId. - * @param params The `RegistrationService.RegistrationGetParams` containing the following parameters: - * - * - `regId`: Registration Id - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * @return OK - */ - RegistrationGet(params: RegistrationService.RegistrationGetParams): __Observable { - return this.RegistrationGetResponse(params).pipe( - __map(_r => _r.body as RegistrationViewModel) - ); - } - - /** - * Get a registration in CAAML format - * - * CAAML (Canadian Avalanche Association Markup Language) is a standard - * for the electronic representation of information pertinent to avalanche - * safety operations. See http://caaml.org/. - * @param regId Registration Id - * @return OK - */ - RegistrationGetCaamlResponse(regId: number): __Observable<__StrictHttpResponse<{}>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Registration/Caaml/${encodeURIComponent(String(regId))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse<{}>; - }) - ); - } - /** - * Get a registration in CAAML format - * - * CAAML (Canadian Avalanche Association Markup Language) is a standard - * for the electronic representation of information pertinent to avalanche - * safety operations. See http://caaml.org/. - * @param regId Registration Id - * @return OK - */ - RegistrationGetCaaml(regId: number): __Observable<{}> { - return this.RegistrationGetCaamlResponse(regId).pipe( - __map(_r => _r.body as {}) - ); - } - - /** - * Generate a preview figure for a snow profile registration. - * @param params The `RegistrationService.RegistrationPlotPreviewPngParams` containing the following parameters: - * - * - `width`: - * - * - `registration`: Snow profile registration - * - * - `height`: - * - * - `format`: - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * @return OK - */ - RegistrationPlotPreviewPngResponse(params: RegistrationService.RegistrationPlotPreviewPngParams): __Observable<__StrictHttpResponse<{}>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - if (params.width != null) __params = __params.set('width', params.width.toString()); - __body = params.registration; - if (params.height != null) __params = __params.set('height', params.height.toString()); - if (params.format != null) __params = __params.set('format', params.format.toString()); - if (params.langKey != null) __params = __params.set('langKey', params.langKey.toString()); - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Registration/PlotPreviewPng`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse<{}>; - }) - ); - } - /** - * Generate a preview figure for a snow profile registration. - * @param params The `RegistrationService.RegistrationPlotPreviewPngParams` containing the following parameters: - * - * - `width`: - * - * - `registration`: Snow profile registration - * - * - `height`: - * - * - `format`: - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * @return OK - */ - RegistrationPlotPreviewPng(params: RegistrationService.RegistrationPlotPreviewPngParams): __Observable<{}> { - return this.RegistrationPlotPreviewPngResponse(params).pipe( - __map(_r => _r.body as {}) - ); - } - - /** - * Update registration. Updating existing obsLocation with new values will be possible only - * if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don't get any error message. - * @param params The `RegistrationService.RegistrationInsertOrUpdateParams` containing the following parameters: - * - * - `registration`: Registration data - * - * - `id`: Set to regId if update existing registration, else leave blank - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * - `ignoreVersionCheck`: Set this to true if you want to replace the last saved version of this registration even if your copy is outdated - * - * - `externalReferenceId`: External reference id, must be unique for application and in GUID format - * - * @return OK - */ - RegistrationInsertOrUpdateResponse(params: RegistrationService.RegistrationInsertOrUpdateParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = params.registration; - - if (params.langKey != null) __params = __params.set('langKey', params.langKey.toString()); - if (params.ignoreVersionCheck != null) __params = __params.set('ignoreVersionCheck', params.ignoreVersionCheck.toString()); - if (params.externalReferenceId != null) __params = __params.set('externalReferenceId', params.externalReferenceId.toString()); - let req = new HttpRequest( - 'PUT', - this.rootUrl + `/Registration/${encodeURIComponent(String(params.id))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Update registration. Updating existing obsLocation with new values will be possible only - * if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don't get any error message. - * @param params The `RegistrationService.RegistrationInsertOrUpdateParams` containing the following parameters: - * - * - `registration`: Registration data - * - * - `id`: Set to regId if update existing registration, else leave blank - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * - `ignoreVersionCheck`: Set this to true if you want to replace the last saved version of this registration even if your copy is outdated - * - * - `externalReferenceId`: External reference id, must be unique for application and in GUID format - * - * @return OK - */ - RegistrationInsertOrUpdate(params: RegistrationService.RegistrationInsertOrUpdateParams): __Observable { - return this.RegistrationInsertOrUpdateResponse(params).pipe( - __map(_r => _r.body as RegistrationViewModel) - ); - } - - /** - * Delete registration - * @param id undefined - */ - RegistrationDeleteResponse(id: number): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - let req = new HttpRequest( - 'DELETE', - this.rootUrl + `/Registration/${encodeURIComponent(String(id))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Delete registration - * @param id undefined - */ - RegistrationDelete(id: number): __Observable { - return this.RegistrationDeleteResponse(id).pipe( - __map(_r => _r.body as null) - ); - } - - /** - * Create a new registration. The purpose is to send in one or more forms. - * - * Example critera for creating a new registration with one form. - * - * { - * "GeoHazardTID": 20, - * "DtObsTime": "2021-06-25T13:18:00.000Z", - * "ObsLocation": { - * "Latitude": 60.919917123811992, - * "Longitude": 7.210167614875667, - * }, - * "LandSlideObs": { - * "LandSlideTID": 2, - * "LandSlideTriggerTID": 0, - * "LandSlideSizeTID": 0, - * "Comment": "Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.", - * "GeoHazardTID": 20, - * "ActivityInfluencedTID": 220, - * "ForecastAccurateTID": 0, - * "DamageExtentTID": 0, - * "DtLandSlideTime": "2021-06-25T08:10:00+02:00", - * } - * } - * @param params The `RegistrationService.RegistrationInsertParams` containing the following parameters: - * - * - `registration`: ObsLocation, GeoHazardTID and DtObsTime are mandatory. - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * - `externalReferenceId`: Unique identifier for registration (must be in GUID format). - * - * @return OK - */ - RegistrationInsertResponse(params: RegistrationService.RegistrationInsertParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = params.registration; - if (params.langKey != null) __params = __params.set('langKey', params.langKey.toString()); - if (params.externalReferenceId != null) __params = __params.set('externalReferenceId', params.externalReferenceId.toString()); - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Registration`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Create a new registration. The purpose is to send in one or more forms. - * - * Example critera for creating a new registration with one form. - * - * { - * "GeoHazardTID": 20, - * "DtObsTime": "2021-06-25T13:18:00.000Z", - * "ObsLocation": { - * "Latitude": 60.919917123811992, - * "Longitude": 7.210167614875667, - * }, - * "LandSlideObs": { - * "LandSlideTID": 2, - * "LandSlideTriggerTID": 0, - * "LandSlideSizeTID": 0, - * "Comment": "Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.", - * "GeoHazardTID": 20, - * "ActivityInfluencedTID": 220, - * "ForecastAccurateTID": 0, - * "DamageExtentTID": 0, - * "DtLandSlideTime": "2021-06-25T08:10:00+02:00", - * } - * } - * @param params The `RegistrationService.RegistrationInsertParams` containing the following parameters: - * - * - `registration`: ObsLocation, GeoHazardTID and DtObsTime are mandatory. - * - * - `langKey`: 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * - * - `externalReferenceId`: Unique identifier for registration (must be in GUID format). - * - * @return OK - */ - RegistrationInsert(params: RegistrationService.RegistrationInsertParams): __Observable { - return this.RegistrationInsertResponse(params).pipe( - __map(_r => _r.body as RegistrationViewModel) - ); - } - - /** - * Validate registration data. - * @param params The `RegistrationService.RegistrationValidateParams` containing the following parameters: - * - * - `registration`: Registration data - * - * - `id`: RegId if existing registration else null if new - * - * - `externalReferenceId`: External reference id, must be unique for application and in GUID format - * - * @return OK - */ - RegistrationValidateResponse(params: RegistrationService.RegistrationValidateParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = params.registration; - - if (params.externalReferenceId != null) __params = __params.set('externalReferenceId', params.externalReferenceId.toString()); - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Registration/Validate/${encodeURIComponent(String(params.id))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Validate registration data. - * @param params The `RegistrationService.RegistrationValidateParams` containing the following parameters: - * - * - `registration`: Registration data - * - * - `id`: RegId if existing registration else null if new - * - * - `externalReferenceId`: External reference id, must be unique for application and in GUID format - * - * @return OK - */ - RegistrationValidate(params: RegistrationService.RegistrationValidateParams): __Observable { - return this.RegistrationValidateResponse(params).pipe( - __map(_r => _r.body as RegistrationEditModel) - ); - } -} - -module RegistrationService { - - /** - * Parameters for RegistrationGet - */ - export interface RegistrationGetParams { - - /** - * Registration Id - */ - regId: number; - - /** - * 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - */ - langKey: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - } - - /** - * Parameters for RegistrationPlotPreviewPng - */ - export interface RegistrationPlotPreviewPngParams { - width: number; - - /** - * Snow profile registration - */ - registration: RegistrationEditModel; - height: number; - format: number; - - /** - * 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - */ - langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - } - - /** - * Parameters for RegistrationInsertOrUpdate - */ - export interface RegistrationInsertOrUpdateParams { - - /** - * Registration data - */ - registration: RegistrationEditModel; - - /** - * Set to regId if update existing registration, else leave blank - */ - id: number; - - /** - * 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - */ - langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - - /** - * Set this to true if you want to replace the last saved version of this registration even if your copy is outdated - */ - ignoreVersionCheck?: boolean; - - /** - * External reference id, must be unique for application and in GUID format - */ - externalReferenceId?: string; - } - - /** - * Parameters for RegistrationInsert - */ - export interface RegistrationInsertParams { - - /** - * ObsLocation, GeoHazardTID and DtObsTime are mandatory. - */ - registration: RegistrationEditModel; - - /** - * 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - */ - langKey?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; - - /** - * Unique identifier for registration (must be in GUID format). - */ - externalReferenceId?: string; - } - - /** - * Parameters for RegistrationValidate - */ - export interface RegistrationValidateParams { - - /** - * Registration data - */ - registration: RegistrationEditModel; - - /** - * RegId if existing registration else null if new - */ - id: number; - - /** - * External reference id, must be unique for application and in GUID format - */ - externalReferenceId?: string; - } -} - -export { RegistrationService } diff --git a/src/app/modules/common-regobs-api/services/search.service.ts b/src/app/modules/common-regobs-api/services/search.service.ts deleted file mode 100644 index d6b250f2e..000000000 --- a/src/app/modules/common-regobs-api/services/search.service.ts +++ /dev/null @@ -1,461 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { RegistrationViewModel } from '../models/registration-view-model'; -import { SearchCriteriaRequestDto } from '../models/search-criteria-request-dto'; -import { SearchCriteriaExclUserRequestDto } from '../models/search-criteria-excl-user-request-dto'; -import { SearchCountResponseDto } from '../models/search-count-response-dto'; -import { SearchSideBarDto } from '../models/search-side-bar-dto'; -import { SearchSideBarRequestDto } from '../models/search-side-bar-request-dto'; -import { AtAGlanceViewModel } from '../models/at-aglance-view-model'; -import { SearchRegistrationsWithAttachments } from '../models/search-registrations-with-attachments'; - -/** - * Search for registrations. - * Some methods use POST although they don't change anything in Regobs. The search criteria is too complex to put in the url, so we chose POST in order to have the search criteria in the body. - */ -@Injectable({ - providedIn: 'root', -}) -class SearchService extends __BaseService { - static readonly SearchSearchPath = '/Search'; - static readonly SearchPostSearchMyRegistrationsPath = '/Search/MyRegistrations'; - static readonly SearchCountMyRegistrationsPath = '/Search/MyRegistrationsCount'; - static readonly SearchCountPath = '/Search/Count'; - static readonly SearchGetRegIdsFromDeletedRegistrationsPath = '/Search/DeletedRegistrations'; - static readonly SearchGetSearchCriteriaPath = '/Search/SearchCriteria/{geoHazards}/{langKey}'; - static readonly SearchSearchCriteriaPath = '/Search/SearchCriteria'; - static readonly SearchAtAGlancePath = '/Search/AtAGlance'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. - * Use POST /Search/AtAGlance for faster search. - * - * Example critera for returning the 10 newest registrations: - * - * { "NumberOfRecords": 10 } - * - * @param criteria Use this to filter out registrations and change ordering of them. - * The attribute "ObserverGuid" is deprecated and will be removed in the future. - * @return OK - */ - SearchSearchResponse(criteria: SearchCriteriaRequestDto): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. - * Use POST /Search/AtAGlance for faster search. - * - * Example critera for returning the 10 newest registrations: - * - * { "NumberOfRecords": 10 } - * - * @param criteria Use this to filter out registrations and change ordering of them. - * The attribute "ObserverGuid" is deprecated and will be removed in the future. - * @return OK - */ - SearchSearch(criteria: SearchCriteriaRequestDto): __Observable> { - console.log('[DEBUG][SearchService] SearchSearch triggered', criteria); //TODO: Fjerne dette når vi ikke har bruk for logging lengre - return this.SearchSearchResponse(criteria).pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * Returns a list of complete registrations that were registered by the logged in user. - * Empty list if no registrations found. - * - * Example critera for returning the 10 newest registrations: - * - * { "NumberOfRecords": 10 } - * - * @param criteria Use this to filter out registrations and change ordering of them - * @return OK - */ - SearchPostSearchMyRegistrationsResponse(criteria: SearchCriteriaExclUserRequestDto): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/MyRegistrations`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Returns a list of complete registrations that were registered by the logged in user. - * Empty list if no registrations found. - * - * Example critera for returning the 10 newest registrations: - * - * { "NumberOfRecords": 10 } - * - * @param criteria Use this to filter out registrations and change ordering of them - * @return OK - */ - SearchPostSearchMyRegistrations(criteria: SearchCriteriaExclUserRequestDto): __Observable> { - console.log('[DEBUG][SearchService] SearchPostSearchMyRegistrations triggered', criteria); //TODO: Fjerne dette når vi ikke har bruk for logging lengre - return this.SearchPostSearchMyRegistrationsResponse(criteria).pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * Returns number of registrations that were registered by the logged in user - * @param criteria You may add additional filters - * @return OK - */ - SearchCountMyRegistrationsResponse(criteria: SearchCriteriaExclUserRequestDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/MyRegistrationsCount`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Returns number of registrations that were registered by the logged in user - * @param criteria You may add additional filters - * @return OK - */ - SearchCountMyRegistrations(criteria: SearchCriteriaExclUserRequestDto): __Observable { - return this.SearchCountMyRegistrationsResponse(criteria).pipe( - __map(_r => _r.body as SearchCountResponseDto) - ); - } - - /** - * Returns search result count - * @param criteria Search criteria - * @return OK - */ - SearchCountResponse(criteria: SearchCriteriaRequestDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/Count`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Returns search result count - * @param criteria Search criteria - * @return OK - */ - SearchCount(criteria: SearchCriteriaRequestDto): __Observable { - return this.SearchCountResponse(criteria).pipe( - __map(_r => _r.body as SearchCountResponseDto) - ); - } - - /** - * Search for images only - * @param criteria Search criteria - * @return OK - */ - SearchAttachmentsResponse(criteria: SearchCriteriaRequestDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/Attachments`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - - /** - * Search for images only - * @param criteria Search criteria - * @return OK - */ - SearchAttachments(criteria: SearchCriteriaRequestDto): __Observable { - return this.SearchAttachmentsResponse(criteria).pipe( - __map(_r => _r.body as SearchRegistrationsWithAttachments[]) - ); - } - - - /** - * Returns list of regIds from deleted registrations that can be filtered with criteria model. - * Used with offline syncing on mobile devices. - * @param criteria Search criteria - * @return OK - */ - SearchGetRegIdsFromDeletedRegistrationsResponse(criteria: SearchCriteriaRequestDto): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/DeletedRegistrations`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Returns list of regIds from deleted registrations that can be filtered with criteria model. - * Used with offline syncing on mobile devices. - * @param criteria Search criteria - * @return OK - */ - SearchGetRegIdsFromDeletedRegistrations(criteria: SearchCriteriaRequestDto): __Observable> { - return this.SearchGetRegIdsFromDeletedRegistrationsResponse(criteria).pipe( - __map(_r => _r.body as Array) - ); - } - - /** - * Returns relevant search criteria for the specified geo hazard types and language. - * This can help you to find the right criteria to use in the other search methods. - * @param params The `SearchService.SearchGetSearchCriteriaParams` containing the following parameters: - * - * - `langKey`: NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 - * - * - `geoHazards`: A comma separated list of geo hazard ID's. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. - * - * @return OK - */ - SearchGetSearchCriteriaResponse(params: SearchService.SearchGetSearchCriteriaParams): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - - - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Search/SearchCriteria/${encodeURIComponent(String(params.geoHazards))}/${encodeURIComponent(String(params.langKey))}`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Returns relevant search criteria for the specified geo hazard types and language. - * This can help you to find the right criteria to use in the other search methods. - * @param params The `SearchService.SearchGetSearchCriteriaParams` containing the following parameters: - * - * - `langKey`: NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 - * - * - `geoHazards`: A comma separated list of geo hazard ID's. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. - * - * @return OK - */ - SearchGetSearchCriteria(params: SearchService.SearchGetSearchCriteriaParams): __Observable { - return this.SearchGetSearchCriteriaResponse(params).pipe( - __map(_r => _r.body as SearchSideBarDto) - ); - } - - /** - * Please use GET /Search/SearchCriteria instead. - * Returns relevant search criteria for the specified geo hazard types and language. - * This can help you to find the right criteria to use in the other search methods. - * @param request A request for relevant search criteria - * @return OK - */ - SearchSearchCriteriaResponse(request: SearchSideBarRequestDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = request; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/SearchCriteria`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Please use GET /Search/SearchCriteria instead. - * Returns relevant search criteria for the specified geo hazard types and language. - * This can help you to find the right criteria to use in the other search methods. - * @param request A request for relevant search criteria - * @return OK - */ - SearchSearchCriteria(request: SearchSideBarRequestDto): __Observable { - return this.SearchSearchCriteriaResponse(request).pipe( - __map(_r => _r.body as SearchSideBarDto) - ); - } - - /** - * Simplified search for registrations. Returns less data per registration, so faster than /Search - * Returns empty list if no registrations found. - * Returns only first attachment and count on how many other attachments user can expect when opening - * a detailed info - * @param criteria Search criteria - * @return OK - */ - SearchAtAGlanceResponse(criteria: SearchCriteriaRequestDto): __Observable<__StrictHttpResponse>> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = criteria; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Search/AtAGlance`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse>; - }) - ); - } - /** - * Simplified search for registrations. Returns less data per registration, so faster than /Search - * Returns empty list if no registrations found. - * Returns only first attachment and count on how many other attachments user can expect when opening - * a detailed info - * @param criteria Search criteria - * @return OK - */ - SearchAtAGlance(criteria: SearchCriteriaRequestDto): __Observable> { - console.log('[DEBUG][SearchService] SearchAtAGlance triggered', criteria); //TODO: Fjerne dette når vi ikke har bruk for logging lengre - return this.SearchAtAGlanceResponse(criteria).pipe( - __map(_r => _r.body as Array) - ); - } -} - -module SearchService { - - /** - * Parameters for SearchGetSearchCriteria - */ - export interface SearchGetSearchCriteriaParams { - - /** - * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 - */ - langKey: number; - - /** - * A comma separated list of geo hazard ID's. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. - */ - geoHazards: string; - } -} - -export { SearchService } diff --git a/src/app/modules/common-regobs-api/services/trip.service.ts b/src/app/modules/common-regobs-api/services/trip.service.ts deleted file mode 100644 index 0992f47b5..000000000 --- a/src/app/modules/common-regobs-api/services/trip.service.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* tslint:disable */ -import { Injectable } from '@angular/core'; -import { HttpClient, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'; -import { BaseService as __BaseService } from '../base-service'; -import { RegobsApiConfiguration as __Configuration } from '../regobs-api-configuration'; -import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-response'; -import { Observable as __Observable } from 'rxjs'; -import { map as __map, filter as __filter } from 'rxjs/operators'; - -import { FinishTripDto } from '../models/finish-trip-dto'; -import { CreateTripDto } from '../models/create-trip-dto'; -@Injectable({ - providedIn: 'root', -}) -class TripService extends __BaseService { - static readonly TripGetPath = '/Trip/ObserverTrips'; - static readonly TripPutPath = '/Trip'; - static readonly TripPostPath = '/Trip'; - - constructor( - config: __Configuration, - http: HttpClient - ) { - super(config, http); - } - - /** - * Fetches GeoJSON representations of the pre-approved observation trips. - * Only available for users in Obskorps administrative group. - */ - TripGetResponse(): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - let req = new HttpRequest( - 'GET', - this.rootUrl + `/Trip/ObserverTrips`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * Fetches GeoJSON representations of the pre-approved observation trips. - * Only available for users in Obskorps administrative group. - */ - TripGet(): __Observable { - return this.TripGetResponse().pipe( - __map(_r => _r.body as null) - ); - } - - /** - * @param trip undefined - */ - TripPutResponse(trip: FinishTripDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = trip; - let req = new HttpRequest( - 'PUT', - this.rootUrl + `/Trip`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * @param trip undefined - */ - TripPut(trip: FinishTripDto): __Observable { - return this.TripPutResponse(trip).pipe( - __map(_r => _r.body as null) - ); - } - - /** - * @param trip undefined - */ - TripPostResponse(trip: CreateTripDto): __Observable<__StrictHttpResponse> { - let __params = this.newParams(); - let __headers = new HttpHeaders(); - let __body: any = null; - __body = trip; - let req = new HttpRequest( - 'POST', - this.rootUrl + `/Trip`, - __body, - { - headers: __headers, - params: __params, - responseType: 'json' - }); - - return this.http.request(req).pipe( - __filter(_r => _r instanceof HttpResponse), - __map((_r) => { - return _r as __StrictHttpResponse; - }) - ); - } - /** - * @param trip undefined - */ - TripPost(trip: CreateTripDto): __Observable { - return this.TripPostResponse(trip).pipe( - __map(_r => _r.body as null) - ); - } -} - -module TripService { -} - -export { TripService } diff --git a/src/app/modules/common-regobs-api/strict-http-response.ts b/src/app/modules/common-regobs-api/strict-http-response.ts deleted file mode 100644 index ebdeada77..000000000 --- a/src/app/modules/common-regobs-api/strict-http-response.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* tslint:disable */ -import { HttpResponse } from '@angular/common/http'; - -/** - * Constrains the http to not expand the response type with `| null` - */ -export type StrictHttpResponse = HttpResponse & { - readonly body: T; -} diff --git a/src/app/modules/common-regobs-api/test.ts b/src/app/modules/common-regobs-api/test.ts deleted file mode 100644 index 01f9d5f9d..000000000 --- a/src/app/modules/common-regobs-api/test.ts +++ /dev/null @@ -1,22 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -// import 'core-js/es7/reflect'; -import 'zone.js'; -import 'zone.js/testing'; -import { getTestBed } from '@angular/core/testing'; -import { - BrowserDynamicTestingModule, - platformBrowserDynamicTesting -} from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment( - BrowserDynamicTestingModule, - platformBrowserDynamicTesting() -); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/src/app/modules/common-regobs-api/variables.ts b/src/app/modules/common-regobs-api/variables.ts new file mode 100644 index 000000000..6fe58549f --- /dev/null +++ b/src/app/modules/common-regobs-api/variables.ts @@ -0,0 +1,9 @@ +import { InjectionToken } from '@angular/core'; + +export const BASE_PATH = new InjectionToken('basePath'); +export const COLLECTION_FORMATS = { + 'csv': ',', + 'tsv': ' ', + 'ssv': ' ', + 'pipes': '|' +} diff --git a/src/app/modules/login/pages/user-information/user-information.page.ts b/src/app/modules/login/pages/user-information/user-information.page.ts index f3d18e4f1..1ff882023 100644 --- a/src/app/modules/login/pages/user-information/user-information.page.ts +++ b/src/app/modules/login/pages/user-information/user-information.page.ts @@ -9,7 +9,7 @@ import { ExternalLinkService } from '../../../../core/services/external-link/ext import { LangKey } from 'src/app/modules/common-core/models'; import { UserGroupService } from '../../../../core/services/user-group/user-group.service'; import { StarRatingHelper } from '../../../../components/competence/star-helper'; -import { AccountService, MyPageData, ObserverGroupDto } from 'src/app/modules/common-regobs-api'; +import { AccountService, type MyPageData, type ObserverGroupDto } from 'src/app/modules/common-regobs-api'; import { IonBackButton, IonButton, @@ -197,7 +197,7 @@ export class UserInformation implements OnInit { const { data } = await modal.onWillDismiss(); if (data && data.nick) { try { - await firstValueFrom(this.accountService.AccountUpdateObserver({ Nick: data.nick })); + await firstValueFrom(this.accountService.accountUpdateObserver({ Nick: data.nick })); this.regobsAuthService.refreshMyPageData$.next(); } catch (error) { this.showErrorToast('MY_PROFILE.NICKNAME_UPDATE_ERROR'); diff --git a/src/app/modules/registration/components/set-location-in-map/set-location-in-map.component.ts b/src/app/modules/registration/components/set-location-in-map/set-location-in-map.component.ts index 1bff660cc..1b68e19a9 100644 --- a/src/app/modules/registration/components/set-location-in-map/set-location-in-map.component.ts +++ b/src/app/modules/registration/components/set-location-in-map/set-location-in-map.component.ts @@ -33,7 +33,7 @@ import moment from 'moment'; import { firstValueFrom, Observable, of, Subject } from 'rxjs'; import { catchError, debounceTime, filter, map, switchMap, take, takeUntil, tap } from 'rxjs/operators'; import { GeoHazard } from 'src/app/modules/common-core/models'; -import { ObsLocationEditModel, ObsLocationsResponseDtoV2 } from 'src/app/modules/common-regobs-api/models'; +import { type ObsLocationEditModel, type ObsLocationsResponseDtoV2 } from 'src/app/modules/common-regobs-api'; import { IMapView } from 'src/app/modules/map/services/map/map-view.interface'; import { SelectOption } from 'src/app/modules/shared/components/input/select/select-option.model'; import { GeoPositionService } from '../../../../core/services/geo-position/geo-position.service'; @@ -58,10 +58,10 @@ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop'; import { DatetimePickerComponent } from '../../../../components/datetime-picker/datetime-picker.component'; export interface LocationTime { - location: ObsLocationEditModel; + location: ObsLocationEditModel | null; datetime?: string; - source?: number; - spatialAccuracy?: number; + source?: number | null; + spatialAccuracy?: number | null; } const defaultIcon = L.icon({ diff --git a/src/app/modules/registration/edit-registration-helper-functions.ts b/src/app/modules/registration/edit-registration-helper-functions.ts index af9c0c0c5..a1f597746 100644 --- a/src/app/modules/registration/edit-registration-helper-functions.ts +++ b/src/app/modules/registration/edit-registration-helper-functions.ts @@ -1,7 +1,4 @@ -import { WritableSignal } from '@angular/core'; -import { Observable } from 'rxjs'; -import { RegistrationViewModel, MyPageData } from 'src/app/modules/common-regobs-api/models'; -import { RegistrationService } from '../common-regobs-api'; +import { type RegistrationViewModel, type MyPageData } from 'src/app/modules/common-regobs-api'; export type EditMode = 'EDIT_AS_MODERATOR' | 'EDIT_OWN_REGISTRATION'; @@ -9,7 +6,7 @@ export function isSameObserver(reg: RegistrationViewModel, observer: MyPageData) if (!observer) { return false; } - return observer.ObserverId === reg.Observer.ObserverID; + return observer.ObserverId === reg.Observer?.ObserverID; } export function isInGroup(reg: RegistrationViewModel, observer: MyPageData): boolean { @@ -43,6 +40,9 @@ export function checkEditPriviliges(reg: RegistrationViewModel, observer: MyPage } function isRegistrationOlderThan2days(reg: RegistrationViewModel): boolean { + if (!reg?.DtRegTime) { + return false; + } const now = new Date(); const twoDaysAgo = new Date(now.getTime() - 2 * 24 * 60 * 60 * 1000); const registrationDate = new Date(reg?.DtRegTime); diff --git a/src/app/modules/registration/pages/obs-location/obs-location.page.ts b/src/app/modules/registration/pages/obs-location/obs-location.page.ts index f05d4c615..5cf8fd266 100644 --- a/src/app/modules/registration/pages/obs-location/obs-location.page.ts +++ b/src/app/modules/registration/pages/obs-location/obs-location.page.ts @@ -9,12 +9,6 @@ import { IonToolbar, NavController, } from '@ionic/angular/standalone'; -import { - ObsLocationEditModel, - ObsLocationsResponseDtoV2, - ObsLocationViewModel, - RegistrationEditModel, -} from 'src/app/modules/common-regobs-api/models'; import { ActivatedRoute } from '@angular/router'; import { GeoHazard } from 'src/app/modules/common-core/models'; import { firstValueFrom, Observable, Subscription } from 'rxjs'; @@ -27,7 +21,13 @@ import { import { UserSettingService } from '../../../../core/services/user-setting/user-setting.service'; import { DraftRepositoryService } from 'src/app/core/services/draft/draft-repository.service'; import { RegistrationDraft } from 'src/app/core/services/draft/draft-model'; -import { LocationService } from 'src/app/modules/common-regobs-api'; +import { + LocationService, + type ObsLocationEditModel, + type ObsLocationsResponseDtoV2, + type ObsLocationViewModel, + type RegistrationEditModel, +} from 'src/app/modules/common-regobs-api'; import { NgIf, AsyncPipe } from '@angular/common'; import { HeaderColorDirective } from '../../../shared/directives/header-color/header-color.directive'; import { TranslatePipe } from '@ngx-translate/core'; @@ -124,9 +124,7 @@ export class ObsLocationPage implements OnInit, OnDestroy { this.setLocationMarker(lat, lon); this.initialMinZoom = DEFAULT_MIN_ZOOM_FOR_KNOWN_LOCATION; } else if (locationId) { - const location = (await firstValueFrom( - this.locationService.LocationGet({ locationId: locationId }) - )) as ObsLocationViewModel; + const location = (await firstValueFrom(this.locationService.locationGet(locationId))) as ObsLocationViewModel; this.setLocationMarker(location.Latitude, location.Longitude); this.selectedLocation = { Name: location.LocationName || location.LocationDescription, diff --git a/src/app/pages/view-observation/view-observation.page.ts b/src/app/pages/view-observation/view-observation.page.ts index 3c8b512a5..3dbb5cce3 100644 --- a/src/app/pages/view-observation/view-observation.page.ts +++ b/src/app/pages/view-observation/view-observation.page.ts @@ -29,7 +29,11 @@ import { PopupInfoService } from '../../core/services/popup-info/popup-info.serv import { NgDestoryBase } from '../../core/helpers/observable-helper'; import { takeUntil, map, catchError } from 'rxjs/operators'; import { Observable, Subject, merge } from 'rxjs'; -import { AttachmentViewModel, RegistrationService, RegistrationViewModel } from 'src/app/modules/common-regobs-api'; +import { + type AttachmentViewModel, + RegistrationService, + type RegistrationViewModel, +} from 'src/app/modules/common-regobs-api'; import { RegobsAuthService } from 'src/app/modules/auth/services/regobs-auth.service'; import { HeaderColorDirective } from '../../modules/shared/directives/header-color/header-color.directive'; import { AsyncPipe, DatePipe, DecimalPipe } from '@angular/common'; @@ -144,7 +148,7 @@ export class ViewObservationPage extends NgDestoryBase implements OnInit { registration = rxResource({ params: () => ({ regId: this.regId(), langKey: this.langKey() }), stream: ({ params }) => - this.registrationService.RegistrationGet({ regId: params.regId, langKey: params.langKey }).pipe( + this.registrationService.registrationGet({ regId: params.regId, langKey: params.langKey }).pipe( catchError((err) => { this.logger.log('Feil ved henting av observasjon', err, LogLevel.Warning, DEBUG_TAG); if (err.status != undefined) { diff --git a/src/main.ts b/src/main.ts index a3c930389..709b6109d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,7 +16,7 @@ import { provideTranslateService } from '@ngx-translate/core'; import { provideMarkdown } from 'ngx-markdown'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { LeafletModule } from '@bluehalo/ngx-leaflet'; -import { RegobsApiModuleWithConfig } from './app/modules/common-regobs-api'; +import { provideApi } from './app/modules/common-regobs-api'; import { AppComponent } from './app/app.component'; import CordovaSQLiteDriver from 'localforage-cordovasqlitedriver'; import { provideRouter, RouteReuseStrategy, withComponentInputBinding } from '@angular/router'; @@ -86,10 +86,10 @@ function startApp() { storeName: settings.db.nanoSql.dbName, }), AngularSvgIconModule.forRoot(), - LeafletModule, - + LeafletModule // This module is auto generated using ng-swagger-gen - RegobsApiModuleWithConfig.forRoot() + //RegobsApiModuleWithConfig.forRoot() + //ApiModule.forRoot() ), provideMarkdown(), @@ -99,6 +99,7 @@ function startApp() { provideRouter(routes, withComponentInputBinding()), provideHttpClient(withInterceptorsFromDi()), + provideApi('https://test-api.regobs.no/v6'), ...APP_PROVIDERS, provideAnimations(), ], From 79e0b5ea2f6e24c833c66dca96bf5ec6700c1db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Tue, 11 Nov 2025 14:35:00 +0100 Subject: [PATCH 02/16] Temp commit --- .../search-registration/search-registration.service.ts | 10 +++++----- .../images-grid.ts/images-grid.component.ts | 4 ++-- src/app/pages/home/home.page.ts | 9 ++------- .../image-list/image-list.component.ts | 6 +++--- 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/app/core/services/search-registration/search-registration.service.ts b/src/app/core/services/search-registration/search-registration.service.ts index 0edf8335e..64f163b7b 100644 --- a/src/app/core/services/search-registration/search-registration.service.ts +++ b/src/app/core/services/search-registration/search-registration.service.ts @@ -26,7 +26,7 @@ import { SearchCriteriaRequestDto, SearchService, } from 'src/app/modules/common-regobs-api'; -import { SearchRegistrationsWithAttachments } from 'src/app/modules/common-regobs-api/models/search-registrations-with-attachments'; +import { RegistrationsWithAttachments } from 'src/app/modules/common-regobs-api'; import { LoggingService } from 'src/app/modules/shared/services/logging/logging.service'; export class SearchResult { @@ -254,11 +254,11 @@ export class SearchRegistrationService { searchAttachments( searchCriteria$: Observable - ): PagedSearchResult { - return new PagedSearchResult( + ): PagedSearchResult { + return new PagedSearchResult( searchCriteria$, - this.searchService.SearchAttachments.bind(this.searchService), - (searchCriteria) => this.searchService.SearchCount(searchCriteria).pipe(map((result) => result.TotalMatches)) + this.searchService.searchAttachments.bind(this.searchService), + (searchCriteria) => this.searchService.searchCount(searchCriteria).pipe(map((result: any) => result.TotalMatches)) ); } } diff --git a/src/app/modules/shared/components/images-grid/images-grid.ts/images-grid.component.ts b/src/app/modules/shared/components/images-grid/images-grid.ts/images-grid.component.ts index c0ace30d9..ba3f24768 100644 --- a/src/app/modules/shared/components/images-grid/images-grid.ts/images-grid.component.ts +++ b/src/app/modules/shared/components/images-grid/images-grid.ts/images-grid.component.ts @@ -1,6 +1,6 @@ import { Component, Input, inject } from '@angular/core'; import { LoggingService } from '../../../services/logging/logging.service'; -import { SearchRegistrationsWithAttachments } from 'src/app/modules/common-regobs-api/models/search-registrations-with-attachments'; +import { RegistrationsWithAttachments } from 'src/app/modules/common-regobs-api'; import { ModalController } from '@ionic/angular/standalone'; import { AttachmentViewModel } from 'src/app/modules/common-regobs-api'; import { FullscreenImageModalPage } from 'src/app/pages/modal-pages/fullscreen-image-modal/fullscreen-image-modal.page'; @@ -17,7 +17,7 @@ export class ImagesGridComponent { private logger = inject(LoggingService); private modalController = inject(ModalController); - @Input() attachments: SearchRegistrationsWithAttachments[]; + @Input() attachments: RegistrationsWithAttachments[]; trackById(_, obs: HasRegId) { return obs ? obs.RegId : undefined; diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts index 9e9e20472..1b302eeba 100644 --- a/src/app/pages/home/home.page.ts +++ b/src/app/pages/home/home.page.ts @@ -49,12 +49,7 @@ import { Immutable } from 'src/app/core/models/immutable'; import { SearchCriteria } from 'src/app/core/models/search-criteria'; import { SearchCriteriaService } from 'src/app/core/services/search-criteria/search-criteria.service'; import { SearchService } from 'src/app/modules/common-regobs-api'; -import { - AtAGlanceViewModel, - PositionDto, - SearchCriteriaRequestDto, - WithinExtentCriteriaDto, -} from 'src/app/modules/common-regobs-api/models'; +import { AtAGlanceViewModel, PositionDto, SearchCriteriaRequestDto, WithinExtentCriteriaDto } from 'src/app/modules/common-regobs-api'; import { MapCenterInfoComponent } from 'src/app/modules/map/components/map-center-info/map-center-info.component'; import { MapService } from 'src/app/modules/map/services/map/map.service'; import { LogLevel } from 'src/app/modules/shared/services/logging/log-level.model'; @@ -249,7 +244,7 @@ export class HomePage extends RouterPage implements OnInit, AfterViewChecked, On tap(() => this.isFetchingObservations.next(true)), switchMap((criteria: SearchCriteriaRequestDto) => - this.searchService.SearchAtAGlance(criteria).pipe( + this.searchService.searchAtAGlance(criteria).pipe( timeout(120000), // Successfull search handling diff --git a/src/app/pages/observation-list/image-list/image-list.component.ts b/src/app/pages/observation-list/image-list/image-list.component.ts index 9073e6edc..f70844d03 100644 --- a/src/app/pages/observation-list/image-list/image-list.component.ts +++ b/src/app/pages/observation-list/image-list/image-list.component.ts @@ -12,7 +12,7 @@ import { import { tap, combineLatest, map, firstValueFrom } from 'rxjs'; import { SearchCriteriaService } from 'src/app/core/services/search-criteria/search-criteria.service'; import { SearchRegistrationService } from 'src/app/core/services/search-registration/search-registration.service'; -import { SearchRegistrationsWithAttachments } from 'src/app/modules/common-regobs-api/models/search-registrations-with-attachments'; +import { RegistrationsWithAttachments } from 'src/app/modules/common-regobs-api'; import { ErrorStateComponent } from '../error-state/error-state.component'; import { EmptyStateComponent } from '../empty-state/empty-state.component'; import { ListControlsComponent } from '../list-controls/list-controls.component'; @@ -84,7 +84,7 @@ export class ImageListComponent { this.checkAndLoadMoreImages(); }) ), - { initialValue: [] as SearchRegistrationsWithAttachments[] } + { initialValue: [] as RegistrationsWithAttachments[] } ); disableInfiniteScroll = toSignal( @@ -122,7 +122,7 @@ export class ImageListComponent { await loader.present(); const attachmentIndex = attachments.findIndex((attachment) => attachment.Url === attachmentUrl); - const registration = await firstValueFrom(this.searchService.SearchSearch({ RegId: regId })); + const registration = await firstValueFrom(this.searchService.searchSearch({ RegId: regId })); const modal = await this.modalController.create({ component: ObservationImageCarouselComponent, cssClass: 'fullscreen-modal', From ea7e7987ad14ec6e9fdd73b316eb45db391133a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Tue, 11 Nov 2025 15:23:05 +0100 Subject: [PATCH 03/16] Autogenerering --- openapitools.json | 3 +- .../.openapi-generator/FILES | 6 + .../common-regobs-api/api.base.service.ts | 2 +- .../common-regobs-api/api/account.service.ts | 32 ++-- .../api/attachment.service.ts | 37 ++-- .../common-regobs-api/api/geo-code.service.ts | 68 +++++-- .../common-regobs-api/api/helptext.service.ts | 18 +- .../api/kdv-elements.service.ts | 33 +++- .../common-regobs-api/api/location.service.ts | 56 ++++-- .../api/registration.service.ts | 167 ++++++++++++------ .../common-regobs-api/api/search.service.ts | 166 +++++++++++------ .../common-regobs-api/api/trip.service.ts | 32 ++-- .../model/areas-dto-forecast-regions.ts | 2 +- .../common-regobs-api/model/areas-dto.ts | 2 +- .../model/at-a-glance-view-model.ts | 2 +- .../model/attachment-edit-model.ts | 2 +- .../attachment-view-model-url-formats.ts | 2 +- .../model/attachment-view-model.ts | 2 +- .../avalanche-activity-obs-view-model.ts | 2 +- .../avalanche-activity-obs2-edit-model.ts | 2 +- .../avalanche-activity-obs2-view-model.ts | 2 +- .../model/avalanche-danger-obs-view-model.ts | 2 +- .../avalanche-eval-problem-view-model.ts | 2 +- .../avalanche-eval-problem2-edit-model.ts | 2 +- .../avalanche-eval-problem2-view-model.ts | 2 +- .../model/avalanche-evaluation-view-model.ts | 2 +- .../model/avalanche-evaluation2-view-model.ts | 2 +- .../model/avalanche-evaluation3-edit-model.ts | 2 +- .../model/avalanche-evaluation3-view-model.ts | 2 +- .../model/avalanche-obs-edit-model.ts | 2 +- .../model/avalanche-obs-view-model.ts | 2 +- .../model/compression-test-edit-model.ts | 2 +- .../model/compression-test-view-model.ts | 2 +- .../common-regobs-api/model/county-dto.ts | 2 +- .../model/create-trip-dto.ts | 2 +- .../model/damage-obs-edit-model.ts | 2 +- .../model/damage-obs-view-model.ts | 2 +- .../model/danger-obs-edit-model.ts | 2 +- .../model/danger-obs-view-model.ts | 2 +- .../model/finish-trip-dto.ts | 2 +- .../model/forecast-region-dto.ts | 2 +- .../model/forecast-region-sub-region-dto.ts | 2 +- .../model/general-observation-edit-model.ts | 2 +- .../model/general-observation-view-model.ts | 2 +- .../model/geo-hazard-types.ts | 2 +- .../model/geo-location-info.ts | 25 +++ .../model/geo-location-summary.ts | 16 ++ .../common-regobs-api/model/helptext-dto.ts | 2 +- .../model/ice-cover-edit-model.ts | 2 +- .../model/ice-cover-view-model.ts | 2 +- .../model/ice-thickness-edit-model.ts | 2 +- .../model/ice-thickness-layer-edit-model.ts | 2 +- .../model/ice-thickness-layer-view-model.ts | 2 +- .../model/ice-thickness-view-model.ts | 2 +- .../model/incident-edit-model.ts | 2 +- .../model/incident-view-model.ts | 2 +- .../common-regobs-api/model/kdv-element.ts | 17 ++ .../model/kdv-elements-response-dto.ts | 17 ++ .../model/landslide-edit-model.ts | 2 +- .../model/landslide-view-model.ts | 2 +- .../common-regobs-api/model/lang-key.ts | 2 +- .../common-regobs-api/model/lat-lng-object.ts | 16 ++ .../common-regobs-api/model/lat-lng.ts | 2 +- .../modules/common-regobs-api/model/models.ts | 6 + .../common-regobs-api/model/my-page-data.ts | 2 +- .../model/obs-location-edit-model.ts | 2 +- .../model/obs-location-view-model.ts | 2 +- .../model/obs-locations-response-dto-v2.ts | 24 +++ .../model/observer-competence-dto.ts | 2 +- .../model/observer-competence-level-dto.ts | 2 +- .../model/observer-group-dto.ts | 2 +- .../model/observer-patch-request-dto.ts | 2 +- .../model/observer-response-dto.ts | 2 +- .../model/observer-view-model.ts | 2 +- .../common-regobs-api/model/operator.ts | 2 +- .../common-regobs-api/model/position-dto.ts | 2 +- .../model/problem-details.ts | 2 +- .../model/property-filter.ts | 2 +- .../model/reg-obs-generic-value.ts | 2 +- .../model/registration-edit-model.ts | 2 +- .../model/registration-type-criteria-dto.ts | 2 +- .../model/registration-type-dto.ts | 2 +- .../model/registration-type-sub-type-dto.ts | 2 +- .../model/registration-view-model.ts | 2 +- .../model/registrations-with-attachments.ts | 2 +- .../model/search-count-response-dto.ts | 2 +- .../search-criteria-excl-user-request-dto.ts | 2 +- .../model/search-criteria-request-dto.ts | 2 +- ...side-bar-dto-observer-competence-levels.ts | 2 +- .../search-side-bar-dto-registration-types.ts | 2 +- .../model/search-side-bar-dto.ts | 2 +- .../model/search-side-bar-request-dto.ts | 2 +- .../model/snow-cover-obs-view-model.ts | 2 +- .../model/snow-density-layer-model.ts | 2 +- .../model/snow-density-model.ts | 2 +- .../model/snow-profile-edit-model.ts | 2 +- .../model/snow-profile-view-model.ts | 2 +- .../model/snow-surface-edit-model.ts | 2 +- .../model/snow-surface-view-model.ts | 2 +- .../model/snow-temp-model.ts | 2 +- .../model/snow-temp-obs-model.ts | 2 +- .../model/strat-profile-edit-model.ts | 2 +- .../model/strat-profile-layer-edit-model.ts | 2 +- .../model/strat-profile-layer-view-model.ts | 2 +- .../model/strat-profile-view-model.ts | 2 +- .../common-regobs-api/model/summary.ts | 2 +- .../common-regobs-api/model/url-edit-model.ts | 2 +- .../common-regobs-api/model/url-view-model.ts | 2 +- .../common-regobs-api/model/value-kind.ts | 2 +- .../water-level-measurement-edit-model.ts | 2 +- .../water-level-measurement-view-model.ts | 2 +- .../model/water-level-view-model.ts | 2 +- .../model/waterlevel2-edit-model.ts | 2 +- .../model/waterlevel2-view-model.ts | 2 +- .../model/weather-edit-model.ts | 2 +- .../model/weather-view-model.ts | 2 +- .../model/within-extent-criteria-dto.ts | 2 +- .../model/within-radius-criteria-dto.ts | 2 +- 118 files changed, 652 insertions(+), 287 deletions(-) create mode 100644 src/app/modules/common-regobs-api/model/geo-location-info.ts create mode 100644 src/app/modules/common-regobs-api/model/geo-location-summary.ts create mode 100644 src/app/modules/common-regobs-api/model/kdv-element.ts create mode 100644 src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/model/lat-lng-object.ts create mode 100644 src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts diff --git a/openapitools.json b/openapitools.json index 1b4d25272..39eb77ced 100644 --- a/openapitools.json +++ b/openapitools.json @@ -9,7 +9,8 @@ "inputSpec": "https://test-api.regobs.no/v6/swagger/v6/swagger.json", "output": "src/app/modules/common-regobs-api", "additionalProperties": { - "fileNaming": "kebab-case" + "fileNaming": "kebab-case", + "useSingleRequestParameter": true } } } diff --git a/src/app/modules/common-regobs-api/.openapi-generator/FILES b/src/app/modules/common-regobs-api/.openapi-generator/FILES index ed3e3c365..c075a80d7 100644 --- a/src/app/modules/common-regobs-api/.openapi-generator/FILES +++ b/src/app/modules/common-regobs-api/.openapi-generator/FILES @@ -49,6 +49,8 @@ model/forecast-region-sub-region-dto.ts model/general-observation-edit-model.ts model/general-observation-view-model.ts model/geo-hazard-types.ts +model/geo-location-info.ts +model/geo-location-summary.ts model/helptext-dto.ts model/ice-cover-edit-model.ts model/ice-cover-view-model.ts @@ -58,14 +60,18 @@ model/ice-thickness-layer-view-model.ts model/ice-thickness-view-model.ts model/incident-edit-model.ts model/incident-view-model.ts +model/kdv-element.ts +model/kdv-elements-response-dto.ts model/landslide-edit-model.ts model/landslide-view-model.ts model/lang-key.ts +model/lat-lng-object.ts model/lat-lng.ts model/models.ts model/my-page-data.ts model/obs-location-edit-model.ts model/obs-location-view-model.ts +model/obs-locations-response-dto-v2.ts model/observer-competence-dto.ts model/observer-competence-level-dto.ts model/observer-group-dto.ts diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts index fb6873e41..c095f539c 100644 --- a/src/app/modules/common-regobs-api/api.base.service.ts +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts index c98f14805..47c3915f7 100644 --- a/src/app/modules/common-regobs-api/api/account.service.ts +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -35,6 +35,14 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface AccountGetMyPageDataRequestParams { + langKey?: LangKey; +} + +export interface AccountUpdateObserverRequestParams { + observerPatchRequestDto?: ObserverPatchRequestDto; +} + @Injectable({ providedIn: 'root' @@ -47,14 +55,15 @@ export class AccountService extends BaseService { /** * @endpoint get /Account/Mypage - * @param langKey + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public accountGetMyPageData(langKey?: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public accountGetMyPageData(langKey?: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountGetMyPageData(langKey?: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public accountGetMyPageData(langKey?: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public accountGetMyPageData(requestParameters?: AccountGetMyPageDataRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public accountGetMyPageData(requestParameters?: AccountGetMyPageDataRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetMyPageData(requestParameters?: AccountGetMyPageDataRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public accountGetMyPageData(requestParameters?: AccountGetMyPageDataRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const langKey = requestParameters?.langKey; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -228,14 +237,15 @@ export class AccountService extends BaseService { /** * Set nickname for an observer * @endpoint put /Account/UpdateObserver - * @param observerPatchRequestDto + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public accountUpdateObserver(observerPatchRequestDto?: ObserverPatchRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public accountUpdateObserver(requestParameters?: AccountUpdateObserverRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public accountUpdateObserver(requestParameters?: AccountUpdateObserverRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public accountUpdateObserver(requestParameters?: AccountUpdateObserverRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public accountUpdateObserver(requestParameters?: AccountUpdateObserverRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const observerPatchRequestDto = requestParameters?.observerPatchRequestDto; let localVarHeaders = this.defaultHeaders; diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts index 467525af7..48b1781be 100644 --- a/src/app/modules/common-regobs-api/api/attachment.service.ts +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -23,6 +23,17 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface AttachmentGetRequestParams { + /** Attachment id */ + id: number; + /** Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail */ + format: string; +} + +export interface AttachmentUploadRequestParams { + file?: Blob; +} + @Injectable({ providedIn: 'root' @@ -36,18 +47,19 @@ export class AttachmentService extends BaseService { /** * Get Attachment file by id * @endpoint get /Attachment/{format}/{id} - * @param id Attachment id - * @param format Image format. For video, use Raw. Possible image formats: Raw, Original, Large, Medium, Thumbnail + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public attachmentGet(id: number, format: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public attachmentGet(id: number, format: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public attachmentGet(id: number, format: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public attachmentGet(id: number, format: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public attachmentGet(requestParameters: AttachmentGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public attachmentGet(requestParameters: AttachmentGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentGet(requestParameters: AttachmentGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentGet(requestParameters: AttachmentGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const id = requestParameters?.id; if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling attachmentGet.'); } + const format = requestParameters?.format; if (format === null || format === undefined) { throw new Error('Required parameter format was null or undefined when calling attachmentGet.'); } @@ -100,14 +112,15 @@ export class AttachmentService extends BaseService { /** * Upload an image to a registration * @endpoint post /Attachment/Upload - * @param file + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public attachmentUpload(file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public attachmentUpload(file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public attachmentUpload(file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public attachmentUpload(file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public attachmentUpload(requestParameters?: AttachmentUploadRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public attachmentUpload(requestParameters?: AttachmentUploadRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentUpload(requestParameters?: AttachmentUploadRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public attachmentUpload(requestParameters?: AttachmentUploadRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const file = requestParameters?.file; let localVarHeaders = this.defaultHeaders; diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts index 3b85e321d..b78ee2a3e 100644 --- a/src/app/modules/common-regobs-api/api/geo-code.service.ts +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -16,6 +16,10 @@ import { HttpClient, HttpHeaders, HttpParams, import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; +// @ts-ignore +import { GeoLocationInfo } from '../model/geo-location-info'; +// @ts-ignore +import { GeoLocationSummary } from '../model/geo-location-summary'; // @ts-ignore import { LangKey } from '../model/lang-key'; @@ -25,6 +29,26 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface GeoCodeLocationInfoRequestParams { + /** Latitude */ + latitude?: number; + /** Longitude */ + longitude?: number; + /** Geohazard ID */ + geoHazardId?: number; +} + +export interface GeoCodeLocationSummaryRequestParams { + /** Latitude */ + latitude?: number; + /** Longitude */ + longitude?: number; + /** Language key */ + langKey?: LangKey; + /** Geohazard ID */ + geoHazardId?: number; +} + @Injectable({ providedIn: 'root' @@ -38,16 +62,17 @@ export class GeoCodeService extends BaseService { /** * Get detailed geolocation info. * @endpoint get /GeoCode/LocationInfo - * @param latitude Latitude - * @param longitude Longitude - * @param geoHazardId Geohazard ID + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public geoCodeLocationInfo(latitude?: number, longitude?: number, geoHazardId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public geoCodeLocationInfo(requestParameters?: GeoCodeLocationInfoRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public geoCodeLocationInfo(requestParameters?: GeoCodeLocationInfoRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationInfo(requestParameters?: GeoCodeLocationInfoRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationInfo(requestParameters?: GeoCodeLocationInfoRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const latitude = requestParameters?.latitude; + const longitude = requestParameters?.longitude; + const geoHazardId = requestParameters?.geoHazardId; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -66,6 +91,9 @@ export class GeoCodeService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -89,7 +117,7 @@ export class GeoCodeService extends BaseService { let localVarPath = `/GeoCode/LocationInfo`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, @@ -106,17 +134,18 @@ export class GeoCodeService extends BaseService { /** * Get preformatted geolocation summary. * @endpoint get /GeoCode/LocationSummary - * @param latitude Latitude - * @param longitude Longitude - * @param langKey Language key - * @param geoHazardId Geohazard ID + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public geoCodeLocationSummary(latitude?: number, longitude?: number, langKey?: LangKey, geoHazardId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public geoCodeLocationSummary(requestParameters?: GeoCodeLocationSummaryRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public geoCodeLocationSummary(requestParameters?: GeoCodeLocationSummaryRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationSummary(requestParameters?: GeoCodeLocationSummaryRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public geoCodeLocationSummary(requestParameters?: GeoCodeLocationSummaryRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const latitude = requestParameters?.latitude; + const longitude = requestParameters?.longitude; + const langKey = requestParameters?.langKey; + const geoHazardId = requestParameters?.geoHazardId; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -137,6 +166,9 @@ export class GeoCodeService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -160,7 +192,7 @@ export class GeoCodeService extends BaseService { let localVarPath = `/GeoCode/LocationSummary`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts index a89464ae0..d1d2a34c3 100644 --- a/src/app/modules/common-regobs-api/api/helptext.service.ts +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -25,6 +25,11 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface HelptextGetRequestParams { + /** Specify 1 for Norwegian or 2 for English */ + langKey?: number; +} + @Injectable({ providedIn: 'root' @@ -38,14 +43,15 @@ export class HelptextService extends BaseService { /** * Get a list of helptext objects. * @endpoint get /Helptext - * @param langKey Specify 1 for Norwegian or 2 for English + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public helptextGet(langKey?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public helptextGet(langKey?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public helptextGet(langKey?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public helptextGet(langKey?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public helptextGet(requestParameters?: HelptextGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public helptextGet(requestParameters?: HelptextGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public helptextGet(requestParameters?: HelptextGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public helptextGet(requestParameters?: HelptextGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const langKey = requestParameters?.langKey; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts index 124ad5af6..746098b44 100644 --- a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -16,6 +16,8 @@ import { HttpClient, HttpHeaders, HttpParams, import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; +// @ts-ignore +import { KdvElementsResponseDto } from '../model/kdv-elements-response-dto'; // @ts-ignore import { LangKey } from '../model/lang-key'; @@ -25,6 +27,15 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface KdvElementsGetKdvsRequestParams { + /** 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian */ + langkey?: LangKey; + /** False returns data types that are no longer in use */ + isActive?: boolean; + /** False returns data types sorted by id */ + sortOrder?: boolean; +} + @Injectable({ providedIn: 'root' @@ -38,16 +49,17 @@ export class KdvElementsService extends BaseService { /** * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). * @endpoint get /KdvElements - * @param langkey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 7 = norwegian nynorsk, 8 = french. Norwegian is the default language if none is selected. Default langKey is norwegian - * @param isActive False returns data types that are no longer in use - * @param sortOrder False returns data types sorted by id + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public kdvElementsGetKdvs(langkey?: LangKey, isActive?: boolean, sortOrder?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public kdvElementsGetKdvs(requestParameters?: KdvElementsGetKdvsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public kdvElementsGetKdvs(requestParameters?: KdvElementsGetKdvsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public kdvElementsGetKdvs(requestParameters?: KdvElementsGetKdvsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public kdvElementsGetKdvs(requestParameters?: KdvElementsGetKdvsRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const langkey = requestParameters?.langkey; + const isActive = requestParameters?.isActive; + const sortOrder = requestParameters?.sortOrder; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -66,6 +78,9 @@ export class KdvElementsService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -89,7 +104,7 @@ export class KdvElementsService extends BaseService { let localVarPath = `/KdvElements`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts index cc6e12ed5..ea2748940 100644 --- a/src/app/modules/common-regobs-api/api/location.service.ts +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -18,6 +18,8 @@ import { Observable } from 'rxjs'; // @ts-ignore import { LangKey } from '../model/lang-key'; +// @ts-ignore +import { ObsLocationsResponseDtoV2 } from '../model/obs-locations-response-dto-v2'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -25,6 +27,21 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface LocationGetRequestParams { + /** The ID of the location. */ + locationId: number; + /** The language key. */ + langKey?: LangKey; +} + +export interface LocationWithinRadiusRequestParams { + latitude?: number; + longitude?: number; + radius?: number; + geoHazardTypeIds?: Array; + returnCount?: number; +} + @Injectable({ providedIn: 'root' @@ -38,18 +55,19 @@ export class LocationService extends BaseService { /** * Gets a specific location by ID. * @endpoint get /Location/{locationId} - * @param locationId The ID of the location. - * @param langKey The language key. + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public locationGet(locationId: number, langKey?: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public locationGet(locationId: number, langKey?: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public locationGet(locationId: number, langKey?: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public locationGet(locationId: number, langKey?: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public locationGet(requestParameters: LocationGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public locationGet(requestParameters: LocationGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationGet(requestParameters: LocationGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public locationGet(requestParameters: LocationGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const locationId = requestParameters?.locationId; if (locationId === null || locationId === undefined) { throw new Error('Required parameter locationId was null or undefined when calling locationGet.'); } + const langKey = requestParameters?.langKey; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -104,18 +122,19 @@ export class LocationService extends BaseService { /** * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. * @endpoint get /Location/WithinRadius - * @param latitude - * @param longitude - * @param radius - * @param geoHazardTypeIds - * @param returnCount + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public locationWithinRadius(latitude?: number, longitude?: number, radius?: number, geoHazardTypeIds?: Array, returnCount?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public locationWithinRadius(requestParameters?: LocationWithinRadiusRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationWithinRadius(requestParameters?: LocationWithinRadiusRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public locationWithinRadius(requestParameters?: LocationWithinRadiusRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public locationWithinRadius(requestParameters?: LocationWithinRadiusRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const latitude = requestParameters?.latitude; + const longitude = requestParameters?.longitude; + const radius = requestParameters?.radius; + const geoHazardTypeIds = requestParameters?.geoHazardTypeIds; + const returnCount = requestParameters?.returnCount; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -142,6 +161,9 @@ export class LocationService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -165,7 +187,7 @@ export class LocationService extends BaseService { let localVarPath = `/Location/WithinRadius`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, params: localVarQueryParameters, diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts index 6158a2d5b..3cdc503d4 100644 --- a/src/app/modules/common-regobs-api/api/registration.service.ts +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { Inject, Injectable, Optional } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; @@ -29,6 +29,66 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface RegistrationDeleteRequestParams { + id: number; +} + +export interface RegistrationGetRequestParams { + /** Registration Id */ + regId: number; + /** 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. */ + langKey: LangKey; +} + +export interface RegistrationGetCaamlRequestParams { + /** Registration Id */ + regId: number; +} + +export interface RegistrationInsertRequestParams { + /** Unique identifier for registration, in GUID format. This parameter will be required in next version of the API */ + externalReferenceId?: string; + /** 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. */ + langKey?: LangKey; + /** ObsLocation, GeoHazardTID and DtObsTime are mandatory. */ + registrationEditModel?: RegistrationEditModel; +} + +export interface RegistrationInsertOrUpdateRequestParams { + /** Set to regId if update existing registration, else leave blank */ + id: number; + /** External reference id, must be unique for application and in GUID format */ + externalReferenceId?: string; + /** 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. */ + langKey?: LangKey; + /** Set this to true if you want to replace the last saved version of this registration even if your copy is outdated */ + ignoreVersionCheck?: boolean; + /** Registration data */ + registrationEditModel?: RegistrationEditModel; +} + +export interface RegistrationPlotPreviewPngRequestParams { + /** */ + format?: number; + /** */ + height?: number; + /** */ + width?: number; + /** 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. */ + langKey?: LangKey; + /** Snow profile registration */ + registrationEditModel?: RegistrationEditModel; +} + +export interface RegistrationValidateRequestParams { + /** RegId if existing registration else null if new */ + id: number; + /** External reference id, must be unique for application and in GUID format */ + externalReferenceId?: string; + /** Registration data */ + registrationEditModel?: RegistrationEditModel; +} + @Injectable({ providedIn: 'root' @@ -42,14 +102,15 @@ export class RegistrationService extends BaseService { /** * Delete registration * @endpoint delete /Registration/{id} - * @param id + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationDelete(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationDelete(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationDelete(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationDelete(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationDelete(requestParameters: RegistrationDeleteRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationDelete(requestParameters: RegistrationDeleteRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationDelete(requestParameters: RegistrationDeleteRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationDelete(requestParameters: RegistrationDeleteRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const id = requestParameters?.id; if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling registrationDelete.'); } @@ -102,18 +163,19 @@ export class RegistrationService extends BaseService { /** * Get registration by regId. * @endpoint get /Registration/{regId}/{langKey} - * @param regId Registration Id - * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationGet(regId: number, langKey: LangKey, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationGet(regId: number, langKey: LangKey, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGet(regId: number, langKey: LangKey, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGet(regId: number, langKey: LangKey, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const regId = requestParameters?.regId; if (regId === null || regId === undefined) { throw new Error('Required parameter regId was null or undefined when calling registrationGet.'); } + const langKey = requestParameters?.langKey; if (langKey === null || langKey === undefined) { throw new Error('Required parameter langKey was null or undefined when calling registrationGet.'); } @@ -167,14 +229,15 @@ export class RegistrationService extends BaseService { * Get a registration in CAAML format * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. * @endpoint get /Registration/Caaml/{regId} - * @param regId Registration Id + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationGetCaaml(regId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationGetCaaml(regId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGetCaaml(regId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGetCaaml(regId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const regId = requestParameters?.regId; if (regId === null || regId === undefined) { throw new Error('Required parameter regId was null or undefined when calling registrationGetCaaml.'); } @@ -228,16 +291,17 @@ export class RegistrationService extends BaseService { * Create a new registration. The purpose is to send in one or more forms. * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } * @endpoint post /Registration - * @param externalReferenceId Unique identifier for registration, in GUID format. This parameter will be required in next version of the API - * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * @param registrationEditModel ObsLocation, GeoHazardTID and DtObsTime are mandatory. + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationInsert(externalReferenceId?: string, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public registrationInsert(requestParameters?: RegistrationInsertRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationInsert(requestParameters?: RegistrationInsertRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsert(requestParameters?: RegistrationInsertRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsert(requestParameters?: RegistrationInsertRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const externalReferenceId = requestParameters?.externalReferenceId; + const langKey = requestParameters?.langKey; + const registrationEditModel = requestParameters?.registrationEditModel; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -309,21 +373,22 @@ export class RegistrationService extends BaseService { /** * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. * @endpoint put /Registration/{id} - * @param id Set to regId if update existing registration, else leave blank - * @param externalReferenceId External reference id, must be unique for application and in GUID format - * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * @param ignoreVersionCheck Set this to true if you want to replace the last saved version of this registration even if your copy is outdated - * @param registrationEditModel Registration data + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationInsertOrUpdate(id: number, externalReferenceId?: string, langKey?: LangKey, ignoreVersionCheck?: boolean, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public registrationInsertOrUpdate(requestParameters: RegistrationInsertOrUpdateRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationInsertOrUpdate(requestParameters: RegistrationInsertOrUpdateRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsertOrUpdate(requestParameters: RegistrationInsertOrUpdateRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationInsertOrUpdate(requestParameters: RegistrationInsertOrUpdateRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const id = requestParameters?.id; if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling registrationInsertOrUpdate.'); } + const externalReferenceId = requestParameters?.externalReferenceId; + const langKey = requestParameters?.langKey; + const ignoreVersionCheck = requestParameters?.ignoreVersionCheck; + const registrationEditModel = requestParameters?.registrationEditModel; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -397,18 +462,19 @@ export class RegistrationService extends BaseService { /** * Generate a preview figure for a snow profile registration. * @endpoint post /Registration/PlotPreviewPng - * @param format - * @param height - * @param width - * @param langKey 1 = norwegian, 2 = english, 3 = german, 4 = slovenian, 5 = swedish, 6 = italian, 7 = norwegian nynorsk. - * @param registrationEditModel Snow profile registration + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationPlotPreviewPng(format?: number, height?: number, width?: number, langKey?: LangKey, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationPlotPreviewPng(requestParameters?: RegistrationPlotPreviewPngRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public registrationPlotPreviewPng(requestParameters?: RegistrationPlotPreviewPngRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationPlotPreviewPng(requestParameters?: RegistrationPlotPreviewPngRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationPlotPreviewPng(requestParameters?: RegistrationPlotPreviewPngRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const format = requestParameters?.format; + const height = requestParameters?.height; + const width = requestParameters?.width; + const langKey = requestParameters?.langKey; + const registrationEditModel = requestParameters?.registrationEditModel; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, @@ -481,19 +547,20 @@ export class RegistrationService extends BaseService { /** * Validate registration data. * @endpoint post /Registration/Validate/{id} - * @param id RegId if existing registration else null if new - * @param externalReferenceId External reference id, must be unique for application and in GUID format - * @param registrationEditModel Registration data + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationValidate(id: number, externalReferenceId?: string, registrationEditModel?: RegistrationEditModel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public registrationValidate(requestParameters: RegistrationValidateRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationValidate(requestParameters: RegistrationValidateRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationValidate(requestParameters: RegistrationValidateRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationValidate(requestParameters: RegistrationValidateRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const id = requestParameters?.id; if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling registrationValidate.'); } + const externalReferenceId = requestParameters?.externalReferenceId; + const registrationEditModel = requestParameters?.registrationEditModel; let localVarQueryParameters = new HttpParams({encoder: this.encoder}); localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts index aab27d8f1..92a069d78 100644 --- a/src/app/modules/common-regobs-api/api/search.service.ts +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -41,6 +41,58 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface SearchAtAGlanceRequestParams { + /** Search criteria */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchAttachmentsCountRequestParams { + /** Search criteria */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchCountRequestParams { + /** Search criteria */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchCountMyRegistrationsRequestParams { + /** You may add additional filters */ + searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto; +} + +export interface SearchGetRegIdsFromDeletedRegistrationsRequestParams { + /** Search criteria */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchGetSearchCriteriaRequestParams { + /** A comma separated list of geo hazard ID\'s. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. */ + geoHazards: string; + /** NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 */ + langKey: number; +} + +export interface SearchSearchRequestParams { + /** Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchSearchCriteriaRequestParams { + /** A request for relevant search criteria */ + searchSideBarRequestDto?: SearchSideBarRequestDto; +} + +export interface SearchSearchImagesRequestParams { + /** Search criteria */ + searchCriteriaRequestDto?: SearchCriteriaRequestDto; +} + +export interface SearchSearchMyRegistrationsRequestParams { + /** Use this to filter out registrations and change ordering of them */ + searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto; +} + @Injectable({ providedIn: 'root' @@ -54,14 +106,15 @@ export class SearchService extends BaseService { /** * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info * @endpoint post /Search/AtAGlance - * @param searchCriteriaRequestDto Search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchAtAGlance(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchAtAGlance(requestParameters?: SearchAtAGlanceRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAtAGlance(requestParameters?: SearchAtAGlanceRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchAtAGlance(requestParameters?: SearchAtAGlanceRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchAtAGlance(requestParameters?: SearchAtAGlanceRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -126,14 +179,15 @@ export class SearchService extends BaseService { /** * Returns search result count for registrations with attachments * @endpoint post /Search/Attachments/Count - * @param searchCriteriaRequestDto Search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchAttachmentsCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchAttachmentsCount(requestParameters?: SearchAttachmentsCountRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchAttachmentsCount(requestParameters?: SearchAttachmentsCountRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAttachmentsCount(requestParameters?: SearchAttachmentsCountRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchAttachmentsCount(requestParameters?: SearchAttachmentsCountRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -198,14 +252,15 @@ export class SearchService extends BaseService { /** * Returns search result count * @endpoint post /Search/Count - * @param searchCriteriaRequestDto Search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchCount(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchCount(requestParameters?: SearchCountRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchCount(requestParameters?: SearchCountRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCount(requestParameters?: SearchCountRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCount(requestParameters?: SearchCountRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -270,14 +325,15 @@ export class SearchService extends BaseService { /** * Returns number of registrations that were registered by the logged in user * @endpoint post /Search/MyRegistrationsCount - * @param searchCriteriaExclUserRequestDto You may add additional filters + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchCountMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchCountMyRegistrations(requestParameters?: SearchCountMyRegistrationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchCountMyRegistrations(requestParameters?: SearchCountMyRegistrationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCountMyRegistrations(requestParameters?: SearchCountMyRegistrationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchCountMyRegistrations(requestParameters?: SearchCountMyRegistrationsRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaExclUserRequestDto = requestParameters?.searchCriteriaExclUserRequestDto; let localVarHeaders = this.defaultHeaders; @@ -342,14 +398,15 @@ export class SearchService extends BaseService { /** * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. * @endpoint post /Search/DeletedRegistrations - * @param searchCriteriaRequestDto Search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchGetRegIdsFromDeletedRegistrations(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchGetRegIdsFromDeletedRegistrations(requestParameters?: SearchGetRegIdsFromDeletedRegistrationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetRegIdsFromDeletedRegistrations(requestParameters?: SearchGetRegIdsFromDeletedRegistrationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchGetRegIdsFromDeletedRegistrations(requestParameters?: SearchGetRegIdsFromDeletedRegistrationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchGetRegIdsFromDeletedRegistrations(requestParameters?: SearchGetRegIdsFromDeletedRegistrationsRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -414,18 +471,19 @@ export class SearchService extends BaseService { /** * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint get /Search/SearchCriteria/{geoHazards}/{langKey} - * @param geoHazards A comma separated list of geo hazard ID\'s. Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. - * @param langKey NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6, NN = 7 + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchGetSearchCriteria(geoHazards: string, langKey: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchGetSearchCriteria(geoHazards: string, langKey: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchGetSearchCriteria(requestParameters: SearchGetSearchCriteriaRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchGetSearchCriteria(requestParameters: SearchGetSearchCriteriaRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetSearchCriteria(requestParameters: SearchGetSearchCriteriaRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchGetSearchCriteria(requestParameters: SearchGetSearchCriteriaRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const geoHazards = requestParameters?.geoHazards; if (geoHazards === null || geoHazards === undefined) { throw new Error('Required parameter geoHazards was null or undefined when calling searchGetSearchCriteria.'); } + const langKey = requestParameters?.langKey; if (langKey === null || langKey === undefined) { throw new Error('Required parameter langKey was null or undefined when calling searchGetSearchCriteria.'); } @@ -482,14 +540,15 @@ export class SearchService extends BaseService { * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search - * @param searchCriteriaRequestDto Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearch(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchSearch(requestParameters?: SearchSearchRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearch(requestParameters?: SearchSearchRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearch(requestParameters?: SearchSearchRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearch(requestParameters?: SearchSearchRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -554,15 +613,16 @@ export class SearchService extends BaseService { /** * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint post /Search/SearchCriteria - * @param searchSideBarRequestDto A request for relevant search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. * @deprecated */ - public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; - public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchSearchCriteria(searchSideBarRequestDto?: SearchSideBarRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchSearchCriteria(requestParameters?: SearchSearchCriteriaRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchSearchCriteria(requestParameters?: SearchSearchCriteriaRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchCriteria(requestParameters?: SearchSearchCriteriaRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchCriteria(requestParameters?: SearchSearchCriteriaRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchSideBarRequestDto = requestParameters?.searchSideBarRequestDto; let localVarHeaders = this.defaultHeaders; @@ -627,14 +687,15 @@ export class SearchService extends BaseService { /** * Search for images only * @endpoint post /Search/Attachments - * @param searchCriteriaRequestDto Search criteria + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearchImages(searchCriteriaRequestDto?: SearchCriteriaRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchSearchImages(requestParameters?: SearchSearchImagesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchImages(requestParameters?: SearchSearchImagesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchImages(requestParameters?: SearchSearchImagesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchImages(requestParameters?: SearchSearchImagesRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaRequestDto = requestParameters?.searchCriteriaRequestDto; let localVarHeaders = this.defaultHeaders; @@ -700,14 +761,15 @@ export class SearchService extends BaseService { * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search/MyRegistrations - * @param searchCriteriaExclUserRequestDto Use this to filter out registrations and change ordering of them + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public searchSearchMyRegistrations(searchCriteriaExclUserRequestDto?: SearchCriteriaExclUserRequestDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + public searchSearchMyRegistrations(requestParameters?: SearchSearchMyRegistrationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchSearchMyRegistrations(requestParameters?: SearchSearchMyRegistrationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchMyRegistrations(requestParameters?: SearchSearchMyRegistrationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public searchSearchMyRegistrations(requestParameters?: SearchSearchMyRegistrationsRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { + const searchCriteriaExclUserRequestDto = requestParameters?.searchCriteriaExclUserRequestDto; let localVarHeaders = this.defaultHeaders; diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts index f36d0d8fe..f3decfb98 100644 --- a/src/app/modules/common-regobs-api/api/trip.service.ts +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * @@ -27,6 +27,14 @@ import { Configuration } from '../configurat import { BaseService } from '../api.base.service'; +export interface TripCreateTripRequestParams { + createTripDto?: CreateTripDto; +} + +export interface TripUpdateTripRequestParams { + finishTripDto?: FinishTripDto; +} + @Injectable({ providedIn: 'root' @@ -39,14 +47,15 @@ export class TripService extends BaseService { /** * @endpoint post /Trip - * @param createTripDto + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public tripCreateTrip(createTripDto?: CreateTripDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public tripCreateTrip(createTripDto?: CreateTripDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public tripCreateTrip(requestParameters?: TripCreateTripRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public tripCreateTrip(requestParameters?: TripCreateTripRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripCreateTrip(requestParameters?: TripCreateTripRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripCreateTrip(requestParameters?: TripCreateTripRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const createTripDto = requestParameters?.createTripDto; let localVarHeaders = this.defaultHeaders; @@ -163,14 +172,15 @@ export class TripService extends BaseService { /** * @endpoint put /Trip - * @param finishTripDto + * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public tripUpdateTrip(finishTripDto?: FinishTripDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public tripUpdateTrip(finishTripDto?: FinishTripDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public tripUpdateTrip(requestParameters?: TripUpdateTripRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public tripUpdateTrip(requestParameters?: TripUpdateTripRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripUpdateTrip(requestParameters?: TripUpdateTripRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public tripUpdateTrip(requestParameters?: TripUpdateTripRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + const finishTripDto = requestParameters?.finishTripDto; let localVarHeaders = this.defaultHeaders; diff --git a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts index b3c28c6ac..083a1519e 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto.ts b/src/app/modules/common-regobs-api/model/areas-dto.ts index 8c3b25868..5b7af3323 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts index 01cf0975a..24e539c75 100644 --- a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts +++ b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts index 3e6b31103..478574609 100644 --- a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts index 57bdb5e43..7f2cbfd5a 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model.ts b/src/app/modules/common-regobs-api/model/attachment-view-model.ts index f33e3a279..8775c2846 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts index bdcb697f3..4c9e2ce57 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts index 9ee097f26..6acfdb38b 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts index a7c71fbb5..db101b45d 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts index 666a99525..8fe79317d 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts index e7647ad9d..bda52d2e4 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts index 9c106acc8..ae1be3aa0 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts index d675016cf..2fec5b082 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts index 5d6c32915..653cb5b60 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts index 87db8064c..57edd25e0 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts index 31b3f750f..1bdfa576d 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts index 05449e6fe..b4a68aea9 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts index 4b4b6cc09..b3e4266f5 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts index 72192cd9e..15072cbf1 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts index ec18afd3e..455efc564 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts index 6b12ad833..b82b9144d 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/county-dto.ts b/src/app/modules/common-regobs-api/model/county-dto.ts index fc0fe5124..0a14b8b14 100644 --- a/src/app/modules/common-regobs-api/model/county-dto.ts +++ b/src/app/modules/common-regobs-api/model/county-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/create-trip-dto.ts b/src/app/modules/common-regobs-api/model/create-trip-dto.ts index afd36f6e9..a661ce467 100644 --- a/src/app/modules/common-regobs-api/model/create-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/create-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts index 0cf669c08..4c57c6301 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts index 6c29d846d..d9303eba6 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts index 096c87f07..a79b424f6 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts index 2d51e8d09..3ba74ad65 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts index 765fb4438..56b8bdc3c 100644 --- a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts index 318c4548f..ed653b964 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts index 7114bc65c..a59d59210 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts index 61d95dd1a..0f4cd8463 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts index cd08d1016..b3f8745e0 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts index 4000b23b7..d58187170 100644 --- a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts +++ b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-info.ts b/src/app/modules/common-regobs-api/model/geo-location-info.ts new file mode 100644 index 000000000..8531d7ea2 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/geo-location-info.ts @@ -0,0 +1,25 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface GeoLocationInfo { + Name?: string | null; + Municipality?: string | null; + MunicipalityId?: string | null; + AdminAreaName?: string | null; + AdminAreaId?: string | null; + Country?: string | null; + CountryCode?: string | null; + Masl?: number | null; + Steepness?: number | null; + WarningRegionId?: string | null; + WarningRegionName?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/geo-location-summary.ts b/src/app/modules/common-regobs-api/model/geo-location-summary.ts new file mode 100644 index 000000000..433606b2e --- /dev/null +++ b/src/app/modules/common-regobs-api/model/geo-location-summary.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface GeoLocationSummary { + Header?: string | null; + Lines?: Array | null; +} + diff --git a/src/app/modules/common-regobs-api/model/helptext-dto.ts b/src/app/modules/common-regobs-api/model/helptext-dto.ts index 24505dfcb..b0c174a98 100644 --- a/src/app/modules/common-regobs-api/model/helptext-dto.ts +++ b/src/app/modules/common-regobs-api/model/helptext-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts index a00adb28c..f44b4ca3e 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts index befb1b0da..494c86b29 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts index ea3ea3fe6..ff2cb3847 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts index 5d307745a..7aebdb668 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts index 7c04ea593..a4b17a1af 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts index 5644b16bb..220e4a345 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-edit-model.ts b/src/app/modules/common-regobs-api/model/incident-edit-model.ts index 9f39b1c55..017fabf3a 100644 --- a/src/app/modules/common-regobs-api/model/incident-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-view-model.ts b/src/app/modules/common-regobs-api/model/incident-view-model.ts index 16ea4e036..723c1027c 100644 --- a/src/app/modules/common-regobs-api/model/incident-view-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/kdv-element.ts b/src/app/modules/common-regobs-api/model/kdv-element.ts new file mode 100644 index 000000000..96af42367 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/kdv-element.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface KdvElement { + Id?: number; + Name?: string | null; + Description?: string | null; +} + diff --git a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts new file mode 100644 index 000000000..fce2c8e63 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts @@ -0,0 +1,17 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { KdvElement } from './kdv-element'; + + +export interface KdvElementsResponseDto { + KdvRepositories?: { [key: string]: Array; } | null; + ViewRepositories?: any | null; +} + diff --git a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts index f0b7aa752..dc8cbcfdb 100644 --- a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-view-model.ts b/src/app/modules/common-regobs-api/model/landslide-view-model.ts index e82144750..73949e291 100644 --- a/src/app/modules/common-regobs-api/model/landslide-view-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lang-key.ts b/src/app/modules/common-regobs-api/model/lang-key.ts index 839fdf278..a71324e26 100644 --- a/src/app/modules/common-regobs-api/model/lang-key.ts +++ b/src/app/modules/common-regobs-api/model/lang-key.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng-object.ts b/src/app/modules/common-regobs-api/model/lat-lng-object.ts new file mode 100644 index 000000000..f71351624 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/lat-lng-object.ts @@ -0,0 +1,16 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface LatLngObject { + Latitude?: number; + Longitude?: number; +} + diff --git a/src/app/modules/common-regobs-api/model/lat-lng.ts b/src/app/modules/common-regobs-api/model/lat-lng.ts index 0e74c0b52..a5ac8e005 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/models.ts b/src/app/modules/common-regobs-api/model/models.ts index 415f1689a..efb5d72b3 100644 --- a/src/app/modules/common-regobs-api/model/models.ts +++ b/src/app/modules/common-regobs-api/model/models.ts @@ -31,6 +31,8 @@ export * from './forecast-region-sub-region-dto'; export * from './general-observation-edit-model'; export * from './general-observation-view-model'; export * from './geo-hazard-types'; +export * from './geo-location-info'; +export * from './geo-location-summary'; export * from './helptext-dto'; export * from './ice-cover-edit-model'; export * from './ice-cover-view-model'; @@ -40,13 +42,17 @@ export * from './ice-thickness-layer-view-model'; export * from './ice-thickness-view-model'; export * from './incident-edit-model'; export * from './incident-view-model'; +export * from './kdv-element'; +export * from './kdv-elements-response-dto'; export * from './landslide-edit-model'; export * from './landslide-view-model'; export * from './lang-key'; export * from './lat-lng'; +export * from './lat-lng-object'; export * from './my-page-data'; export * from './obs-location-edit-model'; export * from './obs-location-view-model'; +export * from './obs-locations-response-dto-v2'; export * from './observer-competence-dto'; export * from './observer-competence-level-dto'; export * from './observer-group-dto'; diff --git a/src/app/modules/common-regobs-api/model/my-page-data.ts b/src/app/modules/common-regobs-api/model/my-page-data.ts index 6921b7bf4..1f6395b17 100644 --- a/src/app/modules/common-regobs-api/model/my-page-data.ts +++ b/src/app/modules/common-regobs-api/model/my-page-data.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts index 66c780e72..1c9ca4234 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts index 6a190b438..9d256d9f2 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts new file mode 100644 index 000000000..174e17da9 --- /dev/null +++ b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts @@ -0,0 +1,24 @@ +/** + * RegObs API, build: 20251103.5 - commit: 62e967e0 + * + * Contact: regobs@nve.no + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LatLngObject } from './lat-lng-object'; + + +export interface ObsLocationsResponseDtoV2 { + Name?: string | null; + Id?: number; + Distance?: number; + LatLngObject?: LatLngObject | null; + ObserverNickName?: string | null; + ObserverGroupName?: string | null; + ObserverGroupId?: number | null; + LocationDescription?: string | null; + GeoHazardId?: number | null; +} + diff --git a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts index e528c9391..a8f2f664f 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts index fe1baa649..19acff4be 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-group-dto.ts b/src/app/modules/common-regobs-api/model/observer-group-dto.ts index 9b351206d..5bd5d73a6 100644 --- a/src/app/modules/common-regobs-api/model/observer-group-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-group-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts index 0d0b6eae0..e7fd49963 100644 --- a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-response-dto.ts b/src/app/modules/common-regobs-api/model/observer-response-dto.ts index 9786b8e7c..1b514e887 100644 --- a/src/app/modules/common-regobs-api/model/observer-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-view-model.ts b/src/app/modules/common-regobs-api/model/observer-view-model.ts index b26324c1b..d1846fce6 100644 --- a/src/app/modules/common-regobs-api/model/observer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/observer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/operator.ts b/src/app/modules/common-regobs-api/model/operator.ts index 439162196..6710b36df 100644 --- a/src/app/modules/common-regobs-api/model/operator.ts +++ b/src/app/modules/common-regobs-api/model/operator.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/position-dto.ts b/src/app/modules/common-regobs-api/model/position-dto.ts index 2f2f366c2..2c189ba49 100644 --- a/src/app/modules/common-regobs-api/model/position-dto.ts +++ b/src/app/modules/common-regobs-api/model/position-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/problem-details.ts b/src/app/modules/common-regobs-api/model/problem-details.ts index 80952e00d..ab3e5f709 100644 --- a/src/app/modules/common-regobs-api/model/problem-details.ts +++ b/src/app/modules/common-regobs-api/model/problem-details.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/property-filter.ts b/src/app/modules/common-regobs-api/model/property-filter.ts index 4782b3e6e..5e69ffbe0 100644 --- a/src/app/modules/common-regobs-api/model/property-filter.ts +++ b/src/app/modules/common-regobs-api/model/property-filter.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts index 7f84c0ec0..9fd58fe48 100644 --- a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts +++ b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-edit-model.ts b/src/app/modules/common-regobs-api/model/registration-edit-model.ts index 3364f9b55..cabcf3022 100644 --- a/src/app/modules/common-regobs-api/model/registration-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts index 58bc00f3e..4a46de341 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-dto.ts index 00df23e3e..d2cbbfc3f 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts index 0021603a2..72736fdb3 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts index 7e2124ef0..f520d8985 100644 --- a/src/app/modules/common-regobs-api/model/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts index ec366df75..5b8ac1241 100644 --- a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts +++ b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts index 2d344551e..2c059e6de 100644 --- a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts index 1b1ecc33a..adc3e4fd9 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts index 989a9d551..ec6a6d064 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts index 3eebbce7e..da618c20d 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts index dcbe9acd9..cc9e63272 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts index 6339f4747..71bd6fc1f 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts index 5fa8ca487..6940dbff4 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts index dabcd2719..6783bb1a4 100644 --- a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts index 40929b4af..f8bfbfe5f 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-model.ts b/src/app/modules/common-regobs-api/model/snow-density-model.ts index a760fb063..d0ee003e9 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts index e0b10ae67..58ec78f1f 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts index 0df6048dd..bc030539c 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts index 5579c7e30..c4c2e58e1 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts index b2184bae3..4f9d4d9b4 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-model.ts index 89f11d3a9..cf2be7aa3 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts index c01e375da..0d5342e93 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts index d572c028a..8dc624ecc 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts index e317b9a25..5621a6538 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts index 4b805d973..63a9f6178 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts index f0788fb6a..eeef99005 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/summary.ts b/src/app/modules/common-regobs-api/model/summary.ts index 32c59f33c..afc7f4754 100644 --- a/src/app/modules/common-regobs-api/model/summary.ts +++ b/src/app/modules/common-regobs-api/model/summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-edit-model.ts b/src/app/modules/common-regobs-api/model/url-edit-model.ts index 171d0a06b..a28b80881 100644 --- a/src/app/modules/common-regobs-api/model/url-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/url-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-view-model.ts b/src/app/modules/common-regobs-api/model/url-view-model.ts index 33bd4ccab..81e0ed663 100644 --- a/src/app/modules/common-regobs-api/model/url-view-model.ts +++ b/src/app/modules/common-regobs-api/model/url-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/value-kind.ts b/src/app/modules/common-regobs-api/model/value-kind.ts index 312c7df4a..43d12e151 100644 --- a/src/app/modules/common-regobs-api/model/value-kind.ts +++ b/src/app/modules/common-regobs-api/model/value-kind.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts index 3f21f3598..0479eca07 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts index 52519f738..9e127f1b5 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-view-model.ts index 4e5fe145d..e0ebc5e9b 100644 --- a/src/app/modules/common-regobs-api/model/water-level-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts index bfcc1aff8..b93678691 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts index 099d93df4..2df0c60e4 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-edit-model.ts b/src/app/modules/common-regobs-api/model/weather-edit-model.ts index 46f6f383a..f33ac3526 100644 --- a/src/app/modules/common-regobs-api/model/weather-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-view-model.ts b/src/app/modules/common-regobs-api/model/weather-view-model.ts index ee83e2a2a..b5e2d8d79 100644 --- a/src/app/modules/common-regobs-api/model/weather-view-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts index 4cbb665df..7de937a36 100644 --- a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts index 24b4d9b95..c5ab71a8b 100644 --- a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.4 - commit: 59238037 + * RegObs API, build: 20251103.5 - commit: 62e967e0 * * Contact: regobs@nve.no * From 00b57d68da561eb96ccbd0a62c2e2a2b3bbcedcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Thu, 13 Nov 2025 12:36:14 +0100 Subject: [PATCH 04/16] Generer --- .../common-regobs-api/api.base.service.ts | 2 +- .../common-regobs-api/api/account.service.ts | 2 +- .../api/attachment.service.ts | 2 +- .../common-regobs-api/api/geo-code.service.ts | 2 +- .../common-regobs-api/api/helptext.service.ts | 2 +- .../api/kdv-elements.service.ts | 4 +-- .../common-regobs-api/api/location.service.ts | 4 +-- .../api/registration.service.ts | 32 +++++++++++-------- .../common-regobs-api/api/search.service.ts | 20 ++++++------ .../common-regobs-api/api/trip.service.ts | 4 +-- .../model/areas-dto-forecast-regions.ts | 2 +- .../common-regobs-api/model/areas-dto.ts | 6 ++-- .../model/at-a-glance-view-model.ts | 14 ++++---- .../model/attachment-edit-model.ts | 2 +- .../attachment-view-model-url-formats.ts | 2 +- .../model/attachment-view-model.ts | 6 ++-- .../avalanche-activity-obs-view-model.ts | 12 +++---- .../avalanche-activity-obs2-edit-model.ts | 2 +- .../avalanche-activity-obs2-view-model.ts | 2 +- .../model/avalanche-danger-obs-view-model.ts | 4 +-- .../avalanche-eval-problem-view-model.ts | 4 +-- .../avalanche-eval-problem2-edit-model.ts | 10 +++--- .../avalanche-eval-problem2-view-model.ts | 10 +++--- .../model/avalanche-evaluation-view-model.ts | 8 ++--- .../model/avalanche-evaluation2-view-model.ts | 2 +- .../model/avalanche-evaluation3-edit-model.ts | 2 +- .../model/avalanche-evaluation3-view-model.ts | 2 +- .../model/avalanche-obs-edit-model.ts | 2 +- .../model/avalanche-obs-view-model.ts | 2 +- .../model/compression-test-edit-model.ts | 2 +- .../model/compression-test-view-model.ts | 2 +- .../common-regobs-api/model/county-dto.ts | 2 +- .../model/create-trip-dto.ts | 10 +++--- .../model/damage-obs-edit-model.ts | 2 +- .../model/damage-obs-view-model.ts | 2 +- .../model/danger-obs-edit-model.ts | 2 +- .../model/danger-obs-view-model.ts | 2 +- .../model/finish-trip-dto.ts | 4 +-- .../model/forecast-region-dto.ts | 8 ++--- .../model/forecast-region-sub-region-dto.ts | 6 ++-- .../model/general-observation-edit-model.ts | 2 +- .../model/general-observation-view-model.ts | 2 +- .../model/geo-hazard-types.ts | 2 +- .../model/geo-location-info.ts | 2 +- .../model/geo-location-summary.ts | 2 +- .../common-regobs-api/model/helptext-dto.ts | 8 ++--- .../model/ice-cover-edit-model.ts | 2 +- .../model/ice-cover-view-model.ts | 2 +- .../model/ice-thickness-edit-model.ts | 2 +- .../model/ice-thickness-layer-edit-model.ts | 2 +- .../model/ice-thickness-layer-view-model.ts | 2 +- .../model/ice-thickness-view-model.ts | 2 +- .../model/incident-edit-model.ts | 2 +- .../model/incident-view-model.ts | 2 +- .../common-regobs-api/model/kdv-element.ts | 4 +-- .../model/kdv-elements-response-dto.ts | 2 +- .../model/landslide-edit-model.ts | 2 +- .../model/landslide-view-model.ts | 2 +- .../common-regobs-api/model/lang-key.ts | 2 +- .../common-regobs-api/model/lat-lng-object.ts | 6 ++-- .../common-regobs-api/model/lat-lng.ts | 6 ++-- .../common-regobs-api/model/my-page-data.ts | 10 +++--- .../model/obs-location-edit-model.ts | 2 +- .../model/obs-location-view-model.ts | 2 +- .../model/obs-locations-response-dto-v2.ts | 6 ++-- .../model/observer-competence-dto.ts | 6 ++-- .../model/observer-competence-level-dto.ts | 6 ++-- .../model/observer-group-dto.ts | 4 +-- .../model/observer-patch-request-dto.ts | 2 +- .../model/observer-response-dto.ts | 4 +-- .../model/observer-view-model.ts | 6 ++-- .../common-regobs-api/model/operator.ts | 2 +- .../common-regobs-api/model/position-dto.ts | 6 ++-- .../model/problem-details.ts | 2 +- .../model/property-filter.ts | 6 ++-- .../model/reg-obs-generic-value.ts | 4 +-- .../model/registration-edit-model.ts | 2 +- .../model/registration-type-criteria-dto.ts | 4 +-- .../model/registration-type-dto.ts | 6 ++-- .../model/registration-type-sub-type-dto.ts | 6 ++-- .../model/registration-view-model.ts | 4 +-- .../model/registrations-with-attachments.ts | 4 +-- .../model/search-count-response-dto.ts | 4 +-- .../search-criteria-excl-user-request-dto.ts | 16 +++++----- .../model/search-criteria-request-dto.ts | 20 ++++++------ ...side-bar-dto-observer-competence-levels.ts | 2 +- .../search-side-bar-dto-registration-types.ts | 2 +- .../model/search-side-bar-dto.ts | 2 +- .../model/search-side-bar-request-dto.ts | 8 ++--- .../model/snow-cover-obs-view-model.ts | 2 +- .../model/snow-density-layer-model.ts | 8 ++--- .../model/snow-density-model.ts | 2 +- .../model/snow-profile-edit-model.ts | 2 +- .../model/snow-profile-view-model.ts | 4 +-- .../model/snow-surface-edit-model.ts | 2 +- .../model/snow-surface-view-model.ts | 2 +- .../model/snow-temp-model.ts | 2 +- .../model/snow-temp-obs-model.ts | 6 ++-- .../model/strat-profile-edit-model.ts | 2 +- .../model/strat-profile-layer-edit-model.ts | 4 +-- .../model/strat-profile-layer-view-model.ts | 4 +-- .../model/strat-profile-view-model.ts | 4 +-- .../common-regobs-api/model/summary.ts | 4 +-- .../common-regobs-api/model/url-edit-model.ts | 2 +- .../common-regobs-api/model/url-view-model.ts | 2 +- .../common-regobs-api/model/value-kind.ts | 2 +- .../water-level-measurement-edit-model.ts | 2 +- .../water-level-measurement-view-model.ts | 4 +-- .../model/water-level-view-model.ts | 6 ++-- .../model/waterlevel2-edit-model.ts | 2 +- .../model/waterlevel2-view-model.ts | 2 +- .../model/weather-edit-model.ts | 2 +- .../model/weather-view-model.ts | 2 +- .../model/within-extent-criteria-dto.ts | 2 +- .../model/within-radius-criteria-dto.ts | 4 +-- 115 files changed, 250 insertions(+), 246 deletions(-) diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts index c095f539c..44ed92ed9 100644 --- a/src/app/modules/common-regobs-api/api.base.service.ts +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts index 47c3915f7..5f44024f3 100644 --- a/src/app/modules/common-regobs-api/api/account.service.ts +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts index 48b1781be..8da096a03 100644 --- a/src/app/modules/common-regobs-api/api/attachment.service.ts +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts index b78ee2a3e..92e5ab131 100644 --- a/src/app/modules/common-regobs-api/api/geo-code.service.ts +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts index d1d2a34c3..da9a809a0 100644 --- a/src/app/modules/common-regobs-api/api/helptext.service.ts +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts index 746098b44..b2215d590 100644 --- a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -47,7 +47,7 @@ export class KdvElementsService extends BaseService { } /** - * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). + * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). * @endpoint get /KdvElements * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts index ea2748940..5c6088619 100644 --- a/src/app/modules/common-regobs-api/api/location.service.ts +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -120,7 +120,7 @@ export class LocationService extends BaseService { } /** - * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. + * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. * @endpoint get /Location/WithinRadius * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts index 3cdc503d4..0008508c9 100644 --- a/src/app/modules/common-regobs-api/api/registration.service.ts +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { Inject, Injectable, Optional } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; @@ -167,10 +167,10 @@ export class RegistrationService extends BaseService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGet(requestParameters: RegistrationGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGet(requestParameters: RegistrationGetRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json', context?: HttpContext, transferCache?: boolean}): Observable { const regId = requestParameters?.regId; if (regId === null || regId === undefined) { throw new Error('Required parameter regId was null or undefined when calling registrationGet.'); @@ -189,6 +189,9 @@ export class RegistrationService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'text/plain', + 'application/json', + 'text/json' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -212,7 +215,7 @@ export class RegistrationService extends BaseService { let localVarPath = `/Registration/${this.configuration.encodeParam({name: "regId", value: regId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "langKey", value: langKey, in: "path", style: "simple", explode: false, dataType: "LangKey", dataFormat: undefined})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -227,16 +230,16 @@ export class RegistrationService extends BaseService { /** * Get a registration in CAAML format - * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. + * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. * @endpoint get /Registration/Caaml/{regId} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable>; + public registrationGetCaaml(requestParameters: RegistrationGetCaamlRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/xml', context?: HttpContext, transferCache?: boolean}): Observable { const regId = requestParameters?.regId; if (regId === null || regId === undefined) { throw new Error('Required parameter regId was null or undefined when calling registrationGetCaaml.'); @@ -251,6 +254,7 @@ export class RegistrationService extends BaseService { localVarHeaders = this.configuration.addCredentialToHeaders('Bearer', 'Authorization', localVarHeaders, 'Bearer '); const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/xml' ]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); @@ -289,7 +293,7 @@ export class RegistrationService extends BaseService { /** * Create a new registration. The purpose is to send in one or more forms. - * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } + * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } * @endpoint post /Registration * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -371,7 +375,7 @@ export class RegistrationService extends BaseService { } /** - * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. + * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. * @endpoint put /Registration/{id} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts index 92a069d78..3b25eb68c 100644 --- a/src/app/modules/common-regobs-api/api/search.service.ts +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -74,7 +74,7 @@ export interface SearchGetSearchCriteriaRequestParams { } export interface SearchSearchRequestParams { - /** Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. */ + /** Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. */ searchCriteriaRequestDto?: SearchCriteriaRequestDto; } @@ -104,7 +104,7 @@ export class SearchService extends BaseService { } /** - * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info + * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info * @endpoint post /Search/AtAGlance * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -396,7 +396,7 @@ export class SearchService extends BaseService { } /** - * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. + * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. * @endpoint post /Search/DeletedRegistrations * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -469,7 +469,7 @@ export class SearchService extends BaseService { } /** - * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint get /Search/SearchCriteria/{geoHazards}/{langKey} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -537,8 +537,8 @@ export class SearchService extends BaseService { } /** - * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. - * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -611,7 +611,7 @@ export class SearchService extends BaseService { } /** - * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint post /Search/SearchCriteria * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -758,8 +758,8 @@ export class SearchService extends BaseService { } /** - * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. - * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search/MyRegistrations * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts index f3decfb98..f9e62bbee 100644 --- a/src/app/modules/common-regobs-api/api/trip.service.ts +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -115,7 +115,7 @@ export class TripService extends BaseService { } /** - * Fetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group. + * Fetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group. * @endpoint get /Trip/ObserverTrips * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. diff --git a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts index 083a1519e..d2238ac28 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto.ts b/src/app/modules/common-regobs-api/model/areas-dto.ts index 5b7af3323..b318767b0 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,10 +12,10 @@ import { CountyDto } from './county-dto'; export interface AreasDto { - CountryId?: number; + CountryId: number; CountryName?: string | null; CountryDescription?: string | null; - SortOrder?: number; + SortOrder: number; ForecastRegions?: AreasDtoForecastRegions | null; Counties?: Array | null; } diff --git a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts index 24e539c75..ec36d6b9c 100644 --- a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts +++ b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,16 +10,16 @@ export interface AtAGlanceViewModel { - RegId?: number; + RegId: number; GeoHazardTID?: number | null; - DtObsTime?: string; + DtObsTime: string; NickName?: string | null; CompetenceLevelTID?: number | null; Title?: string | null; - Latitude?: number; - Longitude?: number; - UtmNorth?: number; - UtmEast?: number; + Latitude: number; + Longitude: number; + UtmNorth: number; + UtmEast: number; FormNames?: Array | null; /** * Returns first attachement url from the observation or null diff --git a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts index 478574609..16dd2607b 100644 --- a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts index 7f2cbfd5a..76934c003 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model.ts b/src/app/modules/common-regobs-api/model/attachment-view-model.ts index 8775c2846..f545f185a 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -40,7 +40,7 @@ export interface AttachmentViewModel { * Om bildet skal vises først i registreringen, eller ikke */ IsMainAttachment?: boolean | null; - AttachmentId?: number; + AttachmentId: number; /** * GeoHazard name */ @@ -57,6 +57,6 @@ export interface AttachmentViewModel { /** * If true, the attachment is an image generated from a snow profile plot */ - IsSnowProfilePlot?: boolean; + IsSnowProfilePlot: boolean; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts index 4c9e2ce57..d30e5a6f5 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -13,19 +13,19 @@ export interface AvalancheActivityObsViewModel { /** * Unik id på denne tabellen da flere er mulig pr RegID. */ - AvalancheActivityObsID?: number; + AvalancheActivityObsID: number; /** * Hvilken side av fjellene har skredene gått? Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. */ - Aspect?: number; + Aspect: number; /** * Meter over havet på løsneområdet. */ - HeigthStartZone?: number; + HeigthStartZone: number; /** * Når gikk skredene? Her bruker vi feltet som en ca. tid og brukerene oppfordres til å anta best mulig. */ - DtAvalancheTime?: string; + DtAvalancheTime: string; /** * Hvor store er skredene?. The DestructiveSizeKD unique identifier */ @@ -60,6 +60,6 @@ export interface AvalancheActivityObsViewModel { * Kommentarfelt for å skrive utfyllende tekst om observasjonen. */ Comment?: string | null; - DtOffAvalancheTime?: string; + DtOffAvalancheTime: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts index 6acfdb38b..c94ab4bdf 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts index db101b45d..07127ad2b 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts index 8fe79317d..11d2dbac0 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface AvalancheDangerObsViewModel { - AvalancheDangerObsID?: number; + AvalancheDangerObsID: number; DangerSignTID?: number | null; DangerSignName?: string | null; Comment?: string | null; diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts index bda52d2e4..eba06fa88 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface AvalancheEvalProblemViewModel { - AvalancheEvalProblemID?: number; + AvalancheEvalProblemID: number; AvalProbabilityTID?: number | null; AvalProbabilityName?: string | null; AvalTriggerSimpleTID?: number | null; diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts index ae1be3aa0..d42b7dcfa 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -54,10 +54,10 @@ export interface AvalancheEvalProblem2EditModel { * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier */ AvalCauseTID?: number | null; - AvalCauseAttributeLightTID?: number; - AvalCauseAttributeThinTID?: number; - AvalCauseAttributeSoftTID?: number; - AvalCauseAttributeCrystalTID?: number; + AvalCauseAttributeLightTID: number; + AvalCauseAttributeThinTID: number; + AvalCauseAttributeSoftTID: number; + AvalCauseAttributeCrystalTID: number; /** * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier */ diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts index 2fec5b082..5b228972a 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -54,10 +54,10 @@ export interface AvalancheEvalProblem2ViewModel { * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier */ AvalCauseTID?: number | null; - AvalCauseAttributeLightTID?: number; - AvalCauseAttributeThinTID?: number; - AvalCauseAttributeSoftTID?: number; - AvalCauseAttributeCrystalTID?: number; + AvalCauseAttributeLightTID: number; + AvalCauseAttributeThinTID: number; + AvalCauseAttributeSoftTID: number; + AvalCauseAttributeCrystalTID: number; /** * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier */ diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts index 653cb5b60..a20654888 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,9 +10,9 @@ export interface AvalancheEvaluationViewModel { - RegID?: number; - CanPublish?: boolean; - AvalancheDangerTID?: number; + RegID: number; + CanPublish: boolean; + AvalancheDangerTID: number; AvalancheDangerName?: string | null; ValidExposition?: string | null; ValidHeightRelative?: string | null; diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts index 57edd25e0..95a6f685a 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts index 1bdfa576d..86fc5806b 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts index b4a68aea9..bdea3762e 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts index b3e4266f5..093b2d920 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts index 15072cbf1..f90ebbbb3 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts index 455efc564..8de03094c 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts index b82b9144d..1af99b179 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/county-dto.ts b/src/app/modules/common-regobs-api/model/county-dto.ts index 0a14b8b14..eb51c2413 100644 --- a/src/app/modules/common-regobs-api/model/county-dto.ts +++ b/src/app/modules/common-regobs-api/model/county-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/create-trip-dto.ts b/src/app/modules/common-regobs-api/model/create-trip-dto.ts index a661ce467..c4839684b 100644 --- a/src/app/modules/common-regobs-api/model/create-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/create-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,11 +11,11 @@ export interface CreateTripDto { Comment?: string | null; - DeviceGuid?: string; - GeoHazardID?: number; + DeviceGuid: string; + GeoHazardID: number; Lat?: string | null; Lng?: string | null; - ObservationExpectedMinutes?: number; - TripTypeID?: number; + ObservationExpectedMinutes: number; + TripTypeID: number; } diff --git a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts index 4c57c6301..991a4f535 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts index d9303eba6..aa13b0d85 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts index a79b424f6..9330bab88 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts index 3ba74ad65..6b2e91b9e 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts index 56b8bdc3c..eb384db22 100644 --- a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,6 +10,6 @@ export interface FinishTripDto { - DeviceGuid?: string; + DeviceGuid: string; } diff --git a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts index ed653b964..c0f5e92df 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,10 +11,10 @@ import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; export interface ForecastRegionDto { - Id?: number; + Id: number; Text?: string | null; - SortOrder?: number; + SortOrder: number; SubRegions?: Array | null; - IsRegionForGrouping?: boolean; + IsRegionForGrouping: boolean; } diff --git a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts index a59d59210..1b73f277a 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,9 +10,9 @@ export interface ForecastRegionSubRegionDto { - Id?: number; + Id: number; Text?: string | null; RegionType?: string | null; - SortOrder?: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts index 0f4cd8463..696fb2e92 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts index b3f8745e0..618988e26 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts index d58187170..f592d94eb 100644 --- a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts +++ b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-info.ts b/src/app/modules/common-regobs-api/model/geo-location-info.ts index 8531d7ea2..7ef1d1a53 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-info.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-info.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-summary.ts b/src/app/modules/common-regobs-api/model/geo-location-summary.ts index 433606b2e..83e5c8be8 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-summary.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/helptext-dto.ts b/src/app/modules/common-regobs-api/model/helptext-dto.ts index b0c174a98..7effaf9c2 100644 --- a/src/app/modules/common-regobs-api/model/helptext-dto.ts +++ b/src/app/modules/common-regobs-api/model/helptext-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,9 +10,9 @@ export interface HelptextDto { - RegistrationTID?: number; - GeoHazardTID?: number; - LangKey?: number; + RegistrationTID: number; + GeoHazardTID: number; + LangKey: number; Text?: string | null; } diff --git a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts index f44b4ca3e..b6b4168c8 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts index 494c86b29..8565bfd2e 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts index ff2cb3847..2e1b89e3e 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts index 7aebdb668..043221907 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts index a4b17a1af..1906d16fd 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts index 220e4a345..6e33246a0 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-edit-model.ts b/src/app/modules/common-regobs-api/model/incident-edit-model.ts index 017fabf3a..31bc137f9 100644 --- a/src/app/modules/common-regobs-api/model/incident-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-view-model.ts b/src/app/modules/common-regobs-api/model/incident-view-model.ts index 723c1027c..45640275c 100644 --- a/src/app/modules/common-regobs-api/model/incident-view-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/kdv-element.ts b/src/app/modules/common-regobs-api/model/kdv-element.ts index 96af42367..7bf6d3482 100644 --- a/src/app/modules/common-regobs-api/model/kdv-element.ts +++ b/src/app/modules/common-regobs-api/model/kdv-element.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface KdvElement { - Id?: number; + Id: number; Name?: string | null; Description?: string | null; } diff --git a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts index fce2c8e63..75b7a290b 100644 --- a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts index dc8cbcfdb..571ae2046 100644 --- a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-view-model.ts b/src/app/modules/common-regobs-api/model/landslide-view-model.ts index 73949e291..0fdfe438d 100644 --- a/src/app/modules/common-regobs-api/model/landslide-view-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lang-key.ts b/src/app/modules/common-regobs-api/model/lang-key.ts index a71324e26..b2698f7dd 100644 --- a/src/app/modules/common-regobs-api/model/lang-key.ts +++ b/src/app/modules/common-regobs-api/model/lang-key.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng-object.ts b/src/app/modules/common-regobs-api/model/lat-lng-object.ts index f71351624..b0ed5853b 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng-object.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng-object.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface LatLngObject { - Latitude?: number; - Longitude?: number; + Latitude: number; + Longitude: number; } diff --git a/src/app/modules/common-regobs-api/model/lat-lng.ts b/src/app/modules/common-regobs-api/model/lat-lng.ts index a5ac8e005..5ca80e8ba 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface LatLng { - Latitude?: number; - Longitude?: number; + Latitude: number; + Longitude: number; } diff --git a/src/app/modules/common-regobs-api/model/my-page-data.ts b/src/app/modules/common-regobs-api/model/my-page-data.ts index 1f6395b17..935845d86 100644 --- a/src/app/modules/common-regobs-api/model/my-page-data.ts +++ b/src/app/modules/common-regobs-api/model/my-page-data.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,11 +12,11 @@ import { ObserverCompetenceDto } from './observer-competence-dto'; export interface MyPageData { - Guid?: string; + Guid: string; /** * Returns unique id that identifies an observer */ - ObserverId?: number; + ObserverId: number; NickName?: string | null; Email?: string | null; MobPhoneNr?: string | null; @@ -28,8 +28,8 @@ export interface MyPageData { MemberOfGroups?: Array | null; PendingInvitationsToGroups?: Array | null; Competence?: Array | null; - NumberOfObservations?: number; - MainGeohazardTID?: number; + NumberOfObservations: number; + MainGeohazardTID: number; LastRegistrationDate?: string | null; DefaultMunicipality?: string | null; Roles?: Array | null; diff --git a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts index 1c9ca4234..921df5b3b 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts index 9d256d9f2..6f71aa0fe 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts index 174e17da9..f558d6ba6 100644 --- a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts +++ b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,8 +12,8 @@ import { LatLngObject } from './lat-lng-object'; export interface ObsLocationsResponseDtoV2 { Name?: string | null; - Id?: number; - Distance?: number; + Id: number; + Distance: number; LatLngObject?: LatLngObject | null; ObserverNickName?: string | null; ObserverGroupName?: string | null; diff --git a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts index a8f2f664f..7d9cf8923 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,8 +10,8 @@ export interface ObserverCompetenceDto { - CompetenceTID?: number; - GeohazardTID?: number; + CompetenceTID: number; + GeohazardTID: number; CompetenceName?: string | null; CompetenceDescription?: string | null; } diff --git a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts index 19acff4be..5875350ce 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,9 +10,9 @@ export interface ObserverCompetenceLevelDto { - Id?: number; + Id: number; Name?: string | null; Description?: string | null; - SortOrder?: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/observer-group-dto.ts b/src/app/modules/common-regobs-api/model/observer-group-dto.ts index 5bd5d73a6..fa59ab159 100644 --- a/src/app/modules/common-regobs-api/model/observer-group-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-group-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface ObserverGroupDto { - Id?: number; + Id: number; Name?: string | null; ObserverGroupDescription?: string | null; WorkPlace?: string | null; diff --git a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts index e7fd49963..5a7d98c26 100644 --- a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-response-dto.ts b/src/app/modules/common-regobs-api/model/observer-response-dto.ts index 1b514e887..b38e41b0a 100644 --- a/src/app/modules/common-regobs-api/model/observer-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { ObserverGroupDto } from './observer-group-dto'; export interface ObserverResponseDto { - Guid?: string; + Guid: string; ObserverGroup?: Array | null; Nick?: string | null; } diff --git a/src/app/modules/common-regobs-api/model/observer-view-model.ts b/src/app/modules/common-regobs-api/model/observer-view-model.ts index d1846fce6..d00fb06cc 100644 --- a/src/app/modules/common-regobs-api/model/observer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/observer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,8 +11,8 @@ export interface ObserverViewModel { NickName?: string | null; - ObserverID?: number; - CompetenceLevelTID?: number; + ObserverID: number; + CompetenceLevelTID: number; CompetenceLevelName?: string | null; } diff --git a/src/app/modules/common-regobs-api/model/operator.ts b/src/app/modules/common-regobs-api/model/operator.ts index 6710b36df..ccb7a174b 100644 --- a/src/app/modules/common-regobs-api/model/operator.ts +++ b/src/app/modules/common-regobs-api/model/operator.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/position-dto.ts b/src/app/modules/common-regobs-api/model/position-dto.ts index 2c189ba49..3d45681d6 100644 --- a/src/app/modules/common-regobs-api/model/position-dto.ts +++ b/src/app/modules/common-regobs-api/model/position-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface PositionDto { - Latitude?: number; - Longitude?: number; + Latitude: number; + Longitude: number; } diff --git a/src/app/modules/common-regobs-api/model/problem-details.ts b/src/app/modules/common-regobs-api/model/problem-details.ts index ab3e5f709..5bcfe0f0a 100644 --- a/src/app/modules/common-regobs-api/model/problem-details.ts +++ b/src/app/modules/common-regobs-api/model/problem-details.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/property-filter.ts b/src/app/modules/common-regobs-api/model/property-filter.ts index 5e69ffbe0..807925eeb 100644 --- a/src/app/modules/common-regobs-api/model/property-filter.ts +++ b/src/app/modules/common-regobs-api/model/property-filter.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -15,10 +15,10 @@ import { Operator } from './operator'; */ export interface PropertyFilter { /** - * Property name. Properties in sub schemas must be prefixed with schema name. Example: AvalancheObs.AvalancheTID Multiple instance schemas, like DangerSign, are not supported. If you use unknown/unsupported properties, you will get an HTTP 400. + * Property name. Properties in sub schemas must be prefixed with schema name. Example: AvalancheObs.AvalancheTID Multiple instance schemas, like DangerSign, are not supported. If you use unknown/unsupported properties, you will get an HTTP 400. */ Name?: string | null; - Operator?: Operator; + Operator: Operator; /** * Target property value */ diff --git a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts index 9fd58fe48..47f4e9d2a 100644 --- a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts +++ b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { ValueKind } from './value-kind'; export interface RegObsGenericValue { - Kind?: ValueKind; + Kind: ValueKind; readonly KindType?: string | null; Header?: string | null; Value?: any | null; diff --git a/src/app/modules/common-regobs-api/model/registration-edit-model.ts b/src/app/modules/common-regobs-api/model/registration-edit-model.ts index cabcf3022..c88d0baeb 100644 --- a/src/app/modules/common-regobs-api/model/registration-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts index 4a46de341..874eb11c8 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -13,7 +13,7 @@ export interface RegistrationTypeCriteriaDto { /** * TODO: See */ - Id?: number; + Id: number; SubTypes?: Array | null; } diff --git a/src/app/modules/common-regobs-api/model/registration-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-dto.ts index d2cbbfc3f..c53fe8ad2 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,9 +11,9 @@ import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; export interface RegistrationTypeDto { - Id?: number; + Id: number; Name?: string | null; SubTypes?: Array | null; - SortOrder?: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts index 72736fdb3..9beb12bdc 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,8 +10,8 @@ export interface RegistrationTypeSubTypeDto { - Id?: number; + Id: number; Name?: string | null; - SortOrder?: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts index f520d8985..32de052b3 100644 --- a/src/app/modules/common-regobs-api/model/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -56,7 +56,7 @@ export interface RegistrationViewModel { * If set to true, the user\'s account will not be shown publicly. NVE will still be able to see who sent in the observation. */ Anonymous?: boolean | null; - RegId?: number; + RegId: number; /** * Ekstern referanse ID. Må være unik for Applikasjon. */ diff --git a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts index 5b8ac1241..edd8a3423 100644 --- a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts +++ b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -14,7 +14,7 @@ export interface RegistrationsWithAttachments { /** * Unique registration id that contains attachments */ - RegId?: number; + RegId: number; /** * List of registration\'s attachments */ diff --git a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts index 2c059e6de..d76c9f39c 100644 --- a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,6 +10,6 @@ export interface SearchCountResponseDto { - TotalMatches?: number; + TotalMatches: number; } diff --git a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts index adc3e4fd9..1381763a6 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -22,7 +22,7 @@ export interface SearchCriteriaExclUserRequestDto { */ RegId?: number | null; /** - * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 */ LangKey?: number | null; LocationId?: number | null; @@ -52,27 +52,27 @@ export interface SearchCriteriaExclUserRequestDto { Offset?: number | null; TimeZone?: string | null; /** - * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. */ SelectedRegistrationTypes?: Array | null; /** - * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. */ SelectedRegions?: Array | null; /** - * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. */ SelectedGeoHazards?: Array | null; Countries?: Array | null; /** - * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer */ Counties?: Array | null; TextSearch?: string | null; Radius?: WithinRadiusCriteriaDto | null; Extent?: WithinExtentCriteriaDto | null; /** - * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] */ PropertyFilters?: Array | null; /** @@ -82,6 +82,6 @@ export interface SearchCriteriaExclUserRequestDto { /** * Descending order is default. Set this to true to use ascending order. */ - AscendingOrder?: boolean; + AscendingOrder: boolean; } diff --git a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts index ec6a6d064..5b9bb5926 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -22,7 +22,7 @@ export interface SearchCriteriaRequestDto { */ RegId?: number | null; /** - * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 */ LangKey?: number | null; LocationId?: number | null; @@ -52,27 +52,27 @@ export interface SearchCriteriaRequestDto { Offset?: number | null; TimeZone?: string | null; /** - * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. */ SelectedRegistrationTypes?: Array | null; /** - * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. */ SelectedRegions?: Array | null; /** - * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. */ SelectedGeoHazards?: Array | null; Countries?: Array | null; /** - * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer */ Counties?: Array | null; TextSearch?: string | null; Radius?: WithinRadiusCriteriaDto | null; Extent?: WithinExtentCriteriaDto | null; /** - * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] */ PropertyFilters?: Array | null; /** @@ -82,13 +82,13 @@ export interface SearchCriteriaRequestDto { /** * Descending order is default. Set this to true to use ascending order. */ - AscendingOrder?: boolean; + AscendingOrder: boolean; /** * Find registrations made by the observer with given ID */ ObserverId?: number | null; /** - * Find registrations made by the observer with given GUID. This attribute is deprecated and will be removed in the future. + * Find registrations made by the observer with given GUID. This attribute is deprecated and will be removed in the future. */ ObserverGuid?: string | null; /** @@ -96,7 +96,7 @@ export interface SearchCriteriaRequestDto { */ GroupId?: number | null; /** - * Find registrations made by observers with specific competence level IDs Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. + * Find registrations made by observers with specific competence level IDs Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. */ ObserverCompetence?: Array | null; /** diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts index da618c20d..b68a264b7 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts index cc9e63272..819907d44 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts index 71bd6fc1f..84cc9591f 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts index 6940dbff4..bde5fee43 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -13,13 +13,13 @@ import { LangKey } from './lang-key'; export interface SearchSideBarRequestDto { /** - * Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. + * Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. */ GeoHazards?: Array | null; /** - * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 Default = 2. + * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 Default = 2. */ - LangKey?: LangKey; + LangKey: LangKey; } export namespace SearchSideBarRequestDto { } diff --git a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts index 6783bb1a4..8a50dee0f 100644 --- a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts index f8bfbfe5f..1695b5c60 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -23,8 +23,8 @@ export interface SnowDensityLayerModel { /** * Weight in KG */ - Weight?: number; - WaterEquivalent?: number; - SortOrder?: number; + Weight: number; + WaterEquivalent: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/snow-density-model.ts b/src/app/modules/common-regobs-api/model/snow-density-model.ts index d0ee003e9..b2d810e74 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts index 58ec78f1f..c158b4d62 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts index bc030539c..4ccaaf3e2 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -21,7 +21,7 @@ export interface SnowProfileViewModel { SnowTemp?: SnowTempModel | null; SnowDensity?: Array | null; StratProfile?: StratProfileViewModel | null; - TotalDepth?: number; + TotalDepth: number; /** * Urls to simplified images of the snow profile model */ diff --git a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts index c4c2e58e1..3ff680489 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts index 4f9d4d9b4..9f4082414 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-model.ts index cf2be7aa3..4e9eb7821 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts index 0d5342e93..fe2e909fb 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface SnowTempObsModel { - Depth?: number; - SnowTemp?: number; + Depth: number; + SnowTemp: number; } diff --git a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts index 8dc624ecc..d059f8360 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts index 5621a6538..2f10dcada 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -21,6 +21,6 @@ export interface StratProfileLayerEditModel { WetnessTID?: number | null; CriticalLayerTID?: number | null; Comment?: string | null; - SortOrder?: number; + SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts index 63a9f6178..997f2779f 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -21,7 +21,7 @@ export interface StratProfileLayerViewModel { WetnessTID?: number | null; CriticalLayerTID?: number | null; Comment?: string | null; - SortOrder?: number; + SortOrder: number; GrainFormPrimaryTName?: string | null; GrainFormSecondaryTName?: string | null; HardnessTName?: string | null; diff --git a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts index eeef99005..709f69372 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,6 +12,6 @@ import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; export interface StratProfileViewModel { Layers?: Array | null; - TotalDepth?: number; + TotalDepth: number; } diff --git a/src/app/modules/common-regobs-api/model/summary.ts b/src/app/modules/common-regobs-api/model/summary.ts index afc7f4754..e253df293 100644 --- a/src/app/modules/common-regobs-api/model/summary.ts +++ b/src/app/modules/common-regobs-api/model/summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { RegObsGenericValue } from './reg-obs-generic-value'; export interface Summary { - RegistrationTID?: number; + RegistrationTID: number; RegistrationName?: string | null; Summaries?: Array | null; } diff --git a/src/app/modules/common-regobs-api/model/url-edit-model.ts b/src/app/modules/common-regobs-api/model/url-edit-model.ts index a28b80881..07fc22ad8 100644 --- a/src/app/modules/common-regobs-api/model/url-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/url-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-view-model.ts b/src/app/modules/common-regobs-api/model/url-view-model.ts index 81e0ed663..1a908fe42 100644 --- a/src/app/modules/common-regobs-api/model/url-view-model.ts +++ b/src/app/modules/common-regobs-api/model/url-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/value-kind.ts b/src/app/modules/common-regobs-api/model/value-kind.ts index 43d12e151..e9fa5f055 100644 --- a/src/app/modules/common-regobs-api/model/value-kind.ts +++ b/src/app/modules/common-regobs-api/model/value-kind.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts index 0479eca07..fbdd670e2 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts index 9e127f1b5..260abf63a 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { AttachmentViewModel } from './attachment-view-model'; export interface WaterLevelMeasurementViewModel { - WaterLevelMeasurementId?: number; + WaterLevelMeasurementId: number; WaterLevelValue?: number | null; DtMeasurementTime: string; Comment?: string | null; diff --git a/src/app/modules/common-regobs-api/model/water-level-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-view-model.ts index e0ebc5e9b..103221530 100644 --- a/src/app/modules/common-regobs-api/model/water-level-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,10 +12,10 @@ export interface WaterLevelViewModel { WaterLevelDescribed?: string | null; WaterLevelValue?: number | null; - WaterLevelRefTID?: number; + WaterLevelRefTID: number; WaterLevelRefName?: string | null; Comment?: string | null; MeasuredDischarge?: number | null; - IsRiver?: boolean; + IsRiver: boolean; } diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts index b93678691..0c70ea7b2 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts index 2df0c60e4..6e5e00fc2 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-edit-model.ts b/src/app/modules/common-regobs-api/model/weather-edit-model.ts index f33ac3526..a6150501b 100644 --- a/src/app/modules/common-regobs-api/model/weather-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-view-model.ts b/src/app/modules/common-regobs-api/model/weather-view-model.ts index b5e2d8d79..e1a77af56 100644 --- a/src/app/modules/common-regobs-api/model/weather-view-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts index 7de937a36..b39ad479f 100644 --- a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts index c5ab71a8b..e895d716e 100644 --- a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: 20251103.5 - commit: 62e967e0 + * RegObs API, build: Local build - commit: 446d2219 * * Contact: regobs@nve.no * @@ -12,6 +12,6 @@ import { PositionDto } from './position-dto'; export interface WithinRadiusCriteriaDto { Position?: PositionDto | null; - Radius?: number; + Radius: number; } From 26cd789b819aaf70615959e9a5cf99fe180b0d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Thu, 13 Nov 2025 15:02:20 +0100 Subject: [PATCH 05/16] Fiksing og generering --- src/app/core/services/draft/draft-model.ts | 3 ++- .../common-regobs-api/model/obs-location-view-model.ts | 9 +++------ .../common-regobs-api/model/registration-view-model.ts | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/app/core/services/draft/draft-model.ts b/src/app/core/services/draft/draft-model.ts index f236e69a0..8a17df182 100644 --- a/src/app/core/services/draft/draft-model.ts +++ b/src/app/core/services/draft/draft-model.ts @@ -32,7 +32,8 @@ export interface RegistrationDraftError { message?: string; } -export type RemoteOrLocalAttachmentEditModel = Pick & AttachmentEditModel; +export type RemoteOrLocalAttachmentEditModel = Pick & + AttachmentEditModel; export interface RegistrationEditModelWithRemoteOrLocalAttachments extends Omit { Attachments?: RemoteOrLocalAttachmentEditModel[] | null; diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts index 6f71aa0fe..ae67c627c 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -10,10 +10,7 @@ export interface ObsLocationViewModel { - /** - * ObsLocationID - */ - ObsLocationID?: number | null; + ObsLocationID: number; /** * Navn på stedet */ @@ -33,7 +30,8 @@ export interface ObsLocationViewModel { /** * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD */ - UTMSourceTID?: number | null; + UTMSourceTID: number; + UTMSourceName?: string | null; /** * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. */ @@ -51,7 +49,6 @@ export interface ObsLocationViewModel { MunicipalNo?: string | null; CountryId?: number | null; CountryName?: string | null; - UTMSourceName?: string | null; /** * Read-only generert tittel */ diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts index 32de052b3..6e8eb5e82 100644 --- a/src/app/modules/common-regobs-api/model/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -71,8 +71,8 @@ export interface RegistrationViewModel { */ DtChangeTime?: string | null; SourceName?: string | null; - Observer?: ObserverViewModel | null; - ObsLocation?: ObsLocationViewModel | null; + Observer: ObserverViewModel; + ObsLocation: ObsLocationViewModel; Attachments?: Array | null; AvalancheActivityObs2?: Array | null; AvalancheEvalProblem2?: Array | null; From 902727bf792431a29c9a32fa666ed747c7219925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Mon, 17 Nov 2025 10:36:44 +0100 Subject: [PATCH 06/16] =?UTF-8?q?Kj=C3=B8r=20generator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common-regobs-api/api.base.service.ts | 4 +- .../common-regobs-api/api/account.service.ts | 2 +- .../api/attachment.service.ts | 2 +- .../common-regobs-api/api/geo-code.service.ts | 2 +- .../common-regobs-api/api/helptext.service.ts | 2 +- .../api/kdv-elements.service.ts | 2 +- .../common-regobs-api/api/location.service.ts | 2 +- .../api/registration.service.ts | 2 +- .../common-regobs-api/api/search.service.ts | 2 +- .../common-regobs-api/api/trip.service.ts | 2 +- .../model/areas-dto-forecast-regions.ts | 2 +- .../common-regobs-api/model/areas-dto.ts | 10 ++--- .../model/at-a-glance-view-model.ts | 10 ++--- .../model/attachment-edit-model.ts | 2 +- .../attachment-view-model-url-formats.ts | 2 +- .../model/attachment-view-model.ts | 10 ++--- .../avalanche-activity-obs-view-model.ts | 16 ++++---- .../avalanche-activity-obs2-edit-model.ts | 2 +- .../avalanche-activity-obs2-view-model.ts | 16 ++++---- .../model/avalanche-danger-obs-view-model.ts | 6 +-- .../avalanche-eval-problem-view-model.ts | 22 +++++------ .../avalanche-eval-problem2-edit-model.ts | 2 +- .../avalanche-eval-problem2-view-model.ts | 26 ++++++------- .../model/avalanche-evaluation-view-model.ts | 18 ++++----- .../model/avalanche-evaluation2-view-model.ts | 18 ++++----- .../model/avalanche-evaluation3-edit-model.ts | 2 +- .../model/avalanche-evaluation3-view-model.ts | 6 +-- .../model/avalanche-obs-edit-model.ts | 2 +- .../model/avalanche-obs-view-model.ts | 12 +++--- .../model/compression-test-edit-model.ts | 2 +- .../model/compression-test-view-model.ts | 10 ++--- .../common-regobs-api/model/county-dto.ts | 6 +-- .../model/create-trip-dto.ts | 8 ++-- .../model/damage-obs-edit-model.ts | 2 +- .../model/damage-obs-view-model.ts | 8 ++-- .../model/danger-obs-edit-model.ts | 2 +- .../model/danger-obs-view-model.ts | 6 +-- .../model/finish-trip-dto.ts | 2 +- .../model/forecast-region-dto.ts | 6 +-- .../model/forecast-region-sub-region-dto.ts | 6 +-- .../model/general-observation-edit-model.ts | 4 +- .../model/general-observation-view-model.ts | 6 +-- .../model/geo-hazard-types.ts | 2 +- .../model/geo-location-info.ts | 20 +++++----- .../model/geo-location-summary.ts | 6 +-- .../common-regobs-api/model/helptext-dto.ts | 4 +- .../model/ice-cover-edit-model.ts | 2 +- .../model/ice-cover-view-model.ts | 14 +++---- .../model/ice-thickness-edit-model.ts | 4 +- .../model/ice-thickness-layer-edit-model.ts | 2 +- .../model/ice-thickness-layer-view-model.ts | 4 +- .../model/ice-thickness-view-model.ts | 4 +- .../model/incident-edit-model.ts | 4 +- .../model/incident-view-model.ts | 22 +++++------ .../common-regobs-api/model/kdv-element.ts | 6 +-- .../model/kdv-elements-response-dto.ts | 4 +- .../model/landslide-edit-model.ts | 2 +- .../model/landslide-view-model.ts | 18 ++++----- .../common-regobs-api/model/lang-key.ts | 2 +- .../common-regobs-api/model/lat-lng-object.ts | 2 +- .../common-regobs-api/model/lat-lng.ts | 2 +- .../common-regobs-api/model/my-page-data.ts | 24 ++++++------ .../model/obs-location-edit-model.ts | 2 +- .../model/obs-location-view-model.ts | 14 +++---- .../model/obs-locations-response-dto-v2.ts | 12 +++--- .../model/observer-competence-dto.ts | 6 +-- .../model/observer-competence-level-dto.ts | 6 +-- .../model/observer-group-dto.ts | 10 ++--- .../model/observer-patch-request-dto.ts | 4 +- .../model/observer-response-dto.ts | 6 +-- .../model/observer-view-model.ts | 6 +-- .../common-regobs-api/model/operator.ts | 2 +- .../common-regobs-api/model/position-dto.ts | 2 +- .../model/problem-details.ts | 2 +- .../model/property-filter.ts | 6 +-- .../model/reg-obs-generic-value.ts | 6 +-- .../model/registration-edit-model.ts | 16 ++++---- .../model/registration-type-criteria-dto.ts | 7 +--- .../model/registration-type-dto.ts | 6 +-- .../model/registration-type-sub-type-dto.ts | 4 +- .../model/registration-view-model.ts | 38 +++++-------------- .../model/registrations-with-attachments.ts | 4 +- .../model/search-count-response-dto.ts | 2 +- .../search-criteria-excl-user-request-dto.ts | 12 +++--- .../model/search-criteria-request-dto.ts | 14 +++---- ...side-bar-dto-observer-competence-levels.ts | 2 +- .../search-side-bar-dto-registration-types.ts | 2 +- .../model/search-side-bar-dto.ts | 8 ++-- .../model/search-side-bar-request-dto.ts | 4 +- .../model/snow-cover-obs-view-model.ts | 8 ++-- .../model/snow-density-layer-model.ts | 2 +- .../model/snow-density-model.ts | 4 +- .../model/snow-profile-edit-model.ts | 6 +-- .../model/snow-profile-view-model.ts | 8 ++-- .../model/snow-surface-edit-model.ts | 2 +- .../model/snow-surface-view-model.ts | 12 +++--- .../model/snow-temp-model.ts | 4 +- .../model/snow-temp-obs-model.ts | 2 +- .../model/strat-profile-edit-model.ts | 4 +- .../model/strat-profile-layer-edit-model.ts | 2 +- .../model/strat-profile-layer-view-model.ts | 14 +++---- .../model/strat-profile-view-model.ts | 4 +- .../common-regobs-api/model/summary.ts | 6 +-- .../common-regobs-api/model/url-edit-model.ts | 2 +- .../common-regobs-api/model/url-view-model.ts | 2 +- .../common-regobs-api/model/value-kind.ts | 2 +- .../water-level-measurement-edit-model.ts | 2 +- .../water-level-measurement-view-model.ts | 4 +- .../model/water-level-view-model.ts | 8 ++-- .../model/waterlevel2-edit-model.ts | 4 +- .../model/waterlevel2-view-model.ts | 22 +++++------ .../model/weather-edit-model.ts | 2 +- .../model/weather-view-model.ts | 6 +-- .../model/within-extent-criteria-dto.ts | 6 +-- .../model/within-radius-criteria-dto.ts | 4 +- 115 files changed, 373 insertions(+), 394 deletions(-) diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts index 44ed92ed9..c5126bcc7 100644 --- a/src/app/modules/common-regobs-api/api.base.service.ts +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,7 +12,7 @@ import { CustomHttpParameterCodec } from './encoder'; import { Configuration } from './configuration'; export class BaseService { - protected basePath = 'https://test-api.regobs.no/v6'; + protected basePath = 'http://localhost'; public defaultHeaders = new HttpHeaders(); public configuration: Configuration; public encoder: HttpParameterCodec; diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts index 5f44024f3..4d5512596 100644 --- a/src/app/modules/common-regobs-api/api/account.service.ts +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts index 8da096a03..7c0b651c0 100644 --- a/src/app/modules/common-regobs-api/api/attachment.service.ts +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts index 92e5ab131..5e1fc8838 100644 --- a/src/app/modules/common-regobs-api/api/geo-code.service.ts +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts index da9a809a0..a4408231b 100644 --- a/src/app/modules/common-regobs-api/api/helptext.service.ts +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts index b2215d590..b91a230d0 100644 --- a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts index 5c6088619..37340ec81 100644 --- a/src/app/modules/common-regobs-api/api/location.service.ts +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts index 0008508c9..2119b4ef7 100644 --- a/src/app/modules/common-regobs-api/api/registration.service.ts +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts index 3b25eb68c..8365137d2 100644 --- a/src/app/modules/common-regobs-api/api/search.service.ts +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts index f9e62bbee..df6ad2513 100644 --- a/src/app/modules/common-regobs-api/api/trip.service.ts +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts index d2238ac28..3716ad801 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto.ts b/src/app/modules/common-regobs-api/model/areas-dto.ts index b318767b0..b13c34d44 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -13,10 +13,10 @@ import { CountyDto } from './county-dto'; export interface AreasDto { CountryId: number; - CountryName?: string | null; - CountryDescription?: string | null; + CountryName?: string; + CountryDescription?: string; SortOrder: number; - ForecastRegions?: AreasDtoForecastRegions | null; - Counties?: Array | null; + ForecastRegions?: AreasDtoForecastRegions; + Counties?: Array; } diff --git a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts index ec36d6b9c..d5a8cf1cf 100644 --- a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts +++ b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -13,18 +13,18 @@ export interface AtAGlanceViewModel { RegId: number; GeoHazardTID?: number | null; DtObsTime: string; - NickName?: string | null; + NickName?: string; CompetenceLevelTID?: number | null; - Title?: string | null; + Title?: string; Latitude: number; Longitude: number; UtmNorth: number; UtmEast: number; - FormNames?: Array | null; + FormNames?: Array; /** * Returns first attachement url from the observation or null */ - FirstAttachmentUrl?: string | null; + FirstAttachmentUrl?: string; /** * Count of all attachments */ diff --git a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts index 16dd2607b..31004b9b2 100644 --- a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts index 76934c003..acda46a6c 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model.ts b/src/app/modules/common-regobs-api/model/attachment-view-model.ts index f545f185a..528778c69 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -44,16 +44,16 @@ export interface AttachmentViewModel { /** * GeoHazard name */ - GeoHazardName?: string | null; + GeoHazardName?: string; /** * Registration name */ - RegistrationName?: string | null; - UrlFormats?: AttachmentViewModelUrlFormats | null; + RegistrationName?: string; + UrlFormats?: AttachmentViewModelUrlFormats; /** * Full original image url */ - Url?: string | null; + Url?: string; /** * If true, the attachment is an image generated from a snow profile plot */ diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts index d30e5a6f5..aff420ba4 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -30,36 +30,36 @@ export interface AvalancheActivityObsViewModel { * Hvor store er skredene?. The DestructiveSizeKD unique identifier */ DestructiveSizeTID?: number | null; - DestructiveSizeName?: string | null; + DestructiveSizeName?: string; /** * Hvor mange skred er gått? The EstimatedNumKD unique identifier */ EstimatedNumTID?: number | null; - EstimatedNumName?: string | null; + EstimatedNumName?: string; /** * Typen skred som er gått. The AvalancheKD unique identifier */ AvalancheTID?: number | null; - AvalancheName?: string | null; + AvalancheName?: string; /** * Hva utløste skredet? Det er ofte beskrevet som det svake laget i snødekket. The AvalancheTriggerKD unique identifier */ AvalancheTriggerTID?: number | null; - AvalancheTriggerName?: string | null; + AvalancheTriggerName?: string; /** * Hva slags terrengtype var det i løsneområdet. The TerrainStartZoneKD unique identifier */ TerrainStartZoneTID?: number | null; - TerrainStartZoneName?: string | null; + TerrainStartZoneName?: string; /** * Hvor går snøgrensa i området? */ SnowLine?: number | null; - SnowLineName?: string | null; + SnowLineName?: string; /** * Kommentarfelt for å skrive utfyllende tekst om observasjonen. */ - Comment?: string | null; + Comment?: string; DtOffAvalancheTime: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts index c94ab4bdf..5409fa801 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts index 07127ad2b..5803d9265 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -23,12 +23,12 @@ export interface AvalancheActivityObs2ViewModel { DestructiveSizeTID?: number | null; AvalPropagationTID?: number | null; Comment?: string | null; - EstimatedNumName?: string | null; - ExposedHeightComboName?: string | null; - AvalancheExtName?: string | null; - AvalCauseName?: string | null; - AvalTriggerSimpleName?: string | null; - DestructiveSizeName?: string | null; - AvalPropagationName?: string | null; + EstimatedNumName?: string; + ExposedHeightComboName?: string; + AvalancheExtName?: string; + AvalCauseName?: string; + AvalTriggerSimpleName?: string; + DestructiveSizeName?: string; + AvalPropagationName?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts index 11d2dbac0..7718639ea 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,7 +12,7 @@ export interface AvalancheDangerObsViewModel { AvalancheDangerObsID: number; DangerSignTID?: number | null; - DangerSignName?: string | null; - Comment?: string | null; + DangerSignName?: string; + Comment?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts index eba06fa88..8eab33535 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,21 +12,21 @@ export interface AvalancheEvalProblemViewModel { AvalancheEvalProblemID: number; AvalProbabilityTID?: number | null; - AvalProbabilityName?: string | null; + AvalProbabilityName?: string; AvalTriggerSimpleTID?: number | null; - AvalTriggerSimpleName?: string | null; + AvalTriggerSimpleName?: string; DestructiveSizeExtTID?: number | null; - DestructiveSizeExtName?: string | null; + DestructiveSizeExtName?: string; AvalancheExtTID?: number | null; - AvalancheExtName?: string | null; + AvalancheExtName?: string; AvalCauseTID?: number | null; - AvalCauseName?: string | null; + AvalCauseName?: string; AvalCauseExtTID?: number | null; - AvalCauseExtName?: string | null; + AvalCauseExtName?: string; AvalReleaseHeightTID?: number | null; - AvalReleaseHeightName?: string | null; - AvalancheProbabilityAutoText?: string | null; - AvalancheProblemAutoText?: string | null; - Comment?: string | null; + AvalReleaseHeightName?: string; + AvalancheProbabilityAutoText?: string; + AvalancheProblemAutoText?: string; + Comment?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts index d42b7dcfa..b5125e024 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts index 5b228972a..1928d31c6 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -62,17 +62,17 @@ export interface AvalancheEvalProblem2ViewModel { * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier */ DestructiveSizeTID?: number | null; - AvalProbabilityName?: string | null; - AvalTriggerSimpleName?: string | null; - AvalCauseDepthName?: string | null; - ExposedHeightComboName?: string | null; - AvalancheExtName?: string | null; - AvalCauseName?: string | null; - DestructiveSizeName?: string | null; - AvalPropagationName?: string | null; - AvalCauseAttributeLightName?: string | null; - AvalCauseAttributeThinName?: string | null; - AvalCauseAttributeSoftName?: string | null; - AvalCauseAttributeCrystalName?: string | null; + AvalProbabilityName?: string; + AvalTriggerSimpleName?: string; + AvalCauseDepthName?: string; + ExposedHeightComboName?: string; + AvalancheExtName?: string; + AvalCauseName?: string; + DestructiveSizeName?: string; + AvalPropagationName?: string; + AvalCauseAttributeLightName?: string; + AvalCauseAttributeThinName?: string; + AvalCauseAttributeSoftName?: string; + AvalCauseAttributeCrystalName?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts index a20654888..c62df8e65 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -13,18 +13,18 @@ export interface AvalancheEvaluationViewModel { RegID: number; CanPublish: boolean; AvalancheDangerTID: number; - AvalancheDangerName?: string | null; - ValidExposition?: string | null; - ValidHeightRelative?: string | null; + AvalancheDangerName?: string; + ValidExposition?: string; + ValidHeightRelative?: string; ValidHeightFrom?: number | null; ValidHeigtTo?: number | null; AvalancheProblemTID1?: number | null; - AvalancheProblemName1?: string | null; + AvalancheProblemName1?: string; AvalancheProblemTID2?: number | null; - AvalancheProblemName2?: string | null; + AvalancheProblemName2?: string; AvalancheProblemTID3?: number | null; - AvalancheProblemName3?: string | null; - AvalancheEvaluation1?: string | null; - Comment?: string | null; + AvalancheProblemName3?: string; + AvalancheEvaluation1?: string; + Comment?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts index 95a6f685a..e1b25971a 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,18 +11,18 @@ import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-mod export interface AvalancheEvaluation2ViewModel { - AvalancheDangerName?: string | null; - ValidExposition?: string | null; - Comment?: string | null; - AvalancheEvaluation?: string | null; - AvalancheDevelopment?: string | null; + AvalancheDangerName?: string; + ValidExposition?: string; + Comment?: string; + AvalancheEvaluation?: string; + AvalancheDevelopment?: string; ExposedHeight1?: number | null; ExposedHeight2?: number | null; ExposedHeightComboTID?: number | null; - ExposedHeightComboName?: string | null; + ExposedHeightComboName?: string; ExposedClimateTID?: number | null; - ExposedClimateName?: string | null; + ExposedClimateName?: string; AvalancheDangerTID?: number | null; - AvalancheEvalProblems?: Array | null; + AvalancheEvalProblems?: Array; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts index 86fc5806b..16023710c 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts index bdea3762e..57c407761 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -30,7 +30,7 @@ export interface AvalancheEvaluation3ViewModel { * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. */ ForecastComment?: string | null; - AvalancheDangerName?: string | null; - ForecastCorrectName?: string | null; + AvalancheDangerName?: string; + ForecastCorrectName?: string; } diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts index 093b2d920..01d4bab22 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts index f90ebbbb3..9eff6f208 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -106,10 +106,10 @@ export interface AvalancheObsViewModel { * Comment */ Comment?: string | null; - DestructiveSizeName?: string | null; - AvalancheTriggerName?: string | null; - AvalancheName?: string | null; - TerrainStartZoneName?: string | null; - AvalCauseName?: string | null; + DestructiveSizeName?: string; + AvalancheTriggerName?: string; + AvalancheName?: string; + TerrainStartZoneName?: string; + AvalCauseName?: string; } diff --git a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts index 8de03094c..cc0ca00f1 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts index 1af99b179..839d2b264 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -55,9 +55,9 @@ export interface CompressionTestViewModel { */ Comment?: string | null; IncludeInSnowProfile?: boolean | null; - CompressionTestName?: string | null; - PropagationName?: string | null; - StabilityEvalName?: string | null; - ComprTestFractureName?: string | null; + CompressionTestName?: string; + PropagationName?: string; + StabilityEvalName?: string; + ComprTestFractureName?: string; } diff --git a/src/app/modules/common-regobs-api/model/county-dto.ts b/src/app/modules/common-regobs-api/model/county-dto.ts index eb51c2413..832b8acac 100644 --- a/src/app/modules/common-regobs-api/model/county-dto.ts +++ b/src/app/modules/common-regobs-api/model/county-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface CountyDto { - CountyNo?: string | null; - Name?: string | null; + CountyNo?: string; + Name?: string; } diff --git a/src/app/modules/common-regobs-api/model/create-trip-dto.ts b/src/app/modules/common-regobs-api/model/create-trip-dto.ts index c4839684b..624add814 100644 --- a/src/app/modules/common-regobs-api/model/create-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/create-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,11 +10,11 @@ export interface CreateTripDto { - Comment?: string | null; + Comment?: string; DeviceGuid: string; GeoHazardID: number; - Lat?: string | null; - Lng?: string | null; + Lat?: string; + Lng?: string; ObservationExpectedMinutes: number; TripTypeID: number; } diff --git a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts index 991a4f535..03732df95 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts index aa13b0d85..5083f9018 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -16,8 +16,8 @@ export interface DamageObsViewModel { DamageTypeTID: number; DamagePosition?: LatLng | null; Comment?: string | null; - Attachments?: Array | null; - GeoHazardName?: string | null; - DamageTypeName?: string | null; + Attachments?: Array; + GeoHazardName?: string; + DamageTypeName?: string; } diff --git a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts index 9330bab88..ec98aadb3 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts index 6b2e91b9e..d28652ec0 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -22,7 +22,7 @@ export interface DangerObsViewModel { * Kommentarfelt for å skrive utfyllende tekst om faretegnet. */ Comment?: string | null; - GeoHazardName?: string | null; - DangerSignName?: string | null; + GeoHazardName?: string; + DangerSignName?: string; } diff --git a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts index eb384db22..614e19042 100644 --- a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts index c0f5e92df..01ccf75f6 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,9 +12,9 @@ import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; export interface ForecastRegionDto { Id: number; - Text?: string | null; + Text?: string; SortOrder: number; - SubRegions?: Array | null; + SubRegions?: Array; IsRegionForGrouping: boolean; } diff --git a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts index 1b73f277a..5fb1245cd 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,8 +11,8 @@ export interface ForecastRegionSubRegionDto { Id: number; - Text?: string | null; - RegionType?: string | null; + Text?: string; + RegionType?: string; SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts index 696fb2e92..a697293a5 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -27,6 +27,6 @@ export interface GeneralObservationEditModel { * Kommentarfelt for å skrive utfyllende tekst */ Comment?: string | null; - Urls?: Array | null; + Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts index 618988e26..8a9a9c3ad 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -27,7 +27,7 @@ export interface GeneralObservationViewModel { * Kommentarfelt for å skrive utfyllende tekst */ Comment?: string | null; - Urls?: Array | null; - GeoHazardName?: string | null; + Urls?: Array; + GeoHazardName?: string; } diff --git a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts index f592d94eb..91f092af3 100644 --- a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts +++ b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-info.ts b/src/app/modules/common-regobs-api/model/geo-location-info.ts index 7ef1d1a53..085ffd8fe 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-info.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-info.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,16 +10,16 @@ export interface GeoLocationInfo { - Name?: string | null; - Municipality?: string | null; - MunicipalityId?: string | null; - AdminAreaName?: string | null; - AdminAreaId?: string | null; - Country?: string | null; - CountryCode?: string | null; + Name?: string; + Municipality?: string; + MunicipalityId?: string; + AdminAreaName?: string; + AdminAreaId?: string; + Country?: string; + CountryCode?: string; Masl?: number | null; Steepness?: number | null; - WarningRegionId?: string | null; - WarningRegionName?: string | null; + WarningRegionId?: string; + WarningRegionName?: string; } diff --git a/src/app/modules/common-regobs-api/model/geo-location-summary.ts b/src/app/modules/common-regobs-api/model/geo-location-summary.ts index 83e5c8be8..f25000dd4 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-summary.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,7 +10,7 @@ export interface GeoLocationSummary { - Header?: string | null; - Lines?: Array | null; + Header?: string; + Lines?: Array; } diff --git a/src/app/modules/common-regobs-api/model/helptext-dto.ts b/src/app/modules/common-regobs-api/model/helptext-dto.ts index 7effaf9c2..d00b1787f 100644 --- a/src/app/modules/common-regobs-api/model/helptext-dto.ts +++ b/src/app/modules/common-regobs-api/model/helptext-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -13,6 +13,6 @@ export interface HelptextDto { RegistrationTID: number; GeoHazardTID: number; LangKey: number; - Text?: string | null; + Text?: string; } diff --git a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts index b6b4168c8..f5ba70022 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts index 8565bfd2e..21ddcdd1d 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -32,11 +32,11 @@ export interface IceCoverViewModel { * Bæreevne. IceCapacityKD unique identifier */ IceCapacityTID?: number | null; - Urls?: Array | null; - IceCoverBeforeName?: string | null; - IceCoverName?: string | null; - IceCoverAfterName?: string | null; - IceSkateabilityName?: string | null; - IceCapacityName?: string | null; + Urls?: Array; + IceCoverBeforeName?: string; + IceCoverName?: string; + IceCoverAfterName?: string; + IceSkateabilityName?: string; + IceCapacityName?: string; } diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts index 2e1b89e3e..acb1e3cfd 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -35,6 +35,6 @@ export interface IceThicknessEditModel { * Comment */ Comment?: string | null; - IceThicknessLayers?: Array | null; + IceThicknessLayers?: Array; } diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts index 043221907..cdc0bf596 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts index 1906d16fd..84626965e 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -22,6 +22,6 @@ export interface IceThicknessLayerViewModel { * Comment */ Comment?: string | null; - IceLayerName?: string | null; + IceLayerName?: string; } diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts index 6e33246a0..2956ea0bb 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -35,6 +35,6 @@ export interface IceThicknessViewModel { * Comment */ Comment?: string | null; - IceThicknessLayers?: Array | null; + IceThicknessLayers?: Array; } diff --git a/src/app/modules/common-regobs-api/model/incident-edit-model.ts b/src/app/modules/common-regobs-api/model/incident-edit-model.ts index 31bc137f9..cad3cbb7a 100644 --- a/src/app/modules/common-regobs-api/model/incident-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -98,6 +98,6 @@ export interface IncidentEditModel { /** * Provide description for IncidentURLs */ - IncidentURLs?: Array | null; + IncidentURLs?: Array; } diff --git a/src/app/modules/common-regobs-api/model/incident-view-model.ts b/src/app/modules/common-regobs-api/model/incident-view-model.ts index 45640275c..0dad1cade 100644 --- a/src/app/modules/common-regobs-api/model/incident-view-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -98,30 +98,30 @@ export interface IncidentViewModel { /** * Provide description for IncidentURLs */ - IncidentURLs?: Array | null; - GeoHazardName?: string | null; - ActivityInfluencedName?: string | null; - DamageExtentName?: string | null; - ForecastAccurateName?: string | null; + IncidentURLs?: Array; + GeoHazardName?: string; + ActivityInfluencedName?: string; + DamageExtentName?: string; + ForecastAccurateName?: string; /** * Hadde man sikkerhetsutstyr? */ - SafetyGearName?: string | null; + SafetyGearName?: string; /** * Var man lokal, norsk eller utenlandsk turist? */ - LocalTouristName?: string | null; + LocalTouristName?: string; /** * Hvor ofte er man i området? */ - LocalKnowledgeName?: string | null; + LocalKnowledgeName?: string; /** * Hvem gjennomførte redningen? */ - RescueName?: string | null; + RescueName?: string; /** * Hvilken turfase gjelder det? */ - SlopeActivityName?: string | null; + SlopeActivityName?: string; } diff --git a/src/app/modules/common-regobs-api/model/kdv-element.ts b/src/app/modules/common-regobs-api/model/kdv-element.ts index 7bf6d3482..982662b09 100644 --- a/src/app/modules/common-regobs-api/model/kdv-element.ts +++ b/src/app/modules/common-regobs-api/model/kdv-element.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ export interface KdvElement { Id: number; - Name?: string | null; - Description?: string | null; + Name?: string; + Description?: string; } diff --git a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts index 75b7a290b..2783412d4 100644 --- a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { KdvElement } from './kdv-element'; export interface KdvElementsResponseDto { - KdvRepositories?: { [key: string]: Array; } | null; + KdvRepositories?: { [key: string]: Array; }; ViewRepositories?: any | null; } diff --git a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts index 571ae2046..bd01dc44d 100644 --- a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-view-model.ts b/src/app/modules/common-regobs-api/model/landslide-view-model.ts index 0fdfe438d..ce0062418 100644 --- a/src/app/modules/common-regobs-api/model/landslide-view-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -76,13 +76,13 @@ export interface LandslideViewModel { * Når stoppet skredet? */ DtLandSlideTimeEnd?: string | null; - Urls?: Array | null; - LandSlideName?: string | null; - LandSlideTriggerName?: string | null; - LandSlideSizeName?: string | null; - GeoHazardName?: string | null; - ActivityInfluencedName?: string | null; - ForecastAccurateName?: string | null; - DamageExtentName?: string | null; + Urls?: Array; + LandSlideName?: string; + LandSlideTriggerName?: string; + LandSlideSizeName?: string; + GeoHazardName?: string; + ActivityInfluencedName?: string; + ForecastAccurateName?: string; + DamageExtentName?: string; } diff --git a/src/app/modules/common-regobs-api/model/lang-key.ts b/src/app/modules/common-regobs-api/model/lang-key.ts index b2698f7dd..b2bb91a0c 100644 --- a/src/app/modules/common-regobs-api/model/lang-key.ts +++ b/src/app/modules/common-regobs-api/model/lang-key.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng-object.ts b/src/app/modules/common-regobs-api/model/lat-lng-object.ts index b0ed5853b..5c2ee0c8f 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng-object.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng-object.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng.ts b/src/app/modules/common-regobs-api/model/lat-lng.ts index 5ca80e8ba..b8e38a6b2 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/my-page-data.ts b/src/app/modules/common-regobs-api/model/my-page-data.ts index 935845d86..2e4a8f946 100644 --- a/src/app/modules/common-regobs-api/model/my-page-data.ts +++ b/src/app/modules/common-regobs-api/model/my-page-data.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -17,21 +17,21 @@ export interface MyPageData { * Returns unique id that identifies an observer */ ObserverId: number; - NickName?: string | null; - Email?: string | null; - MobPhoneNr?: string | null; - FirstName?: string | null; - LastName?: string | null; - WorkPlace?: string | null; + NickName?: string; + Email?: string; + MobPhoneNr?: string; + FirstName?: string; + LastName?: string; + WorkPlace?: string; Adrnr?: number | null; DtRegTime?: string | null; - MemberOfGroups?: Array | null; - PendingInvitationsToGroups?: Array | null; - Competence?: Array | null; + MemberOfGroups?: Array; + PendingInvitationsToGroups?: Array; + Competence?: Array; NumberOfObservations: number; MainGeohazardTID: number; LastRegistrationDate?: string | null; - DefaultMunicipality?: string | null; - Roles?: Array | null; + DefaultMunicipality?: string; + Roles?: Array; } diff --git a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts index 921df5b3b..6e50069c6 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts index ae67c627c..d3263d6b0 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -31,7 +31,7 @@ export interface ObsLocationViewModel { * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD */ UTMSourceTID: number; - UTMSourceName?: string | null; + UTMSourceName?: string; /** * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. */ @@ -40,18 +40,18 @@ export interface ObsLocationViewModel { * Anngir varslingsregion stedet tilhører. Varslingsregioner gitt i ForecastRegionKD. The ForecastRegionKD unique identifier */ ForecastRegionTID?: number | null; - ForecastRegionName?: string | null; + ForecastRegionName?: string; Height?: number | null; - MunicipalName?: string | null; + MunicipalName?: string; /** * Kommune nr stedet tilhører */ - MunicipalNo?: string | null; + MunicipalNo?: string; CountryId?: number | null; - CountryName?: string | null; + CountryName?: string; /** * Read-only generert tittel */ - Title?: string | null; + Title?: string; } diff --git a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts index f558d6ba6..64ad79430 100644 --- a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts +++ b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,14 +11,14 @@ import { LatLngObject } from './lat-lng-object'; export interface ObsLocationsResponseDtoV2 { - Name?: string | null; + Name?: string; Id: number; Distance: number; - LatLngObject?: LatLngObject | null; - ObserverNickName?: string | null; - ObserverGroupName?: string | null; + LatLngObject?: LatLngObject; + ObserverNickName?: string; + ObserverGroupName?: string; ObserverGroupId?: number | null; - LocationDescription?: string | null; + LocationDescription?: string; GeoHazardId?: number | null; } diff --git a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts index 7d9cf8923..9aa852632 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,7 +12,7 @@ export interface ObserverCompetenceDto { CompetenceTID: number; GeohazardTID: number; - CompetenceName?: string | null; - CompetenceDescription?: string | null; + CompetenceName?: string; + CompetenceDescription?: string; } diff --git a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts index 5875350ce..9ab371d57 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,8 +11,8 @@ export interface ObserverCompetenceLevelDto { Id: number; - Name?: string | null; - Description?: string | null; + Name: string; + Description?: string; SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/observer-group-dto.ts b/src/app/modules/common-regobs-api/model/observer-group-dto.ts index fa59ab159..f0f6df8d4 100644 --- a/src/app/modules/common-regobs-api/model/observer-group-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-group-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,9 +11,9 @@ export interface ObserverGroupDto { Id: number; - Name?: string | null; - ObserverGroupDescription?: string | null; - WorkPlace?: string | null; - Comment?: string | null; + Name?: string; + ObserverGroupDescription?: string; + WorkPlace?: string; + Comment?: string; } diff --git a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts index 5a7d98c26..8de26541b 100644 --- a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,6 +10,6 @@ export interface ObserverPatchRequestDto { - Nick?: string | null; + Nick?: string; } diff --git a/src/app/modules/common-regobs-api/model/observer-response-dto.ts b/src/app/modules/common-regobs-api/model/observer-response-dto.ts index b38e41b0a..328d61a4f 100644 --- a/src/app/modules/common-regobs-api/model/observer-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,7 +12,7 @@ import { ObserverGroupDto } from './observer-group-dto'; export interface ObserverResponseDto { Guid: string; - ObserverGroup?: Array | null; - Nick?: string | null; + ObserverGroup?: Array; + Nick?: string; } diff --git a/src/app/modules/common-regobs-api/model/observer-view-model.ts b/src/app/modules/common-regobs-api/model/observer-view-model.ts index d00fb06cc..548e2ace1 100644 --- a/src/app/modules/common-regobs-api/model/observer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/observer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,9 +10,9 @@ export interface ObserverViewModel { - NickName?: string | null; + NickName?: string; ObserverID: number; CompetenceLevelTID: number; - CompetenceLevelName?: string | null; + CompetenceLevelName?: string; } diff --git a/src/app/modules/common-regobs-api/model/operator.ts b/src/app/modules/common-regobs-api/model/operator.ts index ccb7a174b..9aa9bf8f9 100644 --- a/src/app/modules/common-regobs-api/model/operator.ts +++ b/src/app/modules/common-regobs-api/model/operator.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/position-dto.ts b/src/app/modules/common-regobs-api/model/position-dto.ts index 3d45681d6..86f065e20 100644 --- a/src/app/modules/common-regobs-api/model/position-dto.ts +++ b/src/app/modules/common-regobs-api/model/position-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/problem-details.ts b/src/app/modules/common-regobs-api/model/problem-details.ts index 5bcfe0f0a..5f34dfb13 100644 --- a/src/app/modules/common-regobs-api/model/problem-details.ts +++ b/src/app/modules/common-regobs-api/model/problem-details.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/property-filter.ts b/src/app/modules/common-regobs-api/model/property-filter.ts index 807925eeb..918e15f18 100644 --- a/src/app/modules/common-regobs-api/model/property-filter.ts +++ b/src/app/modules/common-regobs-api/model/property-filter.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -17,12 +17,12 @@ export interface PropertyFilter { /** * Property name. Properties in sub schemas must be prefixed with schema name. Example: AvalancheObs.AvalancheTID Multiple instance schemas, like DangerSign, are not supported. If you use unknown/unsupported properties, you will get an HTTP 400. */ - Name?: string | null; + Name?: string; Operator: Operator; /** * Target property value */ - Value?: string | null; + Value?: string; } export namespace PropertyFilter { } diff --git a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts index 47f4e9d2a..b6952f22b 100644 --- a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts +++ b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,8 +12,8 @@ import { ValueKind } from './value-kind'; export interface RegObsGenericValue { Kind: ValueKind; - readonly KindType?: string | null; - Header?: string | null; + readonly KindType?: string; + Header?: string; Value?: any | null; } export namespace RegObsGenericValue { diff --git a/src/app/modules/common-regobs-api/model/registration-edit-model.ts b/src/app/modules/common-regobs-api/model/registration-edit-model.ts index c88d0baeb..01e4a11ff 100644 --- a/src/app/modules/common-regobs-api/model/registration-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -51,14 +51,14 @@ export interface RegistrationEditModel { /** * The observation location object. Latitude and longitute are needed to create a new registration. */ - ObsLocation?: ObsLocationEditModel | null; - Attachments?: Array | null; - AvalancheActivityObs2?: Array | null; - AvalancheEvalProblem2?: Array | null; + ObsLocation?: ObsLocationEditModel; + Attachments?: Array; + AvalancheActivityObs2?: Array; + AvalancheEvalProblem2?: Array; AvalancheEvaluation3?: AvalancheEvaluation3EditModel | null; AvalancheObs?: AvalancheObsEditModel | null; - CompressionTest?: Array | null; - DangerObs?: Array | null; + CompressionTest?: Array; + DangerObs?: Array; GeneralObservation?: GeneralObservationEditModel | null; IceCoverObs?: IceCoverEditModel | null; IceThickness?: IceThicknessEditModel | null; @@ -68,7 +68,7 @@ export interface RegistrationEditModel { SnowSurfaceObservation?: SnowSurfaceEditModel | null; WeatherObservation?: WeatherEditModel | null; WaterLevel2?: Waterlevel2EditModel | null; - DamageObs?: Array | null; + DamageObs?: Array; } export namespace RegistrationEditModel { } diff --git a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts index 874eb11c8..30a13afe1 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,10 +10,7 @@ export interface RegistrationTypeCriteriaDto { - /** - * TODO: See - */ Id: number; - SubTypes?: Array | null; + SubTypes?: Array; } diff --git a/src/app/modules/common-regobs-api/model/registration-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-dto.ts index c53fe8ad2..e29b6a3fd 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,8 +12,8 @@ import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; export interface RegistrationTypeDto { Id: number; - Name?: string | null; - SubTypes?: Array | null; + Name?: string; + SubTypes?: Array; SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts index 9beb12bdc..bdefa9536 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ export interface RegistrationTypeSubTypeDto { Id: number; - Name?: string | null; + Name?: string; SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts index 6e8eb5e82..92201f365 100644 --- a/src/app/modules/common-regobs-api/model/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -38,42 +38,24 @@ import { GeneralObservationViewModel } from './general-observation-view-model'; export interface RegistrationViewModel { + RegId: number; /** - * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + * NotSpecified = 0, Avalanche = 10, EarthFlow = 20, LandSlide = 30, RockFall = 40, IceFall = 50, Flooding = 60, Ice = 70, EventOnGlacier = 100, Jøkulhaup = 110, Drought = 200, Unknown = 999 */ GeoHazardTID: GeoHazardTypes; - /** - * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier - */ - SourceTID?: number | null; - /** - * Tiden da observasjonen ble gjort. - */ + SourceTID: number; DtObsTime: string; + DtChangeTime?: string | null; ObserverGroupID?: number | null; ObserverGroupName?: string | null; - /** - * If set to true, the user\'s account will not be shown publicly. NVE will still be able to see who sent in the observation. - */ Anonymous?: boolean | null; - RegId: number; - /** - * Ekstern referanse ID. Må være unik for Applikasjon. - */ ExternalReferenceId?: string | null; - GeoHazardName?: string | null; - /** - * Timestamp for registrert i systemet. (Read-Only) - */ - DtRegTime?: string | null; - /** - * Timestamp for endret i systemet. (Read-Only) - */ - DtChangeTime?: string | null; - SourceName?: string | null; + GeoHazardName?: string; + DtRegTime: string; + SourceName?: string; Observer: ObserverViewModel; ObsLocation: ObsLocationViewModel; - Attachments?: Array | null; + Attachments?: Array; AvalancheActivityObs2?: Array | null; AvalancheEvalProblem2?: Array | null; AvalancheEvaluation3?: AvalancheEvaluation3ViewModel | null; @@ -90,7 +72,7 @@ export interface RegistrationViewModel { WeatherObservation?: WeatherViewModel | null; WaterLevel2?: Waterlevel2ViewModel | null; DamageObs?: Array | null; - Summaries?: Array | null; + Summaries?: Array; AttachmentSummaries?: Array | null; SnowProfile?: AttachmentViewModel | null; AvalancheEvaluation?: AvalancheEvaluationViewModel | null; diff --git a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts index edd8a3423..04675880d 100644 --- a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts +++ b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -18,6 +18,6 @@ export interface RegistrationsWithAttachments { /** * List of registration\'s attachments */ - Attachments?: Array | null; + Attachments?: Array; } diff --git a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts index d76c9f39c..a3b81f065 100644 --- a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts index 1381763a6..f3e04394a 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -54,16 +54,16 @@ export interface SearchCriteriaExclUserRequestDto { /** * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. */ - SelectedRegistrationTypes?: Array | null; + SelectedRegistrationTypes?: Array; /** * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. */ - SelectedRegions?: Array | null; + SelectedRegions?: Array; /** * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. */ - SelectedGeoHazards?: Array | null; - Countries?: Array | null; + SelectedGeoHazards?: Array; + Countries?: Array; /** * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer */ @@ -78,7 +78,7 @@ export interface SearchCriteriaExclUserRequestDto { /** * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work */ - OrderBy?: string | null; + OrderBy?: string; /** * Descending order is default. Set this to true to use ascending order. */ diff --git a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts index 5b9bb5926..87426fe68 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -54,16 +54,16 @@ export interface SearchCriteriaRequestDto { /** * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. */ - SelectedRegistrationTypes?: Array | null; + SelectedRegistrationTypes?: Array; /** * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. */ - SelectedRegions?: Array | null; + SelectedRegions?: Array; /** * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. */ - SelectedGeoHazards?: Array | null; - Countries?: Array | null; + SelectedGeoHazards?: Array; + Countries?: Array; /** * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer */ @@ -78,7 +78,7 @@ export interface SearchCriteriaRequestDto { /** * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work */ - OrderBy?: string | null; + OrderBy?: string; /** * Descending order is default. Set this to true to use ascending order. */ @@ -98,7 +98,7 @@ export interface SearchCriteriaRequestDto { /** * Find registrations made by observers with specific competence level IDs Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. */ - ObserverCompetence?: Array | null; + ObserverCompetence?: Array; /** * Find registrations made by the observer with given nick name */ diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts index b68a264b7..9fecbcc3b 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts index 819907d44..ce5cc7ac9 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts index 84cc9591f..e2b9a2e5b 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -13,8 +13,8 @@ import { SearchSideBarDtoRegistrationTypes } from './search-side-bar-dto-registr export interface SearchSideBarDto { - RegistrationTypes?: SearchSideBarDtoRegistrationTypes | null; - ObserverCompetenceLevels?: SearchSideBarDtoObserverCompetenceLevels | null; - Areas?: Array | null; + RegistrationTypes?: SearchSideBarDtoRegistrationTypes; + ObserverCompetenceLevels?: SearchSideBarDtoObserverCompetenceLevels; + Areas?: Array; } diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts index bde5fee43..b45634199 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -15,7 +15,7 @@ export interface SearchSideBarRequestDto { /** * Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. */ - GeoHazards?: Array | null; + GeoHazards?: Array; /** * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 Default = 2. */ diff --git a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts index 8a50dee0f..afc4c5ef5 100644 --- a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -29,11 +29,11 @@ export interface SnowCoverObsViewModel { /** * SnowPilotRef */ - SnowPilotRef?: string | null; + SnowPilotRef?: string; /** * Comment. */ - Comment?: string | null; - CriticalLayerName?: string | null; + Comment?: string; + CriticalLayerName?: string; } diff --git a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts index 1695b5c60..f36136857 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-model.ts b/src/app/modules/common-regobs-api/model/snow-density-model.ts index b2d810e74..ba2ae54c9 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -14,6 +14,6 @@ export interface SnowDensityModel { CylinderDiameter?: number | null; TareWeight?: number | null; Comment?: string | null; - Layers?: Array | null; + Layers?: Array; } diff --git a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts index c158b4d62..666ecf307 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -18,7 +18,7 @@ export interface SnowProfileEditModel { Exposition?: number | null; SlopeAngle?: number | null; SnowTemp?: SnowTempModel | null; - SnowDensity?: Array | null; - StratProfile?: StratProfileEditModel | null; + SnowDensity?: Array; + StratProfile?: StratProfileEditModel; } diff --git a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts index 4ccaaf3e2..451c13f92 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -19,12 +19,12 @@ export interface SnowProfileViewModel { Exposition?: number | null; SlopeAngle?: number | null; SnowTemp?: SnowTempModel | null; - SnowDensity?: Array | null; - StratProfile?: StratProfileViewModel | null; + SnowDensity?: Array; + StratProfile?: StratProfileViewModel; TotalDepth: number; /** * Urls to simplified images of the snow profile model */ - PlotImage?: AttachmentViewModel | null; + PlotImage?: AttachmentViewModel; } diff --git a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts index 3ff680489..ad6295a2a 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts index 9f4082414..11f703835 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -50,16 +50,16 @@ export interface SnowSurfaceViewModel { * Obsolete - Only in View Model */ SnowWindDepth24?: number | null; - SurfaceWaterContentName?: string | null; - SnowDriftName?: string | null; - SnowSurfaceName?: string | null; + SurfaceWaterContentName?: string; + SnowDriftName?: string; + SnowSurfaceName?: string; SkiConditionsTID?: number | null; - SkiConditionsName?: string | null; + SkiConditionsName?: string; /** * Obsolete - Only in View Model */ SurfaceRougnessTID?: number | null; - SurfaceRougnessName?: string | null; + SurfaceRougnessName?: string; /** * Obsolete - Only in View Model */ diff --git a/src/app/modules/common-regobs-api/model/snow-temp-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-model.ts index 4e9eb7821..04aeb25d7 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,6 +11,6 @@ import { SnowTempObsModel } from './snow-temp-obs-model'; export interface SnowTempModel { - Layers?: Array | null; + Layers?: Array; } diff --git a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts index fe2e909fb..9d3eb4591 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts index d059f8360..2821291ed 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,6 +11,6 @@ import { StratProfileLayerEditModel } from './strat-profile-layer-edit-model'; export interface StratProfileEditModel { - Layers?: Array | null; + Layers?: Array; } diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts index 2f10dcada..3af4f25ed 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts index 997f2779f..198f6add4 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -22,11 +22,11 @@ export interface StratProfileLayerViewModel { CriticalLayerTID?: number | null; Comment?: string | null; SortOrder: number; - GrainFormPrimaryTName?: string | null; - GrainFormSecondaryTName?: string | null; - HardnessTName?: string | null; - HardnessBottomTName?: string | null; - WetnessTName?: string | null; - CriticalLayerTName?: string | null; + GrainFormPrimaryTName?: string; + GrainFormSecondaryTName?: string; + HardnessTName?: string; + HardnessBottomTName?: string; + WetnessTName?: string; + CriticalLayerTName?: string; } diff --git a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts index 709f69372..7f85fe10d 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; export interface StratProfileViewModel { - Layers?: Array | null; + Layers?: Array; TotalDepth: number; } diff --git a/src/app/modules/common-regobs-api/model/summary.ts b/src/app/modules/common-regobs-api/model/summary.ts index e253df293..f26956ba3 100644 --- a/src/app/modules/common-regobs-api/model/summary.ts +++ b/src/app/modules/common-regobs-api/model/summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -12,7 +12,7 @@ import { RegObsGenericValue } from './reg-obs-generic-value'; export interface Summary { RegistrationTID: number; - RegistrationName?: string | null; - Summaries?: Array | null; + RegistrationName?: string; + Summaries?: Array; } diff --git a/src/app/modules/common-regobs-api/model/url-edit-model.ts b/src/app/modules/common-regobs-api/model/url-edit-model.ts index 07fc22ad8..f0580936b 100644 --- a/src/app/modules/common-regobs-api/model/url-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/url-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-view-model.ts b/src/app/modules/common-regobs-api/model/url-view-model.ts index 1a908fe42..7d52067b1 100644 --- a/src/app/modules/common-regobs-api/model/url-view-model.ts +++ b/src/app/modules/common-regobs-api/model/url-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/value-kind.ts b/src/app/modules/common-regobs-api/model/value-kind.ts index e9fa5f055..85c60a35f 100644 --- a/src/app/modules/common-regobs-api/model/value-kind.ts +++ b/src/app/modules/common-regobs-api/model/value-kind.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts index fbdd670e2..ca1e8d8f5 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts index 260abf63a..71c4de128 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -15,6 +15,6 @@ export interface WaterLevelMeasurementViewModel { WaterLevelValue?: number | null; DtMeasurementTime: string; Comment?: string | null; - Attachments?: Array | null; + Attachments?: Array; } diff --git a/src/app/modules/common-regobs-api/model/water-level-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-view-model.ts index 103221530..f41a4171f 100644 --- a/src/app/modules/common-regobs-api/model/water-level-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -10,11 +10,11 @@ export interface WaterLevelViewModel { - WaterLevelDescribed?: string | null; + WaterLevelDescribed?: string; WaterLevelValue?: number | null; WaterLevelRefTID: number; - WaterLevelRefName?: string | null; - Comment?: string | null; + WaterLevelRefName?: string; + Comment?: string; MeasuredDischarge?: number | null; IsRiver: boolean; } diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts index 0c70ea7b2..83c55a3d6 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -20,7 +20,7 @@ export interface Waterlevel2EditModel { WaterLevelStateTID?: number | null; MarkingTypeTID?: number | null; MeasuringToolDescription?: string | null; - WaterLevelMeasurement?: Array | null; + WaterLevelMeasurement?: Array; /** * Flood polygon area, List(lon, lat) */ diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts index 6e5e00fc2..d0bddc1dd 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -20,19 +20,19 @@ export interface Waterlevel2ViewModel { WaterLevelStateTID?: number | null; MarkingTypeTID?: number | null; MeasuringToolDescription?: string | null; - WaterLevelMeasurement?: Array | null; + WaterLevelMeasurement?: Array; Comment?: string | null; - WaterLevelStateName?: string | null; - WaterAstrayName?: string | null; - ObservationTimingName?: string | null; - MeasurementReferenceName?: string | null; - MeasurementTypeName?: string | null; - WaterLevelMethodName?: string | null; - MarkingReferenceName?: string | null; - MarkingTypeName?: string | null; + WaterLevelStateName?: string; + WaterAstrayName?: string; + ObservationTimingName?: string; + MeasurementReferenceName?: string; + MeasurementTypeName?: string; + WaterLevelMethodName?: string; + MarkingReferenceName?: string; + MarkingTypeName?: string; /** * Flood polygon area, List(lon, lat) */ - Extent?: Array> | null; + Extent?: Array>; } diff --git a/src/app/modules/common-regobs-api/model/weather-edit-model.ts b/src/app/modules/common-regobs-api/model/weather-edit-model.ts index a6150501b..078ada3f7 100644 --- a/src/app/modules/common-regobs-api/model/weather-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-view-model.ts b/src/app/modules/common-regobs-api/model/weather-view-model.ts index e1a77af56..0ebb96706 100644 --- a/src/app/modules/common-regobs-api/model/weather-view-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -16,7 +16,7 @@ export interface WeatherViewModel { WindDirection?: number | null; CloudCover?: number | null; Comment?: string | null; - PrecipitationName?: string | null; - WindDirectionName?: string | null; + PrecipitationName?: string; + WindDirectionName?: string; } diff --git a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts index b39ad479f..4994eb3e7 100644 --- a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { PositionDto } from './position-dto'; export interface WithinExtentCriteriaDto { - TopLeft?: PositionDto | null; - BottomRight?: PositionDto | null; + TopLeft?: PositionDto; + BottomRight?: PositionDto; } diff --git a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts index e895d716e..e20f44370 100644 --- a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: 446d2219 + * RegObs API, build: Local build - commit: ec80925f * * Contact: regobs@nve.no * @@ -11,7 +11,7 @@ import { PositionDto } from './position-dto'; export interface WithinRadiusCriteriaDto { - Position?: PositionDto | null; + Position?: PositionDto; Radius: number; } From 28e9cbcba7ae67274b0b6aeb713af31efa7a7041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Loe=20Kvalberg?= Date: Mon, 17 Nov 2025 12:27:03 +0100 Subject: [PATCH 07/16] =?UTF-8?q?Kj=C3=B8r=20generator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/modules/common-regobs-api/api.base.service.ts | 2 +- src/app/modules/common-regobs-api/api/account.service.ts | 2 +- src/app/modules/common-regobs-api/api/attachment.service.ts | 2 +- src/app/modules/common-regobs-api/api/geo-code.service.ts | 2 +- src/app/modules/common-regobs-api/api/helptext.service.ts | 2 +- src/app/modules/common-regobs-api/api/kdv-elements.service.ts | 2 +- src/app/modules/common-regobs-api/api/location.service.ts | 2 +- src/app/modules/common-regobs-api/api/registration.service.ts | 2 +- src/app/modules/common-regobs-api/api/search.service.ts | 2 +- src/app/modules/common-regobs-api/api/trip.service.ts | 2 +- .../common-regobs-api/model/areas-dto-forecast-regions.ts | 2 +- src/app/modules/common-regobs-api/model/areas-dto.ts | 2 +- .../modules/common-regobs-api/model/at-a-glance-view-model.ts | 2 +- .../modules/common-regobs-api/model/attachment-edit-model.ts | 2 +- .../model/attachment-view-model-url-formats.ts | 2 +- .../modules/common-regobs-api/model/attachment-view-model.ts | 2 +- .../model/avalanche-activity-obs-view-model.ts | 2 +- .../model/avalanche-activity-obs2-edit-model.ts | 2 +- .../model/avalanche-activity-obs2-view-model.ts | 2 +- .../common-regobs-api/model/avalanche-danger-obs-view-model.ts | 2 +- .../model/avalanche-eval-problem-view-model.ts | 2 +- .../model/avalanche-eval-problem2-edit-model.ts | 2 +- .../model/avalanche-eval-problem2-view-model.ts | 2 +- .../common-regobs-api/model/avalanche-evaluation-view-model.ts | 2 +- .../common-regobs-api/model/avalanche-evaluation2-view-model.ts | 2 +- .../common-regobs-api/model/avalanche-evaluation3-edit-model.ts | 2 +- .../common-regobs-api/model/avalanche-evaluation3-view-model.ts | 2 +- .../modules/common-regobs-api/model/avalanche-obs-edit-model.ts | 2 +- .../modules/common-regobs-api/model/avalanche-obs-view-model.ts | 2 +- .../common-regobs-api/model/compression-test-edit-model.ts | 2 +- .../common-regobs-api/model/compression-test-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/county-dto.ts | 2 +- src/app/modules/common-regobs-api/model/create-trip-dto.ts | 2 +- .../modules/common-regobs-api/model/damage-obs-edit-model.ts | 2 +- .../modules/common-regobs-api/model/damage-obs-view-model.ts | 2 +- .../modules/common-regobs-api/model/danger-obs-edit-model.ts | 2 +- .../modules/common-regobs-api/model/danger-obs-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/finish-trip-dto.ts | 2 +- src/app/modules/common-regobs-api/model/forecast-region-dto.ts | 2 +- .../common-regobs-api/model/forecast-region-sub-region-dto.ts | 2 +- .../common-regobs-api/model/general-observation-edit-model.ts | 2 +- .../common-regobs-api/model/general-observation-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/geo-hazard-types.ts | 2 +- src/app/modules/common-regobs-api/model/geo-location-info.ts | 2 +- src/app/modules/common-regobs-api/model/geo-location-summary.ts | 2 +- src/app/modules/common-regobs-api/model/helptext-dto.ts | 2 +- src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts | 2 +- src/app/modules/common-regobs-api/model/ice-cover-view-model.ts | 2 +- .../modules/common-regobs-api/model/ice-thickness-edit-model.ts | 2 +- .../common-regobs-api/model/ice-thickness-layer-edit-model.ts | 2 +- .../common-regobs-api/model/ice-thickness-layer-view-model.ts | 2 +- .../modules/common-regobs-api/model/ice-thickness-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/incident-edit-model.ts | 2 +- src/app/modules/common-regobs-api/model/incident-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/kdv-element.ts | 2 +- .../common-regobs-api/model/kdv-elements-response-dto.ts | 2 +- src/app/modules/common-regobs-api/model/landslide-edit-model.ts | 2 +- src/app/modules/common-regobs-api/model/landslide-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/lang-key.ts | 2 +- src/app/modules/common-regobs-api/model/lat-lng-object.ts | 2 +- src/app/modules/common-regobs-api/model/lat-lng.ts | 2 +- src/app/modules/common-regobs-api/model/my-page-data.ts | 2 +- .../modules/common-regobs-api/model/obs-location-edit-model.ts | 2 +- .../modules/common-regobs-api/model/obs-location-view-model.ts | 2 +- .../common-regobs-api/model/obs-locations-response-dto-v2.ts | 2 +- .../modules/common-regobs-api/model/observer-competence-dto.ts | 2 +- .../common-regobs-api/model/observer-competence-level-dto.ts | 2 +- src/app/modules/common-regobs-api/model/observer-group-dto.ts | 2 +- .../common-regobs-api/model/observer-patch-request-dto.ts | 2 +- .../modules/common-regobs-api/model/observer-response-dto.ts | 2 +- src/app/modules/common-regobs-api/model/observer-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/operator.ts | 2 +- src/app/modules/common-regobs-api/model/position-dto.ts | 2 +- src/app/modules/common-regobs-api/model/problem-details.ts | 2 +- src/app/modules/common-regobs-api/model/property-filter.ts | 2 +- .../modules/common-regobs-api/model/reg-obs-generic-value.ts | 2 +- .../modules/common-regobs-api/model/registration-edit-model.ts | 2 +- .../common-regobs-api/model/registration-type-criteria-dto.ts | 2 +- .../modules/common-regobs-api/model/registration-type-dto.ts | 2 +- .../common-regobs-api/model/registration-type-sub-type-dto.ts | 2 +- .../modules/common-regobs-api/model/registration-view-model.ts | 2 +- .../common-regobs-api/model/registrations-with-attachments.ts | 2 +- .../common-regobs-api/model/search-count-response-dto.ts | 2 +- .../model/search-criteria-excl-user-request-dto.ts | 2 +- .../common-regobs-api/model/search-criteria-request-dto.ts | 2 +- .../model/search-side-bar-dto-observer-competence-levels.ts | 2 +- .../model/search-side-bar-dto-registration-types.ts | 2 +- src/app/modules/common-regobs-api/model/search-side-bar-dto.ts | 2 +- .../common-regobs-api/model/search-side-bar-request-dto.ts | 2 +- .../common-regobs-api/model/snow-cover-obs-view-model.ts | 2 +- .../modules/common-regobs-api/model/snow-density-layer-model.ts | 2 +- src/app/modules/common-regobs-api/model/snow-density-model.ts | 2 +- .../modules/common-regobs-api/model/snow-profile-edit-model.ts | 2 +- .../modules/common-regobs-api/model/snow-profile-view-model.ts | 2 +- .../modules/common-regobs-api/model/snow-surface-edit-model.ts | 2 +- .../modules/common-regobs-api/model/snow-surface-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/snow-temp-model.ts | 2 +- src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts | 2 +- .../modules/common-regobs-api/model/strat-profile-edit-model.ts | 2 +- .../common-regobs-api/model/strat-profile-layer-edit-model.ts | 2 +- .../common-regobs-api/model/strat-profile-layer-view-model.ts | 2 +- .../modules/common-regobs-api/model/strat-profile-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/summary.ts | 2 +- src/app/modules/common-regobs-api/model/url-edit-model.ts | 2 +- src/app/modules/common-regobs-api/model/url-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/value-kind.ts | 2 +- .../model/water-level-measurement-edit-model.ts | 2 +- .../model/water-level-measurement-view-model.ts | 2 +- .../modules/common-regobs-api/model/water-level-view-model.ts | 2 +- .../modules/common-regobs-api/model/waterlevel2-edit-model.ts | 2 +- .../modules/common-regobs-api/model/waterlevel2-view-model.ts | 2 +- src/app/modules/common-regobs-api/model/weather-edit-model.ts | 2 +- src/app/modules/common-regobs-api/model/weather-view-model.ts | 2 +- .../common-regobs-api/model/within-extent-criteria-dto.ts | 2 +- .../common-regobs-api/model/within-radius-criteria-dto.ts | 2 +- 115 files changed, 115 insertions(+), 115 deletions(-) diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts index c5126bcc7..e4b3d760f 100644 --- a/src/app/modules/common-regobs-api/api.base.service.ts +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts index 4d5512596..47ec2cf5e 100644 --- a/src/app/modules/common-regobs-api/api/account.service.ts +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts index 7c0b651c0..9a6991ade 100644 --- a/src/app/modules/common-regobs-api/api/attachment.service.ts +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts index 5e1fc8838..60eeeb620 100644 --- a/src/app/modules/common-regobs-api/api/geo-code.service.ts +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts index a4408231b..2d3b22ff2 100644 --- a/src/app/modules/common-regobs-api/api/helptext.service.ts +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts index b91a230d0..77ec9c11c 100644 --- a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts index 37340ec81..8b88800cb 100644 --- a/src/app/modules/common-regobs-api/api/location.service.ts +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts index 2119b4ef7..48d3420a3 100644 --- a/src/app/modules/common-regobs-api/api/registration.service.ts +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts index 8365137d2..8e0a1bb0e 100644 --- a/src/app/modules/common-regobs-api/api/search.service.ts +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts index df6ad2513..56029d41e 100644 --- a/src/app/modules/common-regobs-api/api/trip.service.ts +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts index 3716ad801..bf96572db 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto-forecast-regions.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/areas-dto.ts b/src/app/modules/common-regobs-api/model/areas-dto.ts index b13c34d44..810a66214 100644 --- a/src/app/modules/common-regobs-api/model/areas-dto.ts +++ b/src/app/modules/common-regobs-api/model/areas-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts index d5a8cf1cf..e37f4b6cc 100644 --- a/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts +++ b/src/app/modules/common-regobs-api/model/at-a-glance-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts index 31004b9b2..28b34b1c2 100644 --- a/src/app/modules/common-regobs-api/model/attachment-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts index acda46a6c..8b84b379c 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model-url-formats.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/attachment-view-model.ts b/src/app/modules/common-regobs-api/model/attachment-view-model.ts index 528778c69..6f545bd9e 100644 --- a/src/app/modules/common-regobs-api/model/attachment-view-model.ts +++ b/src/app/modules/common-regobs-api/model/attachment-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts index aff420ba4..064380a39 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts index 5409fa801..01fb73023 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts index 5803d9265..41c0d1f04 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-activity-obs2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts index 7718639ea..e00647aa2 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts index 8eab33535..6f8ceba0c 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts index b5125e024..c2723a458 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts index 1928d31c6..30df522b6 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-eval-problem2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts index c62df8e65..f39f63269 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts index e1b25971a..8ae862aa4 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts index 16023710c..3e8e77c2a 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts index 57c407761..7ca3a870e 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-evaluation3-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts index 01d4bab22..4220eee42 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts index 9eff6f208..87d2536dd 100644 --- a/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/avalanche-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts index cc0ca00f1..70b544336 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts index 839d2b264..62b79189e 100644 --- a/src/app/modules/common-regobs-api/model/compression-test-view-model.ts +++ b/src/app/modules/common-regobs-api/model/compression-test-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/county-dto.ts b/src/app/modules/common-regobs-api/model/county-dto.ts index 832b8acac..de56c8fd2 100644 --- a/src/app/modules/common-regobs-api/model/county-dto.ts +++ b/src/app/modules/common-regobs-api/model/county-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/create-trip-dto.ts b/src/app/modules/common-regobs-api/model/create-trip-dto.ts index 624add814..d953ce970 100644 --- a/src/app/modules/common-regobs-api/model/create-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/create-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts index 03732df95..0614028e0 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts index 5083f9018..659ed8fde 100644 --- a/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/damage-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts index ec98aadb3..6f47d1f20 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts index d28652ec0..46fc4417b 100644 --- a/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/danger-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts index 614e19042..c649a52e1 100644 --- a/src/app/modules/common-regobs-api/model/finish-trip-dto.ts +++ b/src/app/modules/common-regobs-api/model/finish-trip-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts index 01ccf75f6..f00c2b91b 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts index 5fb1245cd..4e60ad44b 100644 --- a/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts +++ b/src/app/modules/common-regobs-api/model/forecast-region-sub-region-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts index a697293a5..bbba70365 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts index 8a9a9c3ad..bd02e000d 100644 --- a/src/app/modules/common-regobs-api/model/general-observation-view-model.ts +++ b/src/app/modules/common-regobs-api/model/general-observation-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts index 91f092af3..dfe730342 100644 --- a/src/app/modules/common-regobs-api/model/geo-hazard-types.ts +++ b/src/app/modules/common-regobs-api/model/geo-hazard-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-info.ts b/src/app/modules/common-regobs-api/model/geo-location-info.ts index 085ffd8fe..f2530e1ab 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-info.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-info.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/geo-location-summary.ts b/src/app/modules/common-regobs-api/model/geo-location-summary.ts index f25000dd4..d461990fb 100644 --- a/src/app/modules/common-regobs-api/model/geo-location-summary.ts +++ b/src/app/modules/common-regobs-api/model/geo-location-summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/helptext-dto.ts b/src/app/modules/common-regobs-api/model/helptext-dto.ts index d00b1787f..1a5fd4b09 100644 --- a/src/app/modules/common-regobs-api/model/helptext-dto.ts +++ b/src/app/modules/common-regobs-api/model/helptext-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts index f5ba70022..4a5971756 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts index 21ddcdd1d..a1361e564 100644 --- a/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-cover-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts index acb1e3cfd..b661fdee7 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts index cdc0bf596..fbe21d74f 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts index 84626965e..b73521429 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts index 2956ea0bb..54b94bc62 100644 --- a/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts +++ b/src/app/modules/common-regobs-api/model/ice-thickness-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-edit-model.ts b/src/app/modules/common-regobs-api/model/incident-edit-model.ts index cad3cbb7a..d5ab9c64c 100644 --- a/src/app/modules/common-regobs-api/model/incident-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/incident-view-model.ts b/src/app/modules/common-regobs-api/model/incident-view-model.ts index 0dad1cade..ca3687113 100644 --- a/src/app/modules/common-regobs-api/model/incident-view-model.ts +++ b/src/app/modules/common-regobs-api/model/incident-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/kdv-element.ts b/src/app/modules/common-regobs-api/model/kdv-element.ts index 982662b09..eb8a1e926 100644 --- a/src/app/modules/common-regobs-api/model/kdv-element.ts +++ b/src/app/modules/common-regobs-api/model/kdv-element.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts index 2783412d4..8e8530157 100644 --- a/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/kdv-elements-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts index bd01dc44d..9f98346e5 100644 --- a/src/app/modules/common-regobs-api/model/landslide-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/landslide-view-model.ts b/src/app/modules/common-regobs-api/model/landslide-view-model.ts index ce0062418..68000477d 100644 --- a/src/app/modules/common-regobs-api/model/landslide-view-model.ts +++ b/src/app/modules/common-regobs-api/model/landslide-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lang-key.ts b/src/app/modules/common-regobs-api/model/lang-key.ts index b2bb91a0c..cd1feabef 100644 --- a/src/app/modules/common-regobs-api/model/lang-key.ts +++ b/src/app/modules/common-regobs-api/model/lang-key.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng-object.ts b/src/app/modules/common-regobs-api/model/lat-lng-object.ts index 5c2ee0c8f..c450de877 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng-object.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng-object.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/lat-lng.ts b/src/app/modules/common-regobs-api/model/lat-lng.ts index b8e38a6b2..9975cfe2d 100644 --- a/src/app/modules/common-regobs-api/model/lat-lng.ts +++ b/src/app/modules/common-regobs-api/model/lat-lng.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/my-page-data.ts b/src/app/modules/common-regobs-api/model/my-page-data.ts index 2e4a8f946..c0626231b 100644 --- a/src/app/modules/common-regobs-api/model/my-page-data.ts +++ b/src/app/modules/common-regobs-api/model/my-page-data.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts index 6e50069c6..2e1d20669 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts index d3263d6b0..c20c0f773 100644 --- a/src/app/modules/common-regobs-api/model/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/model/obs-location-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts index 64ad79430..bbe40a497 100644 --- a/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts +++ b/src/app/modules/common-regobs-api/model/obs-locations-response-dto-v2.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts index 9aa852632..8003ffff7 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts index 9ab371d57..21d8b1db0 100644 --- a/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-competence-level-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-group-dto.ts b/src/app/modules/common-regobs-api/model/observer-group-dto.ts index f0f6df8d4..46c9e0541 100644 --- a/src/app/modules/common-regobs-api/model/observer-group-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-group-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts index 8de26541b..a94e81c9f 100644 --- a/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-patch-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-response-dto.ts b/src/app/modules/common-regobs-api/model/observer-response-dto.ts index 328d61a4f..b7cd1058b 100644 --- a/src/app/modules/common-regobs-api/model/observer-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/observer-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/observer-view-model.ts b/src/app/modules/common-regobs-api/model/observer-view-model.ts index 548e2ace1..725e1bc0a 100644 --- a/src/app/modules/common-regobs-api/model/observer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/observer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/operator.ts b/src/app/modules/common-regobs-api/model/operator.ts index 9aa9bf8f9..a6eb5a8ee 100644 --- a/src/app/modules/common-regobs-api/model/operator.ts +++ b/src/app/modules/common-regobs-api/model/operator.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/position-dto.ts b/src/app/modules/common-regobs-api/model/position-dto.ts index 86f065e20..f34b28c8c 100644 --- a/src/app/modules/common-regobs-api/model/position-dto.ts +++ b/src/app/modules/common-regobs-api/model/position-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/problem-details.ts b/src/app/modules/common-regobs-api/model/problem-details.ts index 5f34dfb13..7480ac6bf 100644 --- a/src/app/modules/common-regobs-api/model/problem-details.ts +++ b/src/app/modules/common-regobs-api/model/problem-details.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/property-filter.ts b/src/app/modules/common-regobs-api/model/property-filter.ts index 918e15f18..c2e322344 100644 --- a/src/app/modules/common-regobs-api/model/property-filter.ts +++ b/src/app/modules/common-regobs-api/model/property-filter.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts index b6952f22b..be3ad2b34 100644 --- a/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts +++ b/src/app/modules/common-regobs-api/model/reg-obs-generic-value.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-edit-model.ts b/src/app/modules/common-regobs-api/model/registration-edit-model.ts index 01e4a11ff..cfba6900a 100644 --- a/src/app/modules/common-regobs-api/model/registration-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts index 30a13afe1..b4d4de094 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-dto.ts index e29b6a3fd..7336d443f 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts index bdefa9536..0a486915a 100644 --- a/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts +++ b/src/app/modules/common-regobs-api/model/registration-type-sub-type-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registration-view-model.ts b/src/app/modules/common-regobs-api/model/registration-view-model.ts index 92201f365..7ffd46fc5 100644 --- a/src/app/modules/common-regobs-api/model/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/model/registration-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts index 04675880d..5cac4f552 100644 --- a/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts +++ b/src/app/modules/common-regobs-api/model/registrations-with-attachments.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts index a3b81f065..be85d52f3 100644 --- a/src/app/modules/common-regobs-api/model/search-count-response-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-count-response-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts index f3e04394a..3d3dc064e 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-excl-user-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts index 87426fe68..b637a5bb8 100644 --- a/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-criteria-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts index 9fecbcc3b..7faa8e113 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-observer-competence-levels.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts index ce5cc7ac9..8ba15e503 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto-registration-types.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts index e2b9a2e5b..4524414f5 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts index b45634199..62f2be5f8 100644 --- a/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts +++ b/src/app/modules/common-regobs-api/model/search-side-bar-request-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts index afc4c5ef5..624404442 100644 --- a/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-cover-obs-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts index f36136857..b5f75021c 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-layer-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-density-model.ts b/src/app/modules/common-regobs-api/model/snow-density-model.ts index ba2ae54c9..65e1a60b4 100644 --- a/src/app/modules/common-regobs-api/model/snow-density-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-density-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts index 666ecf307..8b36a3a03 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts index 451c13f92..c4e706ab0 100644 --- a/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts index ad6295a2a..91b71d5b7 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts index 11f703835..34ae03fc0 100644 --- a/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-surface-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-model.ts index 04aeb25d7..65e5a5349 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts index 9d3eb4591..eee0d04e1 100644 --- a/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts +++ b/src/app/modules/common-regobs-api/model/snow-temp-obs-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts index 2821291ed..19c0a0b98 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts index 3af4f25ed..b295b55f9 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts index 198f6add4..db8df84fb 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-layer-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts index 7f85fe10d..a0aaabc5a 100644 --- a/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/model/strat-profile-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/summary.ts b/src/app/modules/common-regobs-api/model/summary.ts index f26956ba3..2bc91bd82 100644 --- a/src/app/modules/common-regobs-api/model/summary.ts +++ b/src/app/modules/common-regobs-api/model/summary.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-edit-model.ts b/src/app/modules/common-regobs-api/model/url-edit-model.ts index f0580936b..658f6030e 100644 --- a/src/app/modules/common-regobs-api/model/url-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/url-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/url-view-model.ts b/src/app/modules/common-regobs-api/model/url-view-model.ts index 7d52067b1..7b50efc8a 100644 --- a/src/app/modules/common-regobs-api/model/url-view-model.ts +++ b/src/app/modules/common-regobs-api/model/url-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/value-kind.ts b/src/app/modules/common-regobs-api/model/value-kind.ts index 85c60a35f..38d5eb3d7 100644 --- a/src/app/modules/common-regobs-api/model/value-kind.ts +++ b/src/app/modules/common-regobs-api/model/value-kind.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts index ca1e8d8f5..0674131eb 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts index 71c4de128..9df25d90b 100644 --- a/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-measurement-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/water-level-view-model.ts b/src/app/modules/common-regobs-api/model/water-level-view-model.ts index f41a4171f..bd8e1d33a 100644 --- a/src/app/modules/common-regobs-api/model/water-level-view-model.ts +++ b/src/app/modules/common-regobs-api/model/water-level-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts index 83c55a3d6..53e4a7258 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts index d0bddc1dd..fd25a0068 100644 --- a/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts +++ b/src/app/modules/common-regobs-api/model/waterlevel2-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-edit-model.ts b/src/app/modules/common-regobs-api/model/weather-edit-model.ts index 078ada3f7..823eeffc0 100644 --- a/src/app/modules/common-regobs-api/model/weather-edit-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-edit-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/weather-view-model.ts b/src/app/modules/common-regobs-api/model/weather-view-model.ts index 0ebb96706..d8a614e7f 100644 --- a/src/app/modules/common-regobs-api/model/weather-view-model.ts +++ b/src/app/modules/common-regobs-api/model/weather-view-model.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts index 4994eb3e7..a05dd7c1c 100644 --- a/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-extent-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * diff --git a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts index e20f44370..2779ca7bd 100644 --- a/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/model/within-radius-criteria-dto.ts @@ -1,5 +1,5 @@ /** - * RegObs API, build: Local build - commit: ec80925f + * RegObs API, build: Local build - commit: b86cb26d * * Contact: regobs@nve.no * From ce087ba18569fed52da41fe8153203138e2dc010 Mon Sep 17 00:00:00 2001 From: gruble Date: Mon, 17 Nov 2025 14:49:41 +0100 Subject: [PATCH 08/16] fortell git at filer blir generert kun med som linjeskift --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 0c1340810..ccddf5cb1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,7 @@ # Language files. When we download files from lokalise, they only get as line break character src/assets/i18n/*.json text eol=lf +src/app/modules/common-regobs-api/**/*.ts text eol=lf # Custom for Visual Studio *.cs diff=csharp From f3e059e87724e711c60293ecd2a4432ee5f0646f Mon Sep 17 00:00:00 2001 From: gruble Date: Mon, 17 Nov 2025 14:51:44 +0100 Subject: [PATCH 09/16] =?UTF-8?q?Endret=20konfig=20til=20=C3=A5=20fjerne?= =?UTF-8?q?=20versjons-ID=20/=20commit-ID=20fra=20filhode=20p=C3=A5=20gene?= =?UTF-8?q?rerte=20filer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi-templates/licenseInfo.mustache | 5 +++++ openapi-templates/readme.md | 2 ++ openapitools.json | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 openapi-templates/licenseInfo.mustache create mode 100644 openapi-templates/readme.md diff --git a/openapi-templates/licenseInfo.mustache b/openapi-templates/licenseInfo.mustache new file mode 100644 index 000000000..c48338e03 --- /dev/null +++ b/openapi-templates/licenseInfo.mustache @@ -0,0 +1,5 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ diff --git a/openapi-templates/readme.md b/openapi-templates/readme.md new file mode 100644 index 000000000..128f8d814 --- /dev/null +++ b/openapi-templates/readme.md @@ -0,0 +1,2 @@ +Her ligger det maler for generering av klient-kode basert på Regobs-API'et. +Mer info: https://openapi-generator.tech/docs/templating/ diff --git a/openapitools.json b/openapitools.json index 39eb77ced..c90613f11 100644 --- a/openapitools.json +++ b/openapitools.json @@ -6,8 +6,9 @@ "generators": { "regobs-client": { "generatorName": "typescript-angular", - "inputSpec": "https://test-api.regobs.no/v6/swagger/v6/swagger.json", + "inputSpec": "http://localhost:5130/swagger/v6/swagger.json", "output": "src/app/modules/common-regobs-api", + "templateDir": "openapi-templates", "additionalProperties": { "fileNaming": "kebab-case", "useSingleRequestParameter": true From d4d9dca388338e4078589933b6f6e0096e6ffda0 Mon Sep 17 00:00:00 2001 From: gruble Date: Tue, 18 Nov 2025 16:33:26 +0100 Subject: [PATCH 10/16] Flyttet modeller til models, sortering av felter og fjerne | null --- openapi-templates/modelGeneric.mustache | 18 ++++++++ openapitools.json | 4 +- package-lock.json | 58 +++++++++++++++++++++---- package.json | 2 + sort-model-fields.ts | 50 +++++++++++++++++++++ 5 files changed, 122 insertions(+), 10 deletions(-) create mode 100644 openapi-templates/modelGeneric.mustache create mode 100644 sort-model-fields.ts diff --git a/openapi-templates/modelGeneric.mustache b/openapi-templates/modelGeneric.mustache new file mode 100644 index 000000000..197ce1b3e --- /dev/null +++ b/openapi-templates/modelGeneric.mustache @@ -0,0 +1,18 @@ +export interface {{classname}}{{#allParents}}{{#-first}} extends {{/-first}}{{{.}}}{{^-last}}, {{/-last}}{{/allParents}} { {{>modelGenericAdditionalProperties}} +{{#vars}} + {{#description}} + /** + {{#description}} + * {{{.}}} + {{/description}} + */ + {{/description}} + {{#deprecated}} + /** @deprecated */ + {{/deprecated}} + {{#isReadOnly}} + /** Readonly property */ + {{/isReadOnly}} + {{name}}{{^required}}?{{/required}}: {{#type}}{{{type}}}{{/type}}{{^type}}unknown{{/type}}{{#nullable}}{{^isPrimitiveType}} | null{{/isPrimitiveType}}{{/nullable}}; +{{/vars}} +}{{>modelGenericEnums}} diff --git a/openapitools.json b/openapitools.json index c90613f11..8992c8443 100644 --- a/openapitools.json +++ b/openapitools.json @@ -11,7 +11,9 @@ "templateDir": "openapi-templates", "additionalProperties": { "fileNaming": "kebab-case", - "useSingleRequestParameter": true + "useSingleRequestParameter": true, + "modelPackage": "models", + "nullableReference": false } } } diff --git a/package-lock.json b/package-lock.json index 5efbd205f..1265bca3f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -140,6 +140,7 @@ "ng-swagger-gen": "^2.3.1", "plist": "^3.0.5", "prettier": "^3.4.2", + "ts-morph": "^27.0.2", "ts-node": "^10.9.1", "typescript": "5.9.2" }, @@ -9219,15 +9220,15 @@ "license": "MIT" }, "node_modules/@ts-morph/common": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz", - "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==", + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.28.1.tgz", + "integrity": "sha512-W74iWf7ILp1ZKNYXY5qbddNaml7e9Sedv5lvU1V8lftlitkc9Pq1A+jlH23ltDgWYeZFFEqGCD1Ies9hqu3O+g==", "dev": true, "license": "MIT", "dependencies": { - "fast-glob": "^3.3.3", "minimatch": "^10.0.1", - "path-browserify": "^1.0.1" + "path-browserify": "^1.0.1", + "tinyglobby": "^0.2.14" } }, "node_modules/@ts-morph/common/node_modules/minimatch": { @@ -24789,6 +24790,18 @@ } } }, + "node_modules/ng-openapi/node_modules/@ts-morph/common": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz", + "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-glob": "^3.3.3", + "minimatch": "^10.0.1", + "path-browserify": "^1.0.1" + } + }, "node_modules/ng-openapi/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -24819,6 +24832,33 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/ng-openapi/node_modules/minimatch": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", + "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ng-openapi/node_modules/ts-morph": { + "version": "26.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz", + "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.27.0", + "code-block-writer": "^13.0.3" + } + }, "node_modules/ng-swagger-gen": { "version": "2.3.1", "dev": true, @@ -28963,13 +29003,13 @@ } }, "node_modules/ts-morph": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz", - "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==", + "version": "27.0.2", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-27.0.2.tgz", + "integrity": "sha512-fhUhgeljcrdZ+9DZND1De1029PrE+cMkIP7ooqkLRTrRLTqcki2AstsyJm0vRNbTbVCNJ0idGlbBrfqc7/nA8w==", "dev": true, "license": "MIT", "dependencies": { - "@ts-morph/common": "~0.27.0", + "@ts-morph/common": "~0.28.1", "code-block-writer": "^13.0.3" } }, diff --git a/package.json b/package.json index b73684778..5b4f857ea 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "ng": "ng", "generate-swagger-api-module": "ng-swagger-gen -c ng-swagger-gen.json", "generate-openapi-models": "npx openapi-generator-cli generate --generator-key regobs-client", + "generate-openapi-models-sort": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.pm-script.json sort-model-fields.ts", "start": "ionic serve", "build": "ionic build", "build:prod": "ng build --configuration production", @@ -170,6 +171,7 @@ "ng-swagger-gen": "^2.3.1", "plist": "^3.0.5", "prettier": "^3.4.2", + "ts-morph": "^27.0.2", "ts-node": "^10.9.1", "typescript": "5.9.2" }, diff --git a/sort-model-fields.ts b/sort-model-fields.ts new file mode 100644 index 000000000..481a47d3e --- /dev/null +++ b/sort-model-fields.ts @@ -0,0 +1,50 @@ +import { Project } from 'ts-morph'; +import { join } from 'path'; +import { readdirSync } from 'fs'; + +const modelDir = join(__dirname, '/src/app/modules/common-regobs-api/model'); +const files = readdirSync(modelDir).filter((f) => f.endsWith('.ts')); + +const project = new Project(); + +function normalizeName(name: string): string { + return name.replace(/^['"]|['"]$/g, ''); +} + +files.forEach((file) => { + const filePath = join(modelDir, file); + const sourceFile = project.addSourceFileAtPath(filePath); + + sourceFile.getInterfaces().forEach((intf) => { + // Hent ut alle props og deres JSDoc før du fjerner dem + const props = intf.getProperties().map((p) => { + // Slå sammen alle JSDoc-kommentarer til én, hvis de finnes + const jsDocText = p + .getJsDocs() + .map((d) => d.getText().trim()) + .filter(Boolean) + .join('\n'); + return { + name: p.getName(), + type: p.getTypeNode()?.getText() ?? 'unknown', + hasQuestionToken: p.hasQuestionToken(), + docs: jsDocText ? [jsDocText] : [], + }; + }); + + // Sorter props alfabetisk etter normalisert navn + const sorted = [...props].sort((a, b) => normalizeName(a.name).localeCompare(normalizeName(b.name), 'nb')); + + // Fjern ALLE eksisterende properties (og deres JSDoc) + intf.getProperties().forEach((p) => p.remove()); + + // Legg til sorterte properties med JSDoc + sorted.forEach((p) => { + intf.addProperty(p); + }); + }); + + sourceFile.saveSync(); +}); + +console.log('All model interfaces sorted alphabetically with JSDoc preserved.'); From 31a083dc129c895a4fe0beed45d6e33d12aeed51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Myhre?= Date: Wed, 19 Nov 2025 15:05:06 +0100 Subject: [PATCH 11/16] =?UTF-8?q?Modellene=20blir=20n=C3=A5=20generert=20i?= =?UTF-8?q?=20models-mappa=20der=20de=20l=C3=A5=20f=C3=B8r.=20Felter=20i?= =?UTF-8?q?=20modell-typene=20blir=20sortert=20alfabetisk.=20Felter=20som?= =?UTF-8?q?=20kan=20v=C3=A6re=20null=20har=20ikke=20|=20null=20som=20type.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- generate-models-index.ts | 18 ++ openapi-templates/index.mustache | 8 + openapi-templates/licenseInfo.mustache | 1 + openapi-templates/modelGeneric.mustache | 3 +- openapi-templates/models.mustache | 4 + package.json | 4 +- sort-model-fields.ts | 21 +- .../.openapi-generator/FILES | 212 +++++++++--------- src/app/modules/common-regobs-api/README.md | 2 +- .../common-regobs-api/api.base.service.ts | 7 +- .../common-regobs-api/api/account.service.ts | 19 +- .../api/attachment.service.ts | 7 +- .../common-regobs-api/api/geo-code.service.ts | 13 +- .../common-regobs-api/api/helptext.service.ts | 9 +- .../api/kdv-elements.service.ts | 13 +- .../common-regobs-api/api/location.service.ts | 13 +- .../api/registration.service.ts | 19 +- .../common-regobs-api/api/search.service.ts | 43 ++-- .../common-regobs-api/api/trip.service.ts | 13 +- src/app/modules/common-regobs-api/index.ts | 2 +- .../models/areas-dto-forecast-regions.ts | 24 ++ .../common-regobs-api/models/areas-dto.ts | 19 ++ .../models/at-a-glance-view-model.ts | 24 ++ .../models/attachment-edit-model.ts | 21 ++ .../attachment-view-model-url-formats.ts | 19 ++ .../models/attachment-view-model.ts | 26 +++ .../avalanche-activity-obs-view-model.ts | 29 +++ .../avalanche-activity-obs2-edit-model.ts | 24 ++ .../avalanche-activity-obs2-view-model.ts | 31 +++ .../models/avalanche-danger-obs-view-model.ts | 15 ++ .../avalanche-eval-problem-view-model.ts | 29 +++ .../avalanche-eval-problem2-edit-model.ts | 27 +++ .../avalanche-eval-problem2-view-model.ts | 39 ++++ .../models/avalanche-evaluation-view-model.ts | 27 +++ .../avalanche-evaluation2-view-model.ts | 25 +++ .../avalanche-evaluation3-edit-model.ts | 16 ++ .../avalanche-evaluation3-view-model.ts | 18 ++ .../models/avalanche-obs-edit-model.ts | 35 +++ .../models/avalanche-obs-view-model.ts | 40 ++++ .../models/compression-test-edit-model.ts | 23 ++ .../models/compression-test-view-model.ts | 27 +++ .../common-regobs-api/models/county-dto.ts | 13 ++ .../models/create-trip-dto.ts | 18 ++ .../models/damage-obs-edit-model.ts | 18 ++ .../models/damage-obs-view-model.ts | 20 ++ .../models/danger-obs-edit-model.ts | 14 ++ .../models/danger-obs-view-model.ts | 16 ++ .../models/finish-trip-dto.ts | 12 + .../models/forecast-region-dto.ts | 17 ++ .../models/forecast-region-sub-region-dto.ts | 15 ++ .../models/general-observation-edit-model.ts | 17 ++ .../models/general-observation-view-model.ts | 18 ++ .../models/geo-hazard-types.ts | 27 +++ .../models/geo-location-info.ts | 22 ++ .../models/geo-location-summary.ts | 13 ++ .../common-regobs-api/models/helptext-dto.ts | 15 ++ .../models/ice-cover-edit-model.ts | 19 ++ .../models/ice-cover-view-model.ts | 24 ++ .../models/ice-thickness-edit-model.ts | 19 ++ .../models/ice-thickness-layer-edit-model.ts | 14 ++ .../models/ice-thickness-layer-view-model.ts | 15 ++ .../models/ice-thickness-view-model.ts | 19 ++ .../models/incident-edit-model.ts | 34 +++ .../models/incident-view-model.ts | 43 ++++ .../modules/common-regobs-api/models/index.ts | 105 +++++++++ .../common-regobs-api/models/kdv-element.ts | 14 ++ .../models/kdv-elements-response-dto.ts | 14 ++ .../models/landslide-edit-model.ts | 30 +++ .../models/landslide-view-model.ts | 37 +++ .../common-regobs-api/models/lang-key.ts | 21 ++ .../models/lat-lng-object.ts | 13 ++ .../common-regobs-api/models/lat-lng.ts | 13 ++ .../common-regobs-api/models/models.ts | 105 +++++++++ .../common-regobs-api/models/my-page-data.ts | 31 +++ .../models/obs-location-edit-model.ts | 18 ++ .../models/obs-location-view-model.ts | 27 +++ .../models/obs-locations-response-dto-v2.ts | 21 ++ .../models/observer-competence-dto.ts | 15 ++ .../models/observer-competence-level-dto.ts | 15 ++ .../models/observer-group-dto.ts | 16 ++ .../models/observer-patch-request-dto.ts | 12 + .../models/observer-response-dto.ts | 15 ++ .../models/observer-view-model.ts | 15 ++ .../common-regobs-api/models/operator.ts | 13 ++ .../common-regobs-api/models/position-dto.ts | 13 ++ .../models/problem-details.ts | 17 ++ .../models/property-filter.ts | 21 ++ .../models/reg-obs-generic-value.ts | 19 ++ .../models/registration-edit-model.ts | 58 +++++ .../models/registration-type-criteria-dto.ts | 13 ++ .../models/registration-type-dto.ts | 16 ++ .../models/registration-type-sub-type-dto.ts | 14 ++ .../models/registration-view-model.ts | 83 +++++++ .../models/registrations-with-attachments.ts | 14 ++ .../models/search-count-response-dto.ts | 12 + .../search-criteria-excl-user-request-dto.ts | 39 ++++ .../models/search-criteria-request-dto.ts | 44 ++++ ...side-bar-dto-observer-competence-levels.ts | 24 ++ .../search-side-bar-dto-registration-types.ts | 24 ++ .../models/search-side-bar-dto.ts | 17 ++ .../models/search-side-bar-request-dto.ts | 18 ++ .../models/snow-cover-obs-view-model.ts | 18 ++ .../models/snow-density-layer-model.ts | 18 ++ .../models/snow-density-model.ts | 16 ++ .../models/snow-profile-edit-model.ts | 21 ++ .../models/snow-profile-view-model.ts | 24 ++ .../models/snow-surface-edit-model.ts | 21 ++ .../models/snow-surface-view-model.ts | 29 +++ .../models/snow-temp-model.ts | 13 ++ .../models/snow-temp-obs-model.ts | 13 ++ .../models/strat-profile-edit-model.ts | 13 ++ .../models/strat-profile-layer-edit-model.ts | 23 ++ .../models/strat-profile-layer-view-model.ts | 29 +++ .../models/strat-profile-view-model.ts | 14 ++ .../common-regobs-api/models/summary.ts | 15 ++ .../models/url-edit-model.ts | 13 ++ .../models/url-view-model.ts | 13 ++ .../common-regobs-api/models/value-kind.ts | 15 ++ .../water-level-measurement-edit-model.ts | 17 ++ .../water-level-measurement-view-model.ts | 17 ++ .../models/water-level-view-model.ts | 18 ++ .../models/waterlevel2-edit-model.ts | 24 ++ .../models/waterlevel2-view-model.ts | 32 +++ .../models/weather-edit-model.ts | 17 ++ .../models/weather-view-model.ts | 19 ++ .../models/within-extent-criteria-dto.ts | 14 ++ .../models/within-radius-criteria-dto.ts | 14 ++ 127 files changed, 2672 insertions(+), 215 deletions(-) create mode 100644 generate-models-index.ts create mode 100644 openapi-templates/index.mustache create mode 100644 openapi-templates/models.mustache create mode 100644 src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts create mode 100644 src/app/modules/common-regobs-api/models/areas-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/attachment-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts create mode 100644 src/app/modules/common-regobs-api/models/attachment-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/compression-test-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/compression-test-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/county-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/create-trip-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/damage-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/danger-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/finish-trip-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/forecast-region-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/general-observation-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/general-observation-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/geo-hazard-types.ts create mode 100644 src/app/modules/common-regobs-api/models/geo-location-info.ts create mode 100644 src/app/modules/common-regobs-api/models/geo-location-summary.ts create mode 100644 src/app/modules/common-regobs-api/models/helptext-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-cover-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/incident-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/incident-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/index.ts create mode 100644 src/app/modules/common-regobs-api/models/kdv-element.ts create mode 100644 src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/landslide-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/landslide-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/lang-key.ts create mode 100644 src/app/modules/common-regobs-api/models/lat-lng-object.ts create mode 100644 src/app/modules/common-regobs-api/models/lat-lng.ts create mode 100644 src/app/modules/common-regobs-api/models/models.ts create mode 100644 src/app/modules/common-regobs-api/models/my-page-data.ts create mode 100644 src/app/modules/common-regobs-api/models/obs-location-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/obs-location-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-competence-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-group-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/observer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/operator.ts create mode 100644 src/app/modules/common-regobs-api/models/position-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/problem-details.ts create mode 100644 src/app/modules/common-regobs-api/models/property-filter.ts create mode 100644 src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts create mode 100644 src/app/modules/common-regobs-api/models/registration-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/registration-type-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/registration-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/registrations-with-attachments.ts create mode 100644 src/app/modules/common-regobs-api/models/search-count-response-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts create mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts create mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-density-layer-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-density-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-profile-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-surface-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-temp-model.ts create mode 100644 src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts create mode 100644 src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/strat-profile-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/summary.ts create mode 100644 src/app/modules/common-regobs-api/models/url-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/url-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/value-kind.ts create mode 100644 src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/water-level-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/weather-edit-model.ts create mode 100644 src/app/modules/common-regobs-api/models/weather-view-model.ts create mode 100644 src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts create mode 100644 src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts diff --git a/generate-models-index.ts b/generate-models-index.ts new file mode 100644 index 000000000..4001728a0 --- /dev/null +++ b/generate-models-index.ts @@ -0,0 +1,18 @@ +//Genererer models/models.ts med eksport av alle genererte modeller +import * as fs from 'fs'; +import * as path from 'path'; + +console.log('Starter generering av models/models.ts med eksport av alle modeller...'); + +const modelsDir = path.join(__dirname, 'src', 'app', 'modules', 'common-regobs-api', 'models'); +const outFile = path.join(modelsDir, 'models.ts'); + +const files = fs + .readdirSync(modelsDir) + .filter((f) => f.endsWith('.ts') && f !== 'index.ts' && f !== 'models.ts') + .map((f) => f.replace(/\.ts$/, '')); + +const content = files.map((f) => `export * from './${f}';`).join('\n') + '\n'; + +fs.writeFileSync(outFile, content); +console.log(outFile + ' oppdatert med', files.length, 'modeller.'); diff --git a/openapi-templates/index.mustache b/openapi-templates/index.mustache new file mode 100644 index 000000000..5c7d845c2 --- /dev/null +++ b/openapi-templates/index.mustache @@ -0,0 +1,8 @@ +{{! Denne trenger vi fordi vi har overstyrt standard mappe for modeller }} +export * from './api/api'; +export * from './models/models'; +export * from './variables'; +export * from './configuration'; +export * from './api.module'; +export * from './provide-api'; +export * from './param'; diff --git a/openapi-templates/licenseInfo.mustache b/openapi-templates/licenseInfo.mustache index c48338e03..7d052af88 100644 --- a/openapi-templates/licenseInfo.mustache +++ b/openapi-templates/licenseInfo.mustache @@ -1,3 +1,4 @@ +{{! Denne trenger vi for å ikke få med byggenummer og commit-ID i header på genererte filer }} /** * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/openapi-templates/modelGeneric.mustache b/openapi-templates/modelGeneric.mustache index 197ce1b3e..fad31d3ea 100644 --- a/openapi-templates/modelGeneric.mustache +++ b/openapi-templates/modelGeneric.mustache @@ -1,3 +1,4 @@ +{{! Denne trenger vi for å overstyre nullable felter i API'et, slik at ikke alle nullable felter i modellene får typen | null i tillegg }} export interface {{classname}}{{#allParents}}{{#-first}} extends {{/-first}}{{{.}}}{{^-last}}, {{/-last}}{{/allParents}} { {{>modelGenericAdditionalProperties}} {{#vars}} {{#description}} @@ -13,6 +14,6 @@ export interface {{classname}}{{#allParents}}{{#-first}} extends {{/-first}}{{{. {{#isReadOnly}} /** Readonly property */ {{/isReadOnly}} - {{name}}{{^required}}?{{/required}}: {{#type}}{{{type}}}{{/type}}{{^type}}unknown{{/type}}{{#nullable}}{{^isPrimitiveType}} | null{{/isPrimitiveType}}{{/nullable}}; + {{name}}{{^required}}?{{/required}}: {{{datatypeWithEnum}}}{{#nullable}}{{^isPrimitiveType}} | null{{/isPrimitiveType}}{{/nullable}}; {{/vars}} }{{>modelGenericEnums}} diff --git a/openapi-templates/models.mustache b/openapi-templates/models.mustache new file mode 100644 index 000000000..52ad28296 --- /dev/null +++ b/openapi-templates/models.mustache @@ -0,0 +1,4 @@ +{{! Denne trenger vi for å generere en models.ts i common-regobs-api/models }} +{{#models}} +export * from './{{modelFilename}}'; +{{/models}} diff --git a/package.json b/package.json index 5b4f857ea..f98974f2d 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "scripts": { "ng": "ng", "generate-swagger-api-module": "ng-swagger-gen -c ng-swagger-gen.json", - "generate-openapi-models": "npx openapi-generator-cli generate --generator-key regobs-client", - "generate-openapi-models-sort": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.pm-script.json sort-model-fields.ts", + "generate-openapi-models": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.npm-script.json generate-models-index.ts", + "generate-openapi-models-sort": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.npm-script.json generate-models-index.ts & ts-node --project tsconfig.npm-script.json sort-model-fields.ts", "start": "ionic serve", "build": "ionic build", "build:prod": "ng build --configuration production", diff --git a/sort-model-fields.ts b/sort-model-fields.ts index 481a47d3e..18e202cf8 100644 --- a/sort-model-fields.ts +++ b/sort-model-fields.ts @@ -1,8 +1,10 @@ -import { Project } from 'ts-morph'; +import { Project, PropertySignature } from 'ts-morph'; import { join } from 'path'; import { readdirSync } from 'fs'; -const modelDir = join(__dirname, '/src/app/modules/common-regobs-api/model'); +console.log(`Starter sortering av felter i modell-typer i alfabetisk rekkefølge...`); + +const modelDir = join(__dirname, '/src/app/modules/common-regobs-api/models'); const files = readdirSync(modelDir).filter((f) => f.endsWith('.ts')); const project = new Project(); @@ -17,18 +19,12 @@ files.forEach((file) => { sourceFile.getInterfaces().forEach((intf) => { // Hent ut alle props og deres JSDoc før du fjerner dem - const props = intf.getProperties().map((p) => { - // Slå sammen alle JSDoc-kommentarer til én, hvis de finnes - const jsDocText = p - .getJsDocs() - .map((d) => d.getText().trim()) - .filter(Boolean) - .join('\n'); + const props = intf.getProperties().map((p: PropertySignature) => { + console.log(`Leser interface ${intf.getName()} i fil ${file}, property ${p.getName()}`); return { name: p.getName(), type: p.getTypeNode()?.getText() ?? 'unknown', hasQuestionToken: p.hasQuestionToken(), - docs: jsDocText ? [jsDocText] : [], }; }); @@ -40,6 +36,9 @@ files.forEach((file) => { // Legg til sorterte properties med JSDoc sorted.forEach((p) => { + console.log( + `Legger til property ${p.name} i alfabetisk rekkefølge til interface ${intf.getName()} i fil ${file}}` + ); intf.addProperty(p); }); }); @@ -47,4 +46,4 @@ files.forEach((file) => { sourceFile.saveSync(); }); -console.log('All model interfaces sorted alphabetically with JSDoc preserved.'); +console.log('Felter i alle modell-typer er sortert alfabetisk. TODO: JSDOC er utelatt pga. tekniske utfordringer'); diff --git a/src/app/modules/common-regobs-api/.openapi-generator/FILES b/src/app/modules/common-regobs-api/.openapi-generator/FILES index c075a80d7..27a4ddde7 100644 --- a/src/app/modules/common-regobs-api/.openapi-generator/FILES +++ b/src/app/modules/common-regobs-api/.openapi-generator/FILES @@ -16,112 +16,112 @@ configuration.ts encoder.ts git_push.sh index.ts -model/areas-dto-forecast-regions.ts -model/areas-dto.ts -model/at-a-glance-view-model.ts -model/attachment-edit-model.ts -model/attachment-view-model-url-formats.ts -model/attachment-view-model.ts -model/avalanche-activity-obs-view-model.ts -model/avalanche-activity-obs2-edit-model.ts -model/avalanche-activity-obs2-view-model.ts -model/avalanche-danger-obs-view-model.ts -model/avalanche-eval-problem-view-model.ts -model/avalanche-eval-problem2-edit-model.ts -model/avalanche-eval-problem2-view-model.ts -model/avalanche-evaluation-view-model.ts -model/avalanche-evaluation2-view-model.ts -model/avalanche-evaluation3-edit-model.ts -model/avalanche-evaluation3-view-model.ts -model/avalanche-obs-edit-model.ts -model/avalanche-obs-view-model.ts -model/compression-test-edit-model.ts -model/compression-test-view-model.ts -model/county-dto.ts -model/create-trip-dto.ts -model/damage-obs-edit-model.ts -model/damage-obs-view-model.ts -model/danger-obs-edit-model.ts -model/danger-obs-view-model.ts -model/finish-trip-dto.ts -model/forecast-region-dto.ts -model/forecast-region-sub-region-dto.ts -model/general-observation-edit-model.ts -model/general-observation-view-model.ts -model/geo-hazard-types.ts -model/geo-location-info.ts -model/geo-location-summary.ts -model/helptext-dto.ts -model/ice-cover-edit-model.ts -model/ice-cover-view-model.ts -model/ice-thickness-edit-model.ts -model/ice-thickness-layer-edit-model.ts -model/ice-thickness-layer-view-model.ts -model/ice-thickness-view-model.ts -model/incident-edit-model.ts -model/incident-view-model.ts -model/kdv-element.ts -model/kdv-elements-response-dto.ts -model/landslide-edit-model.ts -model/landslide-view-model.ts -model/lang-key.ts -model/lat-lng-object.ts -model/lat-lng.ts -model/models.ts -model/my-page-data.ts -model/obs-location-edit-model.ts -model/obs-location-view-model.ts -model/obs-locations-response-dto-v2.ts -model/observer-competence-dto.ts -model/observer-competence-level-dto.ts -model/observer-group-dto.ts -model/observer-patch-request-dto.ts -model/observer-response-dto.ts -model/observer-view-model.ts -model/operator.ts -model/position-dto.ts -model/problem-details.ts -model/property-filter.ts -model/reg-obs-generic-value.ts -model/registration-edit-model.ts -model/registration-type-criteria-dto.ts -model/registration-type-dto.ts -model/registration-type-sub-type-dto.ts -model/registration-view-model.ts -model/registrations-with-attachments.ts -model/search-count-response-dto.ts -model/search-criteria-excl-user-request-dto.ts -model/search-criteria-request-dto.ts -model/search-side-bar-dto-observer-competence-levels.ts -model/search-side-bar-dto-registration-types.ts -model/search-side-bar-dto.ts -model/search-side-bar-request-dto.ts -model/snow-cover-obs-view-model.ts -model/snow-density-layer-model.ts -model/snow-density-model.ts -model/snow-profile-edit-model.ts -model/snow-profile-view-model.ts -model/snow-surface-edit-model.ts -model/snow-surface-view-model.ts -model/snow-temp-model.ts -model/snow-temp-obs-model.ts -model/strat-profile-edit-model.ts -model/strat-profile-layer-edit-model.ts -model/strat-profile-layer-view-model.ts -model/strat-profile-view-model.ts -model/summary.ts -model/url-edit-model.ts -model/url-view-model.ts -model/value-kind.ts -model/water-level-measurement-edit-model.ts -model/water-level-measurement-view-model.ts -model/water-level-view-model.ts -model/waterlevel2-edit-model.ts -model/waterlevel2-view-model.ts -model/weather-edit-model.ts -model/weather-view-model.ts -model/within-extent-criteria-dto.ts -model/within-radius-criteria-dto.ts +models/areas-dto-forecast-regions.ts +models/areas-dto.ts +models/at-a-glance-view-model.ts +models/attachment-edit-model.ts +models/attachment-view-model-url-formats.ts +models/attachment-view-model.ts +models/avalanche-activity-obs-view-model.ts +models/avalanche-activity-obs2-edit-model.ts +models/avalanche-activity-obs2-view-model.ts +models/avalanche-danger-obs-view-model.ts +models/avalanche-eval-problem-view-model.ts +models/avalanche-eval-problem2-edit-model.ts +models/avalanche-eval-problem2-view-model.ts +models/avalanche-evaluation-view-model.ts +models/avalanche-evaluation2-view-model.ts +models/avalanche-evaluation3-edit-model.ts +models/avalanche-evaluation3-view-model.ts +models/avalanche-obs-edit-model.ts +models/avalanche-obs-view-model.ts +models/compression-test-edit-model.ts +models/compression-test-view-model.ts +models/county-dto.ts +models/create-trip-dto.ts +models/damage-obs-edit-model.ts +models/damage-obs-view-model.ts +models/danger-obs-edit-model.ts +models/danger-obs-view-model.ts +models/finish-trip-dto.ts +models/forecast-region-dto.ts +models/forecast-region-sub-region-dto.ts +models/general-observation-edit-model.ts +models/general-observation-view-model.ts +models/geo-hazard-types.ts +models/geo-location-info.ts +models/geo-location-summary.ts +models/helptext-dto.ts +models/ice-cover-edit-model.ts +models/ice-cover-view-model.ts +models/ice-thickness-edit-model.ts +models/ice-thickness-layer-edit-model.ts +models/ice-thickness-layer-view-model.ts +models/ice-thickness-view-model.ts +models/incident-edit-model.ts +models/incident-view-model.ts +models/kdv-element.ts +models/kdv-elements-response-dto.ts +models/landslide-edit-model.ts +models/landslide-view-model.ts +models/lang-key.ts +models/lat-lng-object.ts +models/lat-lng.ts +models/models.ts +models/my-page-data.ts +models/obs-location-edit-model.ts +models/obs-location-view-model.ts +models/obs-locations-response-dto-v2.ts +models/observer-competence-dto.ts +models/observer-competence-level-dto.ts +models/observer-group-dto.ts +models/observer-patch-request-dto.ts +models/observer-response-dto.ts +models/observer-view-model.ts +models/operator.ts +models/position-dto.ts +models/problem-details.ts +models/property-filter.ts +models/reg-obs-generic-value.ts +models/registration-edit-model.ts +models/registration-type-criteria-dto.ts +models/registration-type-dto.ts +models/registration-type-sub-type-dto.ts +models/registration-view-model.ts +models/registrations-with-attachments.ts +models/search-count-response-dto.ts +models/search-criteria-excl-user-request-dto.ts +models/search-criteria-request-dto.ts +models/search-side-bar-dto-observer-competence-levels.ts +models/search-side-bar-dto-registration-types.ts +models/search-side-bar-dto.ts +models/search-side-bar-request-dto.ts +models/snow-cover-obs-view-model.ts +models/snow-density-layer-model.ts +models/snow-density-model.ts +models/snow-profile-edit-model.ts +models/snow-profile-view-model.ts +models/snow-surface-edit-model.ts +models/snow-surface-view-model.ts +models/snow-temp-model.ts +models/snow-temp-obs-model.ts +models/strat-profile-edit-model.ts +models/strat-profile-layer-edit-model.ts +models/strat-profile-layer-view-model.ts +models/strat-profile-view-model.ts +models/summary.ts +models/url-edit-model.ts +models/url-view-model.ts +models/value-kind.ts +models/water-level-measurement-edit-model.ts +models/water-level-measurement-view-model.ts +models/water-level-view-model.ts +models/waterlevel2-edit-model.ts +models/waterlevel2-view-model.ts +models/weather-edit-model.ts +models/weather-view-model.ts +models/within-extent-criteria-dto.ts +models/within-radius-criteria-dto.ts param.ts provide-api.ts variables.ts diff --git a/src/app/modules/common-regobs-api/README.md b/src/app/modules/common-regobs-api/README.md index 3c711d1dc..81ede8f57 100644 --- a/src/app/modules/common-regobs-api/README.md +++ b/src/app/modules/common-regobs-api/README.md @@ -1,6 +1,6 @@ # @ - ## Introduction RegObs is a tool for collecting observations and events
related to natural hazards. It is currently used by the
Norwegian flood, landslide and avalanche warning service in
Norway, but the data is openly available for anyone through this API.
Regobs has been developed by the Norwegian Water resources and
Energy Directorate (NVE), in collaboration with the Norwegian
Meteorological Institute (MET) and the Norwegian Public Roads
Administration (Statens vegvesen).
You can check out our representation of the data at [regobs.no](https://regobs.no).
For more info about the API, please visit the [RegObs page](https://api.nve.no/doc/regobs/) at api.nve.no.
## API lifetime Regobs API is constantly developed, and once in the future we will probably release a new version of the API with breaking changes.
The old version of the API will then be shut down 6 months after the new version is released.
**You should already monitor the \'[Sunset](https://www.rfc-editor.org/rfc/rfc8594.html)\' header in the API response.**
It will contain a shutdown date for current API when the new version is released.
## Authentication Some endpoints require a client ID used to fetch an authentication token.
This is primarily endpoints submitting data or fetching private data.
You can get a client ID by sending an email to
[regobs@nve.no](mailto:regobs@nve.no?subject=RegObs%20Client%20ID).
You must then fetch a token as outlined in
[NVE Account Authentication](https://api.nve.no/doc/nve-account-authentication/).
This is not necessary for simpler API queries, such as searching for observations.
To get a token with the swagger ui, log in by clicking on the green authorize button.
The `regObs_apptoken` header is a deprecated
form of client identification and is not necessary.
## Client library To simplify interaction with the API we are working on a
Python client library. Currently it supports submitting data
as well as searching. It is available at
[https://pypi.org/project/regobslib/](https://pypi.org/project/regobslib/).
## Data Types In order to find information on Regobs data types use the
GET/KDVElements method. KDVElements are used for describing an observation. If we look up GeoHazard in the response we get:
``` GeoHazardKDV: [ { Id: 0, Name: Not specified, Description: null }, { Id: 10, Name: Snow, Description: Avalanche }, { Id: 20, Name: Soil, Description: Earth slide }, ] ``` The GeoHazardTID of 10 corresponds to snow. The GeoHazardTID of 20 corresponds to soil and so on. Note that the naming of data types in the API ends with TID while the GET/KDVElements service returns data types with KDV. Otherwise the naming should be identical. ## Example Get the last 10 observations using python: ```python import requests r = requests.post(\'https://api.regobs.no/v6/Search\', data={\'NumberOfRecords\': 10}, headers={\'Content-Type\': \'application/json\'} ) data = r.json() print(len(data)) # 10 ``` + ## Introduction RegObs is a tool for collecting observations and events
related to natural hazards. It is currently used by the
Norwegian flood, landslide and avalanche warning service in
Norway, but the data is openly available for anyone through this API.
Regobs has been developed by the Norwegian Water resources and
Energy Directorate (NVE), in collaboration with the Norwegian
Meteorological Institute (MET) and the Norwegian Public Roads
Administration (Statens vegvesen).
You can check out our representation of the data at [regobs.no](https://regobs.no).
For more info about the API, please visit the [RegObs page](https://api.nve.no/doc/regobs/) at api.nve.no.
## API lifetime Regobs API is constantly developed, and once in the future we will probably release a new version of the API with breaking changes.
The old version of the API will then be shut down 6 months after the new version is released.
**You should already monitor the \'[Sunset](https://www.rfc-editor.org/rfc/rfc8594.html)\' header in the API response.**
It will contain a shutdown date for current API when the new version is released.
## Authentication Some endpoints require a client ID used to fetch an authentication token.
This is primarily endpoints submitting data or fetching private data.
You can get a client ID by sending an email to
[regobs@nve.no](mailto:regobs@nve.no?subject=RegObs%20Client%20ID).
You must then fetch a token as outlined in
[NVE Account Authentication](https://api.nve.no/doc/nve-account-authentication/).
This is not necessary for simpler API queries, such as searching for observations.
To get a token with the swagger ui, log in by clicking on the green authorize button.
The `regObs_apptoken` header is a deprecated
form of client identification and is not necessary.
## Client library To simplify interaction with the API we are working on a
Python client library. Currently it supports submitting data
as well as searching. It is available at
[https://pypi.org/project/regobslib/](https://pypi.org/project/regobslib/).
## Data Types In order to find information on Regobs data types use the
GET/KDVElements method. KDVElements are used for describing an observation. If we look up GeoHazard in the response we get:
``` GeoHazardKDV: [ { Id: 0, Name: Not specified, Description: null }, { Id: 10, Name: Snow, Description: Avalanche }, { Id: 20, Name: Soil, Description: Earth slide }, ] ``` The GeoHazardTID of 10 corresponds to snow. The GeoHazardTID of 20 corresponds to soil and so on. Note that the naming of data types in the API ends with TID while the GET/KDVElements service returns data types with KDV. Otherwise the naming should be identical. ## Example Get the last 10 observations using python: ```python import requests r = requests.post(\'https://api.regobs.no/v6/Search\', data={\'NumberOfRecords\': 10}, headers={\'Content-Type\': \'application/json\'} ) data = r.json() print(len(data)) # 10 ``` The version of the OpenAPI document: v6 diff --git a/src/app/modules/common-regobs-api/api.base.service.ts b/src/app/modules/common-regobs-api/api.base.service.ts index e4b3d760f..76f2d3c50 100644 --- a/src/app/modules/common-regobs-api/api.base.service.ts +++ b/src/app/modules/common-regobs-api/api.base.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; import { CustomHttpParameterCodec } from './encoder'; import { Configuration } from './configuration'; diff --git a/src/app/modules/common-regobs-api/api/account.service.ts b/src/app/modules/common-regobs-api/api/account.service.ts index 47ec2cf5e..ead503c23 100644 --- a/src/app/modules/common-regobs-api/api/account.service.ts +++ b/src/app/modules/common-regobs-api/api/account.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,17 +14,17 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { LangKey } from '../model/lang-key'; +import { LangKey } from '../models/lang-key'; // @ts-ignore -import { MyPageData } from '../model/my-page-data'; +import { MyPageData } from '../models/my-page-data'; // @ts-ignore -import { ObserverGroupDto } from '../model/observer-group-dto'; +import { ObserverGroupDto } from '../models/observer-group-dto'; // @ts-ignore -import { ObserverPatchRequestDto } from '../model/observer-patch-request-dto'; +import { ObserverPatchRequestDto } from '../models/observer-patch-request-dto'; // @ts-ignore -import { ObserverResponseDto } from '../model/observer-response-dto'; +import { ObserverResponseDto } from '../models/observer-response-dto'; // @ts-ignore -import { ProblemDetails } from '../model/problem-details'; +import { ProblemDetails } from '../models/problem-details'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; diff --git a/src/app/modules/common-regobs-api/api/attachment.service.ts b/src/app/modules/common-regobs-api/api/attachment.service.ts index 9a6991ade..3a74a7d30 100644 --- a/src/app/modules/common-regobs-api/api/attachment.service.ts +++ b/src/app/modules/common-regobs-api/api/attachment.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; diff --git a/src/app/modules/common-regobs-api/api/geo-code.service.ts b/src/app/modules/common-regobs-api/api/geo-code.service.ts index 60eeeb620..5470db33d 100644 --- a/src/app/modules/common-regobs-api/api/geo-code.service.ts +++ b/src/app/modules/common-regobs-api/api/geo-code.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,11 +14,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { GeoLocationInfo } from '../model/geo-location-info'; +import { GeoLocationInfo } from '../models/geo-location-info'; // @ts-ignore -import { GeoLocationSummary } from '../model/geo-location-summary'; +import { GeoLocationSummary } from '../models/geo-location-summary'; // @ts-ignore -import { LangKey } from '../model/lang-key'; +import { LangKey } from '../models/lang-key'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; diff --git a/src/app/modules/common-regobs-api/api/helptext.service.ts b/src/app/modules/common-regobs-api/api/helptext.service.ts index 2d3b22ff2..99dbac381 100644 --- a/src/app/modules/common-regobs-api/api/helptext.service.ts +++ b/src/app/modules/common-regobs-api/api/helptext.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,7 +14,7 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { HelptextDto } from '../model/helptext-dto'; +import { HelptextDto } from '../models/helptext-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; diff --git a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts index 77ec9c11c..4b4de12e0 100644 --- a/src/app/modules/common-regobs-api/api/kdv-elements.service.ts +++ b/src/app/modules/common-regobs-api/api/kdv-elements.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,9 +14,9 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { KdvElementsResponseDto } from '../model/kdv-elements-response-dto'; +import { KdvElementsResponseDto } from '../models/kdv-elements-response-dto'; // @ts-ignore -import { LangKey } from '../model/lang-key'; +import { LangKey } from '../models/lang-key'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -47,7 +44,7 @@ export class KdvElementsService extends BaseService { } /** - * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). + * Returns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exist). * @endpoint get /KdvElements * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/location.service.ts b/src/app/modules/common-regobs-api/api/location.service.ts index 8b88800cb..2cc73ee21 100644 --- a/src/app/modules/common-regobs-api/api/location.service.ts +++ b/src/app/modules/common-regobs-api/api/location.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,9 +14,9 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { LangKey } from '../model/lang-key'; +import { LangKey } from '../models/lang-key'; // @ts-ignore -import { ObsLocationsResponseDtoV2 } from '../model/obs-locations-response-dto-v2'; +import { ObsLocationsResponseDtoV2 } from '../models/obs-locations-response-dto-v2'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -120,7 +117,7 @@ export class LocationService extends BaseService { } /** - * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. + * Returns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user\'s private locations. Empty list if no registrations found. * @endpoint get /Location/WithinRadius * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/registration.service.ts b/src/app/modules/common-regobs-api/api/registration.service.ts index 48d3420a3..e64fed766 100644 --- a/src/app/modules/common-regobs-api/api/registration.service.ts +++ b/src/app/modules/common-regobs-api/api/registration.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,11 +14,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { LangKey } from '../model/lang-key'; +import { LangKey } from '../models/lang-key'; // @ts-ignore -import { RegistrationEditModel } from '../model/registration-edit-model'; +import { RegistrationEditModel } from '../models/registration-edit-model'; // @ts-ignore -import { RegistrationViewModel } from '../model/registration-view-model'; +import { RegistrationViewModel } from '../models/registration-view-model'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -230,7 +227,7 @@ export class RegistrationService extends BaseService { /** * Get a registration in CAAML format - * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. + * CAAML (Canadian Avalanche Association Markup Language) is a standard for the electronic representation of information pertinent to avalanche safety operations. See http://caaml.org/. * @endpoint get /Registration/Caaml/{regId} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -293,7 +290,7 @@ export class RegistrationService extends BaseService { /** * Create a new registration. The purpose is to send in one or more forms. - * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } + * Example critera for creating a new registration with one form. { \"GeoHazardTID\": 20, \"DtObsTime\": \"2021-06-25T13:18:00.000Z\", \"ObsLocation\": { \"Latitude\": 60.919917123811992, \"Longitude\": 7.210167614875667, }, \"LandSlideObs\": { \"LandSlideTID\": 2, \"LandSlideTriggerTID\": 0, \"LandSlideSizeTID\": 0, \"Comment\": \"Flomskred på FV5627 løsnet fra vegskjæring 0-50m. Anslått skredvolum på veg: mindre enn 10m^3.Blokkert veglengde: Kun i grøft.\", \"GeoHazardTID\": 20, \"ActivityInfluencedTID\": 220, \"ForecastAccurateTID\": 0, \"DamageExtentTID\": 0, \"DtLandSlideTime\": \"2021-06-25T08:10:00+02:00\", } } * @endpoint post /Registration * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -375,7 +372,7 @@ export class RegistrationService extends BaseService { } /** - * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. + * Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don\'t get any error message. * @endpoint put /Registration/{id} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/search.service.ts b/src/app/modules/common-regobs-api/api/search.service.ts index 8e0a1bb0e..edaca91a0 100644 --- a/src/app/modules/common-regobs-api/api/search.service.ts +++ b/src/app/modules/common-regobs-api/api/search.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,23 +14,23 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { AtAGlanceViewModel } from '../model/at-a-glance-view-model'; +import { AtAGlanceViewModel } from '../models/at-a-glance-view-model'; // @ts-ignore -import { ProblemDetails } from '../model/problem-details'; +import { ProblemDetails } from '../models/problem-details'; // @ts-ignore -import { RegistrationViewModel } from '../model/registration-view-model'; +import { RegistrationViewModel } from '../models/registration-view-model'; // @ts-ignore -import { RegistrationsWithAttachments } from '../model/registrations-with-attachments'; +import { RegistrationsWithAttachments } from '../models/registrations-with-attachments'; // @ts-ignore -import { SearchCountResponseDto } from '../model/search-count-response-dto'; +import { SearchCountResponseDto } from '../models/search-count-response-dto'; // @ts-ignore -import { SearchCriteriaExclUserRequestDto } from '../model/search-criteria-excl-user-request-dto'; +import { SearchCriteriaExclUserRequestDto } from '../models/search-criteria-excl-user-request-dto'; // @ts-ignore -import { SearchCriteriaRequestDto } from '../model/search-criteria-request-dto'; +import { SearchCriteriaRequestDto } from '../models/search-criteria-request-dto'; // @ts-ignore -import { SearchSideBarDto } from '../model/search-side-bar-dto'; +import { SearchSideBarDto } from '../models/search-side-bar-dto'; // @ts-ignore -import { SearchSideBarRequestDto } from '../model/search-side-bar-request-dto'; +import { SearchSideBarRequestDto } from '../models/search-side-bar-request-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -74,7 +71,7 @@ export interface SearchGetSearchCriteriaRequestParams { } export interface SearchSearchRequestParams { - /** Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. */ + /** Use this to filter out registrations and change ordering of them. The attribute \"ObserverGuid\" is deprecated and will be removed in the future. */ searchCriteriaRequestDto?: SearchCriteriaRequestDto; } @@ -104,7 +101,7 @@ export class SearchService extends BaseService { } /** - * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info + * Simplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info * @endpoint post /Search/AtAGlance * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -396,7 +393,7 @@ export class SearchService extends BaseService { } /** - * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. + * Returns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. * @endpoint post /Search/DeletedRegistrations * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -469,7 +466,7 @@ export class SearchService extends BaseService { } /** - * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint get /Search/SearchCriteria/{geoHazards}/{langKey} * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -537,8 +534,8 @@ export class SearchService extends BaseService { } /** - * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. - * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * Returns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -611,7 +608,7 @@ export class SearchService extends BaseService { } /** - * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. + * Please use GET /Search/SearchCriteria instead. Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods. * @endpoint post /Search/SearchCriteria * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -758,8 +755,8 @@ export class SearchService extends BaseService { } /** - * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. - * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` + * Returns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. + * Example critera for returning the 10 newest registrations: ``` { \"NumberOfRecords\": 10 } ``` * @endpoint post /Search/MyRegistrations * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/modules/common-regobs-api/api/trip.service.ts b/src/app/modules/common-regobs-api/api/trip.service.ts index 56029d41e..c9da30372 100644 --- a/src/app/modules/common-regobs-api/api/trip.service.ts +++ b/src/app/modules/common-regobs-api/api/trip.service.ts @@ -1,12 +1,9 @@ /** - * RegObs API, build: Local build - commit: b86cb26d - * - * Contact: regobs@nve.no - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; @@ -17,9 +14,9 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateTripDto } from '../model/create-trip-dto'; +import { CreateTripDto } from '../models/create-trip-dto'; // @ts-ignore -import { FinishTripDto } from '../model/finish-trip-dto'; +import { FinishTripDto } from '../models/finish-trip-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -115,7 +112,7 @@ export class TripService extends BaseService { } /** - * Fetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group. + * Fetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group. * @endpoint get /Trip/ObserverTrips * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. diff --git a/src/app/modules/common-regobs-api/index.ts b/src/app/modules/common-regobs-api/index.ts index 02cb7d437..f70b6da94 100644 --- a/src/app/modules/common-regobs-api/index.ts +++ b/src/app/modules/common-regobs-api/index.ts @@ -1,5 +1,5 @@ export * from './api/api'; -export * from './model/models'; +export * from './models/models'; export * from './variables'; export * from './configuration'; export * from './api.module'; diff --git a/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts new file mode 100644 index 000000000..11ead3dd1 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ForecastRegionDto } from './forecast-region-dto'; + + +export interface AreasDtoForecastRegions { + Avalanche?: Array; + Drought?: Array; + EarthFlow?: Array; + EventOnGlacier?: Array; + Flooding?: Array; + Ice?: Array; + IceFall?: Array; + Jokulhaup?: Array; + LandSlide?: Array; + NotSpecified?: Array; + RockFall?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/areas-dto.ts b/src/app/modules/common-regobs-api/models/areas-dto.ts new file mode 100644 index 000000000..a7dc323a1 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/areas-dto.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AreasDtoForecastRegions } from './areas-dto-forecast-regions'; +import { CountyDto } from './county-dto'; + + +export interface AreasDto { + Counties?: Array; + CountryDescription?: string; + CountryId: number; + CountryName?: string; + ForecastRegions?: AreasDtoForecastRegions; + SortOrder: number; +} + diff --git a/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts new file mode 100644 index 000000000..cc21e9008 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AtAGlanceViewModel { + AttachmentsCount?: number; + CompetenceLevelTID?: number; + DtObsTime: string; + FirstAttachmentUrl?: string; + FormNames?: Array; + GeoHazardTID?: number; + Latitude: number; + Longitude: number; + NickName?: string; + RegId: number; + Title?: string; + UtmEast: number; + UtmNorth: number; +} + diff --git a/src/app/modules/common-regobs-api/models/attachment-edit-model.ts b/src/app/modules/common-regobs-api/models/attachment-edit-model.ts new file mode 100644 index 000000000..2d364326d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/attachment-edit-model.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AttachmentEditModel { + Aspect?: number; + AttachmentId?: number; + AttachmentMimeType?: string; + AttachmentUploadId?: string; + Comment?: string; + Copyright?: string; + GeoHazardTID?: number; + IsMainAttachment?: boolean; + Photographer?: string; + RegistrationTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts new file mode 100644 index 000000000..425503f9a --- /dev/null +++ b/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Urls in different formats + */ +export interface AttachmentViewModelUrlFormats { + Large?: string; + Medium?: string; + Original?: string; + Raw?: string; + Thumbnail?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/attachment-view-model.ts b/src/app/modules/common-regobs-api/models/attachment-view-model.ts new file mode 100644 index 000000000..f715418d1 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/attachment-view-model.ts @@ -0,0 +1,26 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AttachmentViewModelUrlFormats } from './attachment-view-model-url-formats'; + + +export interface AttachmentViewModel { + Aspect?: number; + AttachmentId?: number; + AttachmentMimeType?: string; + Comment?: string; + Copyright?: string; + GeoHazardName?: string; + GeoHazardTID?: number; + IsMainAttachment?: boolean; + IsSnowProfilePlot: boolean; + Photographer?: string; + RegistrationName?: string; + RegistrationTID?: number; + Url?: string; + UrlFormats?: AttachmentViewModelUrlFormats; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts new file mode 100644 index 000000000..0d8173352 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts @@ -0,0 +1,29 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheActivityObsViewModel { + Aspect: number; + AvalancheActivityObsID: number; + AvalancheName?: string; + AvalancheTID?: number; + AvalancheTriggerName?: string; + AvalancheTriggerTID?: number; + Comment?: string; + DestructiveSizeName?: string; + DestructiveSizeTID?: number; + DtAvalancheTime: string; + DtOffAvalancheTime: string; + EstimatedNumName?: string; + EstimatedNumTID?: number; + HeigthStartZone: number; + SnowLine?: number; + SnowLineName?: string; + TerrainStartZoneName?: string; + TerrainStartZoneTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts new file mode 100644 index 000000000..0fe9a74ab --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheActivityObs2EditModel { + AvalancheExtTID?: number; + AvalCauseTID?: number; + AvalPropagationTID?: number; + AvalTriggerSimpleTID?: number; + Comment?: string; + DestructiveSizeTID?: number; + DtEnd?: string; + DtStart?: string; + EstimatedNumTID?: number; + ExposedHeight1?: number; + ExposedHeight2?: number; + ExposedHeightComboTID?: number; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts new file mode 100644 index 000000000..17d4b91c1 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts @@ -0,0 +1,31 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheActivityObs2ViewModel { + AvalancheExtName?: string; + AvalancheExtTID?: number; + AvalCauseName?: string; + AvalCauseTID?: number; + AvalPropagationName?: string; + AvalPropagationTID?: number; + AvalTriggerSimpleName?: string; + AvalTriggerSimpleTID?: number; + Comment?: string; + DestructiveSizeName?: string; + DestructiveSizeTID?: number; + DtEnd?: string; + DtStart?: string; + EstimatedNumName?: string; + EstimatedNumTID?: number; + ExposedHeight1?: number; + ExposedHeight2?: number; + ExposedHeightComboName?: string; + ExposedHeightComboTID?: number; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts new file mode 100644 index 000000000..7ddef5d10 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheDangerObsViewModel { + AvalancheDangerObsID: number; + Comment?: string; + DangerSignName?: string; + DangerSignTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts new file mode 100644 index 000000000..a12233e69 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts @@ -0,0 +1,29 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvalProblemViewModel { + AvalancheEvalProblemID: number; + AvalancheExtName?: string; + AvalancheExtTID?: number; + AvalancheProbabilityAutoText?: string; + AvalancheProblemAutoText?: string; + AvalCauseExtName?: string; + AvalCauseExtTID?: number; + AvalCauseName?: string; + AvalCauseTID?: number; + AvalProbabilityName?: string; + AvalProbabilityTID?: number; + AvalReleaseHeightName?: string; + AvalReleaseHeightTID?: number; + AvalTriggerSimpleName?: string; + AvalTriggerSimpleTID?: number; + Comment?: string; + DestructiveSizeExtName?: string; + DestructiveSizeExtTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts new file mode 100644 index 000000000..bbe9e2e1f --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts @@ -0,0 +1,27 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvalProblem2EditModel { + AvalancheExtTID?: number; + AvalCauseAttributeCrystalTID: number; + AvalCauseAttributeLightTID: number; + AvalCauseAttributeSoftTID: number; + AvalCauseAttributeThinTID: number; + AvalCauseDepthTID?: number; + AvalCauseTID?: number; + AvalProbabilityTID?: number; + AvalPropagationTID?: number; + AvalTriggerSimpleTID?: number; + Comment?: string; + DestructiveSizeTID?: number; + ExposedHeight1?: number; + ExposedHeight2?: number; + ExposedHeightComboTID?: number; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts new file mode 100644 index 000000000..46bd7302e --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts @@ -0,0 +1,39 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvalProblem2ViewModel { + AvalancheExtName?: string; + AvalancheExtTID?: number; + AvalCauseAttributeCrystalName?: string; + AvalCauseAttributeCrystalTID: number; + AvalCauseAttributeLightName?: string; + AvalCauseAttributeLightTID: number; + AvalCauseAttributeSoftName?: string; + AvalCauseAttributeSoftTID: number; + AvalCauseAttributeThinName?: string; + AvalCauseAttributeThinTID: number; + AvalCauseDepthName?: string; + AvalCauseDepthTID?: number; + AvalCauseName?: string; + AvalCauseTID?: number; + AvalProbabilityName?: string; + AvalProbabilityTID?: number; + AvalPropagationName?: string; + AvalPropagationTID?: number; + AvalTriggerSimpleName?: string; + AvalTriggerSimpleTID?: number; + Comment?: string; + DestructiveSizeName?: string; + DestructiveSizeTID?: number; + ExposedHeight1?: number; + ExposedHeight2?: number; + ExposedHeightComboName?: string; + ExposedHeightComboTID?: number; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts new file mode 100644 index 000000000..996575426 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts @@ -0,0 +1,27 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvaluationViewModel { + AvalancheDangerName?: string; + AvalancheDangerTID: number; + AvalancheEvaluation1?: string; + AvalancheProblemName1?: string; + AvalancheProblemName2?: string; + AvalancheProblemName3?: string; + AvalancheProblemTID1?: number; + AvalancheProblemTID2?: number; + AvalancheProblemTID3?: number; + CanPublish: boolean; + Comment?: string; + RegID: number; + ValidExposition?: string; + ValidHeightFrom?: number; + ValidHeightRelative?: string; + ValidHeigtTo?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts new file mode 100644 index 000000000..f19c397c8 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts @@ -0,0 +1,25 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; + + +export interface AvalancheEvaluation2ViewModel { + AvalancheDangerName?: string; + AvalancheDangerTID?: number; + AvalancheDevelopment?: string; + AvalancheEvalProblems?: Array; + AvalancheEvaluation?: string; + Comment?: string; + ExposedClimateName?: string; + ExposedClimateTID?: number; + ExposedHeight1?: number; + ExposedHeight2?: number; + ExposedHeightComboName?: string; + ExposedHeightComboTID?: number; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts new file mode 100644 index 000000000..42e34d539 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts @@ -0,0 +1,16 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvaluation3EditModel { + AvalancheDangerTID?: number; + AvalancheDevelopment?: string; + AvalancheEvaluation?: string; + ForecastComment?: string; + ForecastCorrectTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts new file mode 100644 index 000000000..d69b2e0c9 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheEvaluation3ViewModel { + AvalancheDangerName?: string; + AvalancheDangerTID?: number; + AvalancheDevelopment?: string; + AvalancheEvaluation?: string; + ForecastComment?: string; + ForecastCorrectName?: string; + ForecastCorrectTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts new file mode 100644 index 000000000..e9d428293 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts @@ -0,0 +1,35 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheObsEditModel { + Aspect?: number; + AvalancheTID?: number; + AvalancheTriggerTID?: number; + AvalCauseTID?: number; + Comment?: string; + DestructiveSizeTID?: number; + DtAvalancheTime: string; + DtEarliestAvalancheTime?: string; + Extent?: Array>; + FractureHeight?: number; + FractureWidth?: number; + HeightStartZone?: number; + HeightStopZone?: number; + RemotelyTriggered?: boolean; + SnowLine?: number; + StartExtent?: Array>; + StartLat?: number; + StartLong?: number; + StopExtent?: Array>; + StopLat?: number; + StopLong?: number; + TerrainStartZoneTID?: number; + Trajectory?: string; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts new file mode 100644 index 000000000..f693d4f2c --- /dev/null +++ b/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts @@ -0,0 +1,40 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface AvalancheObsViewModel { + Aspect?: number; + AvalancheName?: string; + AvalancheTID?: number; + AvalancheTriggerName?: string; + AvalancheTriggerTID?: number; + AvalCauseName?: string; + AvalCauseTID?: number; + Comment?: string; + DestructiveSizeName?: string; + DestructiveSizeTID?: number; + DtAvalancheTime: string; + DtEarliestAvalancheTime?: string; + Extent?: Array>; + FractureHeight?: number; + FractureWidth?: number; + HeightStartZone?: number; + HeightStopZone?: number; + RemotelyTriggered?: boolean; + SnowLine?: number; + StartExtent?: Array>; + StartLat?: number; + StartLong?: number; + StopExtent?: Array>; + StopLat?: number; + StopLong?: number; + TerrainStartZoneName?: string; + TerrainStartZoneTID?: number; + Trajectory?: string; + ValidExposition?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts new file mode 100644 index 000000000..1e80e60c8 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts @@ -0,0 +1,23 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface CompressionTestEditModel { + Comment?: string; + CompressionTestTID?: number; + ComprTestFractureTID?: number; + FractureDepth?: number; + IncludeInSnowProfile?: boolean; + PropagationTID?: number; + PstX?: number; + PstY?: number; + RbRelease?: number; + StabilityEvalTID?: number; + TapsFracture?: number; + TapsFullPropagation?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/compression-test-view-model.ts b/src/app/modules/common-regobs-api/models/compression-test-view-model.ts new file mode 100644 index 000000000..b70ce850e --- /dev/null +++ b/src/app/modules/common-regobs-api/models/compression-test-view-model.ts @@ -0,0 +1,27 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface CompressionTestViewModel { + Comment?: string; + CompressionTestName?: string; + CompressionTestTID?: number; + ComprTestFractureName?: string; + ComprTestFractureTID?: number; + FractureDepth?: number; + IncludeInSnowProfile?: boolean; + PropagationName?: string; + PropagationTID?: number; + PstX?: number; + PstY?: number; + RbRelease?: number; + StabilityEvalName?: string; + StabilityEvalTID?: number; + TapsFracture?: number; + TapsFullPropagation?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/county-dto.ts b/src/app/modules/common-regobs-api/models/county-dto.ts new file mode 100644 index 000000000..663ac4902 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/county-dto.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface CountyDto { + CountyNo?: string; + Name?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/create-trip-dto.ts b/src/app/modules/common-regobs-api/models/create-trip-dto.ts new file mode 100644 index 000000000..a11efef2e --- /dev/null +++ b/src/app/modules/common-regobs-api/models/create-trip-dto.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface CreateTripDto { + Comment?: string; + DeviceGuid: string; + GeoHazardID: number; + Lat?: string; + Lng?: string; + ObservationExpectedMinutes: number; + TripTypeID: number; +} + diff --git a/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts new file mode 100644 index 000000000..c25c216e6 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { LatLng } from './lat-lng'; +import { AttachmentEditModel } from './attachment-edit-model'; + + +export interface DamageObsEditModel { + Attachments?: Array; + Comment?: string; + DamagePosition?: LatLng; + DamageTypeTID: number; + GeoHazardTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts new file mode 100644 index 000000000..21360b6a6 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts @@ -0,0 +1,20 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AttachmentViewModel } from './attachment-view-model'; +import { LatLng } from './lat-lng'; + + +export interface DamageObsViewModel { + Attachments?: Array; + Comment?: string; + DamagePosition?: LatLng; + DamageTypeName?: string; + DamageTypeTID: number; + GeoHazardName?: string; + GeoHazardTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts new file mode 100644 index 000000000..9af9cdaef --- /dev/null +++ b/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface DangerObsEditModel { + Comment?: string; + DangerSignTID?: number; + GeoHazardTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts new file mode 100644 index 000000000..e8991d929 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts @@ -0,0 +1,16 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface DangerObsViewModel { + Comment?: string; + DangerSignName?: string; + DangerSignTID?: number; + GeoHazardName?: string; + GeoHazardTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/finish-trip-dto.ts b/src/app/modules/common-regobs-api/models/finish-trip-dto.ts new file mode 100644 index 000000000..fc4e13194 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/finish-trip-dto.ts @@ -0,0 +1,12 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface FinishTripDto { + DeviceGuid: string; +} + diff --git a/src/app/modules/common-regobs-api/models/forecast-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-dto.ts new file mode 100644 index 000000000..c7abb40d0 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/forecast-region-dto.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; + + +export interface ForecastRegionDto { + Id: number; + IsRegionForGrouping: boolean; + SortOrder: number; + SubRegions?: Array; + Text?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts new file mode 100644 index 000000000..cd51f6df0 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ForecastRegionSubRegionDto { + Id: number; + RegionType?: string; + SortOrder: number; + Text?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts new file mode 100644 index 000000000..a3bb9bf80 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlEditModel } from './url-edit-model'; + + +export interface GeneralObservationEditModel { + Comment?: string; + GeoHazardTID?: number; + ObsComment?: string; + ObsHeader?: string; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/general-observation-view-model.ts b/src/app/modules/common-regobs-api/models/general-observation-view-model.ts new file mode 100644 index 000000000..e3a5a3f1f --- /dev/null +++ b/src/app/modules/common-regobs-api/models/general-observation-view-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlViewModel } from './url-view-model'; + + +export interface GeneralObservationViewModel { + Comment?: string; + GeoHazardName?: string; + GeoHazardTID?: number; + ObsComment?: string; + ObsHeader?: string; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/geo-hazard-types.ts b/src/app/modules/common-regobs-api/models/geo-hazard-types.ts new file mode 100644 index 000000000..dcb73487d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/geo-hazard-types.ts @@ -0,0 +1,27 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * NotSpecified = 0, Avalanche = 10, EarthFlow = 20, LandSlide = 30, RockFall = 40, IceFall = 50, Flooding = 60, Ice = 70, EventOnGlacier = 100, Jøkulhaup = 110, Drought = 200, Unknown = 999 + */ +export const GeoHazardTypes = { + NUMBER_0: 0, + NUMBER_10: 10, + NUMBER_20: 20, + NUMBER_30: 30, + NUMBER_40: 40, + NUMBER_50: 50, + NUMBER_60: 60, + NUMBER_70: 70, + NUMBER_100: 100, + NUMBER_110: 110, + NUMBER_200: 200, + NUMBER_999: 999 +} as const; +export type GeoHazardTypes = typeof GeoHazardTypes[keyof typeof GeoHazardTypes]; + diff --git a/src/app/modules/common-regobs-api/models/geo-location-info.ts b/src/app/modules/common-regobs-api/models/geo-location-info.ts new file mode 100644 index 000000000..608b0eb2d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/geo-location-info.ts @@ -0,0 +1,22 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface GeoLocationInfo { + AdminAreaId?: string; + AdminAreaName?: string; + Country?: string; + CountryCode?: string; + Masl?: number; + Municipality?: string; + MunicipalityId?: string; + Name?: string; + Steepness?: number; + WarningRegionId?: string; + WarningRegionName?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/geo-location-summary.ts b/src/app/modules/common-regobs-api/models/geo-location-summary.ts new file mode 100644 index 000000000..63ca13abf --- /dev/null +++ b/src/app/modules/common-regobs-api/models/geo-location-summary.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface GeoLocationSummary { + Header?: string; + Lines?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/helptext-dto.ts b/src/app/modules/common-regobs-api/models/helptext-dto.ts new file mode 100644 index 000000000..6ddee0270 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/helptext-dto.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface HelptextDto { + GeoHazardTID: number; + LangKey: number; + RegistrationTID: number; + Text?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts new file mode 100644 index 000000000..aa360d939 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlEditModel } from './url-edit-model'; + + +export interface IceCoverEditModel { + Comment?: string; + IceCapacityTID?: number; + IceCoverAfterTID?: number; + IceCoverBeforeTID?: number; + IceCoverTID?: number; + IceSkateabilityTID?: number; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts new file mode 100644 index 000000000..ce3b930ab --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlViewModel } from './url-view-model'; + + +export interface IceCoverViewModel { + Comment?: string; + IceCapacityName?: string; + IceCapacityTID?: number; + IceCoverAfterName?: string; + IceCoverAfterTID?: number; + IceCoverBeforeName?: string; + IceCoverBeforeTID?: number; + IceCoverName?: string; + IceCoverTID?: number; + IceSkateabilityName?: string; + IceSkateabilityTID?: number; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts new file mode 100644 index 000000000..a8ebed0a8 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { IceThicknessLayerEditModel } from './ice-thickness-layer-edit-model'; + + +export interface IceThicknessEditModel { + Comment?: string; + IceHeightAfter?: number; + IceHeightBefore?: number; + IceThicknessLayers?: Array; + IceThicknessSum?: number; + SlushSnow?: number; + SnowDepth?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts new file mode 100644 index 000000000..bd4b4a255 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface IceThicknessLayerEditModel { + Comment?: string; + IceLayerThickness?: number; + IceLayerTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts new file mode 100644 index 000000000..d1bef8386 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface IceThicknessLayerViewModel { + Comment?: string; + IceLayerName?: string; + IceLayerThickness?: number; + IceLayerTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts new file mode 100644 index 000000000..9580968f4 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { IceThicknessLayerViewModel } from './ice-thickness-layer-view-model'; + + +export interface IceThicknessViewModel { + Comment?: string; + IceHeightAfter?: number; + IceHeightBefore?: number; + IceThicknessLayers?: Array; + IceThicknessSum?: number; + SlushSnow?: number; + SnowDepth?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/incident-edit-model.ts b/src/app/modules/common-regobs-api/models/incident-edit-model.ts new file mode 100644 index 000000000..1d371f667 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/incident-edit-model.ts @@ -0,0 +1,34 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlEditModel } from './url-edit-model'; + + +export interface IncidentEditModel { + ActivityInfluencedTID?: number; + CasualtiesNum?: number; + Comment?: string; + DamageExtentTID?: number; + DeadNum?: number; + DtEndTime?: string; + EvacuatedNum?: number; + ForecastAccurateTID?: number; + GeoHazardTID?: number; + HarmedNum?: number; + IncidentHeader?: string; + IncidentIngress?: string; + IncidentText?: string; + IncidentURLs?: Array; + InvolvedNum?: number; + LocalKnowledgeTID?: number; + LocalTouristTID?: number; + MaterialDamages?: boolean; + RescueTID?: number; + SafetyGearTID?: number; + SlopeActivityTID?: number; + TrafficObstructed?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/models/incident-view-model.ts b/src/app/modules/common-regobs-api/models/incident-view-model.ts new file mode 100644 index 000000000..686ca0223 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/incident-view-model.ts @@ -0,0 +1,43 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlViewModel } from './url-view-model'; + + +export interface IncidentViewModel { + ActivityInfluencedName?: string; + ActivityInfluencedTID?: number; + CasualtiesNum?: number; + Comment?: string; + DamageExtentName?: string; + DamageExtentTID?: number; + DeadNum?: number; + DtEndTime?: string; + EvacuatedNum?: number; + ForecastAccurateName?: string; + ForecastAccurateTID?: number; + GeoHazardName?: string; + GeoHazardTID?: number; + HarmedNum?: number; + IncidentHeader?: string; + IncidentIngress?: string; + IncidentText?: string; + IncidentURLs?: Array; + InvolvedNum?: number; + LocalKnowledgeName?: string; + LocalKnowledgeTID?: number; + LocalTouristName?: string; + LocalTouristTID?: number; + MaterialDamages?: boolean; + RescueName?: string; + RescueTID?: number; + SafetyGearName?: string; + SafetyGearTID?: number; + SlopeActivityName?: string; + SlopeActivityTID?: number; + TrafficObstructed?: boolean; +} + diff --git a/src/app/modules/common-regobs-api/models/index.ts b/src/app/modules/common-regobs-api/models/index.ts new file mode 100644 index 000000000..5f62139dd --- /dev/null +++ b/src/app/modules/common-regobs-api/models/index.ts @@ -0,0 +1,105 @@ +export * from './areas-dto-forecast-regions'; +export * from './areas-dto'; +export * from './at-a-glance-view-model'; +export * from './attachment-edit-model'; +export * from './attachment-view-model-url-formats'; +export * from './attachment-view-model'; +export * from './avalanche-activity-obs-view-model'; +export * from './avalanche-activity-obs2-edit-model'; +export * from './avalanche-activity-obs2-view-model'; +export * from './avalanche-danger-obs-view-model'; +export * from './avalanche-eval-problem-view-model'; +export * from './avalanche-eval-problem2-edit-model'; +export * from './avalanche-eval-problem2-view-model'; +export * from './avalanche-evaluation-view-model'; +export * from './avalanche-evaluation2-view-model'; +export * from './avalanche-evaluation3-edit-model'; +export * from './avalanche-evaluation3-view-model'; +export * from './avalanche-obs-edit-model'; +export * from './avalanche-obs-view-model'; +export * from './compression-test-edit-model'; +export * from './compression-test-view-model'; +export * from './county-dto'; +export * from './create-trip-dto'; +export * from './damage-obs-edit-model'; +export * from './damage-obs-view-model'; +export * from './danger-obs-edit-model'; +export * from './danger-obs-view-model'; +export * from './finish-trip-dto'; +export * from './forecast-region-dto'; +export * from './forecast-region-sub-region-dto'; +export * from './general-observation-edit-model'; +export * from './general-observation-view-model'; +export * from './geo-hazard-types'; +export * from './geo-location-info'; +export * from './geo-location-summary'; +export * from './helptext-dto'; +export * from './ice-cover-edit-model'; +export * from './ice-cover-view-model'; +export * from './ice-thickness-edit-model'; +export * from './ice-thickness-layer-edit-model'; +export * from './ice-thickness-layer-view-model'; +export * from './ice-thickness-view-model'; +export * from './incident-edit-model'; +export * from './incident-view-model'; +export * from './kdv-element'; +export * from './kdv-elements-response-dto'; +export * from './landslide-edit-model'; +export * from './landslide-view-model'; +export * from './lang-key'; +export * from './lat-lng-object'; +export * from './lat-lng'; +export * from './my-page-data'; +export * from './obs-location-edit-model'; +export * from './obs-location-view-model'; +export * from './obs-locations-response-dto-v2'; +export * from './observer-competence-dto'; +export * from './observer-competence-level-dto'; +export * from './observer-group-dto'; +export * from './observer-patch-request-dto'; +export * from './observer-response-dto'; +export * from './observer-view-model'; +export * from './operator'; +export * from './position-dto'; +export * from './problem-details'; +export * from './property-filter'; +export * from './reg-obs-generic-value'; +export * from './registration-edit-model'; +export * from './registration-type-criteria-dto'; +export * from './registration-type-dto'; +export * from './registration-type-sub-type-dto'; +export * from './registration-view-model'; +export * from './registrations-with-attachments'; +export * from './search-count-response-dto'; +export * from './search-criteria-excl-user-request-dto'; +export * from './search-criteria-request-dto'; +export * from './search-side-bar-dto-observer-competence-levels'; +export * from './search-side-bar-dto-registration-types'; +export * from './search-side-bar-dto'; +export * from './search-side-bar-request-dto'; +export * from './snow-cover-obs-view-model'; +export * from './snow-density-layer-model'; +export * from './snow-density-model'; +export * from './snow-profile-edit-model'; +export * from './snow-profile-view-model'; +export * from './snow-surface-edit-model'; +export * from './snow-surface-view-model'; +export * from './snow-temp-model'; +export * from './snow-temp-obs-model'; +export * from './strat-profile-edit-model'; +export * from './strat-profile-layer-edit-model'; +export * from './strat-profile-layer-view-model'; +export * from './strat-profile-view-model'; +export * from './summary'; +export * from './url-edit-model'; +export * from './url-view-model'; +export * from './value-kind'; +export * from './water-level-measurement-edit-model'; +export * from './water-level-measurement-view-model'; +export * from './water-level-view-model'; +export * from './waterlevel2-edit-model'; +export * from './waterlevel2-view-model'; +export * from './weather-edit-model'; +export * from './weather-view-model'; +export * from './within-extent-criteria-dto'; +export * from './within-radius-criteria-dto'; diff --git a/src/app/modules/common-regobs-api/models/kdv-element.ts b/src/app/modules/common-regobs-api/models/kdv-element.ts new file mode 100644 index 000000000..155b90010 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/kdv-element.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface KdvElement { + Description?: string; + Id: number; + Name?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts new file mode 100644 index 000000000..d037c41c6 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { KdvElement } from './kdv-element'; + + +export interface KdvElementsResponseDto { + KdvRepositories?: { [key: string]: Array; }; + ViewRepositories?: any; +} + diff --git a/src/app/modules/common-regobs-api/models/landslide-edit-model.ts b/src/app/modules/common-regobs-api/models/landslide-edit-model.ts new file mode 100644 index 000000000..ab0e0ea7f --- /dev/null +++ b/src/app/modules/common-regobs-api/models/landslide-edit-model.ts @@ -0,0 +1,30 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlEditModel } from './url-edit-model'; + + +export interface LandslideEditModel { + ActivityInfluencedTID?: number; + Comment?: string; + DamageExtentTID?: number; + DtLandSlideTime: string; + DtLandSlideTimeEnd?: string; + Extent?: Array>; + ForecastAccurateTID?: number; + GeoHazardTID?: number; + LandSlideSizeTID?: number; + LandSlideTID?: number; + LandSlideTriggerTID?: number; + StartExtent?: Array>; + StartLat?: number; + StartLong?: number; + StopExtent?: Array>; + StopLat?: number; + StopLong?: number; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/landslide-view-model.ts b/src/app/modules/common-regobs-api/models/landslide-view-model.ts new file mode 100644 index 000000000..db747c679 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/landslide-view-model.ts @@ -0,0 +1,37 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { UrlViewModel } from './url-view-model'; + + +export interface LandslideViewModel { + ActivityInfluencedName?: string; + ActivityInfluencedTID?: number; + Comment?: string; + DamageExtentName?: string; + DamageExtentTID?: number; + DtLandSlideTime: string; + DtLandSlideTimeEnd?: string; + Extent?: Array>; + ForecastAccurateName?: string; + ForecastAccurateTID?: number; + GeoHazardName?: string; + GeoHazardTID?: number; + LandSlideName?: string; + LandSlideSizeName?: string; + LandSlideSizeTID?: number; + LandSlideTID?: number; + LandSlideTriggerName?: string; + LandSlideTriggerTID?: number; + StartExtent?: Array>; + StartLat?: number; + StartLong?: number; + StopExtent?: Array>; + StopLat?: number; + StopLong?: number; + Urls?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/lang-key.ts b/src/app/modules/common-regobs-api/models/lang-key.ts new file mode 100644 index 000000000..2afdbec75 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/lang-key.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export const LangKey = { + NUMBER_1: 1, + NUMBER_2: 2, + NUMBER_3: 3, + NUMBER_4: 4, + NUMBER_5: 5, + NUMBER_6: 6, + NUMBER_7: 7, + NUMBER_8: 8, + NUMBER_9: 9 +} as const; +export type LangKey = typeof LangKey[keyof typeof LangKey]; + diff --git a/src/app/modules/common-regobs-api/models/lat-lng-object.ts b/src/app/modules/common-regobs-api/models/lat-lng-object.ts new file mode 100644 index 000000000..ff1f9ee45 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/lat-lng-object.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface LatLngObject { + Latitude: number; + Longitude: number; +} + diff --git a/src/app/modules/common-regobs-api/models/lat-lng.ts b/src/app/modules/common-regobs-api/models/lat-lng.ts new file mode 100644 index 000000000..29daf7de8 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/lat-lng.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface LatLng { + Latitude: number; + Longitude: number; +} + diff --git a/src/app/modules/common-regobs-api/models/models.ts b/src/app/modules/common-regobs-api/models/models.ts new file mode 100644 index 000000000..5f62139dd --- /dev/null +++ b/src/app/modules/common-regobs-api/models/models.ts @@ -0,0 +1,105 @@ +export * from './areas-dto-forecast-regions'; +export * from './areas-dto'; +export * from './at-a-glance-view-model'; +export * from './attachment-edit-model'; +export * from './attachment-view-model-url-formats'; +export * from './attachment-view-model'; +export * from './avalanche-activity-obs-view-model'; +export * from './avalanche-activity-obs2-edit-model'; +export * from './avalanche-activity-obs2-view-model'; +export * from './avalanche-danger-obs-view-model'; +export * from './avalanche-eval-problem-view-model'; +export * from './avalanche-eval-problem2-edit-model'; +export * from './avalanche-eval-problem2-view-model'; +export * from './avalanche-evaluation-view-model'; +export * from './avalanche-evaluation2-view-model'; +export * from './avalanche-evaluation3-edit-model'; +export * from './avalanche-evaluation3-view-model'; +export * from './avalanche-obs-edit-model'; +export * from './avalanche-obs-view-model'; +export * from './compression-test-edit-model'; +export * from './compression-test-view-model'; +export * from './county-dto'; +export * from './create-trip-dto'; +export * from './damage-obs-edit-model'; +export * from './damage-obs-view-model'; +export * from './danger-obs-edit-model'; +export * from './danger-obs-view-model'; +export * from './finish-trip-dto'; +export * from './forecast-region-dto'; +export * from './forecast-region-sub-region-dto'; +export * from './general-observation-edit-model'; +export * from './general-observation-view-model'; +export * from './geo-hazard-types'; +export * from './geo-location-info'; +export * from './geo-location-summary'; +export * from './helptext-dto'; +export * from './ice-cover-edit-model'; +export * from './ice-cover-view-model'; +export * from './ice-thickness-edit-model'; +export * from './ice-thickness-layer-edit-model'; +export * from './ice-thickness-layer-view-model'; +export * from './ice-thickness-view-model'; +export * from './incident-edit-model'; +export * from './incident-view-model'; +export * from './kdv-element'; +export * from './kdv-elements-response-dto'; +export * from './landslide-edit-model'; +export * from './landslide-view-model'; +export * from './lang-key'; +export * from './lat-lng-object'; +export * from './lat-lng'; +export * from './my-page-data'; +export * from './obs-location-edit-model'; +export * from './obs-location-view-model'; +export * from './obs-locations-response-dto-v2'; +export * from './observer-competence-dto'; +export * from './observer-competence-level-dto'; +export * from './observer-group-dto'; +export * from './observer-patch-request-dto'; +export * from './observer-response-dto'; +export * from './observer-view-model'; +export * from './operator'; +export * from './position-dto'; +export * from './problem-details'; +export * from './property-filter'; +export * from './reg-obs-generic-value'; +export * from './registration-edit-model'; +export * from './registration-type-criteria-dto'; +export * from './registration-type-dto'; +export * from './registration-type-sub-type-dto'; +export * from './registration-view-model'; +export * from './registrations-with-attachments'; +export * from './search-count-response-dto'; +export * from './search-criteria-excl-user-request-dto'; +export * from './search-criteria-request-dto'; +export * from './search-side-bar-dto-observer-competence-levels'; +export * from './search-side-bar-dto-registration-types'; +export * from './search-side-bar-dto'; +export * from './search-side-bar-request-dto'; +export * from './snow-cover-obs-view-model'; +export * from './snow-density-layer-model'; +export * from './snow-density-model'; +export * from './snow-profile-edit-model'; +export * from './snow-profile-view-model'; +export * from './snow-surface-edit-model'; +export * from './snow-surface-view-model'; +export * from './snow-temp-model'; +export * from './snow-temp-obs-model'; +export * from './strat-profile-edit-model'; +export * from './strat-profile-layer-edit-model'; +export * from './strat-profile-layer-view-model'; +export * from './strat-profile-view-model'; +export * from './summary'; +export * from './url-edit-model'; +export * from './url-view-model'; +export * from './value-kind'; +export * from './water-level-measurement-edit-model'; +export * from './water-level-measurement-view-model'; +export * from './water-level-view-model'; +export * from './waterlevel2-edit-model'; +export * from './waterlevel2-view-model'; +export * from './weather-edit-model'; +export * from './weather-view-model'; +export * from './within-extent-criteria-dto'; +export * from './within-radius-criteria-dto'; diff --git a/src/app/modules/common-regobs-api/models/my-page-data.ts b/src/app/modules/common-regobs-api/models/my-page-data.ts new file mode 100644 index 000000000..86f8cfe47 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/my-page-data.ts @@ -0,0 +1,31 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ObserverGroupDto } from './observer-group-dto'; +import { ObserverCompetenceDto } from './observer-competence-dto'; + + +export interface MyPageData { + Adrnr?: number; + Competence?: Array; + DefaultMunicipality?: string; + DtRegTime?: string; + Email?: string; + FirstName?: string; + Guid: string; + LastName?: string; + LastRegistrationDate?: string; + MainGeohazardTID: number; + MemberOfGroups?: Array; + MobPhoneNr?: string; + NickName?: string; + NumberOfObservations: number; + ObserverId: number; + PendingInvitationsToGroups?: Array; + Roles?: Array; + WorkPlace?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts new file mode 100644 index 000000000..ff433a4be --- /dev/null +++ b/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObsLocationEditModel { + Latitude: number; + LocationDescription?: string; + LocationName?: string; + Longitude: number; + ObsLocationID?: number; + Uncertainty?: number; + UTMSourceTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/obs-location-view-model.ts b/src/app/modules/common-regobs-api/models/obs-location-view-model.ts new file mode 100644 index 000000000..d379e7f02 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/obs-location-view-model.ts @@ -0,0 +1,27 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObsLocationViewModel { + CountryId?: number; + CountryName?: string; + ForecastRegionName?: string; + ForecastRegionTID?: number; + Height?: number; + Latitude: number; + LocationDescription?: string; + LocationName?: string; + Longitude: number; + MunicipalName?: string; + MunicipalNo?: string; + ObsLocationID?: number; + Title?: string; + Uncertainty?: number; + UTMSourceName?: string; + UTMSourceTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts new file mode 100644 index 000000000..f2729c975 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { LatLngObject } from './lat-lng-object'; + + +export interface ObsLocationsResponseDtoV2 { + Distance: number; + GeoHazardId?: number; + Id: number; + LatLngObject?: LatLngObject; + LocationDescription?: string; + Name?: string; + ObserverGroupId?: number; + ObserverGroupName?: string; + ObserverNickName?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-competence-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-dto.ts new file mode 100644 index 000000000..83316ddbd --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-competence-dto.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObserverCompetenceDto { + CompetenceDescription?: string; + CompetenceName?: string; + CompetenceTID: number; + GeohazardTID: number; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts new file mode 100644 index 000000000..552470f11 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObserverCompetenceLevelDto { + Description?: string; + Id: number; + Name?: string; + SortOrder: number; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-group-dto.ts b/src/app/modules/common-regobs-api/models/observer-group-dto.ts new file mode 100644 index 000000000..9697e7547 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-group-dto.ts @@ -0,0 +1,16 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObserverGroupDto { + Comment?: string; + Id: number; + Name?: string; + ObserverGroupDescription?: string; + WorkPlace?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts new file mode 100644 index 000000000..655762ef2 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts @@ -0,0 +1,12 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObserverPatchRequestDto { + Nick?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-response-dto.ts b/src/app/modules/common-regobs-api/models/observer-response-dto.ts new file mode 100644 index 000000000..299c448c4 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-response-dto.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ObserverGroupDto } from './observer-group-dto'; + + +export interface ObserverResponseDto { + Guid: string; + Nick?: string; + ObserverGroup?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/observer-view-model.ts b/src/app/modules/common-regobs-api/models/observer-view-model.ts new file mode 100644 index 000000000..ffd02ab4b --- /dev/null +++ b/src/app/modules/common-regobs-api/models/observer-view-model.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ObserverViewModel { + CompetenceLevelName?: string; + CompetenceLevelTID: number; + NickName?: string; + ObserverID: number; +} + diff --git a/src/app/modules/common-regobs-api/models/operator.ts b/src/app/modules/common-regobs-api/models/operator.ts new file mode 100644 index 000000000..3ace4d9b4 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/operator.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export const Operator = { + NUMBER_0: 0 +} as const; +export type Operator = typeof Operator[keyof typeof Operator]; + diff --git a/src/app/modules/common-regobs-api/models/position-dto.ts b/src/app/modules/common-regobs-api/models/position-dto.ts new file mode 100644 index 000000000..6ba2e08c3 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/position-dto.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface PositionDto { + Latitude: number; + Longitude: number; +} + diff --git a/src/app/modules/common-regobs-api/models/problem-details.ts b/src/app/modules/common-regobs-api/models/problem-details.ts new file mode 100644 index 000000000..8a2f01b76 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/problem-details.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface ProblemDetails { + [key: string]: any | any; + detail?: string; + instance?: string; + status?: number; + title?: string; + type?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/property-filter.ts b/src/app/modules/common-regobs-api/models/property-filter.ts new file mode 100644 index 000000000..a4c69d2d2 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/property-filter.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Operator } from './operator'; + + +/** + * Filter by property value + */ +export interface PropertyFilter { + Name?: string; + Operator: Operator; + Value?: string; +} +export namespace PropertyFilter { +} + + diff --git a/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts new file mode 100644 index 000000000..57f6e9158 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ValueKind } from './value-kind'; + + +export interface RegObsGenericValue { + Header?: string; + Kind: ValueKind; + KindType?: string; + Value?: any; +} +export namespace RegObsGenericValue { +} + + diff --git a/src/app/modules/common-regobs-api/models/registration-edit-model.ts b/src/app/modules/common-regobs-api/models/registration-edit-model.ts new file mode 100644 index 000000000..81b064559 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registration-edit-model.ts @@ -0,0 +1,58 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Waterlevel2EditModel } from './waterlevel2-edit-model'; +import { DangerObsEditModel } from './danger-obs-edit-model'; +import { AvalancheEvalProblem2EditModel } from './avalanche-eval-problem2-edit-model'; +import { SnowProfileEditModel } from './snow-profile-edit-model'; +import { GeoHazardTypes } from './geo-hazard-types'; +import { LandslideEditModel } from './landslide-edit-model'; +import { AvalancheActivityObs2EditModel } from './avalanche-activity-obs2-edit-model'; +import { AttachmentEditModel } from './attachment-edit-model'; +import { DamageObsEditModel } from './damage-obs-edit-model'; +import { IceThicknessEditModel } from './ice-thickness-edit-model'; +import { IncidentEditModel } from './incident-edit-model'; +import { WeatherEditModel } from './weather-edit-model'; +import { SnowSurfaceEditModel } from './snow-surface-edit-model'; +import { ObsLocationEditModel } from './obs-location-edit-model'; +import { AvalancheObsEditModel } from './avalanche-obs-edit-model'; +import { CompressionTestEditModel } from './compression-test-edit-model'; +import { GeneralObservationEditModel } from './general-observation-edit-model'; +import { IceCoverEditModel } from './ice-cover-edit-model'; +import { AvalancheEvaluation3EditModel } from './avalanche-evaluation3-edit-model'; + + +export interface RegistrationEditModel { + Anonymous?: boolean; + Attachments?: Array; + AvalancheActivityObs2?: Array; + AvalancheEvalProblem2?: Array; + AvalancheEvaluation3?: AvalancheEvaluation3EditModel; + AvalancheObs?: AvalancheObsEditModel; + CompressionTest?: Array; + DamageObs?: Array; + DangerObs?: Array; + DtChangeTime?: string; + DtObsTime: string; + GeneralObservation?: GeneralObservationEditModel; + GeoHazardTID: GeoHazardTypes; + IceCoverObs?: IceCoverEditModel; + IceThickness?: IceThicknessEditModel; + Incident?: IncidentEditModel; + LandSlideObs?: LandslideEditModel; + ObserverGroupID?: number; + ObserverGroupName?: string; + ObsLocation?: ObsLocationEditModel; + SnowProfile2?: SnowProfileEditModel; + SnowSurfaceObservation?: SnowSurfaceEditModel; + SourceTID?: number; + WaterLevel2?: Waterlevel2EditModel; + WeatherObservation?: WeatherEditModel; +} +export namespace RegistrationEditModel { +} + + diff --git a/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts new file mode 100644 index 000000000..10b62ade7 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface RegistrationTypeCriteriaDto { + Id: number; + SubTypes?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/registration-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-dto.ts new file mode 100644 index 000000000..6ec28258b --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registration-type-dto.ts @@ -0,0 +1,16 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; + + +export interface RegistrationTypeDto { + Id: number; + Name?: string; + SortOrder: number; + SubTypes?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts new file mode 100644 index 000000000..744a75bc0 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface RegistrationTypeSubTypeDto { + Id: number; + Name?: string; + SortOrder: number; +} + diff --git a/src/app/modules/common-regobs-api/models/registration-view-model.ts b/src/app/modules/common-regobs-api/models/registration-view-model.ts new file mode 100644 index 000000000..9c81afc83 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registration-view-model.ts @@ -0,0 +1,83 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { IceThicknessViewModel } from './ice-thickness-view-model'; +import { SnowSurfaceViewModel } from './snow-surface-view-model'; +import { IncidentViewModel } from './incident-view-model'; +import { ObserverViewModel } from './observer-view-model'; +import { GeoHazardTypes } from './geo-hazard-types'; +import { WeatherViewModel } from './weather-view-model'; +import { DamageObsViewModel } from './damage-obs-view-model'; +import { LandslideViewModel } from './landslide-view-model'; +import { WaterLevelViewModel } from './water-level-view-model'; +import { SnowProfileViewModel } from './snow-profile-view-model'; +import { AvalancheObsViewModel } from './avalanche-obs-view-model'; +import { AvalancheActivityObsViewModel } from './avalanche-activity-obs-view-model'; +import { AvalancheDangerObsViewModel } from './avalanche-danger-obs-view-model'; +import { SnowCoverObsViewModel } from './snow-cover-obs-view-model'; +import { AvalancheEvaluation3ViewModel } from './avalanche-evaluation3-view-model'; +import { CompressionTestViewModel } from './compression-test-view-model'; +import { IceCoverViewModel } from './ice-cover-view-model'; +import { AvalancheEvaluationViewModel } from './avalanche-evaluation-view-model'; +import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; +import { ObsLocationViewModel } from './obs-location-view-model'; +import { AvalancheActivityObs2ViewModel } from './avalanche-activity-obs2-view-model'; +import { AttachmentViewModel } from './attachment-view-model'; +import { Waterlevel2ViewModel } from './waterlevel2-view-model'; +import { DangerObsViewModel } from './danger-obs-view-model'; +import { AvalancheEvaluation2ViewModel } from './avalanche-evaluation2-view-model'; +import { AvalancheEvalProblem2ViewModel } from './avalanche-eval-problem2-view-model'; +import { Summary } from './summary'; +import { GeneralObservationViewModel } from './general-observation-view-model'; + + +export interface RegistrationViewModel { + Anonymous?: boolean; + Attachments?: Array; + AttachmentSummaries?: Array; + AvalancheActivityObs?: Array; + AvalancheActivityObs2?: Array; + AvalancheDangerObs?: Array; + AvalancheEvalProblem?: Array; + AvalancheEvalProblem2?: Array; + AvalancheEvaluation?: AvalancheEvaluationViewModel; + AvalancheEvaluation2?: AvalancheEvaluation2ViewModel; + AvalancheEvaluation3?: AvalancheEvaluation3ViewModel; + AvalancheObs?: AvalancheObsViewModel; + CompressionTest?: Array; + DamageObs?: Array; + DangerObs?: Array; + DtChangeTime?: string; + DtObsTime: string; + DtRegTime?: string; + ExternalReferenceId?: string; + GeneralObservation?: GeneralObservationViewModel; + GeoHazardName?: string; + GeoHazardTID: GeoHazardTypes; + IceCoverObs?: IceCoverViewModel; + IceThickness?: IceThicknessViewModel; + Incident?: IncidentViewModel; + LandSlideObs?: LandslideViewModel; + Observer: ObserverViewModel; + ObserverGroupID?: number; + ObserverGroupName?: string; + ObsLocation: ObsLocationViewModel; + RegId: number; + SnowCoverObs?: SnowCoverObsViewModel; + SnowProfile?: AttachmentViewModel; + SnowProfile2?: SnowProfileViewModel; + SnowSurfaceObservation?: SnowSurfaceViewModel; + SourceName?: string; + SourceTID?: number; + Summaries?: Array; + WaterLevel?: WaterLevelViewModel; + WaterLevel2?: Waterlevel2ViewModel; + WeatherObservation?: WeatherViewModel; +} +export namespace RegistrationViewModel { +} + + diff --git a/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts new file mode 100644 index 000000000..be7db06a3 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AttachmentViewModel } from './attachment-view-model'; + + +export interface RegistrationsWithAttachments { + Attachments?: Array; + RegId: number; +} + diff --git a/src/app/modules/common-regobs-api/models/search-count-response-dto.ts b/src/app/modules/common-regobs-api/models/search-count-response-dto.ts new file mode 100644 index 000000000..9e8f78d1f --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-count-response-dto.ts @@ -0,0 +1,12 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SearchCountResponseDto { + TotalMatches: number; +} + diff --git a/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts new file mode 100644 index 000000000..2906ccf5d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts @@ -0,0 +1,39 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; +import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; +import { PropertyFilter } from './property-filter'; +import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; + + +/** + * Use this to filter out registrations. + */ +export interface SearchCriteriaExclUserRequestDto { + AscendingOrder: boolean; + Counties?: Array; + Countries?: Array; + Extent?: WithinExtentCriteriaDto; + FromDtChangeTime?: string; + FromDtObsTime?: string; + LangKey?: number; + LocationId?: number; + NumberOfRecords?: number; + Offset?: number; + OrderBy?: string; + PropertyFilters?: Array; + Radius?: WithinRadiusCriteriaDto; + RegId?: number; + SelectedGeoHazards?: Array; + SelectedRegions?: Array; + SelectedRegistrationTypes?: Array; + TextSearch?: string; + TimeZone?: string; + ToDtChangeTime?: string; + ToDtObsTime?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts new file mode 100644 index 000000000..dbd9bda0d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts @@ -0,0 +1,44 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RegistrationTypeCriteriaDto } from './registration-type-criteria-dto'; +import { WithinRadiusCriteriaDto } from './within-radius-criteria-dto'; +import { PropertyFilter } from './property-filter'; +import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; + + +/** + * Use this to filter out registrations. + */ +export interface SearchCriteriaRequestDto { + AscendingOrder: boolean; + Counties?: Array; + Countries?: Array; + Extent?: WithinExtentCriteriaDto; + FromDtChangeTime?: string; + FromDtObsTime?: string; + GroupId?: number; + LangKey?: number; + LocationId?: number; + NumberOfRecords?: number; + ObserverCompetence?: Array; + ObserverGuid?: string; + ObserverId?: number; + ObserverNickName?: string; + Offset?: number; + OrderBy?: string; + PropertyFilters?: Array; + Radius?: WithinRadiusCriteriaDto; + RegId?: number; + SelectedGeoHazards?: Array; + SelectedRegions?: Array; + SelectedRegistrationTypes?: Array; + TextSearch?: string; + TimeZone?: string; + ToDtChangeTime?: string; + ToDtObsTime?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts new file mode 100644 index 000000000..e5c453487 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { ObserverCompetenceLevelDto } from './observer-competence-level-dto'; + + +export interface SearchSideBarDtoObserverCompetenceLevels { + Avalanche?: Array; + Drought?: Array; + EarthFlow?: Array; + EventOnGlacier?: Array; + Flooding?: Array; + Ice?: Array; + IceFall?: Array; + Jokulhaup?: Array; + LandSlide?: Array; + NotSpecified?: Array; + RockFall?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts new file mode 100644 index 000000000..ed18732fc --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RegistrationTypeDto } from './registration-type-dto'; + + +export interface SearchSideBarDtoRegistrationTypes { + Avalanche?: Array; + Drought?: Array; + EarthFlow?: Array; + EventOnGlacier?: Array; + Flooding?: Array; + Ice?: Array; + IceFall?: Array; + Jokulhaup?: Array; + LandSlide?: Array; + NotSpecified?: Array; + RockFall?: Array; + Unknown?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts new file mode 100644 index 000000000..504cdacc5 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AreasDto } from './areas-dto'; +import { SearchSideBarDtoObserverCompetenceLevels } from './search-side-bar-dto-observer-competence-levels'; +import { SearchSideBarDtoRegistrationTypes } from './search-side-bar-dto-registration-types'; + + +export interface SearchSideBarDto { + Areas?: Array; + ObserverCompetenceLevels?: SearchSideBarDtoObserverCompetenceLevels; + RegistrationTypes?: SearchSideBarDtoRegistrationTypes; +} + diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts new file mode 100644 index 000000000..5bfb2bb05 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { GeoHazardTypes } from './geo-hazard-types'; +import { LangKey } from './lang-key'; + + +export interface SearchSideBarRequestDto { + GeoHazards?: Array; + LangKey: LangKey; +} +export namespace SearchSideBarRequestDto { +} + + diff --git a/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts new file mode 100644 index 000000000..f6d7deb66 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SnowCoverObsViewModel { + Comment?: string; + CriticalLayerExists?: boolean; + CriticalLayerLocation?: number; + CriticalLayerName?: string; + CriticalLayerTID?: number; + DepthHoarThickness?: number; + SnowPilotRef?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts new file mode 100644 index 000000000..39ffa7e60 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SnowDensityLayerModel { + Comment?: string; + Density?: number; + Depth?: number; + SortOrder: number; + Thickness?: number; + WaterEquivalent: number; + Weight: number; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-density-model.ts b/src/app/modules/common-regobs-api/models/snow-density-model.ts new file mode 100644 index 000000000..a5ec619c0 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-density-model.ts @@ -0,0 +1,16 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { SnowDensityLayerModel } from './snow-density-layer-model'; + + +export interface SnowDensityModel { + Comment?: string; + CylinderDiameter?: number; + Layers?: Array; + TareWeight?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts new file mode 100644 index 000000000..04df1335a --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { SnowDensityModel } from './snow-density-model'; +import { StratProfileEditModel } from './strat-profile-edit-model'; +import { SnowTempModel } from './snow-temp-model'; + + +export interface SnowProfileEditModel { + Comment?: string; + Exposition?: number; + IsProfileToGround?: boolean; + SlopeAngle?: number; + SnowDensity?: Array; + SnowTemp?: SnowTempModel; + StratProfile?: StratProfileEditModel; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts new file mode 100644 index 000000000..4d7eb9a74 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { SnowDensityModel } from './snow-density-model'; +import { StratProfileViewModel } from './strat-profile-view-model'; +import { AttachmentViewModel } from './attachment-view-model'; +import { SnowTempModel } from './snow-temp-model'; + + +export interface SnowProfileViewModel { + Comment?: string; + Exposition?: number; + IsProfileToGround?: boolean; + PlotImage?: AttachmentViewModel; + SlopeAngle?: number; + SnowDensity?: Array; + SnowTemp?: SnowTempModel; + StratProfile?: StratProfileViewModel; + TotalDepth: number; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts new file mode 100644 index 000000000..8ff8963b8 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts @@ -0,0 +1,21 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SnowSurfaceEditModel { + Comment?: string; + HeightLimitLayeredSnow?: number; + NewSnowDepth24?: number; + NewSnowLine?: number; + SkiConditionsTID?: number; + SnowDepth?: number; + SnowDriftTID?: number; + SnowLine?: number; + SnowSurfaceTID?: number; + SurfaceWaterContentTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts new file mode 100644 index 000000000..05601bb8d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts @@ -0,0 +1,29 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SnowSurfaceViewModel { + Comment?: string; + FootPenetration?: number; + HeightLimitLayeredSnow?: number; + NewSnowDepth24?: number; + NewSnowLine?: number; + SkiConditionsName?: string; + SkiConditionsTID?: number; + SnowDepth?: number; + SnowDriftName?: string; + SnowDriftTID?: number; + SnowLine?: number; + SnowSurfaceName?: string; + SnowSurfaceTID?: number; + SnowWindDepth24?: number; + SurfaceRougnessName?: string; + SurfaceRougnessTID?: number; + SurfaceWaterContentName?: string; + SurfaceWaterContentTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-temp-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-model.ts new file mode 100644 index 000000000..ad0f10d29 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-temp-model.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { SnowTempObsModel } from './snow-temp-obs-model'; + + +export interface SnowTempModel { + Layers?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts new file mode 100644 index 000000000..cb7e0f249 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface SnowTempObsModel { + Depth: number; + SnowTemp: number; +} + diff --git a/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts new file mode 100644 index 000000000..243896d73 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { StratProfileLayerEditModel } from './strat-profile-layer-edit-model'; + + +export interface StratProfileEditModel { + Layers?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts new file mode 100644 index 000000000..7b4355741 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts @@ -0,0 +1,23 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface StratProfileLayerEditModel { + Comment?: string; + CriticalLayerTID?: number; + DepthTop?: number; + GrainFormPrimaryTID?: number; + GrainFormSecondaryTID?: number; + GrainSizeAvg?: number; + GrainSizeAvgMax?: number; + HardnessBottomTID?: number; + HardnessTID?: number; + SortOrder: number; + Thickness?: number; + WetnessTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts new file mode 100644 index 000000000..a691b2b57 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts @@ -0,0 +1,29 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface StratProfileLayerViewModel { + Comment?: string; + CriticalLayerTID?: number; + CriticalLayerTName?: string; + DepthTop?: number; + GrainFormPrimaryTID?: number; + GrainFormPrimaryTName?: string; + GrainFormSecondaryTID?: number; + GrainFormSecondaryTName?: string; + GrainSizeAvg?: number; + GrainSizeAvgMax?: number; + HardnessBottomTID?: number; + HardnessBottomTName?: string; + HardnessTID?: number; + HardnessTName?: string; + SortOrder: number; + Thickness?: number; + WetnessTID?: number; + WetnessTName?: string; +} + diff --git a/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts new file mode 100644 index 000000000..bda587f3f --- /dev/null +++ b/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; + + +export interface StratProfileViewModel { + Layers?: Array; + TotalDepth: number; +} + diff --git a/src/app/modules/common-regobs-api/models/summary.ts b/src/app/modules/common-regobs-api/models/summary.ts new file mode 100644 index 000000000..498417b58 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/summary.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RegObsGenericValue } from './reg-obs-generic-value'; + + +export interface Summary { + RegistrationName?: string; + RegistrationTID: number; + Summaries?: Array; +} + diff --git a/src/app/modules/common-regobs-api/models/url-edit-model.ts b/src/app/modules/common-regobs-api/models/url-edit-model.ts new file mode 100644 index 000000000..b230a1fe0 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/url-edit-model.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface UrlEditModel { + UrlDescription?: string; + UrlLine: string; +} + diff --git a/src/app/modules/common-regobs-api/models/url-view-model.ts b/src/app/modules/common-regobs-api/models/url-view-model.ts new file mode 100644 index 000000000..bfb701b3e --- /dev/null +++ b/src/app/modules/common-regobs-api/models/url-view-model.ts @@ -0,0 +1,13 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface UrlViewModel { + UrlDescription?: string; + UrlLine: string; +} + diff --git a/src/app/modules/common-regobs-api/models/value-kind.ts b/src/app/modules/common-regobs-api/models/value-kind.ts new file mode 100644 index 000000000..4bee89609 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/value-kind.ts @@ -0,0 +1,15 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export const ValueKind = { + NUMBER_0: 0, + NUMBER_1: 1, + NUMBER_2: 2 +} as const; +export type ValueKind = typeof ValueKind[keyof typeof ValueKind]; + diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts new file mode 100644 index 000000000..ab068f760 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AttachmentEditModel } from './attachment-edit-model'; + + +export interface WaterLevelMeasurementEditModel { + Attachments?: Array; + Comment?: string; + DtMeasurementTime: string; + WaterLevelMeasurementId?: number; + WaterLevelValue?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts new file mode 100644 index 000000000..4254b1faf --- /dev/null +++ b/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { AttachmentViewModel } from './attachment-view-model'; + + +export interface WaterLevelMeasurementViewModel { + Attachments?: Array; + Comment?: string; + DtMeasurementTime: string; + WaterLevelMeasurementId: number; + WaterLevelValue?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/water-level-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-view-model.ts new file mode 100644 index 000000000..d085b9d80 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/water-level-view-model.ts @@ -0,0 +1,18 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface WaterLevelViewModel { + Comment?: string; + IsRiver: boolean; + MeasuredDischarge?: number; + WaterLevelDescribed?: string; + WaterLevelRefName?: string; + WaterLevelRefTID: number; + WaterLevelValue?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts new file mode 100644 index 000000000..adb847918 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts @@ -0,0 +1,24 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { WaterLevelMeasurementEditModel } from './water-level-measurement-edit-model'; + + +export interface Waterlevel2EditModel { + Comment?: string; + Extent?: Array>; + MarkingReferenceTID?: number; + MarkingTypeTID?: number; + MeasurementReferenceTID?: number; + MeasurementTypeTID?: number; + MeasuringToolDescription?: string; + ObservationTimingTID?: number; + WaterAstrayTID?: number; + WaterLevelMeasurement?: Array; + WaterLevelMethodTID?: number; + WaterLevelStateTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts new file mode 100644 index 000000000..b9b57dd66 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts @@ -0,0 +1,32 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { WaterLevelMeasurementViewModel } from './water-level-measurement-view-model'; + + +export interface Waterlevel2ViewModel { + Comment?: string; + Extent?: Array>; + MarkingReferenceName?: string; + MarkingReferenceTID?: number; + MarkingTypeName?: string; + MarkingTypeTID?: number; + MeasurementReferenceName?: string; + MeasurementReferenceTID?: number; + MeasurementTypeName?: string; + MeasurementTypeTID?: number; + MeasuringToolDescription?: string; + ObservationTimingName?: string; + ObservationTimingTID?: number; + WaterAstrayName?: string; + WaterAstrayTID?: number; + WaterLevelMeasurement?: Array; + WaterLevelMethodName?: string; + WaterLevelMethodTID?: number; + WaterLevelStateName?: string; + WaterLevelStateTID?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/weather-edit-model.ts b/src/app/modules/common-regobs-api/models/weather-edit-model.ts new file mode 100644 index 000000000..fabe05c9d --- /dev/null +++ b/src/app/modules/common-regobs-api/models/weather-edit-model.ts @@ -0,0 +1,17 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface WeatherEditModel { + AirTemperature?: number; + CloudCover?: number; + Comment?: string; + PrecipitationTID?: number; + WindDirection?: number; + WindSpeed?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/weather-view-model.ts b/src/app/modules/common-regobs-api/models/weather-view-model.ts new file mode 100644 index 000000000..3e0068174 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/weather-view-model.ts @@ -0,0 +1,19 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export interface WeatherViewModel { + AirTemperature?: number; + CloudCover?: number; + Comment?: string; + PrecipitationName?: string; + PrecipitationTID?: number; + WindDirection?: number; + WindDirectionName?: string; + WindSpeed?: number; +} + diff --git a/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts new file mode 100644 index 000000000..0e54fcacb --- /dev/null +++ b/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { PositionDto } from './position-dto'; + + +export interface WithinExtentCriteriaDto { + BottomRight?: PositionDto; + TopLeft?: PositionDto; +} + diff --git a/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts new file mode 100644 index 000000000..ee71a24b6 --- /dev/null +++ b/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts @@ -0,0 +1,14 @@ +/** + * NOTE: This file is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { PositionDto } from './position-dto'; + + +export interface WithinRadiusCriteriaDto { + Position?: PositionDto; + Radius: number; +} + From 04ee02b22d752b5330856af8eac9df28384bf0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Myhre?= Date: Wed, 19 Nov 2025 15:24:15 +0100 Subject: [PATCH 12/16] Rettet 3 importer som henviste til 'src/app/modules/common-regobs-api/services' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit services ligger nå under common-regobs-api/api --- src/app/core/services/trip-logger/trip-logger.service.ts | 2 +- src/app/modules/map/services/map-search/map-search.service.ts | 4 ++-- .../strat-profile-layer-history-modal.page.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/core/services/trip-logger/trip-logger.service.ts b/src/app/core/services/trip-logger/trip-logger.service.ts index 4e5664cf4..c9418821c 100644 --- a/src/app/core/services/trip-logger/trip-logger.service.ts +++ b/src/app/core/services/trip-logger/trip-logger.service.ts @@ -6,7 +6,7 @@ import { TripLogActivity } from './trip-log-activity.model'; import { NanoSql } from '../../../../nanosql'; import { Observable, from, BehaviorSubject, throwError, firstValueFrom, of, EMPTY } from 'rxjs'; import { CreateTripDto } from 'src/app/modules/common-regobs-api/models'; -import { TripService } from 'src/app/modules/common-regobs-api/services'; +import { TripService } from 'src/app/modules/common-regobs-api'; import { switchMap, take, map, concatMap, tap, catchError, timeout } from 'rxjs/operators'; import { UserSettingService } from '../user-setting/user-setting.service'; import { ToastController, AlertController } from '@ionic/angular/standalone'; diff --git a/src/app/modules/map/services/map-search/map-search.service.ts b/src/app/modules/map/services/map-search/map-search.service.ts index 4b2f0e972..53aa6913e 100644 --- a/src/app/modules/map/services/map-search/map-search.service.ts +++ b/src/app/modules/map/services/map-search/map-search.service.ts @@ -8,7 +8,7 @@ import { Observable, forkJoin, of, Subject, firstValueFrom } from 'rxjs'; import { ViewInfo } from './view-info.model'; import { UserSettingService } from '../../../../core/services/user-setting/user-setting.service'; import { LangKey, GeoHazard } from 'src/app/modules/common-core/models'; -import { GeoCodeService } from 'src/app/modules/common-regobs-api/services'; +import { GeoCodeService } from 'src/app/modules/common-regobs-api'; import { NanoSql } from '../../../../../nanosql'; import { MapSearchHistory } from './map-search-history.model'; import moment from 'moment'; @@ -146,7 +146,7 @@ export class MapSearchService { getViewInfo(latLng: L.LatLng, geoHazard = GeoHazard.Soil): Observable { return this.geoCodeService - .GeoCodeLocationInfo({ + .geoCodeLocationInfo({ latitude: latLng.lat, longitude: latLng.lng, geoHazardId: geoHazard, diff --git a/src/app/modules/registration/components/snow/snow-profile/strat-profile/strat-profile-layer-history-modal/strat-profile-layer-history-modal.page.ts b/src/app/modules/registration/components/snow/snow-profile/strat-profile/strat-profile-layer-history-modal/strat-profile-layer-history-modal.page.ts index 0107964cb..c807915d4 100644 --- a/src/app/modules/registration/components/snow/snow-profile/strat-profile/strat-profile-layer-history-modal/strat-profile-layer-history-modal.page.ts +++ b/src/app/modules/registration/components/snow/snow-profile/strat-profile/strat-profile-layer-history-modal/strat-profile-layer-history-modal.page.ts @@ -19,7 +19,7 @@ import { SearchCriteriaExclUserRequestDto, StratProfileLayerViewModel, } from 'src/app/modules/common-regobs-api/models'; -import { SearchService } from 'src/app/modules/common-regobs-api/services'; +import { SearchService } from 'src/app/modules/common-regobs-api'; import { Observable, of } from 'rxjs'; import moment from 'moment'; import { GeoHazard } from 'src/app/modules/common-core/models'; @@ -68,7 +68,7 @@ export class StratProfileLayerHistoryModalPage implements OnInit { ngOnInit() { if (this.draft()?.registration?.ObsLocation) { - this.$previousUsedLayers = this.searchService.SearchPostSearchMyRegistrations(this.criteria).pipe( + this.$previousUsedLayers = this.searchService.searchSearchMyRegistrations(this.criteria).pipe( map((result) => this.getLayersFromSearchResult(result)), tap(() => { this.isLoading = false; From 1ccddb6193011505c9c0946e487d2ce1e39e4f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Myhre?= Date: Wed, 19 Nov 2025 15:25:11 +0100 Subject: [PATCH 13/16] TripGet har endret navn til tripGetObserverTrips --- src/app/core/services/observer-trips/observer-trips.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/core/services/observer-trips/observer-trips.service.ts b/src/app/core/services/observer-trips/observer-trips.service.ts index d5113b8d2..20abead56 100644 --- a/src/app/core/services/observer-trips/observer-trips.service.ts +++ b/src/app/core/services/observer-trips/observer-trips.service.ts @@ -189,7 +189,7 @@ export class ObserverTripsService { let data: FeatureCollection; try { // Appearantly TripGet is missing typing - data = (await firstValueFrom(this.tripService.TripGet())) as unknown as FeatureCollection; + data = (await firstValueFrom(this.tripService.tripGetObserverTrips())) as unknown as FeatureCollection; } catch (error) { if (error instanceof HttpErrorResponse) { if (error.status === HttpStatusCode.Unauthorized) { From 85ab82d0979426be481f33c75ea17328bf33921f Mon Sep 17 00:00:00 2001 From: gruble Date: Thu, 20 Nov 2025 12:17:30 +0100 Subject: [PATCH 14/16] Fjernet tom namespace-blokk fra modeller --- openapi-templates/modelGeneric.mustache | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openapi-templates/modelGeneric.mustache b/openapi-templates/modelGeneric.mustache index fad31d3ea..54942ea31 100644 --- a/openapi-templates/modelGeneric.mustache +++ b/openapi-templates/modelGeneric.mustache @@ -16,4 +16,8 @@ export interface {{classname}}{{#allParents}}{{#-first}} extends {{/-first}}{{{. {{/isReadOnly}} {{name}}{{^required}}?{{/required}}: {{{datatypeWithEnum}}}{{#nullable}}{{^isPrimitiveType}} | null{{/isPrimitiveType}}{{/nullable}}; {{/vars}} -}{{>modelGenericEnums}} +} +{{! Fjern tom namespace-blokk }} +{{#hasEnums}} +{{>modelGenericEnums}} +{{/hasEnums}} From acc06224bba9156fd53084e1a2390e9316aff915 Mon Sep 17 00:00:00 2001 From: gruble Date: Thu, 20 Nov 2025 12:19:56 +0100 Subject: [PATCH 15/16] =?UTF-8?q?Fjernet=20egen=20sorteringsrutine=20siden?= =?UTF-8?q?=20swagger-filene=20n=C3=A5=20er=20sortert=20fra=20API'et?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - sort-model-fields.ts | 49 -------------------------------------------- 2 files changed, 50 deletions(-) delete mode 100644 sort-model-fields.ts diff --git a/package.json b/package.json index f98974f2d..945078ae4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "ng": "ng", "generate-swagger-api-module": "ng-swagger-gen -c ng-swagger-gen.json", "generate-openapi-models": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.npm-script.json generate-models-index.ts", - "generate-openapi-models-sort": "npx openapi-generator-cli generate --generator-key regobs-client & ts-node --project tsconfig.npm-script.json generate-models-index.ts & ts-node --project tsconfig.npm-script.json sort-model-fields.ts", "start": "ionic serve", "build": "ionic build", "build:prod": "ng build --configuration production", diff --git a/sort-model-fields.ts b/sort-model-fields.ts deleted file mode 100644 index 18e202cf8..000000000 --- a/sort-model-fields.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Project, PropertySignature } from 'ts-morph'; -import { join } from 'path'; -import { readdirSync } from 'fs'; - -console.log(`Starter sortering av felter i modell-typer i alfabetisk rekkefølge...`); - -const modelDir = join(__dirname, '/src/app/modules/common-regobs-api/models'); -const files = readdirSync(modelDir).filter((f) => f.endsWith('.ts')); - -const project = new Project(); - -function normalizeName(name: string): string { - return name.replace(/^['"]|['"]$/g, ''); -} - -files.forEach((file) => { - const filePath = join(modelDir, file); - const sourceFile = project.addSourceFileAtPath(filePath); - - sourceFile.getInterfaces().forEach((intf) => { - // Hent ut alle props og deres JSDoc før du fjerner dem - const props = intf.getProperties().map((p: PropertySignature) => { - console.log(`Leser interface ${intf.getName()} i fil ${file}, property ${p.getName()}`); - return { - name: p.getName(), - type: p.getTypeNode()?.getText() ?? 'unknown', - hasQuestionToken: p.hasQuestionToken(), - }; - }); - - // Sorter props alfabetisk etter normalisert navn - const sorted = [...props].sort((a, b) => normalizeName(a.name).localeCompare(normalizeName(b.name), 'nb')); - - // Fjern ALLE eksisterende properties (og deres JSDoc) - intf.getProperties().forEach((p) => p.remove()); - - // Legg til sorterte properties med JSDoc - sorted.forEach((p) => { - console.log( - `Legger til property ${p.name} i alfabetisk rekkefølge til interface ${intf.getName()} i fil ${file}}` - ); - intf.addProperty(p); - }); - }); - - sourceFile.saveSync(); -}); - -console.log('Felter i alle modell-typer er sortert alfabetisk. TODO: JSDOC er utelatt pga. tekniske utfordringer'); From b8a5a5b22d644f6c7a9858ab37b855f71bdff24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Myhre?= Date: Fri, 21 Nov 2025 14:18:43 +0100 Subject: [PATCH 16/16] Generert nye modeller etter at felter i api ble sortert --- .../models/areas-dto-forecast-regions.ts | 2 +- .../common-regobs-api/models/areas-dto.ts | 2 +- .../models/at-a-glance-view-model.ts | 8 +- .../models/attachment-edit-model.ts | 26 +++++- .../attachment-view-model-url-formats.ts | 2 +- .../models/attachment-view-model.ts | 35 +++++++- .../avalanche-activity-obs-view-model.ts | 35 +++++++- .../avalanche-activity-obs2-edit-model.ts | 2 +- .../avalanche-activity-obs2-view-model.ts | 2 +- .../models/avalanche-danger-obs-view-model.ts | 2 +- .../avalanche-eval-problem-view-model.ts | 2 +- .../avalanche-eval-problem2-edit-model.ts | 38 ++++++++- .../avalanche-eval-problem2-view-model.ts | 38 ++++++++- .../models/avalanche-evaluation-view-model.ts | 2 +- .../avalanche-evaluation2-view-model.ts | 2 +- .../avalanche-evaluation3-edit-model.ts | 17 +++- .../avalanche-evaluation3-view-model.ts | 17 +++- .../models/avalanche-obs-edit-model.ts | 74 ++++++++++++++++- .../models/avalanche-obs-view-model.ts | 74 ++++++++++++++++- .../models/compression-test-edit-model.ts | 35 +++++++- .../models/compression-test-view-model.ts | 35 +++++++- .../common-regobs-api/models/county-dto.ts | 2 +- .../models/create-trip-dto.ts | 2 +- .../models/damage-obs-edit-model.ts | 2 +- .../models/damage-obs-view-model.ts | 2 +- .../models/danger-obs-edit-model.ts | 11 ++- .../models/danger-obs-view-model.ts | 11 ++- .../models/finish-trip-dto.ts | 2 +- .../models/forecast-region-dto.ts | 2 +- .../models/forecast-region-sub-region-dto.ts | 2 +- .../models/general-observation-edit-model.ts | 14 +++- .../models/general-observation-view-model.ts | 14 +++- .../models/geo-location-info.ts | 2 +- .../models/geo-location-summary.ts | 2 +- .../common-regobs-api/models/helptext-dto.ts | 2 +- .../models/ice-cover-edit-model.ts | 17 +++- .../models/ice-cover-view-model.ts | 17 +++- .../models/ice-thickness-edit-model.ts | 20 ++++- .../models/ice-thickness-layer-edit-model.ts | 11 ++- .../models/ice-thickness-layer-view-model.ts | 11 ++- .../models/ice-thickness-view-model.ts | 20 ++++- .../models/incident-edit-model.ts | 68 ++++++++++++++- .../models/incident-view-model.ts | 83 ++++++++++++++++++- .../common-regobs-api/models/kdv-element.ts | 2 +- .../models/kdv-elements-response-dto.ts | 2 +- .../models/landslide-edit-model.ts | 50 ++++++++++- .../models/landslide-view-model.ts | 50 ++++++++++- .../models/lat-lng-object.ts | 2 +- .../common-regobs-api/models/lat-lng.ts | 2 +- .../common-regobs-api/models/my-page-data.ts | 5 +- .../models/obs-location-edit-model.ts | 23 ++++- .../models/obs-location-view-model.ts | 33 +++++++- .../models/obs-locations-response-dto-v2.ts | 2 +- .../models/observer-competence-dto.ts | 2 +- .../models/observer-competence-level-dto.ts | 4 +- .../models/observer-group-dto.ts | 2 +- .../models/observer-patch-request-dto.ts | 2 +- .../models/observer-response-dto.ts | 2 +- .../models/observer-view-model.ts | 2 +- .../common-regobs-api/models/position-dto.ts | 2 +- .../models/problem-details.ts | 2 + .../models/property-filter.ts | 10 ++- .../models/reg-obs-generic-value.ts | 5 +- .../models/registration-edit-model.ts | 19 ++++- .../models/registration-type-criteria-dto.ts | 2 +- .../models/registration-type-dto.ts | 2 +- .../models/registration-type-sub-type-dto.ts | 2 +- .../models/registration-view-model.ts | 11 ++- .../models/registrations-with-attachments.ts | 8 +- .../models/search-count-response-dto.ts | 2 +- .../search-criteria-excl-user-request-dto.ts | 47 ++++++++++- .../models/search-criteria-request-dto.ts | 62 +++++++++++++- ...side-bar-dto-observer-competence-levels.ts | 2 +- .../search-side-bar-dto-registration-types.ts | 2 +- .../models/search-side-bar-dto.ts | 2 +- .../models/search-side-bar-request-dto.ts | 10 ++- .../models/snow-cover-obs-view-model.ts | 20 ++++- .../models/snow-density-layer-model.ts | 11 ++- .../models/snow-density-model.ts | 2 +- .../models/snow-profile-edit-model.ts | 2 +- .../models/snow-profile-view-model.ts | 5 +- .../models/snow-surface-edit-model.ts | 32 ++++++- .../models/snow-surface-view-model.ts | 38 ++++++++- .../models/snow-temp-model.ts | 2 +- .../models/snow-temp-obs-model.ts | 2 +- .../models/strat-profile-edit-model.ts | 2 +- .../models/strat-profile-layer-edit-model.ts | 2 +- .../models/strat-profile-layer-view-model.ts | 2 +- .../models/strat-profile-view-model.ts | 2 +- .../common-regobs-api/models/summary.ts | 2 +- .../models/url-edit-model.ts | 8 +- .../models/url-view-model.ts | 8 +- .../water-level-measurement-edit-model.ts | 2 +- .../water-level-measurement-view-model.ts | 2 +- .../models/water-level-view-model.ts | 2 +- .../models/waterlevel2-edit-model.ts | 5 +- .../models/waterlevel2-view-model.ts | 5 +- .../models/weather-edit-model.ts | 2 +- .../models/weather-view-model.ts | 2 +- .../models/within-extent-criteria-dto.ts | 2 +- .../models/within-radius-criteria-dto.ts | 2 +- 101 files changed, 1196 insertions(+), 110 deletions(-) diff --git a/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts b/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts index 11ead3dd1..bae511222 100644 --- a/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts +++ b/src/app/modules/common-regobs-api/models/areas-dto-forecast-regions.ts @@ -7,7 +7,7 @@ import { ForecastRegionDto } from './forecast-region-dto'; -export interface AreasDtoForecastRegions { +export interface AreasDtoForecastRegions { Avalanche?: Array; Drought?: Array; EarthFlow?: Array; diff --git a/src/app/modules/common-regobs-api/models/areas-dto.ts b/src/app/modules/common-regobs-api/models/areas-dto.ts index a7dc323a1..3db358b3a 100644 --- a/src/app/modules/common-regobs-api/models/areas-dto.ts +++ b/src/app/modules/common-regobs-api/models/areas-dto.ts @@ -8,7 +8,7 @@ import { AreasDtoForecastRegions } from './areas-dto-forecast-regions'; import { CountyDto } from './county-dto'; -export interface AreasDto { +export interface AreasDto { Counties?: Array; CountryDescription?: string; CountryId: number; diff --git a/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts b/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts index cc21e9008..92667f566 100644 --- a/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts +++ b/src/app/modules/common-regobs-api/models/at-a-glance-view-model.ts @@ -6,10 +6,16 @@ -export interface AtAGlanceViewModel { +export interface AtAGlanceViewModel { + /** + * Count of all attachments + */ AttachmentsCount?: number; CompetenceLevelTID?: number; DtObsTime: string; + /** + * Returns first attachement url from the observation or null + */ FirstAttachmentUrl?: string; FormNames?: Array; GeoHazardTID?: number; diff --git a/src/app/modules/common-regobs-api/models/attachment-edit-model.ts b/src/app/modules/common-regobs-api/models/attachment-edit-model.ts index 2d364326d..2c837fb1d 100644 --- a/src/app/modules/common-regobs-api/models/attachment-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/attachment-edit-model.ts @@ -6,16 +6,40 @@ -export interface AttachmentEditModel { +export interface AttachmentEditModel { + /** + * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ Aspect?: number; AttachmentId?: number; AttachmentMimeType?: string; + /** + * Last opp attachment på forhånd og sett AttachmentUploadId + */ AttachmentUploadId?: string; + /** + * Kommentarfelt for bildet. F.eks for å beskrive det. + */ Comment?: string; + /** + * Rettigheter til bilde. + */ Copyright?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ GeoHazardTID?: number; + /** + * Om bildet skal vises først i registreringen, eller ikke + */ IsMainAttachment?: boolean; + /** + * Navn på fotograf. + */ Photographer?: string; + /** + * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier + */ RegistrationTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts b/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts index 425503f9a..5ba9f58f4 100644 --- a/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts +++ b/src/app/modules/common-regobs-api/models/attachment-view-model-url-formats.ts @@ -9,7 +9,7 @@ /** * Urls in different formats */ -export interface AttachmentViewModelUrlFormats { +export interface AttachmentViewModelUrlFormats { Large?: string; Medium?: string; Original?: string; diff --git a/src/app/modules/common-regobs-api/models/attachment-view-model.ts b/src/app/modules/common-regobs-api/models/attachment-view-model.ts index f715418d1..5faac74e9 100644 --- a/src/app/modules/common-regobs-api/models/attachment-view-model.ts +++ b/src/app/modules/common-regobs-api/models/attachment-view-model.ts @@ -7,19 +7,52 @@ import { AttachmentViewModelUrlFormats } from './attachment-view-model-url-formats'; -export interface AttachmentViewModel { +export interface AttachmentViewModel { + /** + * Hvilken himmelretning peker bilde. Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ Aspect?: number; AttachmentId?: number; AttachmentMimeType?: string; + /** + * Kommentarfelt for bildet. F.eks for å beskrive det. + */ Comment?: string; + /** + * Rettigheter til bilde. + */ Copyright?: string; + /** + * GeoHazard name + */ GeoHazardName?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ GeoHazardTID?: number; + /** + * Om bildet skal vises først i registreringen, eller ikke + */ IsMainAttachment?: boolean; + /** + * If true, the attachment is an image generated from a snow profile plot + */ IsSnowProfilePlot: boolean; + /** + * Navn på fotograf. + */ Photographer?: string; + /** + * Registration name + */ RegistrationName?: string; + /** + * Hva er bildet av. Dette feltet relaterer bildet til en observasjonstype. Feks værobservasjon, faretegn, osv. The RegistrationKD unique identifier + */ RegistrationTID?: number; + /** + * Full original image url + */ Url?: string; UrlFormats?: AttachmentViewModelUrlFormats; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts index 0d8173352..f749cd5a3 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs-view-model.ts @@ -6,24 +6,57 @@ -export interface AvalancheActivityObsViewModel { +export interface AvalancheActivityObsViewModel { + /** + * Hvilken side av fjellene har skredene gått? Gis i grader slik gitt på kompass. 0 er nord og 90 er øst osv. + */ Aspect: number; + /** + * Unik id på denne tabellen da flere er mulig pr RegID. + */ AvalancheActivityObsID: number; AvalancheName?: string; + /** + * Typen skred som er gått. The AvalancheKD unique identifier + */ AvalancheTID?: number; AvalancheTriggerName?: string; + /** + * Hva utløste skredet? Det er ofte beskrevet som det svake laget i snødekket. The AvalancheTriggerKD unique identifier + */ AvalancheTriggerTID?: number; + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ Comment?: string; DestructiveSizeName?: string; + /** + * Hvor store er skredene?. The DestructiveSizeKD unique identifier + */ DestructiveSizeTID?: number; + /** + * Når gikk skredene? Her bruker vi feltet som en ca. tid og brukerene oppfordres til å anta best mulig. + */ DtAvalancheTime: string; DtOffAvalancheTime: string; EstimatedNumName?: string; + /** + * Hvor mange skred er gått? The EstimatedNumKD unique identifier + */ EstimatedNumTID?: number; + /** + * Meter over havet på løsneområdet. + */ HeigthStartZone: number; + /** + * Hvor går snøgrensa i området? + */ SnowLine?: number; SnowLineName?: string; TerrainStartZoneName?: string; + /** + * Hva slags terrengtype var det i løsneområdet. The TerrainStartZoneKD unique identifier + */ TerrainStartZoneTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts index 0fe9a74ab..1a6a14591 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-edit-model.ts @@ -6,7 +6,7 @@ -export interface AvalancheActivityObs2EditModel { +export interface AvalancheActivityObs2EditModel { AvalancheExtTID?: number; AvalCauseTID?: number; AvalPropagationTID?: number; diff --git a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts index 17d4b91c1..648a993ee 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-activity-obs2-view-model.ts @@ -6,7 +6,7 @@ -export interface AvalancheActivityObs2ViewModel { +export interface AvalancheActivityObs2ViewModel { AvalancheExtName?: string; AvalancheExtTID?: number; AvalCauseName?: string; diff --git a/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts index 7ddef5d10..edf690bfe 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-danger-obs-view-model.ts @@ -6,7 +6,7 @@ -export interface AvalancheDangerObsViewModel { +export interface AvalancheDangerObsViewModel { AvalancheDangerObsID: number; Comment?: string; DangerSignName?: string; diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts index a12233e69..11dbcbd6a 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem-view-model.ts @@ -6,7 +6,7 @@ -export interface AvalancheEvalProblemViewModel { +export interface AvalancheEvalProblemViewModel { AvalancheEvalProblemID: number; AvalancheExtName?: string; AvalancheExtTID?: number; diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts index bbe9e2e1f..fb9e60764 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-edit-model.ts @@ -6,22 +6,58 @@ -export interface AvalancheEvalProblem2EditModel { +export interface AvalancheEvalProblem2EditModel { + /** + * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier + */ AvalancheExtTID?: number; AvalCauseAttributeCrystalTID: number; AvalCauseAttributeLightTID: number; AvalCauseAttributeSoftTID: number; AvalCauseAttributeThinTID: number; + /** + * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier + */ AvalCauseDepthTID?: number; + /** + * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier + */ AvalCauseTID?: number; + /** + * Sannsynlighet for skred. The AvalProbabilityKD unique identifier + */ AvalProbabilityTID?: number; + /** + * + */ AvalPropagationTID?: number; + /** + * The AvalTriggerSimpleKD unique identifier + */ AvalTriggerSimpleTID?: number; + /** + * Kommentar til skredproblemet + */ Comment?: string; + /** + * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier + */ DestructiveSizeTID?: number; + /** + * Øverste høyde på “utsatt høyde” symbolet. + */ ExposedHeight1?: number; + /** + * Nederste høyde på “utsatt høyde” symbolet. + */ ExposedHeight2?: number; + /** + * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier + */ ExposedHeightComboTID?: number; + /** + * Velg utsatte retninger + */ ValidExposition?: string; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts index 46bd7302e..c75849da0 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-eval-problem2-view-model.ts @@ -6,8 +6,11 @@ -export interface AvalancheEvalProblem2ViewModel { +export interface AvalancheEvalProblem2ViewModel { AvalancheExtName?: string; + /** + * Skredtype. I appen er dette 1. felt under skredproblem. The AvalancheExtKD unique identifier + */ AvalancheExtTID?: number; AvalCauseAttributeCrystalName?: string; AvalCauseAttributeCrystalTID: number; @@ -18,22 +21,55 @@ export interface AvalancheEvalProblem2ViewModel { AvalCauseAttributeThinName?: string; AvalCauseAttributeThinTID: number; AvalCauseDepthName?: string; + /** + * Hvor dypt ligger det overnevnte svake laget? The AvalCauseDepthKD unique identifier + */ AvalCauseDepthTID?: number; AvalCauseName?: string; + /** + * Hvilket svakt lag løsner skredet på? The AvalCauseKD unique identifier + */ AvalCauseTID?: number; AvalProbabilityName?: string; + /** + * Sannsynlighet for skred. The AvalProbabilityKD unique identifier + */ AvalProbabilityTID?: number; AvalPropagationName?: string; + /** + * + */ AvalPropagationTID?: number; AvalTriggerSimpleName?: string; + /** + * The AvalTriggerSimpleKD unique identifier + */ AvalTriggerSimpleTID?: number; + /** + * Kommentar til skredproblemet + */ Comment?: string; DestructiveSizeName?: string; + /** + * Sannsynlig tilleggsbelastning for å utløse skred. The DestructiveSizeKD unique identifier + */ DestructiveSizeTID?: number; + /** + * Øverste høyde på “utsatt høyde” symbolet. + */ ExposedHeight1?: number; + /** + * Nederste høyde på “utsatt høyde” symbolet. + */ ExposedHeight2?: number; ExposedHeightComboName?: string; + /** + * Hvilket symbol brukes? Er utsatt tereng over ExposedHeight2 eller under den? The ExposedHeightComboKD unique identifier + */ ExposedHeightComboTID?: number; + /** + * Velg utsatte retninger + */ ValidExposition?: string; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts index 996575426..00d6c37fd 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation-view-model.ts @@ -6,7 +6,7 @@ -export interface AvalancheEvaluationViewModel { +export interface AvalancheEvaluationViewModel { AvalancheDangerName?: string; AvalancheDangerTID: number; AvalancheEvaluation1?: string; diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts index f19c397c8..5a2c19e71 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation2-view-model.ts @@ -7,7 +7,7 @@ import { AvalancheEvalProblemViewModel } from './avalanche-eval-problem-view-model'; -export interface AvalancheEvaluation2ViewModel { +export interface AvalancheEvaluation2ViewModel { AvalancheDangerName?: string; AvalancheDangerTID?: number; AvalancheDevelopment?: string; diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts index 42e34d539..253ca3111 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-edit-model.ts @@ -6,11 +6,26 @@ -export interface AvalancheEvaluation3EditModel { +export interface AvalancheEvaluation3EditModel { + /** + * Faregrad. The AvalancheDangerKD unique identifier + */ AvalancheDangerTID?: number; + /** + * Her blir forventet utvikling skrevet inn. + */ AvalancheDevelopment?: string; + /** + * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen + */ AvalancheEvaluation?: string; + /** + * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. + */ ForecastComment?: string; + /** + * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier + */ ForecastCorrectTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts index d69b2e0c9..b0a03ed81 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-evaluation3-view-model.ts @@ -6,13 +6,28 @@ -export interface AvalancheEvaluation3ViewModel { +export interface AvalancheEvaluation3ViewModel { AvalancheDangerName?: string; + /** + * Faregrad. The AvalancheDangerKD unique identifier + */ AvalancheDangerTID?: number; + /** + * Her blir forventet utvikling skrevet inn. + */ AvalancheDevelopment?: string; + /** + * Her blir Skredfarevurdering skrevet inn. I appen blir “Utstrekning” lagt til som tekst i denne kolonnen + */ AvalancheEvaluation?: string; + /** + * Kommetarfelt for utdypende kommentar om varslet stemmer eller ikke. + */ ForecastComment?: string; ForecastCorrectName?: string; + /** + * Felt hvor observatøren kan fortelle de syns varslet stemmer. Valg fra liste gitt i ForecastCorrectKD. The ForecastCorrectKD unique identifier + */ ForecastCorrectTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts index e9d428293..62214240d 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-obs-edit-model.ts @@ -6,30 +6,102 @@ -export interface AvalancheObsEditModel { +export interface AvalancheObsEditModel { + /** + * Eksposisjon + */ Aspect?: number; + /** + * Skredtype. The AvalancheKD unique identifier + */ AvalancheTID?: number; + /** + * Skredutløser. The AvalancheTriggerKD unique identifier + */ AvalancheTriggerTID?: number; + /** + * Skredutløser. The AvalCauseTID unique identifier + */ AvalCauseTID?: number; + /** + * Comment + */ Comment?: string; + /** + * Størrelse. The DestructiveSizeKD unique identifier + */ DestructiveSizeTID?: number; + /** + * Tid da skredet gikk. + */ DtAvalancheTime: string; + /** + * Tidligste tidspunkt da skredet gikk. + */ DtEarliestAvalancheTime?: string; + /** + * Hull of avalanche polygon, List(lon, lat) + */ Extent?: Array>; + /** + * Bruddhøyde + */ FractureHeight?: number; + /** + * Bruddbredde + */ FractureWidth?: number; + /** + * Høyde i løsneområde + */ HeightStartZone?: number; + /** + * Høyde i stoppområdet + */ HeightStopZone?: number; + /** + * Ble skredet fjernutløst? + */ RemotelyTriggered?: boolean; + /** + * SnowLine + */ SnowLine?: number; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ StartExtent?: Array>; + /** + * StartLat + */ StartLat?: number; + /** + * StartLong + */ StartLong?: number; + /** + * Hull of avalanche runout zone, List (lon, lat) + */ StopExtent?: Array>; + /** + * StopLat + */ StopLat?: number; + /** + * StopLong + */ StopLong?: number; + /** + * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier + */ TerrainStartZoneTID?: number; + /** + * Skredbanenavn + */ Trajectory?: string; + /** + * ValidExposition + */ ValidExposition?: string; } diff --git a/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts b/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts index f693d4f2c..78bf9b4a9 100644 --- a/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/avalanche-obs-view-model.ts @@ -6,35 +6,107 @@ -export interface AvalancheObsViewModel { +export interface AvalancheObsViewModel { + /** + * Eksposisjon + */ Aspect?: number; AvalancheName?: string; + /** + * Skredtype. The AvalancheKD unique identifier + */ AvalancheTID?: number; AvalancheTriggerName?: string; + /** + * Skredutløser. The AvalancheTriggerKD unique identifier + */ AvalancheTriggerTID?: number; AvalCauseName?: string; + /** + * Skredutløser. The AvalCauseTID unique identifier + */ AvalCauseTID?: number; + /** + * Comment + */ Comment?: string; DestructiveSizeName?: string; + /** + * Størrelse. The DestructiveSizeKD unique identifier + */ DestructiveSizeTID?: number; + /** + * Tid da skredet gikk. + */ DtAvalancheTime: string; + /** + * Tidligste tidspunkt da skredet gikk. + */ DtEarliestAvalancheTime?: string; + /** + * Hull of avalanche polygon, List(lon, lat) + */ Extent?: Array>; + /** + * Bruddhøyde + */ FractureHeight?: number; + /** + * Bruddbredde + */ FractureWidth?: number; + /** + * Høyde i løsneområde + */ HeightStartZone?: number; + /** + * Høyde i stoppområdet + */ HeightStopZone?: number; + /** + * Ble skredet fjernutløst? + */ RemotelyTriggered?: boolean; + /** + * SnowLine + */ SnowLine?: number; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ StartExtent?: Array>; + /** + * StartLat + */ StartLat?: number; + /** + * StartLong + */ StartLong?: number; + /** + * Hull of avalanche runout zone, List (lon, lat) + */ StopExtent?: Array>; + /** + * StopLat + */ StopLat?: number; + /** + * StopLong + */ StopLong?: number; TerrainStartZoneName?: string; + /** + * Terrengtype i løsneområdet. The TerrainStartZoneKD unique identifier + */ TerrainStartZoneTID?: number; + /** + * Skredbanenavn + */ Trajectory?: string; + /** + * ValidExposition + */ ValidExposition?: string; } diff --git a/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts b/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts index 1e80e60c8..5da1ee966 100644 --- a/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/compression-test-edit-model.ts @@ -6,18 +6,51 @@ -export interface CompressionTestEditModel { +export interface CompressionTestEditModel { + /** + * Comment + */ Comment?: string; + /** + * The CompressionTestKDV unique identifier + */ CompressionTestTID?: number; + /** + * The ComprTestFractureKD unique identifier + */ ComprTestFractureTID?: number; + /** + * FractureDepth + */ FractureDepth?: number; IncludeInSnowProfile?: boolean; + /** + * The PropagationKD unique identifier + */ PropagationTID?: number; + /** + * PST X distance (in meters) + */ PstX?: number; + /** + * PST Y distance (in meters) + */ PstY?: number; + /** + * Percentage of block that released in Rutchblock test + */ RbRelease?: number; + /** + * The StabilityEvalKD unique identifier + */ StabilityEvalTID?: number; + /** + * TapsFracture + */ TapsFracture?: number; + /** + * TapsFullPropagation + */ TapsFullPropagation?: number; } diff --git a/src/app/modules/common-regobs-api/models/compression-test-view-model.ts b/src/app/modules/common-regobs-api/models/compression-test-view-model.ts index b70ce850e..76e547810 100644 --- a/src/app/modules/common-regobs-api/models/compression-test-view-model.ts +++ b/src/app/modules/common-regobs-api/models/compression-test-view-model.ts @@ -6,22 +6,55 @@ -export interface CompressionTestViewModel { +export interface CompressionTestViewModel { + /** + * Comment + */ Comment?: string; CompressionTestName?: string; + /** + * The CompressionTestKDV unique identifier + */ CompressionTestTID?: number; ComprTestFractureName?: string; + /** + * The ComprTestFractureKD unique identifier + */ ComprTestFractureTID?: number; + /** + * FractureDepth + */ FractureDepth?: number; IncludeInSnowProfile?: boolean; PropagationName?: string; + /** + * The PropagationKD unique identifier + */ PropagationTID?: number; + /** + * PST X distance (in meters) + */ PstX?: number; + /** + * PST Y distance (in meters) + */ PstY?: number; + /** + * Percentage of block that released in Rutchblock test + */ RbRelease?: number; StabilityEvalName?: string; + /** + * The StabilityEvalKD unique identifier + */ StabilityEvalTID?: number; + /** + * TapsFracture + */ TapsFracture?: number; + /** + * TapsFullPropagation + */ TapsFullPropagation?: number; } diff --git a/src/app/modules/common-regobs-api/models/county-dto.ts b/src/app/modules/common-regobs-api/models/county-dto.ts index 663ac4902..fcfb6d5c9 100644 --- a/src/app/modules/common-regobs-api/models/county-dto.ts +++ b/src/app/modules/common-regobs-api/models/county-dto.ts @@ -6,7 +6,7 @@ -export interface CountyDto { +export interface CountyDto { CountyNo?: string; Name?: string; } diff --git a/src/app/modules/common-regobs-api/models/create-trip-dto.ts b/src/app/modules/common-regobs-api/models/create-trip-dto.ts index a11efef2e..0aefc1897 100644 --- a/src/app/modules/common-regobs-api/models/create-trip-dto.ts +++ b/src/app/modules/common-regobs-api/models/create-trip-dto.ts @@ -6,7 +6,7 @@ -export interface CreateTripDto { +export interface CreateTripDto { Comment?: string; DeviceGuid: string; GeoHazardID: number; diff --git a/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts index c25c216e6..e3599a5c0 100644 --- a/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/damage-obs-edit-model.ts @@ -8,7 +8,7 @@ import { LatLng } from './lat-lng'; import { AttachmentEditModel } from './attachment-edit-model'; -export interface DamageObsEditModel { +export interface DamageObsEditModel { Attachments?: Array; Comment?: string; DamagePosition?: LatLng; diff --git a/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts b/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts index 21360b6a6..e1862b153 100644 --- a/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/damage-obs-view-model.ts @@ -8,7 +8,7 @@ import { AttachmentViewModel } from './attachment-view-model'; import { LatLng } from './lat-lng'; -export interface DamageObsViewModel { +export interface DamageObsViewModel { Attachments?: Array; Comment?: string; DamagePosition?: LatLng; diff --git a/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts index 9af9cdaef..74b288659 100644 --- a/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/danger-obs-edit-model.ts @@ -6,9 +6,18 @@ -export interface DangerObsEditModel { +export interface DangerObsEditModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om faretegnet. + */ Comment?: string; + /** + * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier + */ DangerSignTID?: number; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ GeoHazardTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts b/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts index e8991d929..32ab7baec 100644 --- a/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/danger-obs-view-model.ts @@ -6,11 +6,20 @@ -export interface DangerObsViewModel { +export interface DangerObsViewModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om faretegnet. + */ Comment?: string; DangerSignName?: string; + /** + * Faretegn er listet i tabellen DangerSignKD. The DangerSignKD unique identifier + */ DangerSignTID?: number; GeoHazardName?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ GeoHazardTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/finish-trip-dto.ts b/src/app/modules/common-regobs-api/models/finish-trip-dto.ts index fc4e13194..9de49f1ae 100644 --- a/src/app/modules/common-regobs-api/models/finish-trip-dto.ts +++ b/src/app/modules/common-regobs-api/models/finish-trip-dto.ts @@ -6,7 +6,7 @@ -export interface FinishTripDto { +export interface FinishTripDto { DeviceGuid: string; } diff --git a/src/app/modules/common-regobs-api/models/forecast-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-dto.ts index c7abb40d0..2b6b5616a 100644 --- a/src/app/modules/common-regobs-api/models/forecast-region-dto.ts +++ b/src/app/modules/common-regobs-api/models/forecast-region-dto.ts @@ -7,7 +7,7 @@ import { ForecastRegionSubRegionDto } from './forecast-region-sub-region-dto'; -export interface ForecastRegionDto { +export interface ForecastRegionDto { Id: number; IsRegionForGrouping: boolean; SortOrder: number; diff --git a/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts b/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts index cd51f6df0..d859de434 100644 --- a/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts +++ b/src/app/modules/common-regobs-api/models/forecast-region-sub-region-dto.ts @@ -6,7 +6,7 @@ -export interface ForecastRegionSubRegionDto { +export interface ForecastRegionSubRegionDto { Id: number; RegionType?: string; SortOrder: number; diff --git a/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts b/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts index a3bb9bf80..97e6a1c5d 100644 --- a/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/general-observation-edit-model.ts @@ -7,10 +7,22 @@ import { UrlEditModel } from './url-edit-model'; -export interface GeneralObservationEditModel { +export interface GeneralObservationEditModel { + /** + * Kommentarfelt for å skrive utfyllende tekst + */ Comment?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ GeoHazardTID?: number; + /** + * Selve registreringen. + */ ObsComment?: string; + /** + * Overskriften (hovedpoenget). + */ ObsHeader?: string; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/general-observation-view-model.ts b/src/app/modules/common-regobs-api/models/general-observation-view-model.ts index e3a5a3f1f..47ffd0bec 100644 --- a/src/app/modules/common-regobs-api/models/general-observation-view-model.ts +++ b/src/app/modules/common-regobs-api/models/general-observation-view-model.ts @@ -7,11 +7,23 @@ import { UrlViewModel } from './url-view-model'; -export interface GeneralObservationViewModel { +export interface GeneralObservationViewModel { + /** + * Kommentarfelt for å skrive utfyllende tekst + */ Comment?: string; GeoHazardName?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ GeoHazardTID?: number; + /** + * Selve registreringen. + */ ObsComment?: string; + /** + * Overskriften (hovedpoenget). + */ ObsHeader?: string; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/geo-location-info.ts b/src/app/modules/common-regobs-api/models/geo-location-info.ts index 608b0eb2d..dcb052392 100644 --- a/src/app/modules/common-regobs-api/models/geo-location-info.ts +++ b/src/app/modules/common-regobs-api/models/geo-location-info.ts @@ -6,7 +6,7 @@ -export interface GeoLocationInfo { +export interface GeoLocationInfo { AdminAreaId?: string; AdminAreaName?: string; Country?: string; diff --git a/src/app/modules/common-regobs-api/models/geo-location-summary.ts b/src/app/modules/common-regobs-api/models/geo-location-summary.ts index 63ca13abf..741a98b93 100644 --- a/src/app/modules/common-regobs-api/models/geo-location-summary.ts +++ b/src/app/modules/common-regobs-api/models/geo-location-summary.ts @@ -6,7 +6,7 @@ -export interface GeoLocationSummary { +export interface GeoLocationSummary { Header?: string; Lines?: Array; } diff --git a/src/app/modules/common-regobs-api/models/helptext-dto.ts b/src/app/modules/common-regobs-api/models/helptext-dto.ts index 6ddee0270..342307460 100644 --- a/src/app/modules/common-regobs-api/models/helptext-dto.ts +++ b/src/app/modules/common-regobs-api/models/helptext-dto.ts @@ -6,7 +6,7 @@ -export interface HelptextDto { +export interface HelptextDto { GeoHazardTID: number; LangKey: number; RegistrationTID: number; diff --git a/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts index aa360d939..535a1ba5d 100644 --- a/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-cover-edit-model.ts @@ -7,12 +7,27 @@ import { UrlEditModel } from './url-edit-model'; -export interface IceCoverEditModel { +export interface IceCoverEditModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ Comment?: string; + /** + * Bæreevne. IceCapacityKD unique identifier + */ IceCapacityTID?: number; IceCoverAfterTID?: number; + /** + * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier + */ IceCoverBeforeTID?: number; + /** + * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier + */ IceCoverTID?: number; + /** + * Skøytebarhet. IceSkateabilityKD unique identifier + */ IceSkateabilityTID?: number; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts b/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts index ce3b930ab..c92241cdf 100644 --- a/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-cover-view-model.ts @@ -7,17 +7,32 @@ import { UrlViewModel } from './url-view-model'; -export interface IceCoverViewModel { +export interface IceCoverViewModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ Comment?: string; IceCapacityName?: string; + /** + * Bæreevne. IceCapacityKD unique identifier + */ IceCapacityTID?: number; IceCoverAfterName?: string; IceCoverAfterTID?: number; IceCoverBeforeName?: string; + /** + * Hvordan har vannet vært isdekt før den aktuelle observajonen? Feks var det isfritt? Feltet sier noe om hvordan utviklingen er. The IceCoverBeforeKD unique identifier + */ IceCoverBeforeTID?: number; IceCoverName?: string; + /** + * Hvordan er vannet dekket av is nå. The IceCoverKD unique identifier + */ IceCoverTID?: number; IceSkateabilityName?: string; + /** + * Skøytebarhet. IceSkateabilityKD unique identifier + */ IceSkateabilityTID?: number; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts index a8ebed0a8..13a0adc9e 100644 --- a/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-thickness-edit-model.ts @@ -7,13 +7,31 @@ import { IceThicknessLayerEditModel } from './ice-thickness-layer-edit-model'; -export interface IceThicknessEditModel { +export interface IceThicknessEditModel { + /** + * Comment + */ Comment?: string; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. + */ IceHeightAfter?: number; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. + */ IceHeightBefore?: number; IceThicknessLayers?: Array; + /** + * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. + */ IceThicknessSum?: number; + /** + * Mengden sørpe oppå isen. Verdi i meter [m]. + */ SlushSnow?: number; + /** + * Mengden tørr snø oppå isen. Verdi i meter [m]. + */ SnowDepth?: number; } diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts index bd4b4a255..277aba206 100644 --- a/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-thickness-layer-edit-model.ts @@ -6,9 +6,18 @@ -export interface IceThicknessLayerEditModel { +export interface IceThicknessLayerEditModel { + /** + * Comment + */ Comment?: string; + /** + * IceLayerThickness + */ IceLayerThickness?: number; + /** + * The IceLayerKD unique identifier + */ IceLayerTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts index d1bef8386..251b2cb8a 100644 --- a/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-thickness-layer-view-model.ts @@ -6,10 +6,19 @@ -export interface IceThicknessLayerViewModel { +export interface IceThicknessLayerViewModel { + /** + * Comment + */ Comment?: string; IceLayerName?: string; + /** + * IceLayerThickness + */ IceLayerThickness?: number; + /** + * The IceLayerKD unique identifier + */ IceLayerTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts b/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts index 9580968f4..f92887735 100644 --- a/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts +++ b/src/app/modules/common-regobs-api/models/ice-thickness-view-model.ts @@ -7,13 +7,31 @@ import { IceThicknessLayerViewModel } from './ice-thickness-layer-view-model'; -export interface IceThicknessViewModel { +export interface IceThicknessViewModel { + /** + * Comment + */ Comment?: string; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden etter borring. IPositive verdier angir at vannet står nedi hulet og og negative verdier angir overvann. Verdi i meter [m]. + */ IceHeightAfter?: number; + /** + * Isen kan være presset under vannspeilet eller flyte oppå. Her registreres denne høyden før borring. IceHeightBefore = 0 betyr at isen er tørr og negative verdier angir overvann. Verdi i meter [m]. + */ IceHeightBefore?: number; IceThicknessLayers?: Array; + /** + * Total istykkelse. I tabellen IceThicknessLayer kan individuelle islag registreres. Summen av dem skal samsvare med IceThickenssSum. Verdi i meter [m]. + */ IceThicknessSum?: number; + /** + * Mengden sørpe oppå isen. Verdi i meter [m]. + */ SlushSnow?: number; + /** + * Mengden tørr snø oppå isen. Verdi i meter [m]. + */ SnowDepth?: number; } diff --git a/src/app/modules/common-regobs-api/models/incident-edit-model.ts b/src/app/modules/common-regobs-api/models/incident-edit-model.ts index 1d371f667..10ded9a10 100644 --- a/src/app/modules/common-regobs-api/models/incident-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/incident-edit-model.ts @@ -7,28 +7,94 @@ import { UrlEditModel } from './url-edit-model'; -export interface IncidentEditModel { +export interface IncidentEditModel { + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ ActivityInfluencedTID?: number; + /** + * Hvor mange var i skredet/vannet? + */ CasualtiesNum?: number; + /** + * Comment. + */ Comment?: string; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ DamageExtentTID?: number; + /** + * Hvor mange døde? + */ DeadNum?: number; + /** + * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? + */ DtEndTime?: string; + /** + * Hvor mange evakuerte? + */ EvacuatedNum?: number; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ ForecastAccurateTID?: number; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ GeoHazardTID?: number; + /** + * Hvor mange vart skadd? + */ HarmedNum?: number; + /** + * Hendelsen beskrives med overskrift .. + */ IncidentHeader?: string; + /** + * .. med ingress eller sammendrag .. + */ IncidentIngress?: string; + /** + * .. og teksten eller artikkelen. + */ IncidentText?: string; + /** + * Provide description for IncidentURLs + */ IncidentURLs?: Array; + /** + * Hvor mange var involvert? + */ InvolvedNum?: number; + /** + * Hvor ofte er man i området? + */ LocalKnowledgeTID?: number; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ LocalTouristTID?: number; + /** + * Er det noen materielle skader? + */ MaterialDamages?: boolean; + /** + * Hvem gjennomførte redningen? + */ RescueTID?: number; + /** + * Var det noe sikkerhetsutstyr i bruk? + */ SafetyGearTID?: number; + /** + * Hvilken turfase? + */ SlopeActivityTID?: number; + /** + * Er trafikk hindret? + */ TrafficObstructed?: boolean; } diff --git a/src/app/modules/common-regobs-api/models/incident-view-model.ts b/src/app/modules/common-regobs-api/models/incident-view-model.ts index 686ca0223..f6f5dd7bc 100644 --- a/src/app/modules/common-regobs-api/models/incident-view-model.ts +++ b/src/app/modules/common-regobs-api/models/incident-view-model.ts @@ -7,37 +7,118 @@ import { UrlViewModel } from './url-view-model'; -export interface IncidentViewModel { +export interface IncidentViewModel { ActivityInfluencedName?: string; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ ActivityInfluencedTID?: number; + /** + * Hvor mange var i skredet/vannet? + */ CasualtiesNum?: number; + /** + * Comment. + */ Comment?: string; DamageExtentName?: string; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ DamageExtentTID?: number; + /** + * Hvor mange døde? + */ DeadNum?: number; + /** + * Om hendelsen strakte seg ut i tid, når sluttet den å gjelde? Feks, når åpnet veien igjen etter raset? + */ DtEndTime?: string; + /** + * Hvor mange evakuerte? + */ EvacuatedNum?: number; ForecastAccurateName?: string; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ ForecastAccurateTID?: number; GeoHazardName?: string; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). + */ GeoHazardTID?: number; + /** + * Hvor mange vart skadd? + */ HarmedNum?: number; + /** + * Hendelsen beskrives med overskrift .. + */ IncidentHeader?: string; + /** + * .. med ingress eller sammendrag .. + */ IncidentIngress?: string; + /** + * .. og teksten eller artikkelen. + */ IncidentText?: string; + /** + * Provide description for IncidentURLs + */ IncidentURLs?: Array; + /** + * Hvor mange var involvert? + */ InvolvedNum?: number; + /** + * Hvor ofte er man i området? + */ LocalKnowledgeName?: string; + /** + * Hvor ofte er man i området? + */ LocalKnowledgeTID?: number; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ LocalTouristName?: string; + /** + * Var man lokal, norsk eller utenlandsk turist? + */ LocalTouristTID?: number; + /** + * Er det noen materielle skader? + */ MaterialDamages?: boolean; + /** + * Hvem gjennomførte redningen? + */ RescueName?: string; + /** + * Hvem gjennomførte redningen? + */ RescueTID?: number; + /** + * Hadde man sikkerhetsutstyr? + */ SafetyGearName?: string; + /** + * Var det noe sikkerhetsutstyr i bruk? + */ SafetyGearTID?: number; + /** + * Hvilken turfase gjelder det? + */ SlopeActivityName?: string; + /** + * Hvilken turfase? + */ SlopeActivityTID?: number; + /** + * Er trafikk hindret? + */ TrafficObstructed?: boolean; } diff --git a/src/app/modules/common-regobs-api/models/kdv-element.ts b/src/app/modules/common-regobs-api/models/kdv-element.ts index 155b90010..47524a10d 100644 --- a/src/app/modules/common-regobs-api/models/kdv-element.ts +++ b/src/app/modules/common-regobs-api/models/kdv-element.ts @@ -6,7 +6,7 @@ -export interface KdvElement { +export interface KdvElement { Description?: string; Id: number; Name?: string; diff --git a/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts b/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts index d037c41c6..270b708f6 100644 --- a/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts +++ b/src/app/modules/common-regobs-api/models/kdv-elements-response-dto.ts @@ -7,7 +7,7 @@ import { KdvElement } from './kdv-element'; -export interface KdvElementsResponseDto { +export interface KdvElementsResponseDto { KdvRepositories?: { [key: string]: Array; }; ViewRepositories?: any; } diff --git a/src/app/modules/common-regobs-api/models/landslide-edit-model.ts b/src/app/modules/common-regobs-api/models/landslide-edit-model.ts index ab0e0ea7f..0cd16d431 100644 --- a/src/app/modules/common-regobs-api/models/landslide-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/landslide-edit-model.ts @@ -7,23 +7,71 @@ import { UrlEditModel } from './url-edit-model'; -export interface LandslideEditModel { +export interface LandslideEditModel { + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ ActivityInfluencedTID?: number; Comment?: string; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ DamageExtentTID?: number; + /** + * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. + */ DtLandSlideTime: string; + /** + * Når stoppet skredet? + */ DtLandSlideTimeEnd?: string; + /** + * Hull of avalanche polygon, List(lon, lat) + */ Extent?: Array>; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ ForecastAccurateTID?: number; + /** + * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier + */ GeoHazardTID?: number; + /** + * Hvor stort er skredet? The LandSlideSizeKD unique identifier + */ LandSlideSizeTID?: number; + /** + * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier + */ LandSlideTID?: number; + /** + * Hva utløste skredet? The LandSlideTriggerKD unique identifier + */ LandSlideTriggerTID?: number; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ StartExtent?: Array>; + /** + * Latitude start posisjon + */ StartLat?: number; + /** + * Long start posisjon + */ StartLong?: number; + /** + * Hull of avalanche runout zone, List(lon, lat) + */ StopExtent?: Array>; + /** + * Latitude stopp posisjon + */ StopLat?: number; + /** + * Long stopp posisjon + */ StopLong?: number; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/landslide-view-model.ts b/src/app/modules/common-regobs-api/models/landslide-view-model.ts index db747c679..444783b31 100644 --- a/src/app/modules/common-regobs-api/models/landslide-view-model.ts +++ b/src/app/modules/common-regobs-api/models/landslide-view-model.ts @@ -7,30 +7,78 @@ import { UrlViewModel } from './url-view-model'; -export interface LandslideViewModel { +export interface LandslideViewModel { ActivityInfluencedName?: string; + /** + * Hva ble påvirket av hendelsen. Valgene er gitt i ActivityInfluencedKD. The ActivityInfluencedKD unique identifier + */ ActivityInfluencedTID?: number; Comment?: string; DamageExtentName?: string; + /** + * Skadeomfang. Hva var konsekvensen av hendelsen. Valgene gitt i DamageExtentKD. The DamageExtentKD unique identifier + */ DamageExtentTID?: number; + /** + * Når gikk skredet? Dette er ikke det samme tidspunktet da skredet ble observert. + */ DtLandSlideTime: string; + /** + * Når stoppet skredet? + */ DtLandSlideTimeEnd?: string; + /** + * Hull of avalanche polygon, List(lon, lat) + */ Extent?: Array>; ForecastAccurateName?: string; + /** + * Var det et varsel utstedt og stemte det? The ForecastAccurateKD unique identifier + */ ForecastAccurateTID?: number; GeoHazardName?: string; + /** + * Spesifiser skredtype. vått jordskred?, jordskred eller steinskred? GeoHazardTID = 20, 30 og 40 er aktuelle. The GeoHazardKD unique identifier + */ GeoHazardTID?: number; LandSlideName?: string; LandSlideSizeName?: string; + /** + * Hvor stort er skredet? The LandSlideSizeKD unique identifier + */ LandSlideSizeTID?: number; + /** + * Hva slags type skred er det snakk om? Valg gitt i LandSlideKD. The LandSlideKD unique identifier + */ LandSlideTID?: number; LandSlideTriggerName?: string; + /** + * Hva utløste skredet? The LandSlideTriggerKD unique identifier + */ LandSlideTriggerTID?: number; + /** + * Hull of avalanche starting zone, List(lon, lat) + */ StartExtent?: Array>; + /** + * Latitude start posisjon + */ StartLat?: number; + /** + * Long start posisjon + */ StartLong?: number; + /** + * Hull of avalanche runout zone, List(lon, lat) + */ StopExtent?: Array>; + /** + * Latitude stopp posisjon + */ StopLat?: number; + /** + * Long stopp posisjon + */ StopLong?: number; Urls?: Array; } diff --git a/src/app/modules/common-regobs-api/models/lat-lng-object.ts b/src/app/modules/common-regobs-api/models/lat-lng-object.ts index ff1f9ee45..90b5cdce5 100644 --- a/src/app/modules/common-regobs-api/models/lat-lng-object.ts +++ b/src/app/modules/common-regobs-api/models/lat-lng-object.ts @@ -6,7 +6,7 @@ -export interface LatLngObject { +export interface LatLngObject { Latitude: number; Longitude: number; } diff --git a/src/app/modules/common-regobs-api/models/lat-lng.ts b/src/app/modules/common-regobs-api/models/lat-lng.ts index 29daf7de8..d55ccbaeb 100644 --- a/src/app/modules/common-regobs-api/models/lat-lng.ts +++ b/src/app/modules/common-regobs-api/models/lat-lng.ts @@ -6,7 +6,7 @@ -export interface LatLng { +export interface LatLng { Latitude: number; Longitude: number; } diff --git a/src/app/modules/common-regobs-api/models/my-page-data.ts b/src/app/modules/common-regobs-api/models/my-page-data.ts index 86f8cfe47..bb65e64f6 100644 --- a/src/app/modules/common-regobs-api/models/my-page-data.ts +++ b/src/app/modules/common-regobs-api/models/my-page-data.ts @@ -8,7 +8,7 @@ import { ObserverGroupDto } from './observer-group-dto'; import { ObserverCompetenceDto } from './observer-competence-dto'; -export interface MyPageData { +export interface MyPageData { Adrnr?: number; Competence?: Array; DefaultMunicipality?: string; @@ -23,6 +23,9 @@ export interface MyPageData { MobPhoneNr?: string; NickName?: string; NumberOfObservations: number; + /** + * Returns unique id that identifies an observer + */ ObserverId: number; PendingInvitationsToGroups?: Array; Roles?: Array; diff --git a/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts b/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts index ff433a4be..4b1090ea8 100644 --- a/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/obs-location-edit-model.ts @@ -6,13 +6,34 @@ -export interface ObsLocationEditModel { +export interface ObsLocationEditModel { + /** + * Latitude + */ Latitude: number; + /** + * Beskriver stedet. + */ LocationDescription?: string; + /** + * Navn på stedet + */ LocationName?: string; + /** + * Longitude + */ Longitude: number; + /** + * ObsLocationID + */ ObsLocationID?: number; + /** + * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. + */ Uncertainty?: number; + /** + * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD + */ UTMSourceTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/obs-location-view-model.ts b/src/app/modules/common-regobs-api/models/obs-location-view-model.ts index d379e7f02..de0349950 100644 --- a/src/app/modules/common-regobs-api/models/obs-location-view-model.ts +++ b/src/app/modules/common-regobs-api/models/obs-location-view-model.ts @@ -6,22 +6,49 @@ -export interface ObsLocationViewModel { +export interface ObsLocationViewModel { CountryId?: number; CountryName?: string; ForecastRegionName?: string; + /** + * Anngir varslingsregion stedet tilhører. Varslingsregioner gitt i ForecastRegionKD. The ForecastRegionKD unique identifier + */ ForecastRegionTID?: number; Height?: number; + /** + * Latitude + */ Latitude: number; + /** + * Beskriver stedet. + */ LocationDescription?: string; + /** + * Navn på stedet + */ LocationName?: string; + /** + * Longitude + */ Longitude: number; MunicipalName?: string; + /** + * Kommune nr stedet tilhører + */ MunicipalNo?: string; - ObsLocationID?: number; + ObsLocationID: number; + /** + * Read-only generert tittel + */ Title?: string; + /** + * Usikkerhet i posisjon i meter. Anslås på web og i app hentes det fra gps. + */ Uncertainty?: number; UTMSourceName?: string; - UTMSourceTID?: number; + /** + * Kildehenvisning på hvordan koordinaten er satt. (GPS i tlf, klikk i kart, osv). Verdier gitt i UTMSourceKD + */ + UTMSourceTID: number; } diff --git a/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts b/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts index f2729c975..b38f7df41 100644 --- a/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts +++ b/src/app/modules/common-regobs-api/models/obs-locations-response-dto-v2.ts @@ -7,7 +7,7 @@ import { LatLngObject } from './lat-lng-object'; -export interface ObsLocationsResponseDtoV2 { +export interface ObsLocationsResponseDtoV2 { Distance: number; GeoHazardId?: number; Id: number; diff --git a/src/app/modules/common-regobs-api/models/observer-competence-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-dto.ts index 83316ddbd..777874731 100644 --- a/src/app/modules/common-regobs-api/models/observer-competence-dto.ts +++ b/src/app/modules/common-regobs-api/models/observer-competence-dto.ts @@ -6,7 +6,7 @@ -export interface ObserverCompetenceDto { +export interface ObserverCompetenceDto { CompetenceDescription?: string; CompetenceName?: string; CompetenceTID: number; diff --git a/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts b/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts index 552470f11..2744e6ccb 100644 --- a/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts +++ b/src/app/modules/common-regobs-api/models/observer-competence-level-dto.ts @@ -6,10 +6,10 @@ -export interface ObserverCompetenceLevelDto { +export interface ObserverCompetenceLevelDto { Description?: string; Id: number; - Name?: string; + Name: string; SortOrder: number; } diff --git a/src/app/modules/common-regobs-api/models/observer-group-dto.ts b/src/app/modules/common-regobs-api/models/observer-group-dto.ts index 9697e7547..6378881e3 100644 --- a/src/app/modules/common-regobs-api/models/observer-group-dto.ts +++ b/src/app/modules/common-regobs-api/models/observer-group-dto.ts @@ -6,7 +6,7 @@ -export interface ObserverGroupDto { +export interface ObserverGroupDto { Comment?: string; Id: number; Name?: string; diff --git a/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts b/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts index 655762ef2..42e3559ec 100644 --- a/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts +++ b/src/app/modules/common-regobs-api/models/observer-patch-request-dto.ts @@ -6,7 +6,7 @@ -export interface ObserverPatchRequestDto { +export interface ObserverPatchRequestDto { Nick?: string; } diff --git a/src/app/modules/common-regobs-api/models/observer-response-dto.ts b/src/app/modules/common-regobs-api/models/observer-response-dto.ts index 299c448c4..dd05aa1fc 100644 --- a/src/app/modules/common-regobs-api/models/observer-response-dto.ts +++ b/src/app/modules/common-regobs-api/models/observer-response-dto.ts @@ -7,7 +7,7 @@ import { ObserverGroupDto } from './observer-group-dto'; -export interface ObserverResponseDto { +export interface ObserverResponseDto { Guid: string; Nick?: string; ObserverGroup?: Array; diff --git a/src/app/modules/common-regobs-api/models/observer-view-model.ts b/src/app/modules/common-regobs-api/models/observer-view-model.ts index ffd02ab4b..bc4287a47 100644 --- a/src/app/modules/common-regobs-api/models/observer-view-model.ts +++ b/src/app/modules/common-regobs-api/models/observer-view-model.ts @@ -6,7 +6,7 @@ -export interface ObserverViewModel { +export interface ObserverViewModel { CompetenceLevelName?: string; CompetenceLevelTID: number; NickName?: string; diff --git a/src/app/modules/common-regobs-api/models/position-dto.ts b/src/app/modules/common-regobs-api/models/position-dto.ts index 6ba2e08c3..5b8bdd6bb 100644 --- a/src/app/modules/common-regobs-api/models/position-dto.ts +++ b/src/app/modules/common-regobs-api/models/position-dto.ts @@ -6,7 +6,7 @@ -export interface PositionDto { +export interface PositionDto { Latitude: number; Longitude: number; } diff --git a/src/app/modules/common-regobs-api/models/problem-details.ts b/src/app/modules/common-regobs-api/models/problem-details.ts index 8a2f01b76..b6d8f9430 100644 --- a/src/app/modules/common-regobs-api/models/problem-details.ts +++ b/src/app/modules/common-regobs-api/models/problem-details.ts @@ -8,6 +8,8 @@ export interface ProblemDetails { [key: string]: any | any; + + detail?: string; instance?: string; status?: number; diff --git a/src/app/modules/common-regobs-api/models/property-filter.ts b/src/app/modules/common-regobs-api/models/property-filter.ts index a4c69d2d2..411f5880a 100644 --- a/src/app/modules/common-regobs-api/models/property-filter.ts +++ b/src/app/modules/common-regobs-api/models/property-filter.ts @@ -10,12 +10,18 @@ import { Operator } from './operator'; /** * Filter by property value */ -export interface PropertyFilter { +export interface PropertyFilter { + /** + * Property name. Properties in sub schemas must be prefixed with schema name. Example: AvalancheObs.AvalancheTID Multiple instance schemas, like DangerSign, are not supported. If you use unknown/unsupported properties, you will get an HTTP 400. + */ Name?: string; Operator: Operator; + /** + * Target property value + */ Value?: string; } + export namespace PropertyFilter { } - diff --git a/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts b/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts index 57f6e9158..2b1df210b 100644 --- a/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts +++ b/src/app/modules/common-regobs-api/models/reg-obs-generic-value.ts @@ -7,13 +7,14 @@ import { ValueKind } from './value-kind'; -export interface RegObsGenericValue { +export interface RegObsGenericValue { Header?: string; Kind: ValueKind; + /** Readonly property */ KindType?: string; Value?: any; } + export namespace RegObsGenericValue { } - diff --git a/src/app/modules/common-regobs-api/models/registration-edit-model.ts b/src/app/modules/common-regobs-api/models/registration-edit-model.ts index 81b064559..1b5cc6e85 100644 --- a/src/app/modules/common-regobs-api/models/registration-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/registration-edit-model.ts @@ -25,7 +25,10 @@ import { IceCoverEditModel } from './ice-cover-edit-model'; import { AvalancheEvaluation3EditModel } from './avalanche-evaluation3-edit-model'; -export interface RegistrationEditModel { +export interface RegistrationEditModel { + /** + * If set to true, the user\'s account will not be shown publicly. NVE will still be able to see who sent in the observation. + */ Anonymous?: boolean; Attachments?: Array; AvalancheActivityObs2?: Array; @@ -36,8 +39,14 @@ export interface RegistrationEditModel { DamageObs?: Array; DangerObs?: Array; DtChangeTime?: string; + /** + * Tiden da observasjonen ble gjort. + */ DtObsTime: string; GeneralObservation?: GeneralObservationEditModel; + /** + * Sett naturfare. Tabellen brukes av alle naturfarer (snø, jord, vann, is). The GeoHazardKD unique identifier + */ GeoHazardTID: GeoHazardTypes; IceCoverObs?: IceCoverEditModel; IceThickness?: IceThicknessEditModel; @@ -45,14 +54,20 @@ export interface RegistrationEditModel { LandSlideObs?: LandslideEditModel; ObserverGroupID?: number; ObserverGroupName?: string; + /** + * The observation location object. Latitude and longitute are needed to create a new registration. + */ ObsLocation?: ObsLocationEditModel; SnowProfile2?: SnowProfileEditModel; SnowSurfaceObservation?: SnowSurfaceEditModel; + /** + * Kildereferanse på en registrering. F.eks. har brukeren sette dette selv eller er det referert til fra nyheter. The SourceKD unique identifier + */ SourceTID?: number; WaterLevel2?: Waterlevel2EditModel; WeatherObservation?: WeatherEditModel; } + export namespace RegistrationEditModel { } - diff --git a/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts index 10b62ade7..e43eca49b 100644 --- a/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/models/registration-type-criteria-dto.ts @@ -6,7 +6,7 @@ -export interface RegistrationTypeCriteriaDto { +export interface RegistrationTypeCriteriaDto { Id: number; SubTypes?: Array; } diff --git a/src/app/modules/common-regobs-api/models/registration-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-dto.ts index 6ec28258b..0b933c42f 100644 --- a/src/app/modules/common-regobs-api/models/registration-type-dto.ts +++ b/src/app/modules/common-regobs-api/models/registration-type-dto.ts @@ -7,7 +7,7 @@ import { RegistrationTypeSubTypeDto } from './registration-type-sub-type-dto'; -export interface RegistrationTypeDto { +export interface RegistrationTypeDto { Id: number; Name?: string; SortOrder: number; diff --git a/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts b/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts index 744a75bc0..0bc1900c0 100644 --- a/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts +++ b/src/app/modules/common-regobs-api/models/registration-type-sub-type-dto.ts @@ -6,7 +6,7 @@ -export interface RegistrationTypeSubTypeDto { +export interface RegistrationTypeSubTypeDto { Id: number; Name?: string; SortOrder: number; diff --git a/src/app/modules/common-regobs-api/models/registration-view-model.ts b/src/app/modules/common-regobs-api/models/registration-view-model.ts index 9c81afc83..1bcc95d78 100644 --- a/src/app/modules/common-regobs-api/models/registration-view-model.ts +++ b/src/app/modules/common-regobs-api/models/registration-view-model.ts @@ -34,7 +34,7 @@ import { Summary } from './summary'; import { GeneralObservationViewModel } from './general-observation-view-model'; -export interface RegistrationViewModel { +export interface RegistrationViewModel { Anonymous?: boolean; Attachments?: Array; AttachmentSummaries?: Array; @@ -52,10 +52,13 @@ export interface RegistrationViewModel { DangerObs?: Array; DtChangeTime?: string; DtObsTime: string; - DtRegTime?: string; + DtRegTime: string; ExternalReferenceId?: string; GeneralObservation?: GeneralObservationViewModel; GeoHazardName?: string; + /** + * NotSpecified = 0, Avalanche = 10, EarthFlow = 20, LandSlide = 30, RockFall = 40, IceFall = 50, Flooding = 60, Ice = 70, EventOnGlacier = 100, Jøkulhaup = 110, Drought = 200, Unknown = 999 + */ GeoHazardTID: GeoHazardTypes; IceCoverObs?: IceCoverViewModel; IceThickness?: IceThicknessViewModel; @@ -71,13 +74,13 @@ export interface RegistrationViewModel { SnowProfile2?: SnowProfileViewModel; SnowSurfaceObservation?: SnowSurfaceViewModel; SourceName?: string; - SourceTID?: number; + SourceTID: number; Summaries?: Array; WaterLevel?: WaterLevelViewModel; WaterLevel2?: Waterlevel2ViewModel; WeatherObservation?: WeatherViewModel; } + export namespace RegistrationViewModel { } - diff --git a/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts b/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts index be7db06a3..5be962fc2 100644 --- a/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts +++ b/src/app/modules/common-regobs-api/models/registrations-with-attachments.ts @@ -7,8 +7,14 @@ import { AttachmentViewModel } from './attachment-view-model'; -export interface RegistrationsWithAttachments { +export interface RegistrationsWithAttachments { + /** + * List of registration\'s attachments + */ Attachments?: Array; + /** + * Unique registration id that contains attachments + */ RegId: number; } diff --git a/src/app/modules/common-regobs-api/models/search-count-response-dto.ts b/src/app/modules/common-regobs-api/models/search-count-response-dto.ts index 9e8f78d1f..d422086ea 100644 --- a/src/app/modules/common-regobs-api/models/search-count-response-dto.ts +++ b/src/app/modules/common-regobs-api/models/search-count-response-dto.ts @@ -6,7 +6,7 @@ -export interface SearchCountResponseDto { +export interface SearchCountResponseDto { TotalMatches: number; } diff --git a/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts index 2906ccf5d..1a3b6c1d0 100644 --- a/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts +++ b/src/app/modules/common-regobs-api/models/search-criteria-excl-user-request-dto.ts @@ -13,27 +13,72 @@ import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; /** * Use this to filter out registrations. */ -export interface SearchCriteriaExclUserRequestDto { +export interface SearchCriteriaExclUserRequestDto { + /** + * Descending order is default. Set this to true to use ascending order. + */ AscendingOrder: boolean; + /** + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + */ Counties?: Array; Countries?: Array; Extent?: WithinExtentCriteriaDto; + /** + * Find registrations saved or changed after given date and time (inclusive) + */ FromDtChangeTime?: string; + /** + * Find registrations with obervation time after given date and time (inclusive) + */ FromDtObsTime?: string; + /** + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + */ LangKey?: number; LocationId?: number; + /** + * Max number of registrations to return. Default = 100 + */ NumberOfRecords?: number; + /** + * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk + */ Offset?: number; + /** + * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work + */ OrderBy?: string; + /** + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + */ PropertyFilters?: Array; Radius?: WithinRadiusCriteriaDto; + /** + * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} + */ RegId?: number; + /** + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + */ SelectedGeoHazards?: Array; + /** + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + */ SelectedRegions?: Array; + /** + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + */ SelectedRegistrationTypes?: Array; TextSearch?: string; TimeZone?: string; + /** + * Find registrations saved or changed before given date and time (inclusive) + */ ToDtChangeTime?: string; + /** + * Find registrations with obervation time before given date and time (inclusive) + */ ToDtObsTime?: string; } diff --git a/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts b/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts index dbd9bda0d..492004c03 100644 --- a/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts +++ b/src/app/modules/common-regobs-api/models/search-criteria-request-dto.ts @@ -13,32 +13,92 @@ import { WithinExtentCriteriaDto } from './within-extent-criteria-dto'; /** * Use this to filter out registrations. */ -export interface SearchCriteriaRequestDto { +export interface SearchCriteriaRequestDto { + /** + * Descending order is default. Set this to true to use ascending order. + */ AscendingOrder: boolean; + /** + * Find registrations in given county. Only relevant for Norway. Current valid county numbers are here (from 2024): https://no.wikipedia.org/wiki/Fylkesnummer + */ Counties?: Array; Countries?: Array; Extent?: WithinExtentCriteriaDto; + /** + * Find registrations saved or changed after given date and time (inclusive) + */ FromDtChangeTime?: string; + /** + * Find registrations with obervation time after given date and time (inclusive) + */ FromDtObsTime?: string; + /** + * Find registrations made by the observers in a specific group + */ GroupId?: number; + /** + * Language of result Norwegian = 1, English = 2, German = 3, Slovenian = 4, Swedish = 5, Italian = 6, Norwegian (nn) = 7. Default = 1 + */ LangKey?: number; LocationId?: number; + /** + * Max number of registrations to return. Default = 100 + */ NumberOfRecords?: number; + /** + * Find registrations made by observers with specific competence level IDs Use /Search/SearchCriteria to find out which competence levels are used for different geo hazards. + */ ObserverCompetence?: Array; + /** + * Find registrations made by the observer with given GUID. This attribute is deprecated and will be removed in the future. + */ ObserverGuid?: string; + /** + * Find registrations made by the observer with given ID + */ ObserverId?: number; + /** + * Find registrations made by the observer with given nick name + */ ObserverNickName?: string; + /** + * Start index. If more registrations matches your filter than you get in one chunk, set Offset to the count of how many records you already fetched, to retrieve the next chunk + */ Offset?: number; + /** + * Field to order by. You may use these fields: DtObsTime, DtRegTime, DtChangeTime. Default is DtObsTime. A few other fields may also work + */ OrderBy?: string; + /** + * Find registrations with given property value. [Obsolete(\"Experimental feature that may be changed or removed in later versions\")] + */ PropertyFilters?: Array; Radius?: WithinRadiusCriteriaDto; + /** + * Find a registration with a specific unique ID. You may also use GET /Registration/{regId}/{langKey} + */ RegId?: number; + /** + * Find registrations on given geo hazard ID\'s. Snow = 10, soil = 20, water = 60, ice = 70. + */ SelectedGeoHazards?: Array; + /** + * Find registrations in given regions. Use /Search/SearchCriteria to find the forecast region IDs that are used for different geo hazards. + */ SelectedRegions?: Array; + /** + * Find registrations of given types. Use /Search/SearchCriteria to find out which types are used for different geo hazards. + */ SelectedRegistrationTypes?: Array; TextSearch?: string; TimeZone?: string; + /** + * Find registrations saved or changed before given date and time (inclusive) + */ ToDtChangeTime?: string; + /** + * Find registrations with obervation time before given date and time (inclusive) + */ ToDtObsTime?: string; } diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts index e5c453487..f3b8ed942 100644 --- a/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto-observer-competence-levels.ts @@ -7,7 +7,7 @@ import { ObserverCompetenceLevelDto } from './observer-competence-level-dto'; -export interface SearchSideBarDtoObserverCompetenceLevels { +export interface SearchSideBarDtoObserverCompetenceLevels { Avalanche?: Array; Drought?: Array; EarthFlow?: Array; diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts index ed18732fc..bb79dad33 100644 --- a/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto-registration-types.ts @@ -7,7 +7,7 @@ import { RegistrationTypeDto } from './registration-type-dto'; -export interface SearchSideBarDtoRegistrationTypes { +export interface SearchSideBarDtoRegistrationTypes { Avalanche?: Array; Drought?: Array; EarthFlow?: Array; diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts index 504cdacc5..1c64202a7 100644 --- a/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts +++ b/src/app/modules/common-regobs-api/models/search-side-bar-dto.ts @@ -9,7 +9,7 @@ import { SearchSideBarDtoObserverCompetenceLevels } from './search-side-bar-dto- import { SearchSideBarDtoRegistrationTypes } from './search-side-bar-dto-registration-types'; -export interface SearchSideBarDto { +export interface SearchSideBarDto { Areas?: Array; ObserverCompetenceLevels?: SearchSideBarDtoObserverCompetenceLevels; RegistrationTypes?: SearchSideBarDtoRegistrationTypes; diff --git a/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts b/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts index 5bfb2bb05..989277a9c 100644 --- a/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts +++ b/src/app/modules/common-regobs-api/models/search-side-bar-request-dto.ts @@ -8,11 +8,17 @@ import { GeoHazardTypes } from './geo-hazard-types'; import { LangKey } from './lang-key'; -export interface SearchSideBarRequestDto { +export interface SearchSideBarRequestDto { + /** + * Snow = 10, dirt = 20, water = 60, ice = 70. At least one geo hazard is required. + */ GeoHazards?: Array; + /** + * NO = 1, EN = 2, DE = 3, SL = 4, SV = 5, IT = 6 Default = 2. + */ LangKey: LangKey; } + export namespace SearchSideBarRequestDto { } - diff --git a/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts b/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts index f6d7deb66..2b2488b09 100644 --- a/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-cover-obs-view-model.ts @@ -6,13 +6,31 @@ -export interface SnowCoverObsViewModel { +export interface SnowCoverObsViewModel { + /** + * Comment. + */ Comment?: string; + /** + * CriticalLayerExists + */ CriticalLayerExists?: boolean; + /** + * CriticalLayerLocation + */ CriticalLayerLocation?: number; CriticalLayerName?: string; + /** + * The CriticalLayerKD unique identifier + */ CriticalLayerTID?: number; + /** + * DepthHoarThickness + */ DepthHoarThickness?: number; + /** + * SnowPilotRef + */ SnowPilotRef?: string; } diff --git a/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts b/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts index 39ffa7e60..4eb1cb533 100644 --- a/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-density-layer-model.ts @@ -6,13 +6,22 @@ -export interface SnowDensityLayerModel { +export interface SnowDensityLayerModel { Comment?: string; + /** + * Density in kg/m^3 + */ Density?: number; Depth?: number; SortOrder: number; + /** + * thickness in m + */ Thickness?: number; WaterEquivalent: number; + /** + * Weight in KG + */ Weight: number; } diff --git a/src/app/modules/common-regobs-api/models/snow-density-model.ts b/src/app/modules/common-regobs-api/models/snow-density-model.ts index a5ec619c0..6cef07600 100644 --- a/src/app/modules/common-regobs-api/models/snow-density-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-density-model.ts @@ -7,7 +7,7 @@ import { SnowDensityLayerModel } from './snow-density-layer-model'; -export interface SnowDensityModel { +export interface SnowDensityModel { Comment?: string; CylinderDiameter?: number; Layers?: Array; diff --git a/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts index 04df1335a..9cbd84edc 100644 --- a/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-profile-edit-model.ts @@ -9,7 +9,7 @@ import { StratProfileEditModel } from './strat-profile-edit-model'; import { SnowTempModel } from './snow-temp-model'; -export interface SnowProfileEditModel { +export interface SnowProfileEditModel { Comment?: string; Exposition?: number; IsProfileToGround?: boolean; diff --git a/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts b/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts index 4d7eb9a74..97d79c8f4 100644 --- a/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-profile-view-model.ts @@ -10,10 +10,13 @@ import { AttachmentViewModel } from './attachment-view-model'; import { SnowTempModel } from './snow-temp-model'; -export interface SnowProfileViewModel { +export interface SnowProfileViewModel { Comment?: string; Exposition?: number; IsProfileToGround?: boolean; + /** + * Urls to simplified images of the snow profile model + */ PlotImage?: AttachmentViewModel; SlopeAngle?: number; SnowDensity?: Array; diff --git a/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts index 8ff8963b8..377796a98 100644 --- a/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-surface-edit-model.ts @@ -6,16 +6,46 @@ -export interface SnowSurfaceEditModel { +export interface SnowSurfaceEditModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ Comment?: string; + /** + * Grense lagdelt snø (moh) + */ HeightLimitLayeredSnow?: number; + /** + * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området + */ NewSnowDepth24?: number; + /** + * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. + */ NewSnowLine?: number; + /** + * Skiføre + */ SkiConditionsTID?: number; + /** + * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. + */ SnowDepth?: number; + /** + * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier + */ SnowDriftTID?: number; + /** + * Snøgrense (moh) + */ SnowLine?: number; + /** + * Snødekkehardhet + */ SnowSurfaceTID?: number; + /** + * Overflatefuktighet + */ SurfaceWaterContentTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts b/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts index 05601bb8d..2b25d4c98 100644 --- a/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-surface-view-model.ts @@ -6,24 +6,60 @@ -export interface SnowSurfaceViewModel { +export interface SnowSurfaceViewModel { + /** + * Kommentarfelt for å skrive utfyllende tekst om observasjonen. + */ Comment?: string; + /** + * Obsolete - Only in View Model + */ FootPenetration?: number; + /** + * Grense lagdelt snø (moh) + */ HeightLimitLayeredSnow?: number; + /** + * Nysnødybde i cm. Vi ønsker et gjennomsnitt for området + */ NewSnowDepth24?: number; + /** + * Nysnøgrensa. Hvor faller nedbør som snø? Meter over havet. + */ NewSnowLine?: number; SkiConditionsName?: string; SkiConditionsTID?: number; + /** + * Total snødybde i cm. Vi ønsker et gjennomsnitt for området. + */ SnowDepth?: number; SnowDriftName?: string; + /** + * Hvor mye har vinden transportert snøen? Valg fra nedtrekksmeny. The SnowDriftKD unique identifier + */ SnowDriftTID?: number; + /** + * Snøgrense (moh) + */ SnowLine?: number; SnowSurfaceName?: string; + /** + * Snødekkehardhet + */ SnowSurfaceTID?: number; + /** + * Obsolete - Only in View Model + */ SnowWindDepth24?: number; SurfaceRougnessName?: string; + /** + * Obsolete - Only in View Model + */ SurfaceRougnessTID?: number; SurfaceWaterContentName?: string; + /** + * Overflatefuktighet + */ SurfaceWaterContentTID?: number; } diff --git a/src/app/modules/common-regobs-api/models/snow-temp-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-model.ts index ad0f10d29..a4ec06e78 100644 --- a/src/app/modules/common-regobs-api/models/snow-temp-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-temp-model.ts @@ -7,7 +7,7 @@ import { SnowTempObsModel } from './snow-temp-obs-model'; -export interface SnowTempModel { +export interface SnowTempModel { Layers?: Array; } diff --git a/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts b/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts index cb7e0f249..89e1c8038 100644 --- a/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts +++ b/src/app/modules/common-regobs-api/models/snow-temp-obs-model.ts @@ -6,7 +6,7 @@ -export interface SnowTempObsModel { +export interface SnowTempObsModel { Depth: number; SnowTemp: number; } diff --git a/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts index 243896d73..d4b9420c4 100644 --- a/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/strat-profile-edit-model.ts @@ -7,7 +7,7 @@ import { StratProfileLayerEditModel } from './strat-profile-layer-edit-model'; -export interface StratProfileEditModel { +export interface StratProfileEditModel { Layers?: Array; } diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts index 7b4355741..87caf4498 100644 --- a/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/strat-profile-layer-edit-model.ts @@ -6,7 +6,7 @@ -export interface StratProfileLayerEditModel { +export interface StratProfileLayerEditModel { Comment?: string; CriticalLayerTID?: number; DepthTop?: number; diff --git a/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts index a691b2b57..f5be5cc54 100644 --- a/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts +++ b/src/app/modules/common-regobs-api/models/strat-profile-layer-view-model.ts @@ -6,7 +6,7 @@ -export interface StratProfileLayerViewModel { +export interface StratProfileLayerViewModel { Comment?: string; CriticalLayerTID?: number; CriticalLayerTName?: string; diff --git a/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts b/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts index bda587f3f..ad64949db 100644 --- a/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts +++ b/src/app/modules/common-regobs-api/models/strat-profile-view-model.ts @@ -7,7 +7,7 @@ import { StratProfileLayerViewModel } from './strat-profile-layer-view-model'; -export interface StratProfileViewModel { +export interface StratProfileViewModel { Layers?: Array; TotalDepth: number; } diff --git a/src/app/modules/common-regobs-api/models/summary.ts b/src/app/modules/common-regobs-api/models/summary.ts index 498417b58..7edbee5bc 100644 --- a/src/app/modules/common-regobs-api/models/summary.ts +++ b/src/app/modules/common-regobs-api/models/summary.ts @@ -7,7 +7,7 @@ import { RegObsGenericValue } from './reg-obs-generic-value'; -export interface Summary { +export interface Summary { RegistrationName?: string; RegistrationTID: number; Summaries?: Array; diff --git a/src/app/modules/common-regobs-api/models/url-edit-model.ts b/src/app/modules/common-regobs-api/models/url-edit-model.ts index b230a1fe0..a6081394a 100644 --- a/src/app/modules/common-regobs-api/models/url-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/url-edit-model.ts @@ -6,8 +6,14 @@ -export interface UrlEditModel { +export interface UrlEditModel { + /** + * UrlDescription + */ UrlDescription?: string; + /** + * UrlLine + */ UrlLine: string; } diff --git a/src/app/modules/common-regobs-api/models/url-view-model.ts b/src/app/modules/common-regobs-api/models/url-view-model.ts index bfb701b3e..818ce9e8e 100644 --- a/src/app/modules/common-regobs-api/models/url-view-model.ts +++ b/src/app/modules/common-regobs-api/models/url-view-model.ts @@ -6,8 +6,14 @@ -export interface UrlViewModel { +export interface UrlViewModel { + /** + * UrlDescription + */ UrlDescription?: string; + /** + * UrlLine + */ UrlLine: string; } diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts index ab068f760..b94b217a7 100644 --- a/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/water-level-measurement-edit-model.ts @@ -7,7 +7,7 @@ import { AttachmentEditModel } from './attachment-edit-model'; -export interface WaterLevelMeasurementEditModel { +export interface WaterLevelMeasurementEditModel { Attachments?: Array; Comment?: string; DtMeasurementTime: string; diff --git a/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts index 4254b1faf..7f956895a 100644 --- a/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts +++ b/src/app/modules/common-regobs-api/models/water-level-measurement-view-model.ts @@ -7,7 +7,7 @@ import { AttachmentViewModel } from './attachment-view-model'; -export interface WaterLevelMeasurementViewModel { +export interface WaterLevelMeasurementViewModel { Attachments?: Array; Comment?: string; DtMeasurementTime: string; diff --git a/src/app/modules/common-regobs-api/models/water-level-view-model.ts b/src/app/modules/common-regobs-api/models/water-level-view-model.ts index d085b9d80..312afe123 100644 --- a/src/app/modules/common-regobs-api/models/water-level-view-model.ts +++ b/src/app/modules/common-regobs-api/models/water-level-view-model.ts @@ -6,7 +6,7 @@ -export interface WaterLevelViewModel { +export interface WaterLevelViewModel { Comment?: string; IsRiver: boolean; MeasuredDischarge?: number; diff --git a/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts b/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts index adb847918..9d10ee733 100644 --- a/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/waterlevel2-edit-model.ts @@ -7,8 +7,11 @@ import { WaterLevelMeasurementEditModel } from './water-level-measurement-edit-model'; -export interface Waterlevel2EditModel { +export interface Waterlevel2EditModel { Comment?: string; + /** + * Flood polygon area, List(lon, lat) + */ Extent?: Array>; MarkingReferenceTID?: number; MarkingTypeTID?: number; diff --git a/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts b/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts index b9b57dd66..5f3e4b2e5 100644 --- a/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts +++ b/src/app/modules/common-regobs-api/models/waterlevel2-view-model.ts @@ -7,8 +7,11 @@ import { WaterLevelMeasurementViewModel } from './water-level-measurement-view-model'; -export interface Waterlevel2ViewModel { +export interface Waterlevel2ViewModel { Comment?: string; + /** + * Flood polygon area, List(lon, lat) + */ Extent?: Array>; MarkingReferenceName?: string; MarkingReferenceTID?: number; diff --git a/src/app/modules/common-regobs-api/models/weather-edit-model.ts b/src/app/modules/common-regobs-api/models/weather-edit-model.ts index fabe05c9d..7a56e61a1 100644 --- a/src/app/modules/common-regobs-api/models/weather-edit-model.ts +++ b/src/app/modules/common-regobs-api/models/weather-edit-model.ts @@ -6,7 +6,7 @@ -export interface WeatherEditModel { +export interface WeatherEditModel { AirTemperature?: number; CloudCover?: number; Comment?: string; diff --git a/src/app/modules/common-regobs-api/models/weather-view-model.ts b/src/app/modules/common-regobs-api/models/weather-view-model.ts index 3e0068174..3a4848e5f 100644 --- a/src/app/modules/common-regobs-api/models/weather-view-model.ts +++ b/src/app/modules/common-regobs-api/models/weather-view-model.ts @@ -6,7 +6,7 @@ -export interface WeatherViewModel { +export interface WeatherViewModel { AirTemperature?: number; CloudCover?: number; Comment?: string; diff --git a/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts index 0e54fcacb..ee1ae214d 100644 --- a/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/models/within-extent-criteria-dto.ts @@ -7,7 +7,7 @@ import { PositionDto } from './position-dto'; -export interface WithinExtentCriteriaDto { +export interface WithinExtentCriteriaDto { BottomRight?: PositionDto; TopLeft?: PositionDto; } diff --git a/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts b/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts index ee71a24b6..a10ab21d7 100644 --- a/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts +++ b/src/app/modules/common-regobs-api/models/within-radius-criteria-dto.ts @@ -7,7 +7,7 @@ import { PositionDto } from './position-dto'; -export interface WithinRadiusCriteriaDto { +export interface WithinRadiusCriteriaDto { Position?: PositionDto; Radius: number; }