@kosdev-code/kos-ddk-models 0.1.0-dev.10

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 (280) hide show
  1. package/constants.d.ts +3 -0
  2. package/constants.d.ts.map +1 -0
  3. package/index.d.ts +28 -0
  4. package/index.d.ts.map +1 -0
  5. package/index.js +3102 -0
  6. package/index.js.map +1 -0
  7. package/index.mjs +3102 -0
  8. package/index.mjs.map +1 -0
  9. package/lib/agitation-control/agitation-control-model.d.ts +53 -0
  10. package/lib/agitation-control/agitation-control-model.d.ts.map +1 -0
  11. package/lib/agitation-control/agitation-control-registration.d.ts +88 -0
  12. package/lib/agitation-control/agitation-control-registration.d.ts.map +1 -0
  13. package/lib/agitation-control/index.d.ts +4 -0
  14. package/lib/agitation-control/index.d.ts.map +1 -0
  15. package/lib/agitation-control/types/index.d.ts +5 -0
  16. package/lib/animation/animation-model.d.ts +17 -0
  17. package/lib/animation/animation-model.d.ts.map +1 -0
  18. package/lib/animation/animation-registration.d.ts +85 -0
  19. package/lib/animation/animation-registration.d.ts.map +1 -0
  20. package/lib/animation/index.d.ts +4 -0
  21. package/lib/animation/index.d.ts.map +1 -0
  22. package/lib/animation/services/animation-services.d.ts +10 -0
  23. package/lib/animation/services/animation-services.d.ts.map +1 -0
  24. package/lib/animation/services/index.d.ts +2 -0
  25. package/lib/animation/services/index.d.ts.map +1 -0
  26. package/lib/animation/types/index.d.ts +12 -0
  27. package/lib/application/application-model.d.ts +36 -0
  28. package/lib/application/application-model.d.ts.map +1 -0
  29. package/lib/application/application-registration.d.ts +85 -0
  30. package/lib/application/application-registration.d.ts.map +1 -0
  31. package/lib/application/index.d.ts +4 -0
  32. package/lib/application/index.d.ts.map +1 -0
  33. package/lib/application/services/application-services.d.ts +32 -0
  34. package/lib/application/services/application-services.d.ts.map +1 -0
  35. package/lib/application/services/index.d.ts +2 -0
  36. package/lib/application/services/index.d.ts.map +1 -0
  37. package/lib/application/types/index.d.ts +29 -0
  38. package/lib/auth/auth-model.d.ts +20 -0
  39. package/lib/auth/auth-model.d.ts.map +1 -0
  40. package/lib/auth/auth-registration.d.ts +83 -0
  41. package/lib/auth/auth-registration.d.ts.map +1 -0
  42. package/lib/auth/index.d.ts +4 -0
  43. package/lib/auth/index.d.ts.map +1 -0
  44. package/lib/auth/services/auth-services.d.ts +9 -0
  45. package/lib/auth/services/auth-services.d.ts.map +1 -0
  46. package/lib/auth/services/index.d.ts +2 -0
  47. package/lib/auth/services/index.d.ts.map +1 -0
  48. package/lib/auth/types/index.d.ts +10 -0
  49. package/lib/carb-water/carb-water-model.d.ts +20 -0
  50. package/lib/carb-water/carb-water-model.d.ts.map +1 -0
  51. package/lib/carb-water/carb-water-registration.d.ts +84 -0
  52. package/lib/carb-water/carb-water-registration.d.ts.map +1 -0
  53. package/lib/carb-water/index.d.ts +4 -0
  54. package/lib/carb-water/index.d.ts.map +1 -0
  55. package/lib/carb-water/services/carb-water-services.d.ts +6 -0
  56. package/lib/carb-water/services/carb-water-services.d.ts.map +1 -0
  57. package/lib/carb-water/services/index.d.ts +2 -0
  58. package/lib/carb-water/services/index.d.ts.map +1 -0
  59. package/lib/carb-water/types/index.d.ts +1 -0
  60. package/lib/copy-logs/copy-logs-model.d.ts +48 -0
  61. package/lib/copy-logs/copy-logs-model.d.ts.map +1 -0
  62. package/lib/copy-logs/index.d.ts +5 -0
  63. package/lib/copy-logs/index.d.ts.map +1 -0
  64. package/lib/copy-logs/services/copy-logs-services.d.ts +21 -0
  65. package/lib/copy-logs/services/copy-logs-services.d.ts.map +1 -0
  66. package/lib/copy-logs/services/index.d.ts +2 -0
  67. package/lib/copy-logs/services/index.d.ts.map +1 -0
  68. package/lib/copy-logs/types/index.d.ts +8 -0
  69. package/lib/dashboard-operations/dashboard-operations-model.d.ts +31 -0
  70. package/lib/dashboard-operations/dashboard-operations-model.d.ts.map +1 -0
  71. package/lib/dashboard-operations/dashboard-operations-registration.d.ts +85 -0
  72. package/lib/dashboard-operations/dashboard-operations-registration.d.ts.map +1 -0
  73. package/lib/dashboard-operations/index.d.ts +4 -0
  74. package/lib/dashboard-operations/index.d.ts.map +1 -0
  75. package/lib/dashboard-operations/services/dashboard-operations-services.d.ts +7 -0
  76. package/lib/dashboard-operations/services/dashboard-operations-services.d.ts.map +1 -0
  77. package/lib/dashboard-operations/services/index.d.ts +2 -0
  78. package/lib/dashboard-operations/services/index.d.ts.map +1 -0
  79. package/lib/dashboard-operations/types/index.d.ts +19 -0
  80. package/lib/dispenser/dispenser-model.d.ts +16 -0
  81. package/lib/dispenser/dispenser-model.d.ts.map +1 -0
  82. package/lib/dispenser/dispenser-registration.d.ts +85 -0
  83. package/lib/dispenser/dispenser-registration.d.ts.map +1 -0
  84. package/lib/dispenser/index.d.ts +4 -0
  85. package/lib/dispenser/index.d.ts.map +1 -0
  86. package/lib/dispenser/services/dispenser-services.d.ts +10 -0
  87. package/lib/dispenser/services/dispenser-services.d.ts.map +1 -0
  88. package/lib/dispenser/services/index.d.ts +2 -0
  89. package/lib/dispenser/services/index.d.ts.map +1 -0
  90. package/lib/dispenser/types/index.d.ts +7 -0
  91. package/lib/dispenser-info/dispenser-info-model.d.ts +16 -0
  92. package/lib/dispenser-info/dispenser-info-model.d.ts.map +1 -0
  93. package/lib/dispenser-info/dispenser-info-registration.d.ts +83 -0
  94. package/lib/dispenser-info/dispenser-info-registration.d.ts.map +1 -0
  95. package/lib/dispenser-info/index.d.ts +4 -0
  96. package/lib/dispenser-info/index.d.ts.map +1 -0
  97. package/lib/dispenser-info/services/dispenser-info-services.d.ts +10 -0
  98. package/lib/dispenser-info/services/dispenser-info-services.d.ts.map +1 -0
  99. package/lib/dispenser-info/services/index.d.ts +2 -0
  100. package/lib/dispenser-info/services/index.d.ts.map +1 -0
  101. package/lib/dispenser-info/types/index.d.ts +8 -0
  102. package/lib/door/door-model.d.ts +24 -0
  103. package/lib/door/door-model.d.ts.map +1 -0
  104. package/lib/door/door-registration.d.ts +86 -0
  105. package/lib/door/door-registration.d.ts.map +1 -0
  106. package/lib/door/index.d.ts +4 -0
  107. package/lib/door/index.d.ts.map +1 -0
  108. package/lib/door/types/index.d.ts +3 -0
  109. package/lib/enrollment/enrollment-model.d.ts +17 -0
  110. package/lib/enrollment/enrollment-model.d.ts.map +1 -0
  111. package/lib/enrollment/enrollment-registration.d.ts +83 -0
  112. package/lib/enrollment/enrollment-registration.d.ts.map +1 -0
  113. package/lib/enrollment/index.d.ts +4 -0
  114. package/lib/enrollment/index.d.ts.map +1 -0
  115. package/lib/enrollment/services/enrollment-services.d.ts +10 -0
  116. package/lib/enrollment/services/enrollment-services.d.ts.map +1 -0
  117. package/lib/enrollment/services/index.d.ts +2 -0
  118. package/lib/enrollment/services/index.d.ts.map +1 -0
  119. package/lib/enrollment/types/index.d.ts +8 -0
  120. package/lib/extension/index.d.ts +2 -0
  121. package/lib/extension/index.d.ts.map +1 -0
  122. package/lib/ingredient-summary/index.d.ts +3 -0
  123. package/lib/ingredient-summary/index.d.ts.map +1 -0
  124. package/lib/ingredient-summary/ingredient-summary-model.d.ts +21 -0
  125. package/lib/ingredient-summary/ingredient-summary-model.d.ts.map +1 -0
  126. package/lib/ingredient-summary/ingredient-summary-registration.d.ts +83 -0
  127. package/lib/ingredient-summary/ingredient-summary-registration.d.ts.map +1 -0
  128. package/lib/ingredient-summary/types/index.d.ts +9 -0
  129. package/lib/lockout/index.d.ts +5 -0
  130. package/lib/lockout/index.d.ts.map +1 -0
  131. package/lib/lockout/lockout-model.d.ts +82 -0
  132. package/lib/lockout/lockout-model.d.ts.map +1 -0
  133. package/lib/lockout/lockout-registration.d.ts +88 -0
  134. package/lib/lockout/lockout-registration.d.ts.map +1 -0
  135. package/lib/lockout/services/index.d.ts +2 -0
  136. package/lib/lockout/services/index.d.ts.map +1 -0
  137. package/lib/lockout/services/lockout-services.d.ts +3 -0
  138. package/lib/lockout/services/lockout-services.d.ts.map +1 -0
  139. package/lib/lockout/types/index.d.ts +1 -0
  140. package/lib/macro-assignment/index.d.ts +3 -0
  141. package/lib/macro-assignment/index.d.ts.map +1 -0
  142. package/lib/macro-assignment/macro-assignment-model.d.ts +81 -0
  143. package/lib/macro-assignment/macro-assignment-model.d.ts.map +1 -0
  144. package/lib/macro-assignment/macro-assignment-registration.d.ts +85 -0
  145. package/lib/macro-assignment/macro-assignment-registration.d.ts.map +1 -0
  146. package/lib/macro-assignment/services/index.d.ts +2 -0
  147. package/lib/macro-assignment/services/index.d.ts.map +1 -0
  148. package/lib/macro-assignment/services/macro-assignment-services.d.ts +2 -0
  149. package/lib/macro-assignment/services/macro-assignment-services.d.ts.map +1 -0
  150. package/lib/macro-assignment/types/index.d.ts +37 -0
  151. package/lib/network-test/index.d.ts +5 -0
  152. package/lib/network-test/index.d.ts.map +1 -0
  153. package/lib/network-test/network-test-container-model.d.ts +26 -0
  154. package/lib/network-test/network-test-container-model.d.ts.map +1 -0
  155. package/lib/network-test/network-test-container-registration.d.ts +85 -0
  156. package/lib/network-test/network-test-container-registration.d.ts.map +1 -0
  157. package/lib/network-test/network-test-model.d.ts +24 -0
  158. package/lib/network-test/network-test-model.d.ts.map +1 -0
  159. package/lib/network-test/network-test-registration.d.ts +83 -0
  160. package/lib/network-test/network-test-registration.d.ts.map +1 -0
  161. package/lib/network-test/services/index.d.ts +2 -0
  162. package/lib/network-test/services/index.d.ts.map +1 -0
  163. package/lib/network-test/services/network-test-services.d.ts +36 -0
  164. package/lib/network-test/services/network-test-services.d.ts.map +1 -0
  165. package/lib/network-test/types/index.d.ts +42 -0
  166. package/lib/nutritive-sweetener/index.d.ts +4 -0
  167. package/lib/nutritive-sweetener/index.d.ts.map +1 -0
  168. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +24 -0
  169. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -0
  170. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts +84 -0
  171. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts.map +1 -0
  172. package/lib/nutritive-sweetener/services/index.d.ts +2 -0
  173. package/lib/nutritive-sweetener/services/index.d.ts.map +1 -0
  174. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts +6 -0
  175. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts.map +1 -0
  176. package/lib/nutritive-sweetener/types/index.d.ts +1 -0
  177. package/lib/plain-water/index.d.ts +4 -0
  178. package/lib/plain-water/index.d.ts.map +1 -0
  179. package/lib/plain-water/plain-water-model.d.ts +21 -0
  180. package/lib/plain-water/plain-water-model.d.ts.map +1 -0
  181. package/lib/plain-water/plain-water-registration.d.ts +84 -0
  182. package/lib/plain-water/plain-water-registration.d.ts.map +1 -0
  183. package/lib/plain-water/services/index.d.ts +2 -0
  184. package/lib/plain-water/services/index.d.ts.map +1 -0
  185. package/lib/plain-water/services/plain-water-services.d.ts +6 -0
  186. package/lib/plain-water/services/plain-water-services.d.ts.map +1 -0
  187. package/lib/plain-water/types/index.d.ts +1 -0
  188. package/lib/reboot/index.d.ts +4 -0
  189. package/lib/reboot/index.d.ts.map +1 -0
  190. package/lib/reboot/reboot-model.d.ts +17 -0
  191. package/lib/reboot/reboot-model.d.ts.map +1 -0
  192. package/lib/reboot/reboot-registration.d.ts +83 -0
  193. package/lib/reboot/reboot-registration.d.ts.map +1 -0
  194. package/lib/reboot/services/index.d.ts +2 -0
  195. package/lib/reboot/services/index.d.ts.map +1 -0
  196. package/lib/reboot/services/reboot-services.d.ts +2 -0
  197. package/lib/reboot/services/reboot-services.d.ts.map +1 -0
  198. package/lib/reboot/types/index.d.ts +6 -0
  199. package/lib/registration.d.ts +3 -0
  200. package/lib/registration.d.ts.map +1 -0
  201. package/lib/settings/index.d.ts +4 -0
  202. package/lib/settings/index.d.ts.map +1 -0
  203. package/lib/settings/services/index.d.ts +2 -0
  204. package/lib/settings/services/index.d.ts.map +1 -0
  205. package/lib/settings/services/settings-services.d.ts +12 -0
  206. package/lib/settings/services/settings-services.d.ts.map +1 -0
  207. package/lib/settings/settings-model.d.ts +28 -0
  208. package/lib/settings/settings-model.d.ts.map +1 -0
  209. package/lib/settings/settings-registration.d.ts +85 -0
  210. package/lib/settings/settings-registration.d.ts.map +1 -0
  211. package/lib/settings/types/index.d.ts +24 -0
  212. package/lib/setup-step/index.d.ts +5 -0
  213. package/lib/setup-step/index.d.ts.map +1 -0
  214. package/lib/setup-step/services/index.d.ts +2 -0
  215. package/lib/setup-step/services/index.d.ts.map +1 -0
  216. package/lib/setup-step/services/setup-step-services.d.ts +13 -0
  217. package/lib/setup-step/services/setup-step-services.d.ts.map +1 -0
  218. package/lib/setup-step/setup-step-container-model.d.ts +32 -0
  219. package/lib/setup-step/setup-step-container-model.d.ts.map +1 -0
  220. package/lib/setup-step/setup-step-container-registration.d.ts +85 -0
  221. package/lib/setup-step/setup-step-container-registration.d.ts.map +1 -0
  222. package/lib/setup-step/setup-step-model.d.ts +24 -0
  223. package/lib/setup-step/setup-step-model.d.ts.map +1 -0
  224. package/lib/setup-step/setup-step-registration.d.ts +83 -0
  225. package/lib/setup-step/setup-step-registration.d.ts.map +1 -0
  226. package/lib/setup-step/types/index.d.ts +38 -0
  227. package/lib/trouble-action/index.d.ts +7 -0
  228. package/lib/trouble-action/index.d.ts.map +1 -0
  229. package/lib/trouble-action/trouble-action-model.d.ts +279 -0
  230. package/lib/trouble-action/trouble-action-model.d.ts.map +1 -0
  231. package/lib/trouble-action/types/index.d.ts +103 -0
  232. package/lib/utilities/index.d.ts +5 -0
  233. package/lib/utilities/index.d.ts.map +1 -0
  234. package/lib/utilities/services/index.d.ts +2 -0
  235. package/lib/utilities/services/index.d.ts.map +1 -0
  236. package/lib/utilities/services/utilities-services.d.ts +13 -0
  237. package/lib/utilities/services/utilities-services.d.ts.map +1 -0
  238. package/lib/utilities/types/index.d.ts +30 -0
  239. package/lib/utilities/utilities-container-model.d.ts +22 -0
  240. package/lib/utilities/utilities-container-model.d.ts.map +1 -0
  241. package/lib/utilities/utilities-container-registration.d.ts +85 -0
  242. package/lib/utilities/utilities-container-registration.d.ts.map +1 -0
  243. package/lib/utilities/utilities-model.d.ts +22 -0
  244. package/lib/utilities/utilities-model.d.ts.map +1 -0
  245. package/lib/utilities/utilities-registration.d.ts +83 -0
  246. package/lib/utilities/utilities-registration.d.ts.map +1 -0
  247. package/lib/utils/assembly-utils.d.ts +16 -0
  248. package/lib/utils/assembly-utils.d.ts.map +1 -0
  249. package/lib/utils/holder-view-extension.d.ts +15 -0
  250. package/lib/utils/holder-view-extension.d.ts.map +1 -0
  251. package/lib/utils/index.d.ts +5 -0
  252. package/lib/utils/index.d.ts.map +1 -0
  253. package/lib/utils/time-utils.d.ts +9 -0
  254. package/lib/utils/time-utils.d.ts.map +1 -0
  255. package/lib/utils/trouble-visibility-filter.d.ts +4 -0
  256. package/lib/utils/trouble-visibility-filter.d.ts.map +1 -0
  257. package/package.json +21 -0
  258. package/start/index.d.ts +5 -0
  259. package/start/index.d.ts.map +1 -0
  260. package/start/services/index.d.ts +2 -0
  261. package/start/services/index.d.ts.map +1 -0
  262. package/start/services/start-services.d.ts +6 -0
  263. package/start/services/start-services.d.ts.map +1 -0
  264. package/start/start-model.d.ts +20 -0
  265. package/start/start-model.d.ts.map +1 -0
  266. package/start/start-registration.d.ts +88 -0
  267. package/start/start-registration.d.ts.map +1 -0
  268. package/start/types/index.d.ts +1 -0
  269. package/types/global.d.ts +19 -0
  270. package/types/global.d.ts.map +1 -0
  271. package/types/index.d.ts +2 -0
  272. package/types/index.d.ts.map +1 -0
  273. package/utils/openapi-index.d.ts +2 -0
  274. package/utils/openapi-index.d.ts.map +1 -0
  275. package/utils/openapi.d.ts +9271 -0
  276. package/utils/services/kosdev.ddk/snapshot/openapi.d.ts +971 -0
  277. package/utils/services/kosdev.ddk/snapshot/service.d.ts +121 -0
  278. package/utils/services/kosdev.ddk/snapshot/service.d.ts.map +1 -0
  279. package/utils/services-index.d.ts +2 -0
  280. package/utils/services-index.d.ts.map +1 -0
@@ -0,0 +1,83 @@
1
+ import { KosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
2
+ import { UtilitiesModel, UtilitiesOptions } from './types';
3
+ /**
4
+ * # Utilities
5
+ *
6
+ * The registration bean includes convenience methods for creating and working with UtilitiesModel instances.
7
+ *
8
+ * ## type
9
+ * The type property is a string that identifies the model type.
10
+ * 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
11
+ * used when declaring dependencies on models.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ *
16
+ * @kosDependency({modelType: Utilities.type, id: "utilitiesId"})
17
+ * private utilitiesModel: UtilitiesModel;
18
+ * ```
19
+ *
20
+ *
21
+ * ## factory
22
+ *
23
+ * The factory method creates a factory function that can be used to create new UtilitiesModel instances.
24
+ *
25
+
26
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
+ *
28
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const model = Utilities.factory("utilitiesId")({
34
+ * // Add option data
35
+ * });
36
+ * ```
37
+
38
+
39
+ *
40
+ * ## predicate
41
+ *
42
+ * [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 UtilitiesModel.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ *
47
+ * const model: IKosDataModel = ...; // some model
48
+ *
49
+ * if (Utilities.predicate(model)) {
50
+ * // if the function evaluates to true, the model is narrowed down to UtilitiesModel
51
+ * // and the compiler will know that the model has the UtilitiesModel interface
52
+ * model.updateAvailability(false);
53
+ * }
54
+ * ```
55
+ *
56
+ * ## registration
57
+ *
58
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
59
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
60
+ *
61
+ *
62
+ * @example
63
+ *
64
+ * In an application registration file you can declare the model registration as follows:
65
+ *
66
+ * **registration.ts**
67
+ * ```typescript
68
+ * import { Utilities } from "@kos-ui/kos-dispenser-model";
69
+ * ...
70
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
71
+ * export const kosModels: IKosRegistry["models"] = {
72
+ * ...Utilities.registration,
73
+ * };
74
+ * ```
75
+ *
76
+ * ## registration.singleton
77
+
78
+ * The utilities model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
79
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
80
+
81
+ * */
82
+ export declare const Utilities: Readonly<KosModelRegistrationBean<UtilitiesModel, UtilitiesOptions>>;
83
+ //# sourceMappingURL=utilities-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities-registration.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utilities/utilities-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAW3D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { AssemblyModel } from '@kosdev-code/kos-dispense-sdk';
2
+ import { FreestyleModelAssemblyExt } from '@kosdev-code/kos-freestyle-sdk';
3
+ export declare const isMicroGroup: (group: string) => boolean;
4
+ export declare const isMacroGroup: (group: string) => boolean;
5
+ export interface HolderProps {
6
+ name: string;
7
+ id: string;
8
+ path: string;
9
+ }
10
+ export declare const macroHolderMap: (assembly: AssemblyModel<FreestyleModelAssemblyExt>) => (holderName: string) => {
11
+ id: string;
12
+ name: string;
13
+ path: string;
14
+ }[] | null;
15
+ export declare const MACRO_KEYS: readonly ["water", "carb", "ns", "nss"];
16
+ //# sourceMappingURL=assembly-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utils/assembly-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,YACF,CAAC;AAEzC,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,YACD,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,GACxB,UAAU,aAAa,CAAC,yBAAyB,CAAC,MAClD,YAAY,MAAM;;;;UASlB,CAAC;AAEJ,eAAO,MAAM,UAAU,yCAA0C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { HolderModel } from '@kosdev-code/kos-dispense-sdk';
2
+ declare module "@kosdev-code/kos-ui-sdk" {
3
+ interface IExtensionManager {
4
+ registerDashboardKeyFactory: (factory: HolderDetailFactory) => void;
5
+ executeDashboardKeyFactory: (holder: HolderModel) => string | undefined;
6
+ }
7
+ }
8
+ export declare const EXTENSION_POINT_DASHBOARD_KEY_FACTORY = "dashboardKeyFactory";
9
+ export type HolderDetailFactory = {
10
+ factory: (holder: HolderModel) => string | undefined | void;
11
+ rank: number;
12
+ };
13
+ export declare const registerDashboardKeyFactory: (factory: HolderDetailFactory) => void;
14
+ export declare const executeDashboardKeyFactory: (holder: HolderModel) => any;
15
+ //# sourceMappingURL=holder-view-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holder-view-extension.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utils/holder-view-extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAOjE,OAAO,QAAQ,yBAAyB,CAAC;IACvC,UAAU,iBAAiB;QACzB,2BAA2B,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;QACpE,0BAA0B,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,MAAM,GAAG,SAAS,CAAC;KACzE;CACF;AAED,eAAO,MAAM,qCAAqC,wBAAwB,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAsBF,eAAO,MAAM,2BAA2B,GAAI,SAAS,mBAAmB,SAKvE,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,QAAQ,WAAW,QAI3D,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './assembly-utils';
2
+ export * from './holder-view-extension';
3
+ export * from './time-utils';
4
+ export * from './trouble-visibility-filter';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type Hours = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
2
+ export type Minutes = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59;
3
+ export declare const toTimeComponents: (seconds: number) => {
4
+ hours: Hours;
5
+ minutes: Minutes;
6
+ };
7
+ export declare const toSeconds: (hours: Hours, minutes: Minutes) => number;
8
+ export declare const calculateTimeDifference: (date: Date) => string;
9
+ //# sourceMappingURL=time-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utils/time-utils.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEhI,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAMtT,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM;;;CAK/C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,SAAS,OAAO,WAIvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,WAqBjD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TroubleModel } from '@kosdev-code/kos-ui-sdk';
2
+ import { NcuiRole } from '../auth/types';
3
+ export declare const troubleVisibilityFilter: (currentRole?: NcuiRole) => (trouble: TroubleModel) => boolean;
4
+ //# sourceMappingURL=trouble-visibility-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trouble-visibility-filter.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/lib/utils/trouble-visibility-filter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAS9C,eAAO,MAAM,uBAAuB,GACjC,cAAc,QAAQ,MAAM,SAAS,YAAY,YAcjD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@kosdev-code/kos-ddk-models",
3
+ "version": "0.1.0-dev.10",
4
+ "dependencies": {
5
+ "@kosdev-code/kos-ui-sdk": "~3.0.0",
6
+ "@kosdev-code/kos-dispense-sdk": "~3.0.0",
7
+ "@kosdev-code/kos-freestyle-sdk": "~3.0.0"
8
+ },
9
+ "kosModels": "./kos-models.json",
10
+ "main": "./index.js",
11
+ "module": "./index.mjs",
12
+ "typings": "./index.d.ts",
13
+ "kos": {
14
+ "build": {
15
+ "gitHash": "715240cefbd8e071a5c18310013240c28817464a"
16
+ }
17
+ },
18
+ "publishConfig": {
19
+ "registry": "https://registry.npmjs.org/"
20
+ }
21
+ }
@@ -0,0 +1,5 @@
1
+ export { Start } from './start-registration';
2
+ export type * from './types';
3
+ export type { StartModel } from './start-model';
4
+ export * as StartServices from './services';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/start/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,aAAa,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './start-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/start/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Service
3
+ * Retrieves the initial start data.
4
+ */
5
+ export declare const navigateToNCui: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<unknown> | undefined>;
6
+ //# sourceMappingURL=start-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-services.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ddk-models/src/start/services/start-services.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,cAAc,0FAM1B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
2
+ import { StartOptions } from './types';
3
+ export declare const MODEL_TYPE = "start-model";
4
+ export type StartModel = PublicModelInterface<StartModelImpl>;
5
+ /**
6
+ * @kosService ddk.start
7
+ * @kosApiLevel 1
8
+ */
9
+ export declare class StartModelImpl implements IKosDataModel, IKosIdentifiable {
10
+ id: string;
11
+ private logger;
12
+ private troubles;
13
+ constructor(modelId: string, options: StartOptions, context: KosCreationContext);
14
+ get firmwareFailed(): boolean;
15
+ get firmwareInProgress(): boolean;
16
+ navigate(): Promise<void>;
17
+ init(): Promise<void>;
18
+ load(): Promise<void>;
19
+ }
20
+ //# sourceMappingURL=start-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-model.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/start/start-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAExC,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;AAE9D;;;GAGG;AACH,qBACa,cAAe,YAAW,aAAa,EAAE,gBAAgB;IACpE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAGjC,OAAO,CAAC,QAAQ,CAAyB;gBAGvC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,kBAAkB;IAU7B,IAAI,cAAc,YAOjB;IAED,IAAI,kBAAkB,YAOrB;IAEK,QAAQ;IAMR,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,88 @@
1
+ import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
2
+ import { StartOptions } from './types';
3
+ import { StartModel } from './start-model';
4
+ /**
5
+ * # Start
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with StartModel instances.
8
+ *
9
+ * ## type
10
+ * The type property is a string that identifies the model type.
11
+ * 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
12
+ * used when declaring dependencies on models.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ *
17
+ * @kosDependency({modelType: Start.type, id: "startId"})
18
+ * private startModel: StartModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory method creates a factory function that can be used to create new StartModel instances.
25
+ *
26
+
27
+ * As this is a singleton model, the factory function accepts the model options as its argument.
28
+ *
29
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
30
+ * in this case and the existing model will be returned in its current state.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * const model = Start.factory({
35
+ * // Add option data
36
+ * });
37
+ * ```
38
+
39
+
40
+ *
41
+ * ## predicate
42
+ *
43
+ * [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 StartModel.
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ *
48
+ * const model: IKosDataModel = ...; // some model
49
+ *
50
+ * if (Start.predicate(model)) {
51
+ * // if the function evaluates to true, the model is narrowed down to StartModel
52
+ * // and the compiler will know that the model has the StartModel interface
53
+ * model.updateAvailability(false);
54
+ * }
55
+ * ```
56
+ *
57
+ * ## registration
58
+ *
59
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
60
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
61
+ *
62
+ *
63
+ * @example
64
+ *
65
+ * In an application registration file you can declare the model registration as follows:
66
+ *
67
+ * **registration.ts**
68
+ * ```typescript
69
+ * import { Start } from "@kos-ui/project-models";
70
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
71
+ *
72
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
73
+ *
74
+ * KosModelRegistry.dispense
75
+ * .models()
76
+ * .model(Start);
77
+ * ```
78
+ *
79
+ * ## registration.singleton
80
+
81
+ * The start model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
82
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
83
+ *
84
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
85
+
86
+ * */
87
+ export declare const Start: SingletonKosModelRegistrationFactory<StartModel, StartOptions>;
88
+ //# sourceMappingURL=start-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-registration.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/start/start-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,KAAK,gEAMhB,CAAC"}
@@ -0,0 +1 @@
1
+ export interface StartOptions {}
@@ -0,0 +1,19 @@
1
+ declare namespace NodeJS {
2
+ interface ProcessEnv {
3
+ VITE_ALLOW_ANONYMOUS: string;
4
+ VITE_PLATFORM: string;
5
+ VITE_LOG_WS: string;
6
+ VITE_LOGIN_URL: string;
7
+ VITE_APP_PORT: string;
8
+ VITE_PORT: string;
9
+ VITE_STUDIO_PORT: string;
10
+ VITE_CONNECTION_ALIAS: string;
11
+ VITE_MOCK_WS: string;
12
+ VITE_FOS_PORT: string;
13
+ VITE_USE_FOS: string;
14
+ VITE_WS_TIMEOUT: string;
15
+ VITE_LOG_LEVEL: string;
16
+ VITE_MOCK_FETCH: string;
17
+ }
18
+ }
19
+ //# sourceMappingURL=global.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/types/global.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,CAAC;IACvB,UAAiB,UAAU;QACzB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,EAAE,MAAM,CAAC;QACzB,qBAAqB,EAAE,MAAM,CAAC;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,CAAC;QACtB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;KACzB;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * as kosdev_ddk from './services/kosdev.ddk/snapshot/openapi';
2
+ //# sourceMappingURL=openapi-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi-index.d.ts","sourceRoot":"","sources":["../../../../packages/kos-ddk-models/src/utils/openapi-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,wCAAwC,CAAC"}