@ngageoint/mage.service 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mage.service.js +230 -0
- package/bin/migration.js +60 -0
- package/bin/poststop.sh +1 -0
- package/bin/prestart.sh +1 -0
- package/lib/@types/express/index.d.ts +18 -0
- package/lib/@types/geojson-validation/index.d.ts +15 -0
- package/lib/@types/mongodb-migrations/index.d.ts +99 -0
- package/lib/access/index.d.ts +21 -0
- package/lib/access/index.d.ts.map +1 -0
- package/lib/access/index.js +40 -0
- package/lib/access/index.js.map +1 -0
- package/lib/adapters/adapters.controllers.web.d.ts +22 -0
- package/lib/adapters/adapters.controllers.web.d.ts.map +1 -0
- package/lib/adapters/adapters.controllers.web.js +55 -0
- package/lib/adapters/adapters.controllers.web.js.map +1 -0
- package/lib/adapters/adapters.db.mongoose.d.ts +5 -0
- package/lib/adapters/adapters.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/adapters.db.mongoose.js +70 -0
- package/lib/adapters/adapters.db.mongoose.js.map +1 -0
- package/lib/adapters/adapters.simple_id_factory.d.ts +5 -0
- package/lib/adapters/adapters.simple_id_factory.d.ts.map +1 -0
- package/lib/adapters/adapters.simple_id_factory.js +24 -0
- package/lib/adapters/adapters.simple_id_factory.js.map +1 -0
- package/lib/adapters/base/adapters.base.db.mongoose.d.ts +59 -0
- package/lib/adapters/base/adapters.base.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/base/adapters.base.db.mongoose.js +143 -0
- package/lib/adapters/base/adapters.base.db.mongoose.js.map +1 -0
- package/lib/adapters/events/adapters.events.controllers.web.d.ts +14 -0
- package/lib/adapters/events/adapters.events.controllers.web.d.ts.map +1 -0
- package/lib/adapters/events/adapters.events.controllers.web.js +83 -0
- package/lib/adapters/events/adapters.events.controllers.web.js.map +1 -0
- package/lib/adapters/events/adapters.events.db.mongoose.d.ts +27 -0
- package/lib/adapters/events/adapters.events.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/events/adapters.events.db.mongoose.js +127 -0
- package/lib/adapters/events/adapters.events.db.mongoose.js.map +1 -0
- package/lib/adapters/feeds/adapters.feeds.controllers.web.d.ts +25 -0
- package/lib/adapters/feeds/adapters.feeds.controllers.web.d.ts.map +1 -0
- package/lib/adapters/feeds/adapters.feeds.controllers.web.js +234 -0
- package/lib/adapters/feeds/adapters.feeds.controllers.web.js.map +1 -0
- package/lib/adapters/feeds/adapters.feeds.db.mongoose.d.ts +63 -0
- package/lib/adapters/feeds/adapters.feeds.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/feeds/adapters.feeds.db.mongoose.js +199 -0
- package/lib/adapters/feeds/adapters.feeds.db.mongoose.js.map +1 -0
- package/lib/adapters/icons/adapters.icons.content_store.file_system.d.ts +7 -0
- package/lib/adapters/icons/adapters.icons.content_store.file_system.d.ts.map +1 -0
- package/lib/adapters/icons/adapters.icons.content_store.file_system.js +13 -0
- package/lib/adapters/icons/adapters.icons.content_store.file_system.js.map +1 -0
- package/lib/adapters/icons/adapters.icons.controllers.web.d.ts +10 -0
- package/lib/adapters/icons/adapters.icons.controllers.web.d.ts.map +1 -0
- package/lib/adapters/icons/adapters.icons.controllers.web.js +118 -0
- package/lib/adapters/icons/adapters.icons.controllers.web.js.map +1 -0
- package/lib/adapters/icons/adapters.icons.db.mongoose.d.ts +38 -0
- package/lib/adapters/icons/adapters.icons.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/icons/adapters.icons.db.mongoose.js +287 -0
- package/lib/adapters/icons/adapters.icons.db.mongoose.js.map +1 -0
- package/lib/adapters/observations/adapters.observations.attachment_store.file_system.d.ts +29 -0
- package/lib/adapters/observations/adapters.observations.attachment_store.file_system.d.ts.map +1 -0
- package/lib/adapters/observations/adapters.observations.attachment_store.file_system.js +274 -0
- package/lib/adapters/observations/adapters.observations.attachment_store.file_system.js.map +1 -0
- package/lib/adapters/observations/adapters.observations.controllers.web.d.ts +40 -0
- package/lib/adapters/observations/adapters.observations.controllers.web.d.ts.map +1 -0
- package/lib/adapters/observations/adapters.observations.controllers.web.js +196 -0
- package/lib/adapters/observations/adapters.observations.controllers.web.js.map +1 -0
- package/lib/adapters/observations/adapters.observations.db.mongoose.d.ts +30 -0
- package/lib/adapters/observations/adapters.observations.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/observations/adapters.observations.db.mongoose.js +294 -0
- package/lib/adapters/observations/adapters.observations.db.mongoose.js.map +1 -0
- package/lib/adapters/plugins/adapters.plugins.db.mongoose.d.ts +17 -0
- package/lib/adapters/plugins/adapters.plugins.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/plugins/adapters.plugins.db.mongoose.js +59 -0
- package/lib/adapters/plugins/adapters.plugins.db.mongoose.js.map +1 -0
- package/lib/adapters/url_schemes/adapters.url_schemes.plugin.d.ts +38 -0
- package/lib/adapters/url_schemes/adapters.url_schemes.plugin.d.ts.map +1 -0
- package/lib/adapters/url_schemes/adapters.url_schemes.plugin.js +110 -0
- package/lib/adapters/url_schemes/adapters.url_schemes.plugin.js.map +1 -0
- package/lib/adapters/users/adapters.users.controllers.web.d.ts +7 -0
- package/lib/adapters/users/adapters.users.controllers.web.d.ts.map +1 -0
- package/lib/adapters/users/adapters.users.controllers.web.js +37 -0
- package/lib/adapters/users/adapters.users.controllers.web.js.map +1 -0
- package/lib/adapters/users/adapters.users.db.mongoose.d.ts +19 -0
- package/lib/adapters/users/adapters.users.db.mongoose.d.ts.map +1 -0
- package/lib/adapters/users/adapters.users.db.mongoose.js +126 -0
- package/lib/adapters/users/adapters.users.db.mongoose.js.map +1 -0
- package/lib/adapters/web_ui_plugins/adapters.web_ui_plugins.controllers.web.d.ts +3 -0
- package/lib/adapters/web_ui_plugins/adapters.web_ui_plugins.controllers.web.d.ts.map +1 -0
- package/lib/adapters/web_ui_plugins/adapters.web_ui_plugins.controllers.web.js +53 -0
- package/lib/adapters/web_ui_plugins/adapters.web_ui_plugins.controllers.web.js.map +1 -0
- package/lib/api/attachment.d.ts +12 -0
- package/lib/api/attachment.d.ts.map +1 -0
- package/lib/api/attachment.js +81 -0
- package/lib/api/attachment.js.map +1 -0
- package/lib/api/event.d.ts +20 -0
- package/lib/api/event.d.ts.map +1 -0
- package/lib/api/event.js +185 -0
- package/lib/api/event.js.map +1 -0
- package/lib/api/events/location.d.ts +11 -0
- package/lib/api/events/location.d.ts.map +1 -0
- package/lib/api/events/location.js +13 -0
- package/lib/api/events/location.js.map +1 -0
- package/lib/api/events/observation.d.ts +15 -0
- package/lib/api/events/observation.d.ts.map +1 -0
- package/lib/api/events/observation.js +21 -0
- package/lib/api/events/observation.js.map +1 -0
- package/lib/api/feature.d.ts +8 -0
- package/lib/api/feature.d.ts.map +1 -0
- package/lib/api/feature.js +15 -0
- package/lib/api/feature.js.map +1 -0
- package/lib/api/field/attachmentField.d.ts +12 -0
- package/lib/api/field/attachmentField.d.ts.map +1 -0
- package/lib/api/field/attachmentField.js +40 -0
- package/lib/api/field/attachmentField.js.map +1 -0
- package/lib/api/field/checkboxField.d.ts +7 -0
- package/lib/api/field/checkboxField.d.ts.map +1 -0
- package/lib/api/field/checkboxField.js +19 -0
- package/lib/api/field/checkboxField.js.map +1 -0
- package/lib/api/field/dateField.d.ts +8 -0
- package/lib/api/field/dateField.d.ts.map +1 -0
- package/lib/api/field/dateField.js +21 -0
- package/lib/api/field/dateField.js.map +1 -0
- package/lib/api/field/emailField.d.ts +7 -0
- package/lib/api/field/emailField.d.ts.map +1 -0
- package/lib/api/field/emailField.js +19 -0
- package/lib/api/field/emailField.js.map +1 -0
- package/lib/api/field/field.d.ts +12 -0
- package/lib/api/field/field.d.ts.map +1 -0
- package/lib/api/field/field.js +12 -0
- package/lib/api/field/field.js.map +1 -0
- package/lib/api/field/geometryField.d.ts +7 -0
- package/lib/api/field/geometryField.d.ts.map +1 -0
- package/lib/api/field/geometryField.js +35 -0
- package/lib/api/field/geometryField.js.map +1 -0
- package/lib/api/field/index.d.ts +7 -0
- package/lib/api/field/index.d.ts.map +1 -0
- package/lib/api/field/index.js +30 -0
- package/lib/api/field/index.js.map +1 -0
- package/lib/api/field/multiSelectField.d.ts +7 -0
- package/lib/api/field/multiSelectField.d.ts.map +1 -0
- package/lib/api/field/multiSelectField.js +27 -0
- package/lib/api/field/multiSelectField.js.map +1 -0
- package/lib/api/field/numberField.d.ts +7 -0
- package/lib/api/field/numberField.d.ts.map +1 -0
- package/lib/api/field/numberField.js +27 -0
- package/lib/api/field/numberField.js.map +1 -0
- package/lib/api/field/selectField.d.ts +7 -0
- package/lib/api/field/selectField.d.ts.map +1 -0
- package/lib/api/field/selectField.js +22 -0
- package/lib/api/field/selectField.js.map +1 -0
- package/lib/api/field/textField.d.ts +7 -0
- package/lib/api/field/textField.d.ts.map +1 -0
- package/lib/api/field/textField.js +21 -0
- package/lib/api/field/textField.js.map +1 -0
- package/lib/api/form.d.ts +12 -0
- package/lib/api/form.d.ts.map +1 -0
- package/lib/api/form.js +239 -0
- package/lib/api/form.js.map +1 -0
- package/lib/api/icon.d.ts +22 -0
- package/lib/api/icon.d.ts.map +1 -0
- package/lib/api/icon.js +178 -0
- package/lib/api/icon.js.map +1 -0
- package/lib/api/index.d.ts +10 -0
- package/lib/api/index.d.ts.map +1 -0
- package/lib/api/index.js +11 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/layer.d.ts +14 -0
- package/lib/api/layer.d.ts.map +1 -0
- package/lib/api/layer.js +70 -0
- package/lib/api/layer.js.map +1 -0
- package/lib/api/location.d.ts +14 -0
- package/lib/api/location.d.ts.map +1 -0
- package/lib/api/location.js +35 -0
- package/lib/api/location.js.map +1 -0
- package/lib/api/observation.d.ts +25 -0
- package/lib/api/observation.d.ts.map +1 -0
- package/lib/api/observation.js +224 -0
- package/lib/api/observation.js.map +1 -0
- package/lib/api/user.d.ts +16 -0
- package/lib/api/user.d.ts.map +1 -0
- package/lib/api/user.js +250 -0
- package/lib/api/user.js.map +1 -0
- package/lib/app.api/app.api.errors.d.ts +42 -0
- package/lib/app.api/app.api.errors.d.ts.map +1 -0
- package/lib/app.api/app.api.errors.js +43 -0
- package/lib/app.api/app.api.errors.js.map +1 -0
- package/lib/app.api/app.api.global.d.ts +74 -0
- package/lib/app.api/app.api.global.d.ts.map +1 -0
- package/lib/app.api/app.api.global.js +59 -0
- package/lib/app.api/app.api.global.js.map +1 -0
- package/lib/app.api/events/app.api.events.d.ts +31 -0
- package/lib/app.api/events/app.api.events.d.ts.map +1 -0
- package/lib/app.api/events/app.api.events.js +3 -0
- package/lib/app.api/events/app.api.events.js.map +1 -0
- package/lib/app.api/feeds/app.api.feeds.d.ts +139 -0
- package/lib/app.api/feeds/app.api.feeds.d.ts.map +1 -0
- package/lib/app.api/feeds/app.api.feeds.js +26 -0
- package/lib/app.api/feeds/app.api.feeds.js.map +1 -0
- package/lib/app.api/icons/app.api.icons.d.ts +60 -0
- package/lib/app.api/icons/app.api.icons.d.ts.map +1 -0
- package/lib/app.api/icons/app.api.icons.js +29 -0
- package/lib/app.api/icons/app.api.icons.js.map +1 -0
- package/lib/app.api/observations/app.api.observations.d.ts +126 -0
- package/lib/app.api/observations/app.api.observations.d.ts.map +1 -0
- package/lib/app.api/observations/app.api.observations.js +61 -0
- package/lib/app.api/observations/app.api.observations.js.map +1 -0
- package/lib/app.api/users/app.api.users.d.ts +24 -0
- package/lib/app.api/users/app.api.users.d.ts.map +1 -0
- package/lib/app.api/users/app.api.users.js +3 -0
- package/lib/app.api/users/app.api.users.js.map +1 -0
- package/lib/app.d.ts +38 -0
- package/lib/app.d.ts.map +1 -0
- package/lib/app.impl/events/app.impl.events.d.ts +8 -0
- package/lib/app.impl/events/app.impl.events.d.ts.map +1 -0
- package/lib/app.impl/events/app.impl.events.js +107 -0
- package/lib/app.impl/events/app.impl.events.js.map +1 -0
- package/lib/app.impl/feeds/app.impl.feeds.d.ts +21 -0
- package/lib/app.impl/feeds/app.impl.feeds.d.ts.map +1 -0
- package/lib/app.impl/feeds/app.impl.feeds.js +527 -0
- package/lib/app.impl/feeds/app.impl.feeds.js.map +1 -0
- package/lib/app.impl/icons/app.impl.icons.d.ts +7 -0
- package/lib/app.impl/icons/app.impl.icons.d.ts.map +1 -0
- package/lib/app.impl/icons/app.impl.icons.js +81 -0
- package/lib/app.impl/icons/app.impl.icons.js.map +1 -0
- package/lib/app.impl/observations/app.impl.observations.d.ts +11 -0
- package/lib/app.impl/observations/app.impl.observations.d.ts.map +1 -0
- package/lib/app.impl/observations/app.impl.observations.js +357 -0
- package/lib/app.impl/observations/app.impl.observations.js.map +1 -0
- package/lib/app.impl/users/app.impl.users.d.ts +4 -0
- package/lib/app.impl/users/app.impl.users.d.ts.map +1 -0
- package/lib/app.impl/users/app.impl.users.js +37 -0
- package/lib/app.impl/users/app.impl.users.js.map +1 -0
- package/lib/app.js +507 -0
- package/lib/app.js.map +1 -0
- package/lib/assets/default-icon.png +0 -0
- package/lib/authentication/anonymous.d.ts +6 -0
- package/lib/authentication/anonymous.d.ts.map +1 -0
- package/lib/authentication/anonymous.js +17 -0
- package/lib/authentication/anonymous.js.map +1 -0
- package/lib/authentication/index.d.ts +24 -0
- package/lib/authentication/index.d.ts.map +1 -0
- package/lib/authentication/index.js +104 -0
- package/lib/authentication/index.js.map +1 -0
- package/lib/authentication/ldap.d.ts +2 -0
- package/lib/authentication/ldap.d.ts.map +1 -0
- package/lib/authentication/ldap.js +130 -0
- package/lib/authentication/ldap.js.map +1 -0
- package/lib/authentication/local.d.ts +2 -0
- package/lib/authentication/local.d.ts.map +1 -0
- package/lib/authentication/local.js +77 -0
- package/lib/authentication/local.js.map +1 -0
- package/lib/authentication/oauth.d.ts +2 -0
- package/lib/authentication/oauth.d.ts.map +1 -0
- package/lib/authentication/oauth.js +197 -0
- package/lib/authentication/oauth.js.map +1 -0
- package/lib/authentication/openidconnect.d.ts +2 -0
- package/lib/authentication/openidconnect.d.ts.map +1 -0
- package/lib/authentication/openidconnect.js +148 -0
- package/lib/authentication/openidconnect.js.map +1 -0
- package/lib/authentication/saml.d.ts +2 -0
- package/lib/authentication/saml.d.ts.map +1 -0
- package/lib/authentication/saml.js +287 -0
- package/lib/authentication/saml.js.map +1 -0
- package/lib/authentication/verification.d.ts +33 -0
- package/lib/authentication/verification.d.ts.map +1 -0
- package/lib/authentication/verification.js +144 -0
- package/lib/authentication/verification.js.map +1 -0
- package/lib/config.d.ts +15 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +20 -0
- package/lib/config.js.map +1 -0
- package/lib/dist-package.json +203 -0
- package/lib/docs/auth/local.yaml +90 -0
- package/lib/docs/geojson.yaml +375 -0
- package/lib/docs/openapi.yaml +4591 -0
- package/lib/entities/authentication/entities.authentication.d.ts +14 -0
- package/lib/entities/authentication/entities.authentication.d.ts.map +1 -0
- package/lib/entities/authentication/entities.authentication.js +3 -0
- package/lib/entities/authentication/entities.authentication.js.map +1 -0
- package/lib/entities/authorization/entities.authorization.d.ts +7 -0
- package/lib/entities/authorization/entities.authorization.d.ts.map +1 -0
- package/lib/entities/authorization/entities.authorization.js +3 -0
- package/lib/entities/authorization/entities.authorization.js.map +1 -0
- package/lib/entities/authorization/entities.permissions.d.ts +143 -0
- package/lib/entities/authorization/entities.permissions.d.ts.map +1 -0
- package/lib/entities/authorization/entities.permissions.js +101 -0
- package/lib/entities/authorization/entities.permissions.js.map +1 -0
- package/lib/entities/entities.domain_events.d.ts +1 -0
- package/lib/entities/entities.domain_events.d.ts.map +1 -0
- package/lib/entities/entities.domain_events.js +20 -0
- package/lib/entities/entities.domain_events.js.map +1 -0
- package/lib/entities/entities.global.d.ts +107 -0
- package/lib/entities/entities.global.d.ts.map +1 -0
- package/lib/entities/entities.global.js +67 -0
- package/lib/entities/entities.global.js.map +1 -0
- package/lib/entities/entities.i18n.d.ts +78 -0
- package/lib/entities/entities.i18n.d.ts.map +1 -0
- package/lib/entities/entities.i18n.js +69 -0
- package/lib/entities/entities.i18n.js.map +1 -0
- package/lib/entities/entities.json_types.d.ts +42 -0
- package/lib/entities/entities.json_types.d.ts.map +1 -0
- package/lib/entities/entities.json_types.js +3 -0
- package/lib/entities/entities.json_types.js.map +1 -0
- package/lib/entities/events/entities.events.d.ts +118 -0
- package/lib/entities/events/entities.events.d.ts.map +1 -0
- package/lib/entities/events/entities.events.forms.d.ts +132 -0
- package/lib/entities/events/entities.events.forms.d.ts.map +1 -0
- package/lib/entities/events/entities.events.forms.js +102 -0
- package/lib/entities/events/entities.events.forms.js.map +1 -0
- package/lib/entities/events/entities.events.js +146 -0
- package/lib/entities/events/entities.events.js.map +1 -0
- package/lib/entities/feeds/entities.feeds.d.ts +340 -0
- package/lib/entities/feeds/entities.feeds.d.ts.map +1 -0
- package/lib/entities/feeds/entities.feeds.js +213 -0
- package/lib/entities/feeds/entities.feeds.js.map +1 -0
- package/lib/entities/icons/entities.icons.d.ts +106 -0
- package/lib/entities/icons/entities.icons.d.ts.map +1 -0
- package/lib/entities/icons/entities.icons.js +26 -0
- package/lib/entities/icons/entities.icons.js.map +1 -0
- package/lib/entities/observations/entities.observations.d.ts +569 -0
- package/lib/entities/observations/entities.observations.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.attachment.d.ts +5 -0
- package/lib/entities/observations/entities.observations.fields.attachment.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.attachment.js +24 -0
- package/lib/entities/observations/entities.observations.fields.attachment.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.checkbox.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.checkbox.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.checkbox.js +17 -0
- package/lib/entities/observations/entities.observations.fields.checkbox.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.d.ts +20 -0
- package/lib/entities/observations/entities.observations.fields.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.date.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.date.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.date.js +21 -0
- package/lib/entities/observations/entities.observations.fields.date.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.email.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.email.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.email.js +20 -0
- package/lib/entities/observations/entities.observations.fields.email.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.geometry.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.geometry.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.geometry.js +62 -0
- package/lib/entities/observations/entities.observations.fields.geometry.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.js +37 -0
- package/lib/entities/observations/entities.observations.fields.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.multiselect.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.multiselect.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.multiselect.js +24 -0
- package/lib/entities/observations/entities.observations.fields.multiselect.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.numeric.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.numeric.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.numeric.js +24 -0
- package/lib/entities/observations/entities.observations.fields.numeric.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.required.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.required.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.required.js +14 -0
- package/lib/entities/observations/entities.observations.fields.required.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.select.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.select.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.select.js +17 -0
- package/lib/entities/observations/entities.observations.fields.select.js.map +1 -0
- package/lib/entities/observations/entities.observations.fields.text.d.ts +3 -0
- package/lib/entities/observations/entities.observations.fields.text.d.ts.map +1 -0
- package/lib/entities/observations/entities.observations.fields.text.js +15 -0
- package/lib/entities/observations/entities.observations.fields.text.js.map +1 -0
- package/lib/entities/observations/entities.observations.js +873 -0
- package/lib/entities/observations/entities.observations.js.map +1 -0
- package/lib/entities/ogcapi-features/entities.ogcapi-features.d.ts +98 -0
- package/lib/entities/ogcapi-features/entities.ogcapi-features.d.ts.map +1 -0
- package/lib/entities/ogcapi-features/entities.ogcapi-features.js +30 -0
- package/lib/entities/ogcapi-features/entities.ogcapi-features.js.map +1 -0
- package/lib/entities/teams/entities.teams.d.ts +26 -0
- package/lib/entities/teams/entities.teams.d.ts.map +1 -0
- package/lib/entities/teams/entities.teams.js +3 -0
- package/lib/entities/teams/entities.teams.js.map +1 -0
- package/lib/entities/users/entities.users.d.ts +66 -0
- package/lib/entities/users/entities.users.d.ts.map +1 -0
- package/lib/entities/users/entities.users.js +10 -0
- package/lib/entities/users/entities.users.js.map +1 -0
- package/lib/environment/env.d.ts +29 -0
- package/lib/environment/env.d.ts.map +1 -0
- package/lib/environment/env.js +106 -0
- package/lib/environment/env.js.map +1 -0
- package/lib/export/csv.d.ts +11 -0
- package/lib/export/csv.d.ts.map +1 -0
- package/lib/export/csv.js +243 -0
- package/lib/export/csv.js.map +1 -0
- package/lib/export/exporter.d.ts +12 -0
- package/lib/export/exporter.d.ts.map +1 -0
- package/lib/export/exporter.js +38 -0
- package/lib/export/exporter.js.map +1 -0
- package/lib/export/exporterFactory.d.ts +11 -0
- package/lib/export/exporterFactory.d.ts.map +1 -0
- package/lib/export/exporterFactory.js +17 -0
- package/lib/export/exporterFactory.js.map +1 -0
- package/lib/export/geojson.d.ts +10 -0
- package/lib/export/geojson.d.ts.map +1 -0
- package/lib/export/geojson.js +167 -0
- package/lib/export/geojson.js.map +1 -0
- package/lib/export/geopackage.d.ts +25 -0
- package/lib/export/geopackage.d.ts.map +1 -0
- package/lib/export/geopackage.js +687 -0
- package/lib/export/geopackage.js.map +1 -0
- package/lib/export/kml.d.ts +10 -0
- package/lib/export/kml.d.ts.map +1 -0
- package/lib/export/kml.js +128 -0
- package/lib/export/kml.js.map +1 -0
- package/lib/export/kmlWriter.d.ts +24 -0
- package/lib/export/kmlWriter.d.ts.map +1 -0
- package/lib/export/kmlWriter.js +431 -0
- package/lib/export/kmlWriter.js.map +1 -0
- package/lib/express.d.ts +9 -0
- package/lib/express.d.ts.map +1 -0
- package/lib/express.js +70 -0
- package/lib/express.js.map +1 -0
- package/lib/format/geoJsonFormat.d.ts +3 -0
- package/lib/format/geoJsonFormat.d.ts.map +1 -0
- package/lib/format/geoJsonFormat.js +65 -0
- package/lib/format/geoJsonFormat.js.map +1 -0
- package/lib/logger.d.ts +2 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +21 -0
- package/lib/logger.js.map +1 -0
- package/lib/main.impl/main.impl.plugins.d.ts +12 -0
- package/lib/main.impl/main.impl.plugins.d.ts.map +1 -0
- package/lib/main.impl/main.impl.plugins.js +41 -0
- package/lib/main.impl/main.impl.plugins.js.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.events.d.ts +3 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.events.d.ts.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.events.js +32 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.events.js.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.feeds.d.ts +4 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.feeds.d.ts.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.feeds.js +26 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.feeds.js.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.icons.d.ts +4 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.icons.d.ts.map +1 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.icons.js +41 -0
- package/lib/main.impl/plugin_hooks/main.impl.plugin_hooks.icons.js.map +1 -0
- package/lib/migrate.d.ts +4 -0
- package/lib/migrate.d.ts.map +1 -0
- package/lib/migrate.js +96 -0
- package/lib/migrate.js.map +1 -0
- package/lib/migrations/002-create-user-role.d.ts +4 -0
- package/lib/migrations/002-create-user-role.d.ts.map +1 -0
- package/lib/migrations/002-create-user-role.js +30 -0
- package/lib/migrations/002-create-user-role.js.map +1 -0
- package/lib/migrations/003-create-admin-role.d.ts +4 -0
- package/lib/migrations/003-create-admin-role.d.ts.map +1 -0
- package/lib/migrations/003-create-admin-role.js +31 -0
- package/lib/migrations/003-create-admin-role.js.map +1 -0
- package/lib/migrations/005-create-osm-layer.d.ts +4 -0
- package/lib/migrations/005-create-osm-layer.d.ts.map +1 -0
- package/lib/migrations/005-create-osm-layer.js +51 -0
- package/lib/migrations/005-create-osm-layer.js.map +1 -0
- package/lib/migrations/006-event-teams.d.ts +4 -0
- package/lib/migrations/006-event-teams.d.ts.map +1 -0
- package/lib/migrations/006-event-teams.js +40 -0
- package/lib/migrations/006-event-teams.js.map +1 -0
- package/lib/migrations/007-user-icon.d.ts +4 -0
- package/lib/migrations/007-user-icon.d.ts.map +1 -0
- package/lib/migrations/007-user-icon.js +21 -0
- package/lib/migrations/007-user-icon.js.map +1 -0
- package/lib/migrations/008-create-user-no-edit-role.d.ts +4 -0
- package/lib/migrations/008-create-user-no-edit-role.d.ts.map +1 -0
- package/lib/migrations/008-create-user-no-edit-role.js +34 -0
- package/lib/migrations/008-create-user-no-edit-role.js.map +1 -0
- package/lib/migrations/009-create-manager-role.d.ts +4 -0
- package/lib/migrations/009-create-manager-role.d.ts.map +1 -0
- package/lib/migrations/009-create-manager-role.js +50 -0
- package/lib/migrations/009-create-manager-role.js.map +1 -0
- package/lib/migrations/010-add-user-device-manager-role.d.ts +4 -0
- package/lib/migrations/010-add-user-device-manager-role.d.ts.map +1 -0
- package/lib/migrations/010-add-user-device-manager-role.js +38 -0
- package/lib/migrations/010-add-user-device-manager-role.js.map +1 -0
- package/lib/migrations/011-multiple-forms.d.ts +4 -0
- package/lib/migrations/011-multiple-forms.d.ts.map +1 -0
- package/lib/migrations/011-multiple-forms.js +161 -0
- package/lib/migrations/011-multiple-forms.js.map +1 -0
- package/lib/migrations/012-user-role-remove-delete.d.ts +4 -0
- package/lib/migrations/012-user-role-remove-delete.d.ts.map +1 -0
- package/lib/migrations/012-user-role-remove-delete.js +15 -0
- package/lib/migrations/012-user-role-remove-delete.js.map +1 -0
- package/lib/migrations/013-ensure-event-indexes.d.ts +4 -0
- package/lib/migrations/013-ensure-event-indexes.d.ts.map +1 -0
- package/lib/migrations/013-ensure-event-indexes.js +50 -0
- package/lib/migrations/013-ensure-event-indexes.js.map +1 -0
- package/lib/migrations/014-add-role-update-permission.d.ts +4 -0
- package/lib/migrations/014-add-role-update-permission.d.ts.map +1 -0
- package/lib/migrations/014-add-role-update-permission.js +15 -0
- package/lib/migrations/014-add-role-update-permission.js.map +1 -0
- package/lib/migrations/015-manager-role-add-user-create.d.ts +4 -0
- package/lib/migrations/015-manager-role-add-user-create.d.ts.map +1 -0
- package/lib/migrations/015-manager-role-add-user-create.js +15 -0
- package/lib/migrations/015-manager-role-add-user-create.js.map +1 -0
- package/lib/migrations/016-set-feed-primary-secondary.d.ts +4 -0
- package/lib/migrations/016-set-feed-primary-secondary.d.ts.map +1 -0
- package/lib/migrations/016-set-feed-primary-secondary.js +36 -0
- package/lib/migrations/016-set-feed-primary-secondary.js.map +1 -0
- package/lib/migrations/017-make-layers-available.d.ts +4 -0
- package/lib/migrations/017-make-layers-available.d.ts.map +1 -0
- package/lib/migrations/017-make-layers-available.js +48 -0
- package/lib/migrations/017-make-layers-available.js.map +1 -0
- package/lib/migrations/018-feeds-admin-permissions.d.ts +4 -0
- package/lib/migrations/018-feeds-admin-permissions.d.ts.map +1 -0
- package/lib/migrations/018-feeds-admin-permissions.js +32 -0
- package/lib/migrations/018-feeds-admin-permissions.js.map +1 -0
- package/lib/migrations/018-set-default-password-policy.d.ts +4 -0
- package/lib/migrations/018-set-default-password-policy.d.ts.map +1 -0
- package/lib/migrations/018-set-default-password-policy.js +58 -0
- package/lib/migrations/018-set-default-password-policy.js.map +1 -0
- package/lib/migrations/019-move-user-authentication.d.ts +4 -0
- package/lib/migrations/019-move-user-authentication.d.ts.map +1 -0
- package/lib/migrations/019-move-user-authentication.js +68 -0
- package/lib/migrations/019-move-user-authentication.js.map +1 -0
- package/lib/migrations/020-add-export-permissions.d.ts +4 -0
- package/lib/migrations/020-add-export-permissions.d.ts.map +1 -0
- package/lib/migrations/020-add-export-permissions.js +36 -0
- package/lib/migrations/020-add-export-permissions.js.map +1 -0
- package/lib/migrations/022-copy-auth-from-config-to-db.d.ts +4 -0
- package/lib/migrations/022-copy-auth-from-config-to-db.d.ts.map +1 -0
- package/lib/migrations/022-copy-auth-from-config-to-db.js +86 -0
- package/lib/migrations/022-copy-auth-from-config-to-db.js.map +1 -0
- package/lib/migrations/023-move-local-auth-from-settings.d.ts +4 -0
- package/lib/migrations/023-move-local-auth-from-settings.d.ts.map +1 -0
- package/lib/migrations/023-move-local-auth-from-settings.js +54 -0
- package/lib/migrations/023-move-local-auth-from-settings.js.map +1 -0
- package/lib/migrations/024-link-auth-to-auth-config.d.ts +4 -0
- package/lib/migrations/024-link-auth-to-auth-config.d.ts.map +1 -0
- package/lib/migrations/024-link-auth-to-auth-config.js +59 -0
- package/lib/migrations/024-link-auth-to-auth-config.js.map +1 -0
- package/lib/migrations/025-add-auth-config-permissions.d.ts +4 -0
- package/lib/migrations/025-add-auth-config-permissions.d.ts.map +1 -0
- package/lib/migrations/025-add-auth-config-permissions.js +32 -0
- package/lib/migrations/025-add-auth-config-permissions.js.map +1 -0
- package/lib/migrations/028-move-security-settings-to-secret-store.d.ts +4 -0
- package/lib/migrations/028-move-security-settings-to-secret-store.d.ts.map +1 -0
- package/lib/migrations/028-move-security-settings-to-secret-store.js +59 -0
- package/lib/migrations/028-move-security-settings-to-secret-store.js.map +1 -0
- package/lib/migrations/029-attachment-form-field.d.ts +4 -0
- package/lib/migrations/029-attachment-form-field.d.ts.map +1 -0
- package/lib/migrations/029-attachment-form-field.js +130 -0
- package/lib/migrations/029-attachment-form-field.js.map +1 -0
- package/lib/models/authentication.d.ts +17 -0
- package/lib/models/authentication.d.ts.map +1 -0
- package/lib/models/authentication.js +174 -0
- package/lib/models/authentication.js.map +1 -0
- package/lib/models/authenticationconfiguration.d.ts +15 -0
- package/lib/models/authenticationconfiguration.d.ts.map +1 -0
- package/lib/models/authenticationconfiguration.js +105 -0
- package/lib/models/authenticationconfiguration.js.map +1 -0
- package/lib/models/cappedLocation.d.ts +8 -0
- package/lib/models/cappedLocation.d.ts.map +1 -0
- package/lib/models/cappedLocation.js +78 -0
- package/lib/models/cappedLocation.js.map +1 -0
- package/lib/models/counter.d.ts +3 -0
- package/lib/models/counter.d.ts.map +1 -0
- package/lib/models/counter.js +37 -0
- package/lib/models/counter.js.map +1 -0
- package/lib/models/device.d.ts +14 -0
- package/lib/models/device.d.ts.map +1 -0
- package/lib/models/device.js +220 -0
- package/lib/models/device.js.map +1 -0
- package/lib/models/event.d.ts +75 -0
- package/lib/models/event.d.ts.map +1 -0
- package/lib/models/event.js +839 -0
- package/lib/models/event.js.map +1 -0
- package/lib/models/export.d.ts +18 -0
- package/lib/models/export.d.ts.map +1 -0
- package/lib/models/export.js +107 -0
- package/lib/models/export.js.map +1 -0
- package/lib/models/feature.d.ts +4 -0
- package/lib/models/feature.d.ts.map +1 -0
- package/lib/models/feature.js +43 -0
- package/lib/models/feature.js.map +1 -0
- package/lib/models/icon.d.ts +9 -0
- package/lib/models/icon.d.ts.map +1 -0
- package/lib/models/icon.js +69 -0
- package/lib/models/icon.js.map +1 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/index.js +12 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/layer.d.ts +13 -0
- package/lib/models/layer.d.ts.map +1 -0
- package/lib/models/layer.js +149 -0
- package/lib/models/layer.js.map +1 -0
- package/lib/models/location.d.ts +8 -0
- package/lib/models/location.d.ts.map +1 -0
- package/lib/models/location.js +96 -0
- package/lib/models/location.js.map +1 -0
- package/lib/models/login.d.ts +4 -0
- package/lib/models/login.d.ts.map +1 -0
- package/lib/models/login.js +90 -0
- package/lib/models/login.js.map +1 -0
- package/lib/models/observation.d.ts +93 -0
- package/lib/models/observation.d.ts.map +1 -0
- package/lib/models/observation.js +461 -0
- package/lib/models/observation.js.map +1 -0
- package/lib/models/role.d.ts +22 -0
- package/lib/models/role.d.ts.map +1 -0
- package/lib/models/role.js +80 -0
- package/lib/models/role.js.map +1 -0
- package/lib/models/setting.d.ts +6 -0
- package/lib/models/setting.d.ts.map +1 -0
- package/lib/models/setting.js +31 -0
- package/lib/models/setting.js.map +1 -0
- package/lib/models/team.d.ts +31 -0
- package/lib/models/team.d.ts.map +1 -0
- package/lib/models/team.js +511 -0
- package/lib/models/team.js.map +1 -0
- package/lib/models/token.d.ts +6 -0
- package/lib/models/token.d.ts.map +1 -0
- package/lib/models/token.js +68 -0
- package/lib/models/token.js.map +1 -0
- package/lib/models/user.d.ts +60 -0
- package/lib/models/user.d.ts.map +1 -0
- package/lib/models/user.js +400 -0
- package/lib/models/user.js.map +1 -0
- package/lib/permissions/permissions.events.d.ts +69 -0
- package/lib/permissions/permissions.events.d.ts.map +1 -0
- package/lib/permissions/permissions.events.js +154 -0
- package/lib/permissions/permissions.events.js.map +1 -0
- package/lib/permissions/permissions.feeds.d.ts +19 -0
- package/lib/permissions/permissions.feeds.d.ts.map +1 -0
- package/lib/permissions/permissions.feeds.js +58 -0
- package/lib/permissions/permissions.feeds.js.map +1 -0
- package/lib/permissions/permissions.icons.d.ts +9 -0
- package/lib/permissions/permissions.icons.d.ts.map +1 -0
- package/lib/permissions/permissions.icons.js +28 -0
- package/lib/permissions/permissions.icons.js.map +1 -0
- package/lib/permissions/permissions.observations.d.ts +14 -0
- package/lib/permissions/permissions.observations.d.ts.map +1 -0
- package/lib/permissions/permissions.observations.js +113 -0
- package/lib/permissions/permissions.observations.js.map +1 -0
- package/lib/permissions/permissions.role-based.base.d.ts +15 -0
- package/lib/permissions/permissions.role-based.base.d.ts.map +1 -0
- package/lib/permissions/permissions.role-based.base.js +14 -0
- package/lib/permissions/permissions.role-based.base.js.map +1 -0
- package/lib/permissions/permissions.users.d.ts +8 -0
- package/lib/permissions/permissions.users.d.ts.map +1 -0
- package/lib/permissions/permissions.users.js +23 -0
- package/lib/permissions/permissions.users.js.map +1 -0
- package/lib/plugins.api/index.d.ts +55 -0
- package/lib/plugins.api/index.d.ts.map +1 -0
- package/lib/plugins.api/index.js +5 -0
- package/lib/plugins.api/index.js.map +1 -0
- package/lib/plugins.api/plugins.api.db.d.ts +7 -0
- package/lib/plugins.api/plugins.api.db.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.db.js +5 -0
- package/lib/plugins.api/plugins.api.db.js.map +1 -0
- package/lib/plugins.api/plugins.api.events.d.ts +24 -0
- package/lib/plugins.api/plugins.api.events.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.events.js +5 -0
- package/lib/plugins.api/plugins.api.events.js.map +1 -0
- package/lib/plugins.api/plugins.api.feeds.d.ts +35 -0
- package/lib/plugins.api/plugins.api.feeds.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.feeds.js +12 -0
- package/lib/plugins.api/plugins.api.feeds.js.map +1 -0
- package/lib/plugins.api/plugins.api.icons.d.ts +21 -0
- package/lib/plugins.api/plugins.api.icons.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.icons.js +5 -0
- package/lib/plugins.api/plugins.api.icons.js.map +1 -0
- package/lib/plugins.api/plugins.api.observations.d.ts +10 -0
- package/lib/plugins.api/plugins.api.observations.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.observations.js +11 -0
- package/lib/plugins.api/plugins.api.observations.js.map +1 -0
- package/lib/plugins.api/plugins.api.users.d.ts +4 -0
- package/lib/plugins.api/plugins.api.users.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.users.js +5 -0
- package/lib/plugins.api/plugins.api.users.js.map +1 -0
- package/lib/plugins.api/plugins.api.web.d.ts +10 -0
- package/lib/plugins.api/plugins.api.web.d.ts.map +1 -0
- package/lib/plugins.api/plugins.api.web.js +3 -0
- package/lib/plugins.api/plugins.api.web.js.map +1 -0
- package/lib/provision/index.d.ts +23 -0
- package/lib/provision/index.d.ts.map +1 -0
- package/lib/provision/index.js +60 -0
- package/lib/provision/index.js.map +1 -0
- package/lib/provision/none.d.ts +3 -0
- package/lib/provision/none.d.ts.map +1 -0
- package/lib/provision/none.js +41 -0
- package/lib/provision/none.js.map +1 -0
- package/lib/provision/strategies/none.d.ts +9 -0
- package/lib/provision/strategies/none.d.ts.map +1 -0
- package/lib/provision/strategies/none.js +25 -0
- package/lib/provision/strategies/none.js.map +1 -0
- package/lib/provision/strategies/uid.d.ts +9 -0
- package/lib/provision/strategies/uid.d.ts.map +1 -0
- package/lib/provision/strategies/uid.js +28 -0
- package/lib/provision/strategies/uid.js.map +1 -0
- package/lib/provision/uid.d.ts +3 -0
- package/lib/provision/uid.d.ts.map +1 -0
- package/lib/provision/uid.js +43 -0
- package/lib/provision/uid.js.map +1 -0
- package/lib/routes/authenticationconfigurations.d.ts +3 -0
- package/lib/routes/authenticationconfigurations.d.ts.map +1 -0
- package/lib/routes/authenticationconfigurations.js +209 -0
- package/lib/routes/authenticationconfigurations.js.map +1 -0
- package/lib/routes/devices.d.ts +3 -0
- package/lib/routes/devices.d.ts.map +1 -0
- package/lib/routes/devices.js +201 -0
- package/lib/routes/devices.js.map +1 -0
- package/lib/routes/events.d.ts +47 -0
- package/lib/routes/events.d.ts.map +1 -0
- package/lib/routes/events.js +495 -0
- package/lib/routes/events.js.map +1 -0
- package/lib/routes/exports.d.ts +3 -0
- package/lib/routes/exports.d.ts.map +1 -0
- package/lib/routes/exports.js +204 -0
- package/lib/routes/exports.js.map +1 -0
- package/lib/routes/imports.d.ts +3 -0
- package/lib/routes/imports.d.ts.map +1 -0
- package/lib/routes/imports.js +41 -0
- package/lib/routes/imports.js.map +1 -0
- package/lib/routes/index.d.ts +3 -0
- package/lib/routes/index.d.ts.map +1 -0
- package/lib/routes/index.js +151 -0
- package/lib/routes/index.js.map +1 -0
- package/lib/routes/layers.d.ts +3 -0
- package/lib/routes/layers.d.ts.map +1 -0
- package/lib/routes/layers.js +433 -0
- package/lib/routes/layers.js.map +1 -0
- package/lib/routes/locations.d.ts +3 -0
- package/lib/routes/locations.d.ts.map +1 -0
- package/lib/routes/locations.js +124 -0
- package/lib/routes/locations.js.map +1 -0
- package/lib/routes/logins.d.ts +3 -0
- package/lib/routes/logins.d.ts.map +1 -0
- package/lib/routes/logins.js +64 -0
- package/lib/routes/logins.js.map +1 -0
- package/lib/routes/observations.d.ts +3 -0
- package/lib/routes/observations.d.ts.map +1 -0
- package/lib/routes/observations.js +363 -0
- package/lib/routes/observations.js.map +1 -0
- package/lib/routes/plugins.d.ts +3 -0
- package/lib/routes/plugins.d.ts.map +1 -0
- package/lib/routes/plugins.js +29 -0
- package/lib/routes/plugins.js.map +1 -0
- package/lib/routes/roles.d.ts +3 -0
- package/lib/routes/roles.d.ts.map +1 -0
- package/lib/routes/roles.js +64 -0
- package/lib/routes/roles.js.map +1 -0
- package/lib/routes/settings.d.ts +3 -0
- package/lib/routes/settings.d.ts.map +1 -0
- package/lib/routes/settings.js +21 -0
- package/lib/routes/settings.js.map +1 -0
- package/lib/routes/setup.d.ts +3 -0
- package/lib/routes/setup.d.ts.map +1 -0
- package/lib/routes/setup.js +90 -0
- package/lib/routes/setup.js.map +1 -0
- package/lib/routes/teams.d.ts +3 -0
- package/lib/routes/teams.d.ts.map +1 -0
- package/lib/routes/teams.js +213 -0
- package/lib/routes/teams.js.map +1 -0
- package/lib/routes/users.d.ts +3 -0
- package/lib/routes/users.d.ts.map +1 -0
- package/lib/routes/users.js +478 -0
- package/lib/routes/users.js.map +1 -0
- package/lib/schedule/export/export-task.d.ts +14 -0
- package/lib/schedule/export/export-task.d.ts.map +1 -0
- package/lib/schedule/export/export-task.js +70 -0
- package/lib/schedule/export/export-task.js.map +1 -0
- package/lib/schedule/index.d.ts +2 -0
- package/lib/schedule/index.d.ts.map +1 -0
- package/lib/schedule/index.js +27 -0
- package/lib/schedule/index.js.map +1 -0
- package/lib/security/key-mgt/key-mgt-factory.d.ts +7 -0
- package/lib/security/key-mgt/key-mgt-factory.d.ts.map +1 -0
- package/lib/security/key-mgt/key-mgt-factory.js +10 -0
- package/lib/security/key-mgt/key-mgt-factory.js.map +1 -0
- package/lib/security/key-mgt/plaintext-key-manager.d.ts +42 -0
- package/lib/security/key-mgt/plaintext-key-manager.d.ts.map +1 -0
- package/lib/security/key-mgt/plaintext-key-manager.js +52 -0
- package/lib/security/key-mgt/plaintext-key-manager.js.map +1 -0
- package/lib/security/responses/data-response.d.ts +13 -0
- package/lib/security/responses/data-response.d.ts.map +1 -0
- package/lib/security/responses/data-response.js +25 -0
- package/lib/security/responses/data-response.js.map +1 -0
- package/lib/security/secret-store-service.d.ts +39 -0
- package/lib/security/secret-store-service.d.ts.map +1 -0
- package/lib/security/secret-store-service.js +94 -0
- package/lib/security/secret-store-service.js.map +1 -0
- package/lib/security/storage/file-system-secret-store.d.ts +17 -0
- package/lib/security/storage/file-system-secret-store.d.ts.map +1 -0
- package/lib/security/storage/file-system-secret-store.js +46 -0
- package/lib/security/storage/file-system-secret-store.js.map +1 -0
- package/lib/security/storage/json-provider.d.ts +6 -0
- package/lib/security/storage/json-provider.d.ts.map +1 -0
- package/lib/security/storage/json-provider.js +17 -0
- package/lib/security/storage/json-provider.js.map +1 -0
- package/lib/security/utilities/secure-property-appender.d.ts +8 -0
- package/lib/security/utilities/secure-property-appender.d.ts.map +1 -0
- package/lib/security/utilities/secure-property-appender.js +39 -0
- package/lib/security/utilities/secure-property-appender.js.map +1 -0
- package/lib/transformers/authenticationconfiguration.d.ts +2 -0
- package/lib/transformers/authenticationconfiguration.d.ts.map +1 -0
- package/lib/transformers/authenticationconfiguration.js +22 -0
- package/lib/transformers/authenticationconfiguration.js.map +1 -0
- package/lib/transformers/export.d.ts +2 -0
- package/lib/transformers/export.d.ts.map +1 -0
- package/lib/transformers/export.js +13 -0
- package/lib/transformers/export.js.map +1 -0
- package/lib/transformers/geojson.d.ts +2 -0
- package/lib/transformers/geojson.d.ts.map +1 -0
- package/lib/transformers/geojson.js +24 -0
- package/lib/transformers/geojson.js.map +1 -0
- package/lib/transformers/layer.d.ts +2 -0
- package/lib/transformers/layer.d.ts.map +1 -0
- package/lib/transformers/layer.js +13 -0
- package/lib/transformers/layer.js.map +1 -0
- package/lib/transformers/observation.d.ts +2 -0
- package/lib/transformers/observation.d.ts.map +1 -0
- package/lib/transformers/observation.js +13 -0
- package/lib/transformers/observation.js.map +1 -0
- package/lib/transformers/pageinfo.d.ts +2 -0
- package/lib/transformers/pageinfo.d.ts.map +1 -0
- package/lib/transformers/pageinfo.js +27 -0
- package/lib/transformers/pageinfo.js.map +1 -0
- package/lib/transformers/user.d.ts +2 -0
- package/lib/transformers/user.d.ts.map +1 -0
- package/lib/transformers/user.js +21 -0
- package/lib/transformers/user.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/upload.d.ts +8 -0
- package/lib/upload.d.ts.map +1 -0
- package/lib/upload.js +30 -0
- package/lib/upload.js.map +1 -0
- package/lib/utilities/authenticationApiAppender.d.ts +10 -0
- package/lib/utilities/authenticationApiAppender.d.ts.map +1 -0
- package/lib/utilities/authenticationApiAppender.js +48 -0
- package/lib/utilities/authenticationApiAppender.js.map +1 -0
- package/lib/utilities/filterParser.d.ts +2 -0
- package/lib/utilities/filterParser.d.ts.map +1 -0
- package/lib/utilities/filterParser.js +87 -0
- package/lib/utilities/filterParser.js.map +1 -0
- package/lib/utilities/geopackage.d.ts +56 -0
- package/lib/utilities/geopackage.d.ts.map +1 -0
- package/lib/utilities/geopackage.js +335 -0
- package/lib/utilities/geopackage.js.map +1 -0
- package/lib/utilities/loader.d.ts +9 -0
- package/lib/utilities/loader.d.ts.map +1 -0
- package/lib/utilities/loader.js +25 -0
- package/lib/utilities/loader.js.map +1 -0
- package/lib/utilities/paging.d.ts +15 -0
- package/lib/utilities/paging.d.ts.map +1 -0
- package/lib/utilities/paging.js +56 -0
- package/lib/utilities/paging.js.map +1 -0
- package/lib/utilities/passwordValidator.d.ts +8 -0
- package/lib/utilities/passwordValidator.d.ts.map +1 -0
- package/lib/utilities/passwordValidator.js +175 -0
- package/lib/utilities/passwordValidator.js.map +1 -0
- package/lib/utilities/pbkdf2.d.ts +6 -0
- package/lib/utilities/pbkdf2.d.ts.map +1 -0
- package/lib/utilities/pbkdf2.js +79 -0
- package/lib/utilities/pbkdf2.js.map +1 -0
- package/lib/utilities/togeojson.d.ts +2 -0
- package/lib/utilities/togeojson.d.ts.map +1 -0
- package/lib/utilities/togeojson.js +308 -0
- package/lib/utilities/togeojson.js.map +1 -0
- package/lib/utilities/waitForMongooseConnection.d.ts +3 -0
- package/lib/utilities/waitForMongooseConnection.d.ts.map +1 -0
- package/lib/utilities/waitForMongooseConnection.js +34 -0
- package/lib/utilities/waitForMongooseConnection.js.map +1 -0
- package/lib/utilities/whitelist.d.ts +2 -0
- package/lib/utilities/whitelist.d.ts.map +1 -0
- package/lib/utilities/whitelist.js +18 -0
- package/lib/utilities/whitelist.js.map +1 -0
- package/lib/views/authentication.pug +10 -0
- package/lib/views/oauth.pug +12 -0
- package/lib/views/observation.pug +137 -0
- package/package.json +203 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.impl.icons.js","sourceRoot":"","sources":["../../../src/app.impl/icons/app.impl.icons.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAyB;AACzB,iEAA2E;AAC3E,iEAA4E;AAC5E,qEAAqT;AACrT,oEAAmE;AAInE,SAAgB,gBAAgB,CAAC,WAAwC;IACvE,OAAO,UAAS,GAAiC;QAC/C,OAAO,IAAA,+BAAc,EACnB,WAAW,CAAC,gCAAgC,CAAC,GAAG,CAAC,OAAO,CAAC,EACzD,GAAG,EAAE;YACH,MAAM,IAAI,KAAK,C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;YACT,0DAA0D;YAC1D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;YAClD,IAAI,OAAO,YAAY,oCAAkB,EAAE;gBACzC,OAAO,IAAA,uCAAuB,EAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;aACpD;YACD,IAAI,OAAO,EAAE;gBACX,OAAO;oBACL,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;oBACpB,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;iBACxB,CAAA;aACF;YACD,OAAO,IAAA,+BAAc,EAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;QACjD,CAAC,CAAA,CACF,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AApBD,oDAoBC;AAED,SAAgB,eAAe,CAAC,WAAwC;IACtE,OAAO,SAAS,eAAe,CAAC,GAA2B;QACzD,OAAO,IAAA,+BAAc,EACnB,WAAW,CAAC,6BAA6B,CAAC,GAAG,CAAC,OAAO,CAAC,EACtD,GAAG,EAAE;YACH,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,CAAA;QACzB,CAAC,CACF,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AATD,0CASC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import EventEmitter from 'events';
|
|
3
|
+
import * as api from '../../app.api/observations/app.api.observations';
|
|
4
|
+
import { AttachmentStore } from '../../entities/observations/entities.observations';
|
|
5
|
+
import { UserRepository } from '../../entities/users/entities.users';
|
|
6
|
+
export declare function AllocateObservationId(permissionService: api.ObservationPermissionService): api.AllocateObservationId;
|
|
7
|
+
export declare function SaveObservation(permissionService: api.ObservationPermissionService, userRepo: UserRepository): api.SaveObservation;
|
|
8
|
+
export declare function StoreAttachmentContent(permissionService: api.ObservationPermissionService, attachmentStore: AttachmentStore): api.StoreAttachmentContent;
|
|
9
|
+
export declare function ReadAttachmentContent(permissionService: api.ObservationPermissionService, attachmentStore: AttachmentStore): api.ReadAttachmentContent;
|
|
10
|
+
export declare function registerDeleteRemovedAttachmentsHandler(domainEvents: EventEmitter, attachmentStore: AttachmentStore): void;
|
|
11
|
+
//# sourceMappingURL=app.impl.observations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.impl.observations.d.ts","sourceRoot":"","sources":["../../../src/app.impl/observations/app.impl.observations.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAA;AAGjC,OAAO,KAAK,GAAG,MAAM,iDAAiD,CAAA;AAGtE,OAAO,EAAgG,eAAe,EAAmU,MAAM,mDAAmD,CAAA;AAClf,OAAO,EAAU,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAE5E,wBAAgB,qBAAqB,CAAC,iBAAiB,EAAE,GAAG,CAAC,4BAA4B,GAAG,GAAG,CAAC,qBAAqB,CAUpH;AAED,wBAAgB,eAAe,CAAC,iBAAiB,EAAE,GAAG,CAAC,4BAA4B,EAAE,QAAQ,EAAE,cAAc,GAAG,GAAG,CAAC,eAAe,CA+BlI;AAED,wBAAgB,sBAAsB,CAAC,iBAAiB,EAAE,GAAG,CAAC,4BAA4B,EAAE,eAAe,EAAE,eAAe,GAAG,GAAG,CAAC,sBAAsB,CAwCxJ;AAED,wBAAgB,qBAAqB,CAAC,iBAAiB,EAAE,GAAG,CAAC,4BAA4B,EAAE,eAAe,EAAE,eAAe,GAAG,GAAG,CAAC,qBAAqB,CA8CtJ;AAED,wBAAgB,uCAAuC,CAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,GAAG,IAAI,CAY1H"}
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
35
|
+
var t = {};
|
|
36
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
37
|
+
t[p] = s[p];
|
|
38
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
39
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
40
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
41
|
+
t[p[i]] = s[p[i]];
|
|
42
|
+
}
|
|
43
|
+
return t;
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.registerDeleteRemovedAttachmentsHandler = exports.ReadAttachmentContent = exports.StoreAttachmentContent = exports.SaveObservation = exports.AllocateObservationId = void 0;
|
|
47
|
+
const app_api_errors_1 = require("../../app.api/app.api.errors");
|
|
48
|
+
const app_api_global_1 = require("../../app.api/app.api.global");
|
|
49
|
+
const api = __importStar(require("../../app.api/observations/app.api.observations"));
|
|
50
|
+
const entities_events_forms_1 = require("../../entities/events/entities.events.forms");
|
|
51
|
+
const entities_observations_1 = require("../../entities/observations/entities.observations");
|
|
52
|
+
function AllocateObservationId(permissionService) {
|
|
53
|
+
return function allocateObservationId(req) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const denied = yield permissionService.ensureCreateObservationPermission(req.context);
|
|
56
|
+
if (denied) {
|
|
57
|
+
return app_api_global_1.AppResponse.error(denied);
|
|
58
|
+
}
|
|
59
|
+
const repo = req.context.observationRepository;
|
|
60
|
+
const id = yield repo.allocateObservationId();
|
|
61
|
+
return app_api_global_1.AppResponse.success(id);
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.AllocateObservationId = AllocateObservationId;
|
|
66
|
+
function SaveObservation(permissionService, userRepo) {
|
|
67
|
+
return function saveObservation(req) {
|
|
68
|
+
var _a;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const repo = req.context.observationRepository;
|
|
71
|
+
const mod = req.observation;
|
|
72
|
+
const before = yield repo.findById(mod.id);
|
|
73
|
+
const denied = before ?
|
|
74
|
+
yield permissionService.ensureUpdateObservationPermission(req.context) :
|
|
75
|
+
yield permissionService.ensureCreateObservationPermission(req.context);
|
|
76
|
+
if (denied) {
|
|
77
|
+
return app_api_global_1.AppResponse.error(denied);
|
|
78
|
+
}
|
|
79
|
+
const obs = yield prepareObservationMod(mod, before, req.context);
|
|
80
|
+
if (obs instanceof app_api_errors_1.MageError) {
|
|
81
|
+
return app_api_global_1.AppResponse.error(obs);
|
|
82
|
+
}
|
|
83
|
+
const saved = yield repo.save(obs);
|
|
84
|
+
if (saved instanceof entities_observations_1.Observation) {
|
|
85
|
+
const userIds = { creator: saved.userId, importantFlagger: (_a = saved.important) === null || _a === void 0 ? void 0 : _a.userId };
|
|
86
|
+
const userIdsLookup = Object.values(userIds).filter(x => !!x);
|
|
87
|
+
const usersFound = userIdsLookup.length ? yield userRepo.findAllByIds(userIdsLookup) : {};
|
|
88
|
+
const users = { creator: usersFound[userIds.creator || ''], importantFlagger: usersFound[userIds.importantFlagger || ''] };
|
|
89
|
+
const exoObs = api.exoObservationFor(saved, users);
|
|
90
|
+
return app_api_global_1.AppResponse.success(exoObs);
|
|
91
|
+
}
|
|
92
|
+
switch (saved.code) {
|
|
93
|
+
case entities_observations_1.ObservationRepositoryErrorCode.InvalidObservation:
|
|
94
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.invalidInput)((0, entities_observations_1.validationResultMessage)(obs.validation)));
|
|
95
|
+
case entities_observations_1.ObservationRepositoryErrorCode.InvalidObservationId:
|
|
96
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(obs.id, 'ObservationId'));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
exports.SaveObservation = SaveObservation;
|
|
102
|
+
function StoreAttachmentContent(permissionService, attachmentStore) {
|
|
103
|
+
return function storeAttachmentContent(req) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const obsRepo = req.context.observationRepository;
|
|
106
|
+
const obsBefore = yield obsRepo.findById(req.observationId);
|
|
107
|
+
if (!obsBefore) {
|
|
108
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.observationId, 'Observation'));
|
|
109
|
+
}
|
|
110
|
+
const attachmentBefore = obsBefore.attachmentFor(req.attachmentId);
|
|
111
|
+
if (!attachmentBefore) {
|
|
112
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.attachmentId, 'Attachment'));
|
|
113
|
+
}
|
|
114
|
+
const content = req.content;
|
|
115
|
+
if (content.mediaType !== attachmentBefore.contentType || content.name !== attachmentBefore.name) {
|
|
116
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.attachmentId, 'Attachment'));
|
|
117
|
+
}
|
|
118
|
+
const denied = yield permissionService.ensureStoreAttachmentContentPermission(req.context, obsBefore, attachmentBefore.id);
|
|
119
|
+
if (denied) {
|
|
120
|
+
return app_api_global_1.AppResponse.error(denied);
|
|
121
|
+
}
|
|
122
|
+
const attachmentPatch = yield attachmentStore.saveContent(req.content.bytes, attachmentBefore.id, obsBefore);
|
|
123
|
+
if (attachmentPatch instanceof entities_observations_1.AttachmentStoreError) {
|
|
124
|
+
if (attachmentPatch.errorCode === entities_observations_1.AttachmentStoreErrorCode.StorageError) {
|
|
125
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.infrastructureError)(attachmentPatch));
|
|
126
|
+
}
|
|
127
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.invalidInput)(attachmentPatch.message));
|
|
128
|
+
}
|
|
129
|
+
if (attachmentPatch === null) {
|
|
130
|
+
return app_api_global_1.AppResponse.success(api.exoObservationFor(obsBefore));
|
|
131
|
+
}
|
|
132
|
+
const obsAfterSave = yield obsRepo.patchAttachment(obsBefore, attachmentBefore.id, attachmentPatch);
|
|
133
|
+
if (obsAfterSave instanceof entities_observations_1.Observation) {
|
|
134
|
+
return app_api_global_1.AppResponse.success(api.exoObservationFor(obsAfterSave));
|
|
135
|
+
}
|
|
136
|
+
if (obsAfterSave instanceof entities_observations_1.AttachmentNotFoundError) {
|
|
137
|
+
// should not happen, except if the observation was updated by another client ¯\_(ツ)_/¯
|
|
138
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.invalidInput)(obsAfterSave.message));
|
|
139
|
+
}
|
|
140
|
+
// the observation was deleted by another client ¯\_(ツ)_/¯
|
|
141
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(obsBefore.id, 'Observation'));
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
exports.StoreAttachmentContent = StoreAttachmentContent;
|
|
146
|
+
function ReadAttachmentContent(permissionService, attachmentStore) {
|
|
147
|
+
return function readAttachmentContent(req) {
|
|
148
|
+
var _a;
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
const denied = yield permissionService.ensureReadObservationPermission(req.context);
|
|
151
|
+
if (denied) {
|
|
152
|
+
return app_api_global_1.AppResponse.error(denied);
|
|
153
|
+
}
|
|
154
|
+
const repo = req.context.observationRepository;
|
|
155
|
+
const obs = yield repo.findById(req.observationId);
|
|
156
|
+
if (!obs) {
|
|
157
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.observationId, 'Observation'));
|
|
158
|
+
}
|
|
159
|
+
const attachment = yield obs.attachmentFor(req.attachmentId);
|
|
160
|
+
if (!attachment) {
|
|
161
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.attachmentId, 'Attachment'));
|
|
162
|
+
}
|
|
163
|
+
const contentRange = typeof ((_a = req.contentRange) === null || _a === void 0 ? void 0 : _a.start) === 'number' && typeof req.contentRange.end === 'number' ?
|
|
164
|
+
{ start: req.contentRange.start, end: req.contentRange.end } : void (0);
|
|
165
|
+
let contentStream = null;
|
|
166
|
+
let exoAttachment = api.exoAttachmentFor(attachment);
|
|
167
|
+
if (typeof req.minDimension === 'number') {
|
|
168
|
+
const thumbIndex = (0, entities_observations_1.thumbnailIndexForTargetDimension)(req.minDimension, attachment);
|
|
169
|
+
const thumb = attachment.thumbnails[Number(thumbIndex)];
|
|
170
|
+
if (thumb) {
|
|
171
|
+
contentStream = yield attachmentStore.readThumbnailContent(thumb.minDimension, attachment.id, obs);
|
|
172
|
+
exoAttachment = api.exoAttachmentForThumbnail(thumbIndex, attachment);
|
|
173
|
+
}
|
|
174
|
+
if (!contentStream) {
|
|
175
|
+
contentStream = yield attachmentStore.readContent(attachment.id, obs);
|
|
176
|
+
exoAttachment = api.exoAttachmentFor(attachment);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
contentStream = yield attachmentStore.readContent(attachment.id, obs, contentRange);
|
|
181
|
+
}
|
|
182
|
+
if (!contentStream) {
|
|
183
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.entityNotFound)(req.attachmentId, 'AttachmentContent'));
|
|
184
|
+
}
|
|
185
|
+
if (contentStream instanceof entities_observations_1.AttachmentStoreError) {
|
|
186
|
+
return app_api_global_1.AppResponse.error((0, app_api_errors_1.infrastructureError)(contentStream.message));
|
|
187
|
+
}
|
|
188
|
+
return app_api_global_1.AppResponse.success({
|
|
189
|
+
attachment: exoAttachment,
|
|
190
|
+
bytes: contentStream,
|
|
191
|
+
bytesRange: typeof req.minDimension === 'number' ? void (0) : contentRange
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
exports.ReadAttachmentContent = ReadAttachmentContent;
|
|
197
|
+
function registerDeleteRemovedAttachmentsHandler(domainEvents, attachmentStore) {
|
|
198
|
+
domainEvents.on(entities_observations_1.ObservationDomainEventType.AttachmentsRemoved, (e) => {
|
|
199
|
+
setTimeout(() => __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const attachments = e.removedAttachments;
|
|
201
|
+
for (const att of attachments) {
|
|
202
|
+
console.info(`deleting removed attachment content ${att.id} from observation ${e.observation.id}`);
|
|
203
|
+
attachmentStore.deleteContent(att, e.observation).catch(err => {
|
|
204
|
+
console.error(`error deleting content of attachment ${att.id} on observation ${e.observation.id}:`, err);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}));
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
exports.registerDeleteRemovedAttachmentsHandler = registerDeleteRemovedAttachmentsHandler;
|
|
211
|
+
/**
|
|
212
|
+
* TODO:
|
|
213
|
+
* Much of this logic to resolve added and removed form entries and
|
|
214
|
+
* attachments should move to {@link Observation.assignTo()} so that method can
|
|
215
|
+
* generate appropriate domain events, but that will require some API changes
|
|
216
|
+
* in the entity layer, i.e., some alternative to the pre-generated ID
|
|
217
|
+
* requirements for new form entries and attachments. That could be soemthing
|
|
218
|
+
* like generating pending identifiers that are easily distinguished from
|
|
219
|
+
* persistence layer identifiers; maybe a `PendingId` class or `Id` class with
|
|
220
|
+
* an `isPending` property. That should be reasonable to implement, but no
|
|
221
|
+
* time now, as usual.
|
|
222
|
+
*/
|
|
223
|
+
function prepareObservationMod(mod, before, context) {
|
|
224
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
225
|
+
const event = context.mageEvent;
|
|
226
|
+
const repo = context.observationRepository;
|
|
227
|
+
const modAttrs = baseObservationAttrsForMod(mod, before, context);
|
|
228
|
+
// first get new form entry ids so new attachments have a proper id to reference
|
|
229
|
+
const [removedFormEntries, newFormEntries] = mod.properties.forms.reduce(([removed, added], entryMod) => {
|
|
230
|
+
if (entryMod.id && (before === null || before === void 0 ? void 0 : before.formEntryForId(entryMod.id))) {
|
|
231
|
+
removed.delete(entryMod.id);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
added.push(entryMod);
|
|
235
|
+
}
|
|
236
|
+
return [removed, added];
|
|
237
|
+
}, [new Map((before === null || before === void 0 ? void 0 : before.formEntries.map(x => [x.id, x])) || []), []]);
|
|
238
|
+
const newFormEntryIds = newFormEntries.length ? yield repo.nextFormEntryIds(newFormEntries.length) : [];
|
|
239
|
+
newFormEntries.forEach(x => x.id = newFormEntryIds.shift());
|
|
240
|
+
const attachmentExtraction = extractAttachmentModsFromFormEntries(mod, event);
|
|
241
|
+
modAttrs.properties.forms = attachmentExtraction.formEntries;
|
|
242
|
+
const attachmentMods = attachmentExtraction.attachmentMods;
|
|
243
|
+
const addCount = attachmentMods.reduce((count, x) => x.action === api.AttachmentModAction.Add ? count + 1 : count, 0);
|
|
244
|
+
const attachmentIds = addCount ? yield repo.nextAttachmentIds(addCount) : [];
|
|
245
|
+
const afterRemovedFormEntryAttachments = before === null || before === void 0 ? void 0 : before.attachments.reduce((obs, attachment) => {
|
|
246
|
+
if (removedFormEntries.has(attachment.observationFormId)) {
|
|
247
|
+
return (0, entities_observations_1.removeAttachment)(obs, attachment.id);
|
|
248
|
+
}
|
|
249
|
+
return obs;
|
|
250
|
+
}, before);
|
|
251
|
+
if (afterRemovedFormEntryAttachments) {
|
|
252
|
+
modAttrs.attachments = afterRemovedFormEntryAttachments.attachments;
|
|
253
|
+
}
|
|
254
|
+
const afterFormEntriesRemoved = afterRemovedFormEntryAttachments ?
|
|
255
|
+
entities_observations_1.Observation.assignTo(afterRemovedFormEntryAttachments, modAttrs) :
|
|
256
|
+
entities_observations_1.Observation.evaluate(modAttrs, event);
|
|
257
|
+
const afterAttachmentMods = attachmentMods.reduce((obs, attachmentMod) => {
|
|
258
|
+
if (obs instanceof app_api_errors_1.MageError) {
|
|
259
|
+
return obs;
|
|
260
|
+
}
|
|
261
|
+
const mod = attachmentMod.action === api.AttachmentModAction.Add ?
|
|
262
|
+
(0, entities_observations_1.addAttachment)(obs, attachmentIds.shift(), attachmentMod.fieldName, attachmentMod.formEntryId, attachmentCreateAttrsForMod(attachmentMod)) :
|
|
263
|
+
attachmentMod.action === api.AttachmentModAction.Delete ?
|
|
264
|
+
(0, entities_observations_1.removeAttachment)(obs, attachmentMod.id) :
|
|
265
|
+
null;
|
|
266
|
+
if (mod instanceof entities_observations_1.Observation) {
|
|
267
|
+
return mod;
|
|
268
|
+
}
|
|
269
|
+
if (mod === null) {
|
|
270
|
+
return (0, app_api_errors_1.invalidInput)(`invalid attachment action: ${attachmentMod.action}`);
|
|
271
|
+
}
|
|
272
|
+
const message = `error adding attachment on observation ${obs.id}`;
|
|
273
|
+
return (0, app_api_errors_1.invalidInput)(`${message}: ${String(mod)}`);
|
|
274
|
+
}, afterFormEntriesRemoved);
|
|
275
|
+
return afterAttachmentMods;
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Return obsevation attributes for the given mod based on the optional
|
|
280
|
+
* existing observation. The result will not include form entries and
|
|
281
|
+
* attachments, which require separate processing to resolve IDs and actions.
|
|
282
|
+
* @param mod the modifications from an external client
|
|
283
|
+
* @param before the observation to update, or null if none exists
|
|
284
|
+
*/
|
|
285
|
+
function baseObservationAttrsForMod(mod, before, context) {
|
|
286
|
+
return {
|
|
287
|
+
id: mod.id,
|
|
288
|
+
eventId: context.mageEvent.id,
|
|
289
|
+
userId: before ? before.userId : context.userId,
|
|
290
|
+
deviceId: before ? before.deviceId : context.deviceId,
|
|
291
|
+
createdAt: before ? before.createdAt : new Date(),
|
|
292
|
+
lastModified: new Date(),
|
|
293
|
+
geometry: mod.geometry,
|
|
294
|
+
type: 'Feature',
|
|
295
|
+
states: before ? before.states : [],
|
|
296
|
+
bbox: mod.bbox || (before === null || before === void 0 ? void 0 : before.bbox),
|
|
297
|
+
favoriteUserIds: (before === null || before === void 0 ? void 0 : before.favoriteUserIds) || [],
|
|
298
|
+
important: before === null || before === void 0 ? void 0 : before.important,
|
|
299
|
+
properties: {
|
|
300
|
+
timestamp: mod.properties.timestamp,
|
|
301
|
+
forms: []
|
|
302
|
+
},
|
|
303
|
+
attachments: [],
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function extractAttachmentModsFromFormEntries(mod, event) {
|
|
307
|
+
const allAttachmentMods = [];
|
|
308
|
+
const formEntries = mod.properties.forms.map(formEntryMod => {
|
|
309
|
+
const form = event.formFor(formEntryMod.formId);
|
|
310
|
+
if (!form) {
|
|
311
|
+
/*
|
|
312
|
+
TODO: is this ok? the observation will not be valid and will not save
|
|
313
|
+
because of the invalid form reference anyway, and this should never
|
|
314
|
+
happen, except for rogue api clients. seems fine for now ¯\_(ツ)_/¯
|
|
315
|
+
*/
|
|
316
|
+
return { id: formEntryMod.id || '', formId: formEntryMod.formId };
|
|
317
|
+
}
|
|
318
|
+
const { formEntry, attachmentMods } = extractAttachmentModsFromFormEntry(formEntryMod, event);
|
|
319
|
+
allAttachmentMods.push(...attachmentMods);
|
|
320
|
+
return formEntry;
|
|
321
|
+
});
|
|
322
|
+
return { formEntries, attachmentMods: allAttachmentMods };
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Find the attachment modification entries in the given form entry, remove
|
|
326
|
+
* them from the form entry. Return the resulting form entry and the
|
|
327
|
+
* extracted attachment mods.
|
|
328
|
+
*/
|
|
329
|
+
function extractAttachmentModsFromFormEntry(formEntryMod, event) {
|
|
330
|
+
const attachmentMods = [];
|
|
331
|
+
const _a = formEntryMod, { id, formId } = _a, fieldEntries = __rest(_a, ["id", "formId"]);
|
|
332
|
+
const formEntry = Object.entries(fieldEntries).reduce((formEntry, [fieldName, fieldEntry]) => {
|
|
333
|
+
const field = event.formFieldFor(fieldName, formId);
|
|
334
|
+
if ((field === null || field === void 0 ? void 0 : field.type) === entities_events_forms_1.FormFieldType.Attachment) {
|
|
335
|
+
const attachmentModEntry = (fieldEntry || []);
|
|
336
|
+
attachmentModEntry.forEach(x => void (x.action && attachmentMods.push(Object.assign(Object.assign({}, x), { formEntryId: formEntry.id, fieldName }))));
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
// let it be invalid
|
|
340
|
+
formEntry[fieldName] = fieldEntry;
|
|
341
|
+
}
|
|
342
|
+
return formEntry;
|
|
343
|
+
}, { id, formId });
|
|
344
|
+
return { formEntry, attachmentMods };
|
|
345
|
+
}
|
|
346
|
+
function attachmentCreateAttrsForMod(mod) {
|
|
347
|
+
return {
|
|
348
|
+
contentType: mod.contentType,
|
|
349
|
+
name: mod.name,
|
|
350
|
+
size: mod.size,
|
|
351
|
+
width: mod.width,
|
|
352
|
+
height: mod.height,
|
|
353
|
+
oriented: mod.oriented || false,
|
|
354
|
+
thumbnails: [],
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
//# sourceMappingURL=app.impl.observations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.impl.observations.js","sourceRoot":"","sources":["../../../src/app.impl/observations/app.impl.observations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iEAA8H;AAC9H,iEAA0D;AAC1D,qFAAsE;AAEtE,uFAA2E;AAC3E,6FAAkf;AAGlf,SAAgB,qBAAqB,CAAC,iBAAmD;IACvF,OAAO,SAAe,qBAAqB,CAAC,GAAqC;;YAC/E,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YACrF,IAAI,MAAM,EAAE;gBACV,OAAO,4BAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;aACjC;YACD,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAA;YAC9C,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;YAC7C,OAAO,4BAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAChC,CAAC;KAAA,CAAA;AACH,CAAC;AAVD,sDAUC;AAED,SAAgB,eAAe,CAAC,iBAAmD,EAAE,QAAwB;IAC3G,OAAO,SAAe,eAAe,CAAC,GAA+B;;;YACnE,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAA;YAC9C,MAAM,GAAG,GAAG,GAAG,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M,EAAE,GAAG,CAAC,MAAM;QAClB,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAAI,KAAK;QAC/B,UAAU,EAAE,EAAE;KACf,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as api from '../../app.api/users/app.api.users';
|
|
2
|
+
import { UserRepository } from '../../entities/users/entities.users';
|
|
3
|
+
export declare function SearchUsers(userRepo: UserRepository, permissions: api.UsersPermissionService): api.SearchUsers;
|
|
4
|
+
//# sourceMappingURL=app.impl.users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.impl.users.d.ts","sourceRoot":"","sources":["../../../src/app.impl/users/app.impl.users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,mCAAmC,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAIpE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,CAAC,sBAAsB,GAAG,GAAG,CAAC,WAAW,CAsB9G"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SearchUsers = void 0;
|
|
13
|
+
const app_api_global_1 = require("../../app.api/app.api.global");
|
|
14
|
+
function SearchUsers(userRepo, permissions) {
|
|
15
|
+
return function searchUsers(req) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return yield (0, app_api_global_1.withPermission)(permissions.ensureReadUsersPermission(req.context), () => __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const page = yield userRepo.find(req.userSearch, x => {
|
|
19
|
+
return {
|
|
20
|
+
id: x.id,
|
|
21
|
+
username: x.username,
|
|
22
|
+
displayName: x.displayName,
|
|
23
|
+
email: x.email,
|
|
24
|
+
active: x.active,
|
|
25
|
+
enabled: x.enabled,
|
|
26
|
+
allPhones: x.phones.reduce((allPhones, phone, index) => {
|
|
27
|
+
return index === 0 ? `${phone.number}` : `${allPhones}; ${phone.number}`;
|
|
28
|
+
}, '')
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
return page;
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.SearchUsers = SearchUsers;
|
|
37
|
+
//# sourceMappingURL=app.impl.users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.impl.users.js","sourceRoot":"","sources":["../../../src/app.impl/users/app.impl.users.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,iEAA4E;AAG5E,SAAgB,WAAW,CAAC,QAAwB,EAAE,WAAuC;IAC3F,OAAO,SAAe,WAAW,CAAC,GAA0B;;YAC1D,OAAO,MAAM,IAAA,+BAAc,EACzB,WAAW,CAAC,yBAAyB,CAAC,GAAG,CAAC,OAAO,CAAC,EAClD,GAAgD,EAAE;gBAChD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAuB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;oBACzE,OAAO;wBACL,EAAE,EAAE,CAAC,CAAC,EAAE;wBACR,QAAQ,EAAE,CAAC,CAAC,QAAQ;wBACpB,WAAW,EAAE,CAAC,CAAC,WAAW;wBAC1B,KAAK,EAAE,CAAC,CAAC,KAAK;wBACd,MAAM,EAAE,CAAC,CAAC,MAAM;wBAChB,OAAO,EAAE,CAAC,CAAC,OAAO;wBAClB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;4BACrD,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,KAAK,CAAC,MAAM,EAAE,CAAA;wBAC1E,CAAC,EAAE,EAAE,CAAC;qBACP,CAAA;gBACH,CAAC,CAAC,CAAA;gBACF,OAAO,IAAI,CAAA;YACb,CAAC,CAAA,CACF,CAAA;QACH,CAAC;KAAA,CAAA;AACH,CAAC;AAtBD,kCAsBC"}
|