@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,34 +1,122 @@
|
|
|
1
1
|
import { KosBroadcastRequest, KosFetchReqeust, KosFetchResponseParams, KosMessageOptions, KosHttpMessageOptions, KosMessageRequest } from '../types';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.fetch
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const createStudioMessage: ({ path, requestId, method, destinationAddress, }: KosFetchReqeust) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.fetch
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const createFosBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, }: KosFetchReqeust) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.fetch
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const createBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, bridge, headers, }: KosFetchReqeust) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @kosService core.fetch
|
|
20
|
+
* @kosApiLevel 2
|
|
21
|
+
*/
|
|
6
22
|
export declare const createMessageBody: (msg: string, body?: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.fetch
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
7
27
|
export declare function createHeaders(headers: Record<string, string>): Headers;
|
|
28
|
+
/**
|
|
29
|
+
* @kosService core.fetch
|
|
30
|
+
* @kosApiLevel 2
|
|
31
|
+
*/
|
|
8
32
|
export declare function createReadableStream(msg: string): ReadableStream<Uint8Array> | null;
|
|
33
|
+
/**
|
|
34
|
+
* @kosService core.fetch
|
|
35
|
+
* @kosApiLevel 2
|
|
36
|
+
*/
|
|
9
37
|
export declare const createStudioMessageRequest: ({ path, requestId, destinationAddress, }: KosFetchReqeust) => string;
|
|
38
|
+
/**
|
|
39
|
+
* @kosService core.fetch
|
|
40
|
+
* @kosApiLevel 2
|
|
41
|
+
*/
|
|
10
42
|
export declare const createKosMessage: ({ requestId, destinationAddress, requestType, headers, }: KosMessageRequest) => string;
|
|
43
|
+
/**
|
|
44
|
+
* @kosService core.fetch
|
|
45
|
+
* @kosApiLevel 2
|
|
46
|
+
*/
|
|
11
47
|
export declare const sendKosMessage: <T extends object>(msg: T, options: KosMessageRequest) => void;
|
|
48
|
+
/**
|
|
49
|
+
* @kosService core.fetch
|
|
50
|
+
* @kosApiLevel 2
|
|
51
|
+
*/
|
|
12
52
|
export declare const createStudioMessageResponse: ({ path, responseId, status, destinationAddress, }: KosFetchResponseParams) => string;
|
|
53
|
+
/**
|
|
54
|
+
* @kosService core.fetch
|
|
55
|
+
* @kosApiLevel 2
|
|
56
|
+
*/
|
|
13
57
|
export declare const sendStudioMessageRequest: <T extends object>(msg: T, options: KosFetchReqeust) => void;
|
|
58
|
+
/**
|
|
59
|
+
* @kosService core.fetch
|
|
60
|
+
* @kosApiLevel 2
|
|
61
|
+
*/
|
|
14
62
|
export declare const sendStudioMessage: <T extends object>(msg: T, options: KosFetchResponseParams) => void;
|
|
63
|
+
/**
|
|
64
|
+
* @kosService core.fetch
|
|
65
|
+
* @kosApiLevel 2
|
|
66
|
+
*/
|
|
15
67
|
export declare const createBroadcastMessageResponse: ({ topic, }: KosBroadcastRequest) => string;
|
|
68
|
+
/**
|
|
69
|
+
* @kosService core.fetch
|
|
70
|
+
* @kosApiLevel 2
|
|
71
|
+
*/
|
|
16
72
|
export declare const createKosHtpMessageResponse: ({ responseId, destinationAddress, type, sourceAddress, status, }: KosHttpMessageOptions) => string;
|
|
73
|
+
/**
|
|
74
|
+
* @kosService core.fetch
|
|
75
|
+
* @kosApiLevel 2
|
|
76
|
+
*/
|
|
17
77
|
export declare const createKosMessageResponse: ({ topic, responseId, destinationAddress, type, }: KosMessageOptions) => string;
|
|
78
|
+
/**
|
|
79
|
+
* @kosService core.fetch
|
|
80
|
+
* @kosApiLevel 2
|
|
81
|
+
*/
|
|
18
82
|
export interface KosBroadcastRequestParams<T extends object> {
|
|
19
83
|
msg: T;
|
|
20
84
|
options: KosBroadcastRequest;
|
|
21
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @kosService core.fetch
|
|
88
|
+
* @kosApiLevel 2
|
|
89
|
+
*/
|
|
22
90
|
export declare const sendBroadcastMessage: <T extends object>({ msg, options, }: KosBroadcastRequestParams<T>) => void;
|
|
91
|
+
/**
|
|
92
|
+
* @kosService core.fetch
|
|
93
|
+
* @kosApiLevel 2
|
|
94
|
+
*/
|
|
23
95
|
export interface KosMessageResponseParams<T extends object> {
|
|
24
96
|
msg: T;
|
|
25
97
|
options: KosMessageOptions;
|
|
26
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* @kosService core.fetch
|
|
101
|
+
* @kosApiLevel 2
|
|
102
|
+
*/
|
|
27
103
|
export interface KosHttpMessageResponseParams<T extends object> {
|
|
28
104
|
msg: T;
|
|
29
105
|
options: KosHttpMessageOptions;
|
|
30
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @kosService core.fetch
|
|
109
|
+
* @kosApiLevel 2
|
|
110
|
+
*/
|
|
31
111
|
export declare const sendKosMessageResponse: <T extends object>({ msg, options, }: KosMessageResponseParams<T>) => void;
|
|
112
|
+
/**
|
|
113
|
+
* @kosService core.fetch
|
|
114
|
+
* @kosApiLevel 2
|
|
115
|
+
*/
|
|
32
116
|
export declare const sendKosHttpMessageResponse: <T extends object>({ msg, options, }: KosHttpMessageResponseParams<T>) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @kosService core.fetch
|
|
119
|
+
* @kosApiLevel 2
|
|
120
|
+
*/
|
|
33
121
|
export declare const getMessageBody: (payload: any, skipParse: any) => any;
|
|
34
122
|
//# sourceMappingURL=kos-message-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,qDAK7B,eAAe,WAYjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uEAO9B,eAAe,WAiBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wFAS3B,eAAe,WAsBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAS,MAAM,SAAS,MAAM,WAM3D,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAiCtE;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,GACV,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CA+BnC;AAED,eAAO,MAAM,0BAA0B,6CAIpC,eAAe,WAQjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6DAK1B,iBAAiB,WAWnB,CAAC;AAEF,eAAO,MAAM,cAAc,0BACpB,CAAC,WACG,iBAAiB,SAgB3B,CAAC;AACF,eAAO,MAAM,2BAA2B,sDAKrC,sBAAsB,WAUxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,0BAC9B,CAAC,WACG,eAAe,SAezB,CAAC;AACF,eAAO,MAAM,iBAAiB,0BACvB,CAAC,WACG,sBAAsB,SAiBhC,CAAC;AAEF,eAAO,MAAM,8BAA8B,eAExC,mBAAmB,WAKrB,CAAC;AACF,eAAO,MAAM,2BAA2B,qEAMrC,qBAAqB,WAUvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qDAKlC,iBAAiB,WAOnB,CAAC;AAEF,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,MAAM;IACzD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AACD,eAAO,MAAM,oBAAoB,wCAG9B,0BAA0B,CAAC,CAAC,SAe9B,CAAC;AAEF,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM;IACxD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qDAK7B,eAAe,WAYjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,uEAO9B,eAAe,W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;AAEF;;;GAGG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM;IACxD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
@@ -6,8 +6,15 @@ import { IKosDataModel, IKosModel } from '../core/kosModel';
|
|
|
6
6
|
* @async
|
|
7
7
|
* @param model - The KOS data model to destroy.
|
|
8
8
|
* @throws An error if the model cannot be destroyed.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.utils
|
|
11
|
+
* @kosApiLevel 2
|
|
9
12
|
*/
|
|
10
13
|
export declare const destroyKosModel: (model: IKosDataModel) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.utils
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
11
18
|
export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>;
|
|
12
19
|
/**
|
|
13
20
|
* Asynchronously resets a KOS data model.
|
|
@@ -15,6 +22,9 @@ export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>
|
|
|
15
22
|
* @async
|
|
16
23
|
* @param model - The KOS data model to reset.
|
|
17
24
|
* @throws An error if the model cannot be reset.
|
|
25
|
+
*
|
|
26
|
+
* @kosService core.utils
|
|
27
|
+
* @kosApiLevel 2
|
|
18
28
|
*/
|
|
19
29
|
export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
20
30
|
/**
|
|
@@ -24,6 +34,9 @@ export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
|
24
34
|
* @param modelId - The ID of the KOS data model.
|
|
25
35
|
* @returns The type of the KOS data model.
|
|
26
36
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.utils
|
|
39
|
+
* @kosApiLevel 2
|
|
27
40
|
*/
|
|
28
41
|
export declare const getKosModelType: (modelId: string) => Promise<string | undefined>;
|
|
29
42
|
/**
|
|
@@ -33,6 +46,9 @@ export declare const getKosModelType: (modelId: string) => Promise<string | unde
|
|
|
33
46
|
* @param modelId - The ID of the KOS data model.
|
|
34
47
|
* @returns An object containing the KOS data model and its type.
|
|
35
48
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.utils
|
|
51
|
+
* @kosApiLevel 2
|
|
36
52
|
*/
|
|
37
53
|
export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(modelId: string) => Promise<{
|
|
38
54
|
model: T;
|
|
@@ -44,6 +60,9 @@ export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(mode
|
|
|
44
60
|
* @param modelId - The ID of the KOS data model.
|
|
45
61
|
* @returns An object containing the KOS data model and its type.
|
|
46
62
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
63
|
+
*
|
|
64
|
+
* @kosService core.utils
|
|
65
|
+
* @kosApiLevel 2
|
|
47
66
|
*/
|
|
48
67
|
export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(modelId: string) => {
|
|
49
68
|
model: T;
|
|
@@ -56,6 +75,9 @@ export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(
|
|
|
56
75
|
* @param predicate - An object representing filter conditions.
|
|
57
76
|
* @returns An array of filtered KOS data models.
|
|
58
77
|
* @throws An error if the model type is not provided.
|
|
78
|
+
*
|
|
79
|
+
* @kosService core.utils
|
|
80
|
+
* @kosApiLevel 2
|
|
59
81
|
*/
|
|
60
82
|
export declare const findModels: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
61
83
|
[k: string]: any;
|
|
@@ -67,6 +89,9 @@ export declare const findModels: <T extends IKosDataModel>(modelType: string, pr
|
|
|
67
89
|
* @param predicate - An object representing filter conditions.
|
|
68
90
|
* @returns The first matching KOS data model, or undefined if none is found.
|
|
69
91
|
* @throws An error if the model type is not provided.
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.utils
|
|
94
|
+
* @kosApiLevel 2
|
|
70
95
|
*/
|
|
71
96
|
export declare const findModel: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
72
97
|
[k: string]: any;
|
|
@@ -78,6 +103,9 @@ export declare const findModel: <T extends IKosDataModel>(modelType: string, pre
|
|
|
78
103
|
* @param type - The type of the companion model.
|
|
79
104
|
* @returns The companion KOS data model of the specified type.
|
|
80
105
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
106
|
+
*
|
|
107
|
+
* @kosService core.utils
|
|
108
|
+
* @kosApiLevel 2
|
|
81
109
|
*/
|
|
82
110
|
export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKosDataModel, type: string) => T;
|
|
83
111
|
/**
|
|
@@ -86,16 +114,34 @@ export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKos
|
|
|
86
114
|
* @param model - The KOS data model for which to retrieve a companion model.
|
|
87
115
|
* @returns The list of companion KOS data models
|
|
88
116
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
117
|
+
*
|
|
118
|
+
* @kosService core.utils
|
|
119
|
+
* @kosApiLevel 2
|
|
89
120
|
*/
|
|
90
121
|
export declare const getAllKosCompanionModels: (model: IKosDataModel) => IKosDataModel[];
|
|
122
|
+
/**
|
|
123
|
+
* @kosService core.utils
|
|
124
|
+
* @kosApiLevel 5
|
|
125
|
+
*/
|
|
91
126
|
export declare const getObservableCompanions: (modelId: string) => import('mobx').ObservableMap<string, IKosModel<IKosDataModel>>;
|
|
127
|
+
/**
|
|
128
|
+
* @kosService core.utils
|
|
129
|
+
* @kosApiLevel 2
|
|
130
|
+
*/
|
|
92
131
|
export declare const resolveKosCompanion: <T extends IKosDataModel>(modelId: string, resolver: (model: T) => boolean) => IKosModel | undefined;
|
|
93
132
|
/**
|
|
94
133
|
* Checks if an object is an instance of a specific KOS data model type.
|
|
95
134
|
*
|
|
96
135
|
* @param type - The type of the KOS data model to check against.
|
|
97
136
|
* @returns A type guard function that checks if an object is an instance of the specified KOS data model type.
|
|
137
|
+
*
|
|
138
|
+
* @kosService core.utils
|
|
139
|
+
* @kosApiLevel 2
|
|
98
140
|
*/
|
|
99
141
|
export declare const isKosModel: <T extends IKosDataModel>(type: string) => (model: any) => model is T;
|
|
142
|
+
/**
|
|
143
|
+
* @kosService core.utils
|
|
144
|
+
* @kosApiLevel 2
|
|
145
|
+
*/
|
|
100
146
|
export declare const isKosModelReady: (model: IKosDataModel) => boolean;
|
|
101
147
|
//# sourceMappingURL=kos-model-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE
|
|
1
|
+
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,UAAiB,aAAa,kBAGzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAqB,aAAa,kBAS5D,CAAC;AACF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,UAAiB,aAAa,kBAevD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAmB,MAAM,gCAQpD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,qDACb,MAAM;;;EAShB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,qDACjB,MAAM;;;CAQhB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,uCACV,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAUhC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,uCACT,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,MACU,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,mCACxB,aAAa,QACd,MAAM,MAYb,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,UAAW,aAAa,oBAc5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,mEAYtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qCACrB,MAAM,YACL,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,KAC9B,SAAS,GAAG,SAWd,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,kCACW,MAAM,aAC9B,GAAG,eACwC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAW,aAAa,YAMnD,CAAC"}
|
|
@@ -6,6 +6,8 @@ import { IKosDataModel, IKosModel, IKosVisitor } from '../core/kosModel';
|
|
|
6
6
|
* @abstract
|
|
7
7
|
* @implements IKosVisitor<IKosModel>
|
|
8
8
|
* @category Core
|
|
9
|
+
* @kosService core.kos-model
|
|
10
|
+
* @kosApiLevel 2
|
|
9
11
|
*/
|
|
10
12
|
export declare abstract class KosModelVisitor implements IKosVisitor<IKosModel> {
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE
|
|
1
|
+
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,YAAW,WAAW,CAAC,SAAS,CAAC;IACrE;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAEvC;;OAEG;;IAKH;;;;;OAKG;IACH,KAAK,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI;IAiBrC;;;;OAIG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAqB7B;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACzD,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,eAAe,GACvB,OAAO,GAAG,IAAI;CAClB"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { ErrorResponseContext } from './service-request-error';
|
|
1
2
|
import { KosFetchOptions } from '../types';
|
|
2
3
|
|
|
4
|
+
export type { ErrorResponseContext };
|
|
3
5
|
/**
|
|
4
6
|
* Resolves the service URL configuration.
|
|
5
7
|
* @param _service - The optional service name (not used).
|
|
6
8
|
* @returns An object with `isMock` and `URL` properties.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.service-request
|
|
11
|
+
* @kosApiLevel 2
|
|
7
12
|
*/
|
|
8
13
|
export declare const resolveBaseUrl: () => {
|
|
9
14
|
isMock: boolean;
|
|
@@ -12,7 +17,13 @@ export declare const resolveBaseUrl: () => {
|
|
|
12
17
|
type NonNeverKeys<T> = {
|
|
13
18
|
[K in keyof T]-?: T[K] extends never | undefined ? never : K;
|
|
14
19
|
}[keyof T];
|
|
20
|
+
/**
|
|
21
|
+
* @kosService core.service-request
|
|
22
|
+
*/
|
|
15
23
|
export type AvailableMethods<T> = Exclude<NonNeverKeys<T>, "parameters" | "requestBody">;
|
|
24
|
+
/**
|
|
25
|
+
* @kosService core.service-request
|
|
26
|
+
*/
|
|
16
27
|
export type PathsByMethod<T> = {
|
|
17
28
|
[Method in "get" | "put" | "post" | "delete"]: {
|
|
18
29
|
[K in keyof T]: Method extends AvailableMethods<T[K]> ? K : never;
|
|
@@ -42,6 +53,9 @@ type ClientPutBody<Paths extends Record<string, any>, K extends keyof Paths> = P
|
|
|
42
53
|
content: infer B;
|
|
43
54
|
};
|
|
44
55
|
} ? B[keyof B] : never;
|
|
56
|
+
/**
|
|
57
|
+
* @kosService core.service-request
|
|
58
|
+
*/
|
|
45
59
|
export type ClientResponse<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
46
60
|
responses: {
|
|
47
61
|
200: {
|
|
@@ -49,17 +63,43 @@ export type ClientResponse<Paths extends Record<string, any>, K extends keyof Pa
|
|
|
49
63
|
};
|
|
50
64
|
};
|
|
51
65
|
} ? R[keyof R] : unknown;
|
|
52
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @kosService core.service-request
|
|
68
|
+
*/
|
|
69
|
+
export type ClientParams<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
70
|
+
parameters: infer P;
|
|
71
|
+
} ? P : never;
|
|
72
|
+
/**
|
|
73
|
+
* @kosService core.service-request
|
|
74
|
+
*/
|
|
75
|
+
export type ClientBody<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
76
|
+
requestBody: {
|
|
77
|
+
content: infer B;
|
|
78
|
+
};
|
|
79
|
+
} ? B[keyof B] : never;
|
|
80
|
+
/**
|
|
81
|
+
* @kosService core.service-request
|
|
82
|
+
*/
|
|
83
|
+
export type ServiceResponse<T> = [error: string, data: null, errorContext?: ErrorResponseContext] | [error: null, data: T];
|
|
84
|
+
/**
|
|
85
|
+
* @kosService core.service-request
|
|
86
|
+
*/
|
|
53
87
|
export type DeepRequired<T> = {
|
|
54
|
-
[K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K];
|
|
88
|
+
[K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K] extends Array<infer U> ? Array<DeepRequired<U>> : T[K];
|
|
55
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @kosService core.service-request
|
|
92
|
+
*/
|
|
56
93
|
export type ElementType<T> = T extends (infer U)[] ? U : never;
|
|
57
94
|
type RequestOptions = Omit<KosFetchOptions, "method" | "body">;
|
|
95
|
+
/**
|
|
96
|
+
* @kosService core.service-request
|
|
97
|
+
* @kosApiLevel 2
|
|
98
|
+
*/
|
|
58
99
|
export declare function createClient<Paths extends Record<string, any>>(): {
|
|
59
100
|
get: <K_1 extends { [K in keyof Paths]: "get" extends infer T ? T extends "get" ? T extends Exclude<NonNeverKeys<Paths[K]>, "parameters" | "requestBody"> ? K : never : never : never; }[keyof Paths]>(endpoint: K_1, params?: ClientGetParams<Paths, K_1> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_1, "get">>>;
|
|
60
101
|
post: <K_3 extends { [K_2 in keyof Paths]: "post" extends infer T_1 ? T_1 extends "post" ? T_1 extends Exclude<NonNeverKeys<Paths[K_2]>, "parameters" | "requestBody"> ? K_2 : never : never : never; }[keyof Paths]>(endpoint: K_3, params?: ClientPostParams<Paths, K_3> | undefined, body?: ClientPostBody<Paths, K_3> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_3, "post">>>;
|
|
61
102
|
put: <K_5 extends { [K_4 in keyof Paths]: "put" extends infer T_2 ? T_2 extends "put" ? T_2 extends Exclude<NonNeverKeys<Paths[K_4]>, "parameters" | "requestBody"> ? K_4 : never : never : never; }[keyof Paths]>(endpoint: K_5, params?: ClientPutParams<Paths, K_5> | undefined, body?: ClientPutBody<Paths, K_5> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_5, "put">>>;
|
|
62
103
|
delete: <K_7 extends { [K_6 in keyof Paths]: "delete" extends infer T_3 ? T_3 extends "delete" ? T_3 extends Exclude<NonNeverKeys<Paths[K_6]>, "parameters" | "requestBody"> ? K_6 : never : never : never; }[keyof Paths]>(endpoint: K_7, params?: ClientDeleteParams<Paths, K_7> | undefined, body?: ClientPutBody<Paths, K_7> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_7, "delete">>>;
|
|
63
104
|
};
|
|
64
|
-
export {};
|
|
65
105
|
//# sourceMappingURL=kos-service-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAG7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;CAI1B,CAAC;AAIF,KAAK,YAAY,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC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AM,CAAC,CAAC,GAC3B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GACtB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAkO/D,KAAK,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAC/D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;sRAQ9C,cAAc;qVAOd,cAAc;gVAQd,cAAc;4VAOd,cAAc;EAU7B"}
|
package/core/util/log-utils.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { LogLevelDesc } from 'loglevel';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.logging
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const getLogLevel: () => LogLevelDesc;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.logging
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const getKosMessageLogging: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.logging
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const getLogMessageToStudio: () => boolean;
|
|
6
18
|
//# sourceMappingURL=log-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.middleware
|
|
3
|
+
*/
|
|
1
4
|
export type Middleware<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> = (context: Context<D, R>, next: () => Promise<void>) => Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* @kosService core.middleware
|
|
7
|
+
* @kosApiLevel 2
|
|
8
|
+
*/
|
|
2
9
|
export interface Context<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> {
|
|
3
10
|
data: D;
|
|
4
11
|
result: Partial<R>;
|
|
5
12
|
}
|
|
6
13
|
type ScalarValue = string | number | boolean | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.middleware
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
7
18
|
export declare class MiddlewareChain<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>, T extends Context<D, R> = Context<D, R>> {
|
|
8
19
|
private middlewares;
|
|
9
20
|
use(middleware: Middleware<D, R>): void;
|
|
10
21
|
execute(context: T): Promise<void>;
|
|
11
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.middleware
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
12
27
|
export declare const processMiddleware: <D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>>(data: D, middleware: Middleware<D, R>[]) => Promise<R>;
|
|
13
28
|
export {};
|
|
14
29
|
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/middleware.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAC5C,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzE,MAAM,WAAW,OAAO,CACtB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAE9C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAChE,qBAAa,eAAe,CAC1B,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CAAC,WAAW,CAA0B;IAE7C,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,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A0B;IAE7C,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;IAIjC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAYzC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yGAItB,CAAC,cACK,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,eAQ/B,CAAC"}
|
|
@@ -31,7 +31,14 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
31
31
|
* ```typescript
|
|
32
32
|
* @kosDependency({modelType: Ingredient.type, id: propertyKey})
|
|
33
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* @kosService core.kos-model
|
|
36
|
+
* @kosApiLevel 2
|
|
34
37
|
*/
|
|
35
38
|
export declare const createPropKey: <R extends IKosDataModel>(key: keyof R) => string;
|
|
39
|
+
/**
|
|
40
|
+
* @kosService core.kos-model
|
|
41
|
+
* @kosApiLevel 2
|
|
42
|
+
*/
|
|
36
43
|
export declare const createOptionKey: <R extends object>(key: keyof R) => string;
|
|
37
44
|
//# sourceMappingURL=model-attribute-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,aAAa,iCAAkC,MAAM,CAAC,WAC1C,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,eAAe,0BAA2B,MAAM,CAAC,WACrC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DependencyLifecycle } from '../types/kos-dependency';
|
|
2
|
+
import { IKosDataModel, IKosModel } from '../core/kosModel';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Enhanced error class that preserves context through the model lifecycle.
|
|
6
|
+
*/
|
|
7
|
+
export declare class KosModelError extends Error {
|
|
8
|
+
readonly context: ModelErrorContext;
|
|
9
|
+
readonly originalCause?: Error;
|
|
10
|
+
constructor(message: string, context: ModelErrorContext, cause?: Error);
|
|
11
|
+
/**
|
|
12
|
+
* Format error with full context for logging.
|
|
13
|
+
*/
|
|
14
|
+
toDetailedString(): string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Context information for model errors.
|
|
18
|
+
*/
|
|
19
|
+
export interface ModelErrorContext {
|
|
20
|
+
/** Type of model involved */
|
|
21
|
+
modelType: string;
|
|
22
|
+
/** ID of model instance */
|
|
23
|
+
modelId?: string;
|
|
24
|
+
/** Parent model context if applicable */
|
|
25
|
+
parentModel?: {
|
|
26
|
+
type: string;
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
/** Lifecycle phase where error occurred */
|
|
30
|
+
lifecycle?: DependencyLifecycle | string;
|
|
31
|
+
/** Operation being performed */
|
|
32
|
+
operation?: string;
|
|
33
|
+
/** Options provided to the model */
|
|
34
|
+
options?: Record<string, any>;
|
|
35
|
+
/** Additional context-specific data */
|
|
36
|
+
metadata?: Record<string, any>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Wraps an error with model context, preserving the original error as cause.
|
|
40
|
+
*/
|
|
41
|
+
export declare function enrichError(error: Error | unknown, context: ModelErrorContext): KosModelError;
|
|
42
|
+
/**
|
|
43
|
+
* Safely executes an async operation with automatic error enrichment.
|
|
44
|
+
*/
|
|
45
|
+
export declare function executeWithContext<T>(operation: () => Promise<T>, context: ModelErrorContext): Promise<T>;
|
|
46
|
+
/**
|
|
47
|
+
* Safely executes a sync operation with automatic error enrichment.
|
|
48
|
+
*/
|
|
49
|
+
export declare function executeSyncWithContext<T>(operation: () => T, context: ModelErrorContext): T;
|
|
50
|
+
/**
|
|
51
|
+
* Creates context for a model from its data.
|
|
52
|
+
*/
|
|
53
|
+
export declare function createModelContext(model: IKosModel | IKosDataModel, operation?: string): ModelErrorContext;
|
|
54
|
+
/**
|
|
55
|
+
* Logs a collection of errors with summary and details.
|
|
56
|
+
*/
|
|
57
|
+
export declare function logErrorCollection(errors: Array<{
|
|
58
|
+
error: Error;
|
|
59
|
+
context: ModelErrorContext;
|
|
60
|
+
}>, summary: string): void;
|
|
61
|
+
//# sourceMappingURL=model-error-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-error-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-error-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,SAAgB,aAAa,CAAC,EAAE,KAAK,CAAC;gBAE1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,CAAC,EAAE,KAAK;IAYtE;;OAEG;IACH,gBAAgB,IAAI,MAAM;CAiC3B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,2CAA2C;IAC3C,SAAS,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;IACzC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,GAAG,OAAO,EACtB,OAAO,EAAE,iBAAiB,GACzB,aAAa,CAqBf;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,EACxC,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,SAAS,EAAE,MAAM,CAAC,EAClB,OAAO,EAAE,iBAAiB,GACzB,CAAC,CAQH;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,GAAG,aAAa,EAChC,SAAS,CAAC,EAAE,MAAM,GACjB,iBAAiB,CAkBnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,KAAK,CAAC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAAC,EAC3D,OAAO,EAAE,MAAM,GACd,IAAI,CAaN"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ModelFactory } from '../types/model';
|
|
2
2
|
import { IKosDataModel } from '../core/kosModel';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const modelFactory: <T extends IKosDataModel, O extends Object = {}>(typeId: string) => ModelFactory<T, O>;
|
|
5
9
|
//# sourceMappingURL=model-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,YAAY,2DACf,MAAM,KACb,aAAa,CAAC,EAAE,CAAC,CAmBnB,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { BaseKosModelRegistrationBean } from '../types/model';
|
|
2
2
|
import { KosCompanionModelType } from '../core/types/registration';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const updateModelRegistration: <T extends BaseKosModelRegistrationBean<any, any>>(modelRegistration: T) => void;
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.kos-model
|
|
11
|
+
* @kosApiLevel 2
|
|
12
|
+
*/
|
|
5
13
|
export declare const updateCompanionModelRegistration: (typeId: string, companionRegistration: KosCompanionModelType<any>) => void;
|
|
6
14
|
//# sourceMappingURL=model-registration-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-registration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-registration-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE,eAAO,MAAM,uBAAuB,wEAGf,CAAC,KACnB,IAEF,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACnC,MAAM,yBACS,sBAAsB,GAAG,CAAC,KAChD,IAKF,CAAC"}
|
|
1
|
+
{"version":3,"file":"model-registration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-registration-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,wEAGf,CAAC,KACnB,IAEF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,WACnC,MAAM,yBACS,sBAAsB,GAAG,CAAC,KAChD,IAKF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IKosModel } from '../core/kosModel';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Transition map type for lifecycle operations
|
|
5
|
+
*/
|
|
6
|
+
export type ModelPromiseResolver = (model: IKosModel) => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Transitions a model to the ACTIVE state
|
|
9
|
+
*/
|
|
10
|
+
export declare const transitionToActive: (model: IKosModel) => Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Transitions a model to the READY state
|
|
13
|
+
*/
|
|
14
|
+
export declare const transitionToReady: (model: IKosModel) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Transitions a model to the LOADED state
|
|
17
|
+
*/
|
|
18
|
+
export declare const transitionToLoad: (model: IKosModel) => Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Transitions a model to the UNLOADED state
|
|
21
|
+
*/
|
|
22
|
+
export declare const transitionToUnload: (model: IKosModel) => Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Transitions a model to the INITIALIZED state
|
|
25
|
+
*/
|
|
26
|
+
export declare const transitionToInit: (model: IKosModel) => Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Enum defining available lifecycle transitions
|
|
29
|
+
*/
|
|
30
|
+
export declare enum Transitions {
|
|
31
|
+
ACTIVE = "active",
|
|
32
|
+
READY = "ready",
|
|
33
|
+
LOAD = "load",
|
|
34
|
+
UNLOAD = "unload",
|
|
35
|
+
INIT = "init"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Mapping of transition types to their corresponding transition functions
|
|
39
|
+
*/
|
|
40
|
+
export declare const TransitionMap: Record<Transitions, ModelPromiseResolver>;
|
|
41
|
+
//# sourceMappingURL=model-transition-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-transition-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-transition-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAW,SAAS,KAAG,QAAQ,IAAI,CACM,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAW,SAAS,KAAG,QAAQ,IAAI,CAC9C,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,SAAS,KAAG,QAAQ,IAAI,CACG,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAW,SAAS,KAAG,QAAQ,IAAI,CACK,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,SAAS,KAAG,QAAQ,IAAI,CACc,CAAC;AAE/E;;GAEG;AACH,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,WAAW,EAAE,oBAAoB,CAMnE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IKosDataModel } from '../core/kosModel';
|
|
2
|
+
import { IKosModelContainer } from '../core/kos-container-model';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Type guard to check if a model has a toJSON method
|
|
6
|
+
*/
|
|
7
|
+
export declare const isPrintable: (model: any) => model is {
|
|
8
|
+
toJSON: () => object;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if an object is a KOS data model
|
|
12
|
+
*/
|
|
13
|
+
export declare const isKosDataModel: (model: any) => model is IKosDataModel;
|
|
14
|
+
/**
|
|
15
|
+
* Type guard to check if a model is a KOS model container
|
|
16
|
+
*/
|
|
17
|
+
export declare const isKosModelContainer: (model: any) => model is IKosModelContainer<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves a child attribute to its data model representation.
|
|
20
|
+
* Handles various collection types and extracts KOS data models.
|
|
21
|
+
*
|
|
22
|
+
* @param attribute - The attribute to resolve (can be a model, container, collection, or array)
|
|
23
|
+
* @returns The resolved data model(s) or undefined
|
|
24
|
+
*/
|
|
25
|
+
export declare const resolveChild: (attribute: any) => IKosDataModel | IKosDataModel[] | undefined;
|
|
26
|
+
//# sourceMappingURL=model-type-guards.d.ts.map
|