@kosdev-code/kos-ui-sdk 0.1.0-next.944 → 0.1.0-next.958

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.
Files changed (320) hide show
  1. package/.kos.json +2 -1
  2. package/common/events/async-event-bus.d.ts +2 -11
  3. package/common/events/async-event-bus.d.ts.map +1 -1
  4. package/common/events/eventBus.d.ts +1 -18
  5. package/common/events/eventBus.d.ts.map +1 -1
  6. package/core/core/decorators/kos-child.d.ts +2 -3
  7. package/core/core/decorators/kos-child.d.ts.map +1 -1
  8. package/core/core/decorators/kos-companion.d.ts +25 -87
  9. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  10. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts +2 -0
  11. package/core/core/decorators/kos-container-aware-reconcile.test-d.d.ts.map +1 -0
  12. package/core/core/decorators/kos-container-aware.d.ts +191 -420
  13. package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
  14. package/core/core/decorators/kos-execute-service-request.d.ts +7 -11
  15. package/core/core/decorators/kos-execute-service-request.d.ts.map +1 -1
  16. package/core/core/decorators/kos-execution-context.d.ts +14 -31
  17. package/core/core/decorators/kos-execution-context.d.ts.map +1 -1
  18. package/core/core/decorators/kos-future-aware.d.ts +21 -74
  19. package/core/core/decorators/kos-future-aware.d.ts.map +1 -1
  20. package/core/core/decorators/kos-http-decorators.d.ts +18 -62
  21. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  22. package/core/core/decorators/kos-logger-aware.d.ts +10 -60
  23. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  24. package/core/core/decorators/kos-model-effect.d.ts +10 -9
  25. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  26. package/core/core/decorators/kos-multiple-future-aware.d.ts +21 -94
  27. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
  28. package/core/core/decorators/kos-reload-aware.d.ts +14 -16
  29. package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
  30. package/core/core/decorators/kos-service-request.d.ts +80 -238
  31. package/core/core/decorators/kos-service-request.d.ts.map +1 -1
  32. package/core/core/decorators/kos-state-machine.d.ts +35 -275
  33. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  34. package/core/core/decorators/kos-trouble-aware.d.ts +9 -43
  35. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -1
  36. package/core/core/decorators/kos-view-model.d.ts +20 -100
  37. package/core/core/decorators/kos-view-model.d.ts.map +1 -1
  38. package/core/core/decorators/kosModel.d.ts.map +1 -1
  39. package/core/core/decorators/kosTopicHandler.d.ts +28 -89
  40. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  41. package/core/core/indexing/index.d.ts +2 -4
  42. package/core/core/indexing/index.d.ts.map +1 -1
  43. package/core/core/indexing/kos-container-index-aware.d.ts +17 -48
  44. package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
  45. package/core/core/indexing/kos-index-aware.d.ts +11 -37
  46. package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
  47. package/core/core/kos-container-model.d.ts +11 -32
  48. package/core/core/kos-container-model.d.ts.map +1 -1
  49. package/core/core/kos-data-container.d.ts +6 -6
  50. package/core/core/kos-data-container.d.ts.map +1 -1
  51. package/core/core/kosCore.d.ts +7 -4
  52. package/core/core/kosCore.d.ts.map +1 -1
  53. package/core/core/kosModel.d.ts +16 -8
  54. package/core/core/kosModel.d.ts.map +1 -1
  55. package/core/core/kosModelManager.d.ts +2 -3
  56. package/core/core/kosModelManager.d.ts.map +1 -1
  57. package/core/core/lifecycle/constants.d.ts +6 -2
  58. package/core/core/lifecycle/constants.d.ts.map +1 -1
  59. package/core/core/lifecycle/kosCoreLifecycle.d.ts +11 -1
  60. package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
  61. package/core/core/lifecycle/kosModelLifecycle.d.ts +6 -0
  62. package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
  63. package/core/core/lifecycle/model-machine.d.ts +6 -0
  64. package/core/core/lifecycle/model-machine.d.ts.map +1 -1
  65. package/core/core/model/kos-fsm-manager.d.ts +6 -0
  66. package/core/core/model/kos-fsm-manager.d.ts.map +1 -1
  67. package/core/core/model/kos-offline-queue.d.ts +1 -1
  68. package/core/core/model/service-response-store.d.ts +2 -15
  69. package/core/core/model/service-response-store.d.ts.map +1 -1
  70. package/core/core/reconnect/reconnect-fixture.d.ts +17 -0
  71. package/core/core/reconnect/reconnect-fixture.d.ts.map +1 -0
  72. package/core/core/services/app-startup-service.d.ts +5 -13
  73. package/core/core/services/app-startup-service.d.ts.map +1 -1
  74. package/core/core/services/intent-service.d.ts +3 -12
  75. package/core/core/services/intent-service.d.ts.map +1 -1
  76. package/core/core/transport/mock/mock-frames.d.ts +3 -3
  77. package/core/core/transport/transport.d.ts +1 -1
  78. package/core/core/transport/transport.d.ts.map +1 -1
  79. package/core/core/transport/webSocketTransport.d.ts +10 -0
  80. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  81. package/core/types/model.d.ts +4 -8
  82. package/core/types/model.d.ts.map +1 -1
  83. package/core/types/service-response-store.d.ts +3 -11
  84. package/core/types/service-response-store.d.ts.map +1 -1
  85. package/core/types/utils/kos-fetch.d.ts +25 -37
  86. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  87. package/core/util/abortable-when.d.ts +5 -6
  88. package/core/util/abortable-when.d.ts.map +1 -1
  89. package/core/util/ancestor-path-visitor.d.ts +14 -20
  90. package/core/util/ancestor-path-visitor.d.ts.map +1 -1
  91. package/core/util/container-utils.d.ts +26 -159
  92. package/core/util/container-utils.d.ts.map +1 -1
  93. package/core/util/date-utils.d.ts +9 -58
  94. package/core/util/date-utils.d.ts.map +1 -1
  95. package/core/util/debounce.d.ts +1 -8
  96. package/core/util/debounce.d.ts.map +1 -1
  97. package/core/util/kos-fetch.d.ts +1 -1
  98. package/core/util/kos-fetch.d.ts.map +1 -1
  99. package/core/util/kos-model-utils.d.ts +10 -11
  100. package/core/util/kos-model-utils.d.ts.map +1 -1
  101. package/core/util/model-attribute-utils.d.ts +5 -22
  102. package/core/util/model-attribute-utils.d.ts.map +1 -1
  103. package/core/util/promise-utils.d.ts +1 -26
  104. package/core/util/promise-utils.d.ts.map +1 -1
  105. package/core/util/service-factory.d.ts +5 -23
  106. package/core/util/service-factory.d.ts.map +1 -1
  107. package/core/util/service-request-error.d.ts +3 -5
  108. package/core/util/service-request-error.d.ts.map +1 -1
  109. package/core/util/service-response.d.ts +12 -67
  110. package/core/util/service-response.d.ts.map +1 -1
  111. package/core/util/transport-not-ready-error.d.ts +11 -13
  112. package/core/util/transport-not-ready-error.d.ts.map +1 -1
  113. package/core/util/when-ready.d.ts +1 -8
  114. package/core/util/when-ready.d.ts.map +1 -1
  115. package/index.cjs +144 -109
  116. package/index.cjs.map +1 -1
  117. package/index.js +173 -138
  118. package/index.js.map +1 -1
  119. package/models/decorators/future-service.d.ts +7 -7
  120. package/models/models/browser-router/browser-router-model.d.ts +10 -39
  121. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  122. package/models/models/browser-router/browser-router-registration.d.ts +5 -77
  123. package/models/models/browser-router/browser-router-registration.d.ts.map +1 -1
  124. package/models/models/browser-router/types/index.d.ts +2 -16
  125. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts +5 -77
  126. package/models/models/canvas-dispatcher/canvas-dispatcher-registration.d.ts.map +1 -1
  127. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts +5 -75
  128. package/models/models/canvas-renderer/canvas-renderer-registration.d.ts.map +1 -1
  129. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -11
  130. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  131. package/models/models/config-bean/config-bean-model.d.ts +23 -66
  132. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  133. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +15 -62
  134. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  135. package/models/models/config-bean-prop/types/index.d.ts +34 -215
  136. package/models/models/device/device-model.d.ts +20 -199
  137. package/models/models/device/device-model.d.ts.map +1 -1
  138. package/models/models/device/device-registration.d.ts +7 -87
  139. package/models/models/device/device-registration.d.ts.map +1 -1
  140. package/models/models/device/types/index.d.ts +5 -34
  141. package/models/models/future/future-aware.d.ts +7 -71
  142. package/models/models/future/future-aware.d.ts.map +1 -1
  143. package/models/models/future/future-model-builder.d.ts +2 -2
  144. package/models/models/future/future-model.d.ts +3 -23
  145. package/models/models/future/future-model.d.ts.map +1 -1
  146. package/models/models/future/future-types.d.ts +28 -145
  147. package/models/models/future/future-types.d.ts.map +1 -1
  148. package/models/models/gpio-chip/gpio-chip-builders.d.ts +14 -0
  149. package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -0
  150. package/models/models/gpio-chip/gpio-chip-container-model.d.ts +2 -1
  151. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
  152. package/models/models/key-value/key-value-model.d.ts +12 -72
  153. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  154. package/models/models/key-value/key-value-registration.d.ts +5 -77
  155. package/models/models/key-value/key-value-registration.d.ts.map +1 -1
  156. package/models/models/key-value/services/key-value-services.d.ts +13 -72
  157. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  158. package/models/models/key-value/types/index.d.ts +3 -46
  159. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +32 -99
  160. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
  161. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +2 -12
  162. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -1
  163. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +7 -46
  164. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  165. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts +5 -80
  166. package/models/models/kos-log-manager/kos-log-manager-registration.d.ts.map +1 -1
  167. package/models/models/kos-log-manager/types/index.d.ts +13 -156
  168. package/models/models/kos-time/kos-time-model.d.ts +8 -39
  169. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  170. package/models/models/kos-time/kos-time-registration.d.ts +6 -73
  171. package/models/models/kos-time/kos-time-registration.d.ts.map +1 -1
  172. package/models/models/kos-time/types/index.d.ts +3 -58
  173. package/models/models/log-block/log-block-container-model.d.ts +2 -118
  174. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  175. package/models/models/log-block/log-block-container-registration.d.ts +5 -75
  176. package/models/models/log-block/log-block-container-registration.d.ts.map +1 -1
  177. package/models/models/log-block/log-block-model.d.ts +5 -168
  178. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  179. package/models/models/log-block/log-block-registration.d.ts +5 -75
  180. package/models/models/log-block/log-block-registration.d.ts.map +1 -1
  181. package/models/models/log-block/types/index.d.ts +14 -81
  182. package/models/models/log-stream/log-stream-container-model.d.ts +8 -35
  183. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  184. package/models/models/log-stream/log-stream-container-registration.d.ts +5 -75
  185. package/models/models/log-stream/log-stream-container-registration.d.ts.map +1 -1
  186. package/models/models/log-stream/log-stream-model.d.ts +8 -29
  187. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  188. package/models/models/log-stream/log-stream-registration.d.ts +5 -75
  189. package/models/models/log-stream/log-stream-registration.d.ts.map +1 -1
  190. package/models/models/log-stream/types/index.d.ts +5 -60
  191. package/models/models/network-interface/network-interface-container-model.d.ts +6 -35
  192. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  193. package/models/models/network-interface/network-interface-container-registration.d.ts +5 -73
  194. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  195. package/models/models/network-interface/network-interface-model.d.ts +5 -43
  196. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  197. package/models/models/network-interface/network-interface-registration.d.ts +5 -73
  198. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  199. package/models/models/network-interface/types/index.d.ts +2 -16
  200. package/models/models/ota/ota-model.d.ts +11 -39
  201. package/models/models/ota/ota-model.d.ts.map +1 -1
  202. package/models/models/ota/ota-registration.d.ts +5 -77
  203. package/models/models/ota/ota-registration.d.ts.map +1 -1
  204. package/models/models/ota/types/index.d.ts +2 -141
  205. package/models/models/region-info/types/index.d.ts +19 -99
  206. package/models/models/region-info/types/index.d.ts.map +1 -1
  207. package/models/models/software-info/services/software-info-services.d.ts +2 -14
  208. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  209. package/models/models/software-info/software-info-model.d.ts +3 -39
  210. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  211. package/models/models/software-info/software-info-registration.d.ts +6 -73
  212. package/models/models/software-info/software-info-registration.d.ts.map +1 -1
  213. package/models/models/software-info/types/index.d.ts +6 -20
  214. package/models/models/state-bean/state-bean-model.d.ts +10 -41
  215. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  216. package/models/models/state-bean/state-bean-registration.d.ts +6 -73
  217. package/models/models/state-bean/state-bean-registration.d.ts.map +1 -1
  218. package/models/models/state-bean/types/index.d.ts +4 -84
  219. package/models/models/state-prop/state-prop-model.d.ts +6 -40
  220. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  221. package/models/models/state-prop/state-prop-registration.d.ts +6 -73
  222. package/models/models/state-prop/state-prop-registration.d.ts.map +1 -1
  223. package/models/models/state-prop/types/index.d.ts +5 -37
  224. package/models/models/storage-device/storage-device-container-model.d.ts +7 -273
  225. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  226. package/models/models/storage-device/storage-device-container-registration.d.ts +5 -75
  227. package/models/models/storage-device/storage-device-container-registration.d.ts.map +1 -1
  228. package/models/models/storage-device/storage-device-model.d.ts +3 -49
  229. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  230. package/models/models/storage-device/storage-device-registration.d.ts +5 -75
  231. package/models/models/storage-device/storage-device-registration.d.ts.map +1 -1
  232. package/models/models/storage-device/types/index.d.ts +13 -82
  233. package/models/models/studio-properties/studio-properties-model.d.ts +13 -36
  234. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  235. package/models/models/studio-properties/studio-properties-registration.d.ts +5 -75
  236. package/models/models/studio-properties/studio-properties-registration.d.ts.map +1 -1
  237. package/models/models/studio-properties/types/index.d.ts +2 -24
  238. package/models/models/translation/descriptor-merge.d.ts +13 -17
  239. package/models/models/translation/descriptor-merge.d.ts.map +1 -1
  240. package/models/models/translation/services/translation-services.d.ts +19 -77
  241. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  242. package/models/models/translation/test-harness.d.ts +6 -8
  243. package/models/models/translation/test-harness.d.ts.map +1 -1
  244. package/models/models/translation/translation-container-model.d.ts +7 -59
  245. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  246. package/models/models/translation/translation-container-registration.d.ts +6 -73
  247. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  248. package/models/models/translation/translation-model.d.ts +17 -50
  249. package/models/models/translation/translation-model.d.ts.map +1 -1
  250. package/models/models/translation/translation-registration.d.ts +6 -73
  251. package/models/models/translation/translation-registration.d.ts.map +1 -1
  252. package/models/models/translation/types/index.d.ts +51 -276
  253. package/models/models/trouble/trouble-registration.d.ts +6 -73
  254. package/models/models/trouble/trouble-registration.d.ts.map +1 -1
  255. package/models/models/trouble/types/index.d.ts +17 -188
  256. package/models/models/trouble/utils/is-trouble-aware.d.ts +4 -85
  257. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  258. package/models/models/trouble-container/trouble-builders.d.ts +11 -0
  259. package/models/models/trouble-container/trouble-builders.d.ts.map +1 -0
  260. package/models/models/trouble-container/trouble-container-model.d.ts +2 -1
  261. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
  262. package/models/models/usb-update/usb-update-container-registration.d.ts +5 -75
  263. package/models/models/usb-update/usb-update-container-registration.d.ts.map +1 -1
  264. package/models/models/usb-update/usb-update-registration.d.ts +5 -75
  265. package/models/models/usb-update/usb-update-registration.d.ts.map +1 -1
  266. package/models/types/cancellable-promise.d.ts +6 -9
  267. package/models/types/cancellable-promise.d.ts.map +1 -1
  268. package/models/utils/await-future-call.d.ts +9 -21
  269. package/models/utils/await-future-call.d.ts.map +1 -1
  270. package/models/utils/cancellable-future-call.d.ts +8 -19
  271. package/models/utils/cancellable-future-call.d.ts.map +1 -1
  272. package/models/utils/cancellable-service.d.ts +14 -23
  273. package/models/utils/cancellable-service.d.ts.map +1 -1
  274. package/models/utils/conversion-utils.d.ts +8 -48
  275. package/models/utils/conversion-utils.d.ts.map +1 -1
  276. package/models/utils/persistence-store.d.ts +1 -1
  277. package/models/utils/service.d.ts +14 -48
  278. package/models/utils/service.d.ts.map +1 -1
  279. package/models/utils/services/kos/daily/service.d.ts +4 -4
  280. package/models/utils/services/vfs/daily/service.d.ts +4 -4
  281. package/models/utils/timer-manager.d.ts.map +1 -1
  282. package/package.json +3 -3
  283. package/{software-info-registration-CKlTQPet.js → software-info-registration-C8kf-pBB.js} +551 -530
  284. package/software-info-registration-C8kf-pBB.js.map +1 -0
  285. package/{software-info-registration-GUbTY4KD.cjs → software-info-registration-Y1iADHWT.cjs} +522 -501
  286. package/software-info-registration-Y1iADHWT.cjs.map +1 -0
  287. package/testing/index.d.ts +28 -33
  288. package/testing/index.d.ts.map +1 -1
  289. package/testing.cjs +1 -1
  290. package/testing.cjs.map +1 -1
  291. package/testing.js +1 -1
  292. package/testing.js.map +1 -1
  293. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts +9 -0
  294. package/ui/components/connection-dev-button/connection-dev-button-styles.d.ts.map +1 -0
  295. package/ui/components/connection-dev-button/index.d.ts +36 -0
  296. package/ui/components/connection-dev-button/index.d.ts.map +1 -0
  297. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts +29 -0
  298. package/ui/components/connection-dev-button/use-connection-dev-state.d.ts.map +1 -0
  299. package/ui/components/index.d.ts +1 -0
  300. package/ui/components/index.d.ts.map +1 -1
  301. package/ui/features/canvas/hooks/use-image-renderer.d.ts +5 -4
  302. package/ui/features/canvas/hooks/use-image-renderer.d.ts.map +1 -1
  303. package/ui/hooks/use-function-warmup.d.ts +4 -14
  304. package/ui/hooks/use-function-warmup.d.ts.map +1 -1
  305. package/ui/hooks/use-kos-date-formats.d.ts +15 -29
  306. package/ui/hooks/use-kos-date-formats.d.ts.map +1 -1
  307. package/ui/hooks/use-kos-region-timezones.d.ts +4 -55
  308. package/ui/hooks/use-kos-region-timezones.d.ts.map +1 -1
  309. package/ui/hooks/use-kos-regions.d.ts +11 -23
  310. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  311. package/ui/hooks/use-kos-time-formats.d.ts +16 -31
  312. package/ui/hooks/use-kos-time-formats.d.ts.map +1 -1
  313. package/ui/hooks/use-kos-unit-systems.d.ts +13 -27
  314. package/ui/hooks/use-kos-unit-systems.d.ts.map +1 -1
  315. package/ui/hooks/view-model/use-view-model.d.ts +6 -31
  316. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -1
  317. package/ui/policies/reload-on-disconnect-policy.d.ts +5 -6
  318. package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
  319. package/software-info-registration-CKlTQPet.js.map +0 -1
  320. package/software-info-registration-GUbTY4KD.cjs.map +0 -1
@@ -1,46 +1,6 @@
1
1
  /**
2
- * Configuration options for creating KeyValue model instances.
3
- *
4
- * The namespace option allows you to create isolated key-value stores that don't
5
- * interfere with each other, even when using the same keys. This is essential for
6
- * organizing different types of data and preventing key collisions.
7
- *
8
- * @example Default Namespace
9
- * ```typescript
10
- * // Uses default 'studio' namespace
11
- * const store = KeyValue.instance('my-store')
12
- * .options({})
13
- * .build();
14
- * ```
15
- *
16
- * @example Custom Namespace
17
- * ```typescript
18
- * // Create isolated stores with custom namespaces
19
- * const userStore = KeyValue.instance('user')
20
- * .options({ namespace: 'user-data' })
21
- * .build();
22
- *
23
- * const appStore = KeyValue.instance('app')
24
- * .options({ namespace: 'app-state' })
25
- * .build();
26
- *
27
- * // Same key, different namespaces = no collision
28
- * await userStore.updateState('id', 'user-123');
29
- * await appStore.updateState('id', 'app-456');
30
- * ```
31
- *
32
- * @example Namespace Conventions
33
- * ```typescript
34
- * // Recommended namespace patterns
35
- * const examples: KeyValueOptions[] = [
36
- * { namespace: 'user-preferences' }, // User-specific settings
37
- * { namespace: 'application-state' }, // Global app state
38
- * { namespace: 'feature-flags' }, // Feature toggles
39
- * { namespace: 'session-data' }, // Session-specific data
40
- * { namespace: 'cache-layer' }, // Cached API responses
41
- * { namespace: 'dev-tools' } // Development/debug data
42
- * ];
43
- * ```
2
+ * Options for a {@link KeyValueModel}. Stores with different namespaces keep
3
+ * separate keys.
44
4
  *
45
5
  * @kosService core.key-value
46
6
  * @group KOS Model
@@ -49,10 +9,7 @@
49
9
  */
50
10
  export interface KeyValueOptions {
51
11
  /**
52
- * Namespace for the key-value store to prevent key collisions between different stores.
53
- *
54
- * Defaults to 'studio' if not specified. Choose descriptive namespaces that clearly
55
- * indicate the purpose of the stored data.
12
+ * Namespace of the store on the device.
56
13
  *
57
14
  * @default 'studio'
58
15
  */
@@ -5,17 +5,7 @@ import { PublicModelInterface } from '../../../core/types';
5
5
  import { KosExpressionEvaluatorOptions } from './types';
6
6
  export declare const MODEL_TYPE = "kos-expression-evaluator-model";
7
7
  /**
8
- * Result of evaluating an expression, containing either a successful value or error details.
9
- *
10
- * @example
11
- * ```typescript
12
- * const result = evaluator.getExpressionValue('myExpression');
13
- * if (result?.error) {
14
- * console.error(`Expression error: ${result.error}`);
15
- * } else {
16
- * console.log(`Result: ${result?.value}`);
17
- * }
18
- * ```
8
+ * Result of evaluating an expression: the value, or the error message when evaluation failed.
19
9
  */
20
10
  export interface ExpressionResult {
21
11
  /** The computed value of the expression, or undefined if evaluation failed */
@@ -36,29 +26,22 @@ export interface NamedExpression {
36
26
  updateResult(result: ExpressionResult): void;
37
27
  }
38
28
  /**
39
- * KOS Expression Evaluator Model - Reactive expression evaluation with dynamic context and type-safe named expressions.
40
- *
41
- * This model provides a reactive expression evaluation system that automatically re-evaluates
42
- * expressions when their context data changes. Perfect for business rules, computed values,
43
- * and conditional logic that needs to stay synchronized with changing data.
29
+ * Evaluates named expressions against context data and keeps their results
30
+ * current. Reading `results` re-evaluates every expression, so a
31
+ * `kosComponent` or model effect that reads it re-renders when the context data
32
+ * or a model added to the context changes.
44
33
  *
45
- * ## Key Features
46
- * - **Automatic reactivity** - Expressions re-evaluate when dependencies change thanks to KOS reactive patterns
47
- * - **Type safety** - Generic type parameter provides compile-time checking for expression names
48
- * - **Efficient updates** - Only affected expressions recalculate when their data dependencies change
49
- * - **Synchronous access** - Results available immediately via getters
50
- * - **Error handling** - Expressions with runtime errors are handled gracefully
51
- * - **KOS model integration** - Add any KOS model to context for fully reactive expressions
34
+ * Expressions use `expr-eval` syntax, plus the built-in functions `exists(value)`
35
+ * and `isEmpty(value)` and any `customFunctions` passed in the options. The type
36
+ * parameter narrows the accepted expression names.
52
37
  *
53
38
  * @interface
54
- * @example Basic Usage
39
+ * @example
55
40
  * ```typescript
56
- * const evaluator = KosExpressionEvaluatorModel.instance('my-evaluator').build();
57
- *
58
- * evaluator.setContextData({ temperature: 72, humidity: 45 });
59
- * evaluator.addExpression('isComfortable', 'temperature >= 68 && temperature <= 78');
60
- *
61
- * console.log(evaluator.results.isComfortable?.value); // true
41
+ * const evaluator = KosExpressionEvaluator.instance("my-evaluator").options({}).build();
42
+ * evaluator.setContextData({ temperature: 72 });
43
+ * evaluator.addExpression("isComfortable", "temperature >= 68 and temperature <= 78");
44
+ * evaluator.results.isComfortable?.value; // true
62
45
  * ```
63
46
  *
64
47
  * @group KOS Model
@@ -88,120 +71,70 @@ export declare class KosExpressionEvaluatorModelImpl<T extends string = string>
88
71
  get data(): Record<string, unknown>;
89
72
  get contextRevision(): number;
90
73
  /**
91
- * Replace the entire context data with new values. All expressions will
92
- * automatically re-evaluate against the new context.
74
+ * Replace the context data. Every expression re-evaluates against it.
93
75
  *
94
76
  * @param newData - Complete new context data to replace existing data
95
- *
96
- * @example
97
- * ```typescript
98
- * evaluator.setContextData({ temperature: 75, humidity: 40 });
99
- * ```
100
77
  */
101
78
  setContextData(newData: Record<string, unknown>): void;
102
79
  /**
103
- * Update a single value in the context data. All expressions using this
104
- * value will automatically re-evaluate.
80
+ * Set one top-level context value.
105
81
  *
106
82
  * @param key - The context data key to update
107
83
  * @param value - The new value to set
108
- *
109
- * @example
110
- * ```typescript
111
- * evaluator.updateContextValue('temperature', 85);
112
- * ```
113
84
  */
114
85
  updateContextValue(key: string, value: unknown): void;
115
86
  /**
116
- * Update a nested property in the context data using dot notation.
117
- * This method safely updates nested properties without replacing the entire object structure.
87
+ * Set a nested context value by dot-separated path, such as
88
+ * `sensors.humidity`, creating intermediate objects as needed.
118
89
  *
119
- * @param path - Dot-separated path to the nested property (e.g., 'sensors.humidity', 'config.thresholds.temp')
90
+ * @param path - Dot-separated path to the nested property
120
91
  * @param value - The new value to set at the nested path
121
- *
122
- * @example
123
- * ```typescript
124
- * evaluator.updateNestedValue('sensors.humidity', 60);
125
- * ```
126
92
  */
127
93
  updateNestedValue(path: string, value: unknown): void;
128
94
  /**
129
- * Add a KOS model to the evaluation context. The model's observable properties
130
- * will be accessible via dotted notation and expressions will automatically
131
- * re-evaluate when the model's data changes.
95
+ * Add a KOS model to the context under `key`. Expressions read its properties
96
+ * with dotted notation (`sensor.temperature`) and re-evaluate when they change.
132
97
  *
133
98
  * @param key - The context key to store the model under
134
- * @param model - Any KOS model instance (must be observable)
135
- *
136
- * @example
137
- * ```typescript
138
- * const sensorModel = SensorModel.instance('main-sensor').build();
139
- * evaluator.addModelToContext('sensor', sensorModel);
140
- * evaluator.addExpression('isCritical', 'sensor.temperature > 80');
141
- * ```
99
+ * @param model - KOS model instance
142
100
  */
143
101
  addModelToContext(key: string, model: unknown): void;
144
102
  /**
145
- * Add a named expression that will be automatically evaluated against context data.
146
- * The expression will re-evaluate whenever its dependencies in the context change.
103
+ * Add a named expression and evaluate it once.
147
104
  *
148
- * @param name - Unique identifier for this expression (type-safe when using generic)
149
- * @param expressionString - JavaScript-like expression string
105
+ * @param name - Unique identifier for this expression
106
+ * @param expressionString - Expression in `expr-eval` syntax
150
107
  * @throws {Error} If the expression has invalid syntax
151
- *
152
- * @example
153
- * ```typescript
154
- * evaluator.addExpression('isHot', 'temperature > 80');
155
- * ```
156
108
  */
157
109
  addExpression(name: T, expressionString: string): void;
158
110
  removeExpression(name: T): boolean;
159
111
  getExpression(name: T): NamedExpression | undefined;
160
112
  getExpressionValue(name: T): ExpressionResult | undefined;
161
113
  /**
162
- * Get the cached result of an expression without triggering re-evaluation.
163
- * This is useful for dependency tracking in effects where you want to avoid
164
- * creating reactive chains through the expression evaluation.
114
+ * The last cached result of an expression, read without re-evaluating. Use it
115
+ * in effects that should not depend on the expression's inputs.
165
116
  *
166
117
  * @param name - The expression name to get the cached result for
167
118
  * @returns The last cached result, or undefined if expression doesn't exist
168
- *
169
- * @example
170
- * ```typescript
171
- * const cached = evaluator.getCachedExpressionValue('myExpression');
172
- * ```
173
119
  */
174
120
  getCachedExpressionValue(name: T): ExpressionResult | undefined;
175
121
  get expressions(): NamedExpression[];
176
122
  get expressionNames(): T[];
177
123
  get results(): Record<T, ExpressionResult>;
178
- /**
179
- * Force re-evaluation of all expressions and update cached results.
180
- * This is called by the effect when context data changes.
181
- */
124
+ /** Re-evaluate every expression and update the cached results. */
182
125
  private evaluateAllExpressions;
183
126
  /**
184
127
  * Evaluate a specific expression and update the cached result if it changed.
185
128
  */
186
129
  private evaluateExpression;
187
- /**
188
- * Internal method to update the results object when expression values change.
189
- * This is called by ReactiveExpression when its value changes.
190
- * ObservableData handles dynamic properties automatically with MobX atoms.
191
- */
130
+ /** Store a changed result in the reactive results object. */
192
131
  private updateResult;
193
132
  /**
194
- * Create an anonymous reactive expression and return its generated ID.
195
- * The expression becomes fully reactive and can be accessed via the returned ID.
196
- *
197
- * @param expressionString - JavaScript-like expression string
198
- * @returns Generated UUID that can be used to access the expression via `getExpressionValue(id)` or `results[id]`
133
+ * Add an expression under a generated id and return the id, for use with
134
+ * `getExpressionValue(id)` or `results[id]`.
199
135
  *
200
- * @example
201
- * ```typescript
202
- * const tempCheckId = evaluator.createExpression('temperature > 75');
203
- * const result = evaluator.getExpressionValue(tempCheckId);
204
- * ```
136
+ * @param expressionString - Expression in `expr-eval` syntax
137
+ * @returns Generated expression id
205
138
  */
206
139
  createExpression(expressionString: string): string;
207
140
  }
@@ -1 +1 @@
1
- {"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"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"}
@@ -1,15 +1,5 @@
1
1
  /**
2
- * KOS Expression Evaluator Services
3
- *
4
- * The Expression Evaluator model is a purely computational model that performs
5
- * local expression evaluation against context data. It does not require any
6
- * HTTP services or external API calls.
7
- *
8
- * All functionality is self-contained within the model using:
9
- * - expr-eval library for expression parsing and evaluation
10
- * - KOS reactive patterns for automatic re-evaluation
11
- * - Local context data storage
12
- *
13
- * No external services are needed.
2
+ * The expression evaluator runs entirely in the browser with `expr-eval` and
3
+ * calls no backend services.
14
4
  */
15
5
  //# sourceMappingURL=kos-expression-evaluator-services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-expression-evaluator-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"kos-expression-evaluator-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-ui-sdk/src/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -9,54 +9,14 @@ import { KosLogManagerOptions, LogLevelDescriptor, LogOverride } from './types';
9
9
  */
10
10
  export declare const MODEL_TYPE = "kos-log-manager-model";
11
11
  /**
12
- * KOS Log Manager Model - Centralized runtime log level management for the entire KOS system.
12
+ * Applies backend log level overrides to the UI's loggers at runtime.
13
13
  *
14
- * This singleton model provides comprehensive control over logging behavior across the KOS UI SDK
15
- * and connected applications. It manages dynamic log level overrides, responds to real-time
16
- * configuration changes, and provides both REST API and WebSocket interfaces for log management.
17
- * Essential for debugging, performance monitoring, and production troubleshooting.
18
- *
19
- * ## Key Features
20
- * - **Runtime Log Level Control** - Dynamically adjust log levels without application restart
21
- * - **Hierarchical Logger Management** - Apply overrides to parent loggers and all children
22
- * - **Real-time Configuration** - WebSocket-based updates propagate instantly across clients
23
- * - **REST API Integration** - Query and manage logger configurations via HTTP endpoints
24
- * - **Override Persistence** - Log overrides are maintained across sessions and page refreshes
25
- * - **Multi-Node Support** - Coordinate logging across different KOS device nodes
26
- *
27
- * ## Topic-Based Reactivity
28
- * The model listens to these KOS topics for real-time log management:
29
- * - **`/kos/logs/override/add/*`** - Fired when new log level overrides are created
30
- * - **`/kos/logs/override/remove/*`** - Fired when log level overrides are removed
31
- *
32
- * Both topics support wildcard capture for node type targeting, enabling precise
33
- * control over which device nodes receive logging configuration changes.
34
- *
35
- * ## Architecture Integration
36
- * The log manager integrates with the broader KOS logging ecosystem:
37
- * - **KosLog System** - Manages underlying logger instances and level settings
38
- * - **LogStreamModel** - Streams managed by this model's log level policies
39
- * - **LogBlockModel** - Individual log entries governed by level settings
40
- * - **REST Endpoints** - Provides `/api/kos/ui/loggers` for external access
41
- *
42
- * ## Common Use Cases
43
- * - **Development Debugging** - Increase log verbosity for specific components during development
44
- * - **Production Troubleshooting** - Temporarily enable debug logging to diagnose issues
45
- * - **Performance Monitoring** - Adjust log levels to reduce overhead in production
46
- * - **System Administration** - Centrally manage logging across distributed KOS deployments
47
- * - **Dynamic Configuration** - Change logging behavior without service interruption
48
- * - **Selective Logging** - Enable detailed logging for specific modules while keeping others quiet
14
+ * On load the model fetches the overrides of type `UI` and applies each to the
15
+ * named logger and every logger whose name starts with it. It then follows the
16
+ * `/kos/logs/override/add/*` and `/kos/logs/override/remove/*` topics, and
17
+ * serves the current logger levels at `GET /api/kos/ui/loggers`.
49
18
  *
50
19
  * @interface
51
- * @example Basic Usage
52
- * ```typescript
53
- * const logManager = KosLogManager.instance('log-control').build();
54
- *
55
- * // Get all current logger configurations via REST API
56
- * const loggers = await logManager.getAllLoggers();
57
- * console.log(`Managing ${loggers.length} loggers`);
58
- * ```
59
- *
60
20
  * @group KOS Model
61
21
  * @category Device Logging
62
22
  * @useDeclaredType
@@ -85,7 +45,8 @@ export declare class KosLogManagerModelImpl implements IKosDataModel, IKosIdenti
85
45
  */
86
46
  private resolveLoggers;
87
47
  /**
88
- * REST API endpoint to retrieve all logger configurations.
48
+ * Every registered logger and its effective level, served at
49
+ * `GET /api/kos/ui/loggers`.
89
50
  * @get /api/kos/ui/loggers
90
51
  * @param _req - The incoming request (unused)
91
52
  * @param res - The response object to send logger data
@@ -1 +1 @@
1
- {"version":3,"file":"kos-log-manager-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-model.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAElB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AA2B9E;;;GAGG;AACH,qBACa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,UAAU,CAAiC;gBAEjD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IAU7B,WAAW,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAMjD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAqBtB;;;;;;OAMG;IAEG,aAAa,CACjB,IAAI,CAAC,EAAE,UAAU,EACjB,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOhC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB;;;;;OAKG;IAMH,mBAAmB,CACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC;IAWvC;;;;OAIG;IAMH,qBAAqB,CAAC,QAAQ,EAAE,WAAW;IAK3C;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAwB5B"}
1
+ {"version":3,"file":"kos-log-manager-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-model.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAElB,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAElD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AA2B9E;;;GAGG;AACH,qBACa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,UAAU,CAAiC;gBAEjD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IAU7B,WAAW,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAMjD;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAqBtB;;;;;;;OAOG;IAEG,aAAa,CACjB,IAAI,CAAC,EAAE,UAAU,EACjB,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOhC;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAsBtB;;;;;OAKG;IAMH,mBAAmB,CACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC;IAWvC;;;;OAIG;IAMH,qBAAqB,CAAC,QAAQ,EAAE,WAAW;IAK3C;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAwB5B"}
@@ -2,90 +2,15 @@ import { SingletonKosModelRegistrationFactory } from '../../../core/core/registr
2
2
  import { KosLogManagerOptions } from './types';
3
3
  import { KosLogManagerModel } from './kos-log-manager-model';
4
4
  /**
5
- * # KosLogManager
6
- *
7
- * The registration bean includes convenience methods for creating and working with KosLogManagerModel instances.
8
-
9
- *
10
- * ## type
11
- * The type property is a string that identifies the model type.
12
- * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
- * used when declaring dependencies on models.
14
- *
15
- * @example
16
- * ```typescript
17
- *
18
- * @kosDependency({modelType: KosLogManager.type, id: "kosLogManagerId"})
19
- * private kosLogManagerModel: KosLogManagerModel;
20
- * ```
21
- *
22
- *
23
- * ## factory
24
- *
25
- * The factory method creates a factory function that can be used to create new KosLogManagerModel instances.
26
- *
27
-
28
- * As this is a singleton model, the factory function accepts the model options as its argument.
29
- *
30
- * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
31
- * in this case and the existing model will be returned in its current state.
32
- *
33
- * @example
34
- * ```typescript
35
- * const model = KosLogManager.factory({
36
- * // Add option data
37
- * });
38
-
39
- * ```
40
-
41
-
42
- *
43
- * ## predicate
44
- *
45
- * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a KosLogManagerModel.
46
- *
47
- * @example
48
- * ```typescript
49
- *
50
- * const model: IKosDataModel = ...; // some model
51
- *
52
- * if (KosLogManager.predicate(model)) {
53
- * // if the function evaluates to true, the model is narrowed down to KosLogManagerModel
54
- * // and the compiler will know that the model has the KosLogManagerModel interface
55
- * model.updateAvailability(false);
56
-
57
- * }
58
- * ```
59
- *
60
- * ## registration
61
- *
62
- * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
63
- * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
5
+ * Registration for {@link KosLogManagerModel}, a singleton model.
64
6
  *
7
+ * `type` identifies the model in the registry and in `@kosDependency` declarations.
8
+ * `register()` adds the model to the registry. `instance()` builds or returns the single instance; later calls ignore the options.
65
9
  *
66
10
  * @example
67
- *
68
- * In an application registration file you can declare the model registration as follows:
69
- *
70
- * **registration.ts**
71
11
  * ```typescript
72
- * import { KosLogManager } from "@kos-ui/project-models";
73
- * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
74
- *
75
- * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
76
- *
77
- * KosModelRegistry.dispense
78
- * .models()
79
- * .model(KosLogManager);
12
+ * const model = KosLogManager.instance().options(options).build();
80
13
  * ```
81
- *
82
- * ## registration.singleton
83
-
84
- * The kosLogManager model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
85
- * If the model does not yet exist, it will be created passing in the provided options to initialize it.
86
- *
87
- * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
88
-
89
- * */
14
+ */
90
15
  export declare const KosLogManager: SingletonKosModelRegistrationFactory<KosLogManagerModel, KosLogManagerOptions>;
91
16
  //# sourceMappingURL=kos-log-manager-registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-log-manager-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAGL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqFK;AACL,eAAO,MAAM,aAAa,gFAMxB,CAAC"}
1
+ {"version":3,"file":"kos-log-manager-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/models/models/kos-log-manager/kos-log-manager-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAGL,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,gFAMxB,CAAC"}