@kosdev-code/kos-ui-sdk 0.1.0-next.944 → 0.1.0-next.948
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/async-event-bus.d.ts +2 -11
- package/common/events/async-event-bus.d.ts.map +1 -1
- package/common/events/eventBus.d.ts +1 -18
- package/common/events/eventBus.d.ts.map +1 -1
- package/core/core/decorators/kos-child.d.ts +2 -3
- package/core/core/decorators/kos-child.d.ts.map +1 -1
- package/core/core/decorators/kos-companion.d.ts +25 -87
- package/core/core/decorators/kos-companion.d.ts.map +1 -1
- package/core/core/decorators/kos-container-aware.d.ts +67 -358
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-execute-service-request.d.ts +7 -11
- package/core/core/decorators/kos-execute-service-request.d.ts.map +1 -1
- package/core/core/decorators/kos-execution-context.d.ts +14 -31
- package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
- package/core/core/decorators/kos-future-aware.d.ts +21 -74
- package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-http-decorators.d.ts +18 -62
- package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
- package/core/core/decorators/kos-logger-aware.d.ts +10 -60
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-model-effect.d.ts +10 -9
- package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
- package/core/core/decorators/kos-multiple-future-aware.d.ts +21 -94
- package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-reload-aware.d.ts +12 -16
- package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request.d.ts +80 -238
- package/core/core/decorators/kos-service-request.d.ts.map +1 -1
- package/core/core/decorators/kos-state-machine.d.ts +35 -275
- package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
- package/core/core/decorators/kos-trouble-aware.d.ts +9 -43
- package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-view-model.d.ts +20 -100
- package/core/core/decorators/kos-view-model.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts +28 -89
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/indexing/index.d.ts +2 -4
- package/core/core/indexing/index.d.ts.map +1 -1
- package/core/core/indexing/kos-container-index-aware.d.ts +17 -48
- package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
- package/core/core/indexing/kos-index-aware.d.ts +11 -37
- package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
- package/core/core/kos-container-model.d.ts +11 -32
- package/core/core/kos-container-model.d.ts.map +1 -1
- package/core/core/kos-data-container.d.ts +6 -6
- package/core/core/kos-data-container.d.ts.map +1 -1
- package/core/core/kosCore.d.ts +3 -3
- package/core/core/kosModelManager.d.ts +2 -3
- package/core/core/kosModelManager.d.ts.map +1 -1
- package/core/core/model/kos-offline-queue.d.ts +1 -1
- package/core/core/model/service-response-store.d.ts +2 -15
- package/core/core/model/service-response-store.d.ts.map +1 -1
- package/core/core/services/app-startup-service.d.ts +5 -13
- package/core/core/services/app-startup-service.d.ts.map +1 -1
- package/core/core/services/intent-service.d.ts +3 -12
- package/core/core/services/intent-service.d.ts.map +1 -1
- package/core/core/transport/mock/mock-frames.d.ts +3 -3
- package/core/types/model.d.ts +4 -8
- package/core/types/model.d.ts.map +1 -1
- package/core/types/service-response-store.d.ts +3 -11
- package/core/types/service-response-store.d.ts.map +1 -1
- package/core/types/utils/kos-fetch.d.ts +25 -37
- package/core/types/utils/kos-fetch.d.ts.map +1 -1
- package/core/util/abortable-when.d.ts +5 -6
- package/core/util/abortable-when.d.ts.map +1 -1
- package/core/util/ancestor-path-visitor.d.ts +14 -20
- package/core/util/ancestor-path-visitor.d.ts.map +1 -1
- package/core/util/container-utils.d.ts +26 -159
- package/core/util/container-utils.d.ts.map +1 -1
- package/core/util/date-utils.d.ts +9 -58
- package/core/util/date-utils.d.ts.map +1 -1
- package/core/util/debounce.d.ts +1 -8
- package/core/util/debounce.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts +1 -1
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts +10 -11
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/model-attribute-utils.d.ts +5 -22
- package/core/util/model-attribute-utils.d.ts.map +1 -1
- package/core/util/promise-utils.d.ts +1 -26
- package/core/util/promise-utils.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +5 -23
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/service-request-error.d.ts +3 -5
- package/core/util/service-request-error.d.ts.map +1 -1
- package/core/util/service-response.d.ts +12 -67
- package/core/util/service-response.d.ts.map +1 -1
- package/core/util/transport-not-ready-error.d.ts +11 -13
- package/core/util/transport-not-ready-error.d.ts.map +1 -1
- package/core/util/when-ready.d.ts +1 -8
- package/core/util/when-ready.d.ts.map +1 -1
- package/index.cjs +12 -21
- package/index.cjs.map +1 -1
- package/index.js +13 -22
- package/index.js.map +1 -1
- package/models/decorators/future-service.d.ts +7 -7
- package/models/models/browser-router/browser-router-model.d.ts +10 -39
- package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
- package/models/models/browser-router/browser-router-registration.d.ts +5 -77
- package/models/models/browser-router/browser-router-registration.d.ts.map +1 -1
- package/models/models/browser-router/types/index.d.ts +2 -16
- package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +5 -77
- package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -1
- package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +5 -75
- package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-model-builder.d.ts +4 -11
- package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts +14 -66
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts +15 -62
- 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 +34 -215
- package/models/models/device/device-model.d.ts +20 -199
- package/models/models/device/device-model.d.ts.map +1 -1
- package/models/models/device/device-registration.d.ts +7 -87
- package/models/models/device/device-registration.d.ts.map +1 -1
- package/models/models/device/types/index.d.ts +5 -34
- package/models/models/future/future-aware.d.ts +7 -71
- package/models/models/future/future-aware.d.ts.map +1 -1
- package/models/models/future/future-model-builder.d.ts +2 -2
- package/models/models/future/future-model.d.ts +3 -23
- package/models/models/future/future-model.d.ts.map +1 -1
- package/models/models/future/future-types.d.ts +28 -145
- package/models/models/future/future-types.d.ts.map +1 -1
- package/models/models/key-value/key-value-model.d.ts +12 -72
- package/models/models/key-value/key-value-model.d.ts.map +1 -1
- package/models/models/key-value/key-value-registration.d.ts +5 -77
- package/models/models/key-value/key-value-registration.d.ts.map +1 -1
- package/models/models/key-value/services/key-value-services.d.ts +13 -72
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
- package/models/models/key-value/types/index.d.ts +3 -46
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +32 -99
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +2 -12
- package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -1
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts +7 -46
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
- package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +5 -80
- package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -1
- package/models/models/kos-log-manager/types/index.d.ts +13 -156
- package/models/models/kos-time/kos-time-model.d.ts +8 -39
- package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
- package/models/models/kos-time/kos-time-registration.d.ts +6 -73
- package/models/models/kos-time/kos-time-registration.d.ts.map +1 -1
- package/models/models/kos-time/types/index.d.ts +3 -58
- package/models/models/log-block/log-block-container-model.d.ts +2 -118
- package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
- package/models/models/log-block/log-block-container-registration.d.ts +5 -75
- package/models/models/log-block/log-block-container-registration.d.ts.map +1 -1
- package/models/models/log-block/log-block-model.d.ts +5 -168
- package/models/models/log-block/log-block-model.d.ts.map +1 -1
- package/models/models/log-block/log-block-registration.d.ts +5 -75
- package/models/models/log-block/log-block-registration.d.ts.map +1 -1
- package/models/models/log-block/types/index.d.ts +14 -81
- package/models/models/log-stream/log-stream-container-model.d.ts +8 -35
- package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-container-registration.d.ts +5 -75
- package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-model.d.ts +8 -29
- package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
- package/models/models/log-stream/log-stream-registration.d.ts +5 -75
- package/models/models/log-stream/log-stream-registration.d.ts.map +1 -1
- package/models/models/log-stream/types/index.d.ts +5 -60
- package/models/models/network-interface/network-interface-container-model.d.ts +6 -35
- package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-container-registration.d.ts +5 -73
- package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-model.d.ts +5 -43
- package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
- package/models/models/network-interface/network-interface-registration.d.ts +5 -73
- package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
- package/models/models/network-interface/types/index.d.ts +2 -16
- package/models/models/ota/ota-model.d.ts +11 -39
- package/models/models/ota/ota-model.d.ts.map +1 -1
- package/models/models/ota/ota-registration.d.ts +5 -77
- package/models/models/ota/ota-registration.d.ts.map +1 -1
- package/models/models/ota/types/index.d.ts +2 -141
- package/models/models/region-info/types/index.d.ts +19 -99
- package/models/models/region-info/types/index.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts +2 -14
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/models/software-info/software-info-model.d.ts +3 -39
- package/models/models/software-info/software-info-model.d.ts.map +1 -1
- package/models/models/software-info/software-info-registration.d.ts +6 -73
- package/models/models/software-info/software-info-registration.d.ts.map +1 -1
- package/models/models/software-info/types/index.d.ts +6 -20
- package/models/models/state-bean/state-bean-model.d.ts +10 -41
- package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
- package/models/models/state-bean/state-bean-registration.d.ts +6 -73
- package/models/models/state-bean/state-bean-registration.d.ts.map +1 -1
- package/models/models/state-bean/types/index.d.ts +4 -84
- package/models/models/state-prop/state-prop-model.d.ts +6 -40
- package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
- package/models/models/state-prop/state-prop-registration.d.ts +6 -73
- package/models/models/state-prop/state-prop-registration.d.ts.map +1 -1
- package/models/models/state-prop/types/index.d.ts +5 -37
- package/models/models/storage-device/storage-device-container-model.d.ts +7 -273
- package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-container-registration.d.ts +5 -75
- package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-model.d.ts +3 -49
- package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
- package/models/models/storage-device/storage-device-registration.d.ts +5 -75
- package/models/models/storage-device/storage-device-registration.d.ts.map +1 -1
- package/models/models/storage-device/types/index.d.ts +13 -82
- package/models/models/studio-properties/studio-properties-model.d.ts +13 -36
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
- package/models/models/studio-properties/studio-properties-registration.d.ts +5 -75
- package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -1
- package/models/models/studio-properties/types/index.d.ts +2 -24
- package/models/models/translation/descriptor-merge.d.ts +13 -17
- package/models/models/translation/descriptor-merge.d.ts.map +1 -1
- package/models/models/translation/services/translation-services.d.ts +19 -77
- package/models/models/translation/services/translation-services.d.ts.map +1 -1
- package/models/models/translation/test-harness.d.ts +6 -8
- package/models/models/translation/test-harness.d.ts.map +1 -1
- package/models/models/translation/translation-container-model.d.ts +7 -59
- package/models/models/translation/translation-container-model.d.ts.map +1 -1
- package/models/models/translation/translation-container-registration.d.ts +6 -73
- package/models/models/translation/translation-container-registration.d.ts.map +1 -1
- package/models/models/translation/translation-model.d.ts +17 -50
- package/models/models/translation/translation-model.d.ts.map +1 -1
- package/models/models/translation/translation-registration.d.ts +6 -73
- package/models/models/translation/translation-registration.d.ts.map +1 -1
- package/models/models/translation/types/index.d.ts +51 -276
- package/models/models/trouble/trouble-registration.d.ts +6 -73
- package/models/models/trouble/trouble-registration.d.ts.map +1 -1
- package/models/models/trouble/types/index.d.ts +17 -188
- package/models/models/trouble/utils/is-trouble-aware.d.ts +4 -85
- package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
- package/models/models/usb-update/usb-update-container-registration.d.ts +5 -75
- package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -1
- package/models/models/usb-update/usb-update-registration.d.ts +5 -75
- package/models/models/usb-update/usb-update-registration.d.ts.map +1 -1
- package/models/types/cancellable-promise.d.ts +6 -9
- package/models/types/cancellable-promise.d.ts.map +1 -1
- package/models/utils/await-future-call.d.ts +9 -21
- package/models/utils/await-future-call.d.ts.map +1 -1
- package/models/utils/cancellable-future-call.d.ts +8 -19
- package/models/utils/cancellable-future-call.d.ts.map +1 -1
- package/models/utils/cancellable-service.d.ts +14 -23
- package/models/utils/cancellable-service.d.ts.map +1 -1
- package/models/utils/conversion-utils.d.ts +8 -48
- package/models/utils/conversion-utils.d.ts.map +1 -1
- package/models/utils/persistence-store.d.ts +1 -1
- package/models/utils/service.d.ts +14 -48
- package/models/utils/service.d.ts.map +1 -1
- package/models/utils/services/kos/daily/service.d.ts +4 -4
- package/models/utils/services/vfs/daily/service.d.ts +4 -4
- package/models/utils/timer-manager.d.ts.map +1 -1
- package/package.json +3 -3
- package/{software-info-registration-GUbTY4KD.cjs → software-info-registration-CY_E6Rw7.cjs} +85 -368
- package/software-info-registration-CY_E6Rw7.cjs.map +1 -0
- package/{software-info-registration-CKlTQPet.js → software-info-registration-CuuEsH8v.js} +85 -368
- package/software-info-registration-CuuEsH8v.js.map +1 -0
- package/testing/index.d.ts +28 -33
- package/testing/index.d.ts.map +1 -1
- package/testing.cjs +1 -1
- package/testing.cjs.map +1 -1
- package/testing.js +1 -1
- package/testing.js.map +1 -1
- package/ui/features/canvas/hooks/use-image-renderer.d.ts +5 -4
- package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -1
- package/ui/hooks/use-function-warmup.d.ts +4 -14
- package/ui/hooks/use-function-warmup.d.ts.map +1 -1
- package/ui/hooks/use-kos-date-formats.d.ts +15 -29
- package/ui/hooks/use-kos-date-formats.d.ts.map +1 -1
- package/ui/hooks/use-kos-region-timezones.d.ts +4 -55
- package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -1
- package/ui/hooks/use-kos-regions.d.ts +11 -23
- package/ui/hooks/use-kos-regions.d.ts.map +1 -1
- package/ui/hooks/use-kos-time-formats.d.ts +16 -31
- package/ui/hooks/use-kos-time-formats.d.ts.map +1 -1
- package/ui/hooks/use-kos-unit-systems.d.ts +13 -27
- package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -1
- package/ui/hooks/view-model/use-view-model.d.ts +6 -31
- package/ui/hooks/view-model/use-view-model.d.ts.map +1 -1
- package/ui/policies/reload-on-disconnect-policy.d.ts +5 -6
- package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
- package/software-info-registration-CKlTQPet.js.map +0 -1
- package/software-info-registration-GUbTY4KD.cjs.map +0 -1
|
@@ -104,29 +104,11 @@ export declare const ServiceFactory: {
|
|
|
104
104
|
* @returns An object with service methods for interacting with the server.
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
*
|
|
108
|
-
* const entityService = ServiceFactory.build({
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* deleteModelPath: "/delete",
|
|
113
|
-
* addModelPath: "/add",
|
|
114
|
-
* modifyModelPath: "/modify",
|
|
115
|
-
* });
|
|
116
|
-
*
|
|
117
|
-
* // Fetch a list of entities.
|
|
118
|
-
* const entities = await entityService.getAll({ ordered: true });
|
|
119
|
-
*
|
|
120
|
-
* // Get details of a specific entity by ID.
|
|
121
|
-
* const entityDetails = await entityService.getModelById({ id: "entity123" });
|
|
122
|
-
*
|
|
123
|
-
* // Add a new entity to the server.
|
|
124
|
-
* const newEntity = { name: "New Entity" };
|
|
125
|
-
* await entityService.addModel({ model: newEntity });
|
|
126
|
-
*
|
|
127
|
-
* // Modify an existing entity.
|
|
128
|
-
* const updatedEntity = { id: "entity123", name: "Updated Entity" };
|
|
129
|
-
* await entityService.modifyModel({ model: updatedEntity });
|
|
107
|
+
* ```typescript
|
|
108
|
+
* const entityService = ServiceFactory.build({ basePath: "/api/entities" });
|
|
109
|
+
* const entities = await entityService.getAll({});
|
|
110
|
+
* await entityService.modifyModel({ id: "entity123", model: { name: "Updated" } });
|
|
111
|
+
* ```
|
|
130
112
|
*/
|
|
131
113
|
build: ({ destinationAddress, basePath, getAllPath, getOnePath, deleteModelPath, addModelPath, modifyModelPath, mock, }: ServiceFactoryParams) => {
|
|
132
114
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-factory.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-factory.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"service-factory.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-factory.ts"],"names":[],"mappings":"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"}
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* (C) Copyright 2025, TCCC, All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* a plain `Error`. Adds HTTP response context so `onError` handlers in
|
|
9
|
-
* `@kosServiceRequest` can inspect status codes, response bodies, and headers.
|
|
5
|
+
* Error for a failed service request that carries the HTTP response context,
|
|
6
|
+
* so `onError` handlers in `@kosServiceRequest` can inspect the status code,
|
|
7
|
+
* response body and headers.
|
|
10
8
|
*
|
|
11
9
|
* @example
|
|
12
10
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-request-error.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-request-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"service-request-error.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-request-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,uCAAuC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAE/B,gDAAgD;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAG/C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1C;CASJ;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACzC"}
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
import { ApiPath, HttpMethod } from '../core/decorators/kos-service-request';
|
|
2
2
|
import { IKosDataModel } from '../core/kosModel';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* decorated methods, eliminating the need for "magic last parameter" patterns.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @kosServiceRequest({
|
|
12
|
-
* path: PATH_INGREDIENTS,
|
|
13
|
-
* method: 'get',
|
|
14
|
-
* lifecycle: DependencyLifecycle.LOAD
|
|
15
|
-
* })
|
|
16
|
-
* private onIngredientsLoaded(): void {
|
|
17
|
-
* const response = getServiceResponse(this, PATH_INGREDIENTS, 'get');
|
|
18
|
-
* this.processIngredients(response.data.ingredients);
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
4
|
+
* Helpers for reading and clearing the responses that `@kosServiceRequest`
|
|
5
|
+
* methods cache on a model. Responses are keyed by HTTP method and the
|
|
6
|
+
* resolved request path.
|
|
21
7
|
*/
|
|
22
8
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* TypeScript will infer types from your OpenAPI schema when using typed path constants.
|
|
27
|
-
*
|
|
28
|
-
* For cross-package scenarios where OpenAPI specs differ, you can optionally
|
|
29
|
-
* provide an explicit type parameter.
|
|
9
|
+
* Returns the response data a `@kosServiceRequest` method cached for the given
|
|
10
|
+
* path and method. The return type defaults to `any`; pass a type parameter to
|
|
11
|
+
* type the result. For a path with parameters, pass the resolved path.
|
|
30
12
|
*
|
|
31
13
|
* @param model - The KOS model instance
|
|
32
14
|
* @param path - The API path constant
|
|
@@ -35,22 +17,15 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
35
17
|
*
|
|
36
18
|
* @kosService core.service-response
|
|
37
19
|
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* const status = getServiceResponse(this, PATH_DEVICE_STATUS, 'get');
|
|
41
|
-
* // TypeScript infers the type from PATH_DEVICE_STATUS
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example Cross-package usage with explicit type (when OpenAPI schemas differ)
|
|
20
|
+
* @example
|
|
45
21
|
* ```typescript
|
|
46
|
-
*
|
|
47
|
-
* const vms = getServiceResponse<StudioVMResponse>(this, PATH_VMS, 'get');
|
|
22
|
+
* const status = getServiceResponse<DeviceStatus>(this, PATH_DEVICE_STATUS);
|
|
48
23
|
* ```
|
|
49
24
|
* @kosApiLevel 15
|
|
50
25
|
*/
|
|
51
26
|
export declare function getServiceResponse<T = any>(model: IKosDataModel, path: ApiPath, method?: HttpMethod): T | undefined;
|
|
52
27
|
/**
|
|
53
|
-
*
|
|
28
|
+
* Checks whether an unexpired cached response exists for the given path and method.
|
|
54
29
|
*
|
|
55
30
|
* @param model - The KOS model instance
|
|
56
31
|
* @param path - The API path constant
|
|
@@ -58,66 +33,36 @@ export declare function getServiceResponse<T = any>(model: IKosDataModel, path:
|
|
|
58
33
|
* @returns true if a valid cached response exists
|
|
59
34
|
*
|
|
60
35
|
* @kosService core.service-response
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* if (hasCachedResponse(this, PATH_DEVICE_STATUS, 'get')) {
|
|
65
|
-
* // Use cached data
|
|
66
|
-
* const status = getServiceResponse(this, PATH_DEVICE_STATUS, 'get');
|
|
67
|
-
* } else {
|
|
68
|
-
* // Fetch fresh data
|
|
69
|
-
* await this.refreshStatus();
|
|
70
|
-
* }
|
|
71
|
-
* ```
|
|
72
36
|
* @kosApiLevel 15
|
|
73
37
|
*/
|
|
74
38
|
export declare function hasCachedResponse(model: IKosDataModel, path: ApiPath, method?: HttpMethod): boolean;
|
|
75
39
|
/**
|
|
76
|
-
*
|
|
40
|
+
* Clears the cached response for one path and method.
|
|
77
41
|
*
|
|
78
42
|
* @param model - The KOS model instance
|
|
79
43
|
* @param path - The API path constant
|
|
80
44
|
* @param method - The HTTP method (defaults to 'get')
|
|
81
45
|
*
|
|
82
46
|
* @kosService core.service-response
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* ```typescript
|
|
86
|
-
* // Clear cached response to force refresh on next request
|
|
87
|
-
* clearServiceResponse(this, PATH_TEMP_DATA, 'post');
|
|
88
|
-
* ```
|
|
89
47
|
* @kosApiLevel 15
|
|
90
48
|
*/
|
|
91
49
|
export declare function clearServiceResponse(model: IKosDataModel, path: ApiPath, method?: HttpMethod): void;
|
|
92
50
|
/**
|
|
93
|
-
*
|
|
51
|
+
* Clears the cached responses for a path across all HTTP methods.
|
|
94
52
|
*
|
|
95
53
|
* @param model - The KOS model instance
|
|
96
54
|
* @param path - The API path constant
|
|
97
55
|
*
|
|
98
56
|
* @kosService core.service-response
|
|
99
|
-
*
|
|
100
|
-
* @example
|
|
101
|
-
* ```typescript
|
|
102
|
-
* // Clear all cached responses for this endpoint
|
|
103
|
-
* clearPath(this, PATH_INGREDIENTS);
|
|
104
|
-
* // Clears GET, POST, PUT, DELETE responses for this path
|
|
105
|
-
* ```
|
|
106
57
|
* @kosApiLevel 15
|
|
107
58
|
*/
|
|
108
59
|
export declare function clearPath(model: IKosDataModel, path: ApiPath): void;
|
|
109
60
|
/**
|
|
110
|
-
*
|
|
61
|
+
* Clears every cached service response on the model.
|
|
111
62
|
*
|
|
112
63
|
* @param model - The KOS model instance
|
|
113
64
|
*
|
|
114
65
|
* @kosService core.service-response
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```typescript
|
|
118
|
-
* // Clear all cached responses (typically during model cleanup)
|
|
119
|
-
* clearAllServiceResponses(this);
|
|
120
|
-
* ```
|
|
121
66
|
* @kosApiLevel 15
|
|
122
67
|
*/
|
|
123
68
|
export declare function clearAllServiceResponses(model: IKosDataModel): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-response.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACX,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD
|
|
1
|
+
{"version":3,"file":"service-response.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/service-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACX,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,GAAG,GAAG,EACxC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,OAAO,EACb,MAAM,GAAE,UAAkB,GACzB,CAAC,GAAG,SAAS,CAOf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,OAAO,EACb,MAAM,GAAE,UAAkB,GACzB,OAAO,CAOT;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,OAAO,EACb,MAAM,GAAE,UAAkB,GACzB,IAAI,CAON;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAOnE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAOnE"}
|
|
@@ -11,26 +11,24 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const TRANSPORT_NOT_READY = "TRANSPORT_NOT_READY";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
* transport to become ready
|
|
16
|
-
* authorized
|
|
14
|
+
* Thrown by `kosFetch` when a request's timeout budget expires while waiting
|
|
15
|
+
* for the KOS transport to become ready (the socket is closed, reconnecting or
|
|
16
|
+
* not yet authorized), so the request was never sent.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* will fail the same way until the socket comes back; surface a connectivity
|
|
25
|
-
* state to the user or trigger a reconnect/reload instead.
|
|
18
|
+
* It is distinct from the `TimeoutError` `DOMException` raised when the request
|
|
19
|
+
* itself times out, because the two call for different reactions. A
|
|
20
|
+
* `TimeoutError` means the service was slow, and retrying later is usually
|
|
21
|
+
* reasonable. A `TransportNotReadyError` means connectivity is down: retrying
|
|
22
|
+
* fails the same way until the socket comes back, so show a connectivity state
|
|
23
|
+
* or trigger a reconnect instead.
|
|
26
24
|
*
|
|
27
25
|
* @example
|
|
28
26
|
* ```typescript
|
|
29
27
|
* try {
|
|
30
|
-
* await
|
|
28
|
+
* await kosFetch(`${BASE_URL}/api/device/status`, { method: "GET", timeout: 3000 });
|
|
31
29
|
* } catch (error) {
|
|
32
30
|
* if (isTransportNotReadyError(error)) {
|
|
33
|
-
*
|
|
31
|
+
* showOffline();
|
|
34
32
|
* }
|
|
35
33
|
* }
|
|
36
34
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport-not-ready-error.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/transport-not-ready-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"transport-not-ready-error.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/transport-not-ready-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,yBAAuB;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,kDAAkD;IAClD,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;gBAEV,OAAO,GAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAO;CAU7D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,OAAO,KACb,KAAK,IAAI,sBAC+D,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { IKosDataModel } from '../core/kosModel';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* This utility function is used to ensure that a Kos Data Model is fully
|
|
6
|
-
* loaded and ready to be accessed before performing any operations on it.
|
|
3
|
+
* Waits for a Kos Data Model to finish loading and become ready.
|
|
7
4
|
*
|
|
8
5
|
* @category Utility
|
|
9
6
|
* @name whenReady
|
|
@@ -13,10 +10,6 @@ import { IKosDataModel } from '../core/kosModel';
|
|
|
13
10
|
* @returns A promise that resolves to the same data model when it becomes ready.
|
|
14
11
|
*
|
|
15
12
|
* @kosService core.utils
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* // Wait for the 'dataModel' to become ready before using it.
|
|
19
|
-
* const dataModel = await whenReady(dataModel);
|
|
20
13
|
* @kosApiLevel 2
|
|
21
14
|
*/
|
|
22
15
|
export declare const whenReady: (dataModel: IKosDataModel) => Promise<IKosDataModel>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"when-ready.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/when-ready.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD
|
|
1
|
+
{"version":3,"file":"when-ready.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/core/util/when-ready.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,GAAU,WAAW,aAAa,2BAmBvD,CAAC"}
|
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const service$8 = require("./software-info-registration-
|
|
3
|
+
const service$8 = require("./software-info-registration-CY_E6Rw7.cjs");
|
|
4
4
|
const mobx = require("mobx");
|
|
5
5
|
const log$6 = require("loglevel");
|
|
6
6
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
@@ -651,18 +651,13 @@ class AncestorPathVisitor extends service$8.KosModelVisitor {
|
|
|
651
651
|
this.targetId = targetId;
|
|
652
652
|
}
|
|
653
653
|
/**
|
|
654
|
-
*
|
|
654
|
+
* Wraps the visit with path tracking: push the model, check whether it is
|
|
655
|
+
* the target, visit its children, then pop it again if the target was not
|
|
656
|
+
* found in this subtree.
|
|
655
657
|
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
658
|
-
*
|
|
659
|
-
* 3. Call visitModel() to check if this is target
|
|
660
|
-
* 4. If not target, visit children
|
|
661
|
-
* 5. Pop from path if target not found in this subtree (backtrack)
|
|
662
|
-
*
|
|
663
|
-
* Note: We inline the base class logic rather than calling super.visit()
|
|
664
|
-
* because we need to control exactly when push/pop happens relative to
|
|
665
|
-
* the cycle detection and child traversal.
|
|
658
|
+
* The base class logic is inlined rather than calling super.visit() so the
|
|
659
|
+
* push and pop happen at the right points relative to cycle detection and
|
|
660
|
+
* child traversal.
|
|
666
661
|
*/
|
|
667
662
|
visit(model) {
|
|
668
663
|
if (this.visitedModels.has(model.modelId)) {
|
|
@@ -1815,7 +1810,7 @@ const updateRegion = async (region) => {
|
|
|
1815
1810
|
regionInfo.updateProperty(region);
|
|
1816
1811
|
};
|
|
1817
1812
|
async function getKosServiceApi() {
|
|
1818
|
-
const { default: API } = await Promise.resolve().then(() => require("./software-info-registration-
|
|
1813
|
+
const { default: API } = await Promise.resolve().then(() => require("./software-info-registration-CY_E6Rw7.cjs")).then((n) => n.service);
|
|
1819
1814
|
return API;
|
|
1820
1815
|
}
|
|
1821
1816
|
function kosServiceRequest$7(params) {
|
|
@@ -2399,16 +2394,12 @@ let StudioPropertiesModelImpl = class {
|
|
|
2399
2394
|
async load() {
|
|
2400
2395
|
this.logger.debug(`loading studio-properties ${this.id}`);
|
|
2401
2396
|
}
|
|
2402
|
-
/**
|
|
2403
|
-
* Terminates the WebSocket session for Studio properties.
|
|
2404
|
-
* Cleans up subscriptions to prevent memory leaks.
|
|
2405
|
-
*/
|
|
2397
|
+
/** Ends the `/kos/studio/properties` subscription. */
|
|
2406
2398
|
async terminatePropertiesSession() {
|
|
2407
2399
|
this.unsubscribe?.();
|
|
2408
2400
|
}
|
|
2409
2401
|
/**
|
|
2410
|
-
*
|
|
2411
|
-
* Loads initial properties and subscribes to update topics.
|
|
2402
|
+
* Loads the connection's properties and subscribes to its `/kos/studio/properties` topic.
|
|
2412
2403
|
*/
|
|
2413
2404
|
async initializePropertiesSession() {
|
|
2414
2405
|
this.unsubscribe = service$8.WebSocketTransport.getInstance().subscribeTopic({
|
|
@@ -2446,9 +2437,9 @@ let StudioPropertiesModelImpl = class {
|
|
|
2446
2437
|
return this.data[key];
|
|
2447
2438
|
}
|
|
2448
2439
|
/**
|
|
2449
|
-
*
|
|
2440
|
+
* A computed value that tracks one property.
|
|
2450
2441
|
* @param key Property key to observe
|
|
2451
|
-
* @returns
|
|
2442
|
+
* @returns Computed value of the property
|
|
2452
2443
|
*/
|
|
2453
2444
|
createObservableProperty(key) {
|
|
2454
2445
|
return service$8.kosComputed(() => this.get(key));
|