@kosdev-code/kos-ui-sdk 2.0.43 → 2.0.45

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 (445) hide show
  1. package/common/events/eventBus.d.ts +30 -0
  2. package/common/events/eventBus.d.ts.map +1 -1
  3. package/common/events/eventBus.functional.d.ts +48 -0
  4. package/common/events/eventBus.functional.d.ts.map +1 -1
  5. package/common/events/eventBus.state.d.ts +33 -0
  6. package/common/events/eventBus.state.d.ts.map +1 -1
  7. package/core/constants/model-constants.d.ts +9 -0
  8. package/core/constants/model-constants.d.ts.map +1 -0
  9. package/core/core/companion-instantiator.d.ts +71 -0
  10. package/core/core/companion-instantiator.d.ts.map +1 -0
  11. package/core/core/decorators/fsm-injection-utils.d.ts +16 -0
  12. package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -0
  13. package/core/core/decorators/index.d.ts +11 -0
  14. package/core/core/decorators/index.d.ts.map +1 -1
  15. package/core/core/decorators/kos-child.d.ts +2 -0
  16. package/core/core/decorators/kos-child.d.ts.map +1 -1
  17. package/core/core/decorators/kos-companion.d.ts +158 -8
  18. package/core/core/decorators/kos-companion.d.ts.map +1 -1
  19. package/core/core/decorators/kos-container-aware.d.ts +619 -0
  20. package/core/core/decorators/kos-container-aware.d.ts.map +1 -0
  21. package/core/core/decorators/kos-context.d.ts +6 -0
  22. package/core/core/decorators/kos-context.d.ts.map +1 -1
  23. package/core/core/decorators/kos-execution-context.d.ts +63 -0
  24. package/core/core/decorators/kos-execution-context.d.ts.map +1 -0
  25. package/core/core/decorators/kos-future-aware.d.ts +162 -0
  26. package/core/core/decorators/kos-future-aware.d.ts.map +1 -0
  27. package/core/core/decorators/kos-http-decorators.d.ts +15 -0
  28. package/core/core/decorators/kos-http-decorators.d.ts.map +1 -1
  29. package/core/core/decorators/kos-log.d.ts +4 -0
  30. package/core/core/decorators/kos-log.d.ts.map +1 -1
  31. package/core/core/decorators/kos-logger-aware.d.ts +105 -0
  32. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -0
  33. package/core/core/decorators/kos-model-effect.d.ts +9 -0
  34. package/core/core/decorators/kos-model-effect.d.ts.map +1 -1
  35. package/core/core/decorators/kos-multiple-future-aware.d.ts +217 -0
  36. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -0
  37. package/core/core/decorators/kos-parent.d.ts +4 -0
  38. package/core/core/decorators/kos-parent.d.ts.map +1 -1
  39. package/core/core/decorators/kos-reference.d.ts +9 -0
  40. package/core/core/decorators/kos-reference.d.ts.map +1 -1
  41. package/core/core/decorators/kos-service-request-helpers.d.ts +60 -0
  42. package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -0
  43. package/core/core/decorators/kos-service-request.d.ts +498 -0
  44. package/core/core/decorators/kos-service-request.d.ts.map +1 -0
  45. package/core/core/decorators/kos-state-machine.d.ts +534 -0
  46. package/core/core/decorators/kos-state-machine.d.ts.map +1 -0
  47. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +17 -1
  48. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
  49. package/core/core/decorators/kos-trouble-aware.d.ts +77 -0
  50. package/core/core/decorators/kos-trouble-aware.d.ts.map +1 -0
  51. package/core/core/decorators/kos-view-model.d.ts +176 -0
  52. package/core/core/decorators/kos-view-model.d.ts.map +1 -0
  53. package/core/core/decorators/kosDependency.d.ts +4 -1
  54. package/core/core/decorators/kosDependency.d.ts.map +1 -1
  55. package/core/core/decorators/kosModel.d.ts +17 -2
  56. package/core/core/decorators/kosModel.d.ts.map +1 -1
  57. package/core/core/decorators/kosSubscribe.d.ts +9 -0
  58. package/core/core/decorators/kosSubscribe.d.ts.map +1 -1
  59. package/core/core/decorators/kosTopicHandler.d.ts +87 -5
  60. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  61. package/core/core/decorators/propKeys.d.ts +14 -0
  62. package/core/core/decorators/propKeys.d.ts.map +1 -1
  63. package/core/core/decorators/resolve-parameters.d.ts.map +1 -1
  64. package/core/core/extension/extension-manager.d.ts +64 -4
  65. package/core/core/extension/extension-manager.d.ts.map +1 -1
  66. package/core/core/extension/initialize-extension.d.ts +24 -0
  67. package/core/core/extension/initialize-extension.d.ts.map +1 -1
  68. package/core/core/extension/plugin-extension-manager.d.ts +11 -0
  69. package/core/core/extension/plugin-extension-manager.d.ts.map +1 -1
  70. package/core/core/kos-container-model.d.ts +188 -0
  71. package/core/core/kos-container-model.d.ts.map +1 -1
  72. package/core/core/kos-data-container.d.ts +93 -1
  73. package/core/core/kos-data-container.d.ts.map +1 -1
  74. package/core/core/kos-registration.d.ts.map +1 -1
  75. package/core/core/kos-singleton-registration.d.ts.map +1 -1
  76. package/core/core/kosCore.d.ts.map +1 -1
  77. package/core/core/kosModel.d.ts +55 -1
  78. package/core/core/kosModel.d.ts.map +1 -1
  79. package/core/core/kosModelManager.d.ts +11 -1
  80. package/core/core/kosModelManager.d.ts.map +1 -1
  81. package/core/core/log/log.d.ts.map +1 -1
  82. package/core/core/model/apply-kos-dev-tool-support.d.ts.map +1 -1
  83. package/core/core/model/kos-model-component-factory.d.ts +4 -0
  84. package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
  85. package/core/core/model/kos-offline-queue.d.ts +78 -1
  86. package/core/core/model/kos-offline-queue.d.ts.map +1 -1
  87. package/core/core/model/kos-service-request-manager.d.ts +102 -0
  88. package/core/core/model/kos-service-request-manager.d.ts.map +1 -0
  89. package/core/core/model/kos-subscription-manager.d.ts +20 -0
  90. package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
  91. package/core/core/model/model-introspection-utils.d.ts +1 -0
  92. package/core/core/model/model-introspection-utils.d.ts.map +1 -1
  93. package/core/core/model/service-response-store.d.ts +164 -0
  94. package/core/core/model/service-response-store.d.ts.map +1 -0
  95. package/core/core/model-instantiator.d.ts +19 -0
  96. package/core/core/model-instantiator.d.ts.map +1 -1
  97. package/core/core/registration/index.d.ts +1 -0
  98. package/core/core/registration/index.d.ts.map +1 -1
  99. package/core/core/services/browser-router.d.ts.map +1 -1
  100. package/core/core/transport/webSocketTransport.d.ts +2 -1
  101. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  102. package/core/core/types/registration.d.ts +7 -0
  103. package/core/core/types/registration.d.ts.map +1 -1
  104. package/core/index.d.ts +2 -1
  105. package/core/index.d.ts.map +1 -1
  106. package/core/types/index.d.ts +1 -0
  107. package/core/types/index.d.ts.map +1 -1
  108. package/core/types/kos-dependency.d.ts +48 -1
  109. package/core/types/kos-dependency.d.ts.map +1 -1
  110. package/core/types/service-response-store.d.ts +162 -0
  111. package/core/types/service-response-store.d.ts.map +1 -0
  112. package/core/types/utils/kos-fetch.d.ts +121 -0
  113. package/core/types/utils/kos-fetch.d.ts.map +1 -1
  114. package/core/util/ancestor-path-visitor.d.ts +60 -0
  115. package/core/util/ancestor-path-visitor.d.ts.map +1 -0
  116. package/core/util/api-request-id.d.ts +4 -0
  117. package/core/util/api-request-id.d.ts.map +1 -1
  118. package/core/util/apply-mixins.d.ts +4 -0
  119. package/core/util/apply-mixins.d.ts.map +1 -1
  120. package/core/util/array-utils.d.ts +4 -0
  121. package/core/util/array-utils.d.ts.map +1 -1
  122. package/core/util/container-utils.d.ts +264 -11
  123. package/core/util/container-utils.d.ts.map +1 -1
  124. package/core/util/date-utils.d.ts +29 -0
  125. package/core/util/date-utils.d.ts.map +1 -1
  126. package/core/util/debounce.d.ts +3 -0
  127. package/core/util/debounce.d.ts.map +1 -1
  128. package/core/util/error-logger.d.ts +16 -0
  129. package/core/util/error-logger.d.ts.map +1 -0
  130. package/core/util/feature-flags.d.ts +19 -0
  131. package/core/util/feature-flags.d.ts.map +1 -1
  132. package/core/util/get-query-params.d.ts +4 -0
  133. package/core/util/get-query-params.d.ts.map +1 -1
  134. package/core/util/hsl-to-hex.d.ts +16 -0
  135. package/core/util/hsl-to-hex.d.ts.map +1 -1
  136. package/core/util/index.d.ts +3 -0
  137. package/core/util/index.d.ts.map +1 -1
  138. package/core/util/kos-config-init.d.ts +37 -0
  139. package/core/util/kos-config-init.d.ts.map +1 -1
  140. package/core/util/kos-data-mapper-utils.d.ts +9 -0
  141. package/core/util/kos-data-mapper-utils.d.ts.map +1 -1
  142. package/core/util/kos-fetch.d.ts +12 -0
  143. package/core/util/kos-fetch.d.ts.map +1 -1
  144. package/core/util/kos-message-utils.d.ts +88 -0
  145. package/core/util/kos-message-utils.d.ts.map +1 -1
  146. package/core/util/kos-model-utils.d.ts +46 -0
  147. package/core/util/kos-model-utils.d.ts.map +1 -1
  148. package/core/util/kos-model-visitor.d.ts +2 -0
  149. package/core/util/kos-model-visitor.d.ts.map +1 -1
  150. package/core/util/kos-service-request.d.ts +43 -3
  151. package/core/util/kos-service-request.d.ts.map +1 -1
  152. package/core/util/log-utils.d.ts +12 -0
  153. package/core/util/log-utils.d.ts.map +1 -1
  154. package/core/util/middleware.d.ts +15 -0
  155. package/core/util/middleware.d.ts.map +1 -1
  156. package/core/util/model-attribute-utils.d.ts +7 -0
  157. package/core/util/model-attribute-utils.d.ts.map +1 -1
  158. package/core/util/model-error-utils.d.ts +61 -0
  159. package/core/util/model-error-utils.d.ts.map +1 -0
  160. package/core/util/model-factory.d.ts +4 -0
  161. package/core/util/model-factory.d.ts.map +1 -1
  162. package/core/util/model-registration-utils.d.ts +8 -0
  163. package/core/util/model-registration-utils.d.ts.map +1 -1
  164. package/core/util/model-transition-utils.d.ts +41 -0
  165. package/core/util/model-transition-utils.d.ts.map +1 -0
  166. package/core/util/model-type-guards.d.ts +26 -0
  167. package/core/util/model-type-guards.d.ts.map +1 -0
  168. package/core/util/model-utils.d.ts +40 -29
  169. package/core/util/model-utils.d.ts.map +1 -1
  170. package/core/util/observable-proxy-map.d.ts +11 -0
  171. package/core/util/observable-proxy-map.d.ts.map +1 -1
  172. package/core/util/paired-client-heartbeat.d.ts +2 -0
  173. package/core/util/paired-client-heartbeat.d.ts.map +1 -1
  174. package/core/util/pipe.d.ts +4 -0
  175. package/core/util/pipe.d.ts.map +1 -1
  176. package/core/util/promise-utils.d.ts +58 -0
  177. package/core/util/promise-utils.d.ts.map +1 -0
  178. package/core/util/retry-with-exponential-backoff.d.ts +3 -0
  179. package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
  180. package/core/util/service-factory.d.ts +10 -0
  181. package/core/util/service-factory.d.ts.map +1 -1
  182. package/core/util/service-request-error.d.ts +60 -0
  183. package/core/util/service-request-error.d.ts.map +1 -0
  184. package/core/util/service-response.d.ts +125 -0
  185. package/core/util/service-response.d.ts.map +1 -0
  186. package/core/util/session-utils.d.ts +8 -0
  187. package/core/util/session-utils.d.ts.map +1 -1
  188. package/core/util/wait-for-request.d.ts +16 -0
  189. package/core/util/wait-for-request.d.ts.map +1 -1
  190. package/core/util/when-ready.d.ts +3 -0
  191. package/core/util/when-ready.d.ts.map +1 -1
  192. package/index.cjs +26904 -118
  193. package/index.cjs.map +1 -1
  194. package/index.d.cts +6 -3
  195. package/index.d.ts +6 -3
  196. package/index.d.ts.map +1 -1
  197. package/index.js +25298 -13441
  198. package/index.js.map +1 -1
  199. package/kos-models.json +426 -0
  200. package/models/constants/index.d.ts +3 -1
  201. package/models/constants/index.d.ts.map +1 -1
  202. package/models/decorators/future-service.d.ts +27 -2
  203. package/models/decorators/future-service.d.ts.map +1 -1
  204. package/models/models/browser-router/browser-router-model.d.ts +80 -1
  205. package/models/models/browser-router/browser-router-model.d.ts.map +1 -1
  206. package/models/models/browser-router/types/index.d.ts +26 -1
  207. package/models/models/canvas-dispatcher/types/index.d.ts +5 -0
  208. package/models/models/canvas-renderer/types/index.d.ts +5 -0
  209. package/models/models/config-bean/config-bean-model-builder.d.ts +4 -2
  210. package/models/models/config-bean/config-bean-model-builder.d.ts.map +1 -1
  211. package/models/models/config-bean/config-bean-model.d.ts +117 -13
  212. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  213. package/models/models/config-bean/config-bean-types.d.ts +6 -3
  214. package/models/models/config-bean/config-bean-types.d.ts.map +1 -1
  215. package/models/models/config-bean/types/index.d.ts +34 -0
  216. package/models/models/config-bean-prop/config-bean-prop-model.d.ts +112 -1
  217. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  218. package/models/models/config-bean-prop/types/index.d.ts +301 -19
  219. package/models/models/device/device-model.d.ts +219 -9
  220. package/models/models/device/device-model.d.ts.map +1 -1
  221. package/models/models/device/device-registration.d.ts +61 -48
  222. package/models/models/device/device-registration.d.ts.map +1 -1
  223. package/models/models/device/types/index.d.ts +42 -0
  224. package/models/models/future/future-aware.d.ts +82 -0
  225. package/models/models/future/future-aware.d.ts.map +1 -1
  226. package/models/models/future/future-model.d.ts +34 -5
  227. package/models/models/future/future-model.d.ts.map +1 -1
  228. package/models/models/future/future-types.d.ts +202 -9
  229. package/models/models/future/future-types.d.ts.map +1 -1
  230. package/models/models/future-container/future-container-model.d.ts +2 -2
  231. package/models/models/gpio-chip/gpio-chip-container-model.d.ts +25 -0
  232. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -0
  233. package/models/models/gpio-chip/gpio-chip-model.d.ts +30 -0
  234. package/models/models/gpio-chip/gpio-chip-model.d.ts.map +1 -0
  235. package/models/models/gpio-chip/index.d.ts +7 -0
  236. package/models/models/gpio-chip/index.d.ts.map +1 -0
  237. package/models/models/gpio-chip/services/gpio-chip-services.d.ts +86 -0
  238. package/models/models/gpio-chip/services/gpio-chip-services.d.ts.map +1 -0
  239. package/models/models/gpio-chip/services/index.d.ts +2 -0
  240. package/models/models/gpio-chip/services/index.d.ts.map +1 -0
  241. package/models/models/gpio-chip/types/index.d.ts +24 -0
  242. package/models/models/gpio-pin/gpio-pin-container-model.d.ts +23 -0
  243. package/models/models/gpio-pin/gpio-pin-container-model.d.ts.map +1 -0
  244. package/models/models/gpio-pin/gpio-pin-model.d.ts +26 -0
  245. package/models/models/gpio-pin/gpio-pin-model.d.ts.map +1 -0
  246. package/models/models/gpio-pin/index.d.ts +6 -0
  247. package/models/models/gpio-pin/index.d.ts.map +1 -0
  248. package/models/models/gpio-pin/types/index.d.ts +23 -0
  249. package/models/models/index.d.ts +1 -0
  250. package/models/models/index.d.ts.map +1 -1
  251. package/models/models/key-value/index.d.ts +4 -0
  252. package/models/models/key-value/index.d.ts.map +1 -1
  253. package/models/models/key-value/key-value-model.d.ts +111 -0
  254. package/models/models/key-value/key-value-model.d.ts.map +1 -1
  255. package/models/models/key-value/services/key-value-services.d.ts +124 -2
  256. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  257. package/models/models/key-value/types/index.d.ts +57 -0
  258. package/models/models/kos-expression-evaluator/index.d.ts +4 -0
  259. package/models/models/kos-expression-evaluator/index.d.ts.map +1 -0
  260. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +209 -0
  261. package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -0
  262. package/models/models/kos-expression-evaluator/services/index.d.ts +6 -0
  263. package/models/models/kos-expression-evaluator/services/index.d.ts.map +1 -0
  264. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts +15 -0
  265. package/models/models/kos-expression-evaluator/services/kos-expression-evaluator-services.d.ts.map +1 -0
  266. package/models/models/kos-expression-evaluator/types/index.d.ts +6 -0
  267. package/models/models/kos-log-manager/kos-log-manager-model.d.ts +61 -14
  268. package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
  269. package/models/models/kos-log-manager/types/index.d.ts +191 -0
  270. package/models/models/kos-time/kos-time-model.d.ts +64 -0
  271. package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
  272. package/models/models/kos-time/types/index.d.ts +83 -0
  273. package/models/models/log-block/log-block-container-model.d.ts +132 -0
  274. package/models/models/log-block/log-block-container-model.d.ts.map +1 -1
  275. package/models/models/log-block/log-block-model.d.ts +185 -0
  276. package/models/models/log-block/log-block-model.d.ts.map +1 -1
  277. package/models/models/log-block/types/index.d.ts +133 -0
  278. package/models/models/log-stream/index.d.ts +6 -2
  279. package/models/models/log-stream/index.d.ts.map +1 -1
  280. package/models/models/log-stream/log-stream-container-model.d.ts +62 -0
  281. package/models/models/log-stream/log-stream-container-model.d.ts.map +1 -1
  282. package/models/models/log-stream/log-stream-model.d.ts +55 -0
  283. package/models/models/log-stream/log-stream-model.d.ts.map +1 -1
  284. package/models/models/log-stream/services/log-stream-services.d.ts +2 -1
  285. package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
  286. package/models/models/log-stream/types/index.d.ts +79 -0
  287. package/models/models/network-interface/index.d.ts +6 -2
  288. package/models/models/network-interface/index.d.ts.map +1 -1
  289. package/models/models/network-interface/network-interface-container-model.d.ts +62 -0
  290. package/models/models/network-interface/network-interface-container-model.d.ts.map +1 -1
  291. package/models/models/network-interface/network-interface-container-registration.d.ts +2 -1
  292. package/models/models/network-interface/network-interface-container-registration.d.ts.map +1 -1
  293. package/models/models/network-interface/network-interface-model.d.ts +77 -0
  294. package/models/models/network-interface/network-interface-model.d.ts.map +1 -1
  295. package/models/models/network-interface/network-interface-registration.d.ts +2 -1
  296. package/models/models/network-interface/network-interface-registration.d.ts.map +1 -1
  297. package/models/models/network-interface/services/network-interface-services.d.ts +54 -0
  298. package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
  299. package/models/models/network-interface/types/index.d.ts +22 -0
  300. package/models/models/ota/ota-model.d.ts +82 -3
  301. package/models/models/ota/ota-model.d.ts.map +1 -1
  302. package/models/models/ota/types/index.d.ts +177 -0
  303. package/models/models/region-info/region-info-model.d.ts +8 -3
  304. package/models/models/region-info/region-info-model.d.ts.map +1 -1
  305. package/models/models/region-info/services/region-info-services.d.ts +2 -2
  306. package/models/models/region-info/services/region-info-services.d.ts.map +1 -1
  307. package/models/models/region-info/types/index.d.ts +191 -13
  308. package/models/models/region-info/types/index.d.ts.map +1 -1
  309. package/models/models/region-info/utils/unit-system-utils.d.ts.map +1 -1
  310. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  311. package/models/models/software-info/software-info-model.d.ts +74 -2
  312. package/models/models/software-info/software-info-model.d.ts.map +1 -1
  313. package/models/models/software-info/types/index.d.ts +52 -17
  314. package/models/models/state-bean/state-bean-model.d.ts +86 -9
  315. package/models/models/state-bean/state-bean-model.d.ts.map +1 -1
  316. package/models/models/state-bean/types/index.d.ts +117 -6
  317. package/models/models/state-prop/state-prop-model.d.ts +78 -1
  318. package/models/models/state-prop/state-prop-model.d.ts.map +1 -1
  319. package/models/models/state-prop/types/index.d.ts +57 -7
  320. package/models/models/storage-device/services/storage-device-services.d.ts +1 -0
  321. package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
  322. package/models/models/storage-device/storage-device-container-model.d.ts +289 -2
  323. package/models/models/storage-device/storage-device-container-model.d.ts.map +1 -1
  324. package/models/models/storage-device/storage-device-model.d.ts +84 -2
  325. package/models/models/storage-device/storage-device-model.d.ts.map +1 -1
  326. package/models/models/storage-device/types/index.d.ts +114 -0
  327. package/models/models/studio-properties/studio-properties-model.d.ts +75 -0
  328. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  329. package/models/models/studio-properties/types/index.d.ts +29 -0
  330. package/models/models/translation/services/translation-services.d.ts +128 -2
  331. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  332. package/models/models/translation/translation-container-model.d.ts +100 -10
  333. package/models/models/translation/translation-container-model.d.ts.map +1 -1
  334. package/models/models/translation/translation-container-registration.d.ts +2 -1
  335. package/models/models/translation/translation-container-registration.d.ts.map +1 -1
  336. package/models/models/translation/translation-context.d.ts +1 -16
  337. package/models/models/translation/translation-context.d.ts.map +1 -1
  338. package/models/models/translation/translation-model.d.ts +113 -1
  339. package/models/models/translation/translation-model.d.ts.map +1 -1
  340. package/models/models/translation/types/index.d.ts +343 -0
  341. package/models/models/trouble/index.d.ts +2 -1
  342. package/models/models/trouble/index.d.ts.map +1 -1
  343. package/models/models/trouble/services/trouble-services.d.ts +6 -4
  344. package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
  345. package/models/models/trouble/trouble-model.d.ts +4 -1
  346. package/models/models/trouble/trouble-model.d.ts.map +1 -1
  347. package/models/models/trouble/types/index.d.ts +34 -93
  348. package/models/models/trouble/utils/is-trouble-aware.d.ts +2 -2
  349. package/models/models/trouble/utils/is-trouble-aware.d.ts.map +1 -1
  350. package/models/models/trouble-container/index.d.ts +4 -3
  351. package/models/models/trouble-container/index.d.ts.map +1 -1
  352. package/models/models/trouble-container/trouble-container-model.d.ts +10 -5
  353. package/models/models/trouble-container/trouble-container-model.d.ts.map +1 -1
  354. package/models/models/trouble-container/types/index.d.ts +6 -14
  355. package/models/models/usb-update/types/index.d.ts +10 -0
  356. package/models/services/config-bean/index.d.ts +2 -2
  357. package/models/services/config-bean/index.d.ts.map +1 -1
  358. package/models/utils/client.d.ts +16 -12
  359. package/models/utils/client.d.ts.map +1 -1
  360. package/models/utils/core-registration-manager.d.ts +1 -1
  361. package/models/utils/core-registration-manager.d.ts.map +1 -1
  362. package/models/utils/extension-manager.d.ts +54 -13
  363. package/models/utils/extension-manager.d.ts.map +1 -1
  364. package/models/utils/get-kos-connection-id.d.ts +2 -0
  365. package/models/utils/get-kos-connection-id.d.ts.map +1 -0
  366. package/models/utils/index.d.ts +3 -2
  367. package/models/utils/index.d.ts.map +1 -1
  368. package/models/utils/openapi-index.d.ts +3 -0
  369. package/models/utils/openapi-index.d.ts.map +1 -0
  370. package/models/utils/service-accessor.d.ts +86 -0
  371. package/models/utils/service-accessor.d.ts.map +1 -0
  372. package/models/utils/service.d.ts +91 -13
  373. package/models/utils/service.d.ts.map +1 -1
  374. package/models/utils/services/kos/1.6.5/openapi.d.ts +3809 -0
  375. package/models/utils/services/kos/1.6.5/service.d.ts +124 -0
  376. package/models/utils/services/kos/1.6.5/service.d.ts.map +1 -0
  377. package/models/utils/services/kos/1.8.1/openapi.d.ts +4344 -0
  378. package/models/utils/services/kos/1.8.1/service.d.ts +124 -0
  379. package/models/utils/services/kos/1.8.1/service.d.ts.map +1 -0
  380. package/models/utils/services/kos/1.9.x/openapi.d.ts +4597 -0
  381. package/models/utils/services/kos/1.9.x/service.d.ts +124 -0
  382. package/models/utils/services/kos/1.9.x/service.d.ts.map +1 -0
  383. package/models/utils/services/kos/daily/openapi.d.ts +4349 -0
  384. package/models/utils/services/kos/daily/service.d.ts +124 -0
  385. package/models/utils/services/kos/daily/service.d.ts.map +1 -0
  386. package/models/utils/services/vfs/1.6.5/openapi.d.ts +51 -0
  387. package/models/utils/services/vfs/1.6.5/service.d.ts +124 -0
  388. package/models/utils/services/vfs/1.6.5/service.d.ts.map +1 -0
  389. package/models/utils/services/vfs/1.8.1/openapi.d.ts +51 -0
  390. package/models/utils/services/vfs/1.8.1/service.d.ts +124 -0
  391. package/models/utils/services/vfs/1.8.1/service.d.ts.map +1 -0
  392. package/models/utils/services/vfs/1.9.x/openapi.d.ts +51 -0
  393. package/models/utils/services/vfs/1.9.x/service.d.ts +124 -0
  394. package/models/utils/services/vfs/1.9.x/service.d.ts.map +1 -0
  395. package/models/utils/services/vfs/daily/openapi.d.ts +51 -0
  396. package/models/utils/services/vfs/daily/service.d.ts +124 -0
  397. package/models/utils/services/vfs/daily/service.d.ts.map +1 -0
  398. package/models/utils/services-index.d.ts +9 -0
  399. package/models/utils/services-index.d.ts.map +1 -0
  400. package/package.json +16 -2
  401. package/ui/contexts/state-bean/state-bean-provider.d.ts.map +1 -1
  402. package/ui/hooks/device/use-device.d.ts +6 -0
  403. package/ui/hooks/device/use-device.d.ts.map +1 -1
  404. package/ui/hooks/index.d.ts +1 -0
  405. package/ui/hooks/index.d.ts.map +1 -1
  406. package/ui/hooks/kos-time/use-kos-time.d.ts +6 -0
  407. package/ui/hooks/kos-time/use-kos-time.d.ts.map +1 -1
  408. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts +6 -0
  409. package/ui/hooks/network-interface-container/use-network-interface-container.d.ts.map +1 -1
  410. package/ui/hooks/ota/use-ota.d.ts +6 -0
  411. package/ui/hooks/ota/use-ota.d.ts.map +1 -1
  412. package/ui/hooks/software-info/use-software-info.d.ts +6 -0
  413. package/ui/hooks/software-info/use-software-info.d.ts.map +1 -1
  414. package/ui/hooks/state-bean/use-state-bean.d.ts +2 -2
  415. package/ui/hooks/state-bean/use-state-bean.d.ts.map +1 -1
  416. package/ui/hooks/state-bean/with-state-bean.d.ts.map +1 -1
  417. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts +6 -0
  418. package/ui/hooks/storage-device-container/use-storage-device-container.d.ts.map +1 -1
  419. package/ui/hooks/translation-container/trans.d.ts +6 -0
  420. package/ui/hooks/translation-container/trans.d.ts.map +1 -1
  421. package/ui/hooks/translation-container/use-translation-container.d.ts +10 -33
  422. package/ui/hooks/translation-container/use-translation-container.d.ts.map +1 -1
  423. package/ui/hooks/translation-container/use-translation.d.ts +7 -0
  424. package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
  425. package/ui/hooks/translation-container/with-translation-container.d.ts +6 -0
  426. package/ui/hooks/translation-container/with-translation-container.d.ts.map +1 -1
  427. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts +6 -0
  428. package/ui/hooks/usb-update-container/use-usb-update-container.d.ts.map +1 -1
  429. package/ui/hooks/use-config-bean.d.ts +6 -0
  430. package/ui/hooks/use-config-bean.d.ts.map +1 -1
  431. package/ui/hooks/use-config-property.d.ts +6 -0
  432. package/ui/hooks/use-config-property.d.ts.map +1 -1
  433. package/ui/hooks/use-kos-model.d.ts +7 -0
  434. package/ui/hooks/use-kos-model.d.ts.map +1 -1
  435. package/ui/hooks/use-kos-regions.d.ts.map +1 -1
  436. package/ui/hooks/view-model/index.d.ts +2 -0
  437. package/ui/hooks/view-model/index.d.ts.map +1 -0
  438. package/ui/hooks/view-model/use-view-model.d.ts +80 -0
  439. package/ui/hooks/view-model/use-view-model.d.ts.map +1 -0
  440. package/models/models/trouble-container/trouble-container-registration.d.ts +0 -5
  441. package/models/models/trouble-container/trouble-container-registration.d.ts.map +0 -1
  442. package/models/utils/kosmodel-compatible-future-mixin.d.ts +0 -142
  443. package/models/utils/kosmodel-compatible-future-mixin.d.ts.map +0 -1
  444. package/models/utils/kosmodel-interface-companion-mixin.d.ts +0 -83
  445. package/models/utils/kosmodel-interface-companion-mixin.d.ts.map +0 -1
@@ -4,23 +4,276 @@ import { IKosModelContainer } from '../core/kos-container-model';
4
4
  interface Identifiable {
5
5
  id: string;
6
6
  }
7
- export type IdMapper = <D extends Identifiable = Identifiable>(entity: D) => D;
7
+ /**
8
+ * Function that transforms an entity's ID before container synchronization.
9
+ *
10
+ * The IdMapper pattern enables two critical capabilities:
11
+ *
12
+ * 1. **Compound Model IDs**: Transform simple backend IDs into compound IDs that include
13
+ * parent context (e.g., `"123"` → `"release-version-abc-123"`). This ensures unique
14
+ * model IDs even when backend IDs are only unique within their parent scope.
15
+ *
16
+ * 2. **Backend ID Preservation**: Add a `rawId` property to preserve the original backend ID
17
+ * for server communication while using compound IDs for model identity.
18
+ *
19
+ * @template D - Input entity type (data from backend)
20
+ * @template M - Mapped entity type (data after transformation, defaults to D if no transformation)
21
+ *
22
+ * @example Simple ID prefix transformation
23
+ * ```typescript
24
+ * const idMapper: IdMapper<User, User & { rawId: string }> = (user) => ({
25
+ * ...user,
26
+ * rawId: user.id,
27
+ * id: `user-${user.id}`
28
+ * });
29
+ * ```
30
+ *
31
+ * @example Compound ID with parent context
32
+ * ```typescript
33
+ * type WithRawId<T> = T & { rawId: string };
34
+ *
35
+ * const idMapper: IdMapper<VersionResponse, WithRawId<VersionResponse>> = (version) => ({
36
+ * ...version,
37
+ * rawId: version.id,
38
+ * id: `release-version-${templateId}-${version.id}`
39
+ * });
40
+ * ```
41
+ *
42
+ * @example Multi-level compound ID
43
+ * ```typescript
44
+ * const idMapper: IdMapper<CandidateResponse, WithRawId<CandidateResponse>> = (candidate) => ({
45
+ * ...candidate,
46
+ * rawId: candidate.id,
47
+ * id: `release-candidate-${templateId}-${versionId}-${candidate.id}`
48
+ * });
49
+ * ```
50
+ *
51
+ * @kosService core.container-utils
52
+ */
53
+ export type IdMapper<D extends Identifiable = Identifiable, M extends Identifiable = D> = (entity: D) => M;
8
54
  type Container = IKosContainerModel<any, any> | IKosModelContainer<any>;
9
- interface ResolveParams<T extends Container, D> {
55
+ /**
56
+ * Parameters for resolving container deltas.
57
+ * @template T - The container type
58
+ * @template D - The input entity type with an id property
59
+ * @template M - The mapped entity type (after idMapper transformation)
60
+ */
61
+ interface ResolveParams<T extends Container, D extends Identifiable, M extends Identifiable = D> {
62
+ /** The container to synchronize */
10
63
  container: T;
11
- onAddItem: (entity: D) => any;
12
- onRemoveItem: (id: string) => any;
13
- idMapper?: IdMapper;
64
+ /** Callback to create a new item when an entity is added */
65
+ onAddItem: (entity: M) => any;
66
+ /** Optional callback when an item is removed, receives the id to remove */
67
+ onRemoveItem?: (id: string) => any;
68
+ /** Optional callback when an existing item needs updating */
69
+ onUpdateItem?: (entity: M, existingModel: any) => any;
70
+ /** Optional mapper to transform entity ids before processing */
71
+ idMapper?: IdMapper<D, M>;
14
72
  }
15
- export declare const resolveContainerDeltas: <T extends IKosModelContainer<any>, D extends Identifiable>({ container, onAddItem, onRemoveItem, idMapper, }: ResolveParams<T, D>) => (entities: D[]) => void;
16
- export declare const resolveListDeltas: <T extends IKosContainerModel<any, any>, D extends Identifiable>({ container, onAddItem, onRemoveItem, idMapper, }: ResolveParams<T, D>) => (entities: D[]) => void;
17
- interface ResolveItemsParams<T extends Identifiable, D> {
73
+ /**
74
+ * Creates a function that synchronizes a container with a new list of entities.
75
+ *
76
+ * This is the primary utility for delta-based container synchronization. It compares incoming
77
+ * data against the current container state and performs minimal operations (add/update/remove)
78
+ * to achieve synchronization.
79
+ *
80
+ * Key features:
81
+ * - **Delta resolution**: Only processes actual changes (add/update/remove)
82
+ * - **ID transformation**: Optional `idMapper` transforms backend IDs to model IDs
83
+ * - **Update-in-place**: `onUpdateItem` can update existing models without recreating
84
+ * - **Type safety**: Generic type parameters ensure type consistency through transformation
85
+ *
86
+ * Workflow:
87
+ * 1. Apply `idMapper` to transform entity IDs (if provided)
88
+ * 2. Calculate deltas: which IDs are missing from new data (removals)
89
+ * 3. Invoke `onRemoveItem` for each ID to remove
90
+ * 4. For each entity in new data:
91
+ * - If model exists: invoke `onUpdateItem` (if provided) or `onAddItem`
92
+ * - If model doesn't exist: invoke `onAddItem`
93
+ * 5. Add all new models to container in batch
94
+ *
95
+ * @template T - Container type implementing IKosModelContainer
96
+ * @template D - Input entity type (data from backend)
97
+ * @template M - Mapped entity type (after idMapper transformation, defaults to D)
98
+ *
99
+ * @param params - Configuration for resolving deltas
100
+ * @param params.container - The container to synchronize
101
+ * @param params.onAddItem - Callback to create a new model from entity data
102
+ * @param params.onUpdateItem - Optional callback to update existing model (return null to skip adding)
103
+ * @param params.onRemoveItem - Optional callback invoked with each ID to remove (default: identity function)
104
+ * @param params.idMapper - Optional function to transform entity IDs before processing
105
+ *
106
+ * @returns A function that accepts entities and synchronizes the container
107
+ *
108
+ * @kosService core.container-utils
109
+ *
110
+ * @example Basic synchronization without ID transformation
111
+ * ```typescript
112
+ * const syncUsers = resolveContainerDeltas({
113
+ * container: userContainer,
114
+ * onAddItem: (user) => User.instance(user.id).options(user).build(),
115
+ * onUpdateItem: (user, existing) => {
116
+ * existing.updateModel(user);
117
+ * return null; // Don't add, just updated in place
118
+ * },
119
+ * onRemoveItem: (id) => id
120
+ * });
121
+ * syncUsers(newUserList);
122
+ * ```
123
+ *
124
+ * @example ID transformation with compound IDs and rawId preservation
125
+ * ```typescript
126
+ * type WithRawId<T> = T & { rawId: string };
127
+ *
128
+ * const syncVersions = resolveContainerDeltas<
129
+ * typeof template.versions,
130
+ * VersionResponse,
131
+ * WithRawId<VersionResponse>
132
+ * >({
133
+ * container: template.versions,
134
+ * idMapper: (versionData) => ({
135
+ * ...versionData,
136
+ * rawId: versionData.id, // Preserve backend ID
137
+ * id: ReleaseIdFactory.version(templateId, versionData.id) // Compound model ID
138
+ * }),
139
+ * onAddItem: (data) => {
140
+ * const model = ReleaseVersion.instance(data.id)
141
+ * .options({
142
+ * rawId: data.rawId, // Store backend ID for server communication
143
+ * version: data.version,
144
+ * // ... other options
145
+ * })
146
+ * .build();
147
+ * // Recursively sync nested containers
148
+ * syncCandidates(model, data.candidates || []);
149
+ * return model;
150
+ * },
151
+ * onUpdateItem: (data, existingVersion) => {
152
+ * existingVersion.updateModel({
153
+ * rawId: data.rawId || existingVersion.rawId,
154
+ * version: data.version,
155
+ * // ... other updates
156
+ * });
157
+ * // Recursively sync nested containers
158
+ * syncCandidates(existingVersion, data.candidates || []);
159
+ * return null; // Don't add, just updated in place
160
+ * },
161
+ * onRemoveItem: (id) => id
162
+ * })(versionsData);
163
+ * ```
164
+ *
165
+ * @example Nested container synchronization
166
+ * ```typescript
167
+ * // Parent level
168
+ * syncTemplates(containerModel, templatesData);
169
+ *
170
+ * // Within onAddItem and onUpdateItem, sync children
171
+ * function syncTemplates(container, templates) {
172
+ * resolveContainerDeltas({
173
+ * container: container.container,
174
+ * idMapper: (template) => ({
175
+ * ...template,
176
+ * rawId: template.id,
177
+ * id: ReleaseIdFactory.template(template.id)
178
+ * }),
179
+ * onAddItem: (template) => {
180
+ * const model = createTemplateModel(template);
181
+ * syncQueues(model, template.queues); // Nested sync
182
+ * syncVersions(model, template.versions); // Nested sync
183
+ * return model;
184
+ * },
185
+ * onUpdateItem: (template, existing) => {
186
+ * existing.updateModel(template);
187
+ * syncQueues(existing, template.queues); // Nested sync
188
+ * syncVersions(existing, template.versions); // Nested sync
189
+ * return null;
190
+ * }
191
+ * })(templates);
192
+ * }
193
+ * ```
194
+ * @kosApiLevel 2
195
+ */
196
+ export declare const resolveContainerDeltas: <T extends IKosModelContainer<any>, D extends Identifiable, M extends Identifiable = D>({ container, onAddItem, onUpdateItem, onRemoveItem, idMapper, }: ResolveParams<T, D, M>) => (entities: D[]) => void;
197
+ /**
198
+ * Creates a function that synchronizes a container model's list with new entities.
199
+ * Simpler alternative to resolveContainerDeltas that directly invokes callbacks for each addition and removal.
200
+ *
201
+ * @template T - Container model type implementing IKosContainerModel
202
+ * @template D - Input entity type with an id property
203
+ * @template M - Mapped entity type (after idMapper transformation)
204
+ * @param params - Configuration for resolving deltas
205
+ * @returns A function that accepts entities and synchronizes by invoking callbacks
206
+ *
207
+ * @kosService core.container-utils
208
+ *
209
+ * @example
210
+ * const syncLayers = resolveListDeltas({
211
+ * container: layerContainer,
212
+ * onAddItem: (layer) => addLayer(layer),
213
+ * onRemoveItem: (id) => removeLayer(id)
214
+ * });
215
+ * syncLayers(newLayerList);
216
+ * @kosApiLevel 2
217
+ */
218
+ export declare const resolveListDeltas: <T extends IKosContainerModel<any, any>, D extends Identifiable, M extends Identifiable = D>({ container, onAddItem, onRemoveItem, idMapper, }: ResolveParams<T, D, M>) => (entities: D[]) => void;
219
+ /**
220
+ * Parameters for resolving deltas on plain item arrays (not container models).
221
+ * @template T - Current item type with an id property
222
+ * @template D - Input entity type with an id property
223
+ * @template M - Mapped entity type (after idMapper transformation)
224
+ */
225
+ interface ResolveItemsParams<T extends Identifiable, D extends Identifiable, M extends Identifiable = D> {
226
+ /** The current array of items to synchronize */
18
227
  items: T[];
19
- onAddItem: (entity: D) => void;
228
+ /** Callback invoked for each entity to add */
229
+ onAddItem: (entity: M) => void;
230
+ /** Callback invoked for each id to remove */
20
231
  onRemoveItem: (id: string) => void;
21
- idMapper?: IdMapper;
232
+ /** Optional mapper to transform entity ids before processing */
233
+ idMapper?: IdMapper<D, M>;
22
234
  }
23
- export declare const resolveItemListDeltas: <T extends Identifiable, D extends Identifiable>({ items, onAddItem, onRemoveItem, idMapper, }: ResolveItemsParams<T, D>) => (entities: D[]) => void;
235
+ /**
236
+ * Creates a function that synchronizes a plain array of items with new entities.
237
+ * Does not require a container model - works with any array of identifiable items.
238
+ *
239
+ * @template T - Current item type with an id property
240
+ * @template D - Input entity type with an id property
241
+ * @template M - Mapped entity type (after idMapper transformation)
242
+ * @param params - Configuration including the items array and callbacks
243
+ * @returns A function that accepts entities and synchronizes the array
244
+ *
245
+ * @kosService core.container-utils
246
+ *
247
+ * @example
248
+ * const currentItems = [{ id: '1', name: 'Item 1' }];
249
+ * const syncItems = resolveItemListDeltas({
250
+ * items: currentItems,
251
+ * onAddItem: (item) => currentItems.push(item),
252
+ * onRemoveItem: (id) => {
253
+ * const index = currentItems.findIndex(i => i.id === id);
254
+ * if (index >= 0) currentItems.splice(index, 1);
255
+ * }
256
+ * });
257
+ * syncItems(newItems);
258
+ * @kosApiLevel 2
259
+ */
260
+ export declare const resolveItemListDeltas: <T extends Identifiable, D extends Identifiable, M extends Identifiable = D>({ items, onAddItem, onRemoveItem, idMapper, }: ResolveItemsParams<T, D, M>) => (entities: D[]) => void;
261
+ /**
262
+ * Removes a prefix from an id string if present.
263
+ * Useful for normalizing ids that may have parent or namespace prefixes.
264
+ *
265
+ * @param id - The id string to process
266
+ * @param prefix - The prefix to remove (defaults to "parent-")
267
+ * @returns The id with the prefix removed, or the original id if prefix not found
268
+ *
269
+ * @example
270
+ * processId("parent-123") // returns "123"
271
+ * processId("parent-abc", "parent-") // returns "abc"
272
+ * processId("child-456", "parent-") // returns "child-456"
273
+ *
274
+ * @kosService core.container-utils
275
+ * @kosApiLevel 2
276
+ */
24
277
  export declare const processId: (id: string, prefix?: string) => string;
25
278
  export {};
26
279
  //# sourceMappingURL=container-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"container-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/container-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAqBD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;AAE/E,KAAK,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;AACxE,UAAU,aAAa,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC;IACb,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC;IAC9B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,GAAG,CAAC;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,iHAM9B,cAAc,CAAC,EAAE,CAAC,CAAC,gBACX,CAAC,EAAE,SAOb,CAAC;AAEJ,eAAO,MAAM,iBAAiB,sHAMzB,cAAc,CAAC,EAAE,CAAC,CAAC,gBACX,CAAC,EAAE,SAKb,CAAC;AAEJ,UAAU,kBAAkB,CAAC,CAAC,SAAS,YAAY,EAAE,CAAC;IACpD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AACD,eAAO,MAAM,qBAAqB,kGAM7B,mBAAmB,CAAC,EAAE,CAAC,CAAC,gBAChB,CAAC,EAAE,SAKb,CAAC;AAEJ,eAAO,MAAM,SAAS,OAAQ,MAAM,4BAMnC,CAAC"}
1
+ {"version":3,"file":"container-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/container-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,MAAM,QAAQ,CAClB,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,SAAS,YAAY,GAAG,CAAC,IACxB,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;AAErB,KAAK,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;AAExE;;;;;GAKG;AACH,UAAU,aAAa,CACrB,CAAC,SAAS,SAAS,EACnB,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,YAAY,GAAG,CAAC;IAE1B,mCAAmC;IACnC,SAAS,EAAE,CAAC,CAAC;IACb,4DAA4D;IAC5D,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC;IAC9B,2EAA2E;IAC3E,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,GAAG,CAAC;IACnC,6DAA6D;IAC7D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,GAAG,KAAK,GAAG,CAAC;IACtD,gEAAgE;IAChE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3B;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HG;AACH,eAAO,MAAM,sBAAsB,2JAW9B,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gBACd,CAAC,EAAE,SAkBb,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,iBAAiB,kJAUzB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gBACd,CAAC,EAAE,SAKb,CAAC;AAEJ;;;;;GAKG;AACH,UAAU,kBAAkB,CAC1B,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,YAAY,EACtB,CAAC,SAAS,YAAY,GAAG,CAAC;IAE1B,gDAAgD;IAChD,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,8CAA8C;IAC9C,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,6CAA6C;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gEAAgE;IAChE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,qBAAqB,8HAM7B,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,gBACnB,CAAC,EAAE,SAKb,CAAC;AAEJ;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,SAAS,OAAQ,MAAM,4BAMnC,CAAC"}
@@ -1,7 +1,27 @@
1
+ /**
2
+ * @kosService core.utils
3
+ * @kosApiLevel 2
4
+ */
1
5
  export declare function formatDateSince(date: Date): string;
6
+ /**
7
+ * @kosService core.utils
8
+ * @kosApiLevel 3
9
+ */
2
10
  export declare const isLeapYear: (year: number) => boolean;
11
+ /**
12
+ * @kosService core.utils
13
+ * @kosApiLevel 3
14
+ */
3
15
  export declare const getDaysInMonth: (year: number, month: number) => number;
16
+ /**
17
+ * @kosService core.utils
18
+ * @kosApiLevel 3
19
+ */
4
20
  export declare const addMonthsToDate: (date: Date, value: number) => Date;
21
+ /**
22
+ * @kosService core.utils
23
+ * @kosApiLevel 3
24
+ */
5
25
  export declare const addDaysToDate: (date: Date, value: number) => Date;
6
26
  interface FormatDateOptions {
7
27
  dateStyle?: "short" | "medium" | "long" | "full";
@@ -34,6 +54,9 @@ interface FormatDateTimeOptions extends FormatDateOptions, FormatTimeOptions {
34
54
  * @param options.dateStyle - One of `"short"`, `"medium"`, `"long"`, or `"full"`.
35
55
  * @param options.locales - Optional locale string or array of locale strings.
36
56
  * @returns A formatted date string.
57
+ *
58
+ * @kosService core.utils
59
+ * @kosApiLevel 3
37
60
  */
38
61
  export declare const formatDate: (date?: Date | number, { dateStyle, locales }?: FormatDateOptions) => string;
39
62
  /**
@@ -54,6 +77,9 @@ export declare const formatDate: (date?: Date | number, { dateStyle, locales }?:
54
77
  * @param options.timeStyle - One of `"short"`, `"medium"`, `"long"`, or `"full"`.
55
78
  * @param options.locales - Optional locale string or locale array.
56
79
  * @returns A formatted time string.
80
+ *
81
+ * @kosService core.utils
82
+ * @kosApiLevel 3
57
83
  */
58
84
  export declare const formatTime: (date?: Date | number, { locales, timeStyle }?: FormatTimeOptions) => string;
59
85
  /**
@@ -98,6 +124,9 @@ export declare const formatTime: (date?: Date | number, { locales, timeStyle }?:
98
124
  * @param options.timeStyle - Custom time format: `"short"`, `"medium"`, `"long"`, or `"full"`.
99
125
  * @param options.locales - Optional locale string or locale array.
100
126
  * @returns A string representing the formatted date and/or time.
127
+ *
128
+ * @kosService core.utils
129
+ * @kosApiLevel 3
101
130
  */
102
131
  export declare const formatDateTime: (date?: Date | number, { dateStyle, locales, timeStyle, }?: FormatDateTimeOptions) => string;
103
132
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/date-utils.ts"],"names":[],"mappings":"AAcA,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAWzC;AAED,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,OACgB,CAAC;AAE3D,eAAO,MAAM,cAAc,SAAU,MAAM,SAAS,MAAM,KAAG,MAG1D,CAAC;AAEJ,eAAO,MAAM,eAAe,SAAU,IAAI,SAAS,MAAM,SAOxD,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,IAAI,SAAS,MAAM,SAItD,CAAC;AAIF,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,qBAAsB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;AA6D/E;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,eAAO,MAAM,cAAc,UAClB,IAAI,GAAG,MAAM,uCAKjB,qBAAqB,WAWzB,CAAC"}
1
+ {"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/date-utils.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,UAWzC;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,OACgB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,cAAc,SAAU,MAAM,SAAS,MAAM,KAAG,MAG1D,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,eAAe,SAAU,IAAI,SAAS,MAAM,SAOxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,SAAU,IAAI,SAAS,MAAM,SAItD,CAAC;AAIF,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B;AAED,UAAU,qBAAsB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;AA6D/E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,UAAU,UACd,IAAI,GAAG,MAAM,2BAC+B,iBAAiB,WAOrE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,eAAO,MAAM,cAAc,UAClB,IAAI,GAAG,MAAM,uCAKjB,qBAAqB,WAWzB,CAAC"}
@@ -13,6 +13,9 @@
13
13
  * const debouncedFn = debounce(this, myFunction, 500);
14
14
  * debouncedFn(arg1, arg2);
15
15
  * ```
16
+ *
17
+ * @kosService core.utils
18
+ * @kosApiLevel 2
16
19
  */
17
20
  declare function debounce(context: any, func: Function, timeout?: number): (...args: any) => void;
18
21
  export default debounce;
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,SAAM,aAQ1C,GAAG,UAarB;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,SAAM,aAQ1C,GAAG,UAarB;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Zone 3 utility for logging errors with structured context
3
+ */
4
+ export interface ModelInstantiationErrorContext {
5
+ modelType: string;
6
+ options: any;
7
+ registryId: string;
8
+ }
9
+ /**
10
+ * Logs a model instantiation error with structured metadata.
11
+ *
12
+ * @param error - The error that occurred during instantiation
13
+ * @param context - Contextual information about the failed instantiation
14
+ */
15
+ export declare function logModelInstantiationError(error: unknown, context: ModelInstantiationErrorContext): void;
16
+ //# sourceMappingURL=error-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-logger.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/error-logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,8BAA8B,GACtC,IAAI,CASN"}
@@ -1,7 +1,22 @@
1
+ /**
2
+ * @kosService core.utils
3
+ * @kosApiLevel 12
4
+ */
1
5
  export declare const EXTENSION_FEATURE_FLAG_RESOLVER = "featureFlagResolver";
6
+ /**
7
+ * @kosService core.utils
8
+ */
2
9
  export type FlagResolver<T = any> = (input: T) => Promise<string[]>;
3
10
  type FeatureFlags = Record<string, boolean>;
11
+ /**
12
+ * @kosService core.utils
13
+ * @kosApiLevel 12
14
+ */
4
15
  export declare const LOADER_FEATURE_FLAG = "kos.loader.featureFlag";
16
+ /**
17
+ * @kosService core.utils
18
+ * @kosApiLevel 2
19
+ */
5
20
  export declare class FeatureFlagService {
6
21
  private flags;
7
22
  constructor(initialFlags?: FeatureFlags);
@@ -11,6 +26,10 @@ export declare class FeatureFlagService {
11
26
  toggleFeature(flag: string): void;
12
27
  updateFlags(newFlags: FeatureFlags): void;
13
28
  }
29
+ /**
30
+ * @kosService core.utils
31
+ * @kosApiLevel 2
32
+ */
14
33
  export declare const KosFeatureFlags: FeatureFlagService;
15
34
  export {};
16
35
  //# sourceMappingURL=feature-flags.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/feature-flags.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAuCpE,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5C,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAA+B;gBAEhC,YAAY,GAAE,YAAiB;IAK3C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAKvC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKlC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;CAG1C;AAID,eAAO,MAAM,eAAe,oBAAyB,CAAC"}
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/feature-flags.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAuCpE,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAC5D;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAA+B;gBAEhC,YAAY,GAAE,YAAiB;IAK3C,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAKvC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKlC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKjC,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;CAG1C;AAID;;;GAGG;AACH,eAAO,MAAM,eAAe,oBAAyB,CAAC"}
@@ -1,2 +1,6 @@
1
+ /**
2
+ * @kosService core.utils
3
+ * @kosApiLevel 2
4
+ */
1
5
  export declare const getQueryParams: (query?: null) => {};
2
6
  //# sourceMappingURL=get-query-params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-query-params.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/get-query-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,sBAiBjB,CAAC"}
1
+ {"version":3,"file":"get-query-params.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/get-query-params.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,cAAc,sBAiBjB,CAAC"}
@@ -1,5 +1,21 @@
1
+ /**
2
+ * @kosService core.utils
3
+ * @kosApiLevel 2
4
+ */
1
5
  export declare const hslToHex: (h: number, s: number, l: number) => string;
6
+ /**
7
+ * @kosService core.utils
8
+ * @kosApiLevel 2
9
+ */
2
10
  export declare const hslStringToHex: (hsl: string) => string;
11
+ /**
12
+ * @kosService core.utils
13
+ * @kosApiLevel 2
14
+ */
3
15
  export declare const resolveVariable: (element: Element, variable: string) => string;
16
+ /**
17
+ * @kosService core.utils
18
+ * @kosApiLevel 2
19
+ */
4
20
  export declare const variableToHex: (element: Element, variable: string) => string;
5
21
  //# sourceMappingURL=hsl-to-hex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hsl-to-hex.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/hsl-to-hex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAK,MAAM,KAAK,MAAM,WAWvD,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,MAAM,WAOzC,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC;AACvD,eAAO,MAAM,aAAa,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC"}
1
+ {"version":3,"file":"hsl-to-hex.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/hsl-to-hex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAK,MAAM,KAAK,MAAM,WAWvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,WAOzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC;AACvD;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,OAAO,YAAY,MAAM,WACZ,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './ancestor-path-visitor';
1
2
  export * from './api-request-id';
2
3
  export * from './apply-mixins';
3
4
  export * from './array-utils';
@@ -26,6 +27,8 @@ export * from './paired-client-heartbeat';
26
27
  export * from './pipe';
27
28
  export * from './retry-with-exponential-backoff';
28
29
  export * from './service-factory';
30
+ export * from './service-request-error';
31
+ export * from './service-response';
29
32
  export * from './session-utils';
30
33
  export * from './wait-for-request';
31
34
  export * from './when-ready';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC;AACvB,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
@@ -3,13 +3,50 @@ interface KosConfig {
3
3
  profiles: string[];
4
4
  [key: string]: boolean | string[] | string | number | undefined;
5
5
  }
6
+ /**
7
+ * @kosService core.utils
8
+ * @kosApiLevel 20
9
+ */
10
+ export declare const PROFILE_ENABLE_RELEASES = "studio.enable.releases";
11
+ /**
12
+ * @kosService core.utils
13
+ * @kosApiLevel 2
14
+ */
6
15
  export declare const PROFILE_TOOLS_PREVIEW = "studio.tools.preview";
16
+ /**
17
+ * @kosService core.utils
18
+ * @kosApiLevel 2
19
+ */
7
20
  export declare const PROFILE_RELAX_STORE_VALIDATION = "studio.relax.store.validation";
21
+ /**
22
+ * @kosService core.utils
23
+ * @kosApiLevel 2
24
+ */
8
25
  export declare const PROFILE_LOG_DEBUG = "studio.log.debug";
26
+ /**
27
+ * @kosService core.utils
28
+ * @kosApiLevel 2
29
+ */
9
30
  export declare const PROFILE_LOG_INFO = "studio.log.info";
31
+ /**
32
+ * @kosService core.utils
33
+ * @kosApiLevel 2
34
+ */
10
35
  export declare const KosGlobalConfig: KosConfig;
36
+ /**
37
+ * @kosService core.utils
38
+ * @kosApiLevel 2
39
+ */
11
40
  export declare const resolveKosProfiles: () => string[];
41
+ /**
42
+ * @kosService core.utils
43
+ * @kosApiLevel 2
44
+ */
12
45
  export declare const hasKosProfile: (profile: string) => boolean;
46
+ /**
47
+ * @kosService core.utils
48
+ * @kosApiLevel 2
49
+ */
13
50
  export declare const isKosLoggingEnabled: () => boolean;
14
51
  export {};
15
52
  //# sourceMappingURL=kos-config-init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-config-init.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-config-init.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjE;AAED,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AAC9E,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAUlD,eAAO,MAAM,eAAe,EAAE,SAAqB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,gBAAuC,CAAC;AAEvE,eAAO,MAAM,aAAa,YAAa,MAAM,YACL,CAAC;AAEzC,eAAO,MAAM,mBAAmB,eAAyC,CAAC"}
1
+ {"version":3,"file":"kos-config-init.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-config-init.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjE;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAC5D;;;GAGG;AACH,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AAC9E;;;GAGG;AACH,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAUlD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAqB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gBAAuC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,aAAa,YAAa,MAAM,YACL,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAyC,CAAC"}
@@ -1,6 +1,12 @@
1
1
  import { IKosDataModel } from '../core/kosModel';
2
2
 
3
+ /**
4
+ * @kosService core.utils
5
+ */
3
6
  export type KosDataMapper<D extends object = any, T extends IKosDataModel = IKosDataModel> = (data: D, model: T) => Partial<Omit<T, keyof IKosDataModel>>;
7
+ /**
8
+ * @kosService core.utils
9
+ */
4
10
  export type KosDataMapperUtils<D extends object, T extends IKosDataModel> = KosDataMapper<D, T>;
5
11
  /**
6
12
  * Utility function that can be used to map an arbitrary data object to a model.
@@ -9,6 +15,9 @@ export type KosDataMapperUtils<D extends object, T extends IKosDataModel> = KosD
9
15
  * @param model - the target model to map the data to
10
16
  * @param mapper - a mapping function that takes the input data and the target model and returns a partial of the target model. The
11
17
  * results will be applied to the model.
18
+ *
19
+ * @kosService core.utils
20
+ * @kosApiLevel 2
12
21
  */
13
22
  export declare const mapDataToModel: <D extends object, T extends IKosDataModel>(data: D, model: T, mapper?: KosDataMapperUtils<D, T>) => void;
14
23
  //# sourceMappingURL=kos-data-mapper-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-data-mapper-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-data-mapper-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,aAAa,IACrB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAaxB;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,oDACnB,CAAC,SACA,CAAC,WACA,mBAAmB,CAAC,EAAE,CAAC,CAAC,SAMjC,CAAC"}
1
+ {"version":3,"file":"kos-data-mapper-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-data-mapper-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,aAAa,CACvB,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,aAAa,GAAG,aAAa,IACrC,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,aAAa,IACrB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAaxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,oDACnB,CAAC,SACA,CAAC,WACA,mBAAmB,CAAC,EAAE,CAAC,CAAC,SAMjC,CAAC"}
@@ -4,6 +4,9 @@ import { KosFetchOptions, Response } from '../types/utils/kos-fetch';
4
4
  * Represents the response data received from a Kos service.
5
5
  *
6
6
  * @typeparam T - The type of data in the response.
7
+ *
8
+ * @kosService core.fetch
9
+ * @kosApiLevel 2
7
10
  */
8
11
  export interface KosServiceResponse<T> {
9
12
  data: T;
@@ -11,8 +14,17 @@ export interface KosServiceResponse<T> {
11
14
  }
12
15
  /**
13
16
  * Represents the base URL for Kos fetch requests.
17
+ *
18
+ * @kosService core.fetch
19
+ * @kosApiLevel 2
14
20
  */
15
21
  declare let BASE_URL: string;
22
+ /**
23
+ * KOS fetch function — WebSocket-based fetch implementation for KOS transport.
24
+ *
25
+ * @kosService core.fetch
26
+ * @kosApiLevel 2
27
+ */
16
28
  declare let kosFetch: (url: string, options?: KosFetchOptions) => Promise<Response>;
17
29
  export { BASE_URL, kosFetch };
18
30
  //# sourceMappingURL=kos-fetch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAmBrE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAkTD;;GAEG;AACH,QAAA,IAAI,QAAQ,QAAS,CAAC;AACtB,QAAA,IAAI,QAAQ,QAtNL,MAAM,YACD,eAAe,KACxB,QAAQ,QAAQ,CAoNM,CAAC;AAS1B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"kos-fetch.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/core/util/kos-fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAmBrE;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAkTD;;;;;GAKG;AACH,QAAA,IAAI,QAAQ,QAAS,CAAC;AACtB;;;;;GAKG;AACH,QAAA,IAAI,QAAQ,QA/NL,MAAM,YACD,eAAe,KACxB,QAAQ,QAAQ,CA6NM,CAAC;AAS1B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}