@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,495 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
const api = require('../api'), async = require('async'), util = require('util'), fileType = require('file-type'), userTransformer = require('../transformers/user');
|
|
15
|
+
const event_1 = __importDefault(require("../models/event"));
|
|
16
|
+
const access_1 = __importDefault(require("../access"));
|
|
17
|
+
const entities_permissions_1 = require("../entities/authorization/entities.permissions");
|
|
18
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
19
|
+
const entities_events_1 = require("../entities/events/entities.events");
|
|
20
|
+
const upload_1 = require("../upload");
|
|
21
|
+
const permissions_events_1 = require("../permissions/permissions.events");
|
|
22
|
+
function determineReadAccess(req, res, next) {
|
|
23
|
+
if (!access_1.default.userHasPermission(req.user, entities_permissions_1.MageEventPermission.READ_EVENT_ALL)) {
|
|
24
|
+
req.access = { user: req.user, permission: entities_events_1.EventAccessType.Read };
|
|
25
|
+
}
|
|
26
|
+
next();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* TODO: When the events routes change to use an injected application layer,
|
|
30
|
+
* that layer will enforce permissions and these routes will have no direct
|
|
31
|
+
* need for the permission service.
|
|
32
|
+
*/
|
|
33
|
+
function middlewareAuthorizeAccess(collectionPermission, aclPermission) {
|
|
34
|
+
return (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const denied = yield permissions_events_1.defaultEventPermissionsService.authorizeEventAccess(req.event, req.user, collectionPermission, aclPermission);
|
|
36
|
+
if (!denied) {
|
|
37
|
+
return next();
|
|
38
|
+
}
|
|
39
|
+
return res.sendStatus(403);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function clearUserFieldChoicesFromFormJson(form) {
|
|
43
|
+
const fields = form.fields || [];
|
|
44
|
+
const userFields = form.userFields || [];
|
|
45
|
+
for (const field of fields) {
|
|
46
|
+
if (userFields.indexOf(field.name) !== -1) {
|
|
47
|
+
// remove userFields chocies, these are set dynamically
|
|
48
|
+
field.choices = [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return form;
|
|
52
|
+
}
|
|
53
|
+
const parseEventQueryParams = (req, res, next) => {
|
|
54
|
+
const parameters = {};
|
|
55
|
+
const projection = req.query.projection;
|
|
56
|
+
if (projection) {
|
|
57
|
+
parameters.projection = JSON.parse(projection);
|
|
58
|
+
}
|
|
59
|
+
const state = req.query.state;
|
|
60
|
+
if (!state || state === 'active') {
|
|
61
|
+
parameters.complete = false;
|
|
62
|
+
}
|
|
63
|
+
else if (state === 'complete') {
|
|
64
|
+
parameters.complete = true;
|
|
65
|
+
}
|
|
66
|
+
parameters.userId = req.query.userId;
|
|
67
|
+
parameters.populate = req.query.populate !== 'false';
|
|
68
|
+
clearUserFieldChoicesFromFormJson(req.body.form || {});
|
|
69
|
+
req.parameters = parameters;
|
|
70
|
+
next();
|
|
71
|
+
};
|
|
72
|
+
const parseForm = function parseRequestBodyAsForm(req, res, next) {
|
|
73
|
+
const form = clearUserFieldChoicesFromFormJson(req.body);
|
|
74
|
+
if (form.style) {
|
|
75
|
+
const whitelistStyle = reduceStyle(form.style);
|
|
76
|
+
const primaryField = form.fields.filter(function (field) {
|
|
77
|
+
return field.name === form.primaryField;
|
|
78
|
+
}).shift();
|
|
79
|
+
const primaryChoices = primaryField ? primaryField.choices.map(function (item) {
|
|
80
|
+
return item.title;
|
|
81
|
+
}) : [];
|
|
82
|
+
const secondaryField = form.fields.filter(function (field) {
|
|
83
|
+
return field.name === form.variantField;
|
|
84
|
+
}).shift();
|
|
85
|
+
const secondaryChoices = secondaryField ? secondaryField.choices.map(function (choice) {
|
|
86
|
+
return choice.title;
|
|
87
|
+
}) : [];
|
|
88
|
+
for (const primaryTitle of primaryChoices) {
|
|
89
|
+
const primaryStyleIn = form.style[primaryTitle];
|
|
90
|
+
if (typeof primaryStyleIn === 'object') {
|
|
91
|
+
const primaryTree = reduceStyle(primaryStyleIn);
|
|
92
|
+
for (const secondaryTitle of secondaryChoices) {
|
|
93
|
+
let secondaryStyleIn = primaryStyleIn[secondaryTitle];
|
|
94
|
+
if (typeof secondaryStyleIn === 'object') {
|
|
95
|
+
primaryTree[secondaryTitle] = reduceStyle(secondaryStyleIn);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
whitelistStyle[primaryTitle] = primaryTree;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
form.style = whitelistStyle;
|
|
102
|
+
}
|
|
103
|
+
req.form = form;
|
|
104
|
+
next();
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Return a new style object that has only the keys defined in {@link LineStyle}
|
|
108
|
+
* whose values are not `undefined` in the given source object.
|
|
109
|
+
* @param style an object that could have style keys
|
|
110
|
+
*/
|
|
111
|
+
function reduceStyle(style) {
|
|
112
|
+
const styleKeys = ['fill', 'fillOpacity', 'stroke', 'strokeOpacity', 'strokeWidth'];
|
|
113
|
+
return styleKeys.reduce(function (result, styleKey) {
|
|
114
|
+
if (style[styleKey] !== undefined) {
|
|
115
|
+
result[styleKey] = style[styleKey];
|
|
116
|
+
}
|
|
117
|
+
return result;
|
|
118
|
+
}, {});
|
|
119
|
+
}
|
|
120
|
+
function EventRoutes(app, security) {
|
|
121
|
+
const passport = security.authentication.passport;
|
|
122
|
+
app.post('/api/events', passport.authenticate('bearer'), access_1.default.authorize(entities_permissions_1.MageEventPermission.CREATE_EVENT), function (req, res, next) {
|
|
123
|
+
new api.Event().createEvent(req.body, req.user, function (err, event) {
|
|
124
|
+
if (err) {
|
|
125
|
+
return next(err);
|
|
126
|
+
}
|
|
127
|
+
res.status(201).json(event);
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
app.get('/api/events', passport.authenticate('bearer'), determineReadAccess, parseEventQueryParams, function (req, res, next) {
|
|
131
|
+
const filter = {
|
|
132
|
+
complete: req.parameters.complete,
|
|
133
|
+
};
|
|
134
|
+
if (req.parameters.userId) {
|
|
135
|
+
filter.userId = req.parameters.userId;
|
|
136
|
+
}
|
|
137
|
+
event_1.default.getEvents({ access: req.access, filter: filter, populate: req.parameters.populate, projection: req.parameters.projection }, function (err, events) {
|
|
138
|
+
if (err) {
|
|
139
|
+
return next(err);
|
|
140
|
+
}
|
|
141
|
+
res.json(events.map(function (event) {
|
|
142
|
+
return event.toObject({ access: req.access, projection: req.parameters.projection });
|
|
143
|
+
}));
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
app.get('/api/events/count', passport.authenticate('bearer'), determineReadAccess, function (req, res, next) {
|
|
147
|
+
event_1.default.count({ access: req.access }, function (err, count) {
|
|
148
|
+
if (err)
|
|
149
|
+
return next(err);
|
|
150
|
+
return res.json({ count: count });
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
app.get('/api/events/:eventId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), determineReadAccess, parseEventQueryParams, function (req, res, next) {
|
|
154
|
+
// TODO already queried event to check access, don't need to get it again. Just need to populate the
|
|
155
|
+
// correct fields based on query params
|
|
156
|
+
event_1.default.getById(req.event._id, { access: req.access, populate: req.parameters.populate }, function (err, event) {
|
|
157
|
+
if (err)
|
|
158
|
+
return next(err);
|
|
159
|
+
if (!event)
|
|
160
|
+
return res.sendStatus(404);
|
|
161
|
+
res.json(event.toObject({ access: req.access, projection: req.parameters.projection }));
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
app.put('/api/events/:eventId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
165
|
+
new api.Event(req.event).updateEvent(req.body, {}, function (err, event) {
|
|
166
|
+
if (err) {
|
|
167
|
+
return next(err);
|
|
168
|
+
}
|
|
169
|
+
new api.Form(event).populateUserFields(function (err) {
|
|
170
|
+
if (err) {
|
|
171
|
+
return next(err);
|
|
172
|
+
}
|
|
173
|
+
res.json(event);
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
app.delete('/api/events/:eventId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.DELETE_EVENT, entities_events_1.EventAccessType.Delete), function (req, res, next) {
|
|
178
|
+
new api.Event(req.event).deleteEvent(function (err) {
|
|
179
|
+
if (err)
|
|
180
|
+
return next(err);
|
|
181
|
+
res.status(204).send();
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
app.post('/api/events/:eventId/forms', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), upload_1.defaultHandler.single('form'), function (req, res, next) {
|
|
185
|
+
if (!req.is('multipart/form-data')) {
|
|
186
|
+
return next();
|
|
187
|
+
}
|
|
188
|
+
function validateForm(callback) {
|
|
189
|
+
new api.Form().validate(req.file, callback);
|
|
190
|
+
}
|
|
191
|
+
function updateEvent(form, callback) {
|
|
192
|
+
form.name = req.param('name');
|
|
193
|
+
form.color = req.param('color');
|
|
194
|
+
new api.Event(req.event).addForm(form, function (err, form) {
|
|
195
|
+
callback(err, form);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function importIcons(form, callback) {
|
|
199
|
+
new api.Form(req.event).importIcons(req.file, form, function (err) {
|
|
200
|
+
callback(err, form);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
async.waterfall([
|
|
204
|
+
validateForm,
|
|
205
|
+
updateEvent,
|
|
206
|
+
importIcons
|
|
207
|
+
], function (err, form) {
|
|
208
|
+
if (err) {
|
|
209
|
+
return next(err);
|
|
210
|
+
}
|
|
211
|
+
res.status(201).json(form);
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
app.post('/api/events/:eventId/forms', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), parseForm, function (req, res, next) {
|
|
215
|
+
const form = req.form;
|
|
216
|
+
new api.Event(req.event).addForm(form, function (err, form) {
|
|
217
|
+
if (err)
|
|
218
|
+
return next(err);
|
|
219
|
+
async.parallel([
|
|
220
|
+
function (done) {
|
|
221
|
+
new api.Icon(req.event._id, form._id).saveDefaultIconToEventForm(function (err) {
|
|
222
|
+
done(err);
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
function (done) {
|
|
226
|
+
new api.Form(req.event, form).populateUserFields(function (err) {
|
|
227
|
+
done(err);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
], function (err) {
|
|
231
|
+
if (err)
|
|
232
|
+
return next(err);
|
|
233
|
+
res.status(201).json(form.toJSON());
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
app.put('/api/events/:eventId/forms/:formId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), parseForm, function (req, res, next) {
|
|
238
|
+
const form = req.form;
|
|
239
|
+
form._id = parseInt(req.params.formId);
|
|
240
|
+
new api.Event(req.event).updateForm(form, function (err, form) {
|
|
241
|
+
if (err) {
|
|
242
|
+
return next(err);
|
|
243
|
+
}
|
|
244
|
+
new api.Form(req.event, form).populateUserFields(function (err) {
|
|
245
|
+
if (err) {
|
|
246
|
+
return next(err);
|
|
247
|
+
}
|
|
248
|
+
res.json(form);
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
// export a zip of the form json and icons
|
|
253
|
+
// TODO: why not /api/events/:eventId/forms/:formId.zip?
|
|
254
|
+
app.get('/api/events/:eventId/:formId/form.zip', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res, next) {
|
|
255
|
+
new api.Form(req.event).export(parseInt(req.params.formId, 10), function (err, form) {
|
|
256
|
+
if (err) {
|
|
257
|
+
return next(err);
|
|
258
|
+
}
|
|
259
|
+
res.attachment(req.event.name + "-" + form.name + "-form.zip");
|
|
260
|
+
form.file.pipe(res);
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
app.get('/api/events/:eventId/form/icons.zip', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res) {
|
|
264
|
+
new api.Icon(req.event._id).getZipPath(function (err, zipPath) {
|
|
265
|
+
res.on('finish', function () {
|
|
266
|
+
fs_extra_1.default.remove(zipPath, function () {
|
|
267
|
+
console.log('Deleted the temp icon zip %s', zipPath);
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
res.sendFile(zipPath);
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
// TODO: this is a strangely named route for just getting the default icon.
|
|
274
|
+
// the eventId parameter is not even used.
|
|
275
|
+
app.get('/api/events/:eventId/form/icons*', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res) {
|
|
276
|
+
res.sendFile(api.Icon.defaultIconPath);
|
|
277
|
+
});
|
|
278
|
+
app.get('/api/events/:eventId/icons/:formId.json', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res, next) {
|
|
279
|
+
new api.Icon(req.event._id, req.params.formId).getIcons(function (err, icons) {
|
|
280
|
+
if (err) {
|
|
281
|
+
return next();
|
|
282
|
+
}
|
|
283
|
+
async.map(icons, function (icon, done) {
|
|
284
|
+
fs_extra_1.default.readFile(icon.path, (err, data) => __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
if (err) {
|
|
286
|
+
return done(err);
|
|
287
|
+
}
|
|
288
|
+
let base64;
|
|
289
|
+
const metadata = yield fileType.fromBuffer(data);
|
|
290
|
+
if (metadata) {
|
|
291
|
+
base64 = util.format('data:%s;base64,%s', metadata.mime, data.toString('base64'));
|
|
292
|
+
}
|
|
293
|
+
done(null, {
|
|
294
|
+
eventId: icon.eventId,
|
|
295
|
+
formId: icon.formId,
|
|
296
|
+
primary: icon.primary,
|
|
297
|
+
variant: icon.variant,
|
|
298
|
+
icon: base64
|
|
299
|
+
});
|
|
300
|
+
}));
|
|
301
|
+
}, function (err, icons) {
|
|
302
|
+
if (err) {
|
|
303
|
+
return next(err);
|
|
304
|
+
}
|
|
305
|
+
res.json(icons);
|
|
306
|
+
});
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
// Create a new icon
|
|
310
|
+
// TODO: should be PUT?
|
|
311
|
+
app.post('/api/events/:eventId/icons/:formId?/:primary?/:variant?', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), upload_1.defaultHandler.single('icon'), function (req, res, next) {
|
|
312
|
+
new api.Icon(req.event._id, req.params.formId, req.params.primary, req.params.variant).create(req.file, function (err, icon) {
|
|
313
|
+
if (err) {
|
|
314
|
+
return next(err);
|
|
315
|
+
}
|
|
316
|
+
return res.json(icon);
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
// get icon
|
|
320
|
+
app.get('/api/events/:eventId/icons/:formId?/:primary?/:variant?', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res, next) {
|
|
321
|
+
new api.Icon(req.event._id, req.params.formId, req.params.primary, req.params.variant).getIcon(function (err, icon) {
|
|
322
|
+
if (err || !icon) {
|
|
323
|
+
return next();
|
|
324
|
+
}
|
|
325
|
+
res.format({
|
|
326
|
+
'image/*': function () {
|
|
327
|
+
res.sendFile(icon.path);
|
|
328
|
+
},
|
|
329
|
+
'application/json': function () {
|
|
330
|
+
fs_extra_1.default.readFile(icon.path, (err, data) => __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
if (err) {
|
|
332
|
+
return next(err);
|
|
333
|
+
}
|
|
334
|
+
const dataType = yield fileType.fromBuffer(data);
|
|
335
|
+
res.json({
|
|
336
|
+
eventId: icon.eventId,
|
|
337
|
+
formId: icon.formId,
|
|
338
|
+
primary: icon.primary,
|
|
339
|
+
variant: icon.variant,
|
|
340
|
+
icon: util.format('data:%s;base64,%s', dataType.mime, data.toString('base64'))
|
|
341
|
+
});
|
|
342
|
+
}));
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
// Delete an icon
|
|
348
|
+
app.delete('/api/events/:eventId/icons/:formId?/:primary?/:variant?', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
349
|
+
new api.Icon(req.event._id, req.params.formId, req.params.primary, req.params.variant).delete(function (err) {
|
|
350
|
+
if (err)
|
|
351
|
+
return next(err);
|
|
352
|
+
return res.status(204).send();
|
|
353
|
+
});
|
|
354
|
+
});
|
|
355
|
+
app.post('/api/events/:eventId/layers', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
356
|
+
event_1.default.addLayer(req.event, req.body, function (err, event) {
|
|
357
|
+
if (err) {
|
|
358
|
+
return next(err);
|
|
359
|
+
}
|
|
360
|
+
res.json(event);
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
app.delete('/api/events/:eventId/layers/:id', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
364
|
+
event_1.default.removeLayer(req.event, { id: req.params.id }, function (err, event) {
|
|
365
|
+
if (err) {
|
|
366
|
+
return next(err);
|
|
367
|
+
}
|
|
368
|
+
res.json(event);
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
app.get('/api/events/:eventId/users', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), determineReadAccess, function (req, res, next) {
|
|
372
|
+
event_1.default.getUsers(req.event._id, function (err, users) {
|
|
373
|
+
if (err) {
|
|
374
|
+
return next(err);
|
|
375
|
+
}
|
|
376
|
+
users = userTransformer.transform(users, { path: req.getRoot() });
|
|
377
|
+
res.json(users);
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
app.post('/api/events/:eventId/teams', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
381
|
+
event_1.default.addTeam(req.event, req.body, function (err, event) {
|
|
382
|
+
if (err) {
|
|
383
|
+
return next(err);
|
|
384
|
+
}
|
|
385
|
+
res.json(event);
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
app.delete('/api/events/:eventId/teams/:teamId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
389
|
+
event_1.default.removeTeam(req.event, req.team, function (err, event) {
|
|
390
|
+
if (err) {
|
|
391
|
+
return next(err);
|
|
392
|
+
}
|
|
393
|
+
res.json(event);
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
app.put('/api/events/:eventId/acl/:targetUserId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
397
|
+
event_1.default.updateUserInAcl(req.event._id, req.params.targetUserId, req.body.role, function (err, event) {
|
|
398
|
+
if (err) {
|
|
399
|
+
return next(err);
|
|
400
|
+
}
|
|
401
|
+
res.json(event);
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
app.delete('/api/events/:eventId/acl/:targetUserId', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.UPDATE_EVENT, entities_events_1.EventAccessType.Update), function (req, res, next) {
|
|
405
|
+
event_1.default.removeUserFromAcl(req.event._id, req.params.targetUserId, function (err, event) {
|
|
406
|
+
if (err) {
|
|
407
|
+
return next(err);
|
|
408
|
+
}
|
|
409
|
+
res.json(event);
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
app.get('/api/events/:id/members', passport.authenticate('bearer'), determineReadAccess, function (req, res, next) {
|
|
413
|
+
const options = {
|
|
414
|
+
access: req.access,
|
|
415
|
+
searchTerm: req.query.term,
|
|
416
|
+
pageSize: parseInt(String(req.query.page_size)) || 2,
|
|
417
|
+
pageIndex: parseInt(String(req.query.page)) || 0,
|
|
418
|
+
includeTotalCount: 'total' in req.query ? /^true$/i.test(String(req.query.total)) : undefined
|
|
419
|
+
};
|
|
420
|
+
event_1.default.getMembers(parseInt(req.params.id), options).then(page => {
|
|
421
|
+
if (!page)
|
|
422
|
+
return res.status(404).send('Event not found');
|
|
423
|
+
res.json(page);
|
|
424
|
+
}).catch(err => next(err));
|
|
425
|
+
});
|
|
426
|
+
app.get('/api/events/:id/nonMembers', passport.authenticate('bearer'), determineReadAccess, function (req, res, next) {
|
|
427
|
+
const options = {
|
|
428
|
+
access: req.access,
|
|
429
|
+
searchTerm: req.query.term,
|
|
430
|
+
pageSize: parseInt(String(req.query.page_size)) || 2,
|
|
431
|
+
pageIndex: parseInt(String(req.query.page)) || 0,
|
|
432
|
+
includeTotalCount: 'total' in req.query ? /^true$/i.test(String(req.query.total)) : undefined
|
|
433
|
+
};
|
|
434
|
+
event_1.default.getNonMembers(parseInt(req.params.id), options).then(page => {
|
|
435
|
+
if (!page)
|
|
436
|
+
return res.status(404).send('Event not found');
|
|
437
|
+
res.json(page);
|
|
438
|
+
}).catch(err => next(err));
|
|
439
|
+
});
|
|
440
|
+
/*
|
|
441
|
+
TODO: these two routes seem to be more intended for the admin page to search
|
|
442
|
+
teams to add or remove from an event, but android uses this route to get the
|
|
443
|
+
teams for the user's current event and check membership before submitting an
|
|
444
|
+
observation. maybe instead the server should simply return a view of events
|
|
445
|
+
to the requesting user with flags indicating what actions the user can
|
|
446
|
+
perform in the events, rather than the apps having to query for the teams
|
|
447
|
+
of an event and check if the user is a member of those teams. that would
|
|
448
|
+
encapsulate the access control logic in the server and be more straight-
|
|
449
|
+
forward to the clients.
|
|
450
|
+
*/
|
|
451
|
+
app.get('/api/events/:eventId/teams', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res, next) {
|
|
452
|
+
const options = teamQueryOptionsFromRequest(req);
|
|
453
|
+
event_1.default.getTeamsInEvent(req.event.id, options).then(page => {
|
|
454
|
+
if (!page) {
|
|
455
|
+
return res.status(404).send('Event not found');
|
|
456
|
+
}
|
|
457
|
+
res.json(page);
|
|
458
|
+
}).catch(err => next(err));
|
|
459
|
+
});
|
|
460
|
+
/*
|
|
461
|
+
TODO: should any user that can read an event really be able to query for all
|
|
462
|
+
the teams not in an event?
|
|
463
|
+
*/
|
|
464
|
+
app.get('/api/events/:eventId/nonTeams', passport.authenticate('bearer'), middlewareAuthorizeAccess(entities_permissions_1.MageEventPermission.READ_EVENT_ALL, entities_events_1.EventAccessType.Read), function (req, res, next) {
|
|
465
|
+
const options = teamQueryOptionsFromRequest(req);
|
|
466
|
+
event_1.default.getTeamsNotInEvent(req.event.id, options).then(page => {
|
|
467
|
+
if (!page) {
|
|
468
|
+
return res.status(404).send('Event not found');
|
|
469
|
+
}
|
|
470
|
+
res.json(page);
|
|
471
|
+
}).catch(err => next(err));
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
;
|
|
475
|
+
function parseIntOrUndefined(input) {
|
|
476
|
+
const num = parseInt(String(input));
|
|
477
|
+
return Number.isNaN(num) ? void (0) : num;
|
|
478
|
+
}
|
|
479
|
+
function teamQueryOptionsFromRequest(req) {
|
|
480
|
+
const options = {
|
|
481
|
+
searchTerm: req.query.term,
|
|
482
|
+
omitEventTeams: /^true$/i.test(String(req.query.omit_event_teams)),
|
|
483
|
+
pageSize: parseIntOrUndefined(req.query.page_size),
|
|
484
|
+
pageIndex: parseIntOrUndefined(req.query.page),
|
|
485
|
+
includeTotalCount: 'total' in req.query ? /^true$/i.test(String(req.query.total)) : undefined,
|
|
486
|
+
populate: typeof req.query.populate === 'string' ? req.query.populate.split(",") : []
|
|
487
|
+
};
|
|
488
|
+
if (typeof options.pageSize === 'number' || typeof options.pageIndex === 'number') {
|
|
489
|
+
options.pageSize = options.pageSize || 10;
|
|
490
|
+
options.pageIndex = options.pageIndex || 0;
|
|
491
|
+
}
|
|
492
|
+
return options;
|
|
493
|
+
}
|
|
494
|
+
module.exports = EventRoutes;
|
|
495
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/routes/events.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,MAAO,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,EAC1B,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,EACxB,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EACtB,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,EAC/B,eAAe,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAEtD,4DAA6E;AAE7E,uDAA8B;AAC9B,yFAAmG;AAGnG,wDAAyB;AACzB,wEAA+E;AAC/E,sCAAoD;AACpD,0EAAkF;AAclF,SAAS,mBAAmB,CAAC,GAAoB,EAAE,GAAqB,EAAE,IAA0B;IAClG,IAAI,CAAC,gBAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,E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