@kosdev-code/kos-ui-sdk 2.1.37 → 2.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/events/eventBus.d.ts +30 -0
- package/common/events/eventBus.d.ts.map +1 -1
- package/common/events/eventBus.functional.d.ts +48 -0
- package/common/events/eventBus.functional.d.ts.map +1 -1
- package/common/events/eventBus.state.d.ts +33 -0
- package/common/events/eventBus.state.d.ts.map +1 -1
- package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -1
- package/core/core/decorators/kos-child.d.ts +2 -0
- package/core/core/decorators/kos-child.d.ts.map +1 -1
- package/core/core/decorators/kos-companion.d.ts +14 -0
- package/core/core/decorators/kos-companion.d.ts.map +1 -1
- package/core/core/decorators/kos-container-aware.d.ts +21 -0
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-context.d.ts +6 -0
- package/core/core/decorators/kos-context.d.ts.map +1 -1
- package/core/core/decorators/kos-execution-context.d.ts +4 -1
- package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
- package/core/core/decorators/kos-future-aware.d.ts +12 -0
- package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-http-decorators.d.ts +15 -0
- package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
- package/core/core/decorators/kos-log.d.ts +4 -0
- package/core/core/decorators/kos-log.d.ts.map +1 -1
- package/core/core/decorators/kos-logger-aware.d.ts +9 -0
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-model-effect.d.ts +9 -0
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
- package/core/core/decorators/kos-multiple-future-aware.d.ts +14 -0
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-parent.d.ts +4 -0
- package/core/core/decorators/kos-parent.d.ts.map +1 -1
- package/core/core/decorators/kos-reference.d.ts +9 -0
- package/core/core/decorators/kos-reference.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request-helpers.d.ts +4 -2
- package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request.d.ts +44 -3
- package/core/core/decorators/kos-service-request.d.ts.map +1 -1
- package/core/core/decorators/kos-state-machine.d.ts +24 -0
- package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts +17 -1
- package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
- package/core/core/decorators/kos-trouble-aware.d.ts +6 -0
- package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-view-model.d.ts +14 -0
- package/core/core/decorators/kos-view-model.d.ts.map +1 -1
- package/core/core/decorators/kosDependency.d.ts +2 -0
- package/core/core/decorators/kosDependency.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts +2 -0
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/decorators/kosSubscribe.d.ts +9 -0
- package/core/core/decorators/kosSubscribe.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts +34 -0
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts +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/kosCore.d.ts.map +1 -1
- package/core/core/kosModel.d.ts +39 -0
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/model/kos-fsm-manager.d.ts +4 -1
- package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
- package/core/core/model/kos-online-lifecycle-manager.d.ts.map +1 -1
- package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
- package/core/core/services/browser-router.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +2 -1
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/types/kos-dependency.d.ts +10 -1
- package/core/types/kos-dependency.d.ts.map +1 -1
- package/core/types/service-response-store.d.ts +10 -0
- package/core/types/service-response-store.d.ts.map +1 -1
- package/core/types/utils/kos-fetch.d.ts +121 -0
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/ancestor-path-visitor.d.ts +2 -0
- package/core/util/ancestor-path-visitor.d.ts.map +1 -1
- package/core/util/api-request-id.d.ts +4 -0
- package/core/util/api-request-id.d.ts.map +1 -1
- package/core/util/apply-mixins.d.ts +4 -0
- package/core/util/apply-mixins.d.ts.map +1 -1
- package/core/util/array-utils.d.ts +4 -0
- package/core/util/array-utils.d.ts.map +1 -1
- package/core/util/container-utils.d.ts +14 -0
- package/core/util/container-utils.d.ts.map +1 -1
- package/core/util/date-utils.d.ts +29 -0
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/debounce.d.ts +3 -0
- package/core/util/debounce.d.ts.map +1 -1
- package/core/util/feature-flags.d.ts +19 -0
- package/core/util/feature-flags.d.ts.map +1 -1
- package/core/util/get-query-params.d.ts +4 -0
- package/core/util/get-query-params.d.ts.map +1 -1
- package/core/util/hsl-to-hex.d.ts +16 -0
- package/core/util/hsl-to-hex.d.ts.map +1 -1
- package/core/util/index.d.ts +1 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts +36 -0
- package/core/util/kos-config-init.d.ts.map +1 -1
- package/core/util/kos-data-mapper-utils.d.ts +9 -0
- package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts +12 -0
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-message-utils.d.ts +88 -0
- package/core/util/kos-message-utils.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +46 -0
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-model-visitor.d.ts +2 -0
- package/core/util/kos-model-visitor.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts +34 -2
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/log-utils.d.ts +12 -0
- package/core/util/log-utils.d.ts.map +1 -1
- package/core/util/middleware.d.ts +15 -0
- package/core/util/middleware.d.ts.map +1 -1
- package/core/util/model-attribute-utils.d.ts +7 -0
- package/core/util/model-attribute-utils.d.ts.map +1 -1
- package/core/util/model-factory.d.ts +4 -0
- package/core/util/model-factory.d.ts.map +1 -1
- package/core/util/model-registration-utils.d.ts +8 -0
- package/core/util/model-registration-utils.d.ts.map +1 -1
- package/core/util/model-utils.d.ts +30 -6
- package/core/util/model-utils.d.ts.map +1 -1
- package/core/util/observable-proxy-map.d.ts +11 -0
- package/core/util/observable-proxy-map.d.ts.map +1 -1
- package/core/util/paired-client-heartbeat.d.ts +2 -0
- package/core/util/paired-client-heartbeat.d.ts.map +1 -1
- package/core/util/pipe.d.ts +4 -0
- package/core/util/pipe.d.ts.map +1 -1
- package/core/util/retry-with-exponential-backoff.d.ts +3 -0
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +10 -0
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/service-request-error.d.ts +60 -0
- package/core/util/service-request-error.d.ts.map +1 -0
- package/core/util/service-response.d.ts +15 -0
- package/core/util/service-response.d.ts.map +1 -1
- package/core/util/session-utils.d.ts +8 -0
- package/core/util/session-utils.d.ts.map +1 -1
- package/core/util/wait-for-request.d.ts +16 -0
- package/core/util/wait-for-request.d.ts.map +1 -1
- package/core/util/when-ready.d.ts +3 -0
- package/core/util/when-ready.d.ts.map +1 -1
- package/index.cjs +26985 -151
- package/index.cjs.map +1 -1
- package/index.d.cts +6 -4
- package/index.d.ts +6 -4
- package/index.d.ts.map +1 -1
- package/index.js +20324 -13026
- package/index.js.map +1 -1
- package/kos-models.json +52 -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/gpio-chip-container-model.d.ts +25 -0
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -0
- package/models/models/gpio-chip/gpio-chip-model.d.ts +30 -0
- package/models/models/gpio-chip/gpio-chip-model.d.ts.map +1 -0
- package/models/models/gpio-chip/index.d.ts +7 -0
- package/models/models/gpio-chip/index.d.ts.map +1 -0
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts +86 -0
- package/models/models/gpio-chip/services/gpio-chip-services.d.ts.map +1 -0
- package/models/models/gpio-chip/services/index.d.ts +2 -0
- package/models/models/gpio-chip/services/index.d.ts.map +1 -0
- package/models/models/gpio-chip/types/index.d.ts +24 -0
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts +23 -0
- package/models/models/gpio-pin/gpio-pin-container-model.d.ts.map +1 -0
- package/models/models/gpio-pin/gpio-pin-model.d.ts +26 -0
- package/models/models/gpio-pin/gpio-pin-model.d.ts.map +1 -0
- package/models/models/gpio-pin/index.d.ts +6 -0
- package/models/models/gpio-pin/index.d.ts.map +1 -0
- package/models/models/gpio-pin/types/index.d.ts +23 -0
- package/models/models/key-value/types/index.d.ts +1 -0
- package/models/models/kos-expression-evaluator/types/index.d.ts +5 -0
- package/models/models/kos-log-manager/types/index.d.ts +4 -0
- package/models/models/kos-time/types/index.d.ts +3 -0
- package/models/models/log-block/types/index.d.ts +4 -0
- package/models/models/log-stream/types/index.d.ts +3 -1
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
- package/models/models/network-interface/types/index.d.ts +1 -0
- package/models/models/ota/types/index.d.ts +31 -0
- package/models/models/region-info/types/index.d.ts +49 -0
- package/models/models/region-info/types/index.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +4 -1
- package/models/models/state-bean/types/index.d.ts +3 -0
- package/models/models/state-prop/types/index.d.ts +2 -0
- package/models/models/storage-device/types/index.d.ts +2 -0
- package/models/models/translation/translation-model.d.ts +1 -0
- package/models/models/translation/translation-model.d.ts.map +1 -1
- package/models/models/translation/types/index.d.ts +3 -0
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
- package/models/models/trouble/types/index.d.ts +8 -0
- package/models/models/trouble-container/trouble-container-model.d.ts +1 -0
- package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
- package/models/models/trouble-container/types/index.d.ts +5 -0
- package/models/models/usb-update/types/index.d.ts +10 -0
- package/models/utils/client.d.ts +4 -0
- package/models/utils/client.d.ts.map +1 -1
- package/models/utils/get-kos-connection-id.d.ts +2 -0
- package/models/utils/get-kos-connection-id.d.ts.map +1 -0
- package/models/utils/index.d.ts +1 -0
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +2 -2
- package/models/utils/service-accessor.d.ts +4 -0
- package/models/utils/service-accessor.d.ts.map +1 -1
- package/models/utils/service.d.ts +4 -0
- package/models/utils/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.6.5/service.d.ts +4 -0
- package/models/utils/services/kos/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.8.1/service.d.ts +4 -0
- package/models/utils/services/kos/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/kos/1.9.x/openapi.d.ts +4597 -0
- package/models/utils/services/kos/1.9.x/service.d.ts +124 -0
- package/models/utils/services/kos/1.9.x/service.d.ts.map +1 -0
- package/models/utils/services/kos/daily/service.d.ts +4 -0
- package/models/utils/services/kos/daily/service.d.ts.map +1 -1
- package/models/utils/services/vfs/1.6.5/service.d.ts +4 -0
- package/models/utils/services/vfs/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/vfs/1.8.1/service.d.ts +4 -0
- package/models/utils/services/vfs/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/vfs/1.9.x/openapi.d.ts +51 -0
- package/models/utils/services/vfs/1.9.x/service.d.ts +124 -0
- package/models/utils/services/vfs/1.9.x/service.d.ts.map +1 -0
- package/models/utils/services/vfs/daily/service.d.ts +4 -0
- package/models/utils/services/vfs/daily/service.d.ts.map +1 -1
- package/models/utils/services-index.d.ts +2 -0
- package/models/utils/services-index.d.ts.map +1 -1
- package/package.json +15 -2
- package/ui/contexts/kos-core-context.d.ts.map +1 -1
- package/ui/contexts/translation-container/kos-translations-provider.d.ts +5 -0
- package/ui/contexts/translation-container/kos-translations-provider.d.ts.map +1 -1
- package/ui/hooks/device/use-device.d.ts +6 -0
- package/ui/hooks/device/use-device.d.ts.map +1 -1
- package/ui/hooks/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
|
@@ -20,6 +20,7 @@ export interface KosSubscriptionParams {
|
|
|
20
20
|
fos?: boolean;
|
|
21
21
|
bridge?: boolean;
|
|
22
22
|
destinationAddress?: string | null;
|
|
23
|
+
explicitDestination?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface IKosServiceTransport {
|
|
25
26
|
host: string;
|
|
@@ -65,7 +66,7 @@ export declare class WebSocketTransport implements IKosServiceTransport {
|
|
|
65
66
|
get connectionEstablished(): boolean;
|
|
66
67
|
init(): this;
|
|
67
68
|
private _sendSubscriptionMessage;
|
|
68
|
-
subscribeTopic({ topic, callback, fos, bridge, destinationAddress, }: KosSubscriptionParams): () => void;
|
|
69
|
+
subscribeTopic({ topic, callback, fos, bridge, destinationAddress, explicitDestination, }: KosSubscriptionParams): () => void;
|
|
69
70
|
whenReady(): Promise<{
|
|
70
71
|
status: string;
|
|
71
72
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webSocketTransport.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/transport/webSocketTransport.ts"],"names":[],"mappings":"AASA,OAAO,EAAY,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI1D,OAAO,EAAE,gBAAgB,EAAmB,MAAM,0BAA0B,CAAC;AAY7E,oBAAY,oBAAoB;IAC9B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AACD,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"webSocketTransport.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/transport/webSocketTransport.ts"],"names":[],"mappings":"AASA,OAAO,EAAY,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI1D,OAAO,EAAE,gBAAgB,EAAmB,MAAM,0BAA0B,CAAC;AAY7E,oBAAY,oBAAoB;IAC9B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AACD,MAAM,WAAW,WAAW;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,aAAa,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAC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AAE,gBAAgB,CAAC;IAE1B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,EAAE,OAAO,CAAC;gBAEb,EACV,IAAkB,EAClB,IAAW,EACX,QAAkB,EAClB,KAAK,EACL,UAAU,EACV,KAAK,EACL,GAAG,GACJ,EAAE,wBAAwB;IA8C3B,IAAI,qBAAqB,YAsBxB;IAED,IAAI;IAmCJ,OAAO,CAAC,wBAAwB;IAyChC,cAAc,CAAC,EACb,KAAK,EACL,QAAQ,EACR,GAAG,EACH,MAAM,EACN,kBAAkB,EAClB,mBAAmB,GACpB,EAAE,qBAAqB;IA4BlB,SAAS;;;IAmBf,IAAI,KAAK,IAGQ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAGtB;WACa,IAAI,CAAC,IAAI,SAAc;WAKvB,IAAI,CAAC,IAAI,SAAO;WAKhB,KAAK,CAAC,KAAK,EAAE,MAAM;WAInB,WAAW,CAAC,IAAI,SAAO,EAAE,KAAK,CAAC,EAAE,MAAM;CAStD"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.dependency
|
|
3
|
+
*/
|
|
1
4
|
export declare enum DependencyLifecycle {
|
|
2
5
|
INIT = "init",
|
|
3
6
|
LOAD = "load",
|
|
@@ -8,6 +11,8 @@ export declare enum DependencyLifecycle {
|
|
|
8
11
|
/**
|
|
9
12
|
* Policy for handling dependency resolution failures.
|
|
10
13
|
*
|
|
14
|
+
* @kosService core.dependency
|
|
15
|
+
*
|
|
11
16
|
* All policies follow a lookup-first approach: The framework first checks if a model
|
|
12
17
|
* with the specified ID already exists. If found and the type matches, it returns the
|
|
13
18
|
* existing instance. Only if no existing model is found does the framework apply the
|
|
@@ -34,7 +39,10 @@ export declare enum DependencyResolutionPolicy {
|
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
41
|
* The parameters for the kosDependency decorator.
|
|
37
|
-
*
|
|
42
|
+
*
|
|
43
|
+
* @kosService core.dependency
|
|
44
|
+
* @kosApiLevel 2
|
|
45
|
+
*/
|
|
38
46
|
export interface KosDependencyParams<Options = unknown> {
|
|
39
47
|
/** The type of the model to be injected. */
|
|
40
48
|
modelType: string;
|
|
@@ -53,6 +61,7 @@ export interface KosDependencyParams<Options = unknown> {
|
|
|
53
61
|
* - CREATE (default): Attempts to create model instance after lookup fails
|
|
54
62
|
* - CONTINUE: Returns undefined after lookup fails, allows graceful degradation
|
|
55
63
|
* - FAIL: Throws exception with detailed logging after lookup fails
|
|
64
|
+
* @kosApiLevel 16
|
|
56
65
|
*/
|
|
57
66
|
resolutionPolicy?: DependencyResolutionPolicy;
|
|
58
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-dependency.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/types/kos-dependency.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED
|
|
1
|
+
{"version":3,"file":"kos-dependency.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/types/kos-dependency.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED;;;;;;;;;GASG;AACH,oBAAY,0BAA0B;IACpC;;;;OAIG;IACH,MAAM,WAAW;IACjB;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;OAGG;IACH,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB,CAAC,OAAO,GAAG,OAAO;IACpD,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,0BAA0B,CAAC;CAC/C"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Response retention policies for ServiceResponseStore
|
|
3
3
|
* Controls how long service responses are cached and when they're cleaned up
|
|
4
|
+
*
|
|
5
|
+
* @kosService core.service-request
|
|
4
6
|
*/
|
|
5
7
|
export declare enum ResponseRetention {
|
|
6
8
|
/**
|
|
@@ -34,6 +36,9 @@ export declare enum ResponseRetention {
|
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* Configuration for response caching behavior
|
|
39
|
+
*
|
|
40
|
+
* @kosService core.service-request
|
|
41
|
+
* @kosApiLevel 15
|
|
37
42
|
*/
|
|
38
43
|
export interface ResponseCacheConfig {
|
|
39
44
|
/**
|
|
@@ -71,6 +76,8 @@ export interface ResponseCacheConfig {
|
|
|
71
76
|
/**
|
|
72
77
|
* Replay strategy for baseline-delta race condition handling
|
|
73
78
|
* Determines which queued events to replay after baseline loads
|
|
79
|
+
*
|
|
80
|
+
* @kosService core.topic-handler
|
|
74
81
|
*/
|
|
75
82
|
export declare enum ReplayStrategy {
|
|
76
83
|
/**
|
|
@@ -96,6 +103,9 @@ export declare enum ReplayStrategy {
|
|
|
96
103
|
}
|
|
97
104
|
/**
|
|
98
105
|
* Baseline dependency configuration for topic handlers
|
|
106
|
+
*
|
|
107
|
+
* @kosService core.topic-handler
|
|
108
|
+
* @kosApiLevel 15
|
|
99
109
|
*/
|
|
100
110
|
export interface BaselineDependency {
|
|
101
111
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-response-store.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/types/service-response-store.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"service-response-store.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/types/service-response-store.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;OAMG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,MAAM,WAAW;IAEjB;;;OAGG;IACH,GAAG,QAAQ;IAEX;;;OAGG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,MAAM,WAAW;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,oBAAY,cAAc;IACxB;;;OAGG;IACH,GAAG,QAAQ;IAEX;;;OAGG;IACH,aAAa,kBAAkB;IAE/B;;;OAGG;IACH,cAAc,mBAAmB;IAEjC;;;OAGG;IACH,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -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;
|
|
@@ -32,8 +44,65 @@ export interface Response extends Body {
|
|
|
32
44
|
readonly url: string;
|
|
33
45
|
clone(): Response;
|
|
34
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Configuration for automatic retry with exponential backoff.
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.fetch
|
|
51
|
+
*
|
|
52
|
+
* When `retry` is set to `true` on {@link KosFetchOptions}, these defaults apply.
|
|
53
|
+
* When set to a partial `RetryConfig`, unspecified fields use these defaults:
|
|
54
|
+
* - `maxAttempts`: 3
|
|
55
|
+
* - `baseDelayMs`: 350
|
|
56
|
+
* - `backoffFactor`: 2
|
|
57
|
+
* - `retryMutations`: false (POST, PUT, DELETE, PATCH are NOT retried)
|
|
58
|
+
* - `retryOn`: retries on any error (return `true` to retry, `false` to stop)
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* // Use all defaults
|
|
63
|
+
* retry: true
|
|
64
|
+
*
|
|
65
|
+
* // Custom config
|
|
66
|
+
* retry: {
|
|
67
|
+
* maxAttempts: 5,
|
|
68
|
+
* retryOn: (response) => response.status === 503 || response.status === 429,
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @category Service Request
|
|
73
|
+
* @kosApiLevel 22
|
|
74
|
+
*/
|
|
75
|
+
export interface RetryConfig {
|
|
76
|
+
/** Maximum number of attempts (including the initial request). @default 3 */
|
|
77
|
+
maxAttempts?: number;
|
|
78
|
+
/** Base delay in milliseconds before the first retry. @default 350 */
|
|
79
|
+
baseDelayMs?: number;
|
|
80
|
+
/** Multiplier applied to the delay after each attempt. @default 2 */
|
|
81
|
+
backoffFactor?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Whether to retry mutating methods (POST, PUT, DELETE, PATCH).
|
|
84
|
+
* Set to `true` only if the endpoint is idempotent.
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
87
|
+
retryMutations?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Predicate called with the {@link Response} to decide if a failed request
|
|
90
|
+
* should be retried. Return `true` to retry, `false` to stop immediately.
|
|
91
|
+
*
|
|
92
|
+
* If not provided, all errors are retried (up to `maxAttempts`).
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* retryOn: (response) => response.status >= 500
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
retryOn?: (response: Response) => boolean;
|
|
100
|
+
}
|
|
35
101
|
/**
|
|
36
102
|
* Represents the configuration options for performing a Kos WebSocket fetch operation.
|
|
103
|
+
*
|
|
104
|
+
* @kosService core.fetch
|
|
105
|
+
* @kosApiLevel 2
|
|
37
106
|
*/
|
|
38
107
|
export interface KosFetchOptions {
|
|
39
108
|
/**
|
|
@@ -73,16 +142,37 @@ export interface KosFetchOptions {
|
|
|
73
142
|
*/
|
|
74
143
|
bridge?: boolean;
|
|
75
144
|
timeout?: number;
|
|
145
|
+
/**
|
|
146
|
+
* @kosApiLevel 5
|
|
147
|
+
*/
|
|
76
148
|
headers?: Record<string, string>;
|
|
77
149
|
/**
|
|
78
150
|
* Enable streaming mode for large responses
|
|
151
|
+
* @kosApiLevel 11
|
|
79
152
|
*/
|
|
80
153
|
stream?: boolean;
|
|
81
154
|
/**
|
|
82
155
|
* Response type hint for binary data handling
|
|
156
|
+
* @kosApiLevel 11
|
|
83
157
|
*/
|
|
84
158
|
responseType?: "text" | "json" | "arraybuffer" | "blob";
|
|
159
|
+
/**
|
|
160
|
+
* Retry configuration for transient failures.
|
|
161
|
+
*
|
|
162
|
+
* - `true`: enable retry with all defaults
|
|
163
|
+
* - `RetryConfig`: partial overrides (unspecified fields use defaults)
|
|
164
|
+
* - `undefined` / omitted: no retry (current behavior)
|
|
165
|
+
*
|
|
166
|
+
* Mutating methods (POST, PUT, DELETE, PATCH) are NOT retried by default.
|
|
167
|
+
* Set `retryMutations: true` to opt in.
|
|
168
|
+
* @kosApiLevel 22
|
|
169
|
+
*/
|
|
170
|
+
retry?: boolean | RetryConfig;
|
|
85
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* @kosService core.fetch
|
|
174
|
+
* @kosApiLevel 2
|
|
175
|
+
*/
|
|
86
176
|
export interface KosFetchResponse {
|
|
87
177
|
headers: Headers;
|
|
88
178
|
status: string | number | boolean;
|
|
@@ -90,6 +180,10 @@ export interface KosFetchResponse {
|
|
|
90
180
|
json: <T = Record<string | number | symbol, string | number | symbol>>() => Promise<T>;
|
|
91
181
|
body: ReadableStream<Uint8Array> | null;
|
|
92
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* @kosService core.fetch
|
|
185
|
+
* @kosApiLevel 2
|
|
186
|
+
*/
|
|
93
187
|
export interface KosFetchReqeust {
|
|
94
188
|
path: string;
|
|
95
189
|
requestId: string;
|
|
@@ -98,21 +192,40 @@ export interface KosFetchReqeust {
|
|
|
98
192
|
ordered?: boolean;
|
|
99
193
|
tracker?: string;
|
|
100
194
|
bridge?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* @kosApiLevel 5
|
|
197
|
+
*/
|
|
101
198
|
headers?: Record<string, string | number | boolean>;
|
|
102
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* @kosService core.fetch
|
|
202
|
+
* @kosApiLevel 2
|
|
203
|
+
*/
|
|
103
204
|
export interface KosMessageRequest extends Omit<KosFetchReqeust, "method" | "path" | "requestId"> {
|
|
104
205
|
requestType: string;
|
|
105
206
|
requestId?: string;
|
|
106
207
|
headers?: Record<string, string>;
|
|
107
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* @kosService core.fetch
|
|
211
|
+
* @kosApiLevel 2
|
|
212
|
+
*/
|
|
108
213
|
export interface KosBroadcastRequest {
|
|
109
214
|
topic: string;
|
|
110
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* @kosService core.fetch
|
|
218
|
+
* @kosApiLevel 2
|
|
219
|
+
*/
|
|
111
220
|
export interface KosMessageOptions extends KosBroadcastRequest {
|
|
112
221
|
destinationAddress?: string;
|
|
113
222
|
responseId?: string;
|
|
114
223
|
type?: string;
|
|
115
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* @kosService core.fetch
|
|
227
|
+
* @kosApiLevel 2
|
|
228
|
+
*/
|
|
116
229
|
export interface KosHttpMessageOptions {
|
|
117
230
|
destinationAddress: string;
|
|
118
231
|
sourceAddress: string;
|
|
@@ -121,12 +234,20 @@ export interface KosHttpMessageOptions {
|
|
|
121
234
|
type: string;
|
|
122
235
|
contentType?: string;
|
|
123
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @kosService core.fetch
|
|
239
|
+
* @kosApiLevel 2
|
|
240
|
+
*/
|
|
124
241
|
export interface KosFetchResponseParams {
|
|
125
242
|
path: string;
|
|
126
243
|
responseId?: string;
|
|
127
244
|
destinationAddress: string;
|
|
128
245
|
status: string | number | boolean;
|
|
129
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* @kosService core.fetch
|
|
249
|
+
* @kosApiLevel 2
|
|
250
|
+
*/
|
|
130
251
|
export interface KosFetchPostReqeust extends KosFetchReqeust {
|
|
131
252
|
body?: string;
|
|
132
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;IAC3B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,OAAO,CACL,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,EACjE,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI,CAAC;CACT;AAED,UAAU,IAAI;IACZ,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG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Aa,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,MAAM,QAAQ,CAClB,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,SAAS,YAAY,GAAG,CAAC,IACxB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;AAErB,KAAK,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;AAExE;;;;;GAKG;AACH,UAAU,aAAa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E;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,CAA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AsB,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,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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"}
|