@kosdev-code/kos-ui-sdk 2.1.37 → 2.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/events/eventBus.d.ts +30 -0
- package/common/events/eventBus.d.ts.map +1 -1
- package/common/events/eventBus.functional.d.ts +48 -0
- package/common/events/eventBus.functional.d.ts.map +1 -1
- package/common/events/eventBus.state.d.ts +33 -0
- package/common/events/eventBus.state.d.ts.map +1 -1
- package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -1
- package/core/core/decorators/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/kosModel.d.ts +38 -0
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
- package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
- package/core/core/services/browser-router.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +2 -1
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/types/kos-dependency.d.ts +10 -1
- package/core/types/kos-dependency.d.ts.map +1 -1
- package/core/types/service-response-store.d.ts +10 -0
- package/core/types/service-response-store.d.ts.map +1 -1
- package/core/types/utils/kos-fetch.d.ts +121 -0
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/ancestor-path-visitor.d.ts +2 -0
- package/core/util/ancestor-path-visitor.d.ts.map +1 -1
- package/core/util/api-request-id.d.ts +4 -0
- package/core/util/api-request-id.d.ts.map +1 -1
- package/core/util/apply-mixins.d.ts +4 -0
- package/core/util/apply-mixins.d.ts.map +1 -1
- package/core/util/array-utils.d.ts +4 -0
- package/core/util/array-utils.d.ts.map +1 -1
- package/core/util/container-utils.d.ts +14 -0
- package/core/util/container-utils.d.ts.map +1 -1
- package/core/util/date-utils.d.ts +29 -0
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/debounce.d.ts +3 -0
- package/core/util/debounce.d.ts.map +1 -1
- package/core/util/feature-flags.d.ts +19 -0
- package/core/util/feature-flags.d.ts.map +1 -1
- package/core/util/get-query-params.d.ts +4 -0
- package/core/util/get-query-params.d.ts.map +1 -1
- package/core/util/hsl-to-hex.d.ts +16 -0
- package/core/util/hsl-to-hex.d.ts.map +1 -1
- package/core/util/index.d.ts +2 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts +36 -0
- package/core/util/kos-config-init.d.ts.map +1 -1
- package/core/util/kos-data-mapper-utils.d.ts +9 -0
- package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts +12 -0
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-message-utils.d.ts +88 -0
- package/core/util/kos-message-utils.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +46 -0
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-model-visitor.d.ts +2 -0
- package/core/util/kos-model-visitor.d.ts.map +1 -1
- package/core/util/kos-org-utils.d.ts +3 -0
- package/core/util/kos-org-utils.d.ts.map +1 -0
- package/core/util/kos-service-request.d.ts +34 -2
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/log-utils.d.ts +12 -0
- package/core/util/log-utils.d.ts.map +1 -1
- package/core/util/middleware.d.ts +15 -0
- package/core/util/middleware.d.ts.map +1 -1
- package/core/util/model-attribute-utils.d.ts +7 -0
- package/core/util/model-attribute-utils.d.ts.map +1 -1
- package/core/util/model-factory.d.ts +4 -0
- package/core/util/model-factory.d.ts.map +1 -1
- package/core/util/model-registration-utils.d.ts +8 -0
- package/core/util/model-registration-utils.d.ts.map +1 -1
- package/core/util/model-utils.d.ts +30 -6
- package/core/util/model-utils.d.ts.map +1 -1
- package/core/util/observable-proxy-map.d.ts +11 -0
- package/core/util/observable-proxy-map.d.ts.map +1 -1
- package/core/util/paired-client-heartbeat.d.ts +2 -0
- package/core/util/paired-client-heartbeat.d.ts.map +1 -1
- package/core/util/pipe.d.ts +4 -0
- package/core/util/pipe.d.ts.map +1 -1
- package/core/util/retry-with-exponential-backoff.d.ts +3 -0
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +10 -0
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/service-request-error.d.ts +60 -0
- package/core/util/service-request-error.d.ts.map +1 -0
- package/core/util/service-response.d.ts +15 -0
- package/core/util/service-response.d.ts.map +1 -1
- package/core/util/session-utils.d.ts +8 -0
- package/core/util/session-utils.d.ts.map +1 -1
- package/core/util/wait-for-request.d.ts +16 -0
- package/core/util/wait-for-request.d.ts.map +1 -1
- package/core/util/when-ready.d.ts +3 -0
- package/core/util/when-ready.d.ts.map +1 -1
- package/index.cjs +79 -79
- 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 +6347 -5918
- 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/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/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 +3 -2
- package/ui/hooks/device/use-device.d.ts +6 -0
- package/ui/hooks/device/use-device.d.ts.map +1 -1
- package/ui/hooks/kos-time/use-kos-time.d.ts +6 -0
- package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -1
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +6 -0
- package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -1
- package/ui/hooks/ota/use-ota.d.ts +6 -0
- package/ui/hooks/ota/use-ota.d.ts.map +1 -1
- package/ui/hooks/software-info/use-software-info.d.ts +6 -0
- package/ui/hooks/software-info/use-software-info.d.ts.map +1 -1
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +6 -0
- package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/trans.d.ts +6 -0
- package/ui/hooks/translation-container/trans.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation-container.d.ts +6 -0
- package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation.d.ts +7 -0
- package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
- package/ui/hooks/translation-container/with-translation-container.d.ts +6 -0
- package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -1
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +6 -0
- package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -1
- package/ui/hooks/use-config-bean.d.ts +6 -0
- package/ui/hooks/use-config-bean.d.ts.map +1 -1
- package/ui/hooks/use-config-property.d.ts +6 -0
- package/ui/hooks/use-config-property.d.ts.map +1 -1
- package/ui/hooks/use-kos-model.d.ts +6 -0
- package/ui/hooks/use-kos-model.d.ts.map +1 -1
|
@@ -6,6 +6,9 @@ import { KosMethodTypes, KosRequest, KosResponse } from '../services/browser-rou
|
|
|
6
6
|
export declare const HttpRouteHandlers: unique symbol;
|
|
7
7
|
/**
|
|
8
8
|
* Interface for HTTP route configuration
|
|
9
|
+
*
|
|
10
|
+
* @kosService core.http-route
|
|
11
|
+
* @kosApiLevel 12
|
|
9
12
|
*/
|
|
10
13
|
export interface IHttpRouteConfig {
|
|
11
14
|
method: KosMethodTypes;
|
|
@@ -47,6 +50,9 @@ export interface IHttpRouteConfig {
|
|
|
47
50
|
* }
|
|
48
51
|
* }
|
|
49
52
|
* ```
|
|
53
|
+
*
|
|
54
|
+
* @kosService core.http-route
|
|
55
|
+
* @kosApiLevel 12
|
|
50
56
|
*/
|
|
51
57
|
export declare const get: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
52
58
|
/**
|
|
@@ -62,6 +68,9 @@ export declare const get: (path: string) => (target: any, propertyKey: string, d
|
|
|
62
68
|
* res.status(201).send(newUser);
|
|
63
69
|
* }
|
|
64
70
|
* ```
|
|
71
|
+
*
|
|
72
|
+
* @kosService core.http-route
|
|
73
|
+
* @kosApiLevel 12
|
|
65
74
|
*/
|
|
66
75
|
export declare const post: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
67
76
|
/**
|
|
@@ -78,6 +87,9 @@ export declare const post: (path: string) => (target: any, propertyKey: string,
|
|
|
78
87
|
* res.status(200).send(updatedUser);
|
|
79
88
|
* }
|
|
80
89
|
* ```
|
|
90
|
+
*
|
|
91
|
+
* @kosService core.http-route
|
|
92
|
+
* @kosApiLevel 12
|
|
81
93
|
*/
|
|
82
94
|
export declare const put: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
83
95
|
/**
|
|
@@ -93,6 +105,9 @@ export declare const put: (path: string) => (target: any, propertyKey: string, d
|
|
|
93
105
|
* res.status(204).send();
|
|
94
106
|
* }
|
|
95
107
|
* ```
|
|
108
|
+
*
|
|
109
|
+
* @kosService core.http-route
|
|
110
|
+
* @kosApiLevel 12
|
|
96
111
|
*/
|
|
97
112
|
export declare const del: (path: string) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
98
113
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-http-decorators.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-http-decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-http-decorators.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-http-decorators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACZ,MAAM,4BAA4B,CAAC;AAGpC;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAO7D;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,KAAK,CAChB,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK,IAAI,CAC9D,CAAC;CACH;AA2CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,GAAG,SA3E4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAuEe,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,SA9F2B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBA0FiB,CAAC;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,GAAG,SAlH4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBA8Ge,CAAC;AAEpD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,GAAG,SArI4B,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAiIkB,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,UAAU,SA1IqB,MAAM,cAEpC,GAAG,eACE,MAAM,cACP,kBAAkB,uBAsIP,CAAC;AAE9B;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,GAAG,gBAAgB,EAAE,CAEnE"}
|
|
@@ -6,6 +6,10 @@ interface DecoratedKosModel<T extends IKosDataModel = IKosDataModel> {
|
|
|
6
6
|
interface LogConfigProps {
|
|
7
7
|
group?: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @kosService core.logging
|
|
11
|
+
* @kosApiLevel 2
|
|
12
|
+
*/
|
|
9
13
|
export declare const kosLogger: <T extends IKosDataModel>({ group }?: LogConfigProps) => (constructor: DecoratedKosModel<T>) => any;
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=kos-log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-log.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-log.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,UAAU,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACjE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AAED,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,eAAO,MAAM,SAAS,wCACiB,cAAc,mBACrC,kBAAkB,CAAC,CAAC,KAAG,GAGpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"kos-log.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-log.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,UAAU,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACjE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AAED,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;;GAGG;AACH,eAAO,MAAM,SAAS,wCACiB,cAAc,mBACrC,kBAAkB,CAAC,CAAC,KAAG,GAGpC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { KosContextLogger } from '../kosModel';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @kosService core.logger-aware
|
|
5
|
+
* @kosApiLevel 13
|
|
6
|
+
*/
|
|
3
7
|
export interface KosLoggerAwareOptions {
|
|
4
8
|
/** Logger property name. Default: 'logger' */
|
|
5
9
|
loggerProperty?: string;
|
|
@@ -29,6 +33,9 @@ export interface KosLoggerAwareOptions {
|
|
|
29
33
|
* }
|
|
30
34
|
* }
|
|
31
35
|
* ```
|
|
36
|
+
*
|
|
37
|
+
* @kosService core.logger-aware
|
|
38
|
+
* @kosApiLevel 13
|
|
32
39
|
*/
|
|
33
40
|
export interface KosLoggerAware {
|
|
34
41
|
/**
|
|
@@ -91,6 +98,8 @@ export interface KosLoggerAware {
|
|
|
91
98
|
*
|
|
92
99
|
* @category KOS Model Decorator
|
|
93
100
|
* @since 2.1.0
|
|
101
|
+
* @kosService core.logger-aware
|
|
102
|
+
* @kosApiLevel 13
|
|
94
103
|
*/
|
|
95
104
|
export declare function kosLoggerAware(options?: KosLoggerAwareOptions): ClassDecorator;
|
|
96
105
|
//# sourceMappingURL=kos-logger-aware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-logger-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-logger-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpD,MAAM,WAAW,qBAAqB;IACpC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED
|
|
1
|
+
{"version":3,"file":"kos-logger-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-logger-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIpD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAgB,cAAc,CAC5B,OAAO,CAAC,EAAE,qBAAqB,GAC9B,cAAc,CAoChB"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.model-effect
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
interface KosModelEffectProps<T = any> {
|
|
2
6
|
dependencies: (model: T) => any[];
|
|
7
|
+
/**
|
|
8
|
+
* @kosApiLevel 3
|
|
9
|
+
*/
|
|
3
10
|
options?: {
|
|
4
11
|
fireImmediately?: boolean;
|
|
5
12
|
};
|
|
@@ -22,6 +29,8 @@ interface KosModelEffectProps<T = any> {
|
|
|
22
29
|
* }
|
|
23
30
|
* ```
|
|
24
31
|
* @category KOS Model Decorator
|
|
32
|
+
* @kosService core.model-effect
|
|
33
|
+
* @kosApiLevel 2
|
|
25
34
|
*/
|
|
26
35
|
export declare function kosModelEffect<T = any>(props?: KosModelEffectProps<T>): (target: T, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
27
36
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-model-effect.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-model-effect.ts"],"names":[],"mappings":"AAGA,UAAU,mBAAmB,CAAC,CAAC,GAAG,GAAG;IACnC,YAAY,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AACD
|
|
1
|
+
{"version":3,"file":"kos-model-effect.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-model-effect.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,UAAU,mBAAmB,CAAC,CAAC,GAAG,GAAG;IACnC,YAAY,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AACD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,YACpD,CAAC,gBAAgB,MAAM,cAAc,kBAAkB,UAWxE"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IFutureModel } from '../../../models/models/future/future-types';
|
|
2
2
|
import { MultipleFutureHandler } from '../../../models/models/future/future-aware';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @kosService core.future-aware
|
|
6
|
+
* @kosApiLevel 14
|
|
7
|
+
*/
|
|
4
8
|
export interface KosMultipleFutureAwareOptions {
|
|
5
9
|
/** Setup mode: 'full' includes all UI properties, 'minimal' only futureHandler. Default: 'full' */
|
|
6
10
|
mode?: "full" | "minimal";
|
|
@@ -25,6 +29,9 @@ export interface KosMultipleFutureAwareOptions {
|
|
|
25
29
|
* // futureHandler and named futures are now available via interface merging
|
|
26
30
|
* }
|
|
27
31
|
* ```
|
|
32
|
+
*
|
|
33
|
+
* @kosService core.future-aware
|
|
34
|
+
* @kosApiLevel 14
|
|
28
35
|
*/
|
|
29
36
|
export interface KosMultipleFutureAwareMinimal {
|
|
30
37
|
/**
|
|
@@ -60,6 +67,9 @@ type IsCancelledGetters<T extends string> = {
|
|
|
60
67
|
type CancelMethods<T extends string> = {
|
|
61
68
|
readonly [K in T as `cancel${Capitalize<K>}`]: () => Promise<void>;
|
|
62
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* @kosService core.future-aware
|
|
72
|
+
*/
|
|
63
73
|
export type MultipleFutureProperties<T extends string> = FutureGetters<T> & ProgressGetters<T> & StatusGetters<T> & IsRunningGetters<T> & IsCancelledGetters<T> & CancelMethods<T>;
|
|
64
74
|
/**
|
|
65
75
|
* Interface for models using @kosMultipleFutureAware in full mode (default).
|
|
@@ -84,6 +94,8 @@ export type MultipleFutureProperties<T extends string> = FutureGetters<T> & Prog
|
|
|
84
94
|
* }
|
|
85
95
|
* }
|
|
86
96
|
* ```
|
|
97
|
+
*
|
|
98
|
+
* @kosService core.future-aware
|
|
87
99
|
*/
|
|
88
100
|
export type KosMultipleFutureAwareFull<T extends string = string> = KosMultipleFutureAwareMinimal & MultipleFutureProperties<T> & {
|
|
89
101
|
/**
|
|
@@ -197,6 +209,8 @@ export type KosMultipleFutureAwareFull<T extends string = string> = KosMultipleF
|
|
|
197
209
|
*
|
|
198
210
|
* @category KOS Model Decorator
|
|
199
211
|
* @since 2.0.0
|
|
212
|
+
* @kosService core.future-aware
|
|
213
|
+
* @kosApiLevel 14
|
|
200
214
|
*/
|
|
201
215
|
export declare function kosMultipleFutureAware(options?: KosMultipleFutureAwareOptions): ClassDecorator;
|
|
202
216
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-multiple-future-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-multiple-future-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG/E,MAAM,WAAW,6BAA6B;IAC5C,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED
|
|
1
|
+
{"version":3,"file":"kos-multiple-future-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-multiple-future-aware.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAG/E;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,aAAa,EAAE,qBAAqB,CAAC;IAErC;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;GA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9D,6BAA6B,GAC3B,wBAAwB,CAAC,CAAC,CAAC,GAAG;IAC5B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,CAAC,EAAE,6BAA6B,GACtC,cAAc,CAchB"}
|
|
@@ -3,6 +3,10 @@ import { IKosDataModel } from '../kosModel';
|
|
|
3
3
|
interface DecoratedKosModel<T extends IKosDataModel = IKosDataModel> {
|
|
4
4
|
new (...args: any[]): T;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* @kosService core.parent
|
|
8
|
+
* @kosApiLevel 2
|
|
9
|
+
*/
|
|
6
10
|
export interface KosParentProps {
|
|
7
11
|
parentId?: string;
|
|
8
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-parent.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-parent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,UAAU,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACjE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"kos-parent.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-parent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,UAAU,iBAAiB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACjE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAeD,eAAO,MAAM,cAAc,sCACW,cAAc,mBACpC,kBAAkB,CAAC,CAAC,KAAG,GAOpC,CAAC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.reference
|
|
3
|
+
* @kosApiLevel 2
|
|
4
|
+
*/
|
|
1
5
|
interface ReferenceProps {
|
|
2
6
|
modelType: string;
|
|
3
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @kosService core.reference
|
|
10
|
+
* @kosApiLevel 2
|
|
11
|
+
* @kosDeprecated {replacement: @kosDependency, removeAt: 3}
|
|
12
|
+
*/
|
|
4
13
|
export declare const kosReference: (props: ReferenceProps) => (target: {} | any, name: PropertyKey) => any;
|
|
5
14
|
export {};
|
|
6
15
|
//# sourceMappingURL=kos-reference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-reference.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-reference.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-reference.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-reference.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,UACf,cAAc,cACb,EAAE,GAAG,GAAG,QAAQ,WAAW,KAAG,GAItC,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ErrorResponseContext } from '../../util/service-request-error';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Helper functions for kosServiceRequest decorator.
|
|
3
5
|
*
|
|
@@ -38,7 +40,7 @@ export declare function resolveServiceRequestParameters(metadata: any, modelInst
|
|
|
38
40
|
* @param requestOptions - Additional request options
|
|
39
41
|
* @returns Error-first tuple with response
|
|
40
42
|
*/
|
|
41
|
-
export declare function executeApiMethod(API: any, method: string | undefined, path: string, params: any, body: any, requestOptions: any): Promise<[string | null, any]>;
|
|
43
|
+
export declare function executeApiMethod(API: any, method: string | undefined, path: string, params: any, body: any, requestOptions: any): Promise<[string | null, any, ErrorResponseContext?]>;
|
|
42
44
|
/**
|
|
43
45
|
* Handles service request errors according to the configured error handling strategy.
|
|
44
46
|
*
|
|
@@ -54,5 +56,5 @@ export declare function executeApiMethod(API: any, method: string | undefined, p
|
|
|
54
56
|
* @param modelInstance - The model instance (this context)
|
|
55
57
|
* @returns Error-first tuple with default value or error
|
|
56
58
|
*/
|
|
57
|
-
export declare function handleServiceRequestError(error: string, response: any, errorHandler: any, modelInstance: any): [string | null, any];
|
|
59
|
+
export declare function handleServiceRequestError(error: string, response: any, errorHandler: any, modelInstance: any, errorContext?: ErrorResponseContext): [string | null, any];
|
|
58
60
|
//# sourceMappingURL=kos-service-request-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-service-request-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-service-request-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-service-request-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-service-request-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAM7E;;;;;GAKG;AAEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,GAAG,EACb,aAAa,EAAE,GAAG,EAClB,IAAI,EAAE,GAAG,EAAE,EACX,cAAc,EAAE,GAAG;;;;;EAgEpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,GAAG,EACT,cAAc,EAAE,GAAG,GAClB,OAAO,CAAC,CAAC,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAgBtD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,GAAG,EACb,YAAY,EAAE,GAAG,EACjB,aAAa,EAAE,GAAG,EAClB,YAAY,CAAC,EAAE,oBAAoB,GAClC,CAAC,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,CAqCtB"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { KosExecutionContext } from './kos-execution-context';
|
|
2
2
|
import { KosModelRegistrationType } from '../registration/model-registration';
|
|
3
3
|
import { IKosDataModel } from '../kosModel';
|
|
4
|
+
import { ServiceRequestError } from '../../util/service-request-error';
|
|
4
5
|
import { ClientBody, ClientParams } from '../../util/kos-service-request';
|
|
5
6
|
import { KosFetchOptions } from '../../types/utils/kos-fetch';
|
|
6
7
|
import { ResponseCacheConfig } from '../../types/service-response-store';
|
|
7
8
|
import { DependencyLifecycle } from '../../types';
|
|
8
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @kosService core.service-request
|
|
12
|
+
*/
|
|
9
13
|
export type RequestOptions = Omit<KosFetchOptions, "method" | "body">;
|
|
10
14
|
export type { KosExecutionContext };
|
|
11
15
|
/**
|
|
@@ -15,14 +19,21 @@ export type { KosExecutionContext };
|
|
|
15
19
|
export declare const ServiceRequestHandlers: unique symbol;
|
|
16
20
|
/**
|
|
17
21
|
* HTTP methods supported by kosServiceRequest
|
|
22
|
+
*
|
|
23
|
+
* @kosService core.service-request
|
|
18
24
|
*/
|
|
19
25
|
export type HttpMethod = "get" | "GET" | "post" | "POST" | "put" | "PUT" | "delete" | "DELETE" | "patch" | "PATCH";
|
|
20
26
|
/**
|
|
21
27
|
* API path type - string representing an API endpoint
|
|
28
|
+
*
|
|
29
|
+
* @kosService core.service-request
|
|
22
30
|
*/
|
|
23
31
|
export type ApiPath = string;
|
|
24
32
|
/**
|
|
25
33
|
* Configuration for field mapping in data transformation
|
|
34
|
+
*
|
|
35
|
+
* @kosService core.service-request
|
|
36
|
+
* @kosApiLevel 15
|
|
26
37
|
*/
|
|
27
38
|
export interface FieldMapping {
|
|
28
39
|
/**
|
|
@@ -50,6 +61,9 @@ export interface FieldMapping {
|
|
|
50
61
|
}
|
|
51
62
|
/**
|
|
52
63
|
* Configuration for extension points during transformation
|
|
64
|
+
*
|
|
65
|
+
* @kosService core.service-request
|
|
66
|
+
* @kosApiLevel 15
|
|
53
67
|
*/
|
|
54
68
|
export interface ExtensionConfig {
|
|
55
69
|
/**
|
|
@@ -97,6 +111,8 @@ export interface ExtensionConfig {
|
|
|
97
111
|
*
|
|
98
112
|
* @category Service Request
|
|
99
113
|
* @see {@link KosServiceRequestConfig} for complete decorator configuration
|
|
114
|
+
* @kosService core.service-request
|
|
115
|
+
* @kosApiLevel 15
|
|
100
116
|
*/
|
|
101
117
|
export interface ErrorHandlerConfig {
|
|
102
118
|
/**
|
|
@@ -127,10 +143,25 @@ export interface ErrorHandlerConfig {
|
|
|
127
143
|
*/
|
|
128
144
|
defaultValue?: any;
|
|
129
145
|
/**
|
|
130
|
-
* Custom error handler function called
|
|
131
|
-
*
|
|
146
|
+
* Custom error handler function called when a request fails.
|
|
147
|
+
*
|
|
148
|
+
* When the failure is an HTTP error response, `error` will be a
|
|
149
|
+
* {@link ServiceRequestError} instance with `status`, `statusText`,
|
|
150
|
+
* `responseBody`, and `responseHeaders` properties.
|
|
151
|
+
*
|
|
152
|
+
* For non-HTTP failures (network errors, timeouts), `error` is a
|
|
153
|
+
* plain `Error`.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* onError: (error, model) => {
|
|
158
|
+
* if (error instanceof ServiceRequestError) {
|
|
159
|
+
* console.error(`HTTP ${error.status}`, error.responseBody, error.responseHeaders);
|
|
160
|
+
* }
|
|
161
|
+
* }
|
|
162
|
+
* ```
|
|
132
163
|
*/
|
|
133
|
-
onError?: (error: Error, model: IKosDataModel) => void;
|
|
164
|
+
onError?: (error: Error | ServiceRequestError, model: IKosDataModel) => void;
|
|
134
165
|
}
|
|
135
166
|
/**
|
|
136
167
|
* Configuration parameters for @kosServiceRequest decorator
|
|
@@ -141,6 +172,9 @@ export interface ErrorHandlerConfig {
|
|
|
141
172
|
* @typeparam Method - The HTTP method type
|
|
142
173
|
* @typeparam Response - The raw response type from the API
|
|
143
174
|
* @typeparam TransformedResponse - The transformed response type after mappings
|
|
175
|
+
*
|
|
176
|
+
* @kosService core.service-request
|
|
177
|
+
* @kosApiLevel 15
|
|
144
178
|
*/
|
|
145
179
|
export interface IKosServiceRequestParams<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get", Response = any, TransformedResponse = Response> {
|
|
146
180
|
/**
|
|
@@ -336,6 +370,7 @@ export interface IKosServiceRequestParams<Paths extends Record<string, any> = Re
|
|
|
336
370
|
* destinationAddress: model.deviceId,
|
|
337
371
|
* headers: { 'X-Session': model.sessionId }
|
|
338
372
|
* })
|
|
373
|
+
* @kosApiLevel 18
|
|
339
374
|
*/
|
|
340
375
|
requestOptions?: RequestOptions | ((model: IKosDataModel, ...args: any[]) => RequestOptions);
|
|
341
376
|
}
|
|
@@ -356,6 +391,8 @@ export interface ServiceRequestMetadata<Paths extends Record<string, any> = Reco
|
|
|
356
391
|
/**
|
|
357
392
|
* Runtime service request executor injected into method context
|
|
358
393
|
* Allows imperative execution of the service request defined by the decorator
|
|
394
|
+
*
|
|
395
|
+
* @kosService core.service-request
|
|
359
396
|
*/
|
|
360
397
|
export interface ServiceRequestExecutor<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get"> {
|
|
361
398
|
(options?: {
|
|
@@ -378,6 +415,8 @@ export interface ServiceRequestExecutor<Paths extends Record<string, any> = Reco
|
|
|
378
415
|
* ```typescript
|
|
379
416
|
* type CreateReleaseExecutor = ServiceRequestExecutor<paths, typeof PATH_VM_INSTALL, 'post'>;
|
|
380
417
|
* ```
|
|
418
|
+
*
|
|
419
|
+
* @kosService core.service-request
|
|
381
420
|
*/
|
|
382
421
|
export type ServiceRequestExecutorFn<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get"> = ServiceRequestExecutor<Paths, Path, Method>;
|
|
383
422
|
/**
|
|
@@ -452,6 +491,8 @@ export type ServiceRequestExecutorFn<Paths extends Record<string, any> = Record<
|
|
|
452
491
|
* ```
|
|
453
492
|
*
|
|
454
493
|
* @category KOS Model Decorator
|
|
494
|
+
* @kosService core.service-request
|
|
495
|
+
* @kosApiLevel 15
|
|
455
496
|
*/
|
|
456
497
|
export declare function kosServiceRequest<Paths extends Record<string, any> = Record<string, any>, Path extends keyof Paths = string, Method extends HttpMethod = "get", Response = any, TransformedResponse = Response>(params: IKosServiceRequestParams<Paths, Path, Method, Response, TransformedResponse>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
457
498
|
//# 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/core/decorators/kos-service-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAGtE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AAcvE
|
|
1
|
+
{"version":3,"file":"kos-service-request.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-service-request.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,yBAAyB,CAAC;AAOjC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,EAA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MAAM,wBAAwB,CAClC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvD,IAAI,SAAS,MAAM,KAAK,GAAG,MAAM,EACjC,MAAM,SAAS,UAAU,GAAG,KAAK,IAC/B,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvD,IAAI,SAAS,MAAM,KAAK,GAAG,MAAM,EACjC,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,GAAG,GAAG,EACd,mBAAmB,GAAG,QAAQ,EAE9B,MAAM,EAAE,wBAAwB,CAC9B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,mBAAmB,CACpB,YAEe,GAAG,eAAe,MAAM,cAAc,kBAAkB,wBAkHzE"}
|
|
@@ -17,6 +17,9 @@ import { DependencyLifecycle } from '../../types';
|
|
|
17
17
|
* }
|
|
18
18
|
* };
|
|
19
19
|
* ```
|
|
20
|
+
*
|
|
21
|
+
* @kosService core.state-machine
|
|
22
|
+
* @kosApiLevel 15
|
|
20
23
|
*/
|
|
21
24
|
export interface KosStateMachineConfig<TState extends string, TEvent extends string> {
|
|
22
25
|
/**
|
|
@@ -86,6 +89,9 @@ export interface KosStateMachineConfig<TState extends string, TEvent extends str
|
|
|
86
89
|
}
|
|
87
90
|
/**
|
|
88
91
|
* Options for configuring state machine behavior.
|
|
92
|
+
*
|
|
93
|
+
* @kosService core.state-machine
|
|
94
|
+
* @kosApiLevel 15
|
|
89
95
|
*/
|
|
90
96
|
export interface KosStateMachineOptions {
|
|
91
97
|
/**
|
|
@@ -131,6 +137,7 @@ export interface KosStateMachineOptions {
|
|
|
131
137
|
* }
|
|
132
138
|
* })
|
|
133
139
|
* ```
|
|
140
|
+
* @kosApiLevel 21
|
|
134
141
|
*/
|
|
135
142
|
computeInitialState?: (instance: any) => string;
|
|
136
143
|
}
|
|
@@ -209,6 +216,9 @@ export interface KosStateMachineOptions {
|
|
|
209
216
|
* @see {@link kosStateMachine} - The decorator function
|
|
210
217
|
* @see {@link KosStateMachineConfig} - Configuration interface
|
|
211
218
|
* @see {@link KosStateMachineOptions} - Options interface
|
|
219
|
+
*
|
|
220
|
+
* @kosService core.state-machine
|
|
221
|
+
* @kosApiLevel 15
|
|
212
222
|
*/
|
|
213
223
|
export interface KosStateMachineAware<TState extends string, TEvent extends string> {
|
|
214
224
|
/**
|
|
@@ -431,6 +441,8 @@ export interface KosStateMachineAware<TState extends string, TEvent extends stri
|
|
|
431
441
|
*
|
|
432
442
|
* @category KOS Model Decorator
|
|
433
443
|
* @since 2.1.0
|
|
444
|
+
* @kosService core.state-machine
|
|
445
|
+
* @kosApiLevel 15
|
|
434
446
|
*/
|
|
435
447
|
export declare function kosStateMachine<TState extends string, TEvent extends string>(config: KosStateMachineConfig<TState, TEvent>, options?: KosStateMachineOptions): ClassDecorator;
|
|
436
448
|
/**
|
|
@@ -448,6 +460,9 @@ export declare function kosStateMachine<TState extends string, TEvent extends st
|
|
|
448
460
|
* EventBus.publish(TOPIC_POUR_STARTED, { id: this.id });
|
|
449
461
|
* }
|
|
450
462
|
* ```
|
|
463
|
+
*
|
|
464
|
+
* @kosService core.state-machine
|
|
465
|
+
* @kosApiLevel 15
|
|
451
466
|
*/
|
|
452
467
|
export declare function kosStateEntry<TState extends string>(state: TState): MethodDecorator;
|
|
453
468
|
/**
|
|
@@ -465,10 +480,16 @@ export declare function kosStateEntry<TState extends string>(state: TState): Met
|
|
|
465
480
|
* EventBus.publish(TOPIC_POUR_ENDED, { id: this.id });
|
|
466
481
|
* }
|
|
467
482
|
* ```
|
|
483
|
+
*
|
|
484
|
+
* @kosService core.state-machine
|
|
485
|
+
* @kosApiLevel 15
|
|
468
486
|
*/
|
|
469
487
|
export declare function kosStateExit<TState extends string>(state: TState): MethodDecorator;
|
|
470
488
|
/**
|
|
471
489
|
* Options for @kosStateGuard decorator.
|
|
490
|
+
*
|
|
491
|
+
* @kosService core.state-machine
|
|
492
|
+
* @kosApiLevel 15
|
|
472
493
|
*/
|
|
473
494
|
export interface KosStateGuardOptions<TState extends string> {
|
|
474
495
|
/**
|
|
@@ -505,6 +526,9 @@ export interface KosStateGuardOptions<TState extends string> {
|
|
|
505
526
|
* this.transition('COMPLETE');
|
|
506
527
|
* }
|
|
507
528
|
* ```
|
|
529
|
+
*
|
|
530
|
+
* @kosService core.state-machine
|
|
531
|
+
* @kosApiLevel 15
|
|
508
532
|
*/
|
|
509
533
|
export declare function kosStateGuard<TState extends string>(options: KosStateGuardOptions<TState>): MethodDecorator;
|
|
510
534
|
//# sourceMappingURL=kos-state-machine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-state-machine.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-state-machine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AASlD
|
|
1
|
+
{"version":3,"file":"kos-state-machine.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-state-machine.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AASlD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,qBAAqB,CACpC,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM;IAErB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,EAAE,mBAAmB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+
import { IKosDataModel } from '../kosModel';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Advanced flow control options for kosTopicHandler
|
|
6
|
+
*
|
|
7
|
+
* @kosService core.topic-handler
|
|
8
|
+
* @kosApiLevel 12
|
|
6
9
|
*/
|
|
7
10
|
export interface FlowControlOptions<T = any, R = T> {
|
|
8
11
|
/**
|
|
@@ -66,6 +69,10 @@ export interface FlowControlOptions<T = any, R = T> {
|
|
|
66
69
|
continueOnError?: boolean;
|
|
67
70
|
};
|
|
68
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @kosService core.topic-handler
|
|
74
|
+
* @kosApiLevel 12
|
|
75
|
+
*/
|
|
69
76
|
export interface FilterContext {
|
|
70
77
|
/** Previous events in the filter history */
|
|
71
78
|
history: any[];
|
|
@@ -76,6 +83,9 @@ export interface FilterContext {
|
|
|
76
83
|
}
|
|
77
84
|
/**
|
|
78
85
|
* Enhanced kosTopicHandler params with flow control
|
|
86
|
+
*
|
|
87
|
+
* @kosService core.topic-handler
|
|
88
|
+
* @kosApiLevel 12
|
|
79
89
|
*/
|
|
80
90
|
export interface IKosTopicHandlerFlowParams<T = any, Model extends IKosDataModel = any, R = T> extends IKosTopicHandlerParams<T, Model, R> {
|
|
81
91
|
/**
|
|
@@ -85,6 +95,9 @@ export interface IKosTopicHandlerFlowParams<T = any, Model extends IKosDataModel
|
|
|
85
95
|
}
|
|
86
96
|
/**
|
|
87
97
|
* Statistics for monitoring flow control performance
|
|
98
|
+
*
|
|
99
|
+
* @kosService core.topic-handler
|
|
100
|
+
* @kosApiLevel 12
|
|
88
101
|
*/
|
|
89
102
|
export interface FlowControlStats {
|
|
90
103
|
/** Total events received */
|
|
@@ -104,6 +117,9 @@ export interface FlowControlStats {
|
|
|
104
117
|
}
|
|
105
118
|
/**
|
|
106
119
|
* Internal flow control manager
|
|
120
|
+
*
|
|
121
|
+
* @kosService core.topic-handler
|
|
122
|
+
* @kosApiLevel 12
|
|
107
123
|
*/
|
|
108
124
|
export declare class FlowControlManager<T = any, R = T> {
|
|
109
125
|
private config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-topic-handler-flow-control.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-topic-handler-flow-control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"kos-topic-handler-flow-control.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-topic-handler-flow-control.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,0CAA0C;QAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,iDAAiD;QACjD,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;IAE/B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,4CAA4C;QAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,8CAA8C;QAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,oDAAoD;QACpD,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;QAC1C,6DAA6D;QAC7D,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;KAC5C,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,8CAA8C;QAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,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ACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,qBAAa,kBAAkB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC;IAC5C,OAAO,CAAC,MAAM,CAA2B;IACzC,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,aAAa,CAAW;IAChC,OAAO,CAAC,cAAc,CAA2B;IACjD,OAAO,CAAC,UAAU,CAAW;IAC7B,OAAO,CAAC,eAAe,CAA6B;gBAExC,MAAM,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;IAarC,aAAa,CAClB,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAC5B,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC;YAcpB,kBAAkB;YA8ClB,oBAAoB;IA8FnC,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,cAAc;YAuBR,gBAAgB;YAahB,eAAe;IAiB7B,OAAO,CAAC,mBAAmB;IAwC3B,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,qBAAqB;IAkB7B,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAMhD,QAAQ,IAAI,gBAAgB;CAG7B"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @kosService core.trouble-aware
|
|
3
|
+
* @kosApiLevel 13
|
|
4
|
+
*/
|
|
1
5
|
export interface KosTroubleAwareOptions {
|
|
2
6
|
/** Path property name to use for trouble resolution. Default: 'path' */
|
|
3
7
|
pathProperty?: string;
|
|
@@ -66,6 +70,8 @@ export interface KosTroubleAwareOptions {
|
|
|
66
70
|
*
|
|
67
71
|
* @category KOS Model Decorator
|
|
68
72
|
* @since 2.0.0
|
|
73
|
+
* @kosService core.trouble-aware
|
|
74
|
+
* @kosApiLevel 13
|
|
69
75
|
*/
|
|
70
76
|
export declare function kosTroubleAware(options?: KosTroubleAwareOptions): ClassDecorator;
|
|
71
77
|
//# sourceMappingURL=kos-trouble-aware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-trouble-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-trouble-aware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kos-trouble-aware.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/core/core/decorators/kos-trouble-aware.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,CAAC,EAAE,sBAAsB,GAC/B,cAAc,CAsBhB"}
|