@kosdev-code/kos-ddk-models 2.0.0

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 (297) hide show
  1. package/constants.d.ts +3 -0
  2. package/constants.d.ts.map +1 -0
  3. package/index.d.ts +30 -0
  4. package/index.d.ts.map +1 -0
  5. package/index.js +1 -0
  6. package/index.mjs +2609 -0
  7. package/lib/agitation-control/agitation-control-model.d.ts +50 -0
  8. package/lib/agitation-control/agitation-control-model.d.ts.map +1 -0
  9. package/lib/agitation-control/agitation-control-registration.d.ts +89 -0
  10. package/lib/agitation-control/agitation-control-registration.d.ts.map +1 -0
  11. package/lib/agitation-control/index.d.ts +4 -0
  12. package/lib/agitation-control/index.d.ts.map +1 -0
  13. package/lib/agitation-control/types/index.d.ts +7 -0
  14. package/lib/animation/animation-model.d.ts +14 -0
  15. package/lib/animation/animation-model.d.ts.map +1 -0
  16. package/lib/animation/animation-registration.d.ts +86 -0
  17. package/lib/animation/animation-registration.d.ts.map +1 -0
  18. package/lib/animation/index.d.ts +4 -0
  19. package/lib/animation/index.d.ts.map +1 -0
  20. package/lib/animation/services/animation-services.d.ts +10 -0
  21. package/lib/animation/services/animation-services.d.ts.map +1 -0
  22. package/lib/animation/services/index.d.ts +2 -0
  23. package/lib/animation/services/index.d.ts.map +1 -0
  24. package/lib/animation/types/index.d.ts +14 -0
  25. package/lib/application/application-model.d.ts +33 -0
  26. package/lib/application/application-model.d.ts.map +1 -0
  27. package/lib/application/application-registration.d.ts +86 -0
  28. package/lib/application/application-registration.d.ts.map +1 -0
  29. package/lib/application/index.d.ts +4 -0
  30. package/lib/application/index.d.ts.map +1 -0
  31. package/lib/application/services/application-services.d.ts +29 -0
  32. package/lib/application/services/application-services.d.ts.map +1 -0
  33. package/lib/application/services/index.d.ts +2 -0
  34. package/lib/application/services/index.d.ts.map +1 -0
  35. package/lib/application/types/index.d.ts +31 -0
  36. package/lib/auth/auth-model.d.ts +17 -0
  37. package/lib/auth/auth-model.d.ts.map +1 -0
  38. package/lib/auth/auth-registration.d.ts +84 -0
  39. package/lib/auth/auth-registration.d.ts.map +1 -0
  40. package/lib/auth/index.d.ts +4 -0
  41. package/lib/auth/index.d.ts.map +1 -0
  42. package/lib/auth/services/auth-services.d.ts +10 -0
  43. package/lib/auth/services/auth-services.d.ts.map +1 -0
  44. package/lib/auth/services/index.d.ts +2 -0
  45. package/lib/auth/services/index.d.ts.map +1 -0
  46. package/lib/auth/types/index.d.ts +12 -0
  47. package/lib/carb-water/carb-water-model.d.ts +18 -0
  48. package/lib/carb-water/carb-water-model.d.ts.map +1 -0
  49. package/lib/carb-water/carb-water-registration.d.ts +85 -0
  50. package/lib/carb-water/carb-water-registration.d.ts.map +1 -0
  51. package/lib/carb-water/index.d.ts +4 -0
  52. package/lib/carb-water/index.d.ts.map +1 -0
  53. package/lib/carb-water/services/carb-water-services.d.ts +6 -0
  54. package/lib/carb-water/services/carb-water-services.d.ts.map +1 -0
  55. package/lib/carb-water/services/index.d.ts +2 -0
  56. package/lib/carb-water/services/index.d.ts.map +1 -0
  57. package/lib/carb-water/types/index.d.ts +1 -0
  58. package/lib/copy-logs/copy-logs-model.d.ts +45 -0
  59. package/lib/copy-logs/copy-logs-model.d.ts.map +1 -0
  60. package/lib/copy-logs/copy-logs-registration.d.ts +89 -0
  61. package/lib/copy-logs/copy-logs-registration.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 +22 -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 +28 -0
  70. package/lib/dashboard-operations/dashboard-operations-model.d.ts.map +1 -0
  71. package/lib/dashboard-operations/dashboard-operations-registration.d.ts +86 -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 +21 -0
  80. package/lib/dispenser/dispenser-model.d.ts +13 -0
  81. package/lib/dispenser/dispenser-model.d.ts.map +1 -0
  82. package/lib/dispenser/dispenser-registration.d.ts +86 -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 +9 -0
  91. package/lib/dispenser-info/dispenser-info-model.d.ts +13 -0
  92. package/lib/dispenser-info/dispenser-info-model.d.ts.map +1 -0
  93. package/lib/dispenser-info/dispenser-info-registration.d.ts +84 -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 +10 -0
  102. package/lib/door/door-model.d.ts +20 -0
  103. package/lib/door/door-model.d.ts.map +1 -0
  104. package/lib/door/door-registration.d.ts +87 -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 +14 -0
  110. package/lib/enrollment/enrollment-model.d.ts.map +1 -0
  111. package/lib/enrollment/enrollment-registration.d.ts +84 -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 +10 -0
  120. package/lib/extension/index.d.ts +2 -0
  121. package/lib/extension/index.d.ts.map +1 -0
  122. package/lib/fcm-pump/fcm-pump-model.d.ts +28 -0
  123. package/lib/fcm-pump/fcm-pump-model.d.ts.map +1 -0
  124. package/lib/fcm-pump/fcm-pump-registration.d.ts +87 -0
  125. package/lib/fcm-pump/fcm-pump-registration.d.ts.map +1 -0
  126. package/lib/fcm-pump/index.d.ts +5 -0
  127. package/lib/fcm-pump/index.d.ts.map +1 -0
  128. package/lib/fcm-pump/services/fcm-pump-services.d.ts +17 -0
  129. package/lib/fcm-pump/services/fcm-pump-services.d.ts.map +1 -0
  130. package/lib/fcm-pump/services/index.d.ts +2 -0
  131. package/lib/fcm-pump/services/index.d.ts.map +1 -0
  132. package/lib/fcm-pump/types/index.d.ts +5 -0
  133. package/lib/ingredient-summary/index.d.ts +3 -0
  134. package/lib/ingredient-summary/index.d.ts.map +1 -0
  135. package/lib/ingredient-summary/ingredient-summary-model.d.ts +18 -0
  136. package/lib/ingredient-summary/ingredient-summary-model.d.ts.map +1 -0
  137. package/lib/ingredient-summary/ingredient-summary-registration.d.ts +84 -0
  138. package/lib/ingredient-summary/ingredient-summary-registration.d.ts.map +1 -0
  139. package/lib/ingredient-summary/types/index.d.ts +11 -0
  140. package/lib/lfcv-pump/index.d.ts +5 -0
  141. package/lib/lfcv-pump/index.d.ts.map +1 -0
  142. package/lib/lfcv-pump/lfcv-pump-model.d.ts +20 -0
  143. package/lib/lfcv-pump/lfcv-pump-model.d.ts.map +1 -0
  144. package/lib/lfcv-pump/lfcv-pump-registration.d.ts +87 -0
  145. package/lib/lfcv-pump/lfcv-pump-registration.d.ts.map +1 -0
  146. package/lib/lfcv-pump/services/index.d.ts +2 -0
  147. package/lib/lfcv-pump/services/index.d.ts.map +1 -0
  148. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts +10 -0
  149. package/lib/lfcv-pump/services/lfcv-pump-services.d.ts.map +1 -0
  150. package/lib/lfcv-pump/types/index.d.ts +5 -0
  151. package/lib/lockout/index.d.ts +5 -0
  152. package/lib/lockout/index.d.ts.map +1 -0
  153. package/lib/lockout/lockout-model.d.ts +79 -0
  154. package/lib/lockout/lockout-model.d.ts.map +1 -0
  155. package/lib/lockout/lockout-registration.d.ts +89 -0
  156. package/lib/lockout/lockout-registration.d.ts.map +1 -0
  157. package/lib/lockout/services/index.d.ts +2 -0
  158. package/lib/lockout/services/index.d.ts.map +1 -0
  159. package/lib/lockout/services/lockout-services.d.ts +3 -0
  160. package/lib/lockout/services/lockout-services.d.ts.map +1 -0
  161. package/lib/lockout/types/index.d.ts +1 -0
  162. package/lib/macro-assignment/index.d.ts +3 -0
  163. package/lib/macro-assignment/index.d.ts.map +1 -0
  164. package/lib/macro-assignment/macro-assignment-model.d.ts +78 -0
  165. package/lib/macro-assignment/macro-assignment-model.d.ts.map +1 -0
  166. package/lib/macro-assignment/macro-assignment-registration.d.ts +86 -0
  167. package/lib/macro-assignment/macro-assignment-registration.d.ts.map +1 -0
  168. package/lib/macro-assignment/services/index.d.ts +2 -0
  169. package/lib/macro-assignment/services/index.d.ts.map +1 -0
  170. package/lib/macro-assignment/services/macro-assignment-services.d.ts +2 -0
  171. package/lib/macro-assignment/services/macro-assignment-services.d.ts.map +1 -0
  172. package/lib/macro-assignment/types/index.d.ts +39 -0
  173. package/lib/network-test/index.d.ts +5 -0
  174. package/lib/network-test/index.d.ts.map +1 -0
  175. package/lib/network-test/network-test-container-model.d.ts +23 -0
  176. package/lib/network-test/network-test-container-model.d.ts.map +1 -0
  177. package/lib/network-test/network-test-container-registration.d.ts +86 -0
  178. package/lib/network-test/network-test-container-registration.d.ts.map +1 -0
  179. package/lib/network-test/network-test-model.d.ts +21 -0
  180. package/lib/network-test/network-test-model.d.ts.map +1 -0
  181. package/lib/network-test/network-test-registration.d.ts +84 -0
  182. package/lib/network-test/network-test-registration.d.ts.map +1 -0
  183. package/lib/network-test/services/index.d.ts +2 -0
  184. package/lib/network-test/services/index.d.ts.map +1 -0
  185. package/lib/network-test/services/network-test-services.d.ts +37 -0
  186. package/lib/network-test/services/network-test-services.d.ts.map +1 -0
  187. package/lib/network-test/types/index.d.ts +44 -0
  188. package/lib/nutritive-sweetener/index.d.ts +4 -0
  189. package/lib/nutritive-sweetener/index.d.ts.map +1 -0
  190. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +18 -0
  191. package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -0
  192. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts +85 -0
  193. package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts.map +1 -0
  194. package/lib/nutritive-sweetener/services/index.d.ts +2 -0
  195. package/lib/nutritive-sweetener/services/index.d.ts.map +1 -0
  196. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts +6 -0
  197. package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts.map +1 -0
  198. package/lib/nutritive-sweetener/types/index.d.ts +1 -0
  199. package/lib/plain-water/index.d.ts +4 -0
  200. package/lib/plain-water/index.d.ts.map +1 -0
  201. package/lib/plain-water/plain-water-model.d.ts +19 -0
  202. package/lib/plain-water/plain-water-model.d.ts.map +1 -0
  203. package/lib/plain-water/plain-water-registration.d.ts +85 -0
  204. package/lib/plain-water/plain-water-registration.d.ts.map +1 -0
  205. package/lib/plain-water/services/index.d.ts +2 -0
  206. package/lib/plain-water/services/index.d.ts.map +1 -0
  207. package/lib/plain-water/services/plain-water-services.d.ts +6 -0
  208. package/lib/plain-water/services/plain-water-services.d.ts.map +1 -0
  209. package/lib/plain-water/types/index.d.ts +1 -0
  210. package/lib/reboot/index.d.ts +4 -0
  211. package/lib/reboot/index.d.ts.map +1 -0
  212. package/lib/reboot/reboot-model.d.ts +14 -0
  213. package/lib/reboot/reboot-model.d.ts.map +1 -0
  214. package/lib/reboot/reboot-registration.d.ts +84 -0
  215. package/lib/reboot/reboot-registration.d.ts.map +1 -0
  216. package/lib/reboot/services/index.d.ts +2 -0
  217. package/lib/reboot/services/index.d.ts.map +1 -0
  218. package/lib/reboot/services/reboot-services.d.ts +2 -0
  219. package/lib/reboot/services/reboot-services.d.ts.map +1 -0
  220. package/lib/reboot/types/index.d.ts +8 -0
  221. package/lib/registration.d.ts +4 -0
  222. package/lib/registration.d.ts.map +1 -0
  223. package/lib/settings/index.d.ts +4 -0
  224. package/lib/settings/index.d.ts.map +1 -0
  225. package/lib/settings/services/index.d.ts +2 -0
  226. package/lib/settings/services/index.d.ts.map +1 -0
  227. package/lib/settings/services/settings-services.d.ts +13 -0
  228. package/lib/settings/services/settings-services.d.ts.map +1 -0
  229. package/lib/settings/settings-model.d.ts +23 -0
  230. package/lib/settings/settings-model.d.ts.map +1 -0
  231. package/lib/settings/settings-registration.d.ts +86 -0
  232. package/lib/settings/settings-registration.d.ts.map +1 -0
  233. package/lib/settings/types/index.d.ts +26 -0
  234. package/lib/setup-step/index.d.ts +5 -0
  235. package/lib/setup-step/index.d.ts.map +1 -0
  236. package/lib/setup-step/services/index.d.ts +2 -0
  237. package/lib/setup-step/services/index.d.ts.map +1 -0
  238. package/lib/setup-step/services/setup-step-services.d.ts +13 -0
  239. package/lib/setup-step/services/setup-step-services.d.ts.map +1 -0
  240. package/lib/setup-step/setup-step-container-model.d.ts +29 -0
  241. package/lib/setup-step/setup-step-container-model.d.ts.map +1 -0
  242. package/lib/setup-step/setup-step-container-registration.d.ts +86 -0
  243. package/lib/setup-step/setup-step-container-registration.d.ts.map +1 -0
  244. package/lib/setup-step/setup-step-model.d.ts +21 -0
  245. package/lib/setup-step/setup-step-model.d.ts.map +1 -0
  246. package/lib/setup-step/setup-step-registration.d.ts +84 -0
  247. package/lib/setup-step/setup-step-registration.d.ts.map +1 -0
  248. package/lib/setup-step/types/index.d.ts +40 -0
  249. package/lib/trouble-action/index.d.ts +4 -0
  250. package/lib/trouble-action/index.d.ts.map +1 -0
  251. package/lib/trouble-action/trouble-action-model.d.ts +20 -0
  252. package/lib/trouble-action/trouble-action-model.d.ts.map +1 -0
  253. package/lib/trouble-action/trouble-action-registration.d.ts +89 -0
  254. package/lib/trouble-action/trouble-action-registration.d.ts.map +1 -0
  255. package/lib/trouble-action/types/index.d.ts +8 -0
  256. package/lib/utilities/index.d.ts +5 -0
  257. package/lib/utilities/index.d.ts.map +1 -0
  258. package/lib/utilities/services/index.d.ts +2 -0
  259. package/lib/utilities/services/index.d.ts.map +1 -0
  260. package/lib/utilities/services/utilities-services.d.ts +13 -0
  261. package/lib/utilities/services/utilities-services.d.ts.map +1 -0
  262. package/lib/utilities/types/index.d.ts +32 -0
  263. package/lib/utilities/utilities-container-model.d.ts +19 -0
  264. package/lib/utilities/utilities-container-model.d.ts.map +1 -0
  265. package/lib/utilities/utilities-container-registration.d.ts +86 -0
  266. package/lib/utilities/utilities-container-registration.d.ts.map +1 -0
  267. package/lib/utilities/utilities-model.d.ts +19 -0
  268. package/lib/utilities/utilities-model.d.ts.map +1 -0
  269. package/lib/utilities/utilities-registration.d.ts +84 -0
  270. package/lib/utilities/utilities-registration.d.ts.map +1 -0
  271. package/lib/utils/assembly-utils.d.ts +17 -0
  272. package/lib/utils/assembly-utils.d.ts.map +1 -0
  273. package/lib/utils/holder-view-extension.d.ts +16 -0
  274. package/lib/utils/holder-view-extension.d.ts.map +1 -0
  275. package/lib/utils/index.d.ts +5 -0
  276. package/lib/utils/index.d.ts.map +1 -0
  277. package/lib/utils/time-utils.d.ts +9 -0
  278. package/lib/utils/time-utils.d.ts.map +1 -0
  279. package/lib/utils/trouble-visibility-filter.d.ts +5 -0
  280. package/lib/utils/trouble-visibility-filter.d.ts.map +1 -0
  281. package/package.json +20 -0
  282. package/start/index.d.ts +5 -0
  283. package/start/index.d.ts.map +1 -0
  284. package/start/services/index.d.ts +2 -0
  285. package/start/services/index.d.ts.map +1 -0
  286. package/start/services/start-services.d.ts +6 -0
  287. package/start/services/start-services.d.ts.map +1 -0
  288. package/start/start-model.d.ts +17 -0
  289. package/start/start-model.d.ts.map +1 -0
  290. package/start/start-registration.d.ts +89 -0
  291. package/start/start-registration.d.ts.map +1 -0
  292. package/start/types/index.d.ts +1 -0
  293. package/types/global.d.ts +19 -0
  294. package/types/global.d.ts.map +1 -0
  295. package/types/index.d.ts +2 -0
  296. package/types/index.d.ts.map +1 -0
  297. package/utils/openapi.d.ts +9271 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/auth/auth-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,IAAI,EAAE,QAAQ,CAAC,wBAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAWzE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Auth } from './auth-registration';
2
+ export type * from './types';
3
+ export * as AuthServices from './services';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,YAAY,MAAM,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { KosServiceResponse } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
2
+
3
+ export type AuthResponse = "CREW" | "MANGER" | "TECHNICIAN";
4
+ /**
5
+ * @category Service
6
+ * Retrieves the initial auth data.
7
+ */
8
+ export declare const getCurrentRole: () => Promise<KosServiceResponse<AuthResponse> | undefined>;
9
+ export declare const sendPinCode: (pinCode: string) => Promise<KosServiceResponse<boolean> | undefined>;
10
+ //# sourceMappingURL=auth-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/auth/services/auth-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;AAC5D;;;GAGG;AACH,eAAO,MAAM,cAAc,6DAM1B,CAAC;AAEF,eAAO,MAAM,WAAW,YAAmB,MAAM,qDAOhD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './auth-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/auth/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { IKosIdentifiable } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
2
+
3
+
4
+ export interface AuthOptions {}
5
+
6
+ export interface AuthModel extends IKosIdentifiable {
7
+ readonly currentRole: NcuiRole;
8
+ authorize: (pinCode: string) => Promise<boolean>;
9
+ forceRole: (role: NcuiRole) => void;
10
+ }
11
+
12
+ export type NcuiRole = "none" | "crew" | "manager" | "technician";
@@ -0,0 +1,18 @@
1
+ import { CarbWaterOptions } from './types';
2
+ import { FcmPumpModel } from '../fcm-pump';
3
+ import { IKosDataModel, KosCreationContext, PublicModelInterface } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
4
+ import { PumpAware } from '../../../../../sdk/kos-freestyle-sdk/src/index.ts';
5
+ import { AssemblyModel } from '../../../../../sdk/kos-dispense-sdk/src/index.ts';
6
+
7
+ export declare const MODEL_TYPE = "carb-water-model";
8
+ export type CarbWaterModel = PublicModelInterface<CarbWaterModelImpl>;
9
+ export declare class CarbWaterModelImpl implements CarbWaterModel, IKosDataModel, PumpAware {
10
+ id: string;
11
+ assemblyModel: AssemblyModel;
12
+ private logger;
13
+ constructor(modelId: string, _options: CarbWaterOptions, context: KosCreationContext);
14
+ getPump(): FcmPumpModel;
15
+ init(): Promise<void>;
16
+ load(): Promise<void>;
17
+ }
18
+ //# sourceMappingURL=carb-water-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carb-water-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/carb-water/carb-water-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C,MAAM,MAAM,cAAc,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;AAEtE,qBACa,kBACX,YAAW,cAAc,EAAE,aAAa,EAAE,SAAS;IAEnD,EAAE,EAAE,MAAM,CAAC;IAGX,aAAa,EAAG,aAAa,CAAC;IAE9B,OAAO,CAAC,MAAM,CAAmB;gBAG/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,kBAAkB;IAM7B,OAAO,IAAI,YAAY;IAYjB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,85 @@
1
+ import { CarbWaterOptions } from './types';
2
+ import { CarbWaterModel } from './carb-water-model';
3
+ import { KosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
4
+
5
+ /**
6
+ * # CarbWater
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with CarbWaterModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: CarbWater.type, id: "carbWaterId"})
19
+ * private carbWaterModel: CarbWaterModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new CarbWaterModel instances.
26
+ *
27
+
28
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
29
+ *
30
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
31
+ * in this case and the existing model will be returned in its current state.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const model = CarbWater.factory("carbWaterId")({
36
+ * // Add option data
37
+ * });
38
+ * ```
39
+
40
+
41
+ *
42
+ * ## predicate
43
+ *
44
+ * [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 CarbWaterModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (CarbWater.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to CarbWaterModel
53
+ * // and the compiler will know that the model has the CarbWaterModel interface
54
+ * model.updateAvailability(false);
55
+ * }
56
+ * ```
57
+ *
58
+ * ## registration
59
+ *
60
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
61
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
62
+ *
63
+ *
64
+ * @example
65
+ *
66
+ * In an application registration file you can declare the model registration as follows:
67
+ *
68
+ * **registration.ts**
69
+ * ```typescript
70
+ * import { CarbWater } from "@kos-ui/kos-dispenser-model";
71
+ * ...
72
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
73
+ * export const kosModels: IKosRegistry["models"] = {
74
+ * ...CarbWater.registration,
75
+ * };
76
+ * ```
77
+ *
78
+ * ## registration.singleton
79
+
80
+ * The carbWater 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.
81
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
82
+
83
+ * */
84
+ export declare const CarbWater: Readonly<KosModelRegistrationBean<CarbWaterModel, CarbWaterOptions>>;
85
+ //# sourceMappingURL=carb-water-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carb-water-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/carb-water/carb-water-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EACL,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,wBAAwB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAW3D,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { CarbWater } from './carb-water-registration';
2
+ export type * from './types';
3
+ export type { CarbWaterModel } from './carb-water-model';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/carb-water/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category Service
3
+ * Retrieves the initial carb-water data.
4
+ */
5
+ export declare const performInitializeCW: (_path: string, tracker: string) => Promise<any>;
6
+ //# sourceMappingURL=carb-water-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carb-water-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/carb-water/services/carb-water-services.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAAiB,MAAM,WAAW,MAAM,iBAUvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './carb-water-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/carb-water/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export interface CarbWaterOptions {}
@@ -0,0 +1,45 @@
1
+ import { CopyLogsOptions, CopyProgress } from './types';
2
+ import { FutureAwareContainer, FutureContainer, IFutureModel, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
3
+
4
+ export declare const MODEL_TYPE = "copy-logs-model";
5
+ export type CopyLogsModel = PublicModelInterface<CopyLogsModelImpl>;
6
+ export interface Volume {
7
+ id: string;
8
+ name: string;
9
+ freeBytes: number;
10
+ totalBytes: number;
11
+ }
12
+ export declare class CopyLogsModelImpl implements IKosDataModel, IKosIdentifiable, FutureContainer<CopyProgress> {
13
+ id: string;
14
+ private logger;
15
+ private _volumes;
16
+ futureHandler: FutureAwareContainer<CopyProgress>;
17
+ private storageDeviceContainer;
18
+ private _activeVolume?;
19
+ private _logFileSize;
20
+ private _actionState;
21
+ copyProgress: CopyProgress;
22
+ constructor(modelId: string, _options: CopyLogsOptions, context: KosCreationContext);
23
+ get volumes(): Volume[];
24
+ get activeVolume(): Volume | undefined;
25
+ get logFileSize(): number;
26
+ reset(): void;
27
+ clearActiveVolume(): void;
28
+ updateActiveVolume(volume: Volume): void;
29
+ get inserted(): boolean;
30
+ updateLogFileSize(size: number): void;
31
+ get canCopyLogs(): false | Volume | undefined;
32
+ get future(): IFutureModel<CopyProgress> | undefined;
33
+ get actionState(): "idle" | "erasing" | "copying";
34
+ get diskFull(): boolean;
35
+ onFutureUpdate(update: IFutureModel<CopyProgress>): void;
36
+ eraseAndCopyVolume(tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
37
+ eraseVolume(tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
38
+ copyLogs(tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
39
+ protected handleInsertion(): void;
40
+ init(): Promise<void>;
41
+ syncVolumes(): Promise<void>;
42
+ activate(): Promise<void>;
43
+ load(): Promise<void>;
44
+ }
45
+ //# sourceMappingURL=copy-logs-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-logs-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/copy-logs/copy-logs-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,YAAY,EAEZ,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EAErB,MAAM,yBAAyB,CAAC;AAmBjC,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEpE,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,qBACa,iBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,eAAe,CAAC,YAAY,CAAC;IAEzE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,QAAQ,CAA4B;IAC5C,aAAa,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAElD,OAAO,CAAC,sBAAsB,CAA+B;IAC7D,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,YAAY,CAA0C;IAC9D,YAAY,EAAE,YAAY,CAAC;gBAEzB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB;IAiB7B,IAAI,OAAO,aAEV;IACD,IAAI,YAAY,uBAEf;IAED,IAAI,WAAW,WAEd;IAED,KAAK;IAIL,iBAAiB;IAGjB,kBAAkB,CAAC,MAAM,EAAE,MAAM;IAGjC,IAAI,QAAQ,YAEX;IAED,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAI9B,IAAI,WAAW,+BAEd;IAED,IAAI,MAAM,2CAET;IAED,IAAI,WAAW,mCAEd;IAED,IAAI,QAAQ,YAKX;IAED,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,YAAY,CAAC;IAuC3C,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM;IAkBnC,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAmB5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM;IAoB/B,SAAS,CAAC,eAAe;IASnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,WAAW;IAwCX,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,89 @@
1
+ import { CopyLogsModel } from './copy-logs-model';
2
+ import { CopyLogsOptions } from './types';
3
+ import { SingletonKosModelRegistrationFactory } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
4
+
5
+ /**
6
+ * # CopyLogs
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with CopyLogsModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: CopyLogs.type, id: "copyLogsId"})
19
+ * private copyLogsModel: CopyLogsModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new CopyLogsModel instances.
26
+ *
27
+
28
+ * As this is a singleton model, the factory function accepts the model options as its argument.
29
+ *
30
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
31
+ * in this case and the existing model will be returned in its current state.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const model = CopyLogs.factory({
36
+ * // Add option data
37
+ * });
38
+ * ```
39
+
40
+
41
+ *
42
+ * ## predicate
43
+ *
44
+ * [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 CopyLogsModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (CopyLogs.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to CopyLogsModel
53
+ * // and the compiler will know that the model has the CopyLogsModel interface
54
+ * model.updateAvailability(false);
55
+ * }
56
+ * ```
57
+ *
58
+ * ## registration
59
+ *
60
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
61
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
62
+ *
63
+ *
64
+ * @example
65
+ *
66
+ * In an application registration file you can declare the model registration as follows:
67
+ *
68
+ * **registration.ts**
69
+ * ```typescript
70
+ * import { CopyLogs } from "@kos-ui/project-models";
71
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
+ *
73
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
+ *
75
+ * KosModelRegistry.dispense
76
+ * .models()
77
+ * .model(CopyLogs);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The copyLogs model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
83
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
84
+ *
85
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
86
+
87
+ * */
88
+ export declare const CopyLogs: SingletonKosModelRegistrationFactory<CopyLogsModel, CopyLogsOptions>;
89
+ //# sourceMappingURL=copy-logs-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-logs-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/copy-logs/copy-logs-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,QAAQ,sEAMnB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type { CopyLogsModel, Volume } from './copy-logs-model';
2
+ export { CopyLogs } from './copy-logs-registration';
3
+ export * as CopyLogsServices from './services';
4
+ export type * from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/copy-logs/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,YAAY,CAAC;AAC/C,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { FutureResponse } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
2
+
3
+ interface CopyLogsResponse {
4
+ id: string;
5
+ info: {
6
+ totalBytes: number;
7
+ freeBytes: number;
8
+ };
9
+ }
10
+ type LogFileSizeResponse = [string | undefined, string | undefined];
11
+ type VolumeSizeResponse = [string | undefined, CopyLogsResponse[] | undefined];
12
+ export declare const eraseVolume: (volumeId: string, tracker: string) => Promise<FutureResponse>;
13
+ export declare const eraseAndCopyLogsToVolume: (volumeId: string, tracker: string) => Promise<FutureResponse>;
14
+ export declare const copyLogFromVolume: (volumeId: string, tracker: string) => Promise<FutureResponse>;
15
+ /**
16
+ * @category Service
17
+ * Retrieves the initial copy-logs data.
18
+ */
19
+ export declare const getVolumes: () => Promise<VolumeSizeResponse>;
20
+ export declare const getLogFileSize: () => Promise<LogFileSizeResponse>;
21
+ export {};
22
+ //# sourceMappingURL=copy-logs-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-logs-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/copy-logs/services/copy-logs-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAUjC,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,KAAK,mBAAmB,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpE,KAAK,kBAAkB,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAC,CAAC;AAE/E,eAAO,MAAM,WAAW,aACZ,MAAM,WACP,MAAM,KACd,QAAQ,cAAc,CAYxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,aACzB,MAAM,WACP,MAAM,KACd,QAAQ,cAAc,CAYxB,CAAC;AACF,eAAO,MAAM,iBAAiB,aAClB,MAAM,WACP,MAAM,KACd,QAAQ,cAAc,CAYxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAa,QAAQ,kBAAkB,CAiB7D,CAAC;AAEF,eAAO,MAAM,cAAc,QAAa,QAAQ,mBAAmB,CAiBlE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './copy-logs-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/copy-logs/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface CopyLogsOptions {}
2
+
3
+ export interface CopyProgress {
4
+ bytesToCopy: number;
5
+ bytesCopied: number;
6
+ filesCopied: number;
7
+ filesSkipped: number;
8
+ }
@@ -0,0 +1,28 @@
1
+ import { DashboardOperationsModel, DashboardOperationsOptions } from './types';
2
+ import { IKosDataModel, KosCreationContext, FutureHandler } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
3
+
4
+ export declare const MODEL_TYPE = "dashboard-operations-model";
5
+ export declare class DashboardOperationsModelImpl implements DashboardOperationsModel, IKosDataModel {
6
+ id: string;
7
+ private troubles;
8
+ futureHandler: FutureHandler;
9
+ private logger;
10
+ constructor(modelId: string, options: DashboardOperationsOptions, context: KosCreationContext);
11
+ get troublesByType(): any;
12
+ get queuedPurgeTroubles(): any;
13
+ get queuedPrimeTroubles(): any;
14
+ get resolvablePrimeTroubles(): any;
15
+ get resolvablePurgeTroubles(): any;
16
+ get hasResolvablePurgeTroubles(): boolean;
17
+ get hasResolvablePrimeTroubles(): boolean;
18
+ get hasPurgeTroubles(): boolean;
19
+ get hasPrimeTroubles(): boolean;
20
+ get purgeTroubles(): any;
21
+ get primeTroubles(): any;
22
+ get future(): import('../../../../../sdk/kos-ui-sdk/src/index.ts').IFutureModel<Record<string, unknown>> | undefined;
23
+ resolveAllTroubles(type: string, tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse | undefined>;
24
+ resolveTrouble(troubleId: string, tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
25
+ init(): Promise<void>;
26
+ load(): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=dashboard-operations-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-operations-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dashboard-operations/dashboard-operations-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EAMd,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,+BAA+B,CAAC;AASvD,qBACa,4BACX,YAAW,wBAAwB,EAAE,aAAa;IAElD,EAAE,EAAE,MAAM,CAAC;IAGX,OAAO,CAAC,QAAQ,CAAyB;IAEzC,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,kBAAkB;IAU7B,IAAI,cAAc,QAKjB;IAED,IAAI,mBAAmB,QAEtB;IAED,IAAI,mBAAmB,QAEtB;IAED,IAAI,uBAAuB,QAE1B;IAED,IAAI,uBAAuB,QAE1B;IAED,IAAI,0BAA0B,YAE7B;IAED,IAAI,0BAA0B,YAE7B;IACD,IAAI,gBAAgB,YAEnB;IAED,IAAI,gBAAgB,YAEnB;IAED,IAAI,aAAa,QAEhB;IAED,IAAI,aAAa,QAEhB;IAED,IAAI,MAAM,wFAET;IAEK,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IA6BjD,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAclD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,86 @@
1
+ import { DashboardOperationsModel, DashboardOperationsOptions } from './types';
2
+ import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
3
+
4
+ /**
5
+ * # DashboardOperations
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with DashboardOperationsModel 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: DashboardOperations.type, id: "dashboardOperationsId"})
18
+ * private dashboardOperationsModel: DashboardOperationsModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory method creates a factory function that can be used to create new DashboardOperationsModel 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 = DashboardOperations.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 DashboardOperationsModel.
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ *
48
+ * const model: IKosDataModel = ...; // some model
49
+ *
50
+ * if (DashboardOperations.predicate(model)) {
51
+ * // if the function evaluates to true, the model is narrowed down to DashboardOperationsModel
52
+ * // and the compiler will know that the model has the DashboardOperationsModel 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 { DashboardOperations } from "@kosdev-code/kos-dispense-sdk";
70
+ * ...
71
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
72
+ * export const kosModels: IKosRegistry["models"] = {
73
+ * ...DashboardOperations.registration,
74
+ * };
75
+ * ```
76
+ *
77
+ * ## registration.singleton
78
+
79
+ * The dashboardOperations model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
80
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
81
+ *
82
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
83
+
84
+ * */
85
+ export declare const DashboardOperations: Readonly<SingletonKosModelRegistrationBean<DashboardOperationsModel, DashboardOperationsOptions>>;
86
+ //# sourceMappingURL=dashboard-operations-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-operations-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dashboard-operations/dashboard-operations-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAMjF,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CACxC,iCAAiC,CAC/B,wBAAwB,EACxB,0BAA0B,CAC3B,CAcF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { DashboardOperations } from './dashboard-operations-registration';
2
+ export type * from './types';
3
+ export * as DashboardOperationsServices from './services';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dashboard-operations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,2BAA2B,MAAM,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category Service
3
+ * Retrieves the initial dashboard-operations data.
4
+ */
5
+ export declare const resolveAll: (troubleIds: string[], tracker?: string) => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
6
+ export declare const resolveTrouble: (troubleId: string, tracker?: string) => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
7
+ //# sourceMappingURL=dashboard-operations-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-operations-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dashboard-operations/services/dashboard-operations-services.ts"],"names":[],"mappings":"AAWA;;;GAGG;AAEH,eAAO,MAAM,UAAU,eAAsB,MAAM,EAAE,YAAY,MAAM,8DAQtE,CAAC;AAEF,eAAO,MAAM,cAAc,cAAqB,MAAM,YAAY,MAAM,8DAKvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './dashboard-operations-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dashboard-operations/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { FutureContainer, FutureResponse, IFutureModel, IKosIdentifiable, TroubleModel } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
2
+
3
+
4
+ export interface DashboardOperationsOptions {}
5
+
6
+ export interface DashboardOperationsModel
7
+ extends IKosIdentifiable,
8
+ FutureContainer {
9
+ resolveAllTroubles: (type: string) => Promise<FutureResponse | undefined>;
10
+ readonly future?: IFutureModel;
11
+ readonly purgeTroubles: TroubleModel[];
12
+ readonly primeTroubles: TroubleModel[];
13
+ readonly resolvablePrimeTroubles: TroubleModel[];
14
+ readonly resolvablePurgeTroubles: TroubleModel[];
15
+ readonly hasPurgeTroubles: boolean;
16
+ readonly hasPrimeTroubles: boolean;
17
+ readonly queuedPurgeTroubles: TroubleModel[];
18
+ readonly queuedPrimeTroubles: TroubleModel[];
19
+ readonly hasResolvablePurgeTroubles: boolean;
20
+ readonly hasResolvablePrimeTroubles: boolean;
21
+ }
@@ -0,0 +1,13 @@
1
+ import { DispenserModel, DispenserOptions } from './types';
2
+ import { IKosModelLogger, KosContextLogger, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
3
+
4
+ export declare const MODEL_TYPE = "dispenser-model";
5
+ export declare class DispenserModelImpl implements DispenserModel, IKosModelLogger {
6
+ id: string;
7
+ logger: KosContextLogger;
8
+ constructor(modelId: string, options: DispenserOptions, context: KosCreationContext);
9
+ updateModel(): void;
10
+ init(): Promise<void>;
11
+ load(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=dispenser-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispenser-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser/dispenser-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAE5C,qBACa,kBAAmB,YAAW,cAAc,EAAE,eAAe;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,gBAAgB,CAAC;gBAEvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;IAS7B,WAAW,IAAI,IAAI;IAMb,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}