@kosdev-code/kos-ui-sdk 2.1.36 → 2.1.38
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/core/decorators/fsm-injection-utils.d.ts.map +1 -1
- package/core/core/decorators/index.d.ts +1 -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 +14 -0
- package/core/core/decorators/kos-companion.d.ts.map +1 -1
- package/core/core/decorators/kos-container-aware.d.ts +21 -0
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- 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 +4 -1
- package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
- package/core/core/decorators/kos-future-aware.d.ts +12 -0
- package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
- 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 +9 -0
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
- 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 +14 -0
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
- 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 +4 -2
- package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request.d.ts +44 -3
- package/core/core/decorators/kos-service-request.d.ts.map +1 -1
- package/core/core/decorators/kos-state-machine.d.ts +24 -0
- package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
- 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 +6 -0
- package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-view-model.d.ts +14 -0
- package/core/core/decorators/kos-view-model.d.ts.map +1 -1
- package/core/core/decorators/kosDependency.d.ts +2 -0
- package/core/core/decorators/kosDependency.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts +2 -0
- 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 +34 -0
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts +50 -0
- 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/kosModel.d.ts +38 -0
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
- package/core/core/model/kos-subscription-manager.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/index.d.ts +1 -1
- package/core/index.d.ts.map +1 -1
- package/core/types/kos-dependency.d.ts +10 -1
- package/core/types/kos-dependency.d.ts.map +1 -1
- package/core/types/service-response-store.d.ts +10 -0
- package/core/types/service-response-store.d.ts.map +1 -1
- 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 +2 -0
- package/core/util/ancestor-path-visitor.d.ts.map +1 -1
- 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 +14 -0
- 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/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 +2 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts +36 -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-org-utils.d.ts +3 -0
- package/core/util/kos-org-utils.d.ts.map +1 -0
- package/core/util/kos-service-request.d.ts +34 -2
- 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-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-utils.d.ts +30 -6
- 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/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 +15 -0
- package/core/util/service-response.d.ts.map +1 -1
- 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 +70 -70
- package/index.cjs.map +1 -1
- package/index.d.cts +6 -4
- package/index.d.ts +6 -4
- package/index.d.ts.map +1 -1
- package/index.js +9257 -9251
- 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.map +1 -1
- package/models/models/browser-router/types/index.d.ts +1 -0
- 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.d.ts.map +1 -1
- package/models/models/config-bean/types/index.d.ts +1 -0
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts +1 -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 +8 -2
- package/models/models/device/types/index.d.ts +1 -0
- package/models/models/future/future-types.d.ts +14 -0
- package/models/models/future/future-types.d.ts.map +1 -1
- 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/key-value/types/index.d.ts +1 -0
- package/models/models/kos-expression-evaluator/types/index.d.ts +5 -0
- package/models/models/kos-log-manager/types/index.d.ts +4 -0
- package/models/models/kos-time/types/index.d.ts +3 -0
- package/models/models/log-block/types/index.d.ts +4 -0
- package/models/models/log-stream/types/index.d.ts +3 -1
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
- package/models/models/network-interface/types/index.d.ts +1 -0
- package/models/models/ota/types/index.d.ts +31 -0
- package/models/models/region-info/region-info-model.d.ts +1 -0
- 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 +50 -0
- package/models/models/region-info/types/index.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +4 -1
- package/models/models/state-bean/types/index.d.ts +3 -0
- package/models/models/state-prop/types/index.d.ts +2 -0
- package/models/models/storage-device/types/index.d.ts +2 -0
- package/models/models/translation/types/index.d.ts +3 -0
- package/models/models/trouble/services/trouble-services.d.ts +1 -0
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
- package/models/models/trouble/trouble-model.d.ts +3 -1
- package/models/models/trouble/trouble-model.d.ts.map +1 -1
- package/models/models/trouble/types/index.d.ts +12 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +3 -2
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/models/models/trouble-container/types/index.d.ts +5 -0
- package/models/models/usb-update/types/index.d.ts +10 -0
- package/models/utils/client.d.ts +4 -0
- package/models/utils/client.d.ts.map +1 -1
- package/models/utils/extension-manager.d.ts +5 -0
- 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 +2 -0
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +2 -2
- 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 +4 -0
- package/models/utils/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.6.5/service.d.ts +4 -0
- package/models/utils/services/kos/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.8.1/service.d.ts +4 -0
- package/models/utils/services/kos/1.8.1/service.d.ts.map +1 -1
- 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/service.d.ts +4 -0
- package/models/utils/services/kos/daily/service.d.ts.map +1 -1
- package/models/utils/services/vfs/1.6.5/service.d.ts +4 -0
- package/models/utils/services/vfs/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/vfs/1.8.1/service.d.ts +4 -0
- package/models/utils/services/vfs/1.8.1/service.d.ts.map +1 -1
- 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/service.d.ts +4 -0
- package/models/utils/services/vfs/daily/service.d.ts.map +1 -1
- package/models/utils/services-index.d.ts +2 -0
- package/models/utils/services-index.d.ts.map +1 -1
- package/package.json +4 -2
- package/ui/hooks/device/use-device.d.ts +6 -0
- package/ui/hooks/device/use-device.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/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 +6 -0
- 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 +6 -0
- package/ui/hooks/use-kos-model.d.ts.map +1 -1
- package/ui/hooks/use-kos-regions.d.ts.map +1 -1
- package/core/core/declarative/declarative-actions-wiring.d.ts +0 -13
- package/core/core/declarative/declarative-actions-wiring.d.ts.map +0 -1
- package/core/core/declarative/declarative-model-bindings.d.ts +0 -191
- package/core/core/declarative/declarative-model-bindings.d.ts.map +0 -1
- package/core/core/declarative/declarative-model-discovery.d.ts +0 -74
- package/core/core/declarative/declarative-model-discovery.d.ts.map +0 -1
- package/core/core/declarative/declarative-model-factory.d.ts +0 -58
- package/core/core/declarative/declarative-model-factory.d.ts.map +0 -1
- package/core/core/declarative/declarative-model-types.d.ts +0 -96
- package/core/core/declarative/declarative-model-types.d.ts.map +0 -1
- package/core/core/declarative/index.d.ts +0 -7
- package/core/core/declarative/index.d.ts.map +0 -1
- package/core/core/declarative/types.d.ts +0 -304
- package/core/core/declarative/types.d.ts.map +0 -1
|
@@ -1,12 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.event-bus
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
export interface ApiCallback<T = string> {
|
|
2
6
|
headers: Record<string, string>;
|
|
3
7
|
body: T;
|
|
4
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.event-bus
|
|
11
|
+
*/
|
|
5
12
|
export type EventCallback<T = ApiCallback> = (msg?: T) => void;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.event-bus
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
6
17
|
export interface PublishResponse {
|
|
7
18
|
eventType: string;
|
|
8
19
|
subscribers: number;
|
|
9
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @kosService core.event-bus
|
|
23
|
+
* @kosApiLevel 7
|
|
24
|
+
*/
|
|
10
25
|
export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
11
26
|
/**
|
|
12
27
|
* Subscribes to a specific event type with a callback function.
|
|
@@ -19,6 +34,9 @@ export declare function hasEventSubscriptions(eventType: string): boolean;
|
|
|
19
34
|
* @returns An object containing:
|
|
20
35
|
* - `count`: The number of active subscriptions for the event type.
|
|
21
36
|
* - `unsubscribe`: A function to unsubscribe from the event, which also returns the updated subscription count.
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.event-bus
|
|
39
|
+
* @kosApiLevel 2
|
|
22
40
|
*/
|
|
23
41
|
export declare function subscribe<T = ApiCallback>(eventType: string, callback: EventCallback<T>): {
|
|
24
42
|
count: number;
|
|
@@ -42,6 +60,9 @@ export declare function subscribe<T = ApiCallback>(eventType: string, callback:
|
|
|
42
60
|
* - If the "sync" header is present, the function waits for a response from the subscriber and
|
|
43
61
|
* publishes the response back to the source using the sync ID.
|
|
44
62
|
* - If the "sync" header is not present, the event is published asynchronously in a fire-and-forget manner.
|
|
63
|
+
*
|
|
64
|
+
* @kosService core.event-bus
|
|
65
|
+
* @kosApiLevel 2
|
|
45
66
|
*/
|
|
46
67
|
export declare function publish(eventType: string, msg: unknown, headers?: Record<string, string>): PublishResponse;
|
|
47
68
|
/**
|
|
@@ -56,6 +77,9 @@ export declare function publish(eventType: string, msg: unknown, headers?: Recor
|
|
|
56
77
|
* ```typescript
|
|
57
78
|
* reset(); // Clears all event subscriptions and logs a warning.
|
|
58
79
|
* ```
|
|
80
|
+
*
|
|
81
|
+
* @kosService core.event-bus
|
|
82
|
+
* @kosApiLevel 2
|
|
59
83
|
*/
|
|
60
84
|
export declare function reset(): void;
|
|
61
85
|
/**
|
|
@@ -64,6 +88,9 @@ export declare function reset(): void;
|
|
|
64
88
|
* @param eventType - The event type to listen for
|
|
65
89
|
* @param callback - The callback to execute once
|
|
66
90
|
* @returns Unsubscribe function
|
|
91
|
+
*
|
|
92
|
+
* @kosService core.event-bus
|
|
93
|
+
* @kosApiLevel 11
|
|
67
94
|
*/
|
|
68
95
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
69
96
|
/**
|
|
@@ -72,6 +99,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
72
99
|
* @param eventType - The event type to wait for
|
|
73
100
|
* @param timeout - Optional timeout in milliseconds
|
|
74
101
|
* @returns Promise that resolves with the event data
|
|
102
|
+
*
|
|
103
|
+
* @kosService core.event-bus
|
|
104
|
+
* @kosApiLevel 11
|
|
75
105
|
*/
|
|
76
106
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
77
107
|
//# sourceMappingURL=eventBus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED
|
|
1
|
+
{"version":3,"file":"eventBus.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC;CACT;AACD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,WAAW,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,WAAW,EACvC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;;;;;EAmC3B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CACrB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACnC,eAAe,CAuCjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,SAGpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
|
@@ -6,6 +6,9 @@ import { ApiCallback, EventCallback } from './eventBus';
|
|
|
6
6
|
* @param eventType - The event type to listen for
|
|
7
7
|
* @param callback - The callback to execute once
|
|
8
8
|
* @returns Unsubscribe function
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.event-bus
|
|
11
|
+
* @kosApiLevel 11
|
|
9
12
|
*/
|
|
10
13
|
export declare function once<T = ApiCallback>(eventType: string, callback: EventCallback<T>): () => void;
|
|
11
14
|
/**
|
|
@@ -14,6 +17,9 @@ export declare function once<T = ApiCallback>(eventType: string, callback: Event
|
|
|
14
17
|
* @param eventType - The event type to wait for
|
|
15
18
|
* @param timeout - Optional timeout in milliseconds
|
|
16
19
|
* @returns Promise that resolves with the event data
|
|
20
|
+
*
|
|
21
|
+
* @kosService core.event-bus
|
|
22
|
+
* @kosApiLevel 11
|
|
17
23
|
*/
|
|
18
24
|
export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: number): Promise<T>;
|
|
19
25
|
/**
|
|
@@ -22,6 +28,9 @@ export declare function waitFor<T = ApiCallback>(eventType: string, timeout?: nu
|
|
|
22
28
|
* @param eventTypes - Array of event types to wait for
|
|
23
29
|
* @param timeout - Optional timeout in milliseconds
|
|
24
30
|
* @returns Promise that resolves when all events have occurred
|
|
31
|
+
*
|
|
32
|
+
* @kosService core.event-bus
|
|
33
|
+
* @kosApiLevel 11
|
|
25
34
|
*/
|
|
26
35
|
export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<T[]>;
|
|
27
36
|
/**
|
|
@@ -30,6 +39,9 @@ export declare function waitForAll<T = ApiCallback>(eventTypes: string[], timeou
|
|
|
30
39
|
* @param eventTypes - Array of event types to race
|
|
31
40
|
* @param timeout - Optional timeout in milliseconds
|
|
32
41
|
* @returns Promise that resolves with the first event
|
|
42
|
+
*
|
|
43
|
+
* @kosService core.event-bus
|
|
44
|
+
* @kosApiLevel 11
|
|
33
45
|
*/
|
|
34
46
|
export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: number): Promise<{
|
|
35
47
|
eventType: string;
|
|
@@ -42,6 +54,9 @@ export declare function race<T = ApiCallback>(eventTypes: string[], timeout?: nu
|
|
|
42
54
|
* @param predicate - Function to test each event
|
|
43
55
|
* @param callback - Callback for events that pass the filter
|
|
44
56
|
* @returns Unsubscribe function
|
|
57
|
+
*
|
|
58
|
+
* @kosService core.event-bus
|
|
59
|
+
* @kosApiLevel 11
|
|
45
60
|
*/
|
|
46
61
|
export declare function filter<T = ApiCallback>(eventType: string, predicate: (msg: T) => boolean, callback: EventCallback<T>): () => void;
|
|
47
62
|
/**
|
|
@@ -51,6 +66,9 @@ export declare function filter<T = ApiCallback>(eventType: string, predicate: (m
|
|
|
51
66
|
* @param transform - Function to transform the event data
|
|
52
67
|
* @param callback - Callback for transformed events
|
|
53
68
|
* @returns Unsubscribe function
|
|
69
|
+
*
|
|
70
|
+
* @kosService core.event-bus
|
|
71
|
+
* @kosApiLevel 11
|
|
54
72
|
*/
|
|
55
73
|
export declare function map<T = ApiCallback, R = any>(eventType: string, transform: (msg: T) => R, callback: (msg: R) => void): () => void;
|
|
56
74
|
/**
|
|
@@ -60,6 +78,9 @@ export declare function map<T = ApiCallback, R = any>(eventType: string, transfo
|
|
|
60
78
|
* @param delay - Delay in milliseconds
|
|
61
79
|
* @param callback - Callback for debounced events
|
|
62
80
|
* @returns Unsubscribe function
|
|
81
|
+
*
|
|
82
|
+
* @kosService core.event-bus
|
|
83
|
+
* @kosApiLevel 11
|
|
63
84
|
*/
|
|
64
85
|
export declare function debounce<T = ApiCallback>(eventType: string, delay: number, callback: EventCallback<T>): () => void;
|
|
65
86
|
/**
|
|
@@ -69,6 +90,9 @@ export declare function debounce<T = ApiCallback>(eventType: string, delay: numb
|
|
|
69
90
|
* @param interval - Minimum interval between emissions in milliseconds
|
|
70
91
|
* @param callback - Callback for throttled events
|
|
71
92
|
* @returns Unsubscribe function
|
|
93
|
+
*
|
|
94
|
+
* @kosService core.event-bus
|
|
95
|
+
* @kosApiLevel 11
|
|
72
96
|
*/
|
|
73
97
|
export declare function throttle<T = ApiCallback>(eventType: string, interval: number, callback: EventCallback<T>): () => void;
|
|
74
98
|
/**
|
|
@@ -78,6 +102,9 @@ export declare function throttle<T = ApiCallback>(eventType: string, interval: n
|
|
|
78
102
|
* @param bufferTime - Time window to collect events in milliseconds
|
|
79
103
|
* @param callback - Callback for buffered events
|
|
80
104
|
* @returns Unsubscribe function
|
|
105
|
+
*
|
|
106
|
+
* @kosService core.event-bus
|
|
107
|
+
* @kosApiLevel 11
|
|
81
108
|
*/
|
|
82
109
|
export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: number, callback: (events: T[]) => void): () => void;
|
|
83
110
|
/**
|
|
@@ -86,6 +113,9 @@ export declare function buffer<T = ApiCallback>(eventType: string, bufferTime: n
|
|
|
86
113
|
* @param eventType - The event type to replay
|
|
87
114
|
* @param bufferSize - Number of events to remember
|
|
88
115
|
* @returns Object with subscribe method that replays buffered events
|
|
116
|
+
*
|
|
117
|
+
* @kosService core.event-bus
|
|
118
|
+
* @kosApiLevel 11
|
|
89
119
|
*/
|
|
90
120
|
export declare function replay<T = ApiCallback>(eventType: string, bufferSize?: number): {
|
|
91
121
|
subscribe: (callback: EventCallback<T>) => {
|
|
@@ -101,6 +131,9 @@ export declare function replay<T = ApiCallback>(eventType: string, bufferSize?:
|
|
|
101
131
|
* @param eventTypes - Array of event types to merge
|
|
102
132
|
* @param callback - Callback for all merged events
|
|
103
133
|
* @returns Unsubscribe function for all subscriptions
|
|
134
|
+
*
|
|
135
|
+
* @kosService core.event-bus
|
|
136
|
+
* @kosApiLevel 11
|
|
104
137
|
*/
|
|
105
138
|
export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (eventType: string, msg: T) => void): () => void;
|
|
106
139
|
/**
|
|
@@ -109,6 +142,9 @@ export declare function merge<T = ApiCallback>(eventTypes: string[], callback: (
|
|
|
109
142
|
* @param initialState - The initial state
|
|
110
143
|
* @param transitions - Object mapping states to event handlers
|
|
111
144
|
* @returns Object with current state and unsubscribe function
|
|
145
|
+
*
|
|
146
|
+
* @kosService core.event-bus
|
|
147
|
+
* @kosApiLevel 11
|
|
112
148
|
*/
|
|
113
149
|
export declare function stateMachine<TState extends string, T = ApiCallback>(initialState: TState, transitions: Record<TState, Record<string, (msg: T) => TState>>): {
|
|
114
150
|
readonly state: TState;
|
|
@@ -122,6 +158,9 @@ export declare function stateMachine<TState extends string, T = ApiCallback>(ini
|
|
|
122
158
|
* @param request - The request data to publish
|
|
123
159
|
* @param timeout - Optional timeout in milliseconds
|
|
124
160
|
* @returns Promise that resolves with the response
|
|
161
|
+
*
|
|
162
|
+
* @kosService core.event-bus
|
|
163
|
+
* @kosApiLevel 11
|
|
125
164
|
*/
|
|
126
165
|
export declare function request<TRequest = any, TResponse = ApiCallback>(requestEvent: string, responseEvent: string, request: TRequest, timeout?: number): Promise<TResponse>;
|
|
127
166
|
/**
|
|
@@ -129,8 +168,17 @@ export declare function request<TRequest = any, TResponse = ApiCallback>(request
|
|
|
129
168
|
*
|
|
130
169
|
* @param eventType - The event type to iterate
|
|
131
170
|
* @returns Async iterator for use with for-await-of
|
|
171
|
+
*
|
|
172
|
+
* @kosService core.event-bus
|
|
173
|
+
* @kosApiLevel 11
|
|
132
174
|
*/
|
|
133
175
|
export declare function eventIterator<T = ApiCallback>(eventType: string): AsyncIterableIterator<T>;
|
|
176
|
+
/**
|
|
177
|
+
* Namespace collecting all functional event bus utilities.
|
|
178
|
+
*
|
|
179
|
+
* @kosService core.event-bus
|
|
180
|
+
* @kosApiLevel 11
|
|
181
|
+
*/
|
|
134
182
|
export declare const EventBusFunctional: {
|
|
135
183
|
once: typeof once;
|
|
136
184
|
waitFor: typeof waitFor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"eventBus.functional.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.functional.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GACzB,MAAM,IAAI,CAQZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,GAAG,WAAW,EACrC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,CAAC,CAkBZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,CAAC,GAAG,WAAW,EACxC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,CAAC,EAAE,CAAC,CAKd;AAED;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,CAAC,GAAG,WAAW,EAClC,UAAU,EAAE,MAAM,EAAE,EACpB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAA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AAC,GAAG,WAAW,EACnC,UAAU,EAAE,MAAM,EAAE,EACpB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,IAAI,GAC5C,MAAM,IAAI,CAYZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,MAAM,SAAS,MAAM,EAAE,CAAC,GAAG,WAAW,EACjE,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;;;EAgChE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,QAAQ,GAAG,GAAG,EAAE,SAAS,GAAG,WAAW,EAC7D,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,QAAQ,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,SAAS,CAAC,CAIpB;AAED;;;;;;;;GAQG;AACH,wBAAuB,aAAa,CAAC,CAAC,GAAG,WAAW,EAClD,SAAS,EAAE,MAAM,GAChB,qBAAqB,CAAC,CAAC,CAAC,CA4B1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC"}
|
|
@@ -2,6 +2,9 @@ import { ApiCallback, EventCallback } from './eventBus';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Options for state-aware event subscriptions
|
|
5
|
+
*
|
|
6
|
+
* @kosService core.event-bus
|
|
7
|
+
* @kosApiLevel 11
|
|
5
8
|
*/
|
|
6
9
|
export interface StateAwareOptions<T> {
|
|
7
10
|
/** Function to fetch the current state */
|
|
@@ -20,6 +23,9 @@ export interface StateAwareOptions<T> {
|
|
|
20
23
|
* @param eventType - The event type to wait for
|
|
21
24
|
* @param options - Options for state fetching and transformation
|
|
22
25
|
* @returns Promise that resolves with either the event data or current state
|
|
26
|
+
*
|
|
27
|
+
* @kosService core.event-bus
|
|
28
|
+
* @kosApiLevel 11
|
|
23
29
|
*/
|
|
24
30
|
export declare function waitForOrGetState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
25
31
|
/**
|
|
@@ -29,6 +35,9 @@ export declare function waitForOrGetState<T = ApiCallback>(eventType: string, op
|
|
|
29
35
|
* @param callback - Callback for state updates
|
|
30
36
|
* @param options - Options for initial state fetching
|
|
31
37
|
* @returns Unsubscribe function
|
|
38
|
+
*
|
|
39
|
+
* @kosService core.event-bus
|
|
40
|
+
* @kosApiLevel 11
|
|
32
41
|
*/
|
|
33
42
|
export declare function subscribeWithInitialState<T = ApiCallback>(eventType: string, callback: EventCallback<T>, options: StateAwareOptions<T>): () => void;
|
|
34
43
|
/**
|
|
@@ -37,6 +46,9 @@ export declare function subscribeWithInitialState<T = ApiCallback>(eventType: st
|
|
|
37
46
|
* @param eventType - The event type for updates
|
|
38
47
|
* @param stateApi - API endpoint or function to fetch current state
|
|
39
48
|
* @returns Object with subscribe method and current state getter
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.event-bus
|
|
51
|
+
* @kosApiLevel 11
|
|
40
52
|
*/
|
|
41
53
|
export declare function createStatefulEventStream<T = any>(eventType: string, stateApi: string | (() => Promise<T>)): {
|
|
42
54
|
/** Get current state synchronously (may be undefined if not loaded) */
|
|
@@ -55,6 +67,9 @@ export declare function createStatefulEventStream<T = any>(eventType: string, st
|
|
|
55
67
|
* @param eventTypes - Array of event types to wait for
|
|
56
68
|
* @param options - Shared state checking options
|
|
57
69
|
* @returns Promise that resolves when all events have occurred or state is ready
|
|
70
|
+
*
|
|
71
|
+
* @kosService core.event-bus
|
|
72
|
+
* @kosApiLevel 11
|
|
58
73
|
*/
|
|
59
74
|
export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[], options: StateAwareOptions<T>): Promise<T>;
|
|
60
75
|
/**
|
|
@@ -63,6 +78,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventTypes: string[
|
|
|
63
78
|
* @param eventType - Single event type to wait for
|
|
64
79
|
* @param options - State checking options
|
|
65
80
|
* @returns Promise that resolves when event occurs or state is ready
|
|
81
|
+
*
|
|
82
|
+
* @kosService core.event-bus
|
|
83
|
+
* @kosApiLevel 11
|
|
66
84
|
*/
|
|
67
85
|
export declare function waitForAllWithState<T = ApiCallback>(eventType: string, options: StateAwareOptions<T>): Promise<T>;
|
|
68
86
|
/**
|
|
@@ -71,6 +89,9 @@ export declare function waitForAllWithState<T = ApiCallback>(eventType: string,
|
|
|
71
89
|
* @param eventType - Event type to handle
|
|
72
90
|
* @param handler - Event handler function
|
|
73
91
|
* @param recoveryStrategy - Strategy for recovering missed events
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.event-bus
|
|
94
|
+
* @kosApiLevel 11
|
|
74
95
|
*/
|
|
75
96
|
export declare function createResilientEventHandler<T = ApiCallback>(eventType: string, handler: (data: T) => void | Promise<void>, recoveryStrategy: {
|
|
76
97
|
/** API to fetch missed events or current state */
|
|
@@ -83,6 +104,9 @@ export declare function createResilientEventHandler<T = ApiCallback>(eventType:
|
|
|
83
104
|
/**
|
|
84
105
|
* Pattern for handling connection state with events
|
|
85
106
|
* Useful for WebSocket connections, plugin loading, etc.
|
|
107
|
+
*
|
|
108
|
+
* @kosService core.event-bus
|
|
109
|
+
* @kosApiLevel 11
|
|
86
110
|
*/
|
|
87
111
|
export interface ConnectionStateManager<T = any> {
|
|
88
112
|
/** Current connection state */
|
|
@@ -98,6 +122,9 @@ export interface ConnectionStateManager<T = any> {
|
|
|
98
122
|
}
|
|
99
123
|
/**
|
|
100
124
|
* Create a connection state manager that handles online/offline scenarios
|
|
125
|
+
*
|
|
126
|
+
* @kosService core.event-bus
|
|
127
|
+
* @kosApiLevel 11
|
|
101
128
|
*/
|
|
102
129
|
export declare function createConnectionStateManager<T = any>(config: {
|
|
103
130
|
connectEvent: string;
|
|
@@ -107,6 +134,12 @@ export declare function createConnectionStateManager<T = any>(config: {
|
|
|
107
134
|
fetchInitialState: () => Promise<T>;
|
|
108
135
|
reconnectDelay?: number;
|
|
109
136
|
}): ConnectionStateManager<T>;
|
|
137
|
+
/**
|
|
138
|
+
* Namespace collecting all state-aware event bus utilities.
|
|
139
|
+
*
|
|
140
|
+
* @kosService core.event-bus
|
|
141
|
+
* @kosApiLevel 11
|
|
142
|
+
*/
|
|
110
143
|
export declare const EventBusState: {
|
|
111
144
|
waitForOrGetState: typeof waitForOrGetState;
|
|
112
145
|
subscribeWithInitialState: typeof subscribeWithInitialState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"eventBus.state.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/common/events/eventBus.state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAsB,MAAM,YAAY,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,0CAA0C;IAC1C,eAAe,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACtC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC,CAAC;IACnC,wEAAwE;IACxE,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;IAC9C,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,GAAG,WAAW,EACrD,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,iB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AAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACnD,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,CAAC;CACxC,cAyDF;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,GAAG;IAC7C,+BAA+B;IAC/B,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAC7D,kCAAkC;IAClC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,4CAA4C;IAC5C,iBAAiB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5E,oCAAoC;IACpC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAgH5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fsm-injection-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/fsm-injection-utils.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,GAAG,QAoB3D;
|
|
1
|
+
{"version":3,"file":"fsm-injection-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/fsm-injection-utils.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,GAAG,QAoB3D;AA0dD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,QA0B3E"}
|
|
@@ -13,6 +13,7 @@ export * from './kos-model-effect';
|
|
|
13
13
|
export * from './kos-parent';
|
|
14
14
|
export * from './kos-reference';
|
|
15
15
|
export * from './kos-service-request';
|
|
16
|
+
export * from './kos-service-request-helpers';
|
|
16
17
|
export * from './kos-state-machine';
|
|
17
18
|
export * from './kos-trouble-aware';
|
|
18
19
|
export * from './kosDependency';
|
|
@@ -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,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* @param name - The name of the property to be marked as a child model.
|
|
15
15
|
* @returns A decorator function that marks the property as a child model.
|
|
16
16
|
* @category KOS Model Decorator
|
|
17
|
+
* @kosService core.child
|
|
18
|
+
* @kosApiLevel 2
|
|
17
19
|
*/
|
|
18
20
|
export declare const kosChild: (target: {} | any, name: PropertyKey) => any;
|
|
19
21
|
//# sourceMappingURL=kos-child.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"kos-child.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-child.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,WAAY,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAG9D,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IKosDataModel } from '../kosModel';
|
|
2
2
|
import { DependencyLifecycle } from '../../types';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.companion
|
|
6
|
+
* @kosApiLevel 13
|
|
7
|
+
*/
|
|
4
8
|
export interface KosCompanionOptions {
|
|
5
9
|
/**
|
|
6
10
|
* Pattern mode:
|
|
@@ -24,12 +28,16 @@ export interface KosCompanionOptions {
|
|
|
24
28
|
* // Created after assembly.load() completes
|
|
25
29
|
* }
|
|
26
30
|
* ```
|
|
31
|
+
* @kosApiLevel 15
|
|
27
32
|
*/
|
|
28
33
|
lifecycle?: DependencyLifecycle;
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
* Base interface for all companion models.
|
|
32
37
|
* Provides the getCompanionParent() method available in both decorator and composition modes.
|
|
38
|
+
*
|
|
39
|
+
* @kosService core.companion
|
|
40
|
+
* @kosApiLevel 13
|
|
33
41
|
*/
|
|
34
42
|
export interface KosCompanionAware<TParent extends IKosDataModel = IKosDataModel> {
|
|
35
43
|
/**
|
|
@@ -58,6 +66,8 @@ export interface KosCompanionAware<TParent extends IKosDataModel = IKosDataModel
|
|
|
58
66
|
* }
|
|
59
67
|
* }
|
|
60
68
|
* ```
|
|
69
|
+
*
|
|
70
|
+
* @kosService core.companion
|
|
61
71
|
*/
|
|
62
72
|
export interface KosCompanionComposition<TParent extends IKosDataModel = IKosDataModel> extends KosCompanionAware<TParent> {
|
|
63
73
|
}
|
|
@@ -77,6 +87,8 @@ export interface KosCompanionComposition<TParent extends IKosDataModel = IKosDat
|
|
|
77
87
|
* }
|
|
78
88
|
* }
|
|
79
89
|
* ```
|
|
90
|
+
*
|
|
91
|
+
* @kosService core.companion
|
|
80
92
|
*/
|
|
81
93
|
export interface KosCompanionDecorator<TParent extends IKosDataModel = IKosDataModel> extends KosCompanionAware<TParent> {
|
|
82
94
|
}
|
|
@@ -142,6 +154,8 @@ export interface KosCompanionDecorator<TParent extends IKosDataModel = IKosDataM
|
|
|
142
154
|
*
|
|
143
155
|
* @category KOS Model Decorator
|
|
144
156
|
* @since 2.1.0
|
|
157
|
+
* @kosService core.companion
|
|
158
|
+
* @kosApiLevel 2
|
|
145
159
|
*/
|
|
146
160
|
export declare function kosCompanion(options?: KosCompanionOptions): ClassDecorator;
|
|
147
161
|
//# 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":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAIjD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IACnC,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"kos-companion.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-companion.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAIjD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IACnC,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB,CAChC,OAAO,SAAS,aAAa,GAAG,aAAa;IAE7C;;;;;;OAMG;IACH,kBAAkB,IAAI,OAAO,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,uBAAuB,CACtC,OAAO,SAAS,aAAa,GAAG,aAAa,CAC7C,SAAQ,iBAAiB,CAAC,OAAO,CAAC;CAAG;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,qBAAqB,CACpC,OAAO,SAAS,aAAa,GAAG,aAAa,CAC7C,SAAQ,iBAAiB,CAAC,OAAO,CAAC;CAGnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,cAAc,CAqB1E"}
|
|
@@ -6,6 +6,9 @@ type MaybePromise<T> = T | Promise<T>;
|
|
|
6
6
|
* Configuration options for the @kosContainerAware decorator.
|
|
7
7
|
*
|
|
8
8
|
* @template T The type of models contained in the container (must extend IKosDataModel)
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.container-aware
|
|
11
|
+
* @kosApiLevel 13
|
|
9
12
|
*/
|
|
10
13
|
export interface KosContainerAwareOptions<T extends IKosDataModel = IKosDataModel> {
|
|
11
14
|
/**
|
|
@@ -272,6 +275,9 @@ export interface KosContainerAwareOptions<T extends IKosDataModel = IKosDataMode
|
|
|
272
275
|
*
|
|
273
276
|
* @see {@link kosContainerAware} - The decorator function
|
|
274
277
|
* @see {@link KosContainerAwareOptions} - Configuration options
|
|
278
|
+
*
|
|
279
|
+
* @kosService core.container-aware
|
|
280
|
+
* @kosApiLevel 13
|
|
275
281
|
*/
|
|
276
282
|
export interface KosContainerAware<T extends IKosDataModel = IKosDataModel> {
|
|
277
283
|
/**
|
|
@@ -299,23 +305,27 @@ export interface KosContainerAware<T extends IKosDataModel = IKosDataModel> {
|
|
|
299
305
|
/**
|
|
300
306
|
* Adds multiple models to the container at once.
|
|
301
307
|
* @param models - Array of model instances to add
|
|
308
|
+
* @kosApiLevel 19
|
|
302
309
|
*/
|
|
303
310
|
addAll(models: T[]): void;
|
|
304
311
|
/**
|
|
305
312
|
* Removes multiple models from the container by their IDs.
|
|
306
313
|
* @param ids - Array of unique identifiers of the models to remove
|
|
314
|
+
* @kosApiLevel 19
|
|
307
315
|
*/
|
|
308
316
|
removeAll(ids: string[]): void;
|
|
309
317
|
/**
|
|
310
318
|
* Removes a model from the container and destroys it.
|
|
311
319
|
* Convenience method that combines removeModel() and destroyKosModel().
|
|
312
320
|
* @param id - The unique identifier of the model to remove and destroy
|
|
321
|
+
* @kosApiLevel 19
|
|
313
322
|
*/
|
|
314
323
|
removeAndDestroy(id: string): Promise<void>;
|
|
315
324
|
/**
|
|
316
325
|
* Removes multiple models from the container and destroys them.
|
|
317
326
|
* Convenience method that combines removeAll() and destroyKosModel().
|
|
318
327
|
* @param ids - Array of unique identifiers of the models to remove and destroy
|
|
328
|
+
* @kosApiLevel 19
|
|
319
329
|
*/
|
|
320
330
|
removeAndDestroyAll(ids: string[]): Promise<void>;
|
|
321
331
|
/**
|
|
@@ -337,6 +347,9 @@ export interface KosContainerAware<T extends IKosDataModel = IKosDataModel> {
|
|
|
337
347
|
* Used internally by both KosContainerAware and KosContainerAwareWithProp.
|
|
338
348
|
*
|
|
339
349
|
* @template T The type of models contained in the container
|
|
350
|
+
*
|
|
351
|
+
* @kosService core.container-aware
|
|
352
|
+
* @kosApiLevel 13
|
|
340
353
|
*/
|
|
341
354
|
export interface KosContainerAwareBase<T extends IKosDataModel = IKosDataModel> {
|
|
342
355
|
/**
|
|
@@ -358,23 +371,27 @@ export interface KosContainerAwareBase<T extends IKosDataModel = IKosDataModel>
|
|
|
358
371
|
/**
|
|
359
372
|
* Adds multiple models to the container at once.
|
|
360
373
|
* @param models - Array of model instances to add
|
|
374
|
+
* @kosApiLevel 19
|
|
361
375
|
*/
|
|
362
376
|
addAll(models: T[]): void;
|
|
363
377
|
/**
|
|
364
378
|
* Removes multiple models from the container by their IDs.
|
|
365
379
|
* @param ids - Array of unique identifiers of the models to remove
|
|
380
|
+
* @kosApiLevel 19
|
|
366
381
|
*/
|
|
367
382
|
removeAll(ids: string[]): void;
|
|
368
383
|
/**
|
|
369
384
|
* Removes a model from the container and destroys it.
|
|
370
385
|
* Convenience method that combines removeModel() and destroyKosModel().
|
|
371
386
|
* @param id - The unique identifier of the model to remove and destroy
|
|
387
|
+
* @kosApiLevel 19
|
|
372
388
|
*/
|
|
373
389
|
removeAndDestroy(id: string): Promise<void>;
|
|
374
390
|
/**
|
|
375
391
|
* Removes multiple models from the container and destroys them.
|
|
376
392
|
* Convenience method that combines removeAll() and destroyKosModel().
|
|
377
393
|
* @param ids - Array of unique identifiers of the models to remove and destroy
|
|
394
|
+
* @kosApiLevel 19
|
|
378
395
|
*/
|
|
379
396
|
removeAndDestroyAll(ids: string[]): Promise<void>;
|
|
380
397
|
/**
|
|
@@ -444,6 +461,8 @@ export interface KosContainerAwareBase<T extends IKosDataModel = IKosDataModel>
|
|
|
444
461
|
* }
|
|
445
462
|
* }
|
|
446
463
|
* ```
|
|
464
|
+
*
|
|
465
|
+
* @kosService core.container-aware
|
|
447
466
|
*/
|
|
448
467
|
export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P extends string = "container"> = KosContainerAwareBase<T> & {
|
|
449
468
|
[K in P]: IKosModelContainer<T>;
|
|
@@ -592,6 +611,8 @@ export type KosContainerAwareWithProp<T extends IKosDataModel = IKosDataModel, P
|
|
|
592
611
|
*
|
|
593
612
|
* @category KOS Model Decorator
|
|
594
613
|
* @since 2.1.0
|
|
614
|
+
* @kosService core.container-aware
|
|
615
|
+
* @kosApiLevel 13
|
|
595
616
|
*/
|
|
596
617
|
export declare function kosContainerAware<T extends IKosDataModel = IKosDataModel>(options?: KosContainerAwareOptions<T>): ClassDecorator;
|
|
597
618
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-container-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-container-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AACtC
|
|
1
|
+
{"version":3,"file":"kos-container-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-container-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AACtC;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB,CACvC,CAAC,SAAS,aAAa,GAAG,aAAa;IAEvC;;;;;;;;;;;OAWG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE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IAAI,CAAC,CAAC;IAElD;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAEvC;;;;OAIG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAM,MAAM,yBAAyB,CACnC,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,MAAM,GAAG,WAAW,IAC5B,qBAAqB,CAAC,CAAC,CAAC,GAAG;KAC5B,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACvE,OAAO,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACpC,cAAc,CAuBhB"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method decorator that injects the current KOS execution context into a method call.
|
|
3
|
+
*
|
|
4
|
+
* @kosService core.context
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
1
7
|
export declare function kosContext(_target: any, _propertyKey: string, descriptor: PropertyDescriptor): void;
|
|
2
8
|
//# 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,wBAAgB,UAAU,CACxB,OAAO,EAAE,GAAG,EACZ,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,kBAAkB,QAe/B"}
|
|
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;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,GAAG,EACZ,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,kBAAkB,QAe/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpMethod, ServiceRequestExecutor } from './kos-service-request';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Symbol used to uniquely identify KosExecutionContext objects.
|
|
@@ -34,6 +34,9 @@ export declare const KOS_EXECUTION_CONTEXT: unique symbol;
|
|
|
34
34
|
* return response?.data;
|
|
35
35
|
* }
|
|
36
36
|
* ```
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.service-request
|
|
39
|
+
* @kosApiLevel 15
|
|
37
40
|
*/
|
|
38
41
|
export interface KosExecutionContext<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get"> {
|
|
39
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-execution-context.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-execution-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"kos-execution-context.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-execution-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAgC,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,mBAAmB,CAClC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvD,IAAI,SAAS,MAAM,KAAK,GAAG,MAAM,EACjC,MAAM,SAAS,UAAU,GAAG,KAAK;IAEjC;;;OAGG;IACH,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAEvD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,mBAAmB,CAE1E"}
|