@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
package/core/util/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './paired-client-heartbeat';
|
|
|
27
27
|
export * from './pipe';
|
|
28
28
|
export * from './retry-with-exponential-backoff';
|
|
29
29
|
export * from './service-factory';
|
|
30
|
+
export * from './service-request-error';
|
|
30
31
|
export * from './service-response';
|
|
31
32
|
export * from './session-utils';
|
|
32
33
|
export * from './wait-for-request';
|
package/core/util/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AA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9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,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"}
|
|
@@ -1,34 +1,122 @@
|
|
|
1
1
|
import { KosBroadcastRequest, KosFetchReqeust, KosFetchResponseParams, KosMessageOptions, KosHttpMessageOptions, KosMessageRequest } from '../types';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.fetch
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const createStudioMessage: ({ path, requestId, method, destinationAddress, }: KosFetchReqeust) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.fetch
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const createFosBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, }: KosFetchReqeust) => string;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.fetch
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const createBaseMessage: ({ path, requestId, method, destinationAddress, ordered, tracker, bridge, headers, }: KosFetchReqeust) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @kosService core.fetch
|
|
20
|
+
* @kosApiLevel 2
|
|
21
|
+
*/
|
|
6
22
|
export declare const createMessageBody: (msg: string, body?: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.fetch
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
7
27
|
export declare function createHeaders(headers: Record<string, string>): Headers;
|
|
28
|
+
/**
|
|
29
|
+
* @kosService core.fetch
|
|
30
|
+
* @kosApiLevel 2
|
|
31
|
+
*/
|
|
8
32
|
export declare function createReadableStream(msg: string): ReadableStream<Uint8Array> | null;
|
|
33
|
+
/**
|
|
34
|
+
* @kosService core.fetch
|
|
35
|
+
* @kosApiLevel 2
|
|
36
|
+
*/
|
|
9
37
|
export declare const createStudioMessageRequest: ({ path, requestId, destinationAddress, }: KosFetchReqeust) => string;
|
|
38
|
+
/**
|
|
39
|
+
* @kosService core.fetch
|
|
40
|
+
* @kosApiLevel 2
|
|
41
|
+
*/
|
|
10
42
|
export declare const createKosMessage: ({ requestId, destinationAddress, requestType, headers, }: KosMessageRequest) => string;
|
|
43
|
+
/**
|
|
44
|
+
* @kosService core.fetch
|
|
45
|
+
* @kosApiLevel 2
|
|
46
|
+
*/
|
|
11
47
|
export declare const sendKosMessage: <T extends object>(msg: T, options: KosMessageRequest) => void;
|
|
48
|
+
/**
|
|
49
|
+
* @kosService core.fetch
|
|
50
|
+
* @kosApiLevel 2
|
|
51
|
+
*/
|
|
12
52
|
export declare const createStudioMessageResponse: ({ path, responseId, status, destinationAddress, }: KosFetchResponseParams) => string;
|
|
53
|
+
/**
|
|
54
|
+
* @kosService core.fetch
|
|
55
|
+
* @kosApiLevel 2
|
|
56
|
+
*/
|
|
13
57
|
export declare const sendStudioMessageRequest: <T extends object>(msg: T, options: KosFetchReqeust) => void;
|
|
58
|
+
/**
|
|
59
|
+
* @kosService core.fetch
|
|
60
|
+
* @kosApiLevel 2
|
|
61
|
+
*/
|
|
14
62
|
export declare const sendStudioMessage: <T extends object>(msg: T, options: KosFetchResponseParams) => void;
|
|
63
|
+
/**
|
|
64
|
+
* @kosService core.fetch
|
|
65
|
+
* @kosApiLevel 2
|
|
66
|
+
*/
|
|
15
67
|
export declare const createBroadcastMessageResponse: ({ topic, }: KosBroadcastRequest) => string;
|
|
68
|
+
/**
|
|
69
|
+
* @kosService core.fetch
|
|
70
|
+
* @kosApiLevel 2
|
|
71
|
+
*/
|
|
16
72
|
export declare const createKosHtpMessageResponse: ({ responseId, destinationAddress, type, sourceAddress, status, }: KosHttpMessageOptions) => string;
|
|
73
|
+
/**
|
|
74
|
+
* @kosService core.fetch
|
|
75
|
+
* @kosApiLevel 2
|
|
76
|
+
*/
|
|
17
77
|
export declare const createKosMessageResponse: ({ topic, responseId, destinationAddress, type, }: KosMessageOptions) => string;
|
|
78
|
+
/**
|
|
79
|
+
* @kosService core.fetch
|
|
80
|
+
* @kosApiLevel 2
|
|
81
|
+
*/
|
|
18
82
|
export interface KosBroadcastRequestParams<T extends object> {
|
|
19
83
|
msg: T;
|
|
20
84
|
options: KosBroadcastRequest;
|
|
21
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* @kosService core.fetch
|
|
88
|
+
* @kosApiLevel 2
|
|
89
|
+
*/
|
|
22
90
|
export declare const sendBroadcastMessage: <T extends object>({ msg, options, }: KosBroadcastRequestParams<T>) => void;
|
|
91
|
+
/**
|
|
92
|
+
* @kosService core.fetch
|
|
93
|
+
* @kosApiLevel 2
|
|
94
|
+
*/
|
|
23
95
|
export interface KosMessageResponseParams<T extends object> {
|
|
24
96
|
msg: T;
|
|
25
97
|
options: KosMessageOptions;
|
|
26
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* @kosService core.fetch
|
|
101
|
+
* @kosApiLevel 2
|
|
102
|
+
*/
|
|
27
103
|
export interface KosHttpMessageResponseParams<T extends object> {
|
|
28
104
|
msg: T;
|
|
29
105
|
options: KosHttpMessageOptions;
|
|
30
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* @kosService core.fetch
|
|
109
|
+
* @kosApiLevel 2
|
|
110
|
+
*/
|
|
31
111
|
export declare const sendKosMessageResponse: <T extends object>({ msg, options, }: KosMessageResponseParams<T>) => void;
|
|
112
|
+
/**
|
|
113
|
+
* @kosService core.fetch
|
|
114
|
+
* @kosApiLevel 2
|
|
115
|
+
*/
|
|
32
116
|
export declare const sendKosHttpMessageResponse: <T extends object>({ msg, options, }: KosHttpMessageResponseParams<T>) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @kosService core.fetch
|
|
119
|
+
* @kosApiLevel 2
|
|
120
|
+
*/
|
|
33
121
|
export declare const getMessageBody: (payload: any, skipParse: any) => any;
|
|
34
122
|
//# sourceMappingURL=kos-message-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,qDAK7B,eAAe,WAYjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uEAO9B,eAAe,WAiBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,wFAS3B,eAAe,WAsBjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAS,MAAM,SAAS,MAAM,WAM3D,CAAC;AAEF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAiCtE;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,GACV,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CA+BnC;AAED,eAAO,MAAM,0BAA0B,6CAIpC,eAAe,WAQjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,6DAK1B,iBAAiB,WAWnB,CAAC;AAEF,eAAO,MAAM,cAAc,0BACpB,CAAC,WACG,iBAAiB,SAgB3B,CAAC;AACF,eAAO,MAAM,2BAA2B,sDAKrC,sBAAsB,WAUxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,0BAC9B,CAAC,WACG,eAAe,SAezB,CAAC;AACF,eAAO,MAAM,iBAAiB,0BACvB,CAAC,WACG,sBAAsB,SAiBhC,CAAC;AAEF,eAAO,MAAM,8BAA8B,eAExC,mBAAmB,WAKrB,CAAC;AACF,eAAO,MAAM,2BAA2B,qEAMrC,qBAAqB,WAUvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,qDAKlC,iBAAiB,WAOnB,CAAC;AAEF,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,MAAM;IACzD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AACD,eAAO,MAAM,oBAAoB,wCAG9B,0BAA0B,CAAC,CAAC,SAe9B,CAAC;AAEF,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM;IACxD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"kos-message-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-message-utils.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAElB;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qDAK7B,e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;GAGG;AACH,eAAO,MAAM,oBAAoB,wCAG9B,0BAA0B,CAAC,CAAC,SAe9B,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM;IACxD,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,GAAG,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,qBAAqB,CAAC;CAChC;AACD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,wCAGhC,yBAAyB,CAAC,CAAC,SAc7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wCAGpC,6BAA6B,CAAC,CAAC,SAcjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,uCAM1B,CAAC"}
|
|
@@ -6,8 +6,15 @@ import { IKosDataModel, IKosModel } from '../core/kosModel';
|
|
|
6
6
|
* @async
|
|
7
7
|
* @param model - The KOS data model to destroy.
|
|
8
8
|
* @throws An error if the model cannot be destroyed.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.utils
|
|
11
|
+
* @kosApiLevel 2
|
|
9
12
|
*/
|
|
10
13
|
export declare const destroyKosModel: (model: IKosDataModel) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.utils
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
11
18
|
export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>;
|
|
12
19
|
/**
|
|
13
20
|
* Asynchronously resets a KOS data model.
|
|
@@ -15,6 +22,9 @@ export declare const unloadKosModel: (dataModel: IKosDataModel) => Promise<void>
|
|
|
15
22
|
* @async
|
|
16
23
|
* @param model - The KOS data model to reset.
|
|
17
24
|
* @throws An error if the model cannot be reset.
|
|
25
|
+
*
|
|
26
|
+
* @kosService core.utils
|
|
27
|
+
* @kosApiLevel 2
|
|
18
28
|
*/
|
|
19
29
|
export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
20
30
|
/**
|
|
@@ -24,6 +34,9 @@ export declare const resetKosModel: (model: IKosDataModel) => Promise<void>;
|
|
|
24
34
|
* @param modelId - The ID of the KOS data model.
|
|
25
35
|
* @returns The type of the KOS data model.
|
|
26
36
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
37
|
+
*
|
|
38
|
+
* @kosService core.utils
|
|
39
|
+
* @kosApiLevel 2
|
|
27
40
|
*/
|
|
28
41
|
export declare const getKosModelType: (modelId: string) => Promise<string | undefined>;
|
|
29
42
|
/**
|
|
@@ -33,6 +46,9 @@ export declare const getKosModelType: (modelId: string) => Promise<string | unde
|
|
|
33
46
|
* @param modelId - The ID of the KOS data model.
|
|
34
47
|
* @returns An object containing the KOS data model and its type.
|
|
35
48
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
49
|
+
*
|
|
50
|
+
* @kosService core.utils
|
|
51
|
+
* @kosApiLevel 2
|
|
36
52
|
*/
|
|
37
53
|
export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(modelId: string) => Promise<{
|
|
38
54
|
model: T;
|
|
@@ -44,6 +60,9 @@ export declare const getKosModel: <T extends IKosDataModel = IKosDataModel>(mode
|
|
|
44
60
|
* @param modelId - The ID of the KOS data model.
|
|
45
61
|
* @returns An object containing the KOS data model and its type.
|
|
46
62
|
* @throws An error if the model ID is not provided or the model cannot be found.
|
|
63
|
+
*
|
|
64
|
+
* @kosService core.utils
|
|
65
|
+
* @kosApiLevel 2
|
|
47
66
|
*/
|
|
48
67
|
export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(modelId: string) => {
|
|
49
68
|
model: T;
|
|
@@ -56,6 +75,9 @@ export declare const getKosModelSync: <T extends IKosDataModel = IKosDataModel>(
|
|
|
56
75
|
* @param predicate - An object representing filter conditions.
|
|
57
76
|
* @returns An array of filtered KOS data models.
|
|
58
77
|
* @throws An error if the model type is not provided.
|
|
78
|
+
*
|
|
79
|
+
* @kosService core.utils
|
|
80
|
+
* @kosApiLevel 2
|
|
59
81
|
*/
|
|
60
82
|
export declare const findModels: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
61
83
|
[k: string]: any;
|
|
@@ -67,6 +89,9 @@ export declare const findModels: <T extends IKosDataModel>(modelType: string, pr
|
|
|
67
89
|
* @param predicate - An object representing filter conditions.
|
|
68
90
|
* @returns The first matching KOS data model, or undefined if none is found.
|
|
69
91
|
* @throws An error if the model type is not provided.
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.utils
|
|
94
|
+
* @kosApiLevel 2
|
|
70
95
|
*/
|
|
71
96
|
export declare const findModel: <T extends IKosDataModel>(modelType: string, predicate: {
|
|
72
97
|
[k: string]: any;
|
|
@@ -78,6 +103,9 @@ export declare const findModel: <T extends IKosDataModel>(modelType: string, pre
|
|
|
78
103
|
* @param type - The type of the companion model.
|
|
79
104
|
* @returns The companion KOS data model of the specified type.
|
|
80
105
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
106
|
+
*
|
|
107
|
+
* @kosService core.utils
|
|
108
|
+
* @kosApiLevel 2
|
|
81
109
|
*/
|
|
82
110
|
export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKosDataModel, type: string) => T;
|
|
83
111
|
/**
|
|
@@ -86,16 +114,34 @@ export declare const getKosCompanionModel: <T extends IKosDataModel>(model: IKos
|
|
|
86
114
|
* @param model - The KOS data model for which to retrieve a companion model.
|
|
87
115
|
* @returns The list of companion KOS data models
|
|
88
116
|
* @throws An error if the model ID is not provided, the model cannot be found, or the companion model does not exist.
|
|
117
|
+
*
|
|
118
|
+
* @kosService core.utils
|
|
119
|
+
* @kosApiLevel 2
|
|
89
120
|
*/
|
|
90
121
|
export declare const getAllKosCompanionModels: (model: IKosDataModel) => IKosDataModel[];
|
|
122
|
+
/**
|
|
123
|
+
* @kosService core.utils
|
|
124
|
+
* @kosApiLevel 5
|
|
125
|
+
*/
|
|
91
126
|
export declare const getObservableCompanions: (modelId: string) => import('mobx').ObservableMap<string, IKosModel<IKosDataModel>>;
|
|
127
|
+
/**
|
|
128
|
+
* @kosService core.utils
|
|
129
|
+
* @kosApiLevel 2
|
|
130
|
+
*/
|
|
92
131
|
export declare const resolveKosCompanion: <T extends IKosDataModel>(modelId: string, resolver: (model: T) => boolean) => IKosModel | undefined;
|
|
93
132
|
/**
|
|
94
133
|
* Checks if an object is an instance of a specific KOS data model type.
|
|
95
134
|
*
|
|
96
135
|
* @param type - The type of the KOS data model to check against.
|
|
97
136
|
* @returns A type guard function that checks if an object is an instance of the specified KOS data model type.
|
|
137
|
+
*
|
|
138
|
+
* @kosService core.utils
|
|
139
|
+
* @kosApiLevel 2
|
|
98
140
|
*/
|
|
99
141
|
export declare const isKosModel: <T extends IKosDataModel>(type: string) => (model: any) => model is T;
|
|
142
|
+
/**
|
|
143
|
+
* @kosService core.utils
|
|
144
|
+
* @kosApiLevel 2
|
|
145
|
+
*/
|
|
100
146
|
export declare const isKosModelReady: (model: IKosDataModel) => boolean;
|
|
101
147
|
//# sourceMappingURL=kos-model-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE
|
|
1
|
+
{"version":3,"file":"kos-model-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKjE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,UAAiB,aAAa,kBAGzD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAqB,aAAa,kBAS5D,CAAC;AACF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,UAAiB,aAAa,kBAevD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,YAAmB,MAAM,gCAQpD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,qDACb,MAAM;;;EAShB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,qDACjB,MAAM;;;CAQhB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,uCACV,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAUhC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,uCACT,MAAM,aACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,MACU,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,mCACxB,aAAa,QACd,MAAM,MAYb,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,UAAW,aAAa,oBAc5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,MAAM,mEAYtD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qCACrB,MAAM,YACL,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,KAC9B,SAAS,GAAG,SAWd,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,kCACW,MAAM,aAC9B,GAAG,eACwC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAW,aAAa,YAMnD,CAAC"}
|
|
@@ -6,6 +6,8 @@ import { IKosDataModel, IKosModel, IKosVisitor } from '../core/kosModel';
|
|
|
6
6
|
* @abstract
|
|
7
7
|
* @implements IKosVisitor<IKosModel>
|
|
8
8
|
* @category Core
|
|
9
|
+
* @kosService core.kos-model
|
|
10
|
+
* @kosApiLevel 2
|
|
9
11
|
*/
|
|
10
12
|
export declare abstract class KosModelVisitor implements IKosVisitor<IKosModel> {
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE
|
|
1
|
+
{"version":3,"file":"kos-model-visitor.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-model-visitor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQzE;;;;;;;;GAQG;AACH,8BAAsB,eAAgB,YAAW,WAAW,CAAC,SAAS,CAAC;IACrE;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAEvC;;OAEG;;IAKH;;;;;OAKG;IACH,KAAK,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI;IAiBrC;;;;OAIG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAqB7B;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACzD,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,eAAe,GACvB,OAAO,GAAG,IAAI;CAClB"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { ErrorResponseContext } from './service-request-error';
|
|
1
2
|
import { KosFetchOptions } from '../types';
|
|
2
3
|
|
|
4
|
+
export type { ErrorResponseContext };
|
|
3
5
|
/**
|
|
4
6
|
* Resolves the service URL configuration.
|
|
5
7
|
* @param _service - The optional service name (not used).
|
|
6
8
|
* @returns An object with `isMock` and `URL` properties.
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.service-request
|
|
11
|
+
* @kosApiLevel 2
|
|
7
12
|
*/
|
|
8
13
|
export declare const resolveBaseUrl: () => {
|
|
9
14
|
isMock: boolean;
|
|
@@ -12,7 +17,13 @@ export declare const resolveBaseUrl: () => {
|
|
|
12
17
|
type NonNeverKeys<T> = {
|
|
13
18
|
[K in keyof T]-?: T[K] extends never | undefined ? never : K;
|
|
14
19
|
}[keyof T];
|
|
20
|
+
/**
|
|
21
|
+
* @kosService core.service-request
|
|
22
|
+
*/
|
|
15
23
|
export type AvailableMethods<T> = Exclude<NonNeverKeys<T>, "parameters" | "requestBody">;
|
|
24
|
+
/**
|
|
25
|
+
* @kosService core.service-request
|
|
26
|
+
*/
|
|
16
27
|
export type PathsByMethod<T> = {
|
|
17
28
|
[Method in "get" | "put" | "post" | "delete"]: {
|
|
18
29
|
[K in keyof T]: Method extends AvailableMethods<T[K]> ? K : never;
|
|
@@ -42,6 +53,9 @@ type ClientPutBody<Paths extends Record<string, any>, K extends keyof Paths> = P
|
|
|
42
53
|
content: infer B;
|
|
43
54
|
};
|
|
44
55
|
} ? B[keyof B] : never;
|
|
56
|
+
/**
|
|
57
|
+
* @kosService core.service-request
|
|
58
|
+
*/
|
|
45
59
|
export type ClientResponse<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
46
60
|
responses: {
|
|
47
61
|
200: {
|
|
@@ -49,25 +63,43 @@ export type ClientResponse<Paths extends Record<string, any>, K extends keyof Pa
|
|
|
49
63
|
};
|
|
50
64
|
};
|
|
51
65
|
} ? R[keyof R] : unknown;
|
|
66
|
+
/**
|
|
67
|
+
* @kosService core.service-request
|
|
68
|
+
*/
|
|
52
69
|
export type ClientParams<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
53
70
|
parameters: infer P;
|
|
54
71
|
} ? P : never;
|
|
72
|
+
/**
|
|
73
|
+
* @kosService core.service-request
|
|
74
|
+
*/
|
|
55
75
|
export type ClientBody<Paths extends Record<string, any>, K extends keyof Paths, M extends AvailableMethods<Paths[K]> | string> = Paths[K][M] extends {
|
|
56
76
|
requestBody: {
|
|
57
77
|
content: infer B;
|
|
58
78
|
};
|
|
59
79
|
} ? B[keyof B] : never;
|
|
60
|
-
|
|
80
|
+
/**
|
|
81
|
+
* @kosService core.service-request
|
|
82
|
+
*/
|
|
83
|
+
export type ServiceResponse<T> = [error: string, data: null, errorContext?: ErrorResponseContext] | [error: null, data: T];
|
|
84
|
+
/**
|
|
85
|
+
* @kosService core.service-request
|
|
86
|
+
*/
|
|
61
87
|
export type DeepRequired<T> = {
|
|
62
88
|
[K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K] extends Array<infer U> ? Array<DeepRequired<U>> : T[K];
|
|
63
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @kosService core.service-request
|
|
92
|
+
*/
|
|
64
93
|
export type ElementType<T> = T extends (infer U)[] ? U : never;
|
|
65
94
|
type RequestOptions = Omit<KosFetchOptions, "method" | "body">;
|
|
95
|
+
/**
|
|
96
|
+
* @kosService core.service-request
|
|
97
|
+
* @kosApiLevel 2
|
|
98
|
+
*/
|
|
66
99
|
export declare function createClient<Paths extends Record<string, any>>(): {
|
|
67
100
|
get: <K_1 extends { [K in keyof Paths]: "get" extends infer T ? T extends "get" ? T extends Exclude<NonNeverKeys<Paths[K]>, "parameters" | "requestBody"> ? K : never : never : never; }[keyof Paths]>(endpoint: K_1, params?: ClientGetParams<Paths, K_1> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_1, "get">>>;
|
|
68
101
|
post: <K_3 extends { [K_2 in keyof Paths]: "post" extends infer T_1 ? T_1 extends "post" ? T_1 extends Exclude<NonNeverKeys<Paths[K_2]>, "parameters" | "requestBody"> ? K_2 : never : never : never; }[keyof Paths]>(endpoint: K_3, params?: ClientPostParams<Paths, K_3> | undefined, body?: ClientPostBody<Paths, K_3> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_3, "post">>>;
|
|
69
102
|
put: <K_5 extends { [K_4 in keyof Paths]: "put" extends infer T_2 ? T_2 extends "put" ? T_2 extends Exclude<NonNeverKeys<Paths[K_4]>, "parameters" | "requestBody"> ? K_4 : never : never : never; }[keyof Paths]>(endpoint: K_5, params?: ClientPutParams<Paths, K_5> | undefined, body?: ClientPutBody<Paths, K_5> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_5, "put">>>;
|
|
70
103
|
delete: <K_7 extends { [K_6 in keyof Paths]: "delete" extends infer T_3 ? T_3 extends "delete" ? T_3 extends Exclude<NonNeverKeys<Paths[K_6]>, "parameters" | "requestBody"> ? K_6 : never : never : never; }[keyof Paths]>(endpoint: K_7, params?: ClientDeleteParams<Paths, K_7> | undefined, body?: ClientPutBody<Paths, K_7> | undefined, options?: RequestOptions) => Promise<ServiceResponse<ClientResponse<Paths, K_7, "delete">>>;
|
|
71
104
|
};
|
|
72
|
-
export {};
|
|
73
105
|
//# sourceMappingURL=kos-service-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-service-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,UAAU,CAAC;AAG7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;CAI1B,CAAC;AAIF,KAAK,YAAY,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,M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,KAAK,CAAC,MAAM,CAAC,CAAC,GAC3B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GACtB,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAkO/D,KAAK,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAC/D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;sRAQ9C,cAAc;qVAOd,cAAc;gVAQd,cAAc;4VAOd,cAAc;EAU7B"}
|
package/core/util/log-utils.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { LogLevelDesc } from 'loglevel';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.logging
|
|
5
|
+
* @kosApiLevel 2
|
|
6
|
+
*/
|
|
3
7
|
export declare const getLogLevel: () => LogLevelDesc;
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.logging
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
*/
|
|
4
12
|
export declare const getKosMessageLogging: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @kosService core.logging
|
|
15
|
+
* @kosApiLevel 2
|
|
16
|
+
*/
|
|
5
17
|
export declare const getLogMessageToStudio: () => boolean;
|
|
6
18
|
//# sourceMappingURL=log-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/log-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBxC;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,YAc9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,OAKxC,CAAC"}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.middleware
|
|
3
|
+
*/
|
|
1
4
|
export type Middleware<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> = (context: Context<D, R>, next: () => Promise<void>) => Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* @kosService core.middleware
|
|
7
|
+
* @kosApiLevel 2
|
|
8
|
+
*/
|
|
2
9
|
export interface Context<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>> {
|
|
3
10
|
data: D;
|
|
4
11
|
result: Partial<R>;
|
|
5
12
|
}
|
|
6
13
|
type ScalarValue = string | number | boolean | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @kosService core.middleware
|
|
16
|
+
* @kosApiLevel 2
|
|
17
|
+
*/
|
|
7
18
|
export declare class MiddlewareChain<D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>, T extends Context<D, R> = Context<D, R>> {
|
|
8
19
|
private middlewares;
|
|
9
20
|
use(middleware: Middleware<D, R>): void;
|
|
10
21
|
execute(context: T): Promise<void>;
|
|
11
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @kosService core.middleware
|
|
25
|
+
* @kosApiLevel 2
|
|
26
|
+
*/
|
|
12
27
|
export declare const processMiddleware: <D extends object = Record<string, ScalarValue>, R extends object = Record<string, ScalarValue>>(data: D, middleware: Middleware<D, R>[]) => Promise<R>;
|
|
13
28
|
export {};
|
|
14
29
|
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/middleware.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CACpB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,IAC5C,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzE,MAAM,WAAW,OAAO,CACtB,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAE9C,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACpB;AAED,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAChE,qBAAa,eAAe,CAC1B,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9C,CAAC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,CAAC,WAAW,CAA0B;IAE7C,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CA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,CAAC,WAAW,CAA0B;IAE7C,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI;IAIjC,OAAO,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAYzC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yGAItB,CAAC,cACK,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,eAQ/B,CAAC"}
|
|
@@ -31,7 +31,14 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
31
31
|
* ```typescript
|
|
32
32
|
* @kosDependency({modelType: Ingredient.type, id: propertyKey})
|
|
33
33
|
* ```
|
|
34
|
+
*
|
|
35
|
+
* @kosService core.kos-model
|
|
36
|
+
* @kosApiLevel 2
|
|
34
37
|
*/
|
|
35
38
|
export declare const createPropKey: <R extends IKosDataModel>(key: keyof R) => string;
|
|
39
|
+
/**
|
|
40
|
+
* @kosService core.kos-model
|
|
41
|
+
* @kosApiLevel 2
|
|
42
|
+
*/
|
|
36
43
|
export declare const createOptionKey: <R extends object>(key: keyof R) => string;
|
|
37
44
|
//# sourceMappingURL=model-attribute-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"model-attribute-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-attribute-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,aAAa,iCAAkC,MAAM,CAAC,WAC1C,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,eAAe,0BAA2B,MAAM,CAAC,WACrC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ModelFactory } from '../types/model';
|
|
2
2
|
import { IKosDataModel } from '../core/kosModel';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const modelFactory: <T extends IKosDataModel, O extends Object = {}>(typeId: string) => ModelFactory<T, O>;
|
|
5
9
|
//# sourceMappingURL=model-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-factory.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/model-factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,YAAY,2DACf,MAAM,KACb,aAAa,CAAC,EAAE,CAAC,CAmBnB,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { BaseKosModelRegistrationBean } from '../types/model';
|
|
2
2
|
import { KosCompanionModelType } from '../core/types/registration';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.kos-model
|
|
6
|
+
* @kosApiLevel 2
|
|
7
|
+
*/
|
|
4
8
|
export declare const updateModelRegistration: <T extends BaseKosModelRegistrationBean<any, any>>(modelRegistration: T) => void;
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.kos-model
|
|
11
|
+
* @kosApiLevel 2
|
|
12
|
+
*/
|
|
5
13
|
export declare const updateCompanionModelRegistration: (typeId: string, companionRegistration: KosCompanionModelType<any>) => void;
|
|
6
14
|
//# sourceMappingURL=model-registration-utils.d.ts.map
|