@fastybird/smart-panel-backend 1.1.0-alpha.64 → 1.1.0-alpha.65
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.module.d.ts +3 -1
- package/dist/app.module.js +5 -1
- package/dist/app.module.js.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/common/database/sqlite-data-source.d.ts +37 -0
- package/dist/common/database/sqlite-data-source.js +2131 -0
- package/dist/common/database/sqlite-data-source.js.map +1 -0
- package/dist/dataSource.d.ts +3 -1
- package/dist/dataSource.js +3 -3
- package/dist/dataSource.js.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +1 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -1
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.d.ts +7 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js +87 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js.map +1 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.d.ts +6 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js +29 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js.map +1 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.d.ts +6 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js +31 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js.map +1 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.d.ts +6 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js +33 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js.map +1 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.d.ts +6 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js +62 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js.map +1 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.d.ts +6 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js +39 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js.map +1 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.d.ts +6 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js +28 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js.map +1 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js +26 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js.map +1 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.d.ts +6 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js +35 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js.map +1 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.d.ts +6 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js +18 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js.map +1 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.d.ts +6 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js +16 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js.map +1 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.d.ts +6 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js +19 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js.map +1 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.d.ts +6 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js +16 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js.map +1 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.d.ts +6 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js +32 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js.map +1 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.d.ts +6 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js +39 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js.map +1 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js +19 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js.map +1 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.d.ts +6 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js +36 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js.map +1 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.d.ts +6 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js +32 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js.map +1 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.d.ts +7 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js +54 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js.map +1 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.d.ts +6 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js +60 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js.map +1 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.d.ts +6 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js +208 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js.map +1 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.d.ts +6 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js +40 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js.map +1 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.d.ts +6 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js +36 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js.map +1 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.d.ts +6 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js +34 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js.map +1 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.d.ts +6 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js +39 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js.map +1 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.d.ts +6 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js +35 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js.map +1 -0
- package/dist/modules/buddy/buddy.utils.d.ts +1 -1
- package/dist/modules/buddy/buddy.utils.js +10 -11
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -1
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/home-context-tool-provider.service.d.ts +1 -1
- package/dist/modules/devices/contracts/climate-automation.contract.d.ts +111 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js +3 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js.map +1 -0
- package/dist/modules/devices/controllers/channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/property-command.controller.d.ts +9 -0
- package/dist/modules/devices/controllers/property-command.controller.js +88 -0
- package/dist/modules/devices/controllers/property-command.controller.js.map +1 -0
- package/dist/modules/devices/devices.constants.d.ts +4 -0
- package/dist/modules/devices/devices.constants.js +4 -0
- package/dist/modules/devices/devices.constants.js.map +1 -1
- package/dist/modules/devices/devices.module.js +22 -0
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/devices.openapi.d.ts +3 -1
- package/dist/modules/devices/devices.openapi.js +39 -0
- package/dist/modules/devices/devices.openapi.js.map +1 -1
- package/dist/modules/devices/dto/property-command.dto.js +20 -6
- package/dist/modules/devices/dto/property-command.dto.js.map +1 -1
- package/dist/modules/devices/dto/update-device.dto.d.ts +1 -1
- package/dist/modules/devices/dto/update-device.dto.js +4 -3
- package/dist/modules/devices/dto/update-device.dto.js.map +1 -1
- package/dist/modules/devices/entities/climate-automation.entity.d.ts +56 -0
- package/dist/modules/devices/entities/climate-automation.entity.js +231 -0
- package/dist/modules/devices/entities/climate-automation.entity.js.map +1 -0
- package/dist/modules/devices/entities/devices.entity.d.ts +4 -0
- package/dist/modules/devices/entities/devices.entity.js +27 -3
- package/dist/modules/devices/entities/devices.entity.js.map +1 -1
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.d.ts +10 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js +50 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js.map +1 -0
- package/dist/modules/devices/models/composite-command.model.d.ts +16 -0
- package/dist/modules/devices/models/composite-command.model.js +99 -0
- package/dist/modules/devices/models/composite-command.model.js.map +1 -0
- package/dist/modules/devices/models/property-command-response.model.d.ts +18 -0
- package/dist/modules/devices/models/property-command-response.model.js +90 -0
- package/dist/modules/devices/models/property-command-response.model.js.map +1 -0
- package/dist/modules/devices/models/property-read-policy.model.d.ts +4 -0
- package/dist/modules/devices/models/property-read-policy.model.js +57 -0
- package/dist/modules/devices/models/property-read-policy.model.js.map +1 -0
- package/dist/modules/devices/models/property-sample.model.d.ts +50 -0
- package/dist/modules/devices/models/property-sample.model.js +3 -0
- package/dist/modules/devices/models/property-sample.model.js.map +1 -0
- package/dist/modules/devices/models/property-value-state.model.d.ts +11 -0
- package/dist/modules/devices/models/property-value-state.model.js +55 -1
- package/dist/modules/devices/models/property-value-state.model.js.map +1 -1
- package/dist/modules/devices/platforms/device.platform.d.ts +43 -0
- package/dist/modules/devices/platforms/native-climate.contract.d.ts +50 -0
- package/dist/modules/devices/platforms/native-climate.contract.js +3 -0
- package/dist/modules/devices/platforms/native-climate.contract.js.map +1 -0
- package/dist/modules/devices/services/channels-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/channels-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.d.ts +7 -2
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties.service.d.ts +11 -2
- package/dist/modules/devices/services/channels.properties.service.js +219 -64
- package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
- package/dist/modules/devices/services/channels.service.d.ts +12 -5
- package/dist/modules/devices/services/channels.service.js +148 -55
- package/dist/modules/devices/services/channels.service.js.map +1 -1
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.d.ts +47 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js +242 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.d.ts +68 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js +1061 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.d.ts +8 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js +54 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js.map +1 -0
- package/dist/modules/devices/services/climate-automation.registry.service.d.ts +15 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js +71 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js.map +1 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.d.ts +48 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js +65 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js.map +1 -0
- package/dist/modules/devices/services/controller-publication-context.d.ts +27 -0
- package/dist/modules/devices/services/controller-publication-context.js +148 -0
- package/dist/modules/devices/services/controller-publication-context.js.map +1 -0
- package/dist/modules/devices/services/cover-action-proof.d.ts +7 -0
- package/dist/modules/devices/services/cover-action-proof.js +142 -0
- package/dist/modules/devices/services/cover-action-proof.js.map +1 -0
- package/dist/modules/devices/services/creation-capture.d.ts +19 -0
- package/dist/modules/devices/services/creation-capture.js +85 -0
- package/dist/modules/devices/services/creation-capture.js.map +1 -0
- package/dist/modules/devices/services/device-command-graph.service.js +1 -1
- package/dist/modules/devices/services/device-command-graph.service.js.map +1 -1
- package/dist/modules/devices/services/device-connection-state.service.d.ts +1 -0
- package/dist/modules/devices/services/device-connection-state.service.js +64 -18
- package/dist/modules/devices/services/device-connection-state.service.js.map +1 -1
- package/dist/modules/devices/services/device-connectivity.service.js +96 -51
- package/dist/modules/devices/services/device-connectivity.service.js.map +1 -1
- package/dist/modules/devices/services/device-contribution.registry.service.d.ts +50 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js +45 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js.map +1 -0
- package/dist/modules/devices/services/device-creation-context.d.ts +57 -0
- package/dist/modules/devices/services/device-creation-context.js +315 -0
- package/dist/modules/devices/services/device-creation-context.js.map +1 -0
- package/dist/modules/devices/services/device-structure-lock.service.d.ts +5 -0
- package/dist/modules/devices/services/device-structure-lock.service.js +64 -12
- package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -1
- package/dist/modules/devices/services/device-validation.service.d.ts +0 -1
- package/dist/modules/devices/services/device-validation.service.js +3 -14
- package/dist/modules/devices/services/device-validation.service.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.d.ts +3 -1
- package/dist/modules/devices/services/device-zones.service.js +30 -6
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/devices-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/devices-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.d.ts +8 -2
- package/dist/modules/devices/services/devices.service.js +194 -49
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/devices/services/platform.registry.service.d.ts +11 -1
- package/dist/modules/devices/services/platform.registry.service.js +42 -5
- package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-admission.registry.service.d.ts +28 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js +70 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-command-dispatch.service.d.ts +28 -2
- package/dist/modules/devices/services/property-command-dispatch.service.js +704 -10
- package/dist/modules/devices/services/property-command-dispatch.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-entry-snapshot.d.ts +25 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js +87 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js.map +1 -0
- package/dist/modules/devices/services/property-command-window.service.d.ts +22 -0
- package/dist/modules/devices/services/property-command-window.service.js +81 -0
- package/dist/modules/devices/services/property-command-window.service.js.map +1 -1
- package/dist/modules/devices/services/property-command.service.d.ts +24 -3
- package/dist/modules/devices/services/property-command.service.js +180 -18
- package/dist/modules/devices/services/property-command.service.js.map +1 -1
- package/dist/modules/devices/services/property-metadata.service.js +1 -1
- package/dist/modules/devices/services/property-metadata.service.js.map +1 -1
- package/dist/modules/devices/services/property-producer.registry.service.d.ts +98 -0
- package/dist/modules/devices/services/property-producer.registry.service.js +636 -0
- package/dist/modules/devices/services/property-producer.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-value-source.registry.service.d.ts +18 -0
- package/dist/modules/devices/services/property-value-source.registry.service.js +291 -2
- package/dist/modules/devices/services/property-value-source.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-value.service.d.ts +40 -3
- package/dist/modules/devices/services/property-value.service.js +744 -193
- package/dist/modules/devices/services/property-value.service.js.map +1 -1
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.d.ts +5 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js +25 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js.map +1 -1
- package/dist/modules/devices/utils/property-metadata.utils.d.ts +1 -0
- package/dist/modules/devices/utils/property-metadata.utils.js +10 -0
- package/dist/modules/devices/utils/property-metadata.utils.js.map +1 -1
- package/dist/modules/devices/utils/property-permissions.utils.d.ts +2 -0
- package/dist/modules/devices/utils/property-permissions.utils.js +10 -0
- package/dist/modules/devices/utils/property-permissions.utils.js.map +1 -0
- package/dist/modules/extensions/services/discovered-backend.module.d.ts +6 -0
- package/dist/modules/extensions/services/discovered-backend.module.js +32 -0
- package/dist/modules/extensions/services/discovered-backend.module.js.map +1 -0
- package/dist/modules/extensions/services/extensions-discovery.js +15 -0
- package/dist/modules/extensions/services/extensions-discovery.js.map +1 -1
- package/dist/modules/extensions/services/extensions.service.d.ts +4 -0
- package/dist/modules/extensions/services/extensions.service.js +13 -0
- package/dist/modules/extensions/services/extensions.service.js.map +1 -1
- package/dist/modules/extensions/services/managed-extension-service.interface.d.ts +1 -0
- package/dist/modules/extensions/services/managed-service-manager.service.d.ts +15 -0
- package/dist/modules/extensions/services/managed-service-manager.service.js +242 -72
- package/dist/modules/extensions/services/managed-service-manager.service.js.map +1 -1
- package/dist/modules/home-context/schemas/home-search-input.schemas.d.ts +1 -1
- package/dist/modules/intents/models/intent.model.d.ts +2 -0
- package/dist/modules/intents/models/intent.model.js +14 -0
- package/dist/modules/intents/models/intent.model.js.map +1 -1
- package/dist/modules/intents/services/intents.service.d.ts +2 -1
- package/dist/modules/intents/services/intents.service.js +18 -2
- package/dist/modules/intents/services/intents.service.js.map +1 -1
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js +4 -0
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/modules/scenes/models/scenes.model.d.ts +2 -0
- package/dist/modules/scenes/models/scenes.model.js +10 -0
- package/dist/modules/scenes/models/scenes.model.js.map +1 -1
- package/dist/modules/scenes/services/scene-executor.service.d.ts +6 -1
- package/dist/modules/scenes/services/scene-executor.service.js +33 -22
- package/dist/modules/scenes/services/scene-executor.service.js.map +1 -1
- package/dist/modules/security/providers/alarm-security.provider.d.ts +3 -1
- package/dist/modules/security/providers/alarm-security.provider.js +83 -8
- package/dist/modules/security/providers/alarm-security.provider.js.map +1 -1
- package/dist/modules/spaces/services/space-lifecycle-registry.service.d.ts +19 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js +121 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +5 -1
- package/dist/modules/spaces/services/spaces.service.js +34 -6
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +3 -1
- package/dist/modules/spaces/spaces.constants.js +2 -0
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.js +13 -1
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +8 -0
- package/dist/modules/storage/services/storage.service.js +225 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.d.ts +1 -0
- package/dist/modules/swagger/decorators/api-documentation.decorator.js +9 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.js.map +1 -1
- package/dist/modules/swagger/services/swagger-document.service.d.ts +1 -0
- package/dist/modules/swagger/services/swagger-document.service.js +71 -1
- package/dist/modules/swagger/services/swagger-document.service.js.map +1 -1
- package/dist/modules/system/services/backup.service.js +3 -5
- package/dist/modules/system/services/backup.service.js.map +1 -1
- package/dist/modules/system/utils/timezone.utils.d.ts +2 -0
- package/dist/modules/system/utils/timezone.utils.js +9 -0
- package/dist/modules/system/utils/timezone.utils.js.map +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +2 -0
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.d.ts +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +11 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +82 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.d.ts +22 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js +409 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +14 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +93 -3
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js +28 -2
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js.map +1 -1
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.d.ts +26 -3
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js +183 -5
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.d.ts +2 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.js +38 -10
- package/dist/plugins/devices-homekit/mappers/base.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js +4 -3
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/button.mapper.js +21 -2
- package/dist/plugins/devices-homekit/mappers/button.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-get.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js +10 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.d.ts +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js +2 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/fan.mapper.d.ts +12 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js +126 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.d.ts +8 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js +4 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/property-read.d.ts +7 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js +64 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.d.ts +2 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js +15 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js +63 -11
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/service-fault.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js +33 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js +128 -19
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js +5 -3
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js +18 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js +19 -3
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.d.ts +4 -0
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js +58 -29
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.d.ts +2 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js +3 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.d.ts +30 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js +126 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.d.ts +8 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js +17 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js.map +1 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.d.ts +19 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js +69 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js +60 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js +3 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js +5 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js +47 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js +27 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.d.ts +36 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js +200 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.d.ts +44 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js +29 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js +98 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +51 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +688 -2
- 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 +46 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +315 -4
- 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 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +8 -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.js +16 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js +77 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js +32 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.d.ts +17 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js +80 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js +70 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/mappings/definitions/covers.yaml +30 -24
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js +114 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.d.ts +27 -1
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js +146 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js +154 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +113 -4
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js +78 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js +56 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.d.ts +45 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js +278 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.d.ts +49 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js +32 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.d.ts +53 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js +91 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.d.ts +35 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js +244 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js +50 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.d.ts +29 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js +166 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js +207 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.d.ts +25 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js +132 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js +63 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.d.ts +33 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js +191 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +32 -4
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.d.ts +34 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js +194 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +5 -2
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +4 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +3 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.d.ts +114 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js +12 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.d.ts +4 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js +3 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.d.ts +15 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js +178 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js +92 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.d.ts +16 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js +179 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js +100 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.d.ts +19 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js +168 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.d.ts +28 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js +278 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.d.ts +12 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js +111 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js +160 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.d.ts +18 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js +196 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js +128 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.d.ts +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.js +2 -1
- package/dist/plugins/devices-virtual/devices-virtual.constants.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.openapi.d.ts +24 -2
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js +95 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.d.ts +7 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js +167 -10
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/create-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.d.ts +14 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js +119 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.d.ts +8 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js +62 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.d.ts +19 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js +108 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.d.ts +25 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js +157 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.d.ts +21 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js +122 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.d.ts +35 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js +290 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.d.ts +6 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js +46 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.d.ts +39 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js +244 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.d.ts +94 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js +718 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js +410 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js +430 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.d.ts +13 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js +56 -6
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js +103 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.d.ts +19 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js +87 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.d.ts +36 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js +125 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.d.ts +15 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js +70 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.d.ts +7 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js +39 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.d.ts +28 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js +104 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.d.ts +89 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js +281 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.d.ts +45 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js +184 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.d.ts +86 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js +337 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js +101 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.d.ts +5 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js +65 -22
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.d.ts +8 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js +123 -32
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +3 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +41 -3
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js +28 -15
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/models/dew-point-response.model.d.ts +38 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js +193 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js +117 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.d.ts +28 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js +122 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js +125 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js +406 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.d.ts +23 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js +120 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.d.ts +138 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js +764 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.d.ts +22 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js +134 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.d.ts +18 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js +87 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.d.ts +60 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js +341 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js +440 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.d.ts +218 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js +1157 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.d.ts +73 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js +386 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +5 -1
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +22 -3
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/services/native-thermostat.service.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js +932 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.d.ts +14 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js +147 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.d.ts +199 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js +1064 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.d.ts +75 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js +445 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.d.ts +53 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js +267 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js +438 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js +430 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js +238 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js +350 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.d.ts +40 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js +235 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.d.ts +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js +16 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js +132 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.d.ts +88 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js +200 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.d.ts +35 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js +200 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.d.ts +48 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js +425 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js +38 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js +41 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.d.ts +16 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js +42 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.d.ts +118 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js +667 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.d.ts +8 -4
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js +105 -22
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js +193 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js +69 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.d.ts +65 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js +524 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.d.ts +9 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js +117 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js +137 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.d.ts +43 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js +217 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js +262 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js +91 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js +346 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js +204 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js +270 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.d.ts +21 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.d.ts +24 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js +145 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.d.ts +18 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js +86 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.d.ts +29 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js +136 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.d.ts +59 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js +165 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.d.ts +64 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js +694 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.d.ts +60 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js +484 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.d.ts +11 -2
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js +166 -13
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js +10 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js +385 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.d.ts +90 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js +1189 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js +29 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js +489 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js +580 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.d.ts +58 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js +106 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.d.ts +909 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js +1171 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js +51 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js +59 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js +149 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js +680 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.d.ts +133 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js +1617 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.d.ts +39 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js +561 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js +209 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.d.ts +8 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js +103 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.d.ts +15 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js +102 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.d.ts +54 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js +470 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.d.ts +6 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js +100 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js +36 -2
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.d.ts +17 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js +52 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.d.ts +44 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js +171 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.d.ts +30 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js +195 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.d.ts +9 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js +58 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.d.ts +1 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js +6 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js.map +1 -1
- package/dist/plugins/devices-wled/interfaces/wled.interface.d.ts +7 -0
- package/dist/plugins/devices-wled/interfaces/wled.interface.js.map +1 -1
- package/dist/plugins/devices-wled/platforms/wled.device.platform.d.ts +4 -2
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js +56 -9
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js.map +1 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.d.ts +3 -2
- package/dist/plugins/devices-wled/services/device-mapper.service.js +48 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.d.ts +6 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js +101 -13
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.js +5 -2
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js +95 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +11 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.d.ts +18 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js +79 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/interfaces/zigbee2mqtt.interface.d.ts +11 -0
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.d.ts +11 -2
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js +100 -11
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +31 -13
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js +166 -5
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js +44 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.d.ts +20 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js +156 -34
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +14 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.d.ts +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js +249 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.d.ts +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +7 -1
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +45 -2
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.d.ts +49 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js +264 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +6 -3
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js +101 -15
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
- package/dist/plugins/spaces-home-control/activity/activity-actor.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js +14 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.d.ts +6 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js +26 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.d.ts +32 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js +40 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.d.ts +3 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js +25 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js +37 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.d.ts +12 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js +97 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.d.ts +19 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js +220 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.d.ts +18 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js +147 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +4 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -1
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.d.ts +22 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js +119 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.d.ts +18 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js +127 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.d.ts +13 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js +99 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.d.ts +12 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js +72 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.d.ts +14 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js +105 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.d.ts +19 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js +110 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.d.ts +23 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js +135 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.d.ts +2 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js +23 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js +3 -0
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.d.ts +27 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js +182 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.d.ts +16 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js +79 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.d.ts +6 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js +37 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.d.ts +11 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js +66 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.d.ts +9 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js +45 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.d.ts +34 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js +170 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.d.ts +26 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js +121 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +13 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +81 -2
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -1
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.d.ts +7 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js +57 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js.map +1 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.d.ts +31 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js +30 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.d.ts +9 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js +79 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.d.ts +28 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js +7 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js +34 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.d.ts +15 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js +97 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +15 -2
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js +155 -15
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.d.ts +31 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js +189 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js +139 -65
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js +66 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +13 -3
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +93 -13
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.d.ts +25 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js +144 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js +139 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.d.ts +17 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js +5 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.d.ts +63 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js +722 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +25 -19
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.d.ts +16 -2
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js +102 -18
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.d.ts +2 -0
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.d.ts +4 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js +94 -24
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.d.ts +8 -2
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js +79 -13
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js +132 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.d.ts +39 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js +289 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.d.ts +34 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js +296 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.d.ts +26 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js +134 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js +84 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.d.ts +48 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js +285 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-state-read.service.d.ts +5 -1
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js +33 -7
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +52 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +5 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +57 -2
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
- package/dist/spec/channels.d.ts +27 -4
- package/dist/spec/channels.js +37 -6
- package/dist/spec/channels.js.map +1 -1
- package/dist/spec/devices.d.ts +20 -0
- package/dist/spec/devices.js +20 -0
- package/dist/spec/devices.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,694 @@
|
|
|
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.VirtualProducerConfigService = void 0;
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const uuid_1 = require("uuid");
|
|
18
|
+
const common_1 = require("@nestjs/common");
|
|
19
|
+
const event_emitter_1 = require("@nestjs/event-emitter");
|
|
20
|
+
const devices_constants_1 = require("../../../modules/devices/devices.constants");
|
|
21
|
+
const devices_exceptions_1 = require("../../../modules/devices/devices.exceptions");
|
|
22
|
+
const devices_entity_1 = require("../../../modules/devices/entities/devices.entity");
|
|
23
|
+
const creation_capture_1 = require("../../../modules/devices/services/creation-capture");
|
|
24
|
+
const device_structure_lock_service_1 = require("../../../modules/devices/services/device-structure-lock.service");
|
|
25
|
+
const platform_registry_service_1 = require("../../../modules/devices/services/platform.registry.service");
|
|
26
|
+
const property_metadata_utils_1 = require("../../../modules/devices/utils/property-metadata.utils");
|
|
27
|
+
const devices_virtual_entity_1 = require("../entities/devices-virtual.entity");
|
|
28
|
+
const virtual_producer_entity_1 = require("../entities/virtual-producer.entity");
|
|
29
|
+
const producer_response_model_1 = require("../models/producer-response.model");
|
|
30
|
+
const virtual_aggregate_evaluator_1 = require("./virtual-aggregate-evaluator");
|
|
31
|
+
const virtual_aggregate_policy_utils_1 = require("./virtual-aggregate-policy.utils");
|
|
32
|
+
const virtual_aggregate_runtime_service_1 = require("./virtual-aggregate-runtime.service");
|
|
33
|
+
const virtual_cover_contract_utils_1 = require("./virtual-cover-contract.utils");
|
|
34
|
+
const virtual_cover_readiness_utils_1 = require("./virtual-cover-readiness.utils");
|
|
35
|
+
const virtual_dependency_graph_service_1 = require("./virtual-dependency-graph.service");
|
|
36
|
+
const virtual_group_contract_utils_1 = require("./virtual-group-contract.utils");
|
|
37
|
+
const virtual_group_profile_1 = require("./virtual-group-profile");
|
|
38
|
+
const virtual_light_group_state_service_1 = require("./virtual-light-group-state.service");
|
|
39
|
+
const virtual_measurement_metadata_utils_1 = require("./virtual-measurement-metadata.utils");
|
|
40
|
+
const virtual_numeric_profile_utils_1 = require("./virtual-numeric-profile.utils");
|
|
41
|
+
const virtual_producer_state_service_1 = require("./virtual-producer-state.service");
|
|
42
|
+
const virtual_typed_group_utils_1 = require("./virtual-typed-group.utils");
|
|
43
|
+
let VirtualProducerConfigService = class VirtualProducerConfigService {
|
|
44
|
+
constructor(dataSource, structureLock, graph, eventEmitter, producerState, lightGroups, aggregateRuntime, platforms) {
|
|
45
|
+
this.dataSource = dataSource;
|
|
46
|
+
this.structureLock = structureLock;
|
|
47
|
+
this.graph = graph;
|
|
48
|
+
this.eventEmitter = eventEmitter;
|
|
49
|
+
this.producerState = producerState;
|
|
50
|
+
this.lightGroups = lightGroups;
|
|
51
|
+
this.aggregateRuntime = aggregateRuntime;
|
|
52
|
+
this.platforms = platforms;
|
|
53
|
+
}
|
|
54
|
+
listAggregateProfiles() {
|
|
55
|
+
return virtual_numeric_profile_utils_1.aggregateProfiles.map((profile) => Object.assign(new producer_response_model_1.VirtualAggregateProfileModel(), {
|
|
56
|
+
profile: profile.id,
|
|
57
|
+
channel: profile.channel,
|
|
58
|
+
quantity: profile.quantity,
|
|
59
|
+
unit: profile.unit,
|
|
60
|
+
data_types: [...profile.dataTypes],
|
|
61
|
+
operators: Object.values(virtual_producer_entity_1.VirtualAggregateOperator).filter((operator) => (0, virtual_numeric_profile_utils_1.aggregateOperatorAllowed)(profile, operator)),
|
|
62
|
+
numeric_policy: !profile.binary,
|
|
63
|
+
output_step: profile.outputStep,
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
async listAggregateSources(profileId) {
|
|
67
|
+
const profile = virtual_numeric_profile_utils_1.aggregateProfiles.find((candidate) => candidate.id === profileId);
|
|
68
|
+
if (!profile)
|
|
69
|
+
return [];
|
|
70
|
+
const properties = await this.dataSource.manager
|
|
71
|
+
.createQueryBuilder(devices_entity_1.ChannelPropertyEntity, 'property')
|
|
72
|
+
.leftJoinAndSelect('property.channel', 'channel')
|
|
73
|
+
.leftJoinAndSelect('channel.device', 'device')
|
|
74
|
+
.where('channel.category = :channelCategory', { channelCategory: profile.channel })
|
|
75
|
+
.andWhere('property.category = :quantity', { quantity: profile.quantity })
|
|
76
|
+
.callListeners(false)
|
|
77
|
+
.getMany();
|
|
78
|
+
for (const property of properties)
|
|
79
|
+
await (0, virtual_measurement_metadata_utils_1.hydrateMeasurementContract)(this.dataSource.manager, property);
|
|
80
|
+
return properties
|
|
81
|
+
.filter((property) => {
|
|
82
|
+
const channel = property.channel;
|
|
83
|
+
return (!this.graph.isQuarantined(property.id) &&
|
|
84
|
+
(0, virtual_numeric_profile_utils_1.aggregateProfile)(property, channel)?.id === profileId &&
|
|
85
|
+
(0, virtual_numeric_profile_utils_1.isEligibleAggregateSource)(property, channel, channel.device));
|
|
86
|
+
})
|
|
87
|
+
.map((property) => Object.assign(new producer_response_model_1.VirtualAggregateSourceModel(), {
|
|
88
|
+
property: property.id,
|
|
89
|
+
channel: property.channel.id,
|
|
90
|
+
device: property.channel.device.id,
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
async configureAggregate(outputPropertyId, dto) {
|
|
94
|
+
const state = (0, creation_capture_1.captureCreation)(this.producerState, [
|
|
95
|
+
'captureConfigurationHandoff',
|
|
96
|
+
'withConfigurationWrite',
|
|
97
|
+
'recordConfiguration',
|
|
98
|
+
'installUnavailable',
|
|
99
|
+
]);
|
|
100
|
+
const handoff = state.values.captureConfigurationHandoff.call(state.receiver);
|
|
101
|
+
return this.structureLock.runExclusive(async () => {
|
|
102
|
+
let committedOutput;
|
|
103
|
+
let committedRevision;
|
|
104
|
+
await state.values.withConfigurationWrite.call(state.receiver, handoff, async (manager) => {
|
|
105
|
+
const { config, inputs, output } = await this.prepareAggregate(manager, outputPropertyId, dto);
|
|
106
|
+
await state.values.recordConfiguration.call(state.receiver, manager, handoff, {
|
|
107
|
+
kind: 'aggregate',
|
|
108
|
+
config,
|
|
109
|
+
inputs,
|
|
110
|
+
outputs: [output],
|
|
111
|
+
});
|
|
112
|
+
await this.persistAggregate(manager, { config, inputs });
|
|
113
|
+
committedOutput = output;
|
|
114
|
+
committedRevision = config.revision;
|
|
115
|
+
}, dto.expectedGraphRevision, this.structureLock.captureExclusiveOwner());
|
|
116
|
+
state.values.installUnavailable.call(state.receiver, committedOutput, committedRevision);
|
|
117
|
+
await this.announceOutputs([outputPropertyId]);
|
|
118
|
+
return this.getAggregate(outputPropertyId);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async persistAggregate(manager, prepared) {
|
|
122
|
+
await manager.save(prepared.config);
|
|
123
|
+
await manager.delete(virtual_producer_entity_1.VirtualAggregateInputEntity, { outputPropertyId: prepared.config.outputPropertyId });
|
|
124
|
+
await manager.save(prepared.inputs);
|
|
125
|
+
}
|
|
126
|
+
describeAggregate(prepared, graphRevision) {
|
|
127
|
+
return this.aggregateModel(prepared.config, prepared.inputs, graphRevision, prepared.output?.step, false);
|
|
128
|
+
}
|
|
129
|
+
async previewPreparedAggregate(prepared, graphRevision, graphCurrent) {
|
|
130
|
+
const { config, inputs, output } = prepared;
|
|
131
|
+
const readEvidence = await this.aggregateRuntime?.snapshotEvidence(config, inputs, output);
|
|
132
|
+
const saved = await this.dataSource.manager.findOneBy(virtual_producer_entity_1.VirtualAggregateConfigEntity, {
|
|
133
|
+
outputPropertyId: output.id,
|
|
134
|
+
});
|
|
135
|
+
const revision = await this.graph.revision();
|
|
136
|
+
const now = new Date();
|
|
137
|
+
const profile = (0, virtual_numeric_profile_utils_1.aggregateProfile)(output, output.channel);
|
|
138
|
+
const step = output.step ?? profile.outputStep;
|
|
139
|
+
const evidence = readEvidence?.(now) ??
|
|
140
|
+
inputs.map((input) => ({
|
|
141
|
+
id: input.id,
|
|
142
|
+
sourceIdentity: input.sourcePropertyIdentity,
|
|
143
|
+
sample: null,
|
|
144
|
+
weight: input.weight,
|
|
145
|
+
}));
|
|
146
|
+
let result = (0, virtual_aggregate_evaluator_1.evaluateAggregate)(config.operator, config.minimumValidInputs, config.maximumAgeSeconds, evidence, now, step, config.outlierFilter);
|
|
147
|
+
const revoked = !graphCurrent() || revision !== graphRevision || (saved?.revision ?? 0) !== config.revision - 1;
|
|
148
|
+
const reason = revoked
|
|
149
|
+
? 'preview_revoked'
|
|
150
|
+
: !readEvidence
|
|
151
|
+
? 'runtime_unavailable'
|
|
152
|
+
: output.channel.device &&
|
|
153
|
+
output.channel.device.enabled === false
|
|
154
|
+
? 'output_disabled'
|
|
155
|
+
: null;
|
|
156
|
+
if (reason)
|
|
157
|
+
result = {
|
|
158
|
+
...result,
|
|
159
|
+
value: null,
|
|
160
|
+
quality: 'unavailable',
|
|
161
|
+
reasons: [reason],
|
|
162
|
+
sampledAt: null,
|
|
163
|
+
expiresAt: null,
|
|
164
|
+
inputs: result.inputs.map((input) => ({
|
|
165
|
+
...input,
|
|
166
|
+
value: null,
|
|
167
|
+
sampledAt: null,
|
|
168
|
+
ageSeconds: null,
|
|
169
|
+
exclusion: 'invalid',
|
|
170
|
+
})),
|
|
171
|
+
};
|
|
172
|
+
const model = this.describeAggregate(prepared, graphRevision);
|
|
173
|
+
model.preview_result = Object.assign(new producer_response_model_1.VirtualAggregatePreviewModel(), {
|
|
174
|
+
evaluated_at: now.toISOString(),
|
|
175
|
+
sampled_at: result.sampledAt?.toISOString() ?? null,
|
|
176
|
+
expires_at: result.expiresAt?.toISOString() ?? null,
|
|
177
|
+
profile: config.profile,
|
|
178
|
+
unit: profile.unit,
|
|
179
|
+
output_step: step ?? null,
|
|
180
|
+
value: result.value,
|
|
181
|
+
quality: result.quality,
|
|
182
|
+
reasons: [...result.reasons],
|
|
183
|
+
inputs: inputs.map((input) => {
|
|
184
|
+
const diagnostic = result.inputs.find((candidate) => candidate.id === input.id);
|
|
185
|
+
return Object.assign(this.bindingModel(input), {
|
|
186
|
+
...(!profile.binary ? { weight: input.weight ?? 1 } : {}),
|
|
187
|
+
current_value: diagnostic.value,
|
|
188
|
+
sampled_at: diagnostic.sampledAt,
|
|
189
|
+
age_seconds: diagnostic.ageSeconds,
|
|
190
|
+
exclusion: diagnostic.exclusion,
|
|
191
|
+
});
|
|
192
|
+
}),
|
|
193
|
+
});
|
|
194
|
+
return model;
|
|
195
|
+
}
|
|
196
|
+
async previewAggregate(outputPropertyId, dto) {
|
|
197
|
+
return this.structureLock.runExclusive(async () => {
|
|
198
|
+
const graphCurrent = this.graph.capturePublishGuard();
|
|
199
|
+
const revision = await this.graph.revision();
|
|
200
|
+
if (dto.expectedGraphRevision !== undefined && dto.expectedGraphRevision !== revision)
|
|
201
|
+
throw new devices_exceptions_1.DevicesValidationException('Virtual dependency graph revision changed; reload and retry.');
|
|
202
|
+
const prepared = await this.prepareAggregate(this.dataSource.manager, outputPropertyId, dto, undefined, true);
|
|
203
|
+
return this.previewPreparedAggregate(prepared, revision, graphCurrent);
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
async getAggregate(outputPropertyId) {
|
|
207
|
+
const config = await this.dataSource.manager.findOneBy(virtual_producer_entity_1.VirtualAggregateConfigEntity, { outputPropertyId });
|
|
208
|
+
if (!config)
|
|
209
|
+
throw new common_1.NotFoundException('Aggregate configuration does not exist.');
|
|
210
|
+
const inputs = await this.dataSource.manager.find(virtual_producer_entity_1.VirtualAggregateInputEntity, {
|
|
211
|
+
where: { outputPropertyId },
|
|
212
|
+
order: { id: 'ASC' },
|
|
213
|
+
});
|
|
214
|
+
const output = await this.property(this.dataSource.manager, outputPropertyId, true);
|
|
215
|
+
return this.aggregateModel(config, inputs, await this.graph.revision(), output.step);
|
|
216
|
+
}
|
|
217
|
+
async prepareAggregate(manager, outputPropertyId, dto, draftOutput, previewOnly = false) {
|
|
218
|
+
this.assertPolicy(dto);
|
|
219
|
+
const output = draftOutput ?? (await this.property(manager, outputPropertyId, previewOnly));
|
|
220
|
+
const channel = output.channel;
|
|
221
|
+
const device = channel.device;
|
|
222
|
+
if (!(0, virtual_numeric_profile_utils_1.isEligibleAggregateOutput)(output, channel, device))
|
|
223
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate output must be a read-only derived sensor with a supported canonical aggregate profile.');
|
|
224
|
+
const profile = (0, virtual_numeric_profile_utils_1.aggregateProfile)(output, channel);
|
|
225
|
+
if (!(0, virtual_numeric_profile_utils_1.aggregateOperatorAllowed)(profile, dto.operator) ||
|
|
226
|
+
(profile.binary && (dto.outlierFilter != null || dto.inputs.some((input) => input.weight !== undefined))))
|
|
227
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate profile does not support this operator, binary weights or filtering.');
|
|
228
|
+
const existing = await manager.findOneBy(virtual_producer_entity_1.VirtualAggregateConfigEntity, { outputPropertyId });
|
|
229
|
+
this.assertRevision(existing?.revision ?? 0, dto.expectedRevision);
|
|
230
|
+
const previous = await manager.find(virtual_producer_entity_1.VirtualAggregateInputEntity, { where: { outputPropertyId } });
|
|
231
|
+
const inputs = [];
|
|
232
|
+
const identities = new Set();
|
|
233
|
+
for (const proposed of dto.inputs) {
|
|
234
|
+
const old = proposed.id
|
|
235
|
+
? previous.find((input) => input.id === proposed.id)
|
|
236
|
+
: previous.find((input) => input.sourcePropertyIdentity === proposed.sourcePropertyId);
|
|
237
|
+
if (proposed.id && !old)
|
|
238
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate binding UUID is not owned by this output.');
|
|
239
|
+
if (!proposed.sourcePropertyId) {
|
|
240
|
+
if (!old ||
|
|
241
|
+
old.sourcePropertyId !== null ||
|
|
242
|
+
old.quantity !== String(profile.quantity) ||
|
|
243
|
+
old.unit !== profile.unit ||
|
|
244
|
+
existing?.profile !== profile.id)
|
|
245
|
+
throw new devices_exceptions_1.DevicesValidationException('Only an existing missing input can retain a null source.');
|
|
246
|
+
inputs.push(manager.create(virtual_producer_entity_1.VirtualAggregateInputEntity, { ...old, weight: proposed.weight ?? 1 }));
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
const source = await this.property(manager, proposed.sourcePropertyId, previewOnly);
|
|
250
|
+
const sourceChannel = source.channel;
|
|
251
|
+
const sourceDevice = sourceChannel.device;
|
|
252
|
+
if (!(0, virtual_numeric_profile_utils_1.isEligibleAggregateSource)(source, sourceChannel, sourceDevice) ||
|
|
253
|
+
(0, virtual_numeric_profile_utils_1.aggregateProfile)(source, sourceChannel)?.id !== profile.id)
|
|
254
|
+
throw new devices_exceptions_1.DevicesValidationException(sourceDevice.type === 'virtual'
|
|
255
|
+
? 'Aggregate inputs require matching physical profiles or read-only canonical transformed temperatures (temperature composition only).'
|
|
256
|
+
: 'Aggregate input must match the output canonical quantity, channel, unit and type.');
|
|
257
|
+
inputs.push(manager.create(virtual_producer_entity_1.VirtualAggregateInputEntity, {
|
|
258
|
+
id: old?.id ?? (0, uuid_1.v4)(),
|
|
259
|
+
weight: proposed.weight ?? 1,
|
|
260
|
+
outputPropertyId,
|
|
261
|
+
sourcePropertyId: source.id,
|
|
262
|
+
sourcePropertyIdentity: source.id,
|
|
263
|
+
quantity: source.category,
|
|
264
|
+
unit: (0, property_metadata_utils_1.resolvePropertyUnit)(source) ?? null,
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
const identity = inputs[inputs.length - 1].sourcePropertyIdentity;
|
|
268
|
+
if (identities.has(identity))
|
|
269
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate inputs must have distinct source identities.');
|
|
270
|
+
identities.add(identity);
|
|
271
|
+
}
|
|
272
|
+
if (new Set(inputs.map((input) => input.id)).size !== inputs.length)
|
|
273
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate binding UUIDs must be distinct.');
|
|
274
|
+
await this.graph.validateReplacement(manager, [outputPropertyId], inputs
|
|
275
|
+
.filter((input) => input.sourcePropertyId)
|
|
276
|
+
.map((input) => ({ outputPropertyId, sourcePropertyId: input.sourcePropertyId })));
|
|
277
|
+
const config = manager.create(virtual_producer_entity_1.VirtualAggregateConfigEntity, {
|
|
278
|
+
outputPropertyId,
|
|
279
|
+
schemaVersion: 1,
|
|
280
|
+
profile: profile.id,
|
|
281
|
+
operator: dto.operator,
|
|
282
|
+
outlierFilter: dto.outlierFilter ?? null,
|
|
283
|
+
minimumValidInputs: dto.minimumValidInputs,
|
|
284
|
+
maximumAgeSeconds: dto.maximumAgeSeconds,
|
|
285
|
+
revision: (existing?.revision ?? 0) + 1,
|
|
286
|
+
});
|
|
287
|
+
return { config, inputs, output: output };
|
|
288
|
+
}
|
|
289
|
+
async configureLightGroup(groupChannelId, dto) {
|
|
290
|
+
const state = (0, creation_capture_1.captureCreation)(this.producerState, [
|
|
291
|
+
'captureConfigurationHandoff',
|
|
292
|
+
'withConfigurationWrite',
|
|
293
|
+
'recordConfiguration',
|
|
294
|
+
'installUnavailable',
|
|
295
|
+
]);
|
|
296
|
+
const handoff = state.values.captureConfigurationHandoff.call(state.receiver);
|
|
297
|
+
return this.structureLock.runExclusive(async () => {
|
|
298
|
+
let outputs = [];
|
|
299
|
+
let committedProperties = [];
|
|
300
|
+
let committedRevision = 0;
|
|
301
|
+
await state.values.withConfigurationWrite.call(state.receiver, handoff, async (manager) => {
|
|
302
|
+
const prepared = await this.prepareLightGroup(manager, groupChannelId, dto);
|
|
303
|
+
await state.values.recordConfiguration.call(state.receiver, manager, handoff, {
|
|
304
|
+
kind: 'light-group',
|
|
305
|
+
config: prepared.config,
|
|
306
|
+
members: prepared.members,
|
|
307
|
+
bindings: prepared.bindings,
|
|
308
|
+
outputs: prepared.outputs,
|
|
309
|
+
});
|
|
310
|
+
await this.persistLightGroup(manager, prepared);
|
|
311
|
+
outputs = [...new Set(prepared.bindings.map((binding) => binding.outputPropertyId))];
|
|
312
|
+
committedProperties = prepared.outputs;
|
|
313
|
+
committedRevision = prepared.config.revision;
|
|
314
|
+
}, dto.expectedGraphRevision, this.structureLock.captureExclusiveOwner());
|
|
315
|
+
for (const property of committedProperties)
|
|
316
|
+
state.values.installUnavailable.call(state.receiver, property, committedRevision);
|
|
317
|
+
await this.announceOutputs(outputs);
|
|
318
|
+
return this.getLightGroup(groupChannelId);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
async persistLightGroup(manager, prepared) {
|
|
322
|
+
await manager.save(prepared.config);
|
|
323
|
+
await manager.delete(virtual_producer_entity_1.VirtualLightGroupMemberEntity, { groupChannelId: prepared.config.groupChannelId });
|
|
324
|
+
await manager.save(prepared.members);
|
|
325
|
+
await manager.save(prepared.bindings);
|
|
326
|
+
}
|
|
327
|
+
installLightGroup(prepared) {
|
|
328
|
+
for (const property of prepared.outputs)
|
|
329
|
+
this.producerState.installUnavailable(property, prepared.config.revision);
|
|
330
|
+
}
|
|
331
|
+
async previewLightGroup(groupChannelId, dto) {
|
|
332
|
+
return this.structureLock.runExclusive(async () => {
|
|
333
|
+
const prepared = await this.prepareLightGroup(this.dataSource.manager, groupChannelId, dto);
|
|
334
|
+
return this.groupModel(prepared.config, prepared.members, prepared.bindings, await this.graph.revision(), prepared.capabilities);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
async getLightGroup(groupChannelId) {
|
|
338
|
+
const config = await this.dataSource.manager.findOneBy(virtual_producer_entity_1.VirtualLightGroupConfigEntity, { groupChannelId });
|
|
339
|
+
if (!config)
|
|
340
|
+
throw new common_1.NotFoundException('Light group configuration does not exist.');
|
|
341
|
+
const members = await this.dataSource.manager.find(virtual_producer_entity_1.VirtualLightGroupMemberEntity, {
|
|
342
|
+
where: { groupChannelId },
|
|
343
|
+
order: { id: 'ASC' },
|
|
344
|
+
});
|
|
345
|
+
const bindings = (await this.dataSource.manager.find(virtual_producer_entity_1.VirtualLightGroupBindingEntity)).filter((binding) => members.some((member) => member.id === binding.memberId));
|
|
346
|
+
const outputs = await this.dataSource.manager.find(devices_virtual_entity_1.VirtualChannelPropertyEntity, {
|
|
347
|
+
where: { channel: { id: groupChannelId } },
|
|
348
|
+
relations: ['channel'],
|
|
349
|
+
});
|
|
350
|
+
const capabilities = await this.commonContract(this.dataSource.manager, members, bindings, outputs, config.profile);
|
|
351
|
+
const model = this.groupModel(config, members, bindings, await this.graph.revision(), capabilities);
|
|
352
|
+
if (config.profile === virtual_producer_entity_1.VirtualLightGroupProfile.COVER) {
|
|
353
|
+
const readinessMembers = await Promise.all(members.map(async (member) => {
|
|
354
|
+
const channel = member.sourceChannelId
|
|
355
|
+
? await this.dataSource.manager.findOne(devices_entity_1.ChannelEntity, {
|
|
356
|
+
where: { id: member.sourceChannelId },
|
|
357
|
+
relations: ['device', 'properties'],
|
|
358
|
+
})
|
|
359
|
+
: null;
|
|
360
|
+
const contract = await (0, virtual_cover_contract_utils_1.loadCoverMemberContract)(this.dataSource.manager, member.id, member.sourceChannelId, outputs);
|
|
361
|
+
return { identity: member.sourceChannelIdentity, channel, reasons: contract.reasons };
|
|
362
|
+
}));
|
|
363
|
+
model.operations = await (0, virtual_cover_readiness_utils_1.coverOperationReadiness)(this.platforms, readinessMembers);
|
|
364
|
+
}
|
|
365
|
+
return model;
|
|
366
|
+
}
|
|
367
|
+
async prepareLightGroup(manager, groupChannelId, dto) {
|
|
368
|
+
if (!Object.hasOwn(virtual_group_profile_1.GROUP_PROFILES, dto.profile) ||
|
|
369
|
+
!Array.isArray(dto.members) ||
|
|
370
|
+
dto.members.length < 2 ||
|
|
371
|
+
dto.members.length > 256)
|
|
372
|
+
throw new devices_exceptions_1.DevicesValidationException('A group requires a supported profile and 2–256 members.');
|
|
373
|
+
const group = await manager
|
|
374
|
+
.createQueryBuilder(devices_entity_1.ChannelEntity, 'channel')
|
|
375
|
+
.leftJoinAndSelect('channel.device', 'device')
|
|
376
|
+
.where('channel.id = :id', { id: groupChannelId })
|
|
377
|
+
.callListeners(false)
|
|
378
|
+
.getOne();
|
|
379
|
+
const device = group?.device;
|
|
380
|
+
if (!group ||
|
|
381
|
+
device?.type !== 'virtual' ||
|
|
382
|
+
device.mode !== devices_virtual_entity_1.VirtualDeviceMode.ACTUATOR_GROUP ||
|
|
383
|
+
device.category !== virtual_group_profile_1.GROUP_PROFILES[dto.profile].deviceCategory ||
|
|
384
|
+
group.category !== virtual_group_profile_1.GROUP_PROFILES[dto.profile].channelCategory)
|
|
385
|
+
throw new devices_exceptions_1.DevicesValidationException('Group configuration requires an actuator-group device/channel matching its profile.');
|
|
386
|
+
const existing = await manager.findOneBy(virtual_producer_entity_1.VirtualLightGroupConfigEntity, { groupChannelId });
|
|
387
|
+
this.assertRevision(existing?.revision ?? 0, dto.expectedRevision);
|
|
388
|
+
if (existing && existing.profile !== dto.profile)
|
|
389
|
+
throw new common_1.ConflictException('An existing group profile cannot be changed');
|
|
390
|
+
const previousMembers = await manager.find(virtual_producer_entity_1.VirtualLightGroupMemberEntity, { where: { groupChannelId } });
|
|
391
|
+
const previousBindings = (await manager.find(virtual_producer_entity_1.VirtualLightGroupBindingEntity)).filter((binding) => previousMembers.some((member) => member.id === binding.memberId));
|
|
392
|
+
const outputs = await manager
|
|
393
|
+
.createQueryBuilder(devices_virtual_entity_1.VirtualChannelPropertyEntity, 'property')
|
|
394
|
+
.leftJoinAndSelect('property.channel', 'channel')
|
|
395
|
+
.leftJoinAndSelect('channel.device', 'device')
|
|
396
|
+
.where('channel.id = :id', { id: groupChannelId })
|
|
397
|
+
.callListeners(false)
|
|
398
|
+
.getMany();
|
|
399
|
+
if (!(0, virtual_group_profile_1.requiredGroupFields)(dto.profile).every((category) => outputs.some((property) => property.category === category && property.valueOrigin === devices_virtual_entity_1.VirtualValueOrigin.DERIVED)))
|
|
400
|
+
throw new devices_exceptions_1.DevicesValidationException('Group requires all derived profile outputs.');
|
|
401
|
+
const exposed = outputs.filter((property) => property.valueOrigin === devices_virtual_entity_1.VirtualValueOrigin.DERIVED);
|
|
402
|
+
if (exposed.some((property) => !(0, virtual_group_profile_1.groupBooleanContractIsSupported)(dto.profile, property)))
|
|
403
|
+
throw new devices_exceptions_1.DevicesValidationException('Switch/outlet outputs require an unrestricted two-state boolean contract.');
|
|
404
|
+
if (exposed.some((property) => !property.permissions.includes(devices_constants_1.PermissionType.READ_ONLY) ||
|
|
405
|
+
property.permissions.includes(devices_constants_1.PermissionType.READ_WRITE) ||
|
|
406
|
+
property.permissions.includes(devices_constants_1.PermissionType.WRITE_ONLY) ||
|
|
407
|
+
property.sourcePropertyId))
|
|
408
|
+
throw new devices_exceptions_1.DevicesValidationException('Initial light-group materialized outputs must be read-only and have no projection source.');
|
|
409
|
+
const members = [];
|
|
410
|
+
const bindings = [];
|
|
411
|
+
for (const proposed of dto.members) {
|
|
412
|
+
const old = proposed.id
|
|
413
|
+
? previousMembers.find((member) => member.id === proposed.id)
|
|
414
|
+
: previousMembers.find((member) => member.sourceChannelIdentity === proposed.sourceChannelId);
|
|
415
|
+
if (proposed.id && !old)
|
|
416
|
+
throw new devices_exceptions_1.DevicesValidationException('Member UUID is not owned by this light group.');
|
|
417
|
+
const sourceChannel = proposed.sourceChannelId
|
|
418
|
+
? await manager
|
|
419
|
+
.createQueryBuilder(devices_entity_1.ChannelEntity, 'channel')
|
|
420
|
+
.leftJoinAndSelect('channel.device', 'device')
|
|
421
|
+
.where('channel.id = :id', { id: proposed.sourceChannelId })
|
|
422
|
+
.callListeners(false)
|
|
423
|
+
.getOne()
|
|
424
|
+
: null;
|
|
425
|
+
if (proposed.sourceChannelId &&
|
|
426
|
+
(!sourceChannel ||
|
|
427
|
+
sourceChannel.device?.type === 'virtual' ||
|
|
428
|
+
sourceChannel.category !== virtual_group_profile_1.GROUP_PROFILES[dto.profile].channelCategory ||
|
|
429
|
+
(dto.profile !== virtual_producer_entity_1.VirtualLightGroupProfile.LIGHT &&
|
|
430
|
+
sourceChannel.device?.category !== virtual_group_profile_1.GROUP_PROFILES[dto.profile].deviceCategory)))
|
|
431
|
+
throw new devices_exceptions_1.DevicesValidationException('Group members must be homogeneous physical channels matching the profile.');
|
|
432
|
+
if (!proposed.sourceChannelId && (!old || old.sourceChannelId !== null))
|
|
433
|
+
throw new devices_exceptions_1.DevicesValidationException('Only an existing missing member can retain a null channel.');
|
|
434
|
+
const member = manager.create(virtual_producer_entity_1.VirtualLightGroupMemberEntity, {
|
|
435
|
+
id: old?.id ?? (0, uuid_1.v4)(),
|
|
436
|
+
groupChannelId,
|
|
437
|
+
sourceChannelId: sourceChannel?.id ?? null,
|
|
438
|
+
sourceChannelIdentity: sourceChannel?.id ?? old.sourceChannelIdentity,
|
|
439
|
+
});
|
|
440
|
+
members.push(member);
|
|
441
|
+
if (!Array.isArray(proposed.bindings) ||
|
|
442
|
+
proposed.bindings.length !== exposed.length ||
|
|
443
|
+
new Set(proposed.bindings.map((binding) => binding.outputPropertyId)).size !== exposed.length)
|
|
444
|
+
throw new devices_exceptions_1.DevicesValidationException('Every member must bind each exposed group property exactly once.');
|
|
445
|
+
for (const proposedBinding of proposed.bindings) {
|
|
446
|
+
const output = exposed.find((property) => property.id === proposedBinding.outputPropertyId);
|
|
447
|
+
if (!output)
|
|
448
|
+
throw new devices_exceptions_1.DevicesValidationException('Binding output does not belong to this group channel.');
|
|
449
|
+
const oldBinding = proposedBinding.id
|
|
450
|
+
? previousBindings.find((binding) => binding.id === proposedBinding.id &&
|
|
451
|
+
binding.memberId === member.id &&
|
|
452
|
+
binding.outputPropertyId === output.id)
|
|
453
|
+
: previousBindings.find((binding) => binding.memberId === member.id && binding.outputPropertyId === output.id);
|
|
454
|
+
if (proposedBinding.id && !oldBinding)
|
|
455
|
+
throw new devices_exceptions_1.DevicesValidationException('Binding UUID is not owned by this member/output.');
|
|
456
|
+
if (!proposedBinding.sourcePropertyId) {
|
|
457
|
+
if (!oldBinding || oldBinding.sourcePropertyId !== null)
|
|
458
|
+
throw new devices_exceptions_1.DevicesValidationException('Only an existing missing binding can retain a null source.');
|
|
459
|
+
bindings.push(oldBinding);
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
const source = await this.property(manager, proposedBinding.sourcePropertyId, true);
|
|
463
|
+
if (!sourceChannel ||
|
|
464
|
+
source.channel.id !== sourceChannel.id ||
|
|
465
|
+
source.category !== output.category ||
|
|
466
|
+
source.dataType !== output.dataType ||
|
|
467
|
+
(0, property_metadata_utils_1.resolvePropertyUnit)(source) !== (0, property_metadata_utils_1.resolvePropertyUnit)(output) ||
|
|
468
|
+
!(0, virtual_group_profile_1.groupSourceSupports)(source, (0, virtual_group_profile_1.groupField)(dto.profile, output.category)) ||
|
|
469
|
+
!(0, virtual_group_profile_1.groupBooleanContractIsSupported)(dto.profile, source) ||
|
|
470
|
+
!(0, virtual_typed_group_utils_1.typedGroupSourceMatchesOutput)(dto.profile, (0, virtual_group_profile_1.groupField)(dto.profile, output.category), source, output)) {
|
|
471
|
+
if (existing && output.category !== devices_constants_1.PropertyCategory.ON)
|
|
472
|
+
throw new common_1.ConflictException(`Membership edit would remove capability ${output.category}; repair its scene/tile references and exposed contract explicitly.`);
|
|
473
|
+
throw new devices_exceptions_1.DevicesValidationException('Member property must belong to its physical channel and match output quantity/type/unit with the profile-required access.');
|
|
474
|
+
}
|
|
475
|
+
bindings.push(manager.create(virtual_producer_entity_1.VirtualLightGroupBindingEntity, {
|
|
476
|
+
id: oldBinding?.id ?? (0, uuid_1.v4)(),
|
|
477
|
+
memberId: member.id,
|
|
478
|
+
outputPropertyId: output.id,
|
|
479
|
+
sourcePropertyId: source.id,
|
|
480
|
+
sourcePropertyIdentity: source.id,
|
|
481
|
+
quantity: source.category,
|
|
482
|
+
unit: (0, property_metadata_utils_1.resolvePropertyUnit)(source) ?? null,
|
|
483
|
+
}));
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
if (new Set(members.map((member) => member.sourceChannelIdentity)).size !== members.length ||
|
|
487
|
+
new Set(members.map((member) => member.id)).size !== members.length ||
|
|
488
|
+
new Set(bindings.map((binding) => binding.id)).size !== bindings.length)
|
|
489
|
+
throw new devices_exceptions_1.DevicesValidationException('Member identities and binding UUIDs must be distinct.');
|
|
490
|
+
if (dto.profile === virtual_producer_entity_1.VirtualLightGroupProfile.COVER) {
|
|
491
|
+
for (const member of members) {
|
|
492
|
+
const memberBindings = bindings.filter((binding) => binding.memberId === member.id);
|
|
493
|
+
if (memberBindings.some((binding) => !binding.sourcePropertyId))
|
|
494
|
+
continue;
|
|
495
|
+
const properties = await Promise.all(memberBindings.map((binding) => this.property(manager, binding.sourcePropertyId, true)));
|
|
496
|
+
const reasons = (0, virtual_cover_contract_utils_1.coverContractReasons)(properties, exposed);
|
|
497
|
+
if (reasons.length)
|
|
498
|
+
throw new devices_exceptions_1.DevicesValidationException(reasons.join(', '));
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
const capabilities = await this.commonContract(manager, members, bindings, exposed, dto.profile);
|
|
502
|
+
for (const output of exposed) {
|
|
503
|
+
const liveSources = bindings.filter((binding) => binding.outputPropertyId === output.id && binding.sourcePropertyId);
|
|
504
|
+
if (liveSources.length !== members.length)
|
|
505
|
+
continue;
|
|
506
|
+
const common = capabilities.find((capability) => capability.category === output.category);
|
|
507
|
+
const change = (0, virtual_group_contract_utils_1.groupCapabilityChange)(dto.profile, common, output);
|
|
508
|
+
if (change === 'changed')
|
|
509
|
+
throw new common_1.ConflictException(`Membership edit would change capability ${output.category}; preserve the exact exposed contract.`);
|
|
510
|
+
if (change === 'removed') {
|
|
511
|
+
if (existing)
|
|
512
|
+
throw new common_1.ConflictException(`Membership edit would remove capability ${output.category}; repair its scene/tile references and exposed contract explicitly.`);
|
|
513
|
+
throw new devices_exceptions_1.DevicesValidationException(`Exposed capability ${output.category} is not common to all members.`);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
await this.graph.validateReplacement(manager, exposed.map((property) => property.id), bindings
|
|
517
|
+
.filter((binding) => binding.sourcePropertyId)
|
|
518
|
+
.map((binding) => ({
|
|
519
|
+
outputPropertyId: binding.outputPropertyId,
|
|
520
|
+
sourcePropertyId: binding.sourcePropertyId,
|
|
521
|
+
})));
|
|
522
|
+
return {
|
|
523
|
+
config: manager.create(virtual_producer_entity_1.VirtualLightGroupConfigEntity, {
|
|
524
|
+
groupChannelId,
|
|
525
|
+
schemaVersion: 1,
|
|
526
|
+
profile: dto.profile,
|
|
527
|
+
revision: (existing?.revision ?? 0) + 1,
|
|
528
|
+
}),
|
|
529
|
+
members,
|
|
530
|
+
bindings,
|
|
531
|
+
outputs: exposed,
|
|
532
|
+
capabilities,
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
async commonContract(manager, members, bindings, outputs, profile) {
|
|
536
|
+
return (0, virtual_group_profile_1.commonGroupCapabilities)(profile, await Promise.all(members.map(async (member) => {
|
|
537
|
+
const physical = member.sourceChannelId
|
|
538
|
+
? await manager
|
|
539
|
+
.createQueryBuilder(devices_entity_1.ChannelPropertyEntity, 'property')
|
|
540
|
+
.leftJoinAndSelect('property.channel', 'channel')
|
|
541
|
+
.where('channel.id = :id', { id: member.sourceChannelId })
|
|
542
|
+
.callListeners(false)
|
|
543
|
+
.getMany()
|
|
544
|
+
: [];
|
|
545
|
+
const missing = bindings.filter((binding) => binding.memberId === member.id && !binding.sourcePropertyId);
|
|
546
|
+
for (const binding of missing) {
|
|
547
|
+
const output = outputs.find((output) => output.id === binding.outputPropertyId);
|
|
548
|
+
if (output)
|
|
549
|
+
physical.push(Object.assign(new devices_entity_1.ChannelPropertyEntity(), output, { permissions: [devices_constants_1.PermissionType.READ_WRITE] }));
|
|
550
|
+
}
|
|
551
|
+
return physical;
|
|
552
|
+
})));
|
|
553
|
+
}
|
|
554
|
+
async property(manager, id, previewOnly = false) {
|
|
555
|
+
const property = previewOnly
|
|
556
|
+
? await manager
|
|
557
|
+
.createQueryBuilder(devices_entity_1.ChannelPropertyEntity, 'property')
|
|
558
|
+
.leftJoinAndSelect('property.channel', 'channel')
|
|
559
|
+
.leftJoinAndSelect('channel.device', 'device')
|
|
560
|
+
.where('property.id = :id', { id })
|
|
561
|
+
.callListeners(false)
|
|
562
|
+
.getOne()
|
|
563
|
+
: await manager.findOne(devices_entity_1.ChannelPropertyEntity, {
|
|
564
|
+
where: { id },
|
|
565
|
+
relations: ['channel', 'channel.device'],
|
|
566
|
+
});
|
|
567
|
+
if (!property || !property.channel || !property.channel.device)
|
|
568
|
+
throw new devices_exceptions_1.DevicesValidationException(`Source/output property id=${id} does not resolve to a complete device structure.`);
|
|
569
|
+
if (previewOnly)
|
|
570
|
+
await (0, virtual_measurement_metadata_utils_1.hydrateMeasurementContract)(manager, property);
|
|
571
|
+
return property;
|
|
572
|
+
}
|
|
573
|
+
assertPolicy(dto) {
|
|
574
|
+
if (!(0, virtual_aggregate_policy_utils_1.isValidAggregateFilter)(dto.outlierFilter))
|
|
575
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate outlier filter requires a supported kind and a positive finite canonical-unit threshold.');
|
|
576
|
+
if (Array.isArray(dto.inputs) &&
|
|
577
|
+
dto.inputs.some((input) => !(0, virtual_aggregate_policy_utils_1.isValidAggregateWeight)(input.weight === undefined ? 1 : input.weight)))
|
|
578
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate input weight must be finite and between 0.000001 and 1000000 (inclusive).');
|
|
579
|
+
if (!Object.values(virtual_producer_entity_1.VirtualAggregateOperator).includes(dto.operator) ||
|
|
580
|
+
!Array.isArray(dto.inputs) ||
|
|
581
|
+
dto.inputs.length < 2 ||
|
|
582
|
+
dto.inputs.length > 256 ||
|
|
583
|
+
!Number.isInteger(dto.minimumValidInputs) ||
|
|
584
|
+
dto.minimumValidInputs < 1 ||
|
|
585
|
+
dto.minimumValidInputs > dto.inputs.length ||
|
|
586
|
+
!Number.isInteger(dto.maximumAgeSeconds) ||
|
|
587
|
+
dto.maximumAgeSeconds < 1 ||
|
|
588
|
+
dto.maximumAgeSeconds > 86400)
|
|
589
|
+
throw new devices_exceptions_1.DevicesValidationException('Aggregate requires 2–256 inputs, a supported operator, valid quorum and positive bounded maximum age.');
|
|
590
|
+
}
|
|
591
|
+
assertRevision(actual, expected) {
|
|
592
|
+
if (!Number.isInteger(expected) || actual !== expected)
|
|
593
|
+
throw new devices_exceptions_1.DevicesValidationException('Producer configuration revision changed; reload and retry.');
|
|
594
|
+
}
|
|
595
|
+
bindingModel(binding) {
|
|
596
|
+
return Object.assign(new producer_response_model_1.VirtualProducerBindingModel(), {
|
|
597
|
+
id: binding.id,
|
|
598
|
+
output_property: binding.outputPropertyId,
|
|
599
|
+
source_property: binding.sourcePropertyId,
|
|
600
|
+
source_identity: binding.sourcePropertyIdentity,
|
|
601
|
+
quantity: binding.quantity,
|
|
602
|
+
unit: binding.unit,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
aggregateModel(config, inputs, graphRevision, outputStep, includeRuntimeDiagnostics = true) {
|
|
606
|
+
return Object.assign(new producer_response_model_1.VirtualAggregateConfigurationModel(), {
|
|
607
|
+
output_property: config.outputPropertyId,
|
|
608
|
+
schema_version: config.schemaVersion,
|
|
609
|
+
profile: config.profile,
|
|
610
|
+
output_step: outputStep ?? virtual_numeric_profile_utils_1.aggregateProfiles.find((profile) => profile.id === config.profile)?.outputStep ?? null,
|
|
611
|
+
rounding: 'nearest_ties_positive',
|
|
612
|
+
operator: config.operator,
|
|
613
|
+
outlier_filter: config.outlierFilter ?? null,
|
|
614
|
+
minimum_valid_inputs: config.minimumValidInputs,
|
|
615
|
+
maximum_age_seconds: config.maximumAgeSeconds,
|
|
616
|
+
revision: config.revision,
|
|
617
|
+
graph_revision: graphRevision,
|
|
618
|
+
runtime_readiness: this.aggregateRuntime?.isActive() ? 'ready' : 'unavailable',
|
|
619
|
+
inputs: inputs.map((input) => {
|
|
620
|
+
const model = this.bindingModel(input);
|
|
621
|
+
if (!virtual_numeric_profile_utils_1.aggregateProfiles.find((profile) => profile.id === config.profile)?.binary)
|
|
622
|
+
model.weight = input.weight ?? 1;
|
|
623
|
+
const diagnostic = includeRuntimeDiagnostics && input.sourcePropertyId !== null
|
|
624
|
+
? this.aggregateRuntime
|
|
625
|
+
?.readDiagnostics(config.outputPropertyId)
|
|
626
|
+
?.inputs.find((candidate) => candidate.id === input.id && candidate.sourceIdentity === input.sourcePropertyIdentity)
|
|
627
|
+
: undefined;
|
|
628
|
+
if (diagnostic)
|
|
629
|
+
Object.assign(model, {
|
|
630
|
+
current_value: diagnostic.value,
|
|
631
|
+
sampled_at: diagnostic.sampledAt,
|
|
632
|
+
age_seconds: diagnostic.ageSeconds,
|
|
633
|
+
exclusion: diagnostic.exclusion,
|
|
634
|
+
});
|
|
635
|
+
return model;
|
|
636
|
+
}),
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
groupModel(config, members, bindings, graphRevision, capabilities) {
|
|
640
|
+
return Object.assign(new producer_response_model_1.VirtualLightGroupConfigurationModel(), {
|
|
641
|
+
group_channel: config.groupChannelId,
|
|
642
|
+
schema_version: config.schemaVersion,
|
|
643
|
+
profile: config.profile,
|
|
644
|
+
revision: config.revision,
|
|
645
|
+
graph_revision: graphRevision,
|
|
646
|
+
runtime_readiness: 'ready',
|
|
647
|
+
common_capabilities: capabilities.map((capability) => Object.assign(new producer_response_model_1.VirtualLightGroupCapabilityModel(), {
|
|
648
|
+
category: capability.category,
|
|
649
|
+
...(config.profile === virtual_producer_entity_1.VirtualLightGroupProfile.LIGHT
|
|
650
|
+
? {}
|
|
651
|
+
: { access: (0, virtual_group_profile_1.groupField)(config.profile, capability.category).access }),
|
|
652
|
+
data_type: capability.dataType,
|
|
653
|
+
unit: capability.unit,
|
|
654
|
+
format: capability.format,
|
|
655
|
+
step: capability.step,
|
|
656
|
+
})),
|
|
657
|
+
reported_state: this.lightGroups?.getReportedModel(config.groupChannelId, config.revision) ?? null,
|
|
658
|
+
members: members.map((member) => ({
|
|
659
|
+
id: member.id,
|
|
660
|
+
source_channel: member.sourceChannelId,
|
|
661
|
+
source_identity: member.sourceChannelIdentity,
|
|
662
|
+
bindings: bindings
|
|
663
|
+
.filter((binding) => binding.memberId === member.id)
|
|
664
|
+
.map((binding) => this.bindingModel(binding)),
|
|
665
|
+
})),
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
async announceOutputs(ids) {
|
|
669
|
+
for (const id of ids) {
|
|
670
|
+
const property = await this.dataSource.manager.findOne(devices_entity_1.ChannelPropertyEntity, {
|
|
671
|
+
where: { id },
|
|
672
|
+
relations: ['channel', 'channel.device'],
|
|
673
|
+
});
|
|
674
|
+
if (property)
|
|
675
|
+
this.eventEmitter.emit(devices_constants_1.EventType.CHANNEL_PROPERTY_UPDATED, property);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
exports.VirtualProducerConfigService = VirtualProducerConfigService;
|
|
680
|
+
exports.VirtualProducerConfigService = VirtualProducerConfigService = __decorate([
|
|
681
|
+
(0, common_1.Injectable)(),
|
|
682
|
+
__param(5, (0, common_1.Optional)()),
|
|
683
|
+
__param(6, (0, common_1.Optional)()),
|
|
684
|
+
__param(7, (0, common_1.Optional)()),
|
|
685
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
686
|
+
device_structure_lock_service_1.DeviceStructureLockService,
|
|
687
|
+
virtual_dependency_graph_service_1.VirtualDependencyGraphService,
|
|
688
|
+
event_emitter_1.EventEmitter2,
|
|
689
|
+
virtual_producer_state_service_1.VirtualProducerStateService,
|
|
690
|
+
virtual_light_group_state_service_1.VirtualLightGroupStateService,
|
|
691
|
+
virtual_aggregate_runtime_service_1.VirtualAggregateRuntimeService,
|
|
692
|
+
platform_registry_service_1.PlatformRegistryService])
|
|
693
|
+
], VirtualProducerConfigService);
|
|
694
|
+
//# sourceMappingURL=virtual-producer-config.service.js.map
|