@fastybird/smart-panel-backend 0.12.0-alpha.0 → 1.0.0-beta.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/dist/app.constants.js.map +1 -1
- package/dist/app.module.js +44 -17
- package/dist/app.module.js.map +1 -1
- package/dist/common/filters/bad-request-exception.filter.js +0 -6
- package/dist/common/filters/bad-request-exception.filter.js.map +1 -1
- package/dist/common/filters/global-error.filter.js +2 -6
- package/dist/common/filters/global-error.filter.js.map +1 -1
- package/dist/common/filters/internal-server-error-exception.filter.js +0 -5
- package/dist/common/filters/internal-server-error-exception.filter.js.map +1 -1
- package/dist/common/filters/not-found-exception.filter.d.ts +4 -0
- package/dist/common/filters/not-found-exception.filter.js +22 -3
- package/dist/common/filters/not-found-exception.filter.js.map +1 -1
- package/dist/common/filters/query-failed-exception.filter.js +0 -5
- package/dist/common/filters/query-failed-exception.filter.js.map +1 -1
- package/dist/common/filters/unprocessable-entity-exception.filter.js +0 -5
- package/dist/common/filters/unprocessable-entity-exception.filter.js.map +1 -1
- package/dist/common/plugin-relations/relation-loader.interface.d.ts +5 -0
- package/dist/common/plugin-relations/relation-loader.interface.js +3 -0
- package/dist/common/plugin-relations/relation-loader.interface.js.map +1 -0
- package/dist/common/services/app-instance-holder.service.d.ts +1 -2
- package/dist/common/services/app-instance-holder.service.js.map +1 -1
- package/dist/common/utils/config.utils.d.ts +0 -1
- package/dist/common/utils/config.utils.js +1 -11
- package/dist/common/utils/config.utils.js.map +1 -1
- package/dist/main.js +25 -6
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000000-InitialSetup.js +8 -0
- package/dist/migrations/1000000000000-InitialSetup.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.d.ts +6 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +15 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js +88 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js.map +1 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.d.ts +6 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js +165 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js.map +1 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.d.ts +6 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js +66 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js.map +1 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js +32 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js.map +1 -0
- package/dist/modules/api/interceptors/open-api-response.interceptor.js +1 -1
- package/dist/modules/api/interceptors/open-api-response.interceptor.js.map +1 -1
- package/dist/modules/auth/auth.module.js +44 -28
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +6 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/tokens.controller.d.ts +10 -3
- package/dist/modules/auth/controllers/tokens.controller.js +96 -7
- package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
- package/dist/modules/auth/dto/create-personal-token.dto.d.ts +8 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js +75 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +1 -1
- package/dist/modules/auth/dto/register.dto.js +13 -11
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/entities/auth.entity.d.ts +1 -0
- package/dist/modules/auth/entities/auth.entity.js +13 -0
- package/dist/modules/auth/entities/auth.entity.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.d.ts +0 -1
- package/dist/modules/auth/guards/auth.guard.js +8 -26
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +16 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js +133 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -0
- package/dist/modules/auth/services/auth.service.js +1 -1
- package/dist/modules/auth/services/auth.service.js.map +1 -1
- package/dist/modules/auth/services/tokens.service.d.ts +10 -0
- package/dist/modules/auth/services/tokens.service.js +35 -0
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/auth/utils/token.utils.d.ts +7 -0
- package/dist/modules/auth/utils/token.utils.js +12 -1
- package/dist/modules/auth/utils/token.utils.js.map +1 -1
- package/dist/modules/buddy/buddy.module.d.ts +5 -1
- package/dist/modules/buddy/buddy.module.js +42 -15
- package/dist/modules/buddy/buddy.module.js.map +1 -1
- package/dist/modules/buddy/buddy.utils.d.ts +8 -0
- package/dist/modules/buddy/buddy.utils.js +49 -0
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js +2 -2
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-conversation.entity.js +3 -3
- package/dist/modules/buddy/entities/buddy-conversation.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-message.entity.js +2 -2
- package/dist/modules/buddy/entities/buddy-message.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-suggestion.entity.d.ts +19 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js +93 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js.map +1 -0
- package/dist/modules/buddy/listeners/media-activity-event.listener.js +3 -3
- package/dist/modules/buddy/listeners/media-activity-event.listener.js.map +1 -1
- package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +6 -0
- package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +2 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js +12 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -2
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-conversation.service.js +23 -8
- package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.d.ts +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.js.map +1 -1
- package/dist/modules/buddy/services/heartbeat.service.js +2 -2
- package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
- package/dist/modules/buddy/services/llm-provider.service.js +2 -10
- package/dist/modules/buddy/services/llm-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/module-reset.service.d.ts +3 -1
- package/dist/modules/buddy/services/module-reset.service.js +6 -1
- package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
- package/dist/modules/buddy/services/pattern-detector.service.d.ts +4 -1
- package/dist/modules/buddy/services/pattern-detector.service.js +10 -3
- package/dist/modules/buddy/services/pattern-detector.service.js.map +1 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.d.ts +4 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js +10 -4
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js.map +1 -1
- package/dist/modules/buddy/services/stt-provider.service.js +2 -10
- package/dist/modules/buddy/services/stt-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/suggestion-engine.service.d.ts +19 -13
- package/dist/modules/buddy/services/suggestion-engine.service.js +170 -103
- package/dist/modules/buddy/services/suggestion-engine.service.js.map +1 -1
- package/dist/modules/buddy/services/tts-provider.service.js +2 -10
- package/dist/modules/buddy/services/tts-provider.service.js.map +1 -1
- package/dist/modules/config/config.constants.d.ts +2 -1
- package/dist/modules/config/config.constants.js +1 -0
- package/dist/modules/config/config.constants.js.map +1 -1
- package/dist/modules/config/config.module.d.ts +5 -1
- package/dist/modules/config/config.module.js +78 -14
- package/dist/modules/config/config.module.js.map +1 -1
- package/dist/modules/config/services/config.service.d.ts +1 -0
- package/dist/modules/config/services/config.service.js +11 -1
- package/dist/modules/config/services/config.service.js.map +1 -1
- package/dist/modules/dashboard/dashboard.module.js +21 -18
- package/dist/modules/dashboard/dashboard.module.js.map +1 -1
- package/dist/modules/dashboard/entities/dashboard.relations.d.ts +1 -5
- package/dist/modules/devices/devices.module.js +24 -16
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.js +2 -2
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/displays/displays.constants.d.ts +0 -5
- package/dist/modules/displays/displays.constants.js +1 -7
- package/dist/modules/displays/displays.constants.js.map +1 -1
- package/dist/modules/displays/displays.module.js +27 -23
- package/dist/modules/displays/displays.module.js.map +1 -1
- package/dist/modules/displays/dto/update-display.dto.d.ts +2 -3
- package/dist/modules/displays/dto/update-display.dto.js +4 -19
- package/dist/modules/displays/dto/update-display.dto.js.map +1 -1
- package/dist/modules/displays/entities/displays.entity.d.ts +3 -4
- package/dist/modules/displays/entities/displays.entity.js +8 -25
- package/dist/modules/displays/entities/displays.entity.js.map +1 -1
- package/dist/modules/displays/services/displays.service.d.ts +4 -2
- package/dist/modules/displays/services/displays.service.js +19 -24
- package/dist/modules/displays/services/displays.service.js.map +1 -1
- package/dist/modules/displays/services/home-resolution.service.d.ts +7 -2
- package/dist/modules/displays/services/home-resolution.service.js +50 -6
- package/dist/modules/displays/services/home-resolution.service.js.map +1 -1
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js +26 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js.map +1 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js +26 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js.map +1 -0
- package/dist/modules/energy/energy.module.js +29 -15
- package/dist/modules/energy/energy.module.js.map +1 -1
- package/dist/modules/extensions/controllers/actions.controller.d.ts +9 -4
- package/dist/modules/extensions/controllers/actions.controller.js +63 -10
- package/dist/modules/extensions/controllers/actions.controller.js.map +1 -1
- package/dist/modules/extensions/extensions.module.js +31 -28
- package/dist/modules/extensions/extensions.module.js.map +1 -1
- package/dist/modules/extensions/extensions.openapi.d.ts +3 -3
- package/dist/modules/extensions/extensions.openapi.js +2 -0
- package/dist/modules/extensions/extensions.openapi.js.map +1 -1
- package/dist/modules/extensions/models/action.model.d.ts +13 -0
- package/dist/modules/extensions/models/action.model.js +89 -3
- package/dist/modules/extensions/models/action.model.js.map +1 -1
- package/dist/modules/extensions/models/actions-response.model.d.ts +4 -1
- package/dist/modules/extensions/models/actions-response.model.js +19 -1
- package/dist/modules/extensions/models/actions-response.model.js.map +1 -1
- package/dist/modules/extensions/models/extension.model.js +5 -0
- package/dist/modules/extensions/models/extension.model.js.map +1 -1
- package/dist/modules/extensions/models/service-status.model.js +7 -0
- package/dist/modules/extensions/models/service-status.model.js.map +1 -1
- package/dist/modules/extensions/services/action-audit.service.d.ts +21 -0
- package/dist/modules/extensions/services/action-audit.service.js +49 -0
- package/dist/modules/extensions/services/action-audit.service.js.map +1 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.d.ts +11 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js +28 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js.map +1 -0
- package/dist/modules/extensions/services/extension-action-registry.service.d.ts +6 -1
- package/dist/modules/extensions/services/extension-action-registry.service.js +22 -3
- package/dist/modules/extensions/services/extension-action-registry.service.js.map +1 -1
- package/dist/modules/extensions/services/extension-action.interface.d.ts +3 -0
- package/dist/modules/extensions/services/extension-action.interface.js +3 -1
- package/dist/modules/extensions/services/extension-action.interface.js.map +1 -1
- package/dist/modules/intents/intents.module.js +27 -26
- package/dist/modules/intents/intents.module.js.map +1 -1
- package/dist/modules/mdns/mdns.module.js +24 -19
- package/dist/modules/mdns/mdns.module.js.map +1 -1
- package/dist/modules/platform/dto/system-info.dto.d.ts +2 -0
- package/dist/modules/platform/dto/system-info.dto.js +7 -0
- package/dist/modules/platform/dto/system-info.dto.js.map +1 -1
- package/dist/modules/platform/platform.module.js +25 -17
- package/dist/modules/platform/platform.module.js.map +1 -1
- package/dist/modules/platform/platforms/abstract.platform.d.ts +44 -0
- package/dist/modules/platform/platforms/abstract.platform.js +267 -0
- package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
- package/dist/modules/platform/platforms/docker.platform.d.ts +2 -0
- package/dist/modules/platform/platforms/docker.platform.js +3 -0
- package/dist/modules/platform/platforms/docker.platform.js.map +1 -1
- package/dist/modules/platform/platforms/generic.platform.d.ts +2 -1
- package/dist/modules/platform/platforms/generic.platform.js +17 -15
- package/dist/modules/platform/platforms/generic.platform.js.map +1 -1
- package/dist/modules/platform/platforms/home-assistant.platform.d.ts +4 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js +21 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js.map +1 -1
- package/dist/modules/platform/platforms/raspberry.platform.js +22 -40
- package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
- package/dist/modules/platform/services/platform.service.d.ts +2 -0
- package/dist/modules/platform/services/platform.service.js +7 -0
- package/dist/modules/platform/services/platform.service.js.map +1 -1
- package/dist/modules/scenes/scenes.module.js +18 -18
- package/dist/modules/scenes/scenes.module.js.map +1 -1
- package/dist/modules/security/security.module.js +22 -17
- package/dist/modules/security/security.module.js.map +1 -1
- package/dist/modules/spaces/controllers/spaces.controller.d.ts +5 -115
- package/dist/modules/spaces/controllers/spaces.controller.js +22 -1922
- package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
- package/dist/modules/spaces/dto/create-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/create-space.dto.js +0 -61
- package/dist/modules/spaces/dto/create-space.dto.js.map +1 -1
- package/dist/modules/spaces/dto/update-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/update-space.dto.js +0 -61
- package/dist/modules/spaces/dto/update-space.dto.js.map +1 -1
- package/dist/modules/spaces/entities/space-role.entity.d.ts +8 -0
- package/dist/modules/spaces/entities/space-role.entity.js +58 -0
- package/dist/modules/spaces/entities/space-role.entity.js.map +1 -0
- package/dist/modules/spaces/entities/space.entity.d.ts +3 -6
- package/dist/modules/spaces/entities/space.entity.js +11 -74
- package/dist/modules/spaces/entities/space.entity.js.map +1 -1
- package/dist/modules/spaces/entities/space.relations.d.ts +11 -0
- package/dist/modules/spaces/entities/space.relations.js +3 -0
- package/dist/modules/spaces/entities/space.relations.js.map +1 -0
- package/dist/modules/spaces/models/spaces-response.model.d.ts +1 -522
- package/dist/modules/spaces/models/spaces-response.model.js +23 -4150
- package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
- package/dist/modules/spaces/services/space-create-builder-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.d.ts +12 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js +39 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.d.ts +17 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js +36 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +4 -12
- package/dist/modules/spaces/services/spaces.service.js +120 -160
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +13 -292
- package/dist/modules/spaces/spaces.constants.js +13 -1449
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.d.ts +2 -9
- package/dist/modules/spaces/spaces.module.js +51 -108
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/spaces.openapi.d.ts +3 -16
- package/dist/modules/spaces/spaces.openapi.js +0 -136
- package/dist/modules/spaces/spaces.openapi.js.map +1 -1
- package/dist/modules/stats/controllers/prometheus.controller.js +0 -2
- package/dist/modules/stats/controllers/prometheus.controller.js.map +1 -1
- package/dist/modules/storage/models/config.model.js +2 -4
- package/dist/modules/storage/models/config.model.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +4 -10
- package/dist/modules/storage/services/storage.service.js +21 -60
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/storage/storage.constants.d.ts +2 -0
- package/dist/modules/storage/storage.constants.js +3 -1
- package/dist/modules/storage/storage.constants.js.map +1 -1
- package/dist/modules/storage/storage.module.js +26 -7
- package/dist/modules/storage/storage.module.js.map +1 -1
- package/dist/modules/swagger/commands/serve-swagger.command.d.ts +14 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js +60 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js.map +1 -0
- package/dist/modules/swagger/swagger.module.js +2 -0
- package/dist/modules/swagger/swagger.module.js.map +1 -1
- package/dist/modules/system/backup-contribution.module.d.ts +2 -0
- package/dist/modules/system/backup-contribution.module.js +22 -0
- package/dist/modules/system/backup-contribution.module.js.map +1 -0
- package/dist/modules/system/controllers/backup.controller.d.ts +17 -0
- package/dist/modules/system/controllers/backup.controller.js +308 -0
- package/dist/modules/system/controllers/backup.controller.js.map +1 -0
- package/dist/modules/system/dto/create-backup.dto.d.ts +6 -0
- package/dist/modules/system/dto/create-backup.dto.js +43 -0
- package/dist/modules/system/dto/create-backup.dto.js.map +1 -0
- package/dist/modules/system/models/backup-response.model.d.ts +8 -0
- package/dist/modules/system/models/backup-response.model.js +46 -0
- package/dist/modules/system/models/backup-response.model.js.map +1 -0
- package/dist/modules/system/models/backup.model.d.ts +14 -0
- package/dist/modules/system/models/backup.model.js +103 -0
- package/dist/modules/system/models/backup.model.js.map +1 -0
- package/dist/modules/system/models/system.model.d.ts +3 -1
- package/dist/modules/system/models/system.model.js +26 -0
- package/dist/modules/system/models/system.model.js.map +1 -1
- package/dist/modules/system/scripts/update-worker.sh +304 -0
- package/dist/modules/system/services/backup-contribution-registry.service.d.ts +24 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js +52 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js.map +1 -0
- package/dist/modules/system/services/backup.service.d.ts +52 -0
- package/dist/modules/system/services/backup.service.js +630 -0
- package/dist/modules/system/services/backup.service.js.map +1 -0
- package/dist/modules/system/services/house-mode-actions.service.d.ts +1 -1
- package/dist/modules/system/services/house-mode-actions.service.js +5 -5
- package/dist/modules/system/services/house-mode-actions.service.js.map +1 -1
- package/dist/modules/system/services/system-command.service.d.ts +7 -1
- package/dist/modules/system/services/system-command.service.js +24 -4
- package/dist/modules/system/services/system-command.service.js.map +1 -1
- package/dist/modules/system/services/system.service.js +4 -1
- package/dist/modules/system/services/system.service.js.map +1 -1
- package/dist/modules/system/services/update-executor.service.d.ts +4 -0
- package/dist/modules/system/services/update-executor.service.js +130 -10
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/system/system.constants.d.ts +7 -0
- package/dist/modules/system/system.constants.js +9 -1
- package/dist/modules/system/system.constants.js.map +1 -1
- package/dist/modules/system/system.module.d.ts +5 -1
- package/dist/modules/system/system.module.js +95 -31
- package/dist/modules/system/system.module.js.map +1 -1
- package/dist/modules/system/system.openapi.d.ts +4 -1
- package/dist/modules/system/system.openapi.js +8 -0
- package/dist/modules/system/system.openapi.js.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +9 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/create-user.dto.js +1 -0
- package/dist/modules/users/dto/create-user.dto.js.map +1 -1
- package/dist/modules/users/dto/update-user.dto.d.ts +1 -0
- package/dist/modules/users/dto/update-user.dto.js +15 -1
- package/dist/modules/users/dto/update-user.dto.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +1 -0
- package/dist/modules/users/services/users.service.js +12 -2
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.constants.d.ts +3 -0
- package/dist/modules/users/users.constants.js +35 -1
- package/dist/modules/users/users.constants.js.map +1 -1
- package/dist/modules/users/users.module.js +29 -13
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/modules/weather/weather.module.js +20 -18
- package/dist/modules/weather/weather.module.js.map +1 -1
- package/dist/modules/websocket/dto/client-user.dto.js +25 -0
- package/dist/modules/websocket/dto/client-user.dto.js.map +1 -1
- package/dist/modules/websocket/dto/ws-client.dto.js +26 -0
- package/dist/modules/websocket/dto/ws-client.dto.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +2 -2
- package/dist/modules/websocket/gateway/websocket.gateway.js +27 -9
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/command-event-registry.service.d.ts +3 -1
- package/dist/modules/websocket/services/command-event-registry.service.js +5 -4
- package/dist/modules/websocket/services/command-event-registry.service.js.map +1 -1
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js +24 -11
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +21 -11
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js +28 -16
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +22 -11
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js +28 -12
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js +24 -15
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/platforms/openai.provider.js +1 -0
- package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +26 -15
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js +23 -9
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js.map +1 -1
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js +21 -10
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js.map +1 -1
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +22 -11
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +22 -12
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +24 -12
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.d.ts +2 -2
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js +3 -3
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +2 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +31 -12
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js +16 -30
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js.map +1 -1
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js +17 -29
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +37 -136
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js +22 -2
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js +12 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +11 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.d.ts +10 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js +47 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js +8 -2
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +5 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +27 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +9 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +58 -24
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +1 -0
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +20 -17
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +4 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +86 -11
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +8 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +45 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +4 -0
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.d.ts +6 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +72 -21
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js +24 -6
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js +12 -0
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js +2 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/models/config.model.js +18 -6
- package/dist/plugins/devices-shelly-ng/models/config.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js +15 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.d.ts +30 -0
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +269 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.d.ts +64 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js +301 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +17 -7
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +110 -15
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.d.ts +28 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +197 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +4 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +27 -23
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js +15 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.d.ts +31 -0
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +279 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +2 -9
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js +2 -15
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +9 -2
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +93 -20
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.d.ts +62 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js +314 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +3 -6
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +13 -37
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.d.ts +2 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js +23 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js.map +1 -0
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js +19 -23
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.plugin.js +30 -20
- package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.d.ts +3 -6
- package/dist/plugins/devices-wled/services/wled.service.js +3 -20
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.d.ts +14 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js +185 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.d.ts +5 -3
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js +12 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +43 -54
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.d.ts +12 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js +73 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js +259 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.d.ts +7 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js +30 -1
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +22 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.d.ts +70 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js +361 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +23 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +10 -7
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +46 -22
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.d.ts → plugins/influx-v1/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js → plugins/influx-v1/dto/update-config.dto.js} +3 -3
- package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.constants.js.map +1 -0
- package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.openapi.d.ts +1 -1
- package/dist/plugins/influx-v1/influx-v1.openapi.js +7 -0
- package/dist/plugins/influx-v1/influx-v1.openapi.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +15 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js +109 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.d.ts → plugins/influx-v1/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.js → plugins/influx-v1/models/config.model.js} +3 -3
- package/dist/plugins/influx-v1/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +128 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.d.ts → plugins/influx-v1/services/influx-v1.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.js → plugins/influx-v1/services/influx-v1.storage.js} +9 -9
- package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +8 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js +82 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.constants.d.ts +4 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js +8 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.d.ts +2 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js +7 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +15 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js +109 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -0
- package/dist/plugins/influx-v2/models/config.model.d.ts +9 -0
- package/dist/plugins/influx-v2/models/config.model.js +93 -0
- package/dist/plugins/influx-v2/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +132 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +33 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js +230 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -0
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +20 -29
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.d.ts → plugins/memory-storage/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.js → plugins/memory-storage/dto/update-config.dto.js} +5 -5
- package/dist/plugins/memory-storage/dto/update-config.dto.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.constants.js → plugins/memory-storage/memory-storage.constants.js} +1 -1
- package/dist/plugins/memory-storage/memory-storage.constants.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.openapi.d.ts → plugins/memory-storage/memory-storage.openapi.d.ts} +1 -1
- package/dist/plugins/memory-storage/memory-storage.openapi.js +7 -0
- package/dist/plugins/memory-storage/memory-storage.openapi.js.map +1 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +15 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js +92 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.config.model.d.ts → plugins/memory-storage/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.config.model.js → plugins/memory-storage/models/config.model.js} +5 -5
- package/dist/plugins/memory-storage/models/config.model.js.map +1 -0
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.d.ts +1 -1
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.js +4 -4
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -0
- package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +14 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +87 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.plugin.d.ts → plugins/memory-storage/services/memory-storage.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/memory/memory.plugin.js → plugins/memory-storage/services/memory-storage.storage.js} +8 -8
- package/dist/plugins/memory-storage/services/memory-storage.storage.js.map +1 -0
- package/dist/plugins/pages-cards/pages-cards.plugin.js +15 -26
- package/dist/plugins/pages-cards/pages-cards.plugin.js.map +1 -1
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js +16 -25
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js.map +1 -1
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js +15 -26
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js.map +1 -1
- package/dist/plugins/scenes-local/scenes-local.plugin.js +21 -22
- package/dist/plugins/scenes-local/scenes-local.plugin.js.map +1 -1
- package/dist/plugins/simulator/services/scenario-executor.service.d.ts +5 -5
- package/dist/plugins/simulator/services/scenario-executor.service.js +7 -6
- package/dist/plugins/simulator/services/scenario-executor.service.js.map +1 -1
- package/dist/plugins/simulator/services/simulator-actions.service.js +3 -0
- package/dist/plugins/simulator/services/simulator-actions.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.plugin.js +49 -58
- package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.d.ts +119 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +1958 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.js +24 -24
- package/dist/plugins/spaces-home-control/dto/climate-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/climate-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.js +18 -18
- package/dist/plugins/spaces-home-control/dto/covers-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/covers-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.js +34 -34
- package/dist/plugins/spaces-home-control/dto/lighting-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/lighting-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/media-activity-binding.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/sensor-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/status-widget.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.d.ts +2 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.js +5 -4
- package/dist/plugins/spaces-home-control/dto/suggestion.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.d.ts +11 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-active-media-activity.entity.js +23 -30
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-climate-role.entity.js +25 -32
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-covers-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-lighting-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.d.ts +15 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-media-activity-binding.entity.js +20 -28
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-sensor-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.js +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.js +9 -8
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.js +5 -5
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-home-control/models/config.model.js +49 -0
- package/dist/plugins/spaces-home-control/models/config.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/derived-media-endpoint.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.js +1 -1
- package/dist/plugins/spaces-home-control/models/media-activity-binding.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.js +6 -6
- package/dist/plugins/spaces-home-control/models/media-activity.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/media-routing.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +524 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +4145 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.js +3 -3
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-scenario-templates.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-test-harness.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.js +35 -34
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.js +48 -47
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.js +28 -27
- package/dist/plugins/spaces-home-control/services/derived-media-endpoint.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js +182 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.d.ts +6 -6
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.js +68 -67
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/media-capability.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.js +18 -17
- package/dist/plugins/spaces-home-control/services/space-climate-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.js +32 -31
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.js +7 -6
- package/dist/plugins/spaces-home-control/services/space-context-snapshot.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.js +28 -25
- package/dist/plugins/spaces-home-control/services/space-covers-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.js +9 -8
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.js +25 -22
- package/dist/plugins/spaces-home-control/services/space-lighting-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.js +31 -30
- package/dist/plugins/spaces-home-control/services/space-media-activity-binding.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.js +38 -37
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.js +24 -23
- package/dist/plugins/spaces-home-control/services/space-sensor-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.js +19 -18
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.js +10 -9
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.d.ts +4 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-suggestion.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/spaces-seeder.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.d.ts +297 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js +1460 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.d.ts +2 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +155 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +29 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +334 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/index.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.js +1 -1
- package/dist/plugins/spaces-home-control/spec/intent-spec-loader.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/intent-spec.types.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.js +2 -2
- package/dist/plugins/spaces-home-control/validators/at-least-one-setpoint.validator.js.map +1 -0
- package/dist/plugins/spaces-home-control/validators/setpoint-order-constraint.validator.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.js +1 -1
- package/dist/plugins/spaces-home-control/validators/space-category-constraint.validator.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.d.ts +18 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js +219 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js +143 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.d.ts +10 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js +78 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.d.ts +12 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js +134 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js +161 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js +147 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js +49 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.d.ts +8 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js +46 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.d.ts +28 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js +181 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.d.ts +14 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js +59 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.d.ts +17 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.d.ts +9 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js +25 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.d.ts +2 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js +31 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.d.ts +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js +159 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js.map +1 -0
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js +16 -22
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js.map +1 -1
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js +15 -21
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js.map +1 -1
- package/dist/plugins/tiles-time/tiles-time.plugin.js +13 -19
- package/dist/plugins/tiles-time/tiles-time.plugin.js.map +1 -1
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js +16 -19
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js.map +1 -1
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js +32 -21
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +22 -23
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +27 -23
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -6
- package/dist/modules/spaces/dto/climate-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/climate-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/media-activity-binding.dto.js.map +0 -1
- package/dist/modules/spaces/dto/sensor-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/status-widget.dto.js.map +0 -1
- package/dist/modules/spaces/dto/suggestion.dto.js.map +0 -1
- package/dist/modules/spaces/entities/space-active-media-activity.entity.d.ts +0 -12
- package/dist/modules/spaces/entities/space-active-media-activity.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-climate-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-climate-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-covers-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-covers-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-lighting-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-lighting-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.d.ts +0 -16
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-sensor-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-sensor-role.entity.js.map +0 -1
- package/dist/modules/spaces/listeners/space-activity.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-climate-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-lighting-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-sensor-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/websocket-exchange.listener.js.map +0 -1
- package/dist/modules/spaces/models/derived-media-endpoint.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity-binding.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity.model.js.map +0 -1
- package/dist/modules/spaces/models/media-routing.model.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-scenario-templates.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-test-harness.js.map +0 -1
- package/dist/modules/spaces/services/climate-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/covers-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/derived-media-endpoint.service.js.map +0 -1
- package/dist/modules/spaces/services/lighting-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/media-capability.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-context-snapshot.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent-base.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-tool.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity-binding.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion-heartbeat.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion.service.js.map +0 -1
- package/dist/modules/spaces/services/space-undo-history.service.js.map +0 -1
- package/dist/modules/spaces/services/spaces-seeder.service.js.map +0 -1
- package/dist/modules/spaces/spec/definitions/climate-intents.yaml +0 -94
- package/dist/modules/spaces/spec/definitions/covers-modes.yaml +0 -83
- package/dist/modules/spaces/spec/definitions/enums.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/lighting-intents.yaml +0 -181
- package/dist/modules/spaces/spec/definitions/lighting-modes.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/suggestions.yaml +0 -47
- package/dist/modules/spaces/spec/index.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec-loader.service.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec.types.js.map +0 -1
- package/dist/modules/spaces/validators/at-least-one-setpoint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/setpoint-order-constraint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/space-category-constraint.validator.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.constants.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.d.ts +0 -17
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js +0 -94
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js +0 -7
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js.map +0 -1
- package/dist/modules/storage/plugins/memory/in-memory-timeseries.store.js.map +0 -1
- package/dist/modules/storage/plugins/memory/influxql-parser.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.constants.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.module.d.ts +0 -13
- package/dist/modules/storage/plugins/memory/memory.module.js +0 -75
- package/dist/modules/storage/plugins/memory/memory.module.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.openapi.js +0 -7
- package/dist/modules/storage/plugins/memory/memory.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.update-config.dto.js.map +0 -1
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.d.ts +0 -0
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.js +0 -0
- /package/dist/{modules/storage/plugins/memory/memory.constants.d.ts → plugins/memory-storage/memory-storage.constants.d.ts} +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.d.ts +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.d.ts +0 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SignageAnnouncementsService = void 0;
|
|
19
|
+
const class_validator_1 = require("class-validator");
|
|
20
|
+
const lodash_isundefined_1 = __importDefault(require("lodash.isundefined"));
|
|
21
|
+
const lodash_omitby_1 = __importDefault(require("lodash.omitby"));
|
|
22
|
+
const typeorm_1 = require("typeorm");
|
|
23
|
+
const common_1 = require("@nestjs/common");
|
|
24
|
+
const event_emitter_1 = require("@nestjs/event-emitter");
|
|
25
|
+
const typeorm_2 = require("@nestjs/typeorm");
|
|
26
|
+
const extension_logger_service_1 = require("../../../common/logger/extension-logger.service");
|
|
27
|
+
const transform_utils_1 = require("../../../common/utils/transform.utils");
|
|
28
|
+
const spaces_type_mapper_service_1 = require("../../../modules/spaces/services/spaces-type-mapper.service");
|
|
29
|
+
const spaces_service_1 = require("../../../modules/spaces/services/spaces.service");
|
|
30
|
+
const spaces_constants_1 = require("../../../modules/spaces/spaces.constants");
|
|
31
|
+
const create_announcement_dto_1 = require("../dto/create-announcement.dto");
|
|
32
|
+
const update_announcement_dto_1 = require("../dto/update-announcement.dto");
|
|
33
|
+
const signage_announcement_entity_1 = require("../entities/signage-announcement.entity");
|
|
34
|
+
const spaces_signage_info_panel_constants_1 = require("../spaces-signage-info-panel.constants");
|
|
35
|
+
const spaces_signage_info_panel_exceptions_1 = require("../spaces-signage-info-panel.exceptions");
|
|
36
|
+
let SignageAnnouncementsService = class SignageAnnouncementsService {
|
|
37
|
+
constructor(repository, spacesService, spacesTypeMapper, dataSource, eventEmitter) {
|
|
38
|
+
this.repository = repository;
|
|
39
|
+
this.spacesService = spacesService;
|
|
40
|
+
this.spacesTypeMapper = spacesTypeMapper;
|
|
41
|
+
this.dataSource = dataSource;
|
|
42
|
+
this.eventEmitter = eventEmitter;
|
|
43
|
+
this.logger = (0, extension_logger_service_1.createExtensionLogger)(spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME, 'SignageAnnouncementsService');
|
|
44
|
+
}
|
|
45
|
+
async findAll(spaceId) {
|
|
46
|
+
await this.getSignageSpaceOrThrow(spaceId);
|
|
47
|
+
this.logger.debug(`Fetching announcements for spaceId=${spaceId}`);
|
|
48
|
+
const announcements = await this.repository.find({
|
|
49
|
+
where: { spaceId },
|
|
50
|
+
order: { priority: 'DESC', order: 'ASC', createdAt: 'ASC' },
|
|
51
|
+
});
|
|
52
|
+
this.logger.debug(`Found ${announcements.length} announcements for spaceId=${spaceId}`);
|
|
53
|
+
return announcements;
|
|
54
|
+
}
|
|
55
|
+
async findOne(id, spaceId) {
|
|
56
|
+
return this.repository.findOne({ where: { id, spaceId } });
|
|
57
|
+
}
|
|
58
|
+
async getOneOrThrow(id, spaceId) {
|
|
59
|
+
const announcement = await this.findOne(id, spaceId);
|
|
60
|
+
if (!announcement) {
|
|
61
|
+
this.logger.error(`Announcement id=${id} not found for spaceId=${spaceId}`);
|
|
62
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelNotFoundException('Requested announcement does not exist');
|
|
63
|
+
}
|
|
64
|
+
return announcement;
|
|
65
|
+
}
|
|
66
|
+
async create(spaceId, createDto) {
|
|
67
|
+
this.logger.debug(`Creating announcement for spaceId=${spaceId}`);
|
|
68
|
+
const space = await this.getSignageSpaceOrThrow(spaceId);
|
|
69
|
+
const dtoInstance = await this.validateDto(create_announcement_dto_1.CreateAnnouncementDto, createDto);
|
|
70
|
+
this.ensureActiveWindow(dtoInstance.active_from ?? null, dtoInstance.active_until ?? null);
|
|
71
|
+
const order = dtoInstance.order ?? (await this.nextOrderFor(space.id));
|
|
72
|
+
const announcement = this.repository.create((0, transform_utils_1.toInstance)(signage_announcement_entity_1.SignageAnnouncementEntity, {
|
|
73
|
+
...dtoInstance,
|
|
74
|
+
spaceId: space.id,
|
|
75
|
+
order,
|
|
76
|
+
priority: dtoInstance.priority ?? 0,
|
|
77
|
+
}));
|
|
78
|
+
const saved = await this.repository.save(announcement);
|
|
79
|
+
this.logger.debug(`Created announcement id=${saved.id} for spaceId=${space.id}`);
|
|
80
|
+
this.eventEmitter.emit(spaces_signage_info_panel_constants_1.EventType.ANNOUNCEMENT_CREATED, saved);
|
|
81
|
+
return saved;
|
|
82
|
+
}
|
|
83
|
+
async update(id, spaceId, updateDto) {
|
|
84
|
+
this.logger.debug(`Updating announcement id=${id} for spaceId=${spaceId}`);
|
|
85
|
+
const announcement = await this.getOneOrThrow(id, spaceId);
|
|
86
|
+
const dtoInstance = await this.validateDto(update_announcement_dto_1.UpdateAnnouncementDto, updateDto);
|
|
87
|
+
const nextActiveFrom = dtoInstance.active_from === undefined ? announcement.activeFrom : dtoInstance.active_from;
|
|
88
|
+
const nextActiveUntil = dtoInstance.active_until === undefined ? announcement.activeUntil : dtoInstance.active_until;
|
|
89
|
+
this.ensureActiveWindow(nextActiveFrom ?? null, nextActiveUntil ?? null);
|
|
90
|
+
const updateFields = (0, lodash_omitby_1.default)((0, transform_utils_1.toInstance)(signage_announcement_entity_1.SignageAnnouncementEntity, dtoInstance), lodash_isundefined_1.default);
|
|
91
|
+
Object.assign(announcement, updateFields);
|
|
92
|
+
const saved = await this.repository.save(announcement);
|
|
93
|
+
this.logger.debug(`Updated announcement id=${saved.id}`);
|
|
94
|
+
this.eventEmitter.emit(spaces_signage_info_panel_constants_1.EventType.ANNOUNCEMENT_UPDATED, saved);
|
|
95
|
+
return saved;
|
|
96
|
+
}
|
|
97
|
+
async remove(id, spaceId) {
|
|
98
|
+
const announcement = await this.getOneOrThrow(id, spaceId);
|
|
99
|
+
const snapshot = { ...announcement };
|
|
100
|
+
await this.repository.remove(announcement);
|
|
101
|
+
this.logger.log(`Removed announcement id=${snapshot.id} for spaceId=${spaceId}`);
|
|
102
|
+
this.eventEmitter.emit(spaces_signage_info_panel_constants_1.EventType.ANNOUNCEMENT_DELETED, snapshot);
|
|
103
|
+
}
|
|
104
|
+
async reorder(spaceId, reorderDto) {
|
|
105
|
+
this.logger.debug(`Reordering ${reorderDto.items.length} announcements for spaceId=${spaceId}`);
|
|
106
|
+
await this.getSignageSpaceOrThrow(spaceId);
|
|
107
|
+
const ids = reorderDto.items.map((entry) => entry.id);
|
|
108
|
+
if (new Set(ids).size !== ids.length) {
|
|
109
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelValidationException('Reorder payload contains duplicate announcement ids.');
|
|
110
|
+
}
|
|
111
|
+
const existing = await this.repository.find({ where: { id: (0, typeorm_1.In)(ids), spaceId } });
|
|
112
|
+
if (existing.length !== ids.length) {
|
|
113
|
+
const existingIds = new Set(existing.map((e) => e.id));
|
|
114
|
+
const missing = ids.filter((id) => !existingIds.has(id));
|
|
115
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelNotFoundException(`Cannot reorder: announcements not found for this space: ${missing.join(', ')}`);
|
|
116
|
+
}
|
|
117
|
+
await this.dataSource.transaction(async (manager) => {
|
|
118
|
+
for (const entry of reorderDto.items) {
|
|
119
|
+
await manager.update(signage_announcement_entity_1.SignageAnnouncementEntity, { id: entry.id, spaceId }, { order: entry.order });
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
const updated = await this.repository.find({
|
|
123
|
+
where: { spaceId },
|
|
124
|
+
order: { priority: 'DESC', order: 'ASC', createdAt: 'ASC' },
|
|
125
|
+
});
|
|
126
|
+
for (const item of updated) {
|
|
127
|
+
this.eventEmitter.emit(spaces_signage_info_panel_constants_1.EventType.ANNOUNCEMENT_UPDATED, item);
|
|
128
|
+
}
|
|
129
|
+
return updated;
|
|
130
|
+
}
|
|
131
|
+
async nextOrderFor(spaceId) {
|
|
132
|
+
const max = await this.repository
|
|
133
|
+
.createQueryBuilder('announcement')
|
|
134
|
+
.select('MAX(announcement.order)', 'max')
|
|
135
|
+
.where('announcement.spaceId = :spaceId', { spaceId })
|
|
136
|
+
.getRawOne();
|
|
137
|
+
return (max?.max ?? -1) + 1;
|
|
138
|
+
}
|
|
139
|
+
ensureActiveWindow(from, until) {
|
|
140
|
+
if (from && until && from.getTime() > until.getTime()) {
|
|
141
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelValidationException('Announcement active_from must be earlier than or equal to active_until.');
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
async getSignageSpaceOrThrow(spaceId) {
|
|
145
|
+
const space = await this.spacesService.getOneOrThrow(spaceId);
|
|
146
|
+
if (space.type !== spaces_constants_1.SpaceType.SIGNAGE_INFO_PANEL) {
|
|
147
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelValidationException(`Space with id=${spaceId} is not a signage info-panel space.`);
|
|
148
|
+
}
|
|
149
|
+
const mapping = this.spacesTypeMapper.getMapping(spaces_constants_1.SpaceType.SIGNAGE_INFO_PANEL);
|
|
150
|
+
const subtypeRepo = this.dataSource.getRepository(mapping.class);
|
|
151
|
+
const fresh = await subtypeRepo.findOne({ where: { id: space.id } });
|
|
152
|
+
if (!fresh) {
|
|
153
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelNotFoundException('Requested signage info-panel space does not exist.');
|
|
154
|
+
}
|
|
155
|
+
return fresh;
|
|
156
|
+
}
|
|
157
|
+
async validateDto(DtoClass, dto) {
|
|
158
|
+
const dtoInstance = (0, transform_utils_1.toInstance)(DtoClass, dto, { excludeExtraneousValues: false });
|
|
159
|
+
const errors = await (0, class_validator_1.validate)(dtoInstance, {
|
|
160
|
+
whitelist: true,
|
|
161
|
+
forbidNonWhitelisted: true,
|
|
162
|
+
stopAtFirstError: false,
|
|
163
|
+
});
|
|
164
|
+
if (errors.length > 0) {
|
|
165
|
+
this.logger.error(`Announcement DTO validation failed: ${JSON.stringify(errors)}`);
|
|
166
|
+
throw new spaces_signage_info_panel_exceptions_1.SpacesSignageInfoPanelValidationException('Provided announcement data are invalid.');
|
|
167
|
+
}
|
|
168
|
+
return dtoInstance;
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
exports.SignageAnnouncementsService = SignageAnnouncementsService;
|
|
172
|
+
exports.SignageAnnouncementsService = SignageAnnouncementsService = __decorate([
|
|
173
|
+
(0, common_1.Injectable)(),
|
|
174
|
+
__param(0, (0, typeorm_2.InjectRepository)(signage_announcement_entity_1.SignageAnnouncementEntity)),
|
|
175
|
+
__metadata("design:paramtypes", [typeorm_1.Repository,
|
|
176
|
+
spaces_service_1.SpacesService,
|
|
177
|
+
spaces_type_mapper_service_1.SpacesTypeMapperService,
|
|
178
|
+
typeorm_1.DataSource,
|
|
179
|
+
event_emitter_1.EventEmitter2])
|
|
180
|
+
], SignageAnnouncementsService);
|
|
181
|
+
//# sourceMappingURL=signage-announcements.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signage-announcements.service.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-signage-info-panel/services/signage-announcements.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SignageHomePageResolver = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let SignageHomePageResolver = class SignageHomePageResolver {
|
|
12
|
+
resolve() {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.SignageHomePageResolver = SignageHomePageResolver;
|
|
17
|
+
exports.SignageHomePageResolver = SignageHomePageResolver = __decorate([
|
|
18
|
+
(0, common_1.Injectable)()
|
|
19
|
+
], SignageHomePageResolver);
|
|
20
|
+
//# sourceMappingURL=signage-home-page.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signage-home-page.resolver.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAerC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACnC,OAAO;QACN,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAJY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;GACA,uBAAuB,CAInC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
|
+
import { SpacesTypeMapperService } from '../../../modules/spaces/services/spaces-type-mapper.service';
|
|
3
|
+
import { SignageAnnouncementEntity } from '../entities/signage-announcement.entity';
|
|
4
|
+
export declare class SignageInfoPanelResetService {
|
|
5
|
+
private readonly announcementsRepository;
|
|
6
|
+
private readonly spacesTypeMapper;
|
|
7
|
+
private readonly dataSource;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
constructor(announcementsRepository: Repository<SignageAnnouncementEntity>, spacesTypeMapper: SpacesTypeMapperService, dataSource: DataSource);
|
|
10
|
+
reset(): Promise<{
|
|
11
|
+
success: boolean;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SignageInfoPanelResetService = void 0;
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const typeorm_2 = require("@nestjs/typeorm");
|
|
19
|
+
const extension_logger_service_1 = require("../../../common/logger/extension-logger.service");
|
|
20
|
+
const spaces_type_mapper_service_1 = require("../../../modules/spaces/services/spaces-type-mapper.service");
|
|
21
|
+
const spaces_constants_1 = require("../../../modules/spaces/spaces.constants");
|
|
22
|
+
const signage_announcement_entity_1 = require("../entities/signage-announcement.entity");
|
|
23
|
+
const spaces_signage_info_panel_constants_1 = require("../spaces-signage-info-panel.constants");
|
|
24
|
+
let SignageInfoPanelResetService = class SignageInfoPanelResetService {
|
|
25
|
+
constructor(announcementsRepository, spacesTypeMapper, dataSource) {
|
|
26
|
+
this.announcementsRepository = announcementsRepository;
|
|
27
|
+
this.spacesTypeMapper = spacesTypeMapper;
|
|
28
|
+
this.dataSource = dataSource;
|
|
29
|
+
this.logger = (0, extension_logger_service_1.createExtensionLogger)(spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME, 'SignageInfoPanelResetService');
|
|
30
|
+
}
|
|
31
|
+
async reset() {
|
|
32
|
+
try {
|
|
33
|
+
const announcementsDeleted = await this.announcementsRepository
|
|
34
|
+
.createQueryBuilder()
|
|
35
|
+
.delete()
|
|
36
|
+
.from(signage_announcement_entity_1.SignageAnnouncementEntity)
|
|
37
|
+
.execute();
|
|
38
|
+
const mapping = this.spacesTypeMapper.getMapping(spaces_constants_1.SpaceType.SIGNAGE_INFO_PANEL);
|
|
39
|
+
const subtypeRepo = this.dataSource.getRepository(mapping.class);
|
|
40
|
+
const spacesDeleted = await subtypeRepo.createQueryBuilder().delete().execute();
|
|
41
|
+
this.logger.log(`[RESET] Removed ${announcementsDeleted.affected ?? 0} announcements and ${spacesDeleted.affected ?? 0} signage spaces`);
|
|
42
|
+
return { success: true };
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
const err = error;
|
|
46
|
+
this.logger.error(`[RESET] Failed to reset plugin data: ${err.message}`, err.stack);
|
|
47
|
+
return { success: false, reason: err.message };
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.SignageInfoPanelResetService = SignageInfoPanelResetService;
|
|
52
|
+
exports.SignageInfoPanelResetService = SignageInfoPanelResetService = __decorate([
|
|
53
|
+
(0, common_1.Injectable)(),
|
|
54
|
+
__param(0, (0, typeorm_2.InjectRepository)(signage_announcement_entity_1.SignageAnnouncementEntity)),
|
|
55
|
+
__metadata("design:paramtypes", [typeorm_1.Repository,
|
|
56
|
+
spaces_type_mapper_service_1.SpacesTypeMapperService,
|
|
57
|
+
typeorm_1.DataSource])
|
|
58
|
+
], SignageInfoPanelResetService);
|
|
59
|
+
//# sourceMappingURL=signage-info-panel-reset.service.js.map
|
package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signage-info-panel-reset.service.js","sourceRoot":"","sources":["../../../../src/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAiD;AAEjD,2CAA4C;AAC5C,6CAAmD;AAEnD,8FAAgH;AAChH,4GAAsG;AACtG,+EAAqE;AAGrE,yFAAoF;AAEpF,gGAA+F;AAcxF,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAMxC,YAEC,uBAA+E,EAC9D,gBAAyC,EACzC,UAAsB;QAFtB,4BAAuB,GAAvB,uBAAuB,CAAuC;QAC9D,qBAAgB,GAAhB,gBAAgB,CAAyB;QACzC,eAAU,GAAV,UAAU,CAAY;QATvB,WAAM,GAA2B,IAAA,gDAAqB,EACtE,2EAAqC,EACrC,8BAA8B,CAC9B,CAAC;IAOC,CAAC;IAEJ,KAAK,CAAC,KAAK;QACV,IAAI,CAAC;YACJ,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,uBAAuB;iBAC7D,kBAAkB,EAAE;iBACpB,MAAM,EAAE;iBACR,IAAI,CAAC,uDAAyB,CAAC;iBAC/B,OAAO,EAAE,CAAC;YAEZ,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAI9C,4BAAS,CAAC,kBAAkB,CAAC,CAAC;YAChC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACjE,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC;YAEhF,IAAI,CAAC,MAAM,CAAC,GAAG,CACd,mBAAmB,oBAAoB,CAAC,QAAQ,IAAI,CAAC,sBAAsB,aAAa,CAAC,QAAQ,IAAI,CAAC,iBAAiB,CACvH,CAAC;YAEF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,KAAc,CAAC;YAE3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,GAAG,CAAC,OAAO,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;YAEpF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;QAChD,CAAC;IACF,CAAC;CACD,CAAA;AA1CY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,mBAAU,GAAE;IAQV,WAAA,IAAA,0BAAgB,EAAC,uDAAyB,CAAC,CAAA;qCACF,oBAAU;QACjB,oDAAuB;QAC7B,oBAAU;GAV5B,4BAA4B,CA0CxC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SpaceType } from '../../modules/spaces/spaces.constants';
|
|
2
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_PLUGIN_PREFIX = "spaces-signage-info-panel";
|
|
3
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME = "spaces-signage-info-panel-plugin";
|
|
4
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_NAME = "Spaces signage info panel plugin";
|
|
5
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_DESCRIPTION = "Contributes the information-panel signage space type \u2014 a read-only, full-screen surface with configurable sections (clock, weather, announcements, optional feed) and its nested announcement CRUD endpoints.";
|
|
6
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_TYPE = SpaceType.SIGNAGE_INFO_PANEL;
|
|
7
|
+
export declare enum SignageInfoPanelLayout {
|
|
8
|
+
CLOCK_WEATHER = "clock_weather",
|
|
9
|
+
CLOCK_WEATHER_ANNOUNCEMENTS = "clock_weather_announcements",
|
|
10
|
+
FULL = "full"
|
|
11
|
+
}
|
|
12
|
+
export declare enum EventType {
|
|
13
|
+
ANNOUNCEMENT_CREATED = "SpacesSignageInfoPanelPlugin.Announcement.Created",
|
|
14
|
+
ANNOUNCEMENT_UPDATED = "SpacesSignageInfoPanelPlugin.Announcement.Updated",
|
|
15
|
+
ANNOUNCEMENT_DELETED = "SpacesSignageInfoPanelPlugin.Announcement.Deleted"
|
|
16
|
+
}
|
|
17
|
+
export declare const SPACES_SIGNAGE_INFO_PANEL_PLUGIN_EVENT_PREFIX = "SpacesSignageInfoPanelPlugin";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_EVENT_PREFIX = exports.EventType = exports.SignageInfoPanelLayout = exports.SPACES_SIGNAGE_INFO_PANEL_TYPE = exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_DESCRIPTION = exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_NAME = exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME = exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_PREFIX = void 0;
|
|
4
|
+
const spaces_constants_1 = require("../../modules/spaces/spaces.constants");
|
|
5
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_PREFIX = 'spaces-signage-info-panel';
|
|
6
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME = 'spaces-signage-info-panel-plugin';
|
|
7
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_NAME = 'Spaces signage info panel plugin';
|
|
8
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_DESCRIPTION = 'Contributes the information-panel signage space type — a read-only, full-screen surface with configurable sections (clock, weather, announcements, optional feed) and its nested announcement CRUD endpoints.';
|
|
9
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_TYPE = spaces_constants_1.SpaceType.SIGNAGE_INFO_PANEL;
|
|
10
|
+
var SignageInfoPanelLayout;
|
|
11
|
+
(function (SignageInfoPanelLayout) {
|
|
12
|
+
SignageInfoPanelLayout["CLOCK_WEATHER"] = "clock_weather";
|
|
13
|
+
SignageInfoPanelLayout["CLOCK_WEATHER_ANNOUNCEMENTS"] = "clock_weather_announcements";
|
|
14
|
+
SignageInfoPanelLayout["FULL"] = "full";
|
|
15
|
+
})(SignageInfoPanelLayout || (exports.SignageInfoPanelLayout = SignageInfoPanelLayout = {}));
|
|
16
|
+
var EventType;
|
|
17
|
+
(function (EventType) {
|
|
18
|
+
EventType["ANNOUNCEMENT_CREATED"] = "SpacesSignageInfoPanelPlugin.Announcement.Created";
|
|
19
|
+
EventType["ANNOUNCEMENT_UPDATED"] = "SpacesSignageInfoPanelPlugin.Announcement.Updated";
|
|
20
|
+
EventType["ANNOUNCEMENT_DELETED"] = "SpacesSignageInfoPanelPlugin.Announcement.Deleted";
|
|
21
|
+
})(EventType || (exports.EventType = EventType = {}));
|
|
22
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_EVENT_PREFIX = 'SpacesSignageInfoPanelPlugin';
|
|
23
|
+
//# sourceMappingURL=spaces-signage-info-panel.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaces-signage-info-panel.constants.js","sourceRoot":"","sources":["../../../src/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAErD,QAAA,uCAAuC,GAAG,2BAA2B,CAAC;AAEtE,QAAA,qCAAqC,GAAG,kCAAkC,CAAC;AAE3E,QAAA,6CAA6C,GAAG,kCAAkC,CAAC;AAEnF,QAAA,oDAAoD,GAChE,+MAA+M,CAAC;AAOpM,QAAA,8BAA8B,GAAG,4BAAS,CAAC,kBAAkB,CAAC;AAO3E,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,yDAA+B,CAAA;IAC/B,qFAA2D,CAAA;IAC3D,uCAAa,CAAA;AACd,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACpB,uFAA0E,CAAA;IAC1E,uFAA0E,CAAA;IAC1E,uFAA0E,CAAA;AAC3E,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAMY,QAAA,6CAA6C,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class SpacesSignageInfoPanelException extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare class SpacesSignageInfoPanelNotFoundException extends SpacesSignageInfoPanelException {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class SpacesSignageInfoPanelValidationException extends SpacesSignageInfoPanelException {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpacesSignageInfoPanelValidationException = exports.SpacesSignageInfoPanelNotFoundException = exports.SpacesSignageInfoPanelException = void 0;
|
|
4
|
+
class SpacesSignageInfoPanelException extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = 'SpacesSignageInfoPanelException';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SpacesSignageInfoPanelException = SpacesSignageInfoPanelException;
|
|
11
|
+
class SpacesSignageInfoPanelNotFoundException extends SpacesSignageInfoPanelException {
|
|
12
|
+
constructor(message) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.name = 'SpacesSignageInfoPanelNotFoundException';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.SpacesSignageInfoPanelNotFoundException = SpacesSignageInfoPanelNotFoundException;
|
|
18
|
+
class SpacesSignageInfoPanelValidationException extends SpacesSignageInfoPanelException {
|
|
19
|
+
constructor(message) {
|
|
20
|
+
super(message);
|
|
21
|
+
this.name = 'SpacesSignageInfoPanelValidationException';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SpacesSignageInfoPanelValidationException = SpacesSignageInfoPanelValidationException;
|
|
25
|
+
//# sourceMappingURL=spaces-signage-info-panel.exceptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaces-signage-info-panel.exceptions.js","sourceRoot":"","sources":["../../../src/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.ts"],"names":[],"mappings":";;;AAAA,MAAa,+BAAgC,SAAQ,KAAK;IACzD,YAAY,OAAe;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC;IAC/C,CAAC;CACD;AALD,0EAKC;AAED,MAAa,uCAAwC,SAAQ,+BAA+B;IAC3F,YAAY,OAAe;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,yCAAyC,CAAC;IACvD,CAAC;CACD;AALD,0FAKC;AAED,MAAa,yCAA0C,SAAQ,+BAA+B;IAC7F,YAAY,OAAe;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,2CAA2C,CAAC;IACzD,CAAC;CACD;AALD,8FAKC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_SWAGGER_EXTRA_MODELS = void 0;
|
|
4
|
+
const create_announcement_dto_1 = require("./dto/create-announcement.dto");
|
|
5
|
+
const create_signage_info_panel_space_dto_1 = require("./dto/create-signage-info-panel-space.dto");
|
|
6
|
+
const reorder_announcements_dto_1 = require("./dto/reorder-announcements.dto");
|
|
7
|
+
const update_announcement_dto_1 = require("./dto/update-announcement.dto");
|
|
8
|
+
const update_config_dto_1 = require("./dto/update-config.dto");
|
|
9
|
+
const update_signage_info_panel_space_dto_1 = require("./dto/update-signage-info-panel-space.dto");
|
|
10
|
+
const signage_announcement_entity_1 = require("./entities/signage-announcement.entity");
|
|
11
|
+
const signage_info_panel_space_entity_1 = require("./entities/signage-info-panel-space.entity");
|
|
12
|
+
const config_model_1 = require("./models/config.model");
|
|
13
|
+
const signage_announcement_response_model_1 = require("./models/signage-announcement-response.model");
|
|
14
|
+
exports.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_SWAGGER_EXTRA_MODELS = [
|
|
15
|
+
signage_info_panel_space_entity_1.SignageInfoPanelSpaceEntity,
|
|
16
|
+
signage_announcement_entity_1.SignageAnnouncementEntity,
|
|
17
|
+
create_signage_info_panel_space_dto_1.CreateSignageInfoPanelSpaceDto,
|
|
18
|
+
update_signage_info_panel_space_dto_1.UpdateSignageInfoPanelSpaceDto,
|
|
19
|
+
create_announcement_dto_1.CreateAnnouncementDto,
|
|
20
|
+
create_announcement_dto_1.ReqCreateAnnouncementDto,
|
|
21
|
+
update_announcement_dto_1.UpdateAnnouncementDto,
|
|
22
|
+
update_announcement_dto_1.ReqUpdateAnnouncementDto,
|
|
23
|
+
reorder_announcements_dto_1.ReorderAnnouncementEntryDto,
|
|
24
|
+
reorder_announcements_dto_1.ReorderAnnouncementsDto,
|
|
25
|
+
reorder_announcements_dto_1.ReqReorderAnnouncementsDto,
|
|
26
|
+
signage_announcement_response_model_1.SignageAnnouncementResponseModel,
|
|
27
|
+
signage_announcement_response_model_1.SignageAnnouncementsResponseModel,
|
|
28
|
+
config_model_1.SpacesSignageInfoPanelConfigModel,
|
|
29
|
+
update_config_dto_1.SpacesSignageInfoPanelUpdatePluginConfigDto,
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=spaces-signage-info-panel.openapi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaces-signage-info-panel.openapi.js","sourceRoot":"","sources":["../../../src/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.ts"],"names":[],"mappings":";;;AAEA,2EAAgG;AAChG,mGAA2F;AAC3F,+EAIyC;AACzC,2EAAgG;AAChG,+DAAsF;AACtF,mGAA2F;AAC3F,wFAAmF;AACnF,gGAAyF;AACzF,wDAA0E;AAC1E,sGAGsD;AASzC,QAAA,qDAAqD,GAG5D;IACL,6DAA2B;IAC3B,uDAAyB;IACzB,oEAA8B;IAC9B,oEAA8B;IAC9B,+CAAqB;IACrB,kDAAwB;IACxB,+CAAqB;IACrB,kDAAwB;IACxB,uDAA2B;IAC3B,mDAAuB;IACvB,sDAA0B;IAC1B,sEAAgC;IAChC,uEAAiC;IACjC,gDAAiC;IACjC,+DAA2C;CAC3C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { PluginsTypeMapperService } from '../../modules/config/services/plugins-type-mapper.service';
|
|
3
|
+
import { SpaceHomePageResolverRegistryService } from '../../modules/displays/services/space-home-page-resolver-registry.service';
|
|
4
|
+
import { ExtensionsService } from '../../modules/extensions/services/extensions.service';
|
|
5
|
+
import { SpacesTypeMapperService } from '../../modules/spaces/services/spaces-type-mapper.service';
|
|
6
|
+
import { ExtendedDiscriminatorService } from '../../modules/swagger/services/extended-discriminator.service';
|
|
7
|
+
import { SwaggerModelsRegistryService } from '../../modules/swagger/services/swagger-models-registry.service';
|
|
8
|
+
import { FactoryResetRegistryService } from '../../modules/system/services/factory-reset-registry.service';
|
|
9
|
+
import { SignageHomePageResolver } from './services/signage-home-page.resolver';
|
|
10
|
+
import { SignageInfoPanelResetService } from './services/signage-info-panel-reset.service';
|
|
11
|
+
export declare class SpacesSignageInfoPanelPlugin implements OnModuleInit {
|
|
12
|
+
private readonly configMapper;
|
|
13
|
+
private readonly spacesTypeMapper;
|
|
14
|
+
private readonly resetService;
|
|
15
|
+
private readonly factoryResetRegistry;
|
|
16
|
+
private readonly swaggerRegistry;
|
|
17
|
+
private readonly discriminatorRegistry;
|
|
18
|
+
private readonly spaceHomePageResolverRegistry;
|
|
19
|
+
private readonly signageHomePageResolver;
|
|
20
|
+
private readonly extensionsService;
|
|
21
|
+
constructor(configMapper: PluginsTypeMapperService, spacesTypeMapper: SpacesTypeMapperService, resetService: SignageInfoPanelResetService, factoryResetRegistry: FactoryResetRegistryService, swaggerRegistry: SwaggerModelsRegistryService, discriminatorRegistry: ExtendedDiscriminatorService, spaceHomePageResolverRegistry: SpaceHomePageResolverRegistryService, signageHomePageResolver: SignageHomePageResolver, extensionsService: ExtensionsService);
|
|
22
|
+
onModuleInit(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SpacesSignageInfoPanelPlugin = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
15
|
+
const plugins_type_mapper_service_1 = require("../../modules/config/services/plugins-type-mapper.service");
|
|
16
|
+
const displays_module_1 = require("../../modules/displays/displays.module");
|
|
17
|
+
const space_home_page_resolver_registry_service_1 = require("../../modules/displays/services/space-home-page-resolver-registry.service");
|
|
18
|
+
const extensions_service_1 = require("../../modules/extensions/services/extensions.service");
|
|
19
|
+
const create_space_dto_1 = require("../../modules/spaces/dto/create-space.dto");
|
|
20
|
+
const update_space_dto_1 = require("../../modules/spaces/dto/update-space.dto");
|
|
21
|
+
const space_entity_1 = require("../../modules/spaces/entities/space.entity");
|
|
22
|
+
const spaces_type_mapper_service_1 = require("../../modules/spaces/services/spaces-type-mapper.service");
|
|
23
|
+
const spaces_module_1 = require("../../modules/spaces/spaces.module");
|
|
24
|
+
const api_tag_decorator_1 = require("../../modules/swagger/decorators/api-tag.decorator");
|
|
25
|
+
const extended_discriminator_service_1 = require("../../modules/swagger/services/extended-discriminator.service");
|
|
26
|
+
const swagger_models_registry_service_1 = require("../../modules/swagger/services/swagger-models-registry.service");
|
|
27
|
+
const swagger_module_1 = require("../../modules/swagger/swagger.module");
|
|
28
|
+
const factory_reset_registry_service_1 = require("../../modules/system/services/factory-reset-registry.service");
|
|
29
|
+
const signage_announcements_controller_1 = require("./controllers/signage-announcements.controller");
|
|
30
|
+
const create_signage_info_panel_space_dto_1 = require("./dto/create-signage-info-panel-space.dto");
|
|
31
|
+
const update_config_dto_1 = require("./dto/update-config.dto");
|
|
32
|
+
const update_signage_info_panel_space_dto_1 = require("./dto/update-signage-info-panel-space.dto");
|
|
33
|
+
const signage_announcement_entity_1 = require("./entities/signage-announcement.entity");
|
|
34
|
+
const signage_info_panel_space_entity_1 = require("./entities/signage-info-panel-space.entity");
|
|
35
|
+
const config_model_1 = require("./models/config.model");
|
|
36
|
+
const signage_announcements_service_1 = require("./services/signage-announcements.service");
|
|
37
|
+
const signage_home_page_resolver_1 = require("./services/signage-home-page.resolver");
|
|
38
|
+
const signage_info_panel_reset_service_1 = require("./services/signage-info-panel-reset.service");
|
|
39
|
+
const spaces_signage_info_panel_constants_1 = require("./spaces-signage-info-panel.constants");
|
|
40
|
+
const spaces_signage_info_panel_openapi_1 = require("./spaces-signage-info-panel.openapi");
|
|
41
|
+
let SpacesSignageInfoPanelPlugin = class SpacesSignageInfoPanelPlugin {
|
|
42
|
+
constructor(configMapper, spacesTypeMapper, resetService, factoryResetRegistry, swaggerRegistry, discriminatorRegistry, spaceHomePageResolverRegistry, signageHomePageResolver, extensionsService) {
|
|
43
|
+
this.configMapper = configMapper;
|
|
44
|
+
this.spacesTypeMapper = spacesTypeMapper;
|
|
45
|
+
this.resetService = resetService;
|
|
46
|
+
this.factoryResetRegistry = factoryResetRegistry;
|
|
47
|
+
this.swaggerRegistry = swaggerRegistry;
|
|
48
|
+
this.discriminatorRegistry = discriminatorRegistry;
|
|
49
|
+
this.spaceHomePageResolverRegistry = spaceHomePageResolverRegistry;
|
|
50
|
+
this.signageHomePageResolver = signageHomePageResolver;
|
|
51
|
+
this.extensionsService = extensionsService;
|
|
52
|
+
}
|
|
53
|
+
onModuleInit() {
|
|
54
|
+
this.configMapper.registerMapping({
|
|
55
|
+
type: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME,
|
|
56
|
+
class: config_model_1.SpacesSignageInfoPanelConfigModel,
|
|
57
|
+
configDto: update_config_dto_1.SpacesSignageInfoPanelUpdatePluginConfigDto,
|
|
58
|
+
});
|
|
59
|
+
this.spacesTypeMapper.registerMapping({
|
|
60
|
+
type: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_TYPE,
|
|
61
|
+
class: signage_info_panel_space_entity_1.SignageInfoPanelSpaceEntity,
|
|
62
|
+
createDto: create_signage_info_panel_space_dto_1.CreateSignageInfoPanelSpaceDto,
|
|
63
|
+
updateDto: update_signage_info_panel_space_dto_1.UpdateSignageInfoPanelSpaceDto,
|
|
64
|
+
});
|
|
65
|
+
for (const model of spaces_signage_info_panel_openapi_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_SWAGGER_EXTRA_MODELS) {
|
|
66
|
+
this.swaggerRegistry.register(model);
|
|
67
|
+
}
|
|
68
|
+
this.discriminatorRegistry.register({
|
|
69
|
+
parentClass: space_entity_1.SpaceEntity,
|
|
70
|
+
discriminatorProperty: 'type',
|
|
71
|
+
discriminatorValue: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_TYPE,
|
|
72
|
+
modelClass: signage_info_panel_space_entity_1.SignageInfoPanelSpaceEntity,
|
|
73
|
+
});
|
|
74
|
+
this.discriminatorRegistry.register({
|
|
75
|
+
parentClass: create_space_dto_1.CreateSpaceDto,
|
|
76
|
+
discriminatorProperty: 'type',
|
|
77
|
+
discriminatorValue: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_TYPE,
|
|
78
|
+
modelClass: create_signage_info_panel_space_dto_1.CreateSignageInfoPanelSpaceDto,
|
|
79
|
+
});
|
|
80
|
+
this.discriminatorRegistry.register({
|
|
81
|
+
parentClass: update_space_dto_1.UpdateSpaceDto,
|
|
82
|
+
discriminatorProperty: 'type',
|
|
83
|
+
discriminatorValue: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_TYPE,
|
|
84
|
+
modelClass: update_signage_info_panel_space_dto_1.UpdateSignageInfoPanelSpaceDto,
|
|
85
|
+
});
|
|
86
|
+
this.spaceHomePageResolverRegistry.register(spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_TYPE, this.signageHomePageResolver);
|
|
87
|
+
this.factoryResetRegistry.register(spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME, async () => {
|
|
88
|
+
return this.resetService.reset();
|
|
89
|
+
}, 270);
|
|
90
|
+
this.extensionsService.registerPluginMetadata({
|
|
91
|
+
type: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME,
|
|
92
|
+
name: 'Spaces Signage Info Panel',
|
|
93
|
+
description: 'Contributes the information-panel signage space type — a read-only, full-screen surface with configurable sections (clock, weather, announcements, optional feed) and nested announcement CRUD.',
|
|
94
|
+
author: 'FastyBird',
|
|
95
|
+
readme: `# Information Panel
|
|
96
|
+
|
|
97
|
+
> Plugin · by FastyBird · platform: spaces
|
|
98
|
+
|
|
99
|
+
Contributes the **Information Panel** signage space type — a read-only, full-screen surface designed for hallway, lobby and reception displays. Lays out a configurable mix of clock, weather, scrollable announcements and an optional external feed, and skips the regular dashboard navigation entirely.
|
|
100
|
+
|
|
101
|
+
## What you get
|
|
102
|
+
|
|
103
|
+
- A purpose-built signage mode that turns any panel into a low-touch info display without writing a custom UI
|
|
104
|
+
- Announcement management from the admin UI: type a message, set its priority and visibility window, and it shows up on the panel within seconds
|
|
105
|
+
- Reuse of everything else you already have: the same Weather module, the same clock, the same time-zone settings — no separate stack
|
|
106
|
+
- A safe surface for public spaces — the panel does not expose any controls, just information
|
|
107
|
+
|
|
108
|
+
## Features
|
|
109
|
+
|
|
110
|
+
- **Configurable sections** — clock, weather, announcements and an optional external feed (RSS / URL); each section can be toggled per-space
|
|
111
|
+
- **Announcements** — full CRUD with priority, sort order and optional active-window scheduling (start / end timestamps); the panel auto-cycles through active items
|
|
112
|
+
- **Per-space weather** — reuses the existing Weather module pipeline; pick the location once
|
|
113
|
+
- **No dashboard chrome** — the panel renders the info view directly, bypassing pages, tabs and navigation
|
|
114
|
+
- **Reorder API** — drag-and-drop in the admin UI persists through a dedicated reorder endpoint
|
|
115
|
+
- **Time-window aware** — announcements outside their start / end window are quietly hidden without manual cleanup
|
|
116
|
+
|
|
117
|
+
## API Endpoints
|
|
118
|
+
|
|
119
|
+
- \`GET /api/v1/plugins/spaces-signage-info-panel/announcements\` — list announcements
|
|
120
|
+
- \`POST /api/v1/plugins/spaces-signage-info-panel/announcements\` — create
|
|
121
|
+
- \`PATCH /api/v1/plugins/spaces-signage-info-panel/announcements/:id\` — update
|
|
122
|
+
- \`DELETE /api/v1/plugins/spaces-signage-info-panel/announcements/:id\` — delete
|
|
123
|
+
- \`POST /api/v1/plugins/spaces-signage-info-panel/announcements/reorder\` — reorder`,
|
|
124
|
+
links: {
|
|
125
|
+
documentation: 'https://smart-panel.fastybird.com/docs',
|
|
126
|
+
repository: 'https://github.com/FastyBird/smart-panel',
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
exports.SpacesSignageInfoPanelPlugin = SpacesSignageInfoPanelPlugin;
|
|
132
|
+
exports.SpacesSignageInfoPanelPlugin = SpacesSignageInfoPanelPlugin = __decorate([
|
|
133
|
+
(0, api_tag_decorator_1.ApiTag)({
|
|
134
|
+
tagName: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_NAME,
|
|
135
|
+
displayName: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_NAME,
|
|
136
|
+
description: spaces_signage_info_panel_constants_1.SPACES_SIGNAGE_INFO_PANEL_PLUGIN_API_TAG_DESCRIPTION,
|
|
137
|
+
}),
|
|
138
|
+
(0, common_1.Module)({
|
|
139
|
+
imports: [
|
|
140
|
+
typeorm_1.TypeOrmModule.forFeature([signage_info_panel_space_entity_1.SignageInfoPanelSpaceEntity, signage_announcement_entity_1.SignageAnnouncementEntity]),
|
|
141
|
+
spaces_module_1.SpacesModule,
|
|
142
|
+
displays_module_1.DisplaysModule,
|
|
143
|
+
swagger_module_1.SwaggerModule,
|
|
144
|
+
],
|
|
145
|
+
providers: [signage_announcements_service_1.SignageAnnouncementsService, signage_info_panel_reset_service_1.SignageInfoPanelResetService, signage_home_page_resolver_1.SignageHomePageResolver],
|
|
146
|
+
controllers: [signage_announcements_controller_1.SignageAnnouncementsController],
|
|
147
|
+
exports: [signage_announcements_service_1.SignageAnnouncementsService],
|
|
148
|
+
}),
|
|
149
|
+
__metadata("design:paramtypes", [plugins_type_mapper_service_1.PluginsTypeMapperService,
|
|
150
|
+
spaces_type_mapper_service_1.SpacesTypeMapperService,
|
|
151
|
+
signage_info_panel_reset_service_1.SignageInfoPanelResetService,
|
|
152
|
+
factory_reset_registry_service_1.FactoryResetRegistryService,
|
|
153
|
+
swagger_models_registry_service_1.SwaggerModelsRegistryService,
|
|
154
|
+
extended_discriminator_service_1.ExtendedDiscriminatorService,
|
|
155
|
+
space_home_page_resolver_registry_service_1.SpaceHomePageResolverRegistryService,
|
|
156
|
+
signage_home_page_resolver_1.SignageHomePageResolver,
|
|
157
|
+
extensions_service_1.ExtensionsService])
|
|
158
|
+
], SpacesSignageInfoPanelPlugin);
|
|
159
|
+
//# sourceMappingURL=spaces-signage-info-panel.plugin.js.map
|