@kosdev-code/kos-ui-sdk 2.0.44 → 2.0.45
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/common/events/eventBus.d.ts +30 -0
- package/common/events/eventBus.d.ts.map +1 -1
- package/common/events/eventBus.functional.d.ts +48 -0
- package/common/events/eventBus.functional.d.ts.map +1 -1
- package/common/events/eventBus.state.d.ts +33 -0
- package/common/events/eventBus.state.d.ts.map +1 -1
- package/core/constants/model-constants.d.ts +9 -0
- package/core/constants/model-constants.d.ts.map +1 -0
- package/core/core/companion-instantiator.d.ts +71 -0
- package/core/core/companion-instantiator.d.ts.map +1 -0
- package/core/core/decorators/fsm-injection-utils.d.ts +16 -0
- package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -0
- package/core/core/decorators/index.d.ts +11 -0
- package/core/core/decorators/index.d.ts.map +1 -1
- package/core/core/decorators/kos-child.d.ts +2 -0
- package/core/core/decorators/kos-child.d.ts.map +1 -1
- package/core/core/decorators/kos-companion.d.ts +158 -8
- package/core/core/decorators/kos-companion.d.ts.map +1 -1
- package/core/core/decorators/kos-container-aware.d.ts +619 -0
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-context.d.ts +6 -0
- package/core/core/decorators/kos-context.d.ts.map +1 -1
- package/core/core/decorators/kos-execution-context.d.ts +63 -0
- package/core/core/decorators/kos-execution-context.d.ts.map +1 -0
- package/core/core/decorators/kos-future-aware.d.ts +162 -0
- package/core/core/decorators/kos-future-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-http-decorators.d.ts +15 -0
- package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
- package/core/core/decorators/kos-log.d.ts +4 -0
- package/core/core/decorators/kos-log.d.ts.map +1 -1
- package/core/core/decorators/kos-logger-aware.d.ts +105 -0
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-model-effect.d.ts +9 -0
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
- package/core/core/decorators/kos-multiple-future-aware.d.ts +217 -0
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-parent.d.ts +4 -0
- package/core/core/decorators/kos-parent.d.ts.map +1 -1
- package/core/core/decorators/kos-reference.d.ts +9 -0
- package/core/core/decorators/kos-reference.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request-helpers.d.ts +60 -0
- package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -0
- package/core/core/decorators/kos-service-request.d.ts +498 -0
- package/core/core/decorators/kos-service-request.d.ts.map +1 -0
- package/core/core/decorators/kos-state-machine.d.ts +534 -0
- package/core/core/decorators/kos-state-machine.d.ts.map +1 -0
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts +17 -1
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
- package/core/core/decorators/kos-trouble-aware.d.ts +77 -0
- package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -0
- package/core/core/decorators/kos-view-model.d.ts +176 -0
- package/core/core/decorators/kos-view-model.d.ts.map +1 -0
- package/core/core/decorators/kosDependency.d.ts +4 -1
- package/core/core/decorators/kosDependency.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts +17 -2
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/decorators/kosSubscribe.d.ts +9 -0
- package/core/core/decorators/kosSubscribe.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts +87 -5
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/decorators/propKeys.d.ts +14 -0
- package/core/core/decorators/propKeys.d.ts.map +1 -1
- package/core/core/decorators/resolve-parameters.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts +64 -4
- package/core/core/extension/extension-manager.d.ts.map +1 -1
- package/core/core/extension/initialize-extension.d.ts +24 -0
- package/core/core/extension/initialize-extension.d.ts.map +1 -1
- package/core/core/extension/plugin-extension-manager.d.ts +11 -0
- package/core/core/extension/plugin-extension-manager.d.ts.map +1 -1
- package/core/core/kos-container-model.d.ts +188 -0
- package/core/core/kos-container-model.d.ts.map +1 -1
- package/core/core/kos-data-container.d.ts +93 -1
- package/core/core/kos-data-container.d.ts.map +1 -1
- package/core/core/kos-registration.d.ts.map +1 -1
- package/core/core/kos-singleton-registration.d.ts.map +1 -1
- package/core/core/kosCore.d.ts.map +1 -1
- package/core/core/kosModel.d.ts +55 -2
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/kosModelManager.d.ts +11 -1
- package/core/core/kosModelManager.d.ts.map +1 -1
- package/core/core/log/log.d.ts.map +1 -1
- package/core/core/model/apply-kos-dev-tool-support.d.ts.map +1 -1
- package/core/core/model/kos-fsm-manager.d.ts +1 -4
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
- package/core/core/model/kos-model-component-factory.d.ts +4 -0
- package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
- package/core/core/model/kos-offline-queue.d.ts +78 -1
- package/core/core/model/kos-offline-queue.d.ts.map +1 -1
- package/core/core/model/kos-online-lifecycle-manager.d.ts.map +1 -1
- package/core/core/model/kos-service-request-manager.d.ts +102 -0
- package/core/core/model/kos-service-request-manager.d.ts.map +1 -0
- package/core/core/model/kos-subscription-manager.d.ts +20 -0
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
- package/core/core/model/model-introspection-utils.d.ts +1 -0
- package/core/core/model/model-introspection-utils.d.ts.map +1 -1
- package/core/core/model/service-response-store.d.ts +164 -0
- package/core/core/model/service-response-store.d.ts.map +1 -0
- package/core/core/model-instantiator.d.ts +19 -0
- package/core/core/model-instantiator.d.ts.map +1 -1
- package/core/core/registration/index.d.ts +1 -0
- package/core/core/registration/index.d.ts.map +1 -1
- package/core/core/services/browser-router.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +2 -1
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/core/types/registration.d.ts +7 -0
- package/core/core/types/registration.d.ts.map +1 -1
- package/core/index.d.ts +2 -1
- package/core/index.d.ts.map +1 -1
- package/core/types/index.d.ts +1 -0
- package/core/types/index.d.ts.map +1 -1
- package/core/types/kos-dependency.d.ts +48 -1
- package/core/types/kos-dependency.d.ts.map +1 -1
- package/core/types/service-response-store.d.ts +162 -0
- package/core/types/service-response-store.d.ts.map +1 -0
- package/core/types/utils/kos-fetch.d.ts +121 -0
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/ancestor-path-visitor.d.ts +60 -0
- package/core/util/ancestor-path-visitor.d.ts.map +1 -0
- package/core/util/api-request-id.d.ts +4 -0
- package/core/util/api-request-id.d.ts.map +1 -1
- package/core/util/apply-mixins.d.ts +4 -0
- package/core/util/apply-mixins.d.ts.map +1 -1
- package/core/util/array-utils.d.ts +4 -0
- package/core/util/array-utils.d.ts.map +1 -1
- package/core/util/container-utils.d.ts +264 -11
- package/core/util/container-utils.d.ts.map +1 -1
- package/core/util/date-utils.d.ts +29 -0
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/debounce.d.ts +3 -0
- package/core/util/debounce.d.ts.map +1 -1
- package/core/util/error-logger.d.ts +16 -0
- package/core/util/error-logger.d.ts.map +1 -0
- package/core/util/feature-flags.d.ts +19 -0
- package/core/util/feature-flags.d.ts.map +1 -1
- package/core/util/get-query-params.d.ts +4 -0
- package/core/util/get-query-params.d.ts.map +1 -1
- package/core/util/hsl-to-hex.d.ts +16 -0
- package/core/util/hsl-to-hex.d.ts.map +1 -1
- package/core/util/index.d.ts +3 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts +37 -0
- package/core/util/kos-config-init.d.ts.map +1 -1
- package/core/util/kos-data-mapper-utils.d.ts +9 -0
- package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts +12 -0
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-message-utils.d.ts +88 -0
- package/core/util/kos-message-utils.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +46 -0
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-model-visitor.d.ts +2 -0
- package/core/util/kos-model-visitor.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts +43 -3
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/log-utils.d.ts +12 -0
- package/core/util/log-utils.d.ts.map +1 -1
- package/core/util/middleware.d.ts +15 -0
- package/core/util/middleware.d.ts.map +1 -1
- package/core/util/model-attribute-utils.d.ts +7 -0
- package/core/util/model-attribute-utils.d.ts.map +1 -1
- package/core/util/model-error-utils.d.ts +61 -0
- package/core/util/model-error-utils.d.ts.map +1 -0
- package/core/util/model-factory.d.ts +4 -0
- package/core/util/model-factory.d.ts.map +1 -1
- package/core/util/model-registration-utils.d.ts +8 -0
- package/core/util/model-registration-utils.d.ts.map +1 -1
- package/core/util/model-transition-utils.d.ts +41 -0
- package/core/util/model-transition-utils.d.ts.map +1 -0
- package/core/util/model-type-guards.d.ts +26 -0
- package/core/util/model-type-guards.d.ts.map +1 -0
- package/core/util/model-utils.d.ts +40 -29
- package/core/util/model-utils.d.ts.map +1 -1
- package/core/util/observable-proxy-map.d.ts +11 -0
- package/core/util/observable-proxy-map.d.ts.map +1 -1
- package/core/util/paired-client-heartbeat.d.ts +2 -0
- package/core/util/paired-client-heartbeat.d.ts.map +1 -1
- package/core/util/pipe.d.ts +4 -0
- package/core/util/pipe.d.ts.map +1 -1
- package/core/util/promise-utils.d.ts +58 -0
- package/core/util/promise-utils.d.ts.map +1 -0
- package/core/util/retry-with-exponential-backoff.d.ts +3 -0
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +10 -0
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/service-request-error.d.ts +60 -0
- package/core/util/service-request-error.d.ts.map +1 -0
- package/core/util/service-response.d.ts +125 -0
- package/core/util/service-response.d.ts.map +1 -0
- package/core/util/session-utils.d.ts +8 -0
- package/core/util/session-utils.d.ts.map +1 -1
- package/core/util/wait-for-request.d.ts +16 -0
- package/core/util/wait-for-request.d.ts.map +1 -1
- package/core/util/when-ready.d.ts +3 -0
- package/core/util/when-ready.d.ts.map +1 -1
- package/index.cjs +26904 -118
- package/index.cjs.map +1 -1
- package/index.d.cts +6 -3
- package/index.d.ts +6 -3
- package/index.d.ts.map +1 -1
- package/index.js +25305 -13476
- package/index.js.map +1 -1
- package/kos-models.json +426 -0
- package/models/constants/index.d.ts +3 -1
- package/models/constants/index.d.ts.map +1 -1
- package/models/decorators/future-service.d.ts +27 -2
- package/models/decorators/future-service.d.ts.map +1 -1
- package/models/models/browser-router/browser-router-model.d.ts +80 -1
- package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
- package/models/models/browser-router/types/index.d.ts +26 -1
- package/models/models/canvas-dispatcher/types/index.d.ts +5 -0
- package/models/models/canvas-renderer/types/index.d.ts +5 -0
- package/models/models/config-bean/config-bean-model-builder.d.ts +4 -2
- package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts +117 -13
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-types.d.ts +6 -3
- package/models/models/config-bean/config-bean-types.d.ts.map +1 -1
- package/models/models/config-bean/types/index.d.ts +34 -0
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts +112 -1
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
- package/models/models/config-bean-prop/types/index.d.ts +301 -19
- package/models/models/device/device-model.d.ts +219 -9
- package/models/models/device/device-model.d.ts.map +1 -1
- package/models/models/device/device-registration.d.ts +61 -48
- package/models/models/device/device-registration.d.ts.map +1 -1
- package/models/models/device/types/index.d.ts +42 -0
- package/models/models/future/future-aware.d.ts +82 -0
- package/models/models/future/future-aware.d.ts.map +1 -1
- package/models/models/future/future-model.d.ts +34 -5
- package/models/models/future/future-model.d.ts.map +1 -1
- package/models/models/future/future-types.d.ts +202 -9
- package/models/models/future/future-types.d.ts.map +1 -1
- package/models/models/future-container/future-container-model.d.ts +2 -2
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts +25 -0
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -0
- package/models/models/gpio-chip/gpio-chip-model.d.ts +30 -0
- package/models/models/gpio-chip/gpio-chip-model.d.ts.map +1 -0
- package/models/models/gpio-chip/index.d.ts +7 -0
- package/models/models/gpio-chip/index.d.ts.map +1 -0
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts +86 -0
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts.map +1 -0
- package/models/models/gpio-chip/services/index.d.ts +2 -0
- package/models/models/gpio-chip/services/index.d.ts.map +1 -0
- package/models/models/gpio-chip/types/index.d.ts +24 -0
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts +23 -0
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts.map +1 -0
- package/models/models/gpio-pin/gpio-pin-model.d.ts +26 -0
- package/models/models/gpio-pin/gpio-pin-model.d.ts.map +1 -0
- package/models/models/gpio-pin/index.d.ts +6 -0
- package/models/models/gpio-pin/index.d.ts.map +1 -0
- package/models/models/gpio-pin/types/index.d.ts +23 -0
- package/models/models/index.d.ts +1 -0
- package/models/models/index.d.ts.map +1 -1
- package/models/models/key-value/index.d.ts +4 -0
- package/models/models/key-value/index.d.ts.map +1 -1
- package/models/models/key-value/key-value-model.d.ts +111 -0
- package/models/models/key-value/key-value-model.d.ts.map +1 -1
- package/models/models/key-value/services/key-value-services.d.ts +124 -2
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
- package/models/models/key-value/types/index.d.ts +57 -0
- package/models/models/kos-expression-evaluator/index.d.ts +4 -0
- package/models/models/kos-expression-evaluator/index.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +209 -0
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/services/index.d.ts +6 -0
- package/models/models/kos-expression-evaluator/services/index.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +15 -0
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -0
- package/models/models/kos-expression-evaluator/types/index.d.ts +6 -0
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts +61 -14
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
- package/models/models/kos-log-manager/types/index.d.ts +191 -0
- package/models/models/kos-time/kos-time-model.d.ts +64 -0
- package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
- package/models/models/kos-time/types/index.d.ts +83 -0
- package/models/models/log-block/log-block-container-model.d.ts +132 -0
- package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
- package/models/models/log-block/log-block-model.d.ts +185 -0
- package/models/models/log-block/log-block-model.d.ts.map +1 -1
- package/models/models/log-block/types/index.d.ts +133 -0
- package/models/models/log-stream/index.d.ts +6 -2
- package/models/models/log-stream/index.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-container-model.d.ts +62 -0
- package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-model.d.ts +55 -0
- package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
- package/models/models/log-stream/services/log-stream-services.d.ts +2 -1
- package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
- package/models/models/log-stream/types/index.d.ts +79 -0
- package/models/models/network-interface/index.d.ts +6 -2
- package/models/models/network-interface/index.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-container-model.d.ts +62 -0
- package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-container-registration.d.ts +2 -1
- package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-model.d.ts +77 -0
- package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-registration.d.ts +2 -1
- package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
- package/models/models/network-interface/services/network-interface-services.d.ts +54 -0
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
- package/models/models/network-interface/types/index.d.ts +22 -0
- package/models/models/ota/ota-model.d.ts +82 -3
- package/models/models/ota/ota-model.d.ts.map +1 -1
- package/models/models/ota/types/index.d.ts +177 -0
- package/models/models/region-info/region-info-model.d.ts +8 -3
- package/models/models/region-info/region-info-model.d.ts.map +1 -1
- package/models/models/region-info/services/region-info-services.d.ts +2 -2
- package/models/models/region-info/services/region-info-services.d.ts.map +1 -1
- package/models/models/region-info/types/index.d.ts +191 -13
- package/models/models/region-info/types/index.d.ts.map +1 -1
- package/models/models/region-info/utils/unit-system-utils.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/models/software-info/software-info-model.d.ts +74 -2
- package/models/models/software-info/software-info-model.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +52 -17
- package/models/models/state-bean/state-bean-model.d.ts +86 -9
- package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
- package/models/models/state-bean/types/index.d.ts +117 -6
- package/models/models/state-prop/state-prop-model.d.ts +78 -1
- package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
- package/models/models/state-prop/types/index.d.ts +57 -7
- package/models/models/storage-device/services/storage-device-services.d.ts +1 -0
- package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-container-model.d.ts +289 -2
- package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-model.d.ts +84 -2
- package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
- package/models/models/storage-device/types/index.d.ts +114 -0
- package/models/models/studio-properties/studio-properties-model.d.ts +75 -0
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
- package/models/models/studio-properties/types/index.d.ts +29 -0
- package/models/models/translation/services/translation-services.d.ts +128 -2
- package/models/models/translation/services/translation-services.d.ts.map +1 -1
- package/models/models/translation/translation-container-model.d.ts +100 -10
- package/models/models/translation/translation-container-model.d.ts.map +1 -1
- package/models/models/translation/translation-container-registration.d.ts +2 -1
- package/models/models/translation/translation-container-registration.d.ts.map +1 -1
- package/models/models/translation/translation-context.d.ts +1 -16
- package/models/models/translation/translation-context.d.ts.map +1 -1
- package/models/models/translation/translation-model.d.ts +113 -1
- package/models/models/translation/translation-model.d.ts.map +1 -1
- package/models/models/translation/types/index.d.ts +343 -0
- package/models/models/trouble/index.d.ts +2 -1
- package/models/models/trouble/index.d.ts.map +1 -1
- package/models/models/trouble/services/trouble-services.d.ts +6 -4
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
- package/models/models/trouble/trouble-model.d.ts +4 -1
- package/models/models/trouble/trouble-model.d.ts.map +1 -1
- package/models/models/trouble/types/index.d.ts +34 -93
- package/models/models/trouble/utils/is-trouble-aware.d.ts +2 -2
- package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
- package/models/models/trouble-container/index.d.ts +4 -3
- package/models/models/trouble-container/index.d.ts.map +1 -1
- package/models/models/trouble-container/trouble-container-model.d.ts +10 -5
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/models/models/trouble-container/types/index.d.ts +6 -14
- package/models/models/usb-update/types/index.d.ts +10 -0
- package/models/services/config-bean/index.d.ts +2 -2
- package/models/services/config-bean/index.d.ts.map +1 -1
- package/models/utils/client.d.ts +16 -12
- package/models/utils/client.d.ts.map +1 -1
- package/models/utils/core-registration-manager.d.ts +1 -1
- package/models/utils/core-registration-manager.d.ts.map +1 -1
- package/models/utils/extension-manager.d.ts +54 -13
- package/models/utils/extension-manager.d.ts.map +1 -1
- package/models/utils/get-kos-connection-id.d.ts +2 -0
- package/models/utils/get-kos-connection-id.d.ts.map +1 -0
- package/models/utils/index.d.ts +3 -2
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +3 -0
- package/models/utils/openapi-index.d.ts.map +1 -0
- package/models/utils/service-accessor.d.ts +86 -0
- package/models/utils/service-accessor.d.ts.map +1 -0
- package/models/utils/service.d.ts +91 -13
- package/models/utils/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.6.5/openapi.d.ts +3809 -0
- package/models/utils/services/kos/1.6.5/service.d.ts +124 -0
- package/models/utils/services/kos/1.6.5/service.d.ts.map +1 -0
- package/models/utils/services/kos/1.8.1/openapi.d.ts +4344 -0
- package/models/utils/services/kos/1.8.1/service.d.ts +124 -0
- package/models/utils/services/kos/1.8.1/service.d.ts.map +1 -0
- package/models/utils/services/kos/1.9.x/openapi.d.ts +4597 -0
- package/models/utils/services/kos/1.9.x/service.d.ts +124 -0
- package/models/utils/services/kos/1.9.x/service.d.ts.map +1 -0
- package/models/utils/services/kos/daily/openapi.d.ts +4349 -0
- package/models/utils/services/kos/daily/service.d.ts +124 -0
- package/models/utils/services/kos/daily/service.d.ts.map +1 -0
- package/models/utils/services/vfs/1.6.5/openapi.d.ts +51 -0
- package/models/utils/services/vfs/1.6.5/service.d.ts +124 -0
- package/models/utils/services/vfs/1.6.5/service.d.ts.map +1 -0
- package/models/utils/services/vfs/1.8.1/openapi.d.ts +51 -0
- package/models/utils/services/vfs/1.8.1/service.d.ts +124 -0
- package/models/utils/services/vfs/1.8.1/service.d.ts.map +1 -0
- package/models/utils/services/vfs/1.9.x/openapi.d.ts +51 -0
- package/models/utils/services/vfs/1.9.x/service.d.ts +124 -0
- package/models/utils/services/vfs/1.9.x/service.d.ts.map +1 -0
- package/models/utils/services/vfs/daily/openapi.d.ts +51 -0
- package/models/utils/services/vfs/daily/service.d.ts +124 -0
- package/models/utils/services/vfs/daily/service.d.ts.map +1 -0
- package/models/utils/services-index.d.ts +9 -0
- package/models/utils/services-index.d.ts.map +1 -0
- package/package.json +16 -2
- package/ui/contexts/kos-core-context.d.ts.map +1 -1
- package/ui/contexts/state-bean/state-bean-provider.d.ts.map +1 -1
- package/ui/hooks/device/use-device.d.ts +6 -0
- package/ui/hooks/device/use-device.d.ts.map +1 -1
- package/ui/hooks/index.d.ts +1 -0
- package/ui/hooks/index.d.ts.map +1 -1
- package/ui/hooks/kos-time/use-kos-time.d.ts +6 -0
- package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -1
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +6 -0
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -1
- package/ui/hooks/ota/use-ota.d.ts +6 -0
- package/ui/hooks/ota/use-ota.d.ts.map +1 -1
- package/ui/hooks/software-info/use-software-info.d.ts +6 -0
- package/ui/hooks/software-info/use-software-info.d.ts.map +1 -1
- package/ui/hooks/state-bean/use-state-bean.d.ts +2 -2
- package/ui/hooks/state-bean/use-state-bean.d.ts.map +1 -1
- package/ui/hooks/state-bean/with-state-bean.d.ts.map +1 -1
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +6 -0
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/trans.d.ts +6 -0
- package/ui/hooks/translation-container/trans.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation-container.d.ts +10 -33
- package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation.d.ts +7 -0
- package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
- package/ui/hooks/translation-container/with-translation-container.d.ts +6 -0
- package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -1
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +6 -0
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -1
- package/ui/hooks/use-config-bean.d.ts +6 -0
- package/ui/hooks/use-config-bean.d.ts.map +1 -1
- package/ui/hooks/use-config-property.d.ts +6 -0
- package/ui/hooks/use-config-property.d.ts.map +1 -1
- package/ui/hooks/use-kos-model.d.ts +7 -0
- package/ui/hooks/use-kos-model.d.ts.map +1 -1
- package/ui/hooks/use-kos-regions.d.ts.map +1 -1
- package/ui/hooks/view-model/index.d.ts +2 -0
- package/ui/hooks/view-model/index.d.ts.map +1 -0
- package/ui/hooks/view-model/use-view-model.d.ts +80 -0
- package/ui/hooks/view-model/use-view-model.d.ts.map +1 -0
- package/models/models/trouble-container/trouble-container-registration.d.ts +0 -5
- package/models/models/trouble-container/trouble-container-registration.d.ts.map +0 -1
- package/models/utils/kosmodel-compatible-future-mixin.d.ts +0 -142
- package/models/utils/kosmodel-compatible-future-mixin.d.ts.map +0 -1
- package/models/utils/kosmodel-interface-companion-mixin.d.ts +0 -83
- package/models/utils/kosmodel-interface-companion-mixin.d.ts.map +0 -1
|
@@ -1,12 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.event-bus
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
export interface ApiCallback<T = string> {
|
|
2
6
|
headers: Record<string, string>;
|
|
3
7
|
body: T;
|
|
4
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.event-bus
|
|
11
|
+
*/
|
|
5
12
|
export type EventCallback<T = ApiCallback> = (msg?: T) => void;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.event-bus
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
6
17
|
export interface PublishResponse {
|
|
7
18
|
eventType: string;
|
|
8
19
|
subscribers: number;
|
|
9
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @kosService core.event-bus
|
|
23
|
+
* @kosApiLevel 7
|
|
24
|
+
*/
|
|
10
25
|
export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
11
26
|
/**
|
|
12
27
|
* Subscribes to a specific event type with a callback function.
|
|
@@ -19,6 +34,9 @@ export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
|
19
34
|
* @returns An object containing:
|
|
20
35
|
* - `count`: The number of active subscriptions for the event type.
|
|
21
36
|
* - `unsubscribe`: A function to unsubscribe from the event, which also returns the updated subscription count.
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.event-bus
|
|
39
|
+
* @kosApiLevel 2
|
|
22
40
|
*/
|
|
23
41
|
export declare function subscribe<T = ApiCallback>(eventType: string, callback: EventCallback<T>): {
|
|
24
42
|
count: number;
|
|
@@ -42,6 +60,9 @@ export declare function subscribe<T = ApiCallback>(eventType: string, callback:
|
|
|
42
60
|
* - If the "sync" header is present, the function waits for a response from the subscriber and
|
|
43
61
|
* publishes the response back to the source using the sync ID.
|
|
44
62
|
* - If the "sync" header is not present, the event is published asynchronously in a fire-and-forget manner.
|
|
63
|
+
*
|
|
64
|
+
* @kosService core.event-bus
|
|
65
|
+
* @kosApiLevel 2
|
|
45
66
|
*/
|
|
46
67
|
export declare function publish(eventType: string, msg: unknown, headers?: Record<string, string>): PublishResponse;
|
|
47
68
|
/**
|
|
@@ -56,6 +77,9 @@ export declare function publish(eventType: string, msg: unknown, headers?: Recor
|
|
|
56
77
|
* ```typescript
|
|
57
78
|
* reset(); // Clears all event subscriptions and logs a warning.
|
|
58
79
|
* ```
|
|
80
|
+
*
|
|
81
|
+
* @kosService core.event-bus
|
|
82
|
+
* @kosApiLevel 2
|
|
59
83
|
*/
|
|
60
84
|
export declare function reset(): void;
|
|
61
85
|
/**
|
|
@@ -64,6 +88,9 @@ export declare function reset(): void;
|
|
|
64
88
|
* @param eventType - The event type to listen for
|
|
65
89
|
* @param callback - The callback to execute once
|
|
66
90
|
* @returns Unsubscribe function
|
|
91
|
+
*
|
|
92
|
+
* @kosService core.event-bus
|
|
93
|
+
* @kosApiLevel 11
|
|
67
94
|
*/
|
|
68
95
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
69
96
|
/**
|
|
@@ -72,6 +99,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
72
99
|
* @param eventType - The event type to wait for
|
|
73
100
|
* @param timeout - Optional timeout in milliseconds
|
|
74
101
|
* @returns Promise that resolves with the event data
|
|
102
|
+
*
|
|
103
|
+
* @kosService core.event-bus
|
|
104
|
+
* @kosApiLevel 11
|
|
75
105
|
*/
|
|
76
106
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
77
107
|
//# sourceMappingURL=eventBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED
|
|
1
|
+
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
|
@@ -6,6 +6,9 @@ import { ApiCallback, EventCallback } from './eventBus';
|
|
|
6
6
|
* @param eventType - The event type to listen for
|
|
7
7
|
* @param callback - The callback to execute once
|
|
8
8
|
* @returns Unsubscribe function
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.event-bus
|
|
11
|
+
* @kosApiLevel 11
|
|
9
12
|
*/
|
|
10
13
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
11
14
|
/**
|
|
@@ -14,6 +17,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
14
17
|
* @param eventType - The event type to wait for
|
|
15
18
|
* @param timeout - Optional timeout in milliseconds
|
|
16
19
|
* @returns Promise that resolves with the event data
|
|
20
|
+
*
|
|
21
|
+
* @kosService core.event-bus
|
|
22
|
+
* @kosApiLevel 11
|
|
17
23
|
*/
|
|
18
24
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
19
25
|
/**
|
|
@@ -22,6 +28,9 @@ export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: nu
|
|
|
22
28
|
* @param eventTypes - Array of event types to wait for
|
|
23
29
|
* @param timeout - Optional timeout in milliseconds
|
|
24
30
|
* @returns Promise that resolves when all events have occurred
|
|
31
|
+
*
|
|
32
|
+
* @kosService core.event-bus
|
|
33
|
+
* @kosApiLevel 11
|
|
25
34
|
*/
|
|
26
35
|
export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<T[]>;
|
|
27
36
|
/**
|
|
@@ -30,6 +39,9 @@ export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeou
|
|
|
30
39
|
* @param eventTypes - Array of event types to race
|
|
31
40
|
* @param timeout - Optional timeout in milliseconds
|
|
32
41
|
* @returns Promise that resolves with the first event
|
|
42
|
+
*
|
|
43
|
+
* @kosService core.event-bus
|
|
44
|
+
* @kosApiLevel 11
|
|
33
45
|
*/
|
|
34
46
|
export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<{
|
|
35
47
|
eventType: string;
|
|
@@ -42,6 +54,9 @@ export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: nu
|
|
|
42
54
|
* @param predicate - Function to test each event
|
|
43
55
|
* @param callback - Callback for events that pass the filter
|
|
44
56
|
* @returns Unsubscribe function
|
|
57
|
+
*
|
|
58
|
+
* @kosService core.event-bus
|
|
59
|
+
* @kosApiLevel 11
|
|
45
60
|
*/
|
|
46
61
|
export declare function filter<T = ApiCallback>(eventType: string, predicate: (msg: T) => boolean, callback: EventCallback<T>): () => void;
|
|
47
62
|
/**
|
|
@@ -51,6 +66,9 @@ export declare function filter<T = ApiCallback>(eventType: string, predicate: (m
|
|
|
51
66
|
* @param transform - Function to transform the event data
|
|
52
67
|
* @param callback - Callback for transformed events
|
|
53
68
|
* @returns Unsubscribe function
|
|
69
|
+
*
|
|
70
|
+
* @kosService core.event-bus
|
|
71
|
+
* @kosApiLevel 11
|
|
54
72
|
*/
|
|
55
73
|
export declare function map<T = ApiCallback, R = any>(eventType: string, transform: (msg: T) => R, callback: (msg: R) => void): () => void;
|
|
56
74
|
/**
|
|
@@ -60,6 +78,9 @@ export declare function map<T = ApiCallback, R = any>(eventType: string, transfo
|
|
|
60
78
|
* @param delay - Delay in milliseconds
|
|
61
79
|
* @param callback - Callback for debounced events
|
|
62
80
|
* @returns Unsubscribe function
|
|
81
|
+
*
|
|
82
|
+
* @kosService core.event-bus
|
|
83
|
+
* @kosApiLevel 11
|
|
63
84
|
*/
|
|
64
85
|
export declare function debounce<T = ApiCallback>(eventType: string, delay: number, callback: EventCallback<T>): () => void;
|
|
65
86
|
/**
|
|
@@ -69,6 +90,9 @@ export declare function debounce<T = ApiCallback>(eventType: string, delay: numb
|
|
|
69
90
|
* @param interval - Minimum interval between emissions in milliseconds
|
|
70
91
|
* @param callback - Callback for throttled events
|
|
71
92
|
* @returns Unsubscribe function
|
|
93
|
+
*
|
|
94
|
+
* @kosService core.event-bus
|
|
95
|
+
* @kosApiLevel 11
|
|
72
96
|
*/
|
|
73
97
|
export declare function throttle<T = ApiCallback>(eventType: string, interval: number, callback: EventCallback<T>): () => void;
|
|
74
98
|
/**
|
|
@@ -78,6 +102,9 @@ export declare function throttle<T = ApiCallback>(eventType: string, interval: n
|
|
|
78
102
|
* @param bufferTime - Time window to collect events in milliseconds
|
|
79
103
|
* @param callback - Callback for buffered events
|
|
80
104
|
* @returns Unsubscribe function
|
|
105
|
+
*
|
|
106
|
+
* @kosService core.event-bus
|
|
107
|
+
* @kosApiLevel 11
|
|
81
108
|
*/
|
|
82
109
|
export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: number, callback: (events: T[]) => void): () => void;
|
|
83
110
|
/**
|
|
@@ -86,6 +113,9 @@ export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: n
|
|
|
86
113
|
* @param eventType - The event type to replay
|
|
87
114
|
* @param bufferSize - Number of events to remember
|
|
88
115
|
* @returns Object with subscribe method that replays buffered events
|
|
116
|
+
*
|
|
117
|
+
* @kosService core.event-bus
|
|
118
|
+
* @kosApiLevel 11
|
|
89
119
|
*/
|
|
90
120
|
export declare function replay<T = ApiCallback>(eventType: string, bufferSize?: number): {
|
|
91
121
|
subscribe: (callback: EventCallback<T>) => {
|
|
@@ -101,6 +131,9 @@ export declare function replay<T = ApiCallback>(eventType: string, bufferSize?:
|
|
|
101
131
|
* @param eventTypes - Array of event types to merge
|
|
102
132
|
* @param callback - Callback for all merged events
|
|
103
133
|
* @returns Unsubscribe function for all subscriptions
|
|
134
|
+
*
|
|
135
|
+
* @kosService core.event-bus
|
|
136
|
+
* @kosApiLevel 11
|
|
104
137
|
*/
|
|
105
138
|
export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (eventType: string, msg: T) => void): () => void;
|
|
106
139
|
/**
|
|
@@ -109,6 +142,9 @@ export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (
|
|
|
109
142
|
* @param initialState - The initial state
|
|
110
143
|
* @param transitions - Object mapping states to event handlers
|
|
111
144
|
* @returns Object with current state and unsubscribe function
|
|
145
|
+
*
|
|
146
|
+
* @kosService core.event-bus
|
|
147
|
+
* @kosApiLevel 11
|
|
112
148
|
*/
|
|
113
149
|
export declare function stateMachine<TState extends string, T = ApiCallback>(initialState: TState, transitions: Record<TState, Record<string, (msg: T) => TState>>): {
|
|
114
150
|
readonly state: TState;
|
|
@@ -122,6 +158,9 @@ export declare function stateMachine<TState extends string, T = ApiCallback>(ini
|
|
|
122
158
|
* @param request - The request data to publish
|
|
123
159
|
* @param timeout - Optional timeout in milliseconds
|
|
124
160
|
* @returns Promise that resolves with the response
|
|
161
|
+
*
|
|
162
|
+
* @kosService core.event-bus
|
|
163
|
+
* @kosApiLevel 11
|
|
125
164
|
*/
|
|
126
165
|
export declare function request<TRequest = any, TResponse = ApiCallback>(requestEvent: string, responseEvent: string, request: TRequest, timeout?: number): Promise<TResponse>;
|
|
127
166
|
/**
|
|
@@ -129,8 +168,17 @@ export declare function request<TRequest = any, TResponse = ApiCallback>(request
|
|
|
129
168
|
*
|
|
130
169
|
* @param eventType - The event type to iterate
|
|
131
170
|
* @returns Async iterator for use with for-await-of
|
|
171
|
+
*
|
|
172
|
+
* @kosService core.event-bus
|
|
173
|
+
* @kosApiLevel 11
|
|
132
174
|
*/
|
|
133
175
|
export declare function eventIterator<T = ApiCallback>(eventType: string): AsyncIterableIterator<T>;
|
|
176
|
+
/**
|
|
177
|
+
* Namespace collecting all functional event bus utilities.
|
|
178
|
+
*
|
|
179
|
+
* @kosService core.event-bus
|
|
180
|
+
* @kosApiLevel 11
|
|
181
|
+
*/
|
|
134
182
|
export declare const EventBusFunctional: {
|
|
135
183
|
once: typeof once;
|
|
136
184
|
waitFor: typeof waitFor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SA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AM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC"}
|
|
@@ -2,6 +2,9 @@ import { ApiCallback, EventCallback } from './eventBus';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Options for state-aware event subscriptions
|
|
5
|
+
*
|
|
6
|
+
* @kosService core.event-bus
|
|
7
|
+
* @kosApiLevel 11
|
|
5
8
|
*/
|
|
6
9
|
export interface StateAwareOptions<T> {
|
|
7
10
|
/** Function to fetch the current state */
|
|
@@ -20,6 +23,9 @@ export interface StateAwareOptions<T> {
|
|
|
20
23
|
* @param eventType - The event type to wait for
|
|
21
24
|
* @param options - Options for state fetching and transformation
|
|
22
25
|
* @returns Promise that resolves with either the event data or current state
|
|
26
|
+
*
|
|
27
|
+
* @kosService core.event-bus
|
|
28
|
+
* @kosApiLevel 11
|
|
23
29
|
*/
|
|
24
30
|
export declare function waitForOrGetState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
25
31
|
/**
|
|
@@ -29,6 +35,9 @@ export declare function waitForOrGetState<T = ApiCallback>(eventType: string, op
|
|
|
29
35
|
* @param callback - Callback for state updates
|
|
30
36
|
* @param options - Options for initial state fetching
|
|
31
37
|
* @returns Unsubscribe function
|
|
38
|
+
*
|
|
39
|
+
* @kosService core.event-bus
|
|
40
|
+
* @kosApiLevel 11
|
|
32
41
|
*/
|
|
33
42
|
export declare function subscribeWithInitialState<T = ApiCallback>(eventType: string, callback: EventCallback<T>, options: StateAwareOptions<T>): () => void;
|
|
34
43
|
/**
|
|
@@ -37,6 +46,9 @@ export declare function subscribeWithInitialState<T = ApiCallback>(eventType: st
|
|
|
37
46
|
* @param eventType - The event type for updates
|
|
38
47
|
* @param stateApi - API endpoint or function to fetch current state
|
|
39
48
|
* @returns Object with subscribe method and current state getter
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.event-bus
|
|
51
|
+
* @kosApiLevel 11
|
|
40
52
|
*/
|
|
41
53
|
export declare function createStatefulEventStream<T = any>(eventType: string, stateApi: string | (() => Promise<T>)): {
|
|
42
54
|
/** Get current state synchronously (may be undefined if not loaded) */
|
|
@@ -55,6 +67,9 @@ export declare function createStatefulEventStream<T = any>(eventType: string, st
|
|
|
55
67
|
* @param eventTypes - Array of event types to wait for
|
|
56
68
|
* @param options - Shared state checking options
|
|
57
69
|
* @returns Promise that resolves when all events have occurred or state is ready
|
|
70
|
+
*
|
|
71
|
+
* @kosService core.event-bus
|
|
72
|
+
* @kosApiLevel 11
|
|
58
73
|
*/
|
|
59
74
|
export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[], options: StateAwareOptions<T>): Promise<T>;
|
|
60
75
|
/**
|
|
@@ -63,6 +78,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[
|
|
|
63
78
|
* @param eventType - Single event type to wait for
|
|
64
79
|
* @param options - State checking options
|
|
65
80
|
* @returns Promise that resolves when event occurs or state is ready
|
|
81
|
+
*
|
|
82
|
+
* @kosService core.event-bus
|
|
83
|
+
* @kosApiLevel 11
|
|
66
84
|
*/
|
|
67
85
|
export declare function waitForAllWithState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
68
86
|
/**
|
|
@@ -71,6 +89,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventType: string,
|
|
|
71
89
|
* @param eventType - Event type to handle
|
|
72
90
|
* @param handler - Event handler function
|
|
73
91
|
* @param recoveryStrategy - Strategy for recovering missed events
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.event-bus
|
|
94
|
+
* @kosApiLevel 11
|
|
74
95
|
*/
|
|
75
96
|
export declare function createResilientEventHandler<T = ApiCallback>(eventType: string, handler: (data: T) => void | Promise<void>, recoveryStrategy: {
|
|
76
97
|
/** API to fetch missed events or current state */
|
|
@@ -83,6 +104,9 @@ export declare function createResilientEventHandler<T = ApiCallback>(eventType:
|
|
|
83
104
|
/**
|
|
84
105
|
* Pattern for handling connection state with events
|
|
85
106
|
* Useful for WebSocket connections, plugin loading, etc.
|
|
107
|
+
*
|
|
108
|
+
* @kosService core.event-bus
|
|
109
|
+
* @kosApiLevel 11
|
|
86
110
|
*/
|
|
87
111
|
export interface ConnectionStateManager<T = any> {
|
|
88
112
|
/** Current connection state */
|
|
@@ -98,6 +122,9 @@ export interface ConnectionStateManager<T = any> {
|
|
|
98
122
|
}
|
|
99
123
|
/**
|
|
100
124
|
* Create a connection state manager that handles online/offline scenarios
|
|
125
|
+
*
|
|
126
|
+
* @kosService core.event-bus
|
|
127
|
+
* @kosApiLevel 11
|
|
101
128
|
*/
|
|
102
129
|
export declare function createConnectionStateManager<T = any>(config: {
|
|
103
130
|
connectEvent: string;
|
|
@@ -107,6 +134,12 @@ export declare function createConnectionStateManager<T = any>(config: {
|
|
|
107
134
|
fetchInitialState: () => Promise<T>;
|
|
108
135
|
reconnectDelay?: number;
|
|
109
136
|
}): ConnectionStateManager<T>;
|
|
137
|
+
/**
|
|
138
|
+
* Namespace collecting all state-aware event bus utilities.
|
|
139
|
+
*
|
|
140
|
+
* @kosService core.event-bus
|
|
141
|
+
* @kosApiLevel 11
|
|
142
|
+
*/
|
|
110
143
|
export declare const EventBusState: {
|
|
111
144
|
waitForOrGetState: typeof waitForOrGetState;
|
|
112
145
|
subscribeWithInitialState: typeof subscribeWithInitialState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;GAKG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Y,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAgH5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for KOS model lifecycle and operations
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Timeout in milliseconds for model lifecycle transitions.
|
|
6
|
+
* Models that don't complete their transition within this time will reject.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MODEL_PROMISE_TIMEOUT_MS = 5000;
|
|
9
|
+
//# sourceMappingURL=model-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/constants/model-constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IKosRegistry } from './types';
|
|
2
|
+
import { KosModelCacheHandler } from './model-cache';
|
|
3
|
+
import { IKosModel } from './kosModel';
|
|
4
|
+
import { DependencyLifecycle } from '../types';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Handles creation and lifecycle management of companion models.
|
|
8
|
+
* Companions are models that extend or enhance parent models and can be
|
|
9
|
+
* created at specific lifecycle phases based on decorator configuration.
|
|
10
|
+
*/
|
|
11
|
+
export declare class KosCompanionInstantiator {
|
|
12
|
+
private registry;
|
|
13
|
+
private cache;
|
|
14
|
+
private createModel;
|
|
15
|
+
constructor(registry: IKosRegistry, cache: KosModelCacheHandler, createModel: (typeId: string, id: string, options: Record<string, any>) => any);
|
|
16
|
+
/**
|
|
17
|
+
* Creates companion models for a parent model, optionally filtered by lifecycle phase.
|
|
18
|
+
* Called automatically during instantiation for companions without lifecycle specified.
|
|
19
|
+
* Can be called from lifecycle hooks to create lifecycle-deferred companions.
|
|
20
|
+
*
|
|
21
|
+
* @param model The parent model
|
|
22
|
+
* @param options Options to pass to companion constructors
|
|
23
|
+
* @param lifecycle Optional lifecycle filter - only create companions matching this phase
|
|
24
|
+
*/
|
|
25
|
+
createCompanionModels(model: IKosModel, options: Record<string, any>, lifecycle?: DependencyLifecycle): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get companion definitions for a parent model type
|
|
28
|
+
*/
|
|
29
|
+
private getCompanionDefinitions;
|
|
30
|
+
/**
|
|
31
|
+
* Resolve companion type from definition and extract lifecycle metadata
|
|
32
|
+
*/
|
|
33
|
+
private resolveCompanionType;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve factory companion by calling factory and extracting lifecycle
|
|
36
|
+
*/
|
|
37
|
+
private resolveFactoryCompanion;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve string companion using pre-extracted lifecycle from registration
|
|
40
|
+
*/
|
|
41
|
+
private resolveStringCompanion;
|
|
42
|
+
/**
|
|
43
|
+
* Extract lifecycle metadata from companion model decorator
|
|
44
|
+
*/
|
|
45
|
+
private extractLifecycleFromType;
|
|
46
|
+
/**
|
|
47
|
+
* Determine if companion should be created based on lifecycle filtering
|
|
48
|
+
*/
|
|
49
|
+
private shouldCreateCompanion;
|
|
50
|
+
/**
|
|
51
|
+
* Instantiate and attach companion to parent model
|
|
52
|
+
*/
|
|
53
|
+
private instantiateCompanion;
|
|
54
|
+
/**
|
|
55
|
+
* Generate unique companion ID
|
|
56
|
+
*/
|
|
57
|
+
private generateCompanionId;
|
|
58
|
+
/**
|
|
59
|
+
* Check if companion already exists in cache
|
|
60
|
+
*/
|
|
61
|
+
private companionAlreadyExists;
|
|
62
|
+
/**
|
|
63
|
+
* Create companion model instance with parent context
|
|
64
|
+
*/
|
|
65
|
+
private createCompanionInstance;
|
|
66
|
+
/**
|
|
67
|
+
* Attach companion to parent model
|
|
68
|
+
*/
|
|
69
|
+
private attachCompanionToParent;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=companion-instantiator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-instantiator.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/core/companion-instantiator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvE;;;;GAIG;AACH,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,WAAW;gBAFX,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,oBAAoB,EAC3B,WAAW,EAAE,CACnB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KACzB,GAAG;IAGV;;;;;;;;OAQG;IACH,qBAAqB,CACnB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,SAAS,CAAC,EAAE,mBAAmB;IAyBjC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAI/B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAkB5B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAqB/B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAa7B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAsC5B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAc9B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAe/B;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAOhC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main coordinator for injecting FSM support into a model instance.
|
|
3
|
+
* Delegates to Zone 3 functions for actual implementation.
|
|
4
|
+
*
|
|
5
|
+
* @param modelInstance The model instance to inject FSM support into
|
|
6
|
+
*/
|
|
7
|
+
export declare function injectStateMachineSupport(modelInstance: any): void;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize the state machine at a specific lifecycle phase.
|
|
10
|
+
* Called from KosModel lifecycle hooks.
|
|
11
|
+
*
|
|
12
|
+
* @param modelInstance The model instance
|
|
13
|
+
* @param lifecycle The current lifecycle phase
|
|
14
|
+
*/
|
|
15
|
+
export declare function initializeStateMachine(modelInstance: any, lifecycle: string): void;
|
|
16
|
+
//# sourceMappingURL=fsm-injection-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fsm-injection-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/fsm-injection-utils.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,GAAG,QAoB3D;AA0dD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,QA0B3E"}
|
|
@@ -1,14 +1,25 @@
|
|
|
1
|
+
export * from './fsm-injection-utils';
|
|
1
2
|
export * from './kos-child';
|
|
2
3
|
export * from './kos-companion';
|
|
4
|
+
export * from './kos-container-aware';
|
|
3
5
|
export * from './kos-context';
|
|
6
|
+
export * from './kos-execution-context';
|
|
7
|
+
export * from './kos-future-aware';
|
|
8
|
+
export * from './kos-multiple-future-aware';
|
|
4
9
|
export * from './kos-http-decorators';
|
|
5
10
|
export * from './kos-log';
|
|
11
|
+
export * from './kos-logger-aware';
|
|
6
12
|
export * from './kos-model-effect';
|
|
7
13
|
export * from './kos-parent';
|
|
8
14
|
export * from './kos-reference';
|
|
15
|
+
export * from './kos-service-request';
|
|
16
|
+
export * from './kos-service-request-helpers';
|
|
17
|
+
export * from './kos-state-machine';
|
|
18
|
+
export * from './kos-trouble-aware';
|
|
9
19
|
export * from './kosDependency';
|
|
10
20
|
export * from './kosModel';
|
|
11
21
|
export * from './kosSubscribe';
|
|
12
22
|
export * from './kosTopicHandler';
|
|
23
|
+
export * from './kos-view-model';
|
|
13
24
|
export * from './propKeys';
|
|
14
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* @param name - The name of the property to be marked as a child model.
|
|
15
15
|
* @returns A decorator function that marks the property as a child model.
|
|
16
16
|
* @category KOS Model Decorator
|
|
17
|
+
* @kosService core.child
|
|
18
|
+
* @kosApiLevel 2
|
|
17
19
|
*/
|
|
18
20
|
export declare const kosChild: (target: {} | any, name: PropertyKey) => any;
|
|
19
21
|
//# sourceMappingURL=kos-child.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,WAAY,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAG9D,CAAC"}
|