@kosdev-code/kos-ui-sdk 0.1.0-dev.5785 → 0.1.0-dev.5796
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/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.d.ts +25 -0
- 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 +27 -0
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts +49 -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/services/browser-router.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 +59 -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/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-service-request.d.ts +31 -0
- 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 +4 -0
- package/core/util/service-request-error.d.ts.map +1 -1
- 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 +34 -34
- package/index.cjs.map +1 -1
- package/index.d.cts +5 -5
- package/index.d.ts +5 -5
- package/index.d.ts.map +1 -1
- package/index.js +3557 -3551
- package/index.js.map +1 -1
- package/kos-models.json +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/types/index.d.ts +1 -0
- 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 +7 -1
- 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/types/index.d.ts +10 -0
- package/models/models/gpio-pin/types/index.d.ts +10 -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/types/index.d.ts +1 -0
- package/models/models/ota/types/index.d.ts +31 -0
- package/models/models/region-info/types/index.d.ts +49 -0
- package/models/models/region-info/types/index.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +4 -0
- 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/types/index.d.ts +8 -0
- package/models/models/trouble-container/types/index.d.ts +5 -0
- package/models/models/usb-update/types/index.d.ts +10 -0
- package/package.json +3 -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
|
@@ -1,34 +1,122 @@
|
|
|
1
1
|
import { KosBroadcastRequest, KosFetchReqeust, KosFetchResponseParams, KosMessageOptions, KosHttpMessageOptions, KosMessageRequest } from '../types';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.fetch
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const createStudioMessage: ({ path, requestId, method, destinationAddress, }: KosFetchReqeust) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.fetch
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const createFosBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, }: KosFetchReqeust) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.fetch
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const createBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, bridge, headers, }: KosFetchReqeust) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @kosService core.fetch
|
|
20
|
+
* @kosApiLevel 2
|
|
21
|
+
*/
|
|
6
22
|
export declare const createMessageBody: (msg: string, body?: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.fetch
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
7
27
|
export declare function createHeaders(headers: Record<string, string>): Headers;
|
|
28
|
+
/**
|
|
29
|
+
* @kosService core.fetch
|
|
30
|
+
* @kosApiLevel 2
|
|
31
|
+
*/
|
|
8
32
|
export declare function createReadableStream(msg: string): ReadableStream<Uint8Array> | null;
|
|
33
|
+
/**
|
|
34
|
+
* @kosService core.fetch
|
|
35
|
+
* @kosApiLevel 2
|
|
36
|
+
*/
|
|
9
37
|
export declare const createStudioMessageRequest: ({ path, requestId, destinationAddress, }: KosFetchReqeust) => string;
|
|
38
|
+
/**
|
|
39
|
+
* @kosService core.fetch
|
|
40
|
+
* @kosApiLevel 2
|
|
41
|
+
*/
|
|
10
42
|
export declare const createKosMessage: ({ requestId, destinationAddress, requestType, headers, }: KosMessageRequest) => string;
|
|
43
|
+
/**
|
|
44
|
+
* @kosService core.fetch
|
|
45
|
+
* @kosApiLevel 2
|
|
46
|
+
*/
|
|
11
47
|
export declare const sendKosMessage: <T extends object>(msg: T, options: KosMessageRequest) => void;
|
|
48
|
+
/**
|
|
49
|
+
* @kosService core.fetch
|
|
50
|
+
* @kosApiLevel 2
|
|
51
|
+
*/
|
|
12
52
|
export declare const createStudioMessageResponse: ({ path, responseId, status, destinationAddress, }: KosFetchResponseParams) => string;
|
|
53
|
+
/**
|
|
54
|
+
* @kosService core.fetch
|
|
55
|
+
* @kosApiLevel 2
|
|
56
|
+
*/
|
|
13
57
|
export declare const sendStudioMessageRequest: <T extends object>(msg: T, options: KosFetchReqeust) => void;
|
|
58
|
+
/**
|
|
59
|
+
* @kosService core.fetch
|
|
60
|
+
* @kosApiLevel 2
|
|
61
|
+
*/
|
|
14
62
|
export declare const sendStudioMessage: <T extends object>(msg: T, options: KosFetchResponseParams) => void;
|
|
63
|
+
/**
|
|
64
|
+
* @kosService core.fetch
|
|
65
|
+
* @kosApiLevel 2
|
|
66
|
+
*/
|
|
15
67
|
export declare const createBroadcastMessageResponse: ({ topic, }: KosBroadcastRequest) => string;
|
|
68
|
+
/**
|
|
69
|
+
* @kosService core.fetch
|
|
70
|
+
* @kosApiLevel 2
|
|
71
|
+
*/
|
|
16
72
|
export declare const createKosHtpMessageResponse: ({ responseId, destinationAddress, type, sourceAddress, status, }: KosHttpMessageOptions) => string;
|
|
73
|
+
/**
|
|
74
|
+
* @kosService core.fetch
|
|
75
|
+
* @kosApiLevel 2
|
|
76
|
+
*/
|
|
17
77
|
export declare const createKosMessageResponse: ({ topic, responseId, destinationAddress, type, }: KosMessageOptions) => string;
|
|
78
|
+
/**
|
|
79
|
+
* @kosService core.fetch
|
|
80
|
+
* @kosApiLevel 2
|
|
81
|
+
*/
|
|
18
82
|
export interface KosBroadcastRequestParams<T extends object> {
|
|
19
83
|
msg: T;
|
|
20
84
|
options: KosBroadcastRequest;
|
|
21
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @kosService core.fetch
|
|
88
|
+
* @kosApiLevel 2
|
|
89
|
+
*/
|
|
22
90
|
export declare const sendBroadcastMessage: <T extends object>({ msg, options, }: KosBroadcastRequestParams<T>) => void;
|
|
91
|
+
/**
|
|
92
|
+
* @kosService core.fetch
|
|
93
|
+
* @kosApiLevel 2
|
|
94
|
+
*/
|
|
23
95
|
export interface KosMessageResponseParams<T extends object> {
|
|
24
96
|
msg: T;
|
|
25
97
|
options: KosMessageOptions;
|
|
26
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* @kosService core.fetch
|
|
101
|
+
* @kosApiLevel 2
|
|
102
|
+
*/
|
|
27
103
|
export interface KosHttpMessageResponseParams<T extends object> {
|
|
28
104
|
msg: T;
|
|
29
105
|
options: KosHttpMessageOptions;
|
|
30
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @kosService core.fetch
|
|
109
|
+
* @kosApiLevel 2
|
|
110
|
+
*/
|
|
31
111
|
export declare const sendKosMessageResponse: <T extends object>({ msg, options, }: KosMessageResponseParams<T>) => void;
|
|
112
|
+
/**
|
|
113
|
+
* @kosService core.fetch
|
|
114
|
+
* @kosApiLevel 2
|
|
115
|
+
*/
|
|
32
116
|
export declare const sendKosHttpMessageResponse: <T extends object>({ msg, options, }: KosHttpMessageResponseParams<T>) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @kosService core.fetch
|
|
119
|
+
* @kosApiLevel 2
|
|
120
|
+
*/
|
|
33
121
|
export declare const getMessageBody: (payload: any, skipParse: any) => any;
|
|
34
122
|
//# sourceMappingURL=kos-message-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,qDAK7B,eAAe,WAYjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uEAO9B,eAAe,WAiBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wFAS3B,eAAe,WAsBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAS,MAAM,SAAS,MAAM,WAM3D,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAiCtE;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,GACV,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CA+BnC;AAED,eAAO,MAAM,0BAA0B,6CAIpC,eAAe,WAQjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6DAK1B,iBAAiB,WAWnB,CAAC;AAEF,eAAO,MAAM,cAAc,0BACpB,CAAC,WACG,iBAAiB,SAgB3B,CAAC;AACF,eAAO,MAAM,2BAA2B,sDAKrC,sBAAsB,WAUxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,0BAC9B,CAAC,WACG,eAAe,SAezB,CAAC;AACF,eAAO,MAAM,iBAAiB,0BACvB,CAAC,WACG,sBAAsB,SAiBhC,CAAC;AAEF,eAAO,MAAM,8BAA8B,eAExC,mBAAmB,WAKrB,CAAC;AACF,eAAO,MAAM,2BAA2B,qEAMrC,qBAAqB,WAUvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qDAKlC,iBAAiB,WAOnB,CAAC;AAEF,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,MAAM;IACzD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AACD,eAAO,MAAM,oBAAoB,wCAG9B,0BAA0B,CAAC,CAAC,SAe9B,CAAC;AAEF,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM;IACxD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qDAK7B,eAAe,WAYjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,uEAO9B,eAAe,WAiBjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,wFAS3B,eAAe,WAsBjB,CAAC;AAEF;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,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
@@ -6,8 +6,15 @@ import { IKosDataModel, IKosModel } from '../core/kosModel';
|
|
|
6
6
|
* @async
|
|
7
7
|
* @param model - The KOS data model to destroy.
|
|
8
8
|
* @throws An error if the model cannot be destroyed.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.utils
|
|
11
|
+
* @kosApiLevel 2
|
|
9
12
|
*/
|
|
10
13
|
export declare const destroyKosModel: (model: IKosDataModel) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.utils
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
11
18
|
export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>;
|
|
12
19
|
/**
|
|
13
20
|
* Asynchronously resets a KOS data model.
|
|
@@ -15,6 +22,9 @@ export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>
|
|
|
15
22
|
* @async
|
|
16
23
|
* @param model - The KOS data model to reset.
|
|
17
24
|
* @throws An error if the model cannot be reset.
|
|
25
|
+
*
|
|
26
|
+
* @kosService core.utils
|
|
27
|
+
* @kosApiLevel 2
|
|
18
28
|
*/
|
|
19
29
|
export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
20
30
|
/**
|
|
@@ -24,6 +34,9 @@ export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
|
24
34
|
* @param modelId - The ID of the KOS data model.
|
|
25
35
|
* @returns The type of the KOS data model.
|
|
26
36
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.utils
|
|
39
|
+
* @kosApiLevel 2
|
|
27
40
|
*/
|
|
28
41
|
export declare const getKosModelType: (modelId: string) => Promise<string | undefined>;
|
|
29
42
|
/**
|
|
@@ -33,6 +46,9 @@ export declare const getKosModelType: (modelId: string) => Promise<string | unde
|
|
|
33
46
|
* @param modelId - The ID of the KOS data model.
|
|
34
47
|
* @returns An object containing the KOS data model and its type.
|
|
35
48
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.utils
|
|
51
|
+
* @kosApiLevel 2
|
|
36
52
|
*/
|
|
37
53
|
export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(modelId: string) => Promise<{
|
|
38
54
|
model: T;
|
|
@@ -44,6 +60,9 @@ export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(mode
|
|
|
44
60
|
* @param modelId - The ID of the KOS data model.
|
|
45
61
|
* @returns An object containing the KOS data model and its type.
|
|
46
62
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
63
|
+
*
|
|
64
|
+
* @kosService core.utils
|
|
65
|
+
* @kosApiLevel 2
|
|
47
66
|
*/
|
|
48
67
|
export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(modelId: string) => {
|
|
49
68
|
model: T;
|
|
@@ -56,6 +75,9 @@ export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(
|
|
|
56
75
|
* @param predicate - An object representing filter conditions.
|
|
57
76
|
* @returns An array of filtered KOS data models.
|
|
58
77
|
* @throws An error if the model type is not provided.
|
|
78
|
+
*
|
|
79
|
+
* @kosService core.utils
|
|
80
|
+
* @kosApiLevel 2
|
|
59
81
|
*/
|
|
60
82
|
export declare const findModels: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
61
83
|
[k: string]: any;
|
|
@@ -67,6 +89,9 @@ export declare const findModels: <T extends IKosDataModel>(modelType: string, pr
|
|
|
67
89
|
* @param predicate - An object representing filter conditions.
|
|
68
90
|
* @returns The first matching KOS data model, or undefined if none is found.
|
|
69
91
|
* @throws An error if the model type is not provided.
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.utils
|
|
94
|
+
* @kosApiLevel 2
|
|
70
95
|
*/
|
|
71
96
|
export declare const findModel: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
72
97
|
[k: string]: any;
|
|
@@ -78,6 +103,9 @@ export declare const findModel: <T extends IKosDataModel>(modelType: string, pre
|
|
|
78
103
|
* @param type - The type of the companion model.
|
|
79
104
|
* @returns The companion KOS data model of the specified type.
|
|
80
105
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
106
|
+
*
|
|
107
|
+
* @kosService core.utils
|
|
108
|
+
* @kosApiLevel 2
|
|
81
109
|
*/
|
|
82
110
|
export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKosDataModel, type: string) => T;
|
|
83
111
|
/**
|
|
@@ -86,16 +114,34 @@ export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKos
|
|
|
86
114
|
* @param model - The KOS data model for which to retrieve a companion model.
|
|
87
115
|
* @returns The list of companion KOS data models
|
|
88
116
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
117
|
+
*
|
|
118
|
+
* @kosService core.utils
|
|
119
|
+
* @kosApiLevel 2
|
|
89
120
|
*/
|
|
90
121
|
export declare const getAllKosCompanionModels: (model: IKosDataModel) => IKosDataModel[];
|
|
122
|
+
/**
|
|
123
|
+
* @kosService core.utils
|
|
124
|
+
* @kosApiLevel 5
|
|
125
|
+
*/
|
|
91
126
|
export declare const getObservableCompanions: (modelId: string) => import('mobx').ObservableMap<string, IKosModel<IKosDataModel>>;
|
|
127
|
+
/**
|
|
128
|
+
* @kosService core.utils
|
|
129
|
+
* @kosApiLevel 2
|
|
130
|
+
*/
|
|
92
131
|
export declare const resolveKosCompanion: <T extends IKosDataModel>(modelId: string, resolver: (model: T) => boolean) => IKosModel | undefined;
|
|
93
132
|
/**
|
|
94
133
|
* Checks if an object is an instance of a specific KOS data model type.
|
|
95
134
|
*
|
|
96
135
|
* @param type - The type of the KOS data model to check against.
|
|
97
136
|
* @returns A type guard function that checks if an object is an instance of the specified KOS data model type.
|
|
137
|
+
*
|
|
138
|
+
* @kosService core.utils
|
|
139
|
+
* @kosApiLevel 2
|
|
98
140
|
*/
|
|
99
141
|
export declare const isKosModel: <T extends IKosDataModel>(type: string) => (model: any) => model is T;
|
|
142
|
+
/**
|
|
143
|
+
* @kosService core.utils
|
|
144
|
+
* @kosApiLevel 2
|
|
145
|
+
*/
|
|
100
146
|
export declare const isKosModelReady: (model: IKosDataModel) => boolean;
|
|
101
147
|
//# sourceMappingURL=kos-model-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE
|
|
1
|
+
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,UAAiB,aAAa,kBAGzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAqB,aAAa,kBAS5D,CAAC;AACF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,UAAiB,aAAa,kBAevD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAmB,MAAM,gCAQpD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,qDACb,MAAM;;;EAShB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,qDACjB,MAAM;;;CAQhB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,uCACV,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAUhC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,uCACT,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,MACU,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,mCACxB,aAAa,QACd,MAAM,MAYb,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,UAAW,aAAa,oBAc5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,mEAYtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qCACrB,MAAM,YACL,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,KAC9B,SAAS,GAAG,SAWd,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,kCACW,MAAM,aAC9B,GAAG,eACwC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAW,aAAa,YAMnD,CAAC"}
|
|
@@ -6,6 +6,8 @@ import { IKosDataModel, IKosModel, IKosVisitor } from '../core/kosModel';
|
|
|
6
6
|
* @abstract
|
|
7
7
|
* @implements IKosVisitor<IKosModel>
|
|
8
8
|
* @category Core
|
|
9
|
+
* @kosService core.kos-model
|
|
10
|
+
* @kosApiLevel 2
|
|
9
11
|
*/
|
|
10
12
|
export declare abstract class KosModelVisitor implements IKosVisitor<IKosModel> {
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE
|
|
1
|
+
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,YAAW,WAAW,CAAC,SAAS,CAAC;IACrE;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAEvC;;OAEG;;IAKH;;;;;OAKG;IACH,KAAK,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI;IAiBrC;;;;OAIG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAqB7B;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACzD,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,eAAe,GACvB,OAAO,GAAG,IAAI;CAClB"}
|
|
@@ -6,6 +6,9 @@ export type { ErrorResponseContext };
|
|
|
6
6
|
* Resolves the service URL configuration.
|
|
7
7
|
* @param _service - The optional service name (not used).
|
|
8
8
|
* @returns An object with `isMock` and `URL` properties.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.service-request
|
|
11
|
+
* @kosApiLevel 2
|
|
9
12
|
*/
|
|
10
13
|
export declare const resolveBaseUrl: () => {
|
|
11
14
|
isMock: boolean;
|
|
@@ -14,7 +17,13 @@ export declare const resolveBaseUrl: () => {
|
|
|
14
17
|
type NonNeverKeys<T> = {
|
|
15
18
|
[K in keyof T]-?: T[K] extends never | undefined ? never : K;
|
|
16
19
|
}[keyof T];
|
|
20
|
+
/**
|
|
21
|
+
* @kosService core.service-request
|
|
22
|
+
*/
|
|
17
23
|
export type AvailableMethods<T> = Exclude<NonNeverKeys<T>, "parameters" | "requestBody">;
|
|
24
|
+
/**
|
|
25
|
+
* @kosService core.service-request
|
|
26
|
+
*/
|
|
18
27
|
export type PathsByMethod<T> = {
|
|
19
28
|
[Method in "get" | "put" | "post" | "delete"]: {
|
|
20
29
|
[K in keyof T]: Method extends AvailableMethods<T[K]> ? K : never;
|
|
@@ -44,6 +53,9 @@ type ClientPutBody<Paths extends Record<string, any>, K extends keyof Paths> = P
|
|
|
44
53
|
content: infer B;
|
|
45
54
|
};
|
|
46
55
|
} ? B[keyof B] : never;
|
|
56
|
+
/**
|
|
57
|
+
* @kosService core.service-request
|
|
58
|
+
*/
|
|
47
59
|
export type ClientResponse<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
48
60
|
responses: {
|
|
49
61
|
200: {
|
|
@@ -51,20 +63,39 @@ export type ClientResponse<Paths extends Record<string, any>, K extends keyof Pa
|
|
|
51
63
|
};
|
|
52
64
|
};
|
|
53
65
|
} ? R[keyof R] : unknown;
|
|
66
|
+
/**
|
|
67
|
+
* @kosService core.service-request
|
|
68
|
+
*/
|
|
54
69
|
export type ClientParams<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
55
70
|
parameters: infer P;
|
|
56
71
|
} ? P : never;
|
|
72
|
+
/**
|
|
73
|
+
* @kosService core.service-request
|
|
74
|
+
*/
|
|
57
75
|
export type ClientBody<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
58
76
|
requestBody: {
|
|
59
77
|
content: infer B;
|
|
60
78
|
};
|
|
61
79
|
} ? B[keyof B] : never;
|
|
80
|
+
/**
|
|
81
|
+
* @kosService core.service-request
|
|
82
|
+
*/
|
|
62
83
|
export type ServiceResponse<T> = [error: string, data: null, errorContext?: ErrorResponseContext] | [error: null, data: T];
|
|
84
|
+
/**
|
|
85
|
+
* @kosService core.service-request
|
|
86
|
+
*/
|
|
63
87
|
export type DeepRequired<T> = {
|
|
64
88
|
[K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K] extends Array<infer U> ? Array<DeepRequired<U>> : T[K];
|
|
65
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @kosService core.service-request
|
|
92
|
+
*/
|
|
66
93
|
export type ElementType<T> = T extends (infer U)[] ? U : never;
|
|
67
94
|
type RequestOptions = Omit<KosFetchOptions, "method" | "body">;
|
|
95
|
+
/**
|
|
96
|
+
* @kosService core.service-request
|
|
97
|
+
* @kosApiLevel 2
|
|
98
|
+
*/
|
|
68
99
|
export declare function createClient<Paths extends Record<string, any>>(): {
|
|
69
100
|
get: <K_1 extends { [K in keyof Paths]: "get" extends infer T ? T extends "get" ? T extends Exclude<NonNeverKeys<Paths[K]>, "parameters" | "requestBody"> ? K : never : never : never; }[keyof Paths]>(endpoint: K_1, params?: ClientGetParams<Paths, K_1> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_1, "get">>>;
|
|
70
101
|
post: <K_3 extends { [K_2 in keyof Paths]: "post" extends infer T_1 ? T_1 extends "post" ? T_1 extends Exclude<NonNeverKeys<Paths[K_2]>, "parameters" | "requestBody"> ? K_2 : never : never : never; }[keyof Paths]>(endpoint: K_3, params?: ClientPostParams<Paths, K_3> | undefined, body?: ClientPostBody<Paths, K_3> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_3, "post">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAG7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAG7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;CAI1B,CAAC;AAIF,KAAK,YAAY,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,CAAC;CAC7D,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,OAAO,CACvC,YAAY,CAAC,CAAC,CAAC,EACf,YAAY,GAAG,aAAa,CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;KAC5B,MAAM,IAAI,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG;SAC5C,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;KAClE,CAAC,MAAM,CAAC,GAAG,MAAM;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,SAAS,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;KAAE,CAAC;CAC7E,CAAC;AAEF,KAAK,eAAe,CAClB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACjC,CAAC,SAAS,MAAM,KAAK,IACnB,K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AC,GACV,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IACzB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,oBAAoB,CAAC,GAChE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAClB,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GAC3B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GACtB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAkO/D,KAAK,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAC/D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;sRAQ9C,cAAc;qVAOd,cAAc;gVAQd,cAAc;4VAOd,cAAc;EAU7B"}
|
package/core/util/log-utils.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { LogLevelDesc } from 'loglevel';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.logging
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const getLogLevel: () => LogLevelDesc;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.logging
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const getKosMessageLogging: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.logging
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const getLogMessageToStudio: () => boolean;
|
|
6
18
|
//# sourceMappingURL=log-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.middleware
|
|
3
|
+
*/
|
|
1
4
|
export type Middleware<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> = (context: Context<D, R>, next: () => Promise<void>) => Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* @kosService core.middleware
|
|
7
|
+
* @kosApiLevel 2
|
|
8
|
+
*/
|
|
2
9
|
export interface Context<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> {
|
|
3
10
|
data: D;
|
|
4
11
|
result: Partial<R>;
|
|
5
12
|
}
|
|
6
13
|
type ScalarValue = string | number | boolean | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.middleware
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
7
18
|
export declare class MiddlewareChain<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>, T extends Context<D, R> = Context<D, R>> {
|
|
8
19
|
private middlewares;
|
|
9
20
|
use(middleware: Middleware<D, R>): void;
|
|
10
21
|
execute(context: T): Promise<void>;
|
|
11
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.middleware
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
12
27
|
export declare const processMiddleware: <D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>>(data: D, middleware: Middleware<D, R>[]) => Promise<R>;
|
|
13
28
|
export {};
|
|
14
29
|
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/middleware.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAC5C,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzE,MAAM,WAAW,OAAO,CACtB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAE9C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,OAAO,CAA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,CAAC;IAE9C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAChE;;;GAGG;AACH,qBAAa,eAAe,CAC1B,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CAAC,WAAW,CAA0B;IAE7C,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;IAIjC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAYzC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yGAItB,CAAC,cACK,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,eAQ/B,CAAC"}
|
|
@@ -31,7 +31,14 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
31
31
|
* ```typescript
|
|
32
32
|
* @kosDependency({modelType: Ingredient.type, id: propertyKey})
|
|
33
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* @kosService core.kos-model
|
|
36
|
+
* @kosApiLevel 2
|
|
34
37
|
*/
|
|
35
38
|
export declare const createPropKey: <R extends IKosDataModel>(key: keyof R) => string;
|
|
39
|
+
/**
|
|
40
|
+
* @kosService core.kos-model
|
|
41
|
+
* @kosApiLevel 2
|
|
42
|
+
*/
|
|
36
43
|
export declare const createOptionKey: <R extends object>(key: keyof R) => string;
|
|
37
44
|
//# sourceMappingURL=model-attribute-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,aAAa,iCAAkC,MAAM,CAAC,WAC1C,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,eAAe,0BAA2B,MAAM,CAAC,WACrC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ModelFactory } from '../types/model';
|
|
2
2
|
import { IKosDataModel } from '../core/kosModel';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const modelFactory: <T extends IKosDataModel, O extends Object = {}>(typeId: string) => ModelFactory<T, O>;
|
|
5
9
|
//# sourceMappingURL=model-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,YAAY,2DACf,MAAM,KACb,aAAa,CAAC,EAAE,CAAC,CAmBnB,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { BaseKosModelRegistrationBean } from '../types/model';
|
|
2
2
|
import { KosCompanionModelType } from '../core/types/registration';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const updateModelRegistration: <T extends BaseKosModelRegistrationBean<any, any>>(modelRegistration: T) => void;
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.kos-model
|
|
11
|
+
* @kosApiLevel 2
|
|
12
|
+
*/
|
|
5
13
|
export declare const updateCompanionModelRegistration: (typeId: string, companionRegistration: KosCompanionModelType<any>) => void;
|
|
6
14
|
//# sourceMappingURL=model-registration-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-registration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-registration-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE,eAAO,MAAM,uBAAuB,wEAGf,CAAC,KACnB,IAEF,CAAC;AAEF,eAAO,MAAM,gCAAgC,WACnC,MAAM,yBACS,sBAAsB,GAAG,CAAC,KAChD,IAKF,CAAC"}
|
|
1
|
+
{"version":3,"file":"model-registration-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-registration-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,wEAGf,CAAC,KACnB,IAEF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,WACnC,MAAM,yBACS,sBAAsB,GAAG,CAAC,KAChD,IAKF,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Transitions } from './model-transition-utils';
|
|
2
2
|
import { DependencyLifecycle, KosDependencyParams } from '../types/kos-dependency';
|
|
3
|
-
import {
|
|
3
|
+
import { IKosModel } from '../core/kosModel';
|
|
4
4
|
|
|
5
|
-
export {
|
|
6
|
-
export { isPrintable, isKosDataModel, isKosModelContainer, resolveChild, } from './model-type-guards';
|
|
7
|
-
export { ModelError } from './promise-utils';
|
|
5
|
+
export { TransitionMap, Transitions } from './model-transition-utils';
|
|
8
6
|
export type { ModelPromiseResolver } from './model-transition-utils';
|
|
7
|
+
export { isKosDataModel, isKosModelContainer, isPrintable, resolveChild, } from './model-type-guards';
|
|
8
|
+
export { ModelError } from './promise-utils';
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.utils
|
|
11
|
+
* @kosApiLevel 2
|
|
12
|
+
*/
|
|
9
13
|
export interface ModelPromise {
|
|
10
14
|
promise?: Promise<void>;
|
|
11
15
|
modelId?: string;
|
|
@@ -13,20 +17,40 @@ export interface ModelPromise {
|
|
|
13
17
|
type?: string;
|
|
14
18
|
status?: string;
|
|
15
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @kosService core.utils
|
|
22
|
+
* @kosApiLevel 2
|
|
23
|
+
*/
|
|
16
24
|
export declare const createModelDependency: (model: IKosModel, dependency: KosDependencyParams<any>) => {
|
|
17
25
|
dependentModel: null;
|
|
18
26
|
dataModelId: string;
|
|
19
27
|
success: boolean;
|
|
20
28
|
} | {
|
|
21
29
|
dependentModel: {
|
|
22
|
-
model: IKosModel<IKosDataModel>;
|
|
23
|
-
data: IKosDataModel;
|
|
30
|
+
model: IKosModel<import('../core/kosModel').IKosDataModel>;
|
|
31
|
+
data: import('../core/kosModel').IKosDataModel;
|
|
24
32
|
};
|
|
25
33
|
dataModelId: string;
|
|
26
34
|
success: boolean;
|
|
27
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @kosService core.utils
|
|
38
|
+
* @kosApiLevel 2
|
|
39
|
+
*/
|
|
28
40
|
export declare const getDependenciesByLifecycle: (model: IKosModel, lifecycle?: DependencyLifecycle) => (Promise<void> | null)[];
|
|
41
|
+
/**
|
|
42
|
+
* @kosService core.utils
|
|
43
|
+
* @kosApiLevel 2
|
|
44
|
+
*/
|
|
29
45
|
export declare const executeListLifecycle: (sourceModel: IKosModel, models: (IKosModel | undefined)[], target: Transitions, sourceLifecycle: DependencyLifecycle) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* @kosService core.utils
|
|
48
|
+
* @kosApiLevel 2
|
|
49
|
+
*/
|
|
30
50
|
export declare const executeChildrenModelLifecycle: (model: IKosModel, target: Transitions, sourceLifecycle: DependencyLifecycle) => Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* @kosService core.utils
|
|
53
|
+
* @kosApiLevel 2
|
|
54
|
+
*/
|
|
31
55
|
export declare const executeDependentModelLifecycle: (model: IKosModel, lifecycle: DependencyLifecycle) => Promise<void>;
|
|
32
56
|
//# sourceMappingURL=model-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EACL,mBAAmB,EAEnB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAiB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAItE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACtE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UACzB,SAAS,cACJ,oBAAoB,GAAG,CAAC;;;;;;;;;;;CA+KrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,UAC9B,SAAS,cACL,mBAAmB,6BAqE/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,gBAClB,SAAS,UACd,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE,UACzB,WAAW,mBACF,mBAAmB,kBAqHrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,UACjC,SAAS,UACR,WAAW,mBACF,mBAAmB,kBAQrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,UAClC,SAAS,aACL,mBAAmB,kBAa/B,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.utils
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
export declare const KosObservableData: unique symbol;
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.utils
|
|
8
|
+
*/
|
|
2
9
|
export type KosData<T extends Record<any, any>> = T & {
|
|
3
10
|
setValues: (initialData?: T) => void;
|
|
4
11
|
keys: (keyof T)[];
|
|
@@ -6,5 +13,9 @@ export type KosData<T extends Record<any, any>> = T & {
|
|
|
6
13
|
values: T[keyof T][];
|
|
7
14
|
has: (key: keyof T) => boolean;
|
|
8
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 2
|
|
19
|
+
*/
|
|
9
20
|
export declare const ObservableData: <T extends Record<string, any>>(initialData?: T) => KosData<T>;
|
|
10
21
|
//# sourceMappingURL=observable-proxy-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable-proxy-map.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/observable-proxy-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAyI7D,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG;IACpD,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACrC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IACrB,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,cAAc,gDACX,CAAC,KACd,QAAQ,CAAC,CAGX,CAAC"}
|
|
1
|
+
{"version":3,"file":"observable-proxy-map.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/observable-proxy-map.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAyI7D;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG;IACpD,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IACrC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IAClB,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IACrB,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,gDACX,CAAC,KACd,QAAQ,CAAC,CAGX,CAAC"}
|
|
@@ -10,6 +10,8 @@ interface HeartbeatOptions {
|
|
|
10
10
|
* if one is closed, the other is notified of its closure.
|
|
11
11
|
*
|
|
12
12
|
* @category Utility
|
|
13
|
+
* @kosService core.utils
|
|
14
|
+
* @kosApiLevel 2
|
|
13
15
|
*/
|
|
14
16
|
export declare const pairedClientHeartbeat: ({ relationshipId, destinationAddress, onAbort, waitTime, beatTime, }: HeartbeatOptions) => {
|
|
15
17
|
cleanUpHeartbeat: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paired-client-heartbeat.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/paired-client-heartbeat.ts"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"paired-client-heartbeat.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/paired-client-heartbeat.ts"],"names":[],"mappings":"AAKA,UAAU,gBAAgB;IAExB,cAAc,EAAE,MAAM,CAAC;IAEvB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,yEAM/B,gBAAgB;;CA2DlB,CAAC"}
|
package/core/util/pipe.d.ts
CHANGED
package/core/util/pipe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/pipe.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;AAChC,eAAO,MAAM,IAAI,WACN,MAAM,EAAE,SACb,GAAG,QACwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"pipe.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/pipe.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;AAChC;;;GAGG;AACH,eAAO,MAAM,IAAI,WACN,MAAM,EAAE,SACb,GAAG,QACwB,CAAC"}
|
|
@@ -12,6 +12,9 @@ interface BackoffOptions {
|
|
|
12
12
|
* @param options - optional backoff options
|
|
13
13
|
* @returns - the result of the operation if successful
|
|
14
14
|
* @throws - the last error if all attempts fail
|
|
15
|
+
*
|
|
16
|
+
* @kosService core.fetch
|
|
17
|
+
* @kosApiLevel 2
|
|
15
18
|
*/
|
|
16
19
|
export declare function retryWithExponentialBackoff<T>(operation: () => Promise<T>, options?: Partial<BackoffOptions>): Promise<T>;
|
|
17
20
|
export {};
|