@fastybird/smart-panel-backend 1.1.0-alpha.64 → 1.1.0-alpha.66
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,722 @@
|
|
|
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.SpaceClimateAutomationService = exports.SPACE_ACTIVITY_CLIMATE_PRODUCER = void 0;
|
|
16
|
+
const node_crypto_1 = require("node:crypto");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const common_1 = require("@nestjs/common");
|
|
19
|
+
const sqlite_data_source_1 = require("../../../common/database/sqlite-data-source");
|
|
20
|
+
const climate_automation_entity_1 = require("../../../modules/devices/entities/climate-automation.entity");
|
|
21
|
+
const climate_automation_ledger_service_1 = require("../../../modules/devices/services/climate-automation-ledger.service");
|
|
22
|
+
const climate_automation_ledger_utils_1 = require("../../../modules/devices/services/climate-automation-ledger.utils");
|
|
23
|
+
const climate_automation_registry_service_1 = require("../../../modules/devices/services/climate-automation.registry.service");
|
|
24
|
+
const creation_capture_1 = require("../../../modules/devices/services/creation-capture");
|
|
25
|
+
const device_structure_lock_service_1 = require("../../../modules/devices/services/device-structure-lock.service");
|
|
26
|
+
const space_entity_1 = require("../../../modules/spaces/entities/space.entity");
|
|
27
|
+
const space_lifecycle_registry_service_1 = require("../../../modules/spaces/services/space-lifecycle-registry.service");
|
|
28
|
+
const spaces_constants_1 = require("../../../modules/spaces/spaces.constants");
|
|
29
|
+
const activity_result_utils_1 = require("../activity/activity-result.utils");
|
|
30
|
+
const space_activity_constants_1 = require("../activity/space-activity.constants");
|
|
31
|
+
const space_activity_config_entity_1 = require("../entities/space-activity-config.entity");
|
|
32
|
+
const space_activity_state_entity_1 = require("../entities/space-activity-state.entity");
|
|
33
|
+
const spaces_home_control_constants_1 = require("../spaces-home-control.constants");
|
|
34
|
+
const climate_intent_service_1 = require("./climate-intent.service");
|
|
35
|
+
class UnsupportedThermostatSelection extends Error {
|
|
36
|
+
}
|
|
37
|
+
class SupersededCompletion extends Error {
|
|
38
|
+
}
|
|
39
|
+
exports.SPACE_ACTIVITY_CLIMATE_PRODUCER = 'space-activity:v1';
|
|
40
|
+
let SpaceClimateAutomationService = class SpaceClimateAutomationService {
|
|
41
|
+
constructor(database, registry, ledger, structure, lifecycle, intents) {
|
|
42
|
+
this.database = database;
|
|
43
|
+
this.registry = registry;
|
|
44
|
+
this.ledger = ledger;
|
|
45
|
+
this.structure = structure;
|
|
46
|
+
this.lifecycle = lifecycle;
|
|
47
|
+
this.intents = intents;
|
|
48
|
+
this.completions = new WeakMap();
|
|
49
|
+
this.participants = new Map();
|
|
50
|
+
this.destroyed = false;
|
|
51
|
+
this.epochs = new Map();
|
|
52
|
+
this.mutations = new Map();
|
|
53
|
+
this.completionCohorts = new Map();
|
|
54
|
+
this.activeLifetimes = new Map();
|
|
55
|
+
this.admissionEpoch = {};
|
|
56
|
+
this.producer = {
|
|
57
|
+
captureCurrent: (source) => {
|
|
58
|
+
const evidence = JSON.parse(source.evidence);
|
|
59
|
+
const configurationKey = `${source.subjectId}/${evidence.configId}`;
|
|
60
|
+
const activationKey = `${source.subjectId}/activation/${evidence.activationId}`;
|
|
61
|
+
const blocked = () => this.destroyed ||
|
|
62
|
+
this.mutations.has(source.subjectId) ||
|
|
63
|
+
this.mutations.has(configurationKey) ||
|
|
64
|
+
this.mutations.has(activationKey);
|
|
65
|
+
if (blocked())
|
|
66
|
+
return () => false;
|
|
67
|
+
let lifetime = this.activeLifetimes.get(source.subjectId);
|
|
68
|
+
if (lifetime && lifetime.evidence !== source.evidence)
|
|
69
|
+
return () => false;
|
|
70
|
+
const admissionEpoch = this.admissionEpoch;
|
|
71
|
+
return () => {
|
|
72
|
+
if (!lifetime) {
|
|
73
|
+
if (this.admissionEpoch !== admissionEpoch || blocked())
|
|
74
|
+
return false;
|
|
75
|
+
const qualified = this.activeLifetimes.get(source.subjectId);
|
|
76
|
+
if (!qualified)
|
|
77
|
+
return true;
|
|
78
|
+
if (qualified.evidence !== source.evidence)
|
|
79
|
+
return false;
|
|
80
|
+
lifetime = qualified;
|
|
81
|
+
}
|
|
82
|
+
return this.lifetimeCurrent(lifetime);
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
validateInManager: (manager, source, purpose, provider) => this.validateSource(manager, source, purpose, provider),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
onModuleInit() {
|
|
89
|
+
if (process.env.FB_CLI === 'on')
|
|
90
|
+
return;
|
|
91
|
+
if (this.destroyed || this.registration)
|
|
92
|
+
throw new Error('Activity climate participant unavailable');
|
|
93
|
+
this.registration =
|
|
94
|
+
this.registry.registerProducerOwned(exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, this.producer) ?? undefined;
|
|
95
|
+
if (!this.registration)
|
|
96
|
+
throw new Error('Activity climate producer already registered');
|
|
97
|
+
this.removeLifecycle = this.lifecycle.register({
|
|
98
|
+
reconcile: async () => { },
|
|
99
|
+
beforeAdmission: async (id) => {
|
|
100
|
+
const release = this.blockAdmission(id, id);
|
|
101
|
+
try {
|
|
102
|
+
const finish = await this.capturePredecessors(id);
|
|
103
|
+
return async (outcome) => {
|
|
104
|
+
await release(outcome ?? 'unknown', finish);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
catch (cause) {
|
|
108
|
+
await release('unknown');
|
|
109
|
+
throw cause;
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
beforeMutation: (id, kind, manager) => this.retireInManager(manager, id, undefined, kind === 'delete'),
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
onModuleDestroy() {
|
|
116
|
+
this.destroyed = true;
|
|
117
|
+
this.removeLifecycle?.();
|
|
118
|
+
this.removeLifecycle = undefined;
|
|
119
|
+
this.registration?.dispose();
|
|
120
|
+
this.registration = undefined;
|
|
121
|
+
this.epochs.clear();
|
|
122
|
+
this.activeLifetimes.clear();
|
|
123
|
+
this.mutations.clear();
|
|
124
|
+
this.completionCohorts.clear();
|
|
125
|
+
}
|
|
126
|
+
async readEvidence(manager, spaceId, activationId, installed, restoring = false) {
|
|
127
|
+
if (manager === this.database.manager)
|
|
128
|
+
return this.database.transaction((original) => this.readEvidence(original, spaceId, activationId, installed, restoring));
|
|
129
|
+
if (!manager.queryRunner?.isTransactionActive || manager.connection !== this.database)
|
|
130
|
+
throw new Error('Original activity read manager unavailable');
|
|
131
|
+
const space = await manager.findOneBy(space_entity_1.SpaceEntity, { id: spaceId });
|
|
132
|
+
if (!space || ![spaces_constants_1.SpaceType.ROOM, spaces_constants_1.SpaceType.ZONE].includes(space.type))
|
|
133
|
+
return null;
|
|
134
|
+
const state = await manager.findOneBy(space_activity_state_entity_1.SpaceActivityStateEntity, { spaceId, activationId });
|
|
135
|
+
if (!state?.selectedActivityMode)
|
|
136
|
+
return null;
|
|
137
|
+
const activating = !restoring && state.activityStatus === space_activity_constants_1.ActivityActivationStatus.ACTIVATING;
|
|
138
|
+
const completed = installed &&
|
|
139
|
+
[space_activity_constants_1.ActivityActivationStatus.ACTIVE, space_activity_constants_1.ActivityActivationStatus.PARTIAL].includes(state.activityStatus) &&
|
|
140
|
+
state.activityResults?.some((result) => result.domain === space_activity_constants_1.ActivityDomain.CLIMATE && result.status === space_activity_constants_1.ActivityDomainStatus.SUCCEEDED);
|
|
141
|
+
if (!activating && !completed)
|
|
142
|
+
return null;
|
|
143
|
+
const config = await manager.findOneBy(space_activity_config_entity_1.SpaceActivityConfigEntity, {
|
|
144
|
+
spaceId,
|
|
145
|
+
activityMode: state.selectedActivityMode,
|
|
146
|
+
activityRevision: state.selectedActivityRevision,
|
|
147
|
+
activityEnabled: true,
|
|
148
|
+
});
|
|
149
|
+
if (!config?.activityConfiguration.climate.enabled)
|
|
150
|
+
return null;
|
|
151
|
+
const rows = await manager.query('SELECT "activityConfiguration" FROM "spaces_module_space_roles" WHERE "id"=? AND "type"=\'activity_config\'', [config.id]);
|
|
152
|
+
if (rows.length !== 1 || typeof rows[0].activityConfiguration !== 'string')
|
|
153
|
+
return null;
|
|
154
|
+
return {
|
|
155
|
+
spaceId,
|
|
156
|
+
spaceType: space.type,
|
|
157
|
+
activationId,
|
|
158
|
+
configId: config.id,
|
|
159
|
+
configurationRevision: config.activityRevision,
|
|
160
|
+
mode: config.activityMode,
|
|
161
|
+
configuration: rows[0].activityConfiguration,
|
|
162
|
+
targets: this.intents
|
|
163
|
+
? (await this.intents.planAutomationTargets(spaceId, manager))
|
|
164
|
+
.map(({ device, role }) => ({ id: device.id, role }))
|
|
165
|
+
.sort((a, b) => a.id.localeCompare(b.id))
|
|
166
|
+
: [],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
async validateSource(manager, source, purpose, restoredProvider) {
|
|
170
|
+
if (this.destroyed ||
|
|
171
|
+
source.producerKey !== exports.SPACE_ACTIVITY_CLIMATE_PRODUCER ||
|
|
172
|
+
purpose === 'retire' ||
|
|
173
|
+
(purpose === 'restore' && source.state !== 'FINALIZED_LIVE'))
|
|
174
|
+
return null;
|
|
175
|
+
if (purpose === 'restore' && (!restoredProvider || !restoredProvider.isCurrent()))
|
|
176
|
+
return null;
|
|
177
|
+
const originalProvider = purpose === 'restore' ? this.provider(restoredProvider) : undefined;
|
|
178
|
+
let expected;
|
|
179
|
+
try {
|
|
180
|
+
expected = JSON.parse(source.evidence);
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
if (!expected || expected.spaceId !== source.subjectId || typeof expected.activationId !== 'string')
|
|
186
|
+
return null;
|
|
187
|
+
const actual = await this.readEvidence(manager, source.subjectId, expected.activationId, source.state === 'FINALIZED_LIVE', purpose === 'restore');
|
|
188
|
+
if (!actual || (0, climate_automation_ledger_utils_1.canonical)(actual) !== source.evidence || (originalProvider && !originalProvider.isCurrent()))
|
|
189
|
+
return null;
|
|
190
|
+
this.qualifyLifetime(actual);
|
|
191
|
+
return actual;
|
|
192
|
+
}
|
|
193
|
+
lifetimeCurrent(lifetime) {
|
|
194
|
+
return (!this.destroyed &&
|
|
195
|
+
this.activeLifetimes.get(lifetime.subjectId) === lifetime &&
|
|
196
|
+
this.epochs.get(lifetime.subjectId) === lifetime.subjectEpoch &&
|
|
197
|
+
this.epochs.get(lifetime.configurationKey) === lifetime.configurationEpoch &&
|
|
198
|
+
!this.mutations.has(lifetime.subjectId) &&
|
|
199
|
+
!this.mutations.has(lifetime.configurationKey) &&
|
|
200
|
+
!this.mutations.has(lifetime.activationKey));
|
|
201
|
+
}
|
|
202
|
+
qualifyLifetime(evidence) {
|
|
203
|
+
const configurationKey = `${evidence.spaceId}/${evidence.configId}`;
|
|
204
|
+
const activationKey = `${evidence.spaceId}/activation/${evidence.activationId}`;
|
|
205
|
+
if (this.destroyed ||
|
|
206
|
+
this.mutations.has(evidence.spaceId) ||
|
|
207
|
+
this.mutations.has(configurationKey) ||
|
|
208
|
+
this.mutations.has(activationKey))
|
|
209
|
+
throw new SupersededCompletion();
|
|
210
|
+
const value = (0, climate_automation_ledger_utils_1.canonical)(evidence);
|
|
211
|
+
const existing = this.activeLifetimes.get(evidence.spaceId);
|
|
212
|
+
if (existing?.evidence === value && this.lifetimeCurrent(existing))
|
|
213
|
+
return existing;
|
|
214
|
+
const lifetime = Object.freeze({
|
|
215
|
+
subjectId: evidence.spaceId,
|
|
216
|
+
configurationKey,
|
|
217
|
+
activationKey,
|
|
218
|
+
evidence: value,
|
|
219
|
+
subjectEpoch: this.captureEpoch(evidence.spaceId),
|
|
220
|
+
configurationEpoch: this.captureEpoch(configurationKey),
|
|
221
|
+
});
|
|
222
|
+
this.activeLifetimes.set(evidence.spaceId, lifetime);
|
|
223
|
+
return lifetime;
|
|
224
|
+
}
|
|
225
|
+
captureEpoch(key) {
|
|
226
|
+
let epoch = this.epochs.get(key);
|
|
227
|
+
if (!epoch) {
|
|
228
|
+
epoch = {};
|
|
229
|
+
this.epochs.set(key, epoch);
|
|
230
|
+
}
|
|
231
|
+
return epoch;
|
|
232
|
+
}
|
|
233
|
+
blockAdmission(key, subject) {
|
|
234
|
+
this.admissionEpoch = {};
|
|
235
|
+
const lifetime = this.activeLifetimes.get(subject);
|
|
236
|
+
if (lifetime && (key === subject || key === lifetime.configurationKey || key === lifetime.activationKey))
|
|
237
|
+
this.activeLifetimes.delete(subject);
|
|
238
|
+
this.epochs.set(key, {});
|
|
239
|
+
const token = {};
|
|
240
|
+
const owners = this.mutations.get(key) ?? new Set();
|
|
241
|
+
owners.add(token);
|
|
242
|
+
this.mutations.set(key, owners);
|
|
243
|
+
const cohort = this.completionCohorts.get(subject) ?? {
|
|
244
|
+
owners: new Set(),
|
|
245
|
+
results: [],
|
|
246
|
+
};
|
|
247
|
+
cohort.owners.add(token);
|
|
248
|
+
this.completionCohorts.set(subject, cohort);
|
|
249
|
+
let consumed = false;
|
|
250
|
+
return async (outcome, finish) => {
|
|
251
|
+
if (consumed)
|
|
252
|
+
return;
|
|
253
|
+
consumed = true;
|
|
254
|
+
owners.delete(token);
|
|
255
|
+
if (!owners.size && this.mutations.get(key) === owners) {
|
|
256
|
+
this.mutations.delete(key);
|
|
257
|
+
this.epochs.delete(key);
|
|
258
|
+
}
|
|
259
|
+
cohort.results.push({ outcome, finish });
|
|
260
|
+
cohort.owners.delete(token);
|
|
261
|
+
if (cohort.owners.size)
|
|
262
|
+
return;
|
|
263
|
+
if (this.completionCohorts.get(subject) === cohort)
|
|
264
|
+
this.completionCohorts.delete(subject);
|
|
265
|
+
if (!this.activeLifetimes.has(subject))
|
|
266
|
+
for (const key of this.epochs.keys())
|
|
267
|
+
if ((key === subject || key.startsWith(subject + '/')) && !this.mutations.has(key))
|
|
268
|
+
this.epochs.delete(key);
|
|
269
|
+
const eligible = !this.destroyed &&
|
|
270
|
+
cohort.results.every(({ outcome }) => outcome === 'rolled_back' || outcome === 'not_started');
|
|
271
|
+
const results = await Promise.allSettled(cohort.results.map(({ outcome, finish }) => Promise.resolve().then(() => finish?.(eligible ? outcome : 'unknown'))));
|
|
272
|
+
const failure = results.find((result) => result.status === 'rejected');
|
|
273
|
+
if (failure?.status === 'rejected')
|
|
274
|
+
throw failure.reason;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
async capturePredecessors(spaceId, activationId, configId) {
|
|
278
|
+
const source = await this.database.manager.findOneBy(climate_automation_entity_1.ClimateAutomationSourceEntity, {
|
|
279
|
+
producerKey: exports.SPACE_ACTIVITY_CLIMATE_PRODUCER,
|
|
280
|
+
subjectId: spaceId,
|
|
281
|
+
isCurrent: true,
|
|
282
|
+
});
|
|
283
|
+
if (!source)
|
|
284
|
+
return () => Promise.resolve();
|
|
285
|
+
const evidence = JSON.parse(source.evidence);
|
|
286
|
+
if ((activationId !== undefined && evidence.activationId !== activationId) ||
|
|
287
|
+
(configId !== undefined && evidence.configId !== configId))
|
|
288
|
+
return () => Promise.resolve();
|
|
289
|
+
const jobs = [...this.participants.values()].map(({ implementation, methods }) => {
|
|
290
|
+
try {
|
|
291
|
+
return methods.beginSourceMutation === undefined || methods.beginSourceMutation === null
|
|
292
|
+
? undefined
|
|
293
|
+
: (0, creation_capture_1.invokeCreation)(methods.beginSourceMutation, implementation, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, spaceId, source.generationId);
|
|
294
|
+
}
|
|
295
|
+
catch (cause) {
|
|
296
|
+
return Promise.reject(cause);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
const results = await Promise.allSettled(jobs);
|
|
300
|
+
const failure = results.find((result) => result.status === 'rejected');
|
|
301
|
+
let completed = false;
|
|
302
|
+
const finish = async (outcome) => {
|
|
303
|
+
if (completed)
|
|
304
|
+
return;
|
|
305
|
+
completed = true;
|
|
306
|
+
for (const result of results)
|
|
307
|
+
if (result.status === 'fulfilled' && result.value) {
|
|
308
|
+
try {
|
|
309
|
+
await result.value.finish(outcome);
|
|
310
|
+
}
|
|
311
|
+
catch {
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
if (failure?.status === 'rejected') {
|
|
316
|
+
await finish('unknown');
|
|
317
|
+
throw failure.reason;
|
|
318
|
+
}
|
|
319
|
+
return finish;
|
|
320
|
+
}
|
|
321
|
+
virtual(target) {
|
|
322
|
+
return target.device.type === 'virtual' && Reflect.get(target.device, 'mode') === 'climate_controller';
|
|
323
|
+
}
|
|
324
|
+
provider(original) {
|
|
325
|
+
const provider = original ?? this.registry.captureProvider('virtual-thermostat:v1');
|
|
326
|
+
if (!provider?.isCurrent() ||
|
|
327
|
+
!provider.implementation.withAutomationWrite ||
|
|
328
|
+
!provider.implementation.resolveActionInManager ||
|
|
329
|
+
!provider.implementation.settleInstalled)
|
|
330
|
+
throw new Error('Trusted thermostat provider unavailable');
|
|
331
|
+
let participant = this.participants.get(provider.implementation);
|
|
332
|
+
if (!participant) {
|
|
333
|
+
const capture = (0, creation_capture_1.captureCreation)(provider.implementation, [
|
|
334
|
+
'withAutomationWrite',
|
|
335
|
+
'resolveActionInManager',
|
|
336
|
+
'settleInstalled',
|
|
337
|
+
'ownedSettlementVersion',
|
|
338
|
+
'beginSourceMutation',
|
|
339
|
+
'retireControllerInManager',
|
|
340
|
+
]);
|
|
341
|
+
participant = {
|
|
342
|
+
implementation: provider.implementation,
|
|
343
|
+
methods: capture.values,
|
|
344
|
+
isCurrent: () => provider.isCurrent() && capture.current(),
|
|
345
|
+
};
|
|
346
|
+
this.participants.set(provider.implementation, participant);
|
|
347
|
+
}
|
|
348
|
+
if (!participant.isCurrent())
|
|
349
|
+
throw new Error('Original thermostat participant changed');
|
|
350
|
+
return participant;
|
|
351
|
+
}
|
|
352
|
+
async preview(spaceId, selection) {
|
|
353
|
+
if (!this.intents)
|
|
354
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'climate_intent_unavailable');
|
|
355
|
+
const targets = await this.database.transaction((manager) => this.intents.planAutomationTargets(spaceId, manager));
|
|
356
|
+
if (!targets.length)
|
|
357
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.NO_TARGETS, 'no_compatible_climate_targets');
|
|
358
|
+
const virtual = targets.filter((target) => this.virtual(target));
|
|
359
|
+
let provider = null;
|
|
360
|
+
if (virtual.length) {
|
|
361
|
+
try {
|
|
362
|
+
provider = this.provider();
|
|
363
|
+
}
|
|
364
|
+
catch {
|
|
365
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'thermostat_provider_unavailable');
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
for (const target of virtual)
|
|
369
|
+
if (!(await (0, creation_capture_1.invokeCreation)(provider.methods.resolveActionInManager, provider.implementation, this.database.manager, target.device.id, selection)))
|
|
370
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'thermostat_selection_or_opt_in_unavailable');
|
|
371
|
+
if (selection.thermostat_preset && virtual.length !== targets.length)
|
|
372
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'physical_target_preset_unsupported');
|
|
373
|
+
if (provider && !provider.isCurrent())
|
|
374
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'thermostat_provider_expired');
|
|
375
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.READY, 'explicit_operator_climate_selection');
|
|
376
|
+
}
|
|
377
|
+
async apply(identity, selection) {
|
|
378
|
+
const attempt = {};
|
|
379
|
+
const completion = this.completions.get(identity);
|
|
380
|
+
if (completion && !completion.attempt)
|
|
381
|
+
completion.attempt = attempt;
|
|
382
|
+
if (!this.intents)
|
|
383
|
+
throw new Error('Climate intent unavailable');
|
|
384
|
+
const initial = await this.database.transaction(async (manager) => ({
|
|
385
|
+
evidence: await this.readEvidence(manager, identity.spaceId, identity.activationId, false),
|
|
386
|
+
targets: await this.intents.planAutomationTargets(identity.spaceId, manager),
|
|
387
|
+
}));
|
|
388
|
+
if (!initial.evidence ||
|
|
389
|
+
initial.evidence.configurationRevision !== identity.configurationRevision ||
|
|
390
|
+
(0, climate_automation_ledger_utils_1.canonical)(JSON.parse(initial.evidence.configuration).climate) !==
|
|
391
|
+
(0, climate_automation_ledger_utils_1.canonical)(selection))
|
|
392
|
+
throw new Error('Activity source changed');
|
|
393
|
+
const lifetime = this.qualifyLifetime(initial.evidence);
|
|
394
|
+
const targets = initial.targets;
|
|
395
|
+
const physicalIds = new Set(targets.filter((target) => !this.virtual(target)).map((target) => target.device.id));
|
|
396
|
+
if (selection.thermostat_preset && physicalIds.size)
|
|
397
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'physical_target_preset_unsupported');
|
|
398
|
+
if (physicalIds.size) {
|
|
399
|
+
const physical = (await this.intents.planAutomationTargets(identity.spaceId)).filter((target) => physicalIds.has(target.device.id));
|
|
400
|
+
if (physical.length !== physicalIds.size)
|
|
401
|
+
throw new Error('Activity physical target plan changed');
|
|
402
|
+
for (const target of physical)
|
|
403
|
+
targets[targets.findIndex((candidate) => candidate.device.id === target.device.id)] = target;
|
|
404
|
+
}
|
|
405
|
+
const virtual = targets.filter((target) => this.virtual(target));
|
|
406
|
+
if (!targets.length)
|
|
407
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.NO_TARGETS, 'no_compatible_climate_targets');
|
|
408
|
+
const provider = virtual.length ? this.provider() : null;
|
|
409
|
+
if (provider && provider.methods.ownedSettlementVersion !== 1)
|
|
410
|
+
throw new Error('Owned thermostat settlement unavailable');
|
|
411
|
+
attempt.provider = provider;
|
|
412
|
+
const originalProducer = this.registry.captureProducer(exports.SPACE_ACTIVITY_CLIMATE_PRODUCER);
|
|
413
|
+
if (originalProducer?.implementation !== this.producer)
|
|
414
|
+
throw new Error('Original activity producer unavailable');
|
|
415
|
+
let admitted = true;
|
|
416
|
+
const authorityCurrent = () => originalProducer.isCurrent() && this.lifetimeCurrent(lifetime) && (!provider || provider.isCurrent());
|
|
417
|
+
const current = () => admitted && authorityCurrent();
|
|
418
|
+
const owned = {
|
|
419
|
+
isSettled: () => attempt.completed === true,
|
|
420
|
+
isCurrent: authorityCurrent,
|
|
421
|
+
accept: (receipt) => {
|
|
422
|
+
if (attempt.receipt)
|
|
423
|
+
throw new Error('Original settlement already captured');
|
|
424
|
+
attempt.receipt = receipt;
|
|
425
|
+
},
|
|
426
|
+
};
|
|
427
|
+
const install = async () => {
|
|
428
|
+
if (!current() || !(await identity.isCurrent()))
|
|
429
|
+
throw new Error('Activity superseded');
|
|
430
|
+
const repeated = await this.database.transaction(async (manager) => {
|
|
431
|
+
const source = await manager.findOneBy(climate_automation_entity_1.ClimateAutomationSourceEntity, {
|
|
432
|
+
producerKey: exports.SPACE_ACTIVITY_CLIMATE_PRODUCER,
|
|
433
|
+
subjectId: identity.spaceId,
|
|
434
|
+
isCurrent: true,
|
|
435
|
+
});
|
|
436
|
+
if (!source || JSON.parse(source.evidence).activationId !== identity.activationId)
|
|
437
|
+
return null;
|
|
438
|
+
const evidence = await this.readEvidence(manager, identity.spaceId, identity.activationId, true);
|
|
439
|
+
if (source.state !== 'FINALIZED_LIVE' || (0, climate_automation_ledger_utils_1.canonical)(evidence) !== source.evidence)
|
|
440
|
+
throw new Error('Original activity installation cannot be replayed');
|
|
441
|
+
const slots = await manager.findBy(climate_automation_entity_1.ClimateAutomationSlotEntity, {
|
|
442
|
+
generationId: source.generationId,
|
|
443
|
+
ownerId: source.ownerId,
|
|
444
|
+
});
|
|
445
|
+
if (slots.some((slot) => slot.state !== 'LIVE' || slot.manualHold) ||
|
|
446
|
+
(0, climate_automation_ledger_utils_1.canonical)(slots.map((slot) => slot.controllerId).sort()) !==
|
|
447
|
+
(0, climate_automation_ledger_utils_1.canonical)(virtual.map((target) => target.device.id).sort()))
|
|
448
|
+
throw new Error('Original activity candidate retired or changed');
|
|
449
|
+
attempt.source = { ...source };
|
|
450
|
+
return slots.map((slot) => ({ ...slot }));
|
|
451
|
+
});
|
|
452
|
+
if (repeated) {
|
|
453
|
+
attempt.slots = repeated;
|
|
454
|
+
if (!(await (0, creation_capture_1.invokeCreation)(provider.methods.settleInstalled, provider.implementation, repeated, originalProducer, owned)) ||
|
|
455
|
+
!current() ||
|
|
456
|
+
!attempt.receipt)
|
|
457
|
+
throw new Error('Original installation is no longer eligible');
|
|
458
|
+
return repeated.length;
|
|
459
|
+
}
|
|
460
|
+
let installed = [];
|
|
461
|
+
await (0, creation_capture_1.invokeCreation)(provider.methods.withAutomationWrite, provider.implementation, async (manager) => {
|
|
462
|
+
const evidence = await this.readEvidence(manager, identity.spaceId, identity.activationId, false);
|
|
463
|
+
if (!current() ||
|
|
464
|
+
!evidence ||
|
|
465
|
+
evidence.configurationRevision !== identity.configurationRevision ||
|
|
466
|
+
(0, climate_automation_ledger_utils_1.canonical)(JSON.parse(evidence.configuration).climate) !==
|
|
467
|
+
(0, climate_automation_ledger_utils_1.canonical)(selection))
|
|
468
|
+
throw new Error('Activity source changed');
|
|
469
|
+
const actualTargets = await this.intents.planAutomationTargets(identity.spaceId, manager);
|
|
470
|
+
if ((0, climate_automation_ledger_utils_1.canonical)(actualTargets.map((target) => target.device.id).sort()) !==
|
|
471
|
+
(0, climate_automation_ledger_utils_1.canonical)(targets.map((target) => target.device.id).sort()))
|
|
472
|
+
throw new Error('Activity target plan changed');
|
|
473
|
+
const scope = this.ledger.currentScope(manager);
|
|
474
|
+
const prior = await this.ledger.readSource(manager, scope, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, identity.spaceId);
|
|
475
|
+
if (prior.facts && ['PENDING', 'FINALIZED_LIVE'].includes(prior.facts.state))
|
|
476
|
+
await this.retireInManager(manager, identity.spaceId);
|
|
477
|
+
const expected = await this.ledger.readSource(manager, scope, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, identity.spaceId);
|
|
478
|
+
const source = await this.ledger.stageSource(manager, scope, {
|
|
479
|
+
producerKey: exports.SPACE_ACTIVITY_CLIMATE_PRODUCER,
|
|
480
|
+
subjectId: identity.spaceId,
|
|
481
|
+
expected,
|
|
482
|
+
evidence: evidence,
|
|
483
|
+
});
|
|
484
|
+
const candidates = [];
|
|
485
|
+
const bundleId = (0, node_crypto_1.randomUUID)();
|
|
486
|
+
for (const target of virtual.sort((a, b) => a.device.id.localeCompare(b.device.id))) {
|
|
487
|
+
const action = await (0, creation_capture_1.invokeCreation)(provider.methods.resolveActionInManager, provider.implementation, manager, target.device.id, selection);
|
|
488
|
+
if (action === null)
|
|
489
|
+
throw new UnsupportedThermostatSelection('Unsupported thermostat selection');
|
|
490
|
+
let slot = await this.ledger.readSlot(manager, scope, target.device.id, true, 'virtual-thermostat:v1');
|
|
491
|
+
if (!slot.facts)
|
|
492
|
+
slot = await this.ledger.initializeSlot(manager, scope, { expected: slot, releaseManualHold: true });
|
|
493
|
+
candidates.push(await this.ledger.stageSlot(manager, scope, {
|
|
494
|
+
expectedSlot: slot,
|
|
495
|
+
expectedSource: source,
|
|
496
|
+
selection: action,
|
|
497
|
+
bundleId,
|
|
498
|
+
}));
|
|
499
|
+
}
|
|
500
|
+
installed = (await this.ledger.installBundle(manager, scope, source, candidates)).map((slot) => slot.facts);
|
|
501
|
+
attempt.source = (await this.ledger.readSource(manager, scope, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, identity.spaceId)).facts;
|
|
502
|
+
(0, sqlite_data_source_1.registerSqliteCommitGuard)(manager, current);
|
|
503
|
+
});
|
|
504
|
+
attempt.slots = installed;
|
|
505
|
+
if (!(await (0, creation_capture_1.invokeCreation)(provider.methods.settleInstalled, provider.implementation, installed, originalProducer, owned)) ||
|
|
506
|
+
!current() ||
|
|
507
|
+
!attempt.receipt)
|
|
508
|
+
throw new Error('Committed climate installation remains inhibited');
|
|
509
|
+
return installed.length;
|
|
510
|
+
};
|
|
511
|
+
const intent = selection.setpoint_delta !== undefined
|
|
512
|
+
? {
|
|
513
|
+
type: spaces_home_control_constants_1.ClimateIntentType.SETPOINT_DELTA,
|
|
514
|
+
delta: spaces_home_control_constants_1.SetpointDelta.SMALL,
|
|
515
|
+
increase: selection.setpoint_delta >= 0,
|
|
516
|
+
}
|
|
517
|
+
: selection.setpoint !== undefined
|
|
518
|
+
? {
|
|
519
|
+
type: spaces_home_control_constants_1.ClimateIntentType.CLIMATE_SET,
|
|
520
|
+
mode: selection.mode,
|
|
521
|
+
...(selection.mode === spaces_home_control_constants_1.ClimateMode.COOL
|
|
522
|
+
? { coolingSetpoint: selection.setpoint }
|
|
523
|
+
: { heatingSetpoint: selection.setpoint }),
|
|
524
|
+
}
|
|
525
|
+
: { type: spaces_home_control_constants_1.ClimateIntentType.SET_MODE, mode: selection.mode };
|
|
526
|
+
try {
|
|
527
|
+
if (!(await identity.isCurrent()))
|
|
528
|
+
throw new Error('Activity superseded');
|
|
529
|
+
const result = await this.intents.executeClimateIntent(identity.spaceId, intent, {
|
|
530
|
+
targets,
|
|
531
|
+
virtualTargetIds: virtual.map((target) => target.device.id),
|
|
532
|
+
installVirtual: provider ? install : undefined,
|
|
533
|
+
isCurrent: current,
|
|
534
|
+
numericDelta: selection.setpoint_delta === undefined ? undefined : Math.abs(selection.setpoint_delta),
|
|
535
|
+
numericDeltaMode: selection.setpoint_delta === undefined
|
|
536
|
+
? undefined
|
|
537
|
+
: selection.mode === spaces_home_control_constants_1.ClimateMode.HEAT
|
|
538
|
+
? spaces_home_control_constants_1.ClimateMode.HEAT
|
|
539
|
+
: selection.mode === spaces_home_control_constants_1.ClimateMode.COOL
|
|
540
|
+
? spaces_home_control_constants_1.ClimateMode.COOL
|
|
541
|
+
: undefined,
|
|
542
|
+
});
|
|
543
|
+
const outcome = (0, activity_result_utils_1.intentDomainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, result);
|
|
544
|
+
if (outcome.status !== space_activity_constants_1.ActivityDomainStatus.SUCCEEDED)
|
|
545
|
+
attempt.receipt?.invalidateOriginal();
|
|
546
|
+
return outcome;
|
|
547
|
+
}
|
|
548
|
+
catch (cause) {
|
|
549
|
+
attempt.failure = { cause };
|
|
550
|
+
attempt.receipt?.invalidateOriginal();
|
|
551
|
+
if (cause instanceof UnsupportedThermostatSelection && current())
|
|
552
|
+
return (0, activity_result_utils_1.domainResult)(space_activity_constants_1.ActivityDomain.CLIMATE, space_activity_constants_1.ActivityDomainStatus.UNSUPPORTED, 'thermostat_selection_or_opt_in_unavailable');
|
|
553
|
+
throw cause;
|
|
554
|
+
}
|
|
555
|
+
finally {
|
|
556
|
+
admitted = false;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
captureCompletion(identity) {
|
|
560
|
+
if (this.completions.has(identity))
|
|
561
|
+
throw new Error('Activity completion already captured');
|
|
562
|
+
const original = {};
|
|
563
|
+
this.completions.set(identity, original);
|
|
564
|
+
return async (results, write) => {
|
|
565
|
+
const attempt = original.attempt;
|
|
566
|
+
if (!attempt?.source)
|
|
567
|
+
return write(this.database.manager);
|
|
568
|
+
const receipt = attempt.receipt, provider = attempt.provider;
|
|
569
|
+
if (!receipt || !provider)
|
|
570
|
+
throw new Error('Original installed completion unavailable');
|
|
571
|
+
const failed = results.find((result) => result.domain === space_activity_constants_1.ActivityDomain.CLIMATE)?.status !== space_activity_constants_1.ActivityDomainStatus.SUCCEEDED;
|
|
572
|
+
const permit = failed ? receipt.beginRetirement() : undefined;
|
|
573
|
+
if (failed ? !permit : !receipt.isCurrent())
|
|
574
|
+
return false;
|
|
575
|
+
const current = () => !this.destroyed && provider.isCurrent() && (permit ? permit.isCurrent() : receipt.isCurrent());
|
|
576
|
+
try {
|
|
577
|
+
await permit?.predecessors;
|
|
578
|
+
return await this.structure.runExclusive(async () => {
|
|
579
|
+
const owner = this.structure.captureExclusiveOwner();
|
|
580
|
+
let native;
|
|
581
|
+
const result = await this.database.transaction(async (manager) => {
|
|
582
|
+
native = (0, sqlite_data_source_1.observeSqliteOuterOutcome)(manager);
|
|
583
|
+
(0, sqlite_data_source_1.registerSqliteCommitGuard)(manager, () => owner() && current());
|
|
584
|
+
await manager.query('UPDATE "spaces_module_space_roles" SET "id"="id" WHERE 0');
|
|
585
|
+
return this.ledger.inAdmittedManager(manager, native, async (scope) => {
|
|
586
|
+
if (!current())
|
|
587
|
+
throw new SupersededCompletion();
|
|
588
|
+
const source = await this.ledger.readSource(manager, scope, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, identity.spaceId);
|
|
589
|
+
if ((0, climate_automation_ledger_utils_1.canonical)(source.facts) !== (0, climate_automation_ledger_utils_1.canonical)(attempt.source))
|
|
590
|
+
throw new SupersededCompletion();
|
|
591
|
+
const slots = [];
|
|
592
|
+
for (const expected of attempt.slots) {
|
|
593
|
+
const slot = await this.ledger.readSlot(manager, scope, expected.controllerId, false);
|
|
594
|
+
if ((0, climate_automation_ledger_utils_1.canonical)(slot.facts) !== (0, climate_automation_ledger_utils_1.canonical)(expected))
|
|
595
|
+
throw new SupersededCompletion();
|
|
596
|
+
slots.push(slot);
|
|
597
|
+
}
|
|
598
|
+
if (failed) {
|
|
599
|
+
await receipt.retireInManager(manager);
|
|
600
|
+
await this.ledger.revokeSource(manager, scope, source, slots);
|
|
601
|
+
}
|
|
602
|
+
if (!(await write(manager)))
|
|
603
|
+
throw new SupersededCompletion();
|
|
604
|
+
return true;
|
|
605
|
+
});
|
|
606
|
+
});
|
|
607
|
+
if (native?.outcome !== 'committed')
|
|
608
|
+
throw new Error('Activity completion acknowledgement unavailable');
|
|
609
|
+
if (!failed && current() && result)
|
|
610
|
+
attempt.completed = true;
|
|
611
|
+
return result;
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
catch (cause) {
|
|
615
|
+
if (cause instanceof SupersededCompletion)
|
|
616
|
+
return false;
|
|
617
|
+
attempt.cleanupFailure = { cause };
|
|
618
|
+
if (attempt.failure)
|
|
619
|
+
throw attempt.failure.cause;
|
|
620
|
+
throw cause;
|
|
621
|
+
}
|
|
622
|
+
finally {
|
|
623
|
+
permit?.finish();
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
withdraw(identity) {
|
|
628
|
+
return this.mutate(identity.spaceId, identity.activationId, async () => { });
|
|
629
|
+
}
|
|
630
|
+
async retireInManager(manager, spaceId, activationId, deleted = false, configId) {
|
|
631
|
+
const scope = this.ledger.currentScope(manager);
|
|
632
|
+
const source = await this.ledger.readSource(manager, scope, exports.SPACE_ACTIVITY_CLIMATE_PRODUCER, spaceId);
|
|
633
|
+
if (!source.facts)
|
|
634
|
+
return;
|
|
635
|
+
if (activationId !== undefined || configId !== undefined) {
|
|
636
|
+
const evidence = JSON.parse(source.facts.evidence);
|
|
637
|
+
if (activationId !== undefined && evidence.activationId !== activationId)
|
|
638
|
+
return;
|
|
639
|
+
if (configId !== undefined && evidence.configId !== configId)
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
const rows = await manager.findBy(climate_automation_entity_1.ClimateAutomationSlotEntity, {
|
|
643
|
+
generationId: source.facts.generationId,
|
|
644
|
+
ownerId: source.facts.ownerId,
|
|
645
|
+
});
|
|
646
|
+
const slots = [];
|
|
647
|
+
for (const row of rows.sort((a, b) => a.controllerId.localeCompare(b.controllerId)))
|
|
648
|
+
if (row.state === 'LIVE' || row.state === 'PROVISIONAL') {
|
|
649
|
+
const slot = await this.ledger.readSlot(manager, scope, row.controllerId, false);
|
|
650
|
+
const captured = this.registry.captureProvider(row.providerKey);
|
|
651
|
+
const original = captured ? this.participants.get(captured.implementation) : undefined;
|
|
652
|
+
if (original?.isCurrent() &&
|
|
653
|
+
original.methods.retireControllerInManager !== undefined &&
|
|
654
|
+
original.methods.retireControllerInManager !== null)
|
|
655
|
+
await (0, creation_capture_1.invokeCreation)(original.methods.retireControllerInManager, original.implementation, manager, slot.facts);
|
|
656
|
+
slots.push(slot);
|
|
657
|
+
}
|
|
658
|
+
await this.ledger.revokeSource(manager, scope, source, slots, deleted);
|
|
659
|
+
}
|
|
660
|
+
async mutate(spaceId, activationId, work, configId, prepareFinalValidation) {
|
|
661
|
+
const release = this.blockAdmission(configId !== undefined
|
|
662
|
+
? `${spaceId}/${configId}`
|
|
663
|
+
: activationId !== undefined
|
|
664
|
+
? `${spaceId}/activation/${activationId}`
|
|
665
|
+
: spaceId, spaceId);
|
|
666
|
+
let native;
|
|
667
|
+
let finish;
|
|
668
|
+
let callbackEntered = false;
|
|
669
|
+
let result;
|
|
670
|
+
let failure;
|
|
671
|
+
try {
|
|
672
|
+
const producer = this.registry.captureProducer(exports.SPACE_ACTIVITY_CLIMATE_PRODUCER);
|
|
673
|
+
if (this.destroyed || producer?.implementation !== this.producer)
|
|
674
|
+
throw new Error('Activity climate producer unavailable');
|
|
675
|
+
finish = await this.capturePredecessors(spaceId, activationId, configId);
|
|
676
|
+
result = await this.structure.runExclusive(async () => {
|
|
677
|
+
const owner = this.structure.captureExclusiveOwner();
|
|
678
|
+
return this.database.transaction(async (manager) => {
|
|
679
|
+
callbackEntered = true;
|
|
680
|
+
const receipt = (native = (0, sqlite_data_source_1.observeSqliteOuterOutcome)(manager));
|
|
681
|
+
(0, sqlite_data_source_1.registerSqliteCommitGuard)(manager, () => owner() && producer.isCurrent());
|
|
682
|
+
const validate = prepareFinalValidation?.(manager);
|
|
683
|
+
await manager.query('UPDATE "spaces_module_space_roles" SET "id"="id" WHERE 0');
|
|
684
|
+
const value = await this.ledger.inAdmittedManager(manager, receipt, async () => {
|
|
685
|
+
await this.retireInManager(manager, spaceId, activationId, false, configId);
|
|
686
|
+
return work(manager);
|
|
687
|
+
});
|
|
688
|
+
await validate?.();
|
|
689
|
+
return value;
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
catch (cause) {
|
|
694
|
+
failure = { cause };
|
|
695
|
+
}
|
|
696
|
+
try {
|
|
697
|
+
await release(native?.outcome === 'rolled_back' || native?.outcome === 'committed'
|
|
698
|
+
? native.outcome
|
|
699
|
+
: callbackEntered
|
|
700
|
+
? 'unknown'
|
|
701
|
+
: 'not_started', finish);
|
|
702
|
+
}
|
|
703
|
+
catch (cause) {
|
|
704
|
+
failure ??= { cause };
|
|
705
|
+
}
|
|
706
|
+
if (failure)
|
|
707
|
+
throw failure.cause;
|
|
708
|
+
return result;
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
exports.SpaceClimateAutomationService = SpaceClimateAutomationService;
|
|
712
|
+
exports.SpaceClimateAutomationService = SpaceClimateAutomationService = __decorate([
|
|
713
|
+
(0, common_1.Injectable)(),
|
|
714
|
+
__param(5, (0, common_1.Optional)()),
|
|
715
|
+
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
716
|
+
climate_automation_registry_service_1.ClimateAutomationRegistryService,
|
|
717
|
+
climate_automation_ledger_service_1.ClimateAutomationLedgerService,
|
|
718
|
+
device_structure_lock_service_1.DeviceStructureLockService,
|
|
719
|
+
space_lifecycle_registry_service_1.SpaceLifecycleRegistryService,
|
|
720
|
+
climate_intent_service_1.ClimateIntentService])
|
|
721
|
+
], SpaceClimateAutomationService);
|
|
722
|
+
//# sourceMappingURL=space-climate-automation.service.js.map
|