@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,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.fetch
|
|
3
|
+
* @kosApiLevel 1
|
|
4
|
+
*/
|
|
1
5
|
export declare enum KosFetchMethods {
|
|
2
6
|
GET = "GET",
|
|
3
7
|
PUT = "PUT",
|
|
@@ -5,6 +9,10 @@ export declare enum KosFetchMethods {
|
|
|
5
9
|
DELETE = "DELETE"
|
|
6
10
|
}
|
|
7
11
|
type FetchMethodStrings = keyof typeof KosFetchMethods;
|
|
12
|
+
/**
|
|
13
|
+
* @kosService core.fetch
|
|
14
|
+
* @kosApiLevel 2
|
|
15
|
+
*/
|
|
8
16
|
export interface Headers {
|
|
9
17
|
append(name: string, value: string): void;
|
|
10
18
|
delete(name: string): void;
|
|
@@ -22,6 +30,10 @@ interface Body {
|
|
|
22
30
|
json<T = any>(): Promise<T | null>;
|
|
23
31
|
text(): Promise<string>;
|
|
24
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @kosService core.fetch
|
|
35
|
+
* @kosApiLevel 2
|
|
36
|
+
*/
|
|
25
37
|
export interface Response extends Body {
|
|
26
38
|
readonly headers: Headers;
|
|
27
39
|
readonly ok: boolean;
|
|
@@ -35,6 +47,8 @@ export interface Response extends Body {
|
|
|
35
47
|
/**
|
|
36
48
|
* Configuration for automatic retry with exponential backoff.
|
|
37
49
|
*
|
|
50
|
+
* @kosService core.fetch
|
|
51
|
+
*
|
|
38
52
|
* When `retry` is set to `true` on {@link KosFetchOptions}, these defaults apply.
|
|
39
53
|
* When set to a partial `RetryConfig`, unspecified fields use these defaults:
|
|
40
54
|
* - `maxAttempts`: 3
|
|
@@ -56,6 +70,7 @@ export interface Response extends Body {
|
|
|
56
70
|
* ```
|
|
57
71
|
*
|
|
58
72
|
* @category Service Request
|
|
73
|
+
* @kosApiLevel 22
|
|
59
74
|
*/
|
|
60
75
|
export interface RetryConfig {
|
|
61
76
|
/** Maximum number of attempts (including the initial request). @default 3 */
|
|
@@ -85,6 +100,9 @@ export interface RetryConfig {
|
|
|
85
100
|
}
|
|
86
101
|
/**
|
|
87
102
|
* Represents the configuration options for performing a Kos WebSocket fetch operation.
|
|
103
|
+
*
|
|
104
|
+
* @kosService core.fetch
|
|
105
|
+
* @kosApiLevel 2
|
|
88
106
|
*/
|
|
89
107
|
export interface KosFetchOptions {
|
|
90
108
|
/**
|
|
@@ -124,13 +142,18 @@ export interface KosFetchOptions {
|
|
|
124
142
|
*/
|
|
125
143
|
bridge?: boolean;
|
|
126
144
|
timeout?: number;
|
|
145
|
+
/**
|
|
146
|
+
* @kosApiLevel 5
|
|
147
|
+
*/
|
|
127
148
|
headers?: Record<string, string>;
|
|
128
149
|
/**
|
|
129
150
|
* Enable streaming mode for large responses
|
|
151
|
+
* @kosApiLevel 11
|
|
130
152
|
*/
|
|
131
153
|
stream?: boolean;
|
|
132
154
|
/**
|
|
133
155
|
* Response type hint for binary data handling
|
|
156
|
+
* @kosApiLevel 11
|
|
134
157
|
*/
|
|
135
158
|
responseType?: "text" | "json" | "arraybuffer" | "blob";
|
|
136
159
|
/**
|
|
@@ -142,9 +165,14 @@ export interface KosFetchOptions {
|
|
|
142
165
|
*
|
|
143
166
|
* Mutating methods (POST, PUT, DELETE, PATCH) are NOT retried by default.
|
|
144
167
|
* Set `retryMutations: true` to opt in.
|
|
168
|
+
* @kosApiLevel 22
|
|
145
169
|
*/
|
|
146
170
|
retry?: boolean | RetryConfig;
|
|
147
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @kosService core.fetch
|
|
174
|
+
* @kosApiLevel 2
|
|
175
|
+
*/
|
|
148
176
|
export interface KosFetchResponse {
|
|
149
177
|
headers: Headers;
|
|
150
178
|
status: string | number | boolean;
|
|
@@ -152,6 +180,10 @@ export interface KosFetchResponse {
|
|
|
152
180
|
json: <T = Record<string | number | symbol, string | number | symbol>>() => Promise<T>;
|
|
153
181
|
body: ReadableStream<Uint8Array> | null;
|
|
154
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* @kosService core.fetch
|
|
185
|
+
* @kosApiLevel 2
|
|
186
|
+
*/
|
|
155
187
|
export interface KosFetchReqeust {
|
|
156
188
|
path: string;
|
|
157
189
|
requestId: string;
|
|
@@ -160,21 +192,40 @@ export interface KosFetchReqeust {
|
|
|
160
192
|
ordered?: boolean;
|
|
161
193
|
tracker?: string;
|
|
162
194
|
bridge?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* @kosApiLevel 5
|
|
197
|
+
*/
|
|
163
198
|
headers?: Record<string, string | number | boolean>;
|
|
164
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* @kosService core.fetch
|
|
202
|
+
* @kosApiLevel 2
|
|
203
|
+
*/
|
|
165
204
|
export interface KosMessageRequest extends Omit<KosFetchReqeust, "method" | "path" | "requestId"> {
|
|
166
205
|
requestType: string;
|
|
167
206
|
requestId?: string;
|
|
168
207
|
headers?: Record<string, string>;
|
|
169
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @kosService core.fetch
|
|
211
|
+
* @kosApiLevel 2
|
|
212
|
+
*/
|
|
170
213
|
export interface KosBroadcastRequest {
|
|
171
214
|
topic: string;
|
|
172
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @kosService core.fetch
|
|
218
|
+
* @kosApiLevel 2
|
|
219
|
+
*/
|
|
173
220
|
export interface KosMessageOptions extends KosBroadcastRequest {
|
|
174
221
|
destinationAddress?: string;
|
|
175
222
|
responseId?: string;
|
|
176
223
|
type?: string;
|
|
177
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* @kosService core.fetch
|
|
227
|
+
* @kosApiLevel 2
|
|
228
|
+
*/
|
|
178
229
|
export interface KosHttpMessageOptions {
|
|
179
230
|
destinationAddress: string;
|
|
180
231
|
sourceAddress: string;
|
|
@@ -183,12 +234,20 @@ export interface KosHttpMessageOptions {
|
|
|
183
234
|
type: string;
|
|
184
235
|
contentType?: string;
|
|
185
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @kosService core.fetch
|
|
239
|
+
* @kosApiLevel 2
|
|
240
|
+
*/
|
|
186
241
|
export interface KosFetchResponseParams {
|
|
187
242
|
path: string;
|
|
188
243
|
responseId?: string;
|
|
189
244
|
destinationAddress: string;
|
|
190
245
|
status: string | number | boolean;
|
|
191
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* @kosService core.fetch
|
|
249
|
+
* @kosApiLevel 2
|
|
250
|
+
*/
|
|
192
251
|
export interface KosFetchPostReqeust extends KosFetchReqeust {
|
|
193
252
|
body?: string;
|
|
194
253
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/types/utils/kos-fetch.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,KAAK,kBAAkB,GAAG,MAAM,OAAO,eAAe,CAAC;AAEvD,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC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GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ancestor-path-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/ancestor-path-visitor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"ancestor-path-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/ancestor-path-visitor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe;IACtD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,SAAS,CAAyB;gBAE9B,QAAQ,EAAE,MAAM;IAK5B;;;;;;;;;;;;;OAaG;IACM,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAgCtC;;;OAGG;IACH,UAAU,CAAC,CAAC,SAAS,aAAa,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,GAAG,IAAI;IAY7D;;;OAGG;IACH,eAAe,IAAI,MAAM,EAAE;IAI3B;;OAEG;IACH,QAAQ,IAAI,OAAO;CAGpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-request-id.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/api-request-id.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,WAMnB"}
|
|
1
|
+
{"version":3,"file":"api-request-id.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/api-request-id.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,IAAI,WAMnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-mixins.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/apply-mixins.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,QAc7D"}
|
|
1
|
+
{"version":3,"file":"apply-mixins.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/apply-mixins.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,QAc7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/array-utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAK3D"}
|
|
1
|
+
{"version":3,"file":"array-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/array-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAK3D"}
|
|
@@ -47,6 +47,8 @@ interface Identifiable {
|
|
|
47
47
|
* id: `release-candidate-${templateId}-${versionId}-${candidate.id}`
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
|
+
*
|
|
51
|
+
* @kosService core.container-utils
|
|
50
52
|
*/
|
|
51
53
|
export type IdMapper<D extends Identifiable = Identifiable, M extends Identifiable = D> = (entity: D) => M;
|
|
52
54
|
type Container = IKosContainerModel<any, any> | IKosModelContainer<any>;
|
|
@@ -103,6 +105,8 @@ interface ResolveParams<T extends Container, D extends Identifiable, M extends I
|
|
|
103
105
|
*
|
|
104
106
|
* @returns A function that accepts entities and synchronizes the container
|
|
105
107
|
*
|
|
108
|
+
* @kosService core.container-utils
|
|
109
|
+
*
|
|
106
110
|
* @example Basic synchronization without ID transformation
|
|
107
111
|
* ```typescript
|
|
108
112
|
* const syncUsers = resolveContainerDeltas({
|
|
@@ -187,6 +191,7 @@ interface ResolveParams<T extends Container, D extends Identifiable, M extends I
|
|
|
187
191
|
* })(templates);
|
|
188
192
|
* }
|
|
189
193
|
* ```
|
|
194
|
+
* @kosApiLevel 2
|
|
190
195
|
*/
|
|
191
196
|
export declare const resolveContainerDeltas: <T extends IKosModelContainer<any>, D extends Identifiable, M extends Identifiable = D>({ container, onAddItem, onUpdateItem, onRemoveItem, idMapper, }: ResolveParams<T, D, M>) => (entities: D[]) => void;
|
|
192
197
|
/**
|
|
@@ -199,6 +204,8 @@ export declare const resolveContainerDeltas: <T extends IKosModelContainer<any>,
|
|
|
199
204
|
* @param params - Configuration for resolving deltas
|
|
200
205
|
* @returns A function that accepts entities and synchronizes by invoking callbacks
|
|
201
206
|
*
|
|
207
|
+
* @kosService core.container-utils
|
|
208
|
+
*
|
|
202
209
|
* @example
|
|
203
210
|
* const syncLayers = resolveListDeltas({
|
|
204
211
|
* container: layerContainer,
|
|
@@ -206,6 +213,7 @@ export declare const resolveContainerDeltas: <T extends IKosModelContainer<any>,
|
|
|
206
213
|
* onRemoveItem: (id) => removeLayer(id)
|
|
207
214
|
* });
|
|
208
215
|
* syncLayers(newLayerList);
|
|
216
|
+
* @kosApiLevel 2
|
|
209
217
|
*/
|
|
210
218
|
export declare const resolveListDeltas: <T extends IKosContainerModel<any, any>, D extends Identifiable, M extends Identifiable = D>({ container, onAddItem, onRemoveItem, idMapper, }: ResolveParams<T, D, M>) => (entities: D[]) => void;
|
|
211
219
|
/**
|
|
@@ -234,6 +242,8 @@ interface ResolveItemsParams<T extends Identifiable, D extends Identifiable, M e
|
|
|
234
242
|
* @param params - Configuration including the items array and callbacks
|
|
235
243
|
* @returns A function that accepts entities and synchronizes the array
|
|
236
244
|
*
|
|
245
|
+
* @kosService core.container-utils
|
|
246
|
+
*
|
|
237
247
|
* @example
|
|
238
248
|
* const currentItems = [{ id: '1', name: 'Item 1' }];
|
|
239
249
|
* const syncItems = resolveItemListDeltas({
|
|
@@ -245,6 +255,7 @@ interface ResolveItemsParams<T extends Identifiable, D extends Identifiable, M e
|
|
|
245
255
|
* }
|
|
246
256
|
* });
|
|
247
257
|
* syncItems(newItems);
|
|
258
|
+
* @kosApiLevel 2
|
|
248
259
|
*/
|
|
249
260
|
export declare const resolveItemListDeltas: <T extends Identifiable, D extends Identifiable, M extends Identifiable = D>({ items, onAddItem, onRemoveItem, idMapper, }: ResolveItemsParams<T, D, M>) => (entities: D[]) => void;
|
|
250
261
|
/**
|
|
@@ -259,6 +270,9 @@ export declare const resolveItemListDeltas: <T extends Identifiable, D extends I
|
|
|
259
270
|
* processId("parent-123") // returns "123"
|
|
260
271
|
* processId("parent-abc", "parent-") // returns "abc"
|
|
261
272
|
* processId("child-456", "parent-") // returns "child-456"
|
|
273
|
+
*
|
|
274
|
+
* @kosService core.container-utils
|
|
275
|
+
* @kosApiLevel 2
|
|
262
276
|
*/
|
|
263
277
|
export declare const processId: (id: string, prefix?: string) => string;
|
|
264
278
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/container-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAqBD
|
|
1
|
+
{"version":3,"file":"container-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/container-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAqBD;;;;;;;;;;;;;;;;;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ACH,UAAU,kBAAkB,CAC1B,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,YAAY,GAAG,CAAC;IAE1B,gDAAgD;IAChD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,8CAA8C;IAC9C,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,6CAA6C;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,qBAAqB,8HAM7B,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gBACnB,CAAC,EAAE,SAKb,CAAC;AAEJ;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,OAAQ,MAAM,4BAMnC,CAAC"}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.utils
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
export declare function formatDateSince(date: Date): string;
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.utils
|
|
8
|
+
* @kosApiLevel 3
|
|
9
|
+
*/
|
|
2
10
|
export declare const isLeapYear: (year: number) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @kosService core.utils
|
|
13
|
+
* @kosApiLevel 3
|
|
14
|
+
*/
|
|
3
15
|
export declare const getDaysInMonth: (year: number, month: number) => number;
|
|
16
|
+
/**
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 3
|
|
19
|
+
*/
|
|
4
20
|
export declare const addMonthsToDate: (date: Date, value: number) => Date;
|
|
21
|
+
/**
|
|
22
|
+
* @kosService core.utils
|
|
23
|
+
* @kosApiLevel 3
|
|
24
|
+
*/
|
|
5
25
|
export declare const addDaysToDate: (date: Date, value: number) => Date;
|
|
6
26
|
interface FormatDateOptions {
|
|
7
27
|
dateStyle?: "short" | "medium" | "long" | "full";
|
|
@@ -34,6 +54,9 @@ interface FormatDateTimeOptions extends FormatDateOptions, FormatTimeOptions {
|
|
|
34
54
|
* @param options.dateStyle - One of `"short"`, `"medium"`, `"long"`, or `"full"`.
|
|
35
55
|
* @param options.locales - Optional locale string or array of locale strings.
|
|
36
56
|
* @returns A formatted date string.
|
|
57
|
+
*
|
|
58
|
+
* @kosService core.utils
|
|
59
|
+
* @kosApiLevel 3
|
|
37
60
|
*/
|
|
38
61
|
export declare const formatDate: (date?: Date | number, { dateStyle, locales }?: FormatDateOptions) => string;
|
|
39
62
|
/**
|
|
@@ -54,6 +77,9 @@ export declare const formatDate: (date?: Date | number, { dateStyle, locales }?:
|
|
|
54
77
|
* @param options.timeStyle - One of `"short"`, `"medium"`, `"long"`, or `"full"`.
|
|
55
78
|
* @param options.locales - Optional locale string or locale array.
|
|
56
79
|
* @returns A formatted time string.
|
|
80
|
+
*
|
|
81
|
+
* @kosService core.utils
|
|
82
|
+
* @kosApiLevel 3
|
|
57
83
|
*/
|
|
58
84
|
export declare const formatTime: (date?: Date | number, { locales, timeStyle }?: FormatTimeOptions) => string;
|
|
59
85
|
/**
|
|
@@ -98,6 +124,9 @@ export declare const formatTime: (date?: Date | number, { locales, timeStyle }?:
|
|
|
98
124
|
* @param options.timeStyle - Custom time format: `"short"`, `"medium"`, `"long"`, or `"full"`.
|
|
99
125
|
* @param options.locales - Optional locale string or locale array.
|
|
100
126
|
* @returns A string representing the formatted date and/or time.
|
|
127
|
+
*
|
|
128
|
+
* @kosService core.utils
|
|
129
|
+
* @kosApiLevel 3
|
|
101
130
|
*/
|
|
102
131
|
export declare const formatDateTime: (date?: Date | number, { dateStyle, locales, timeStyle, }?: FormatDateTimeOptions) => string;
|
|
103
132
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/date-utils.ts"],"names":[],"mappings":"AAcA,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAWzC;AAED,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,OACgB,CAAC;AAE3D,eAAO,MAAM,cAAc,SAAU,MAAM,SAAS,MAAM,KAAG,MAG1D,CAAC;AAEJ,eAAO,MAAM,eAAe,SAAU,IAAI,SAAS,MAAM,SAOxD,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,IAAI,SAAS,MAAM,SAItD,CAAC;AAIF,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,qBAAsB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;AA6D/E
|
|
1
|
+
{"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/date-utils.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAWzC;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,OACgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,cAAc,SAAU,MAAM,SAAS,MAAM,KAAG,MAG1D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,eAAe,SAAU,IAAI,SAAS,MAAM,SAOxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,SAAU,IAAI,SAAS,MAAM,SAItD,CAAC;AAIF,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,qBAAsB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;AA6D/E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,eAAO,MAAM,cAAc,UAClB,IAAI,GAAG,MAAM,uCAKjB,qBAAqB,WAWzB,CAAC"}
|
package/core/util/debounce.d.ts
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
* const debouncedFn = debounce(this, myFunction, 500);
|
|
14
14
|
* debouncedFn(arg1, arg2);
|
|
15
15
|
* ```
|
|
16
|
+
*
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 2
|
|
16
19
|
*/
|
|
17
20
|
declare function debounce(context: any, func: Function, timeout?: number): (...args: any) => void;
|
|
18
21
|
export default debounce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/debounce.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,SAAM,aAQ1C,GAAG,UAarB;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.utils
|
|
3
|
+
* @kosApiLevel 12
|
|
4
|
+
*/
|
|
1
5
|
export declare const EXTENSION_FEATURE_FLAG_RESOLVER = "featureFlagResolver";
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.utils
|
|
8
|
+
*/
|
|
2
9
|
export type FlagResolver<T = any> = (input: T) => Promise<string[]>;
|
|
3
10
|
type FeatureFlags = Record<string, boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* @kosService core.utils
|
|
13
|
+
* @kosApiLevel 12
|
|
14
|
+
*/
|
|
4
15
|
export declare const LOADER_FEATURE_FLAG = "kos.loader.featureFlag";
|
|
16
|
+
/**
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 2
|
|
19
|
+
*/
|
|
5
20
|
export declare class FeatureFlagService {
|
|
6
21
|
private flags;
|
|
7
22
|
constructor(initialFlags?: FeatureFlags);
|
|
@@ -11,6 +26,10 @@ export declare class FeatureFlagService {
|
|
|
11
26
|
toggleFeature(flag: string): void;
|
|
12
27
|
updateFlags(newFlags: FeatureFlags): void;
|
|
13
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @kosService core.utils
|
|
31
|
+
* @kosApiLevel 2
|
|
32
|
+
*/
|
|
14
33
|
export declare const KosFeatureFlags: FeatureFlagService;
|
|
15
34
|
export {};
|
|
16
35
|
//# sourceMappingURL=feature-flags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/feature-flags.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAuCpE,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5C,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAA+B;gBAEhC,YAAY,GAAE,YAAiB;IAK3C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAKvC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKlC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;CAG1C;AAID,eAAO,MAAM,eAAe,oBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/feature-flags.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAuCpE,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAA+B;gBAEhC,YAAY,GAAE,YAAiB;IAK3C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAKvC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKlC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;CAG1C;AAID;;;GAGG;AACH,eAAO,MAAM,eAAe,oBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-params.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/get-query-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,sBAiBjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-query-params.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/get-query-params.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,cAAc,sBAiBjB,CAAC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.utils
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
export declare const hslToHex: (h: number, s: number, l: number) => string;
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.utils
|
|
8
|
+
* @kosApiLevel 2
|
|
9
|
+
*/
|
|
2
10
|
export declare const hslStringToHex: (hsl: string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* @kosService core.utils
|
|
13
|
+
* @kosApiLevel 2
|
|
14
|
+
*/
|
|
3
15
|
export declare const resolveVariable: (element: Element, variable: string) => string;
|
|
16
|
+
/**
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 2
|
|
19
|
+
*/
|
|
4
20
|
export declare const variableToHex: (element: Element, variable: string) => string;
|
|
5
21
|
//# sourceMappingURL=hsl-to-hex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsl-to-hex.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/hsl-to-hex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAK,MAAM,KAAK,MAAM,WAWvD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,WAOzC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC;AACvD,eAAO,MAAM,aAAa,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"hsl-to-hex.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/hsl-to-hex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAK,MAAM,KAAK,MAAM,WAWvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,WAOzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC"}
|
|
@@ -3,14 +3,50 @@ interface KosConfig {
|
|
|
3
3
|
profiles: string[];
|
|
4
4
|
[key: string]: boolean | string[] | string | number | undefined;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.utils
|
|
8
|
+
* @kosApiLevel 20
|
|
9
|
+
*/
|
|
6
10
|
export declare const PROFILE_ENABLE_RELEASES = "studio.enable.releases";
|
|
11
|
+
/**
|
|
12
|
+
* @kosService core.utils
|
|
13
|
+
* @kosApiLevel 2
|
|
14
|
+
*/
|
|
7
15
|
export declare const PROFILE_TOOLS_PREVIEW = "studio.tools.preview";
|
|
16
|
+
/**
|
|
17
|
+
* @kosService core.utils
|
|
18
|
+
* @kosApiLevel 2
|
|
19
|
+
*/
|
|
8
20
|
export declare const PROFILE_RELAX_STORE_VALIDATION = "studio.relax.store.validation";
|
|
21
|
+
/**
|
|
22
|
+
* @kosService core.utils
|
|
23
|
+
* @kosApiLevel 2
|
|
24
|
+
*/
|
|
9
25
|
export declare const PROFILE_LOG_DEBUG = "studio.log.debug";
|
|
26
|
+
/**
|
|
27
|
+
* @kosService core.utils
|
|
28
|
+
* @kosApiLevel 2
|
|
29
|
+
*/
|
|
10
30
|
export declare const PROFILE_LOG_INFO = "studio.log.info";
|
|
31
|
+
/**
|
|
32
|
+
* @kosService core.utils
|
|
33
|
+
* @kosApiLevel 2
|
|
34
|
+
*/
|
|
11
35
|
export declare const KosGlobalConfig: KosConfig;
|
|
36
|
+
/**
|
|
37
|
+
* @kosService core.utils
|
|
38
|
+
* @kosApiLevel 2
|
|
39
|
+
*/
|
|
12
40
|
export declare const resolveKosProfiles: () => string[];
|
|
41
|
+
/**
|
|
42
|
+
* @kosService core.utils
|
|
43
|
+
* @kosApiLevel 2
|
|
44
|
+
*/
|
|
13
45
|
export declare const hasKosProfile: (profile: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @kosService core.utils
|
|
48
|
+
* @kosApiLevel 2
|
|
49
|
+
*/
|
|
14
50
|
export declare const isKosLoggingEnabled: () => boolean;
|
|
15
51
|
export {};
|
|
16
52
|
//# sourceMappingURL=kos-config-init.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-config-init.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-config-init.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjE;AAED,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAUlD,eAAO,MAAM,eAAe,EAAE,SAAqB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,gBAAuC,CAAC;AAEvE,eAAO,MAAM,aAAa,YAAa,MAAM,YACL,CAAC;AAEzC,eAAO,MAAM,mBAAmB,eAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"kos-config-init.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-config-init.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjE;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D;;;GAGG;AACH,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AAC9E;;;GAGG;AACH,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAUlD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAqB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAuC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,MAAM,YACL,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAyC,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { IKosDataModel } from '../core/kosModel';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.utils
|
|
5
|
+
*/
|
|
3
6
|
export type KosDataMapper<D extends object = any, T extends IKosDataModel = IKosDataModel> = (data: D, model: T) => Partial<Omit<T, keyof IKosDataModel>>;
|
|
7
|
+
/**
|
|
8
|
+
* @kosService core.utils
|
|
9
|
+
*/
|
|
4
10
|
export type KosDataMapperUtils<D extends object, T extends IKosDataModel> = KosDataMapper<D, T>;
|
|
5
11
|
/**
|
|
6
12
|
* Utility function that can be used to map an arbitrary data object to a model.
|
|
@@ -9,6 +15,9 @@ export type KosDataMapperUtils<D extends object, T extends IKosDataModel> = KosD
|
|
|
9
15
|
* @param model - the target model to map the data to
|
|
10
16
|
* @param mapper - a mapping function that takes the input data and the target model and returns a partial of the target model. The
|
|
11
17
|
* results will be applied to the model.
|
|
18
|
+
*
|
|
19
|
+
* @kosService core.utils
|
|
20
|
+
* @kosApiLevel 2
|
|
12
21
|
*/
|
|
13
22
|
export declare const mapDataToModel: <D extends object, T extends IKosDataModel>(data: D, model: T, mapper?: KosDataMapperUtils<D, T>) => void;
|
|
14
23
|
//# sourceMappingURL=kos-data-mapper-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-data-mapper-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-data-mapper-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,aAAa,IACrB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAaxB
|
|
1
|
+
{"version":3,"file":"kos-data-mapper-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-data-mapper-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,aAAa,IACrB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAaxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,oDACnB,CAAC,SACA,CAAC,WACA,mBAAmB,CAAC,EAAE,CAAC,CAAC,SAMjC,CAAC"}
|
package/core/util/kos-fetch.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ import { KosFetchOptions, Response } from '../types/utils/kos-fetch';
|
|
|
4
4
|
* Represents the response data received from a Kos service.
|
|
5
5
|
*
|
|
6
6
|
* @typeparam T - The type of data in the response.
|
|
7
|
+
*
|
|
8
|
+
* @kosService core.fetch
|
|
9
|
+
* @kosApiLevel 2
|
|
7
10
|
*/
|
|
8
11
|
export interface KosServiceResponse<T> {
|
|
9
12
|
data: T;
|
|
@@ -11,8 +14,17 @@ export interface KosServiceResponse<T> {
|
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* Represents the base URL for Kos fetch requests.
|
|
17
|
+
*
|
|
18
|
+
* @kosService core.fetch
|
|
19
|
+
* @kosApiLevel 2
|
|
14
20
|
*/
|
|
15
21
|
declare let BASE_URL: string;
|
|
22
|
+
/**
|
|
23
|
+
* KOS fetch function — WebSocket-based fetch implementation for KOS transport.
|
|
24
|
+
*
|
|
25
|
+
* @kosService core.fetch
|
|
26
|
+
* @kosApiLevel 2
|
|
27
|
+
*/
|
|
16
28
|
declare let kosFetch: (url: string, options?: KosFetchOptions) => Promise<Response>;
|
|
17
29
|
export { BASE_URL, kosFetch };
|
|
18
30
|
//# sourceMappingURL=kos-fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAmBrE
|
|
1
|
+
{"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAmBrE;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAkTD;;;;;GAKG;AACH,QAAA,IAAI,QAAQ,QAAS,CAAC;AACtB;;;;;GAKG;AACH,QAAA,IAAI,QAAQ,QA/NL,MAAM,YACD,eAAe,KACxB,QAAQ,QAAQ,CA6NM,CAAC;AAS1B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
|