@kosdev-code/kos-ui-sdk 2.0.45 → 2.0.46
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 +0 -30
- package/common/events/eventBus.d.ts.map +1 -1
- package/common/events/eventBus.functional.d.ts +0 -48
- package/common/events/eventBus.functional.d.ts.map +1 -1
- package/common/events/eventBus.state.d.ts +0 -33
- package/common/events/eventBus.state.d.ts.map +1 -1
- package/core/core/decorators/index.d.ts +0 -11
- package/core/core/decorators/index.d.ts.map +1 -1
- package/core/core/decorators/kos-child.d.ts +0 -2
- package/core/core/decorators/kos-child.d.ts.map +1 -1
- package/core/core/decorators/kos-companion.d.ts +8 -158
- package/core/core/decorators/kos-companion.d.ts.map +1 -1
- package/core/core/decorators/kos-context.d.ts +0 -6
- package/core/core/decorators/kos-context.d.ts.map +1 -1
- package/core/core/decorators/kos-http-decorators.d.ts +0 -15
- package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
- package/core/core/decorators/kos-log.d.ts +0 -4
- package/core/core/decorators/kos-log.d.ts.map +1 -1
- package/core/core/decorators/kos-model-effect.d.ts +0 -9
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
- package/core/core/decorators/kos-parent.d.ts +0 -4
- package/core/core/decorators/kos-parent.d.ts.map +1 -1
- package/core/core/decorators/kos-reference.d.ts +0 -9
- package/core/core/decorators/kos-reference.d.ts.map +1 -1
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts +1 -17
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
- package/core/core/decorators/kosDependency.d.ts +1 -4
- package/core/core/decorators/kosDependency.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts +2 -17
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/decorators/kosSubscribe.d.ts +0 -9
- package/core/core/decorators/kosSubscribe.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts +5 -87
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/decorators/propKeys.d.ts +0 -14
- 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 +4 -64
- package/core/core/extension/extension-manager.d.ts.map +1 -1
- package/core/core/extension/initialize-extension.d.ts +0 -24
- package/core/core/extension/initialize-extension.d.ts.map +1 -1
- package/core/core/extension/plugin-extension-manager.d.ts +0 -11
- package/core/core/extension/plugin-extension-manager.d.ts.map +1 -1
- package/core/core/kos-container-model.d.ts +0 -188
- package/core/core/kos-container-model.d.ts.map +1 -1
- package/core/core/kos-data-container.d.ts +1 -93
- 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 +2 -55
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/kosModelManager.d.ts +1 -11
- 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 +4 -1
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
- package/core/core/model/kos-model-component-factory.d.ts +0 -4
- package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
- package/core/core/model/kos-offline-queue.d.ts +1 -78
- 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-subscription-manager.d.ts +0 -20
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
- package/core/core/model/model-introspection-utils.d.ts +0 -1
- package/core/core/model/model-introspection-utils.d.ts.map +1 -1
- package/core/core/model-instantiator.d.ts +0 -19
- package/core/core/model-instantiator.d.ts.map +1 -1
- package/core/core/registration/index.d.ts +0 -1
- 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 +1 -2
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/core/types/registration.d.ts +0 -7
- package/core/core/types/registration.d.ts.map +1 -1
- package/core/index.d.ts +1 -2
- package/core/index.d.ts.map +1 -1
- package/core/types/index.d.ts +0 -1
- package/core/types/index.d.ts.map +1 -1
- package/core/types/kos-dependency.d.ts +1 -48
- package/core/types/kos-dependency.d.ts.map +1 -1
- package/core/types/utils/kos-fetch.d.ts +0 -121
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/api-request-id.d.ts +0 -4
- package/core/util/api-request-id.d.ts.map +1 -1
- package/core/util/apply-mixins.d.ts +0 -4
- package/core/util/apply-mixins.d.ts.map +1 -1
- package/core/util/array-utils.d.ts +0 -4
- package/core/util/array-utils.d.ts.map +1 -1
- package/core/util/container-utils.d.ts +11 -264
- package/core/util/container-utils.d.ts.map +1 -1
- package/core/util/date-utils.d.ts +0 -29
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/debounce.d.ts +0 -3
- package/core/util/debounce.d.ts.map +1 -1
- package/core/util/feature-flags.d.ts +0 -19
- package/core/util/feature-flags.d.ts.map +1 -1
- package/core/util/get-query-params.d.ts +0 -4
- package/core/util/get-query-params.d.ts.map +1 -1
- package/core/util/hsl-to-hex.d.ts +0 -16
- package/core/util/hsl-to-hex.d.ts.map +1 -1
- package/core/util/index.d.ts +0 -3
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts +0 -37
- package/core/util/kos-config-init.d.ts.map +1 -1
- package/core/util/kos-data-mapper-utils.d.ts +0 -9
- package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts +0 -12
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-message-utils.d.ts +0 -88
- package/core/util/kos-message-utils.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +0 -46
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-model-visitor.d.ts +0 -2
- package/core/util/kos-model-visitor.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts +3 -43
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/log-utils.d.ts +0 -12
- package/core/util/log-utils.d.ts.map +1 -1
- package/core/util/middleware.d.ts +0 -15
- package/core/util/middleware.d.ts.map +1 -1
- package/core/util/model-attribute-utils.d.ts +0 -7
- package/core/util/model-attribute-utils.d.ts.map +1 -1
- package/core/util/model-factory.d.ts +0 -4
- package/core/util/model-factory.d.ts.map +1 -1
- package/core/util/model-registration-utils.d.ts +0 -8
- package/core/util/model-registration-utils.d.ts.map +1 -1
- package/core/util/model-utils.d.ts +29 -40
- package/core/util/model-utils.d.ts.map +1 -1
- package/core/util/observable-proxy-map.d.ts +0 -11
- package/core/util/observable-proxy-map.d.ts.map +1 -1
- package/core/util/paired-client-heartbeat.d.ts +0 -2
- package/core/util/paired-client-heartbeat.d.ts.map +1 -1
- package/core/util/pipe.d.ts +0 -4
- package/core/util/pipe.d.ts.map +1 -1
- package/core/util/retry-with-exponential-backoff.d.ts +0 -3
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +0 -10
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/session-utils.d.ts +0 -8
- package/core/util/session-utils.d.ts.map +1 -1
- package/core/util/wait-for-request.d.ts +0 -16
- package/core/util/wait-for-request.d.ts.map +1 -1
- package/core/util/when-ready.d.ts +0 -3
- package/core/util/when-ready.d.ts.map +1 -1
- package/index.cjs +123 -26909
- package/index.cjs.map +1 -1
- package/index.d.cts +3 -6
- package/index.d.ts +3 -6
- package/index.d.ts.map +1 -1
- package/index.js +13460 -25275
- package/index.js.map +1 -1
- package/models/constants/index.d.ts +1 -3
- package/models/constants/index.d.ts.map +1 -1
- package/models/decorators/future-service.d.ts +2 -27
- package/models/decorators/future-service.d.ts.map +1 -1
- package/models/models/browser-router/browser-router-model.d.ts +1 -80
- package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
- package/models/models/browser-router/types/index.d.ts +1 -26
- package/models/models/canvas-dispatcher/types/index.d.ts +0 -5
- package/models/models/canvas-renderer/types/index.d.ts +0 -5
- package/models/models/config-bean/config-bean-model-builder.d.ts +2 -4
- package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts +13 -117
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-types.d.ts +3 -6
- package/models/models/config-bean/config-bean-types.d.ts.map +1 -1
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts +1 -112
- 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 +19 -301
- package/models/models/device/device-model.d.ts +9 -219
- package/models/models/device/device-model.d.ts.map +1 -1
- package/models/models/device/device-registration.d.ts +48 -61
- package/models/models/device/device-registration.d.ts.map +1 -1
- package/models/models/device/types/index.d.ts +0 -42
- package/models/models/future/future-aware.d.ts +0 -82
- package/models/models/future/future-aware.d.ts.map +1 -1
- package/models/models/future/future-model.d.ts +5 -34
- package/models/models/future/future-model.d.ts.map +1 -1
- package/models/models/future/future-types.d.ts +9 -202
- 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/index.d.ts +0 -1
- package/models/models/index.d.ts.map +1 -1
- package/models/models/key-value/index.d.ts +0 -4
- package/models/models/key-value/index.d.ts.map +1 -1
- package/models/models/key-value/key-value-model.d.ts +0 -111
- package/models/models/key-value/key-value-model.d.ts.map +1 -1
- package/models/models/key-value/services/key-value-services.d.ts +2 -124
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
- package/models/models/key-value/types/index.d.ts +0 -57
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts +14 -61
- 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 +0 -191
- package/models/models/kos-time/kos-time-model.d.ts +0 -64
- package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
- package/models/models/kos-time/types/index.d.ts +0 -83
- package/models/models/log-block/log-block-container-model.d.ts +0 -132
- package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
- package/models/models/log-block/log-block-model.d.ts +0 -185
- package/models/models/log-block/log-block-model.d.ts.map +1 -1
- package/models/models/log-block/types/index.d.ts +0 -133
- package/models/models/log-stream/index.d.ts +2 -6
- package/models/models/log-stream/index.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-container-model.d.ts +0 -62
- package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-model.d.ts +0 -55
- package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
- package/models/models/log-stream/services/log-stream-services.d.ts +1 -2
- package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
- package/models/models/log-stream/types/index.d.ts +0 -79
- package/models/models/network-interface/index.d.ts +2 -6
- package/models/models/network-interface/index.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-container-model.d.ts +0 -62
- 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 +1 -2
- package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-model.d.ts +0 -77
- package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-registration.d.ts +1 -2
- package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
- package/models/models/network-interface/services/network-interface-services.d.ts +0 -54
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
- package/models/models/network-interface/types/index.d.ts +0 -22
- package/models/models/ota/ota-model.d.ts +0 -79
- package/models/models/ota/ota-model.d.ts.map +1 -1
- package/models/models/ota/types/index.d.ts +0 -177
- package/models/models/region-info/region-info-model.d.ts +3 -8
- 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 +13 -191
- 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 +2 -74
- package/models/models/software-info/software-info-model.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +17 -52
- package/models/models/state-bean/state-bean-model.d.ts +9 -86
- package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
- package/models/models/state-bean/types/index.d.ts +6 -117
- package/models/models/state-prop/state-prop-model.d.ts +1 -78
- package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
- package/models/models/state-prop/types/index.d.ts +7 -57
- package/models/models/storage-device/services/storage-device-services.d.ts +0 -1
- 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 +2 -289
- package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-model.d.ts +2 -84
- package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
- package/models/models/storage-device/types/index.d.ts +0 -114
- package/models/models/studio-properties/studio-properties-model.d.ts +0 -75
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
- package/models/models/studio-properties/types/index.d.ts +0 -29
- package/models/models/translation/services/translation-services.d.ts +2 -128
- package/models/models/translation/services/translation-services.d.ts.map +1 -1
- package/models/models/translation/translation-container-model.d.ts +10 -100
- package/models/models/translation/translation-container-model.d.ts.map +1 -1
- package/models/models/translation/translation-container-registration.d.ts +1 -2
- package/models/models/translation/translation-container-registration.d.ts.map +1 -1
- package/models/models/translation/translation-context.d.ts +16 -1
- package/models/models/translation/translation-context.d.ts.map +1 -1
- package/models/models/translation/translation-model.d.ts +1 -113
- package/models/models/translation/translation-model.d.ts.map +1 -1
- package/models/models/translation/types/index.d.ts +0 -343
- package/models/models/trouble/index.d.ts +1 -2
- package/models/models/trouble/index.d.ts.map +1 -1
- package/models/models/trouble/services/trouble-services.d.ts +4 -6
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
- package/models/models/trouble/trouble-model.d.ts +1 -4
- package/models/models/trouble/trouble-model.d.ts.map +1 -1
- package/models/models/trouble/types/index.d.ts +93 -34
- 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 +3 -4
- package/models/models/trouble-container/index.d.ts.map +1 -1
- package/models/models/trouble-container/trouble-container-model.d.ts +6 -10
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/models/models/trouble-container/trouble-container-registration.d.ts +5 -0
- package/models/models/trouble-container/trouble-container-registration.d.ts.map +1 -0
- package/models/models/trouble-container/types/index.d.ts +15 -6
- package/models/models/usb-update/types/index.d.ts +0 -10
- 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 +12 -16
- 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 +13 -54
- package/models/utils/extension-manager.d.ts.map +1 -1
- package/models/utils/index.d.ts +2 -3
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/kosmodel-compatible-future-mixin.d.ts +142 -0
- package/models/utils/kosmodel-compatible-future-mixin.d.ts.map +1 -0
- package/models/utils/kosmodel-interface-companion-mixin.d.ts +83 -0
- package/models/utils/kosmodel-interface-companion-mixin.d.ts.map +1 -0
- package/models/utils/service.d.ts +13 -91
- package/models/utils/service.d.ts.map +1 -1
- package/package.json +2 -16
- 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 +0 -6
- package/ui/hooks/device/use-device.d.ts.map +1 -1
- package/ui/hooks/index.d.ts +0 -1
- package/ui/hooks/index.d.ts.map +1 -1
- package/ui/hooks/kos-time/use-kos-time.d.ts +0 -6
- 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 +0 -6
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -1
- package/ui/hooks/ota/use-ota.d.ts +0 -6
- package/ui/hooks/ota/use-ota.d.ts.map +1 -1
- package/ui/hooks/software-info/use-software-info.d.ts +0 -6
- 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 +0 -6
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/trans.d.ts +0 -6
- package/ui/hooks/translation-container/trans.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation-container.d.ts +33 -10
- package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation.d.ts +0 -7
- package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
- package/ui/hooks/translation-container/with-translation-container.d.ts +0 -6
- 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 +0 -6
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -1
- package/ui/hooks/use-config-bean.d.ts +0 -6
- package/ui/hooks/use-config-bean.d.ts.map +1 -1
- package/ui/hooks/use-config-property.d.ts +0 -6
- package/ui/hooks/use-config-property.d.ts.map +1 -1
- package/ui/hooks/use-kos-model.d.ts +0 -7
- package/ui/hooks/use-kos-model.d.ts.map +1 -1
- package/ui/hooks/use-kos-regions.d.ts.map +1 -1
- package/core/constants/model-constants.d.ts +0 -9
- package/core/constants/model-constants.d.ts.map +0 -1
- package/core/core/companion-instantiator.d.ts +0 -71
- package/core/core/companion-instantiator.d.ts.map +0 -1
- package/core/core/decorators/fsm-injection-utils.d.ts +0 -16
- package/core/core/decorators/fsm-injection-utils.d.ts.map +0 -1
- package/core/core/decorators/kos-container-aware.d.ts +0 -619
- package/core/core/decorators/kos-container-aware.d.ts.map +0 -1
- package/core/core/decorators/kos-execution-context.d.ts +0 -63
- package/core/core/decorators/kos-execution-context.d.ts.map +0 -1
- package/core/core/decorators/kos-future-aware.d.ts +0 -162
- package/core/core/decorators/kos-future-aware.d.ts.map +0 -1
- package/core/core/decorators/kos-logger-aware.d.ts +0 -105
- package/core/core/decorators/kos-logger-aware.d.ts.map +0 -1
- package/core/core/decorators/kos-multiple-future-aware.d.ts +0 -217
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +0 -1
- package/core/core/decorators/kos-service-request-helpers.d.ts +0 -60
- package/core/core/decorators/kos-service-request-helpers.d.ts.map +0 -1
- package/core/core/decorators/kos-service-request.d.ts +0 -498
- package/core/core/decorators/kos-service-request.d.ts.map +0 -1
- package/core/core/decorators/kos-state-machine.d.ts +0 -534
- package/core/core/decorators/kos-state-machine.d.ts.map +0 -1
- package/core/core/decorators/kos-trouble-aware.d.ts +0 -77
- package/core/core/decorators/kos-trouble-aware.d.ts.map +0 -1
- package/core/core/decorators/kos-view-model.d.ts +0 -176
- package/core/core/decorators/kos-view-model.d.ts.map +0 -1
- package/core/core/model/kos-service-request-manager.d.ts +0 -102
- package/core/core/model/kos-service-request-manager.d.ts.map +0 -1
- package/core/core/model/service-response-store.d.ts +0 -164
- package/core/core/model/service-response-store.d.ts.map +0 -1
- package/core/types/service-response-store.d.ts +0 -162
- package/core/types/service-response-store.d.ts.map +0 -1
- package/core/util/ancestor-path-visitor.d.ts +0 -60
- package/core/util/ancestor-path-visitor.d.ts.map +0 -1
- package/core/util/error-logger.d.ts +0 -16
- package/core/util/error-logger.d.ts.map +0 -1
- package/core/util/model-error-utils.d.ts +0 -61
- package/core/util/model-error-utils.d.ts.map +0 -1
- package/core/util/model-transition-utils.d.ts +0 -41
- package/core/util/model-transition-utils.d.ts.map +0 -1
- package/core/util/model-type-guards.d.ts +0 -26
- package/core/util/model-type-guards.d.ts.map +0 -1
- package/core/util/promise-utils.d.ts +0 -58
- package/core/util/promise-utils.d.ts.map +0 -1
- package/core/util/service-request-error.d.ts +0 -60
- package/core/util/service-request-error.d.ts.map +0 -1
- package/core/util/service-response.d.ts +0 -125
- package/core/util/service-response.d.ts.map +0 -1
- package/kos-models.json +0 -426
- package/models/models/config-bean/types/index.d.ts +0 -34
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts +0 -25
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +0 -1
- package/models/models/gpio-chip/gpio-chip-model.d.ts +0 -30
- package/models/models/gpio-chip/gpio-chip-model.d.ts.map +0 -1
- package/models/models/gpio-chip/index.d.ts +0 -7
- package/models/models/gpio-chip/index.d.ts.map +0 -1
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts +0 -86
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts.map +0 -1
- package/models/models/gpio-chip/services/index.d.ts +0 -2
- package/models/models/gpio-chip/services/index.d.ts.map +0 -1
- package/models/models/gpio-chip/types/index.d.ts +0 -24
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts +0 -23
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts.map +0 -1
- package/models/models/gpio-pin/gpio-pin-model.d.ts +0 -26
- package/models/models/gpio-pin/gpio-pin-model.d.ts.map +0 -1
- package/models/models/gpio-pin/index.d.ts +0 -6
- package/models/models/gpio-pin/index.d.ts.map +0 -1
- package/models/models/gpio-pin/types/index.d.ts +0 -23
- package/models/models/kos-expression-evaluator/index.d.ts +0 -4
- package/models/models/kos-expression-evaluator/index.d.ts.map +0 -1
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +0 -209
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +0 -1
- package/models/models/kos-expression-evaluator/services/index.d.ts +0 -6
- package/models/models/kos-expression-evaluator/services/index.d.ts.map +0 -1
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +0 -15
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +0 -1
- package/models/models/kos-expression-evaluator/types/index.d.ts +0 -6
- package/models/utils/get-kos-connection-id.d.ts +0 -2
- package/models/utils/get-kos-connection-id.d.ts.map +0 -1
- package/models/utils/openapi-index.d.ts +0 -3
- package/models/utils/openapi-index.d.ts.map +0 -1
- package/models/utils/service-accessor.d.ts +0 -86
- package/models/utils/service-accessor.d.ts.map +0 -1
- package/models/utils/services/kos/1.6.5/openapi.d.ts +0 -3809
- package/models/utils/services/kos/1.6.5/service.d.ts +0 -124
- package/models/utils/services/kos/1.6.5/service.d.ts.map +0 -1
- package/models/utils/services/kos/1.8.1/openapi.d.ts +0 -4344
- package/models/utils/services/kos/1.8.1/service.d.ts +0 -124
- package/models/utils/services/kos/1.8.1/service.d.ts.map +0 -1
- package/models/utils/services/kos/1.9.x/openapi.d.ts +0 -4597
- package/models/utils/services/kos/1.9.x/service.d.ts +0 -124
- package/models/utils/services/kos/1.9.x/service.d.ts.map +0 -1
- package/models/utils/services/kos/daily/openapi.d.ts +0 -4349
- package/models/utils/services/kos/daily/service.d.ts +0 -124
- package/models/utils/services/kos/daily/service.d.ts.map +0 -1
- package/models/utils/services/vfs/1.6.5/openapi.d.ts +0 -51
- package/models/utils/services/vfs/1.6.5/service.d.ts +0 -124
- package/models/utils/services/vfs/1.6.5/service.d.ts.map +0 -1
- package/models/utils/services/vfs/1.8.1/openapi.d.ts +0 -51
- package/models/utils/services/vfs/1.8.1/service.d.ts +0 -124
- package/models/utils/services/vfs/1.8.1/service.d.ts.map +0 -1
- package/models/utils/services/vfs/1.9.x/openapi.d.ts +0 -51
- package/models/utils/services/vfs/1.9.x/service.d.ts +0 -124
- package/models/utils/services/vfs/1.9.x/service.d.ts.map +0 -1
- package/models/utils/services/vfs/daily/openapi.d.ts +0 -51
- package/models/utils/services/vfs/daily/service.d.ts +0 -124
- package/models/utils/services/vfs/daily/service.d.ts.map +0 -1
- package/models/utils/services-index.d.ts +0 -9
- package/models/utils/services-index.d.ts.map +0 -1
- package/ui/hooks/view-model/index.d.ts +0 -2
- package/ui/hooks/view-model/index.d.ts.map +0 -1
- package/ui/hooks/view-model/use-view-model.d.ts +0 -80
- package/ui/hooks/view-model/use-view-model.d.ts.map +0 -1
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @kosService core.event-bus
|
|
3
|
-
* @kosApiLevel 2
|
|
4
|
-
*/
|
|
5
1
|
export interface ApiCallback<T = string> {
|
|
6
2
|
headers: Record<string, string>;
|
|
7
3
|
body: T;
|
|
8
4
|
}
|
|
9
|
-
/**
|
|
10
|
-
* @kosService core.event-bus
|
|
11
|
-
*/
|
|
12
5
|
export type EventCallback<T = ApiCallback> = (msg?: T) => void;
|
|
13
|
-
/**
|
|
14
|
-
* @kosService core.event-bus
|
|
15
|
-
* @kosApiLevel 2
|
|
16
|
-
*/
|
|
17
6
|
export interface PublishResponse {
|
|
18
7
|
eventType: string;
|
|
19
8
|
subscribers: number;
|
|
20
9
|
}
|
|
21
|
-
/**
|
|
22
|
-
* @kosService core.event-bus
|
|
23
|
-
* @kosApiLevel 7
|
|
24
|
-
*/
|
|
25
10
|
export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
26
11
|
/**
|
|
27
12
|
* Subscribes to a specific event type with a callback function.
|
|
@@ -34,9 +19,6 @@ export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
|
34
19
|
* @returns An object containing:
|
|
35
20
|
* - `count`: The number of active subscriptions for the event type.
|
|
36
21
|
* - `unsubscribe`: A function to unsubscribe from the event, which also returns the updated subscription count.
|
|
37
|
-
*
|
|
38
|
-
* @kosService core.event-bus
|
|
39
|
-
* @kosApiLevel 2
|
|
40
22
|
*/
|
|
41
23
|
export declare function subscribe<T = ApiCallback>(eventType: string, callback: EventCallback<T>): {
|
|
42
24
|
count: number;
|
|
@@ -60,9 +42,6 @@ export declare function subscribe<T = ApiCallback>(eventType: string, callback:
|
|
|
60
42
|
* - If the "sync" header is present, the function waits for a response from the subscriber and
|
|
61
43
|
* publishes the response back to the source using the sync ID.
|
|
62
44
|
* - 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
|
|
66
45
|
*/
|
|
67
46
|
export declare function publish(eventType: string, msg: unknown, headers?: Record<string, string>): PublishResponse;
|
|
68
47
|
/**
|
|
@@ -77,9 +56,6 @@ export declare function publish(eventType: string, msg: unknown, headers?: Recor
|
|
|
77
56
|
* ```typescript
|
|
78
57
|
* reset(); // Clears all event subscriptions and logs a warning.
|
|
79
58
|
* ```
|
|
80
|
-
*
|
|
81
|
-
* @kosService core.event-bus
|
|
82
|
-
* @kosApiLevel 2
|
|
83
59
|
*/
|
|
84
60
|
export declare function reset(): void;
|
|
85
61
|
/**
|
|
@@ -88,9 +64,6 @@ export declare function reset(): void;
|
|
|
88
64
|
* @param eventType - The event type to listen for
|
|
89
65
|
* @param callback - The callback to execute once
|
|
90
66
|
* @returns Unsubscribe function
|
|
91
|
-
*
|
|
92
|
-
* @kosService core.event-bus
|
|
93
|
-
* @kosApiLevel 11
|
|
94
67
|
*/
|
|
95
68
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
96
69
|
/**
|
|
@@ -99,9 +72,6 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
99
72
|
* @param eventType - The event type to wait for
|
|
100
73
|
* @param timeout - Optional timeout in milliseconds
|
|
101
74
|
* @returns Promise that resolves with the event data
|
|
102
|
-
*
|
|
103
|
-
* @kosService core.event-bus
|
|
104
|
-
* @kosApiLevel 11
|
|
105
75
|
*/
|
|
106
76
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
107
77
|
//# 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
|
|
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;;;;;;;;;;;GAWG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
|
@@ -6,9 +6,6 @@ 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
|
|
12
9
|
*/
|
|
13
10
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
14
11
|
/**
|
|
@@ -17,9 +14,6 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
17
14
|
* @param eventType - The event type to wait for
|
|
18
15
|
* @param timeout - Optional timeout in milliseconds
|
|
19
16
|
* @returns Promise that resolves with the event data
|
|
20
|
-
*
|
|
21
|
-
* @kosService core.event-bus
|
|
22
|
-
* @kosApiLevel 11
|
|
23
17
|
*/
|
|
24
18
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
25
19
|
/**
|
|
@@ -28,9 +22,6 @@ export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: nu
|
|
|
28
22
|
* @param eventTypes - Array of event types to wait for
|
|
29
23
|
* @param timeout - Optional timeout in milliseconds
|
|
30
24
|
* @returns Promise that resolves when all events have occurred
|
|
31
|
-
*
|
|
32
|
-
* @kosService core.event-bus
|
|
33
|
-
* @kosApiLevel 11
|
|
34
25
|
*/
|
|
35
26
|
export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<T[]>;
|
|
36
27
|
/**
|
|
@@ -39,9 +30,6 @@ export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeou
|
|
|
39
30
|
* @param eventTypes - Array of event types to race
|
|
40
31
|
* @param timeout - Optional timeout in milliseconds
|
|
41
32
|
* @returns Promise that resolves with the first event
|
|
42
|
-
*
|
|
43
|
-
* @kosService core.event-bus
|
|
44
|
-
* @kosApiLevel 11
|
|
45
33
|
*/
|
|
46
34
|
export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<{
|
|
47
35
|
eventType: string;
|
|
@@ -54,9 +42,6 @@ export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: nu
|
|
|
54
42
|
* @param predicate - Function to test each event
|
|
55
43
|
* @param callback - Callback for events that pass the filter
|
|
56
44
|
* @returns Unsubscribe function
|
|
57
|
-
*
|
|
58
|
-
* @kosService core.event-bus
|
|
59
|
-
* @kosApiLevel 11
|
|
60
45
|
*/
|
|
61
46
|
export declare function filter<T = ApiCallback>(eventType: string, predicate: (msg: T) => boolean, callback: EventCallback<T>): () => void;
|
|
62
47
|
/**
|
|
@@ -66,9 +51,6 @@ export declare function filter<T = ApiCallback>(eventType: string, predicate: (m
|
|
|
66
51
|
* @param transform - Function to transform the event data
|
|
67
52
|
* @param callback - Callback for transformed events
|
|
68
53
|
* @returns Unsubscribe function
|
|
69
|
-
*
|
|
70
|
-
* @kosService core.event-bus
|
|
71
|
-
* @kosApiLevel 11
|
|
72
54
|
*/
|
|
73
55
|
export declare function map<T = ApiCallback, R = any>(eventType: string, transform: (msg: T) => R, callback: (msg: R) => void): () => void;
|
|
74
56
|
/**
|
|
@@ -78,9 +60,6 @@ export declare function map<T = ApiCallback, R = any>(eventType: string, transfo
|
|
|
78
60
|
* @param delay - Delay in milliseconds
|
|
79
61
|
* @param callback - Callback for debounced events
|
|
80
62
|
* @returns Unsubscribe function
|
|
81
|
-
*
|
|
82
|
-
* @kosService core.event-bus
|
|
83
|
-
* @kosApiLevel 11
|
|
84
63
|
*/
|
|
85
64
|
export declare function debounce<T = ApiCallback>(eventType: string, delay: number, callback: EventCallback<T>): () => void;
|
|
86
65
|
/**
|
|
@@ -90,9 +69,6 @@ export declare function debounce<T = ApiCallback>(eventType: string, delay: numb
|
|
|
90
69
|
* @param interval - Minimum interval between emissions in milliseconds
|
|
91
70
|
* @param callback - Callback for throttled events
|
|
92
71
|
* @returns Unsubscribe function
|
|
93
|
-
*
|
|
94
|
-
* @kosService core.event-bus
|
|
95
|
-
* @kosApiLevel 11
|
|
96
72
|
*/
|
|
97
73
|
export declare function throttle<T = ApiCallback>(eventType: string, interval: number, callback: EventCallback<T>): () => void;
|
|
98
74
|
/**
|
|
@@ -102,9 +78,6 @@ export declare function throttle<T = ApiCallback>(eventType: string, interval: n
|
|
|
102
78
|
* @param bufferTime - Time window to collect events in milliseconds
|
|
103
79
|
* @param callback - Callback for buffered events
|
|
104
80
|
* @returns Unsubscribe function
|
|
105
|
-
*
|
|
106
|
-
* @kosService core.event-bus
|
|
107
|
-
* @kosApiLevel 11
|
|
108
81
|
*/
|
|
109
82
|
export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: number, callback: (events: T[]) => void): () => void;
|
|
110
83
|
/**
|
|
@@ -113,9 +86,6 @@ export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: n
|
|
|
113
86
|
* @param eventType - The event type to replay
|
|
114
87
|
* @param bufferSize - Number of events to remember
|
|
115
88
|
* @returns Object with subscribe method that replays buffered events
|
|
116
|
-
*
|
|
117
|
-
* @kosService core.event-bus
|
|
118
|
-
* @kosApiLevel 11
|
|
119
89
|
*/
|
|
120
90
|
export declare function replay<T = ApiCallback>(eventType: string, bufferSize?: number): {
|
|
121
91
|
subscribe: (callback: EventCallback<T>) => {
|
|
@@ -131,9 +101,6 @@ export declare function replay<T = ApiCallback>(eventType: string, bufferSize?:
|
|
|
131
101
|
* @param eventTypes - Array of event types to merge
|
|
132
102
|
* @param callback - Callback for all merged events
|
|
133
103
|
* @returns Unsubscribe function for all subscriptions
|
|
134
|
-
*
|
|
135
|
-
* @kosService core.event-bus
|
|
136
|
-
* @kosApiLevel 11
|
|
137
104
|
*/
|
|
138
105
|
export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (eventType: string, msg: T) => void): () => void;
|
|
139
106
|
/**
|
|
@@ -142,9 +109,6 @@ export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (
|
|
|
142
109
|
* @param initialState - The initial state
|
|
143
110
|
* @param transitions - Object mapping states to event handlers
|
|
144
111
|
* @returns Object with current state and unsubscribe function
|
|
145
|
-
*
|
|
146
|
-
* @kosService core.event-bus
|
|
147
|
-
* @kosApiLevel 11
|
|
148
112
|
*/
|
|
149
113
|
export declare function stateMachine<TState extends string, T = ApiCallback>(initialState: TState, transitions: Record<TState, Record<string, (msg: T) => TState>>): {
|
|
150
114
|
readonly state: TState;
|
|
@@ -158,9 +122,6 @@ export declare function stateMachine<TState extends string, T = ApiCallback>(ini
|
|
|
158
122
|
* @param request - The request data to publish
|
|
159
123
|
* @param timeout - Optional timeout in milliseconds
|
|
160
124
|
* @returns Promise that resolves with the response
|
|
161
|
-
*
|
|
162
|
-
* @kosService core.event-bus
|
|
163
|
-
* @kosApiLevel 11
|
|
164
125
|
*/
|
|
165
126
|
export declare function request<TRequest = any, TResponse = ApiCallback>(requestEvent: string, responseEvent: string, request: TRequest, timeout?: number): Promise<TResponse>;
|
|
166
127
|
/**
|
|
@@ -168,17 +129,8 @@ export declare function request<TRequest = any, TResponse = ApiCallback>(request
|
|
|
168
129
|
*
|
|
169
130
|
* @param eventType - The event type to iterate
|
|
170
131
|
* @returns Async iterator for use with for-await-of
|
|
171
|
-
*
|
|
172
|
-
* @kosService core.event-bus
|
|
173
|
-
* @kosApiLevel 11
|
|
174
132
|
*/
|
|
175
133
|
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
|
-
*/
|
|
182
134
|
export declare const EventBusFunctional: {
|
|
183
135
|
once: typeof once;
|
|
184
136
|
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":"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"}
|
|
@@ -2,9 +2,6 @@ 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
|
|
8
5
|
*/
|
|
9
6
|
export interface StateAwareOptions<T> {
|
|
10
7
|
/** Function to fetch the current state */
|
|
@@ -23,9 +20,6 @@ export interface StateAwareOptions<T> {
|
|
|
23
20
|
* @param eventType - The event type to wait for
|
|
24
21
|
* @param options - Options for state fetching and transformation
|
|
25
22
|
* @returns Promise that resolves with either the event data or current state
|
|
26
|
-
*
|
|
27
|
-
* @kosService core.event-bus
|
|
28
|
-
* @kosApiLevel 11
|
|
29
23
|
*/
|
|
30
24
|
export declare function waitForOrGetState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
31
25
|
/**
|
|
@@ -35,9 +29,6 @@ export declare function waitForOrGetState<T = ApiCallback>(eventType: string, op
|
|
|
35
29
|
* @param callback - Callback for state updates
|
|
36
30
|
* @param options - Options for initial state fetching
|
|
37
31
|
* @returns Unsubscribe function
|
|
38
|
-
*
|
|
39
|
-
* @kosService core.event-bus
|
|
40
|
-
* @kosApiLevel 11
|
|
41
32
|
*/
|
|
42
33
|
export declare function subscribeWithInitialState<T = ApiCallback>(eventType: string, callback: EventCallback<T>, options: StateAwareOptions<T>): () => void;
|
|
43
34
|
/**
|
|
@@ -46,9 +37,6 @@ export declare function subscribeWithInitialState<T = ApiCallback>(eventType: st
|
|
|
46
37
|
* @param eventType - The event type for updates
|
|
47
38
|
* @param stateApi - API endpoint or function to fetch current state
|
|
48
39
|
* @returns Object with subscribe method and current state getter
|
|
49
|
-
*
|
|
50
|
-
* @kosService core.event-bus
|
|
51
|
-
* @kosApiLevel 11
|
|
52
40
|
*/
|
|
53
41
|
export declare function createStatefulEventStream<T = any>(eventType: string, stateApi: string | (() => Promise<T>)): {
|
|
54
42
|
/** Get current state synchronously (may be undefined if not loaded) */
|
|
@@ -67,9 +55,6 @@ export declare function createStatefulEventStream<T = any>(eventType: string, st
|
|
|
67
55
|
* @param eventTypes - Array of event types to wait for
|
|
68
56
|
* @param options - Shared state checking options
|
|
69
57
|
* @returns Promise that resolves when all events have occurred or state is ready
|
|
70
|
-
*
|
|
71
|
-
* @kosService core.event-bus
|
|
72
|
-
* @kosApiLevel 11
|
|
73
58
|
*/
|
|
74
59
|
export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[], options: StateAwareOptions<T>): Promise<T>;
|
|
75
60
|
/**
|
|
@@ -78,9 +63,6 @@ export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[
|
|
|
78
63
|
* @param eventType - Single event type to wait for
|
|
79
64
|
* @param options - State checking options
|
|
80
65
|
* @returns Promise that resolves when event occurs or state is ready
|
|
81
|
-
*
|
|
82
|
-
* @kosService core.event-bus
|
|
83
|
-
* @kosApiLevel 11
|
|
84
66
|
*/
|
|
85
67
|
export declare function waitForAllWithState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
86
68
|
/**
|
|
@@ -89,9 +71,6 @@ export declare function waitForAllWithState<T = ApiCallback>(eventType: string,
|
|
|
89
71
|
* @param eventType - Event type to handle
|
|
90
72
|
* @param handler - Event handler function
|
|
91
73
|
* @param recoveryStrategy - Strategy for recovering missed events
|
|
92
|
-
*
|
|
93
|
-
* @kosService core.event-bus
|
|
94
|
-
* @kosApiLevel 11
|
|
95
74
|
*/
|
|
96
75
|
export declare function createResilientEventHandler<T = ApiCallback>(eventType: string, handler: (data: T) => void | Promise<void>, recoveryStrategy: {
|
|
97
76
|
/** API to fetch missed events or current state */
|
|
@@ -104,9 +83,6 @@ export declare function createResilientEventHandler<T = ApiCallback>(eventType:
|
|
|
104
83
|
/**
|
|
105
84
|
* Pattern for handling connection state with events
|
|
106
85
|
* Useful for WebSocket connections, plugin loading, etc.
|
|
107
|
-
*
|
|
108
|
-
* @kosService core.event-bus
|
|
109
|
-
* @kosApiLevel 11
|
|
110
86
|
*/
|
|
111
87
|
export interface ConnectionStateManager<T = any> {
|
|
112
88
|
/** Current connection state */
|
|
@@ -122,9 +98,6 @@ export interface ConnectionStateManager<T = any> {
|
|
|
122
98
|
}
|
|
123
99
|
/**
|
|
124
100
|
* Create a connection state manager that handles online/offline scenarios
|
|
125
|
-
*
|
|
126
|
-
* @kosService core.event-bus
|
|
127
|
-
* @kosApiLevel 11
|
|
128
101
|
*/
|
|
129
102
|
export declare function createConnectionStateManager<T = any>(config: {
|
|
130
103
|
connectEvent: string;
|
|
@@ -134,12 +107,6 @@ export declare function createConnectionStateManager<T = any>(config: {
|
|
|
134
107
|
fetchInitialState: () => Promise<T>;
|
|
135
108
|
reconnectDelay?: number;
|
|
136
109
|
}): ConnectionStateManager<T>;
|
|
137
|
-
/**
|
|
138
|
-
* Namespace collecting all state-aware event bus utilities.
|
|
139
|
-
*
|
|
140
|
-
* @kosService core.event-bus
|
|
141
|
-
* @kosApiLevel 11
|
|
142
|
-
*/
|
|
143
110
|
export declare const EventBusState: {
|
|
144
111
|
waitForOrGetState: typeof waitForOrGetState;
|
|
145
112
|
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":"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"}
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
export * from './fsm-injection-utils';
|
|
2
1
|
export * from './kos-child';
|
|
3
2
|
export * from './kos-companion';
|
|
4
|
-
export * from './kos-container-aware';
|
|
5
3
|
export * from './kos-context';
|
|
6
|
-
export * from './kos-execution-context';
|
|
7
|
-
export * from './kos-future-aware';
|
|
8
|
-
export * from './kos-multiple-future-aware';
|
|
9
4
|
export * from './kos-http-decorators';
|
|
10
5
|
export * from './kos-log';
|
|
11
|
-
export * from './kos-logger-aware';
|
|
12
6
|
export * from './kos-model-effect';
|
|
13
7
|
export * from './kos-parent';
|
|
14
8
|
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';
|
|
19
9
|
export * from './kosDependency';
|
|
20
10
|
export * from './kosModel';
|
|
21
11
|
export * from './kosSubscribe';
|
|
22
12
|
export * from './kosTopicHandler';
|
|
23
|
-
export * from './kos-view-model';
|
|
24
13
|
export * from './propKeys';
|
|
25
14
|
//# 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,
|
|
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"}
|
|
@@ -14,8 +14,6 @@
|
|
|
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
|
|
19
17
|
*/
|
|
20
18
|
export declare const kosChild: (target: {} | any, name: PropertyKey) => any;
|
|
21
19
|
//# 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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,WAAY,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAG9D,CAAC"}
|
|
@@ -1,161 +1,11 @@
|
|
|
1
1
|
import { IKosDataModel } from '../kosModel';
|
|
2
|
-
import { DependencyLifecycle } from '../../types';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* - 'composition': Only provide getCompanionParent() method
|
|
13
|
-
*/
|
|
14
|
-
mode?: "decorator" | "composition";
|
|
15
|
-
/** Properties to exclude from proxying (only applies in decorator mode). Default: [] */
|
|
16
|
-
excludeProperties?: string[];
|
|
17
|
-
/** Custom parent property name. Default: 'companionParent' */
|
|
18
|
-
parentProperty?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Lifecycle phase at which this companion should be created.
|
|
21
|
-
* Defaults to INIT (created immediately during parent instantiation).
|
|
22
|
-
* Use LOAD to create after parent's load() completes, READY for after ready(), etc.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* @kosCompanion({ lifecycle: DependencyLifecycle.LOAD })
|
|
27
|
-
* class CarbAgitatorModel implements IKosDataModel {
|
|
28
|
-
* // Created after assembly.load() completes
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
* @kosApiLevel 15
|
|
32
|
-
*/
|
|
33
|
-
lifecycle?: DependencyLifecycle;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Base interface for all companion models.
|
|
37
|
-
* Provides the getCompanionParent() method available in both decorator and composition modes.
|
|
38
|
-
*
|
|
39
|
-
* @kosService core.companion
|
|
40
|
-
* @kosApiLevel 13
|
|
41
|
-
*/
|
|
42
|
-
export interface KosCompanionAware<TParent extends IKosDataModel = IKosDataModel> {
|
|
43
|
-
/**
|
|
44
|
-
* Gets the companion's parent model instance.
|
|
45
|
-
* Available in both decorator and composition modes.
|
|
46
|
-
* Provides access to the model this companion extends.
|
|
47
|
-
*
|
|
48
|
-
* @returns The parent model instance that this companion enhances
|
|
49
|
-
*/
|
|
50
|
-
getCompanionParent(): TParent;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Interface for models using @kosCompanion in composition mode.
|
|
54
|
-
* Use TypeScript interface merging to add companion capabilities to your model class.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```typescript
|
|
58
|
-
* interface ServiceCompanionModelImpl extends KosCompanionComposition<ServiceModel> {}
|
|
59
|
-
*
|
|
60
|
-
* @kosCompanion({ mode: 'composition' })
|
|
61
|
-
* class ServiceCompanionModelImpl implements IKosDataModel {
|
|
62
|
-
* // Only getCompanionParent() is available
|
|
63
|
-
* get serviceInfo() {
|
|
64
|
-
* const parent = this.getCompanionParent();
|
|
65
|
-
* return `Service: ${parent.serviceName}`;
|
|
66
|
-
* }
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
*
|
|
70
|
-
* @kosService core.companion
|
|
71
|
-
*/
|
|
72
|
-
export interface KosCompanionComposition<TParent extends IKosDataModel = IKosDataModel> extends KosCompanionAware<TParent> {
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Interface for models using @kosCompanion in decorator mode (default).
|
|
76
|
-
* Use TypeScript interface merging to add full parent transparency to your model class.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* interface BrandCompanionModelImpl extends KosCompanionDecorator<AvailabilityModel> {}
|
|
81
|
-
*
|
|
82
|
-
* @kosCompanion() // defaults to decorator mode
|
|
83
|
-
* class BrandCompanionModelImpl implements IKosDataModel {
|
|
84
|
-
* // All parent properties are available directly
|
|
85
|
-
* get brandSpecificProperty() {
|
|
86
|
-
* return this.name; // 'name' from parent AvailabilityModel
|
|
87
|
-
* }
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* @kosService core.companion
|
|
92
|
-
*/
|
|
93
|
-
export interface KosCompanionDecorator<TParent extends IKosDataModel = IKosDataModel> extends KosCompanionAware<TParent> {
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Class decorator that adds companion model capabilities to a KOS model.
|
|
97
|
-
*
|
|
98
|
-
* Supports two patterns:
|
|
99
|
-
* 1. **Decorator Pattern** (default): Transparently proxies all parent properties,
|
|
100
|
-
* making the companion a drop-in replacement for the parent
|
|
101
|
-
* 2. **Composition Pattern**: Only provides getCompanionParent() method,
|
|
102
|
-
* keeping parent encapsulated
|
|
103
|
-
*
|
|
104
|
-
* **Important**: Use TypeScript interface merging to get proper type information:
|
|
105
|
-
*
|
|
106
|
-
* ```typescript
|
|
107
|
-
* // Decorator pattern - full transparency
|
|
108
|
-
* interface BrandCompanionModelImpl extends KosCompanionAware<AvailabilityModel> {}
|
|
109
|
-
*
|
|
110
|
-
* @kosModel("brand-companion")
|
|
111
|
-
* @kosCompanion() // defaults to decorator mode
|
|
112
|
-
* class BrandCompanionModelImpl implements IKosDataModel {
|
|
113
|
-
* // All parent properties are available
|
|
114
|
-
* get brandSpecificProperty() {
|
|
115
|
-
* return this.name; // 'name' from parent AvailabilityModel
|
|
116
|
-
* }
|
|
117
|
-
* }
|
|
118
|
-
*
|
|
119
|
-
* // Composition pattern - encapsulated parent
|
|
120
|
-
* interface ServiceCompanionModelImpl extends KosCompanionAware<ServiceModel> {}
|
|
121
|
-
*
|
|
122
|
-
* @kosModel("service-companion")
|
|
123
|
-
* @kosCompanion({ mode: 'composition' })
|
|
124
|
-
* class ServiceCompanionModelImpl implements IKosDataModel {
|
|
125
|
-
* // Parent is only accessible via getCompanionParent()
|
|
126
|
-
* get serviceInfo() {
|
|
127
|
-
* const parent = this.getCompanionParent();
|
|
128
|
-
* return `Service: ${parent.serviceName}`;
|
|
129
|
-
* }
|
|
130
|
-
* }
|
|
131
|
-
* ```
|
|
132
|
-
*
|
|
133
|
-
* @param options Configuration options for the companion decorator
|
|
134
|
-
* @returns A class decorator
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```typescript
|
|
138
|
-
* // Decorator mode - all parent properties proxied
|
|
139
|
-
* @kosCompanion()
|
|
140
|
-
* class MyCompanion { }
|
|
141
|
-
*
|
|
142
|
-
* // Composition mode - only getCompanionParent() available
|
|
143
|
-
* @kosCompanion({ mode: 'composition' })
|
|
144
|
-
* class MyCompanion { }
|
|
145
|
-
*
|
|
146
|
-
* // Decorator mode with exclusions
|
|
147
|
-
* @kosCompanion({ mode: 'decorator', excludeProperties: ['internalState'] })
|
|
148
|
-
* class MyCompanion { }
|
|
149
|
-
*
|
|
150
|
-
* // Lifecycle-deferred companion creation
|
|
151
|
-
* @kosCompanion({ lifecycle: DependencyLifecycle.LOAD })
|
|
152
|
-
* class DataDrivenCompanion { }
|
|
153
|
-
* ```
|
|
154
|
-
*
|
|
155
|
-
* @category KOS Model Decorator
|
|
156
|
-
* @since 2.1.0
|
|
157
|
-
* @kosService core.companion
|
|
158
|
-
* @kosApiLevel 2
|
|
159
|
-
*/
|
|
160
|
-
export declare function kosCompanion(options?: KosCompanionOptions): ClassDecorator;
|
|
3
|
+
interface DecoratedKosModel<T extends IKosDataModel = IKosDataModel> {
|
|
4
|
+
new (...args: any[]): T;
|
|
5
|
+
}
|
|
6
|
+
type KosCompantionOptions = {
|
|
7
|
+
modelType: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const kosCompanion: <T extends IKosDataModel>({ modelType }: KosCompantionOptions) => (constructor: DecoratedKosModel<T>) => any;
|
|
10
|
+
export {};
|
|
161
11
|
//# sourceMappingURL=kos-companion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-companion.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-companion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-companion.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-companion.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,UAAU,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACjE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AAED,KAAK,oBAAoB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAClD,eAAO,MAAM,YAAY,2CACkB,oBAAoB,mBAC/C,kBAAkB,CAAC,CAAC,KAAG,GAGpC,CAAC"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Method decorator that injects the current KOS execution context into a method call.
|
|
3
|
-
*
|
|
4
|
-
* @kosService core.context
|
|
5
|
-
* @kosApiLevel 2
|
|
6
|
-
*/
|
|
7
1
|
export declare function kosContext(_target: any, _propertyKey: string, descriptor: PropertyDescriptor): void;
|
|
8
2
|
//# sourceMappingURL=kos-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-context.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-context.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"kos-context.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-context.ts"],"names":[],"mappings":"AAKA,wBAAgB,UAAU,CACxB,OAAO,EAAE,GAAG,EACZ,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,kBAAkB,QAe/B"}
|
|
@@ -6,9 +6,6 @@ import { KosMethodTypes, KosRequest, KosResponse } from '../services/browser-rou
|
|
|
6
6
|
export declare const HttpRouteHandlers: unique symbol;
|
|
7
7
|
/**
|
|
8
8
|
* Interface for HTTP route configuration
|
|
9
|
-
*
|
|
10
|
-
* @kosService core.http-route
|
|
11
|
-
* @kosApiLevel 12
|
|
12
9
|
*/
|
|
13
10
|
export interface IHttpRouteConfig {
|
|
14
11
|
method: KosMethodTypes;
|
|
@@ -50,9 +47,6 @@ export interface IHttpRouteConfig {
|
|
|
50
47
|
* }
|
|
51
48
|
* }
|
|
52
49
|
* ```
|
|
53
|
-
*
|
|
54
|
-
* @kosService core.http-route
|
|
55
|
-
* @kosApiLevel 12
|
|
56
50
|
*/
|
|
57
51
|
export declare const get: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
58
52
|
/**
|
|
@@ -68,9 +62,6 @@ export declare const get: (path: string) => (target: any, propertyKey: string, d
|
|
|
68
62
|
* res.status(201).send(newUser);
|
|
69
63
|
* }
|
|
70
64
|
* ```
|
|
71
|
-
*
|
|
72
|
-
* @kosService core.http-route
|
|
73
|
-
* @kosApiLevel 12
|
|
74
65
|
*/
|
|
75
66
|
export declare const post: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
76
67
|
/**
|
|
@@ -87,9 +78,6 @@ export declare const post: (path: string) => (target: any, propertyKey: string,
|
|
|
87
78
|
* res.status(200).send(updatedUser);
|
|
88
79
|
* }
|
|
89
80
|
* ```
|
|
90
|
-
*
|
|
91
|
-
* @kosService core.http-route
|
|
92
|
-
* @kosApiLevel 12
|
|
93
81
|
*/
|
|
94
82
|
export declare const put: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
95
83
|
/**
|
|
@@ -105,9 +93,6 @@ export declare const put: (path: string) => (target: any, propertyKey: string, d
|
|
|
105
93
|
* res.status(204).send();
|
|
106
94
|
* }
|
|
107
95
|
* ```
|
|
108
|
-
*
|
|
109
|
-
* @kosService core.http-route
|
|
110
|
-
* @kosApiLevel 12
|
|
111
96
|
*/
|
|
112
97
|
export declare const del: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
113
98
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-http-decorators.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-http-decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-http-decorators.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-http-decorators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI1F;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAO7D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC,CAAC;CACnF;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,GAAG,SAxE4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAoEe,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,IAAI,SAxF2B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAoFiB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,GAAG,SAzG4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAqGe,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,GAAG,SAzH4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAqHkB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,UAAU,SA9HqB,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBA0HP,CAAC;AAE9B;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,gBAAgB,EAAE,CAEnE"}
|