@kosdev-code/kos-dispense-sdk 0.1.0-dev.5053

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 (346) hide show
  1. package/dispense-registration-manager-BZ5L3AWX.cjs +2 -0
  2. package/dispense-registration-manager-BZ5L3AWX.cjs.map +1 -0
  3. package/dispense-registration-manager-CB_nSTZw.js +1912 -0
  4. package/dispense-registration-manager-CB_nSTZw.js.map +1 -0
  5. package/extension-utils-CkYqorcG.js +381 -0
  6. package/extension-utils-CkYqorcG.js.map +1 -0
  7. package/extension-utils-DUel3wIz.cjs +2 -0
  8. package/extension-utils-DUel3wIz.cjs.map +1 -0
  9. package/extensions/control-pour-extension.d.ts +70 -0
  10. package/extensions/control-pour-extension.d.ts.map +1 -0
  11. package/extensions/index.d.ts +2 -0
  12. package/extensions/index.d.ts.map +1 -0
  13. package/index.cjs +2 -0
  14. package/index.cjs.map +1 -0
  15. package/index.d.ts +6 -0
  16. package/index.d.ts.map +1 -0
  17. package/index.js +133 -0
  18. package/index.js.map +1 -0
  19. package/models/constants/constants.d.ts +230 -0
  20. package/models/constants/constants.d.ts.map +1 -0
  21. package/models/constants/index.d.ts +2 -0
  22. package/models/constants/index.d.ts.map +1 -0
  23. package/models/index.d.ts +6 -0
  24. package/models/index.d.ts.map +1 -0
  25. package/models/models/assembly/assembly-model.d.ts +41 -0
  26. package/models/models/assembly/assembly-model.d.ts.map +1 -0
  27. package/models/models/assembly/assembly-registration.d.ts +81 -0
  28. package/models/models/assembly/assembly-registration.d.ts.map +1 -0
  29. package/models/models/assembly/board-utils.d.ts +6 -0
  30. package/models/models/assembly/board-utils.d.ts.map +1 -0
  31. package/models/models/assembly/holder-utils.d.ts +5 -0
  32. package/models/models/assembly/holder-utils.d.ts.map +1 -0
  33. package/models/models/assembly/index.d.ts +5 -0
  34. package/models/models/assembly/index.d.ts.map +1 -0
  35. package/models/models/assembly/nozzle-utils.d.ts +6 -0
  36. package/models/models/assembly/nozzle-utils.d.ts.map +1 -0
  37. package/models/models/assembly/pump-utils.d.ts +7 -0
  38. package/models/models/assembly/pump-utils.d.ts.map +1 -0
  39. package/models/models/assembly/services/assembly-services.d.ts +8 -0
  40. package/models/models/assembly/services/assembly-services.d.ts.map +1 -0
  41. package/models/models/assembly/services/index.d.ts +2 -0
  42. package/models/models/assembly/services/index.d.ts.map +1 -0
  43. package/models/models/assembly/types/index.d.ts +64 -0
  44. package/models/models/availability/availability-model.d.ts +89 -0
  45. package/models/models/availability/availability-model.d.ts.map +1 -0
  46. package/models/models/availability/index.d.ts +3 -0
  47. package/models/models/availability/index.d.ts.map +1 -0
  48. package/models/models/availability/types/index.d.ts +79 -0
  49. package/models/models/board/board-container-model.d.ts +23 -0
  50. package/models/models/board/board-container-model.d.ts.map +1 -0
  51. package/models/models/board/board-container-registration.d.ts +87 -0
  52. package/models/models/board/board-container-registration.d.ts.map +1 -0
  53. package/models/models/board/board-model.d.ts +18 -0
  54. package/models/models/board/board-model.d.ts.map +1 -0
  55. package/models/models/board/board-registration.d.ts +84 -0
  56. package/models/models/board/board-registration.d.ts.map +1 -0
  57. package/models/models/board/index.d.ts +5 -0
  58. package/models/models/board/index.d.ts.map +1 -0
  59. package/models/models/board/types/index.d.ts +36 -0
  60. package/models/models/board/types/services.d.ts +12 -0
  61. package/models/models/board/types/services.d.ts.map +1 -0
  62. package/models/models/board/utils/board-trouble-data-mapper.d.ts +7 -0
  63. package/models/models/board/utils/board-trouble-data-mapper.d.ts.map +1 -0
  64. package/models/models/board/utils/board-trouble-resolver.d.ts +7 -0
  65. package/models/models/board/utils/board-trouble-resolver.d.ts.map +1 -0
  66. package/models/models/device-assembly/device-assembly-model.d.ts +17 -0
  67. package/models/models/device-assembly/device-assembly-model.d.ts.map +1 -0
  68. package/models/models/device-assembly/device-assembly-registration.d.ts +89 -0
  69. package/models/models/device-assembly/device-assembly-registration.d.ts.map +1 -0
  70. package/models/models/device-assembly/index.d.ts +4 -0
  71. package/models/models/device-assembly/index.d.ts.map +1 -0
  72. package/models/models/device-assembly/types/index.d.ts +1 -0
  73. package/models/models/generic-pour/generic-pour-model.d.ts +53 -0
  74. package/models/models/generic-pour/generic-pour-model.d.ts.map +1 -0
  75. package/models/models/generic-pour/generic-pour-registration.d.ts +87 -0
  76. package/models/models/generic-pour/generic-pour-registration.d.ts.map +1 -0
  77. package/models/models/generic-pour/index.d.ts +5 -0
  78. package/models/models/generic-pour/index.d.ts.map +1 -0
  79. package/models/models/generic-pour/services/generic-pour-services.d.ts +16 -0
  80. package/models/models/generic-pour/services/generic-pour-services.d.ts.map +1 -0
  81. package/models/models/generic-pour/services/index.d.ts +2 -0
  82. package/models/models/generic-pour/services/index.d.ts.map +1 -0
  83. package/models/models/generic-pour/types/index.d.ts +5 -0
  84. package/models/models/holder/holder-model.d.ts +93 -0
  85. package/models/models/holder/holder-model.d.ts.map +1 -0
  86. package/models/models/holder/index.d.ts +5 -0
  87. package/models/models/holder/index.d.ts.map +1 -0
  88. package/models/models/holder/services/assignment-services.d.ts +25 -0
  89. package/models/models/holder/services/assignment-services.d.ts.map +1 -0
  90. package/models/models/holder/services/holder-services.d.ts +28 -0
  91. package/models/models/holder/services/holder-services.d.ts.map +1 -0
  92. package/models/models/holder/services/index.d.ts +3 -0
  93. package/models/models/holder/services/index.d.ts.map +1 -0
  94. package/models/models/holder/types/index.d.ts +170 -0
  95. package/models/models/holder/utils/holder-utils.d.ts +9 -0
  96. package/models/models/holder/utils/holder-utils.d.ts.map +1 -0
  97. package/models/models/holder-container/holder-container-model.d.ts +80 -0
  98. package/models/models/holder-container/holder-container-model.d.ts.map +1 -0
  99. package/models/models/holder-container/index.d.ts +3 -0
  100. package/models/models/holder-container/index.d.ts.map +1 -0
  101. package/models/models/holder-container/types/index.d.ts +69 -0
  102. package/models/models/index.d.ts +14 -0
  103. package/models/models/index.d.ts.map +1 -0
  104. package/models/models/ingredient/index.d.ts +4 -0
  105. package/models/models/ingredient/index.d.ts.map +1 -0
  106. package/models/models/ingredient/ingredient-model.d.ts +86 -0
  107. package/models/models/ingredient/ingredient-model.d.ts.map +1 -0
  108. package/models/models/ingredient/services/index.d.ts +2 -0
  109. package/models/models/ingredient/services/index.d.ts.map +1 -0
  110. package/models/models/ingredient/services/ingredient-services.d.ts +30 -0
  111. package/models/models/ingredient/services/ingredient-services.d.ts.map +1 -0
  112. package/models/models/ingredient/types/index.d.ts +67 -0
  113. package/models/models/ingredient-container/index.d.ts +3 -0
  114. package/models/models/ingredient-container/index.d.ts.map +1 -0
  115. package/models/models/ingredient-container/ingredient-container-model.d.ts +80 -0
  116. package/models/models/ingredient-container/ingredient-container-model.d.ts.map +1 -0
  117. package/models/models/ingredient-container/types/index.d.ts +67 -0
  118. package/models/models/nozzle/index.d.ts +5 -0
  119. package/models/models/nozzle/index.d.ts.map +1 -0
  120. package/models/models/nozzle/nozzle-model.d.ts +257 -0
  121. package/models/models/nozzle/nozzle-model.d.ts.map +1 -0
  122. package/models/models/nozzle/services/index.d.ts +2 -0
  123. package/models/models/nozzle/services/index.d.ts.map +1 -0
  124. package/models/models/nozzle/services/nozzle-services.d.ts +182 -0
  125. package/models/models/nozzle/services/nozzle-services.d.ts.map +1 -0
  126. package/models/models/nozzle/types/index.d.ts +85 -0
  127. package/models/models/pump/index.d.ts +4 -0
  128. package/models/models/pump/index.d.ts.map +1 -0
  129. package/models/models/pump/pump-model.d.ts +91 -0
  130. package/models/models/pump/pump-model.d.ts.map +1 -0
  131. package/models/models/pump/services/index.d.ts +2 -0
  132. package/models/models/pump/services/index.d.ts.map +1 -0
  133. package/models/models/pump/services/pump-services.d.ts +27 -0
  134. package/models/models/pump/services/pump-services.d.ts.map +1 -0
  135. package/models/models/pump/types/index.d.ts +56 -0
  136. package/models/models/pump/utils/pump-trouble-resolver.d.ts +8 -0
  137. package/models/models/pump/utils/pump-trouble-resolver.d.ts.map +1 -0
  138. package/models/models/pump-container/index.d.ts +3 -0
  139. package/models/models/pump-container/index.d.ts.map +1 -0
  140. package/models/models/pump-container/pump-container-model.d.ts +85 -0
  141. package/models/models/pump-container/pump-container-model.d.ts.map +1 -0
  142. package/models/models/pump-container/types/index.d.ts +31 -0
  143. package/models/models/types/assembly.d.ts +83 -0
  144. package/models/models/types/assembly.d.ts.map +1 -0
  145. package/models/models/types/index.d.ts +4 -0
  146. package/models/models/types/index.d.ts.map +1 -0
  147. package/models/models/types/intent.d.ts +19 -0
  148. package/models/models/types/intent.d.ts.map +1 -0
  149. package/models/models/types/pouring.d.ts +9 -0
  150. package/models/models/types/pouring.d.ts.map +1 -0
  151. package/models/utils/dispense-registration-manager.d.ts +28 -0
  152. package/models/utils/dispense-registration-manager.d.ts.map +1 -0
  153. package/models/utils/extension-utils.d.ts +266 -0
  154. package/models/utils/extension-utils.d.ts.map +1 -0
  155. package/models/utils/openapi.d.ts +9276 -0
  156. package/models/utils/registration.d.ts +4 -0
  157. package/models/utils/registration.d.ts.map +1 -0
  158. package/models/utils/service.d.ts +80 -0
  159. package/models/utils/service.d.ts.map +1 -0
  160. package/models.cjs +2 -0
  161. package/models.cjs.map +1 -0
  162. package/models.d.ts +1 -0
  163. package/models.js +42 -0
  164. package/models.js.map +1 -0
  165. package/package.json +39 -0
  166. package/pump-provider-86479YU2.cjs +2 -0
  167. package/pump-provider-86479YU2.cjs.map +1 -0
  168. package/pump-provider-DSyiDoPF.js +1304 -0
  169. package/pump-provider-DSyiDoPF.js.map +1 -0
  170. package/ui/contexts/assembly/assembly-provider.d.ts +12 -0
  171. package/ui/contexts/assembly/assembly-provider.d.ts.map +1 -0
  172. package/ui/contexts/assembly/index.d.ts +2 -0
  173. package/ui/contexts/assembly/index.d.ts.map +1 -0
  174. package/ui/contexts/availability/availability-provider.d.ts +13 -0
  175. package/ui/contexts/availability/availability-provider.d.ts.map +1 -0
  176. package/ui/contexts/availability/index.d.ts +2 -0
  177. package/ui/contexts/availability/index.d.ts.map +1 -0
  178. package/ui/contexts/board/board-provider.d.ts +13 -0
  179. package/ui/contexts/board/board-provider.d.ts.map +1 -0
  180. package/ui/contexts/board/index.d.ts +2 -0
  181. package/ui/contexts/board/index.d.ts.map +1 -0
  182. package/ui/contexts/board-container/board-container-provider.d.ts +12 -0
  183. package/ui/contexts/board-container/board-container-provider.d.ts.map +1 -0
  184. package/ui/contexts/board-container/index.d.ts +2 -0
  185. package/ui/contexts/board-container/index.d.ts.map +1 -0
  186. package/ui/contexts/cui-kit/cui-kit.d.ts +29 -0
  187. package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -0
  188. package/ui/contexts/cui-kit/index.d.ts +2 -0
  189. package/ui/contexts/cui-kit/index.d.ts.map +1 -0
  190. package/ui/contexts/device-assembly/device-assembly-provider.d.ts +12 -0
  191. package/ui/contexts/device-assembly/device-assembly-provider.d.ts.map +1 -0
  192. package/ui/contexts/device-assembly/index.d.ts +2 -0
  193. package/ui/contexts/device-assembly/index.d.ts.map +1 -0
  194. package/ui/contexts/holder/holder-provider.d.ts +13 -0
  195. package/ui/contexts/holder/holder-provider.d.ts.map +1 -0
  196. package/ui/contexts/holder/index.d.ts +2 -0
  197. package/ui/contexts/holder/index.d.ts.map +1 -0
  198. package/ui/contexts/holder-container/holder-container-provider.d.ts +13 -0
  199. package/ui/contexts/holder-container/holder-container-provider.d.ts.map +1 -0
  200. package/ui/contexts/holder-container/index.d.ts +2 -0
  201. package/ui/contexts/holder-container/index.d.ts.map +1 -0
  202. package/ui/contexts/index.d.ts +13 -0
  203. package/ui/contexts/index.d.ts.map +1 -0
  204. package/ui/contexts/ingredient/index.d.ts +2 -0
  205. package/ui/contexts/ingredient/index.d.ts.map +1 -0
  206. package/ui/contexts/ingredient/ingredient-provider.d.ts +13 -0
  207. package/ui/contexts/ingredient/ingredient-provider.d.ts.map +1 -0
  208. package/ui/contexts/ingredient-container/index.d.ts +2 -0
  209. package/ui/contexts/ingredient-container/index.d.ts.map +1 -0
  210. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts +13 -0
  211. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts.map +1 -0
  212. package/ui/contexts/nozzle/index.d.ts +2 -0
  213. package/ui/contexts/nozzle/index.d.ts.map +1 -0
  214. package/ui/contexts/nozzle/nozzle-provider.d.ts +13 -0
  215. package/ui/contexts/nozzle/nozzle-provider.d.ts.map +1 -0
  216. package/ui/contexts/pump/index.d.ts +2 -0
  217. package/ui/contexts/pump/index.d.ts.map +1 -0
  218. package/ui/contexts/pump/pump-provider.d.ts +13 -0
  219. package/ui/contexts/pump/pump-provider.d.ts.map +1 -0
  220. package/ui/hooks/assembly/index.d.ts +3 -0
  221. package/ui/hooks/assembly/index.d.ts.map +1 -0
  222. package/ui/hooks/assembly/use-assembly.d.ts +14 -0
  223. package/ui/hooks/assembly/use-assembly.d.ts.map +1 -0
  224. package/ui/hooks/assembly/with-assembly.d.ts +8 -0
  225. package/ui/hooks/assembly/with-assembly.d.ts.map +1 -0
  226. package/ui/hooks/availability/index.d.ts +3 -0
  227. package/ui/hooks/availability/index.d.ts.map +1 -0
  228. package/ui/hooks/availability/use-availability.d.ts +14 -0
  229. package/ui/hooks/availability/use-availability.d.ts.map +1 -0
  230. package/ui/hooks/availability/with-availability.d.ts +8 -0
  231. package/ui/hooks/availability/with-availability.d.ts.map +1 -0
  232. package/ui/hooks/board/index.d.ts +3 -0
  233. package/ui/hooks/board/index.d.ts.map +1 -0
  234. package/ui/hooks/board/use-board.d.ts +14 -0
  235. package/ui/hooks/board/use-board.d.ts.map +1 -0
  236. package/ui/hooks/board/with-board.d.ts +8 -0
  237. package/ui/hooks/board/with-board.d.ts.map +1 -0
  238. package/ui/hooks/board-container/index.d.ts +3 -0
  239. package/ui/hooks/board-container/index.d.ts.map +1 -0
  240. package/ui/hooks/board-container/use-board-container.d.ts +14 -0
  241. package/ui/hooks/board-container/use-board-container.d.ts.map +1 -0
  242. package/ui/hooks/board-container/with-board-container.d.ts +8 -0
  243. package/ui/hooks/board-container/with-board-container.d.ts.map +1 -0
  244. package/ui/hooks/cui-kit/index.d.ts +8 -0
  245. package/ui/hooks/cui-kit/index.d.ts.map +1 -0
  246. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts +18 -0
  247. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts.map +1 -0
  248. package/ui/hooks/cui-kit/use-beverages.d.ts +17 -0
  249. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -0
  250. package/ui/hooks/cui-kit/use-brands.d.ts +17 -0
  251. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -0
  252. package/ui/hooks/cui-kit/use-cui-kit.d.ts +192 -0
  253. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -0
  254. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts +162 -0
  255. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -0
  256. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts +23 -0
  257. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts.map +1 -0
  258. package/ui/hooks/cui-kit/use-dispense-timers.d.ts +17 -0
  259. package/ui/hooks/cui-kit/use-dispense-timers.d.ts.map +1 -0
  260. package/ui/hooks/cui-kit/use-flavors.d.ts +17 -0
  261. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -0
  262. package/ui/hooks/device-assembly/index.d.ts +3 -0
  263. package/ui/hooks/device-assembly/index.d.ts.map +1 -0
  264. package/ui/hooks/device-assembly/use-device-assembly.d.ts +14 -0
  265. package/ui/hooks/device-assembly/use-device-assembly.d.ts.map +1 -0
  266. package/ui/hooks/device-assembly/with-device-assembly.d.ts +9 -0
  267. package/ui/hooks/device-assembly/with-device-assembly.d.ts.map +1 -0
  268. package/ui/hooks/generic-pour/index.d.ts +3 -0
  269. package/ui/hooks/generic-pour/index.d.ts.map +1 -0
  270. package/ui/hooks/generic-pour/use-generic-pour.d.ts +15 -0
  271. package/ui/hooks/generic-pour/use-generic-pour.d.ts.map +1 -0
  272. package/ui/hooks/generic-pour/with-generic-pour.d.ts +14 -0
  273. package/ui/hooks/generic-pour/with-generic-pour.d.ts.map +1 -0
  274. package/ui/hooks/holder/index.d.ts +3 -0
  275. package/ui/hooks/holder/index.d.ts.map +1 -0
  276. package/ui/hooks/holder/use-holder.d.ts +14 -0
  277. package/ui/hooks/holder/use-holder.d.ts.map +1 -0
  278. package/ui/hooks/holder/with-holder.d.ts +8 -0
  279. package/ui/hooks/holder/with-holder.d.ts.map +1 -0
  280. package/ui/hooks/holder-container/index.d.ts +3 -0
  281. package/ui/hooks/holder-container/index.d.ts.map +1 -0
  282. package/ui/hooks/holder-container/use-holder-container.d.ts +14 -0
  283. package/ui/hooks/holder-container/use-holder-container.d.ts.map +1 -0
  284. package/ui/hooks/holder-container/with-holder-container.d.ts +8 -0
  285. package/ui/hooks/holder-container/with-holder-container.d.ts.map +1 -0
  286. package/ui/hooks/index.d.ts +16 -0
  287. package/ui/hooks/index.d.ts.map +1 -0
  288. package/ui/hooks/ingredient/index.d.ts +4 -0
  289. package/ui/hooks/ingredient/index.d.ts.map +1 -0
  290. package/ui/hooks/ingredient/use-ingredient-pour.d.ts +49 -0
  291. package/ui/hooks/ingredient/use-ingredient-pour.d.ts.map +1 -0
  292. package/ui/hooks/ingredient/use-ingredient.d.ts +14 -0
  293. package/ui/hooks/ingredient/use-ingredient.d.ts.map +1 -0
  294. package/ui/hooks/ingredient/with-ingredient.d.ts +8 -0
  295. package/ui/hooks/ingredient/with-ingredient.d.ts.map +1 -0
  296. package/ui/hooks/ingredient-container/index.d.ts +3 -0
  297. package/ui/hooks/ingredient-container/index.d.ts.map +1 -0
  298. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts +14 -0
  299. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts.map +1 -0
  300. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts +8 -0
  301. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts.map +1 -0
  302. package/ui/hooks/nozzle/index.d.ts +3 -0
  303. package/ui/hooks/nozzle/index.d.ts.map +1 -0
  304. package/ui/hooks/nozzle/use-dispense-kit.d.ts +22 -0
  305. package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -0
  306. package/ui/hooks/nozzle/use-nozzle.d.ts +14 -0
  307. package/ui/hooks/nozzle/use-nozzle.d.ts.map +1 -0
  308. package/ui/hooks/nozzle/with-nozzle.d.ts +8 -0
  309. package/ui/hooks/nozzle/with-nozzle.d.ts.map +1 -0
  310. package/ui/hooks/nozzle-pour/index.d.ts +2 -0
  311. package/ui/hooks/nozzle-pour/index.d.ts.map +1 -0
  312. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts +57 -0
  313. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts.map +1 -0
  314. package/ui/hooks/pour/index.d.ts +2 -0
  315. package/ui/hooks/pour/index.d.ts.map +1 -0
  316. package/ui/hooks/pour/use-pour.d.ts +55 -0
  317. package/ui/hooks/pour/use-pour.d.ts.map +1 -0
  318. package/ui/hooks/pump/index.d.ts +3 -0
  319. package/ui/hooks/pump/index.d.ts.map +1 -0
  320. package/ui/hooks/pump/use-pump.d.ts +14 -0
  321. package/ui/hooks/pump/use-pump.d.ts.map +1 -0
  322. package/ui/hooks/pump/with-pump.d.ts +8 -0
  323. package/ui/hooks/pump/with-pump.d.ts.map +1 -0
  324. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts +5 -0
  325. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts.map +1 -0
  326. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts +4 -0
  327. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts.map +1 -0
  328. package/ui/hooks/utils/pour-strategy/index.d.ts +7 -0
  329. package/ui/hooks/utils/pour-strategy/index.d.ts.map +1 -0
  330. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts +16 -0
  331. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts.map +1 -0
  332. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts +13 -0
  333. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts.map +1 -0
  334. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts +5 -0
  335. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts.map +1 -0
  336. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts +4 -0
  337. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts.map +1 -0
  338. package/ui/index.d.ts +4 -0
  339. package/ui/index.d.ts.map +1 -0
  340. package/ui/utils/pour-context.d.ts +8 -0
  341. package/ui/utils/pour-context.d.ts.map +1 -0
  342. package/ui.cjs +2 -0
  343. package/ui.cjs.map +1 -0
  344. package/ui.d.ts +1 -0
  345. package/ui.js +75 -0
  346. package/ui.js.map +1 -0
package/index.js ADDED
@@ -0,0 +1,133 @@
1
+ import { A as y, b as A, e as I, d as E, B as x, C as S, a as T, f as D, D as N, l as b, E as B, G as h, H as _, g as O, I as f, h as w, K as z, N as H, k as K, P as R, i as G, j as M, T as L, c as U, l as V, r as k } from "./dispense-registration-manager-CB_nSTZw.js";
2
+ import { i as F, f as W, D as Y, a as j, b as q, c as J, K as Q, d as Z, e as $, g as ee } from "./extension-utils-CkYqorcG.js";
3
+ import { A as ae, a as oe, d as re, B as te, f as ie, C as ne, G as ue, F as le, J as de, D as Pe, a4 as Ce, a5 as ce, j as pe, H as me, m as ge, I as ve, N as ye, ab as Ae, P as Ie, a6 as Ee, a7 as xe, a8 as Se, i as Te, q as De, u as Ne, r as be, b as Be, z as he, t as _e, x as Oe, e as fe, c as we, E as ze, K as He, O as Ke, L as Re, R as Ge, g as Me, M as Le, Q as Ue, a9 as Ve, T as ke, V as Xe, k as Fe, h as We, X as Ye, _ as je, n as qe, l as Je, Y as Qe, a0 as Ze, o as $e, a2 as es, a3 as ss, p as as, w as os, s as rs, v as ts, y as is, S as ns, aa as us, U as ls, W as ds, Z as Ps, $ as Cs, a1 as cs } from "./pump-provider-DSyiDoPF.js";
4
+ import { createExtensionSchema as r, extensionPointId as t, defineExtensionPoint as i, createViewAwareTransform as n, validateWithSchema as u } from "@kosdev-code/kos-ui-plugin/utilities";
5
+ import "@kosdev-code/kos-ui-sdk";
6
+ import "react";
7
+ import "@emotion/react/jsx-runtime";
8
+ import "@kosdev-code/kos-dispense-sdk";
9
+ const e = r({}, { rankable: !1 }), s = t("cui", "control", "pour"), p = i({
10
+ id: s,
11
+ contributionKey: "controlPour",
12
+ displayName: "Control Pour",
13
+ description: "Extension point for controlled pour plugin configurations with view support",
14
+ hasView: !0,
15
+ isRankable: !1,
16
+ schema: e,
17
+ metadata: {
18
+ exportName: "ControlPourExtension",
19
+ category: "Dispense",
20
+ tags: ["pour", "control", "beverage"]
21
+ },
22
+ validate: (a, o) => {
23
+ u(e, a, o);
24
+ },
25
+ transform: n()
26
+ }), m = s;
27
+ export {
28
+ y as Assembly,
29
+ ae as AssemblyProvider,
30
+ F as AssemblyServices,
31
+ W as AssemblyTypes,
32
+ A as Availability,
33
+ oe as AvailabilityProvider,
34
+ I as Board,
35
+ E as BoardContainer,
36
+ x as BoardContainerModel,
37
+ re as BoardContainerProvider,
38
+ te as BoardProvider,
39
+ S as CONTEXT_ASSEMBLY_DATA,
40
+ T as CONTEXT_ASSEMBLY_RAW_DATA,
41
+ p as ControlPourExtension,
42
+ ie as CuiKit,
43
+ ne as CuiKitWrapper,
44
+ ue as DISPENSE_GROUP_BEVERAGE,
45
+ le as DISPENSE_GROUP_BRAND,
46
+ de as DISPENSE_GROUP_FLAVOR,
47
+ D as DeviceAssembly,
48
+ Pe as DeviceAssemblyProvider,
49
+ Y as DispenseExtensionManager,
50
+ N as DispenseModelType,
51
+ b as DispenserModels,
52
+ m as EXTENSION_POINT_CONTROL_POUR,
53
+ B as ExtensionType,
54
+ h as GenericPour,
55
+ j as GenericPourServices,
56
+ Ce as HoldToPourIntentStrategy,
57
+ ce as HoldToPourStrategy,
58
+ _ as Holder,
59
+ O as HolderContainer,
60
+ pe as HolderContainerProvider,
61
+ me as HolderProvider,
62
+ q as HolderServices,
63
+ f as Ingredient,
64
+ w as IngredientContainer,
65
+ ge as IngredientContainerProvider,
66
+ ve as IngredientProvider,
67
+ J as IngredientServices,
68
+ Q as KosExtensionManager,
69
+ z as KosModelRegistry,
70
+ H as Nozzle,
71
+ ye as NozzleProvider,
72
+ Z as NozzleServices,
73
+ Ae as PourContext,
74
+ K as PourState,
75
+ R as Pump,
76
+ G as PumpContainer,
77
+ M as PumpIndex,
78
+ Ie as PumpProvider,
79
+ $ as PumpServices,
80
+ L as TOPIC_BOARD_LINKED,
81
+ U as TOPIC_BOARD_UNLINKED,
82
+ Ee as TapOrHoldIntentStrategy,
83
+ xe as TapToPourIntentStrategy,
84
+ Se as TapToPourStrategy,
85
+ ee as getFuelGaugeValue,
86
+ Te as initializeCuiKit,
87
+ V as kosModels,
88
+ k as registerDispenseModels,
89
+ De as useAssembly,
90
+ Ne as useAssemblyContext,
91
+ be as useAvailability,
92
+ Be as useAvailabilityContext,
93
+ he as useBeverages,
94
+ _e as useBoard,
95
+ Oe as useBoardContainer,
96
+ fe as useBoardContainerContext,
97
+ we as useBoardContext,
98
+ ze as useBrands,
99
+ He as useCuiKit,
100
+ Ke as useCuiKitTimers,
101
+ Re as useDefaultCuiKitLifecycle,
102
+ Ge as useDeviceAssembly,
103
+ Me as useDeviceAssemblyContext,
104
+ Le as useDispenseLifecycle,
105
+ Ue as useFlavors,
106
+ Ve as useGenericPour,
107
+ ke as useHolder,
108
+ Xe as useHolderContainer,
109
+ Fe as useHolderContainerContext,
110
+ We as useHolderContext,
111
+ Ye as useIngredient,
112
+ je as useIngredientContainer,
113
+ qe as useIngredientContainerContext,
114
+ Je as useIngredientContext,
115
+ Qe as useIngredientPour,
116
+ Ze as useNozzle,
117
+ $e as useNozzleContext,
118
+ es as useNozzlePour,
119
+ ss as usePourTarget,
120
+ as as usePumpContext,
121
+ os as withAssembly,
122
+ rs as withBeverage,
123
+ ts as withBoard,
124
+ is as withBoardContainer,
125
+ ns as withDeviceAssembly,
126
+ us as withGenericPour,
127
+ ls as withHolder,
128
+ ds as withHolderContainer,
129
+ Ps as withIngredient,
130
+ Cs as withIngredientContainer,
131
+ cs as withNozzle
132
+ };
133
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/sdk/kos-dispense-sdk/src/extensions/control-pour-extension.ts"],"sourcesContent":["// eslint-disable-next-line @nx/enforce-module-boundaries\nimport {\n createExtensionSchema,\n createViewAwareTransform,\n defineExtensionPoint,\n extensionPointId,\n validateWithSchema,\n type ValidationContext,\n} from \"@kosdev-code/kos-ui-plugin/utilities\";\nimport { z } from \"zod\";\n\n// Define the Zod schema for Control Pour contributions\nconst ControlPourSchema = createExtensionSchema({}, { rankable: false });\n\n// Define the control pour types locally\ntype ControlPourDefinition = z.infer<typeof ControlPourSchema>;\n\nconst EXTENSION_ID = extensionPointId(\"cui\", \"control\", \"pour\");\n\n/**\n * Control Pour extension point for beverage dispensing interfaces\n *\n * Allows plugin developers to contribute controlled pour functionality\n * to CUI applications that register this extension point.\n */\nexport const ControlPourExtension = defineExtensionPoint<\n ControlPourDefinition,\n ControlPourDefinition\n>({\n id: EXTENSION_ID,\n contributionKey: \"controlPour\",\n displayName: \"Control Pour\",\n description:\n \"Extension point for controlled pour plugin configurations with view support\",\n hasView: true,\n isRankable: false,\n\n schema: ControlPourSchema,\n metadata: {\n exportName: \"ControlPourExtension\",\n category: \"Dispense\",\n tags: [\"pour\", \"control\", \"beverage\"],\n },\n\n validate: (data: ControlPourDefinition, context: ValidationContext) => {\n // Use Zod validation\n validateWithSchema(ControlPourSchema, data, context);\n },\n\n transform: createViewAwareTransform<ControlPourDefinition>(),\n});\n\n// Export constants for backward compatibility\nexport const EXTENSION_POINT_CONTROL_POUR = EXTENSION_ID;\nexport type { ControlPourDefinition };\n"],"names":["ControlPourSchema","createExtensionSchema","EXTENSION_ID","extensionPointId","ControlPourExtension","defineExtensionPoint","data","context","validateWithSchema","createViewAwareTransform","EXTENSION_POINT_CONTROL_POUR"],"mappings":";;;;;;;;AAYA,MAAMA,IAAoBC,EAAsB,CAAA,GAAI,EAAE,UAAU,IAAO,GAKjEC,IAAeC,EAAiB,OAAO,WAAW,MAAM,GAQjDC,IAAuBC,EAGlC;AAAA,EACA,IAAIH;AAAA,EACJ,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aACE;AAAA,EACF,SAAS;AAAA,EACT,YAAY;AAAA,EAEZ,QAAQF;AAAA,EACR,UAAU;AAAA,IACR,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,MAAM,CAAC,QAAQ,WAAW,UAAU;AAAA,EAAA;AAAA,EAGtC,UAAU,CAACM,GAA6BC,MAA+B;AAErE,IAAAC,EAAmBR,GAAmBM,GAAMC,CAAO;AAAA,EACrD;AAAA,EAEA,WAAWE,EAAA;AACb,CAAC,GAGYC,IAA+BR;"}
@@ -0,0 +1,230 @@
1
+ /**
2
+ * Extension point exposed by the KOS Dispense SDK models
3
+ * */
4
+ export declare enum ExtensionType {
5
+ /**
6
+ * Loads data that will be provided as context into the {@link IngredientMapper}
7
+ *
8
+ * @example
9
+ * The following example shows how to load the brandset data, normalize it into a map and then provide it back to the framework
10
+ * where it can be used by the other extension points.
11
+ *
12
+ * In the ingredient container model, the data is provided to the {@link IngredientMapper} extension point in order to augment ingredient data
13
+ * and also loaded into the ingredient container model context in order to make the data available throughout the code.
14
+ *
15
+ * ```typescript
16
+ * export const ingredientContextLoader = async (): Promise<BeverageContext> => {
17
+ * const response = await kosFetch('kos:/system/some/ingredient/endpoint.json');
18
+ *
19
+ * if (response.status !== 200) {
20
+ * KosLog.error('Failed to load ingredient data');
21
+ * return {};
22
+ * }
23
+ * const json = await response.json();
24
+ * return json;
25
+ * };
26
+ * ```
27
+ * */
28
+ IngredientLoader = "kos.ingredient.loader",
29
+ /**
30
+ * Maps data into the {@link IngredientModel}
31
+ *
32
+ * It is common for the ingredient data provided by the ingredient service to be augmented with additional properties that are
33
+ * not provided by the base KOS Ingredient model. The {@link IngredientMapper} extension point allows for the data to be mapped
34
+ * into the {@link IngredientModel} and the {@link IngredientModel.data} property to be augmented with additional properties.
35
+ *
36
+ * @example
37
+ * The following example shows how to map the data from the service response into the {@link IngredientModel}.
38
+ * The context is provided by the {@link IngredientLoader} extension point with its data being used to optionally augment the
39
+ * ingredient data.
40
+ *
41
+ * The result of the mapping will be available in the `data` property of the {@link IngredientModel}.
42
+ *
43
+ * In this case the `IngedientReponseData` interface represents the data being returned by the ingredient service and the
44
+ * `IngredientData` interface represents the data that will be available in the {@link IngredientModel.data} property. The `ingredientDataMapper`
45
+ * is responsible for mapping from one format to the other.
46
+ *
47
+ * ```typescript
48
+ *
49
+ * interface IngredientResponseData extends NozzleServices.IngredientResponse {
50
+ * chilled: boolean;
51
+ * carbonated: boolean;
52
+ * highYield: boolean;
53
+ * }
54
+ *
55
+ * interface IngredientData {
56
+ * chilled: boolean;
57
+ * carbonated: boolean;
58
+ * highYield: boolean;
59
+ * }
60
+ *
61
+ * export const ingredientDataMapper = async (
62
+ * data: IngredientResponseData,
63
+ * context: IngredientContext
64
+ * ): Promise<IngredientData> => {
65
+ * return {
66
+ * chilled: data.chilled,
67
+ * carbonated: data.carbonated,
68
+ * highYield: data.highYield,
69
+ * }
70
+ * }
71
+ * ```
72
+ * */
73
+ IngredientMapper = "kos.ingredient.mapper",
74
+ IngredientIndex = "kos.ingredient.index",
75
+ /**
76
+ * Maps the type property of the ingredient into the {@link IngredientModel}
77
+ * */
78
+ IngredientTypeMapper = "kos.ingredient.type.mapper",
79
+ /**
80
+ * Maps the type property of the holder into the {@link HolderModel}
81
+ * */
82
+ HolderTypeMapper = "kos.holder.type.mapper",
83
+ HolderMapper = "kos.holder.mapper",
84
+ HolderIndex = "kos.holder.index",
85
+ /**
86
+ * Maps the ingredientId property of the holder into the {@link HolderModel}.
87
+ * If not provided, the ingredientId will assume that the value is mapped from the
88
+ * ingredientId property of the service response.
89
+ * */
90
+ HolderIngredientMapper = "kos.holder.ingredient.mapper",
91
+ /**
92
+ * Maps data into the {@link AvailabilityModel}
93
+ *
94
+ * @example
95
+ * The following example shows how to map the data from the service response into the {@link AvailabilityModel}.
96
+ * The context is provided by the {@link AvailabilityLoader} extension point with its data being used to augment the
97
+ * availability data.
98
+ *
99
+ * The result of the mapping will be available in the `data` property of the {@link AvailabilityModel}.
100
+ *
101
+ * ```typescript
102
+ * export const beverageDataMapper = async (
103
+ * data: NozzleServices.BeverageResponse,
104
+ * context: BeverageContext
105
+ * ): Promise<BeverageData> => {
106
+ * const id = data.altId;
107
+ * const iconUrl = encodeURI(
108
+ * `http://localhost:8081/system/brandset/${context?.[id]?.icon}`
109
+ * );
110
+ * const cuiColorCode = context?.[id]?.cuiColorCode
111
+ * ? context?.[id]?.cuiColorCode
112
+ * : '';
113
+ * return { iconUrl, cuiColorCode };
114
+ * };
115
+ * ```
116
+ * */
117
+ AvailabilityMapper = "kos.availability.mapper",
118
+ /**
119
+ * Loads data that will be provided as context into the {@link AvailabilityMapper}
120
+ *
121
+ * @example
122
+ * A common use case is to load brandset data that is UI specific and not provided directly by the Java service.
123
+ *
124
+ * The following example shows how to load the brandset data, normalize it into a map and then provide it back to the framework
125
+ * where it can be used by the other extension points.
126
+ *
127
+ * In the nozzle model, the data is provided to the {@link AvailabilityMapper} extension point in order to augment availability data
128
+ * and also loaded into the nozzle model context in order to make the data available throughout the code.
129
+ *
130
+ * ```typescript
131
+ * export const beverageContextLoader = async (): Promise<BeverageContext> => {
132
+ * const response = await kosFetch('kos:/system/brandset/brandset.json');
133
+ *
134
+ * if (response.status !== 200) {
135
+ * KosLog.error('Failed to load beverage data');
136
+ * return {};
137
+ * }
138
+ * const json: BrandsetResponse | null = await response.json();
139
+ * const initialBeverages: Record<string, BrandsetIngredient> = {};
140
+ * const beverages = json?.ingredients?.reduce((acc, beverage) => {
141
+ * acc[beverage.ingredientId] = beverage;
142
+ * return acc;
143
+ * }, initialBeverages);
144
+ * return beverages;
145
+ * };
146
+ * ```
147
+ * */
148
+ AvailabilityLoader = "kos.availability.loader",
149
+ /**
150
+ * Maps the abstract {@link SelectedPourable} data into a format that is specific to the nozzle.
151
+ * */
152
+ SelectedPourableMapper = "kos.selected.pourable.mapper",
153
+ /**
154
+ * Maps data into the {@link AssemblyModel} data.
155
+ * Used in cases where the base assembly has been extended with additional properties in the backend. This extension
156
+ * point allows for the data to be mapped into the {@link AssemblyModel} and augmented with additional properties.
157
+ *
158
+ * @example
159
+ *
160
+ * In this example of an implementation of a {@link AssemblyMapper}, the {@link AssemblyResponse} data is mapped into
161
+ * a {@link FreestyleAssembly} object.
162
+ *
163
+ * The {@link FreestyleAssemblyResponse} interface represents the additional data being returned by the assembly service and is
164
+ * merged into the {@link AssemblyResponse} interface.
165
+ *
166
+ * The {@link FreestyleAssembly} interface represents the additional data, beyond the base data set, that will be merged into the {@link AssemblyModel}.
167
+ *
168
+ * The mapper is responsible for mapping from the {@link FreestyleAssemblyResponse} format to the {@link FreestyleAssembly} format.
169
+ * ```typescript
170
+ * import { AssemblyTypes } from "@kosdev-code/kos-dispense-sdk";
171
+ * import { DataMapper } from "@kosdev-code/kos-ui-sdk";
172
+ *
173
+ * // define the additional data being returned by the assembly service
174
+ * export interface FreestyleAssemblyResponse {
175
+ * iceAgitator?: {
176
+ * name: "iceAgitator";
177
+ * path: string;
178
+ * };
179
+ * }
180
+ *
181
+ * // define the additional data structure that will be merged into the assembly model
182
+ * export interface FreestyleAssembly {
183
+ * iceAgitator: {
184
+ * path: string;
185
+ * };
186
+ * carbAgitator: {
187
+ * path: string;
188
+ * };
189
+ * }
190
+ *
191
+ *
192
+ * // define the mapper that will map the data from the service response into the additional data structure
193
+ * // that will be merged into the assembly model.
194
+ * // In this case the mapper is responsible for mapping from the {@link FreestyleAssemblyResponse} format to the {@link FreestyleAssembly} format.
195
+ * export const assemblyDataMapper: DataMapper<
196
+ * AssemblyTypes.AssemblyResponse<FreestyleAssemblyResponse>,
197
+ * FreestyleAssembly
198
+ * > = async (data) => {
199
+ * const response = data.assemblies.reduce((acc, assembly) => {
200
+ * const agitatorKeys = ["iceAgitator", "carbAgitator"];
201
+ * agitatorKeys.forEach((key) => {
202
+ * const agitator = assembly[key];
203
+ * if (agitator) {
204
+ * acc[key] = agitator;
205
+ * }
206
+ * });
207
+ *
208
+ * return acc;
209
+ * }, {} as FreestyleAssembly);
210
+ * return response;
211
+ * };
212
+ *```
213
+ */
214
+ AssemblyMapper = "kos.assembly.mapper",
215
+ BoardMapper = "kos.board.mapper",
216
+ BoardIndex = "kos.board.index",
217
+ PumpIndex = "kos.pump.index",
218
+ AssemblyFeatureFlags = "kos.assembly.feature.flags"
219
+ }
220
+ export declare enum DispenseModelType {
221
+ Nozzle = "nozzle-model",
222
+ Availability = "availability-model",
223
+ Holder = "holder-model",
224
+ HolderContainer = "holder-container-model",
225
+ IngredientContainer = "ingredient-container-model",
226
+ Ingredient = "ingredient-model",
227
+ Pump = "pump-model",
228
+ PumpContainer = "pump-container-model"
229
+ }
230
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/constants/constants.ts"],"names":[],"mappings":"AAAA;;KAEK;AACL,oBAAY,aAAa;IACvB;;;;;;;;;;;;;;;;;;;;;;SAsBK;IACL,gBAAgB,0BAA0B;IAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA2CK;IACL,gBAAgB,0BAA0B;IAE1C,eAAe,yBAAyB;IACxC;;SAEK;IACL,oBAAoB,+BAA+B;IAEnD;;SAEK;IACL,gBAAgB,2BAA2B;IAE3C,YAAY,sBAAsB;IAElC,WAAW,qBAAqB;IAChC;;;;SAIK;IACL,sBAAsB,iCAAiC;IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;SAyBK;IACL,kBAAkB,4BAA4B;IAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6BK;IACL,kBAAkB,4BAA4B;IAE9C;;SAEK;IACL,sBAAsB,iCAAiC;IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,cAAc,wBAAwB;IACtC,WAAW,qBAAqB;IAChC,UAAU,oBAAoB;IAC9B,SAAS,mBAAmB;IAC5B,oBAAoB,+BAA+B;CACpD;AAED,oBAAY,iBAAiB;IAC3B,MAAM,iBAAiB;IACvB,YAAY,uBAAuB;IACnC,MAAM,iBAAiB;IACvB,eAAe,2BAA2B;IAC1C,mBAAmB,+BAA+B;IAClD,UAAU,qBAAqB;IAC/B,IAAI,eAAe;IACnB,aAAa,yBAAyB;CACvC"}
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './constants';
2
+ export * from './models';
3
+ export * from './utils/dispense-registration-manager';
4
+ export * from './utils/extension-utils';
5
+ export * from './utils/registration';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/sdk/kos-dispense-sdk/src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { PumpModel } from '../pump';
2
+ import { HolderModel } from '../holder';
3
+ import { BoardModel } from '../board';
4
+ import { AssemblyModel, AssemblyOptions } from './types';
5
+ import { IKosModelLogger, KosContext, KosContextLogger, KosCreationContext } from '@kosdev-code/kos-ui-sdk';
6
+
7
+ export declare const MODEL_TYPE = "assembly-model";
8
+ export declare const CONTEXT_ASSEMBLY_DATA = "assembly-data";
9
+ export declare const CONTEXT_ASSEMBLY_RAW_DATA = "assembly-raw-data";
10
+ export declare class AssemblyModelImpl<AssemblyExt extends object = any, HolderExt extends object = any> implements AssemblyModel<AssemblyExt>, IKosModelLogger {
11
+ id: string;
12
+ private _nozzlePaths;
13
+ private troubleContainer;
14
+ private holderContainer;
15
+ private boardContainer;
16
+ private pumpContainer;
17
+ logger: KosContextLogger;
18
+ constructor(modelId: string, _options: AssemblyOptions, context: KosCreationContext);
19
+ updateModel(_options: AssemblyOptions): void;
20
+ get allHolders(): HolderModel<HolderExt>[];
21
+ get holderGroups(): string[];
22
+ get nozzlePaths(): string[];
23
+ getHoldersByGroup(group: string): HolderModel<HolderExt>[];
24
+ getHoldersByNozzle(nozzlePath: string): HolderModel<HolderExt>[];
25
+ /**
26
+ * Returns a map of the pumps associated with each nozzle
27
+ *
28
+ * Can be used in conjunction with the nozzlePaths to get the pumps associated with each nozzle
29
+ * @returns Record<string, PumpModel[]>
30
+ */
31
+ get pumpsByNozzle(): Record<string, PumpModel<any>[]>;
32
+ /**
33
+ * Returns a list of all fo the pumps paths across the entire assembly.
34
+ */
35
+ get pumpPaths(): string[];
36
+ get boards(): BoardModel<any>[];
37
+ init(): Promise<void>;
38
+ ready(): Promise<void>;
39
+ load(context: KosContext): Promise<void>;
40
+ }
41
+ //# sourceMappingURL=assembly-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AAcjC,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAMzC,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAC3C,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AACrD,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,qBACa,iBAAiB,CAC5B,WAAW,SAAS,MAAM,GAAG,GAAG,EAChC,SAAS,SAAS,MAAM,GAAG,GAAG,CAC9B,YAAW,aAAa,CAAC,WAAW,CAAC,EAAE,eAAe;IAEtD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,YAAY,CAAqB;IAIzC,OAAO,CAAC,gBAAgB,CAAyB;IAEvC,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,cAAc,CAAsB;IAC5C,OAAO,CAAC,aAAa,CAAqB;IACpD,MAAM,EAAE,gBAAgB,CAAC;gBAEvB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,kBAAkB;IAS7B,WAAW,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAI5C,IAAI,UAAU,IAAI,WAAW,CAAC,SAAS,CAAC,EAAE,CAEzC;IAED,IAAI,YAAY,IAAI,MAAM,EAAE,CAE3B;IAED,IAAI,WAAW,IAAI,MAAM,EAAE,CAE1B;IACD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,EAAE;IAI1D,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,EAAE;IAIhE;;;;;OAKG;IACH,IAAI,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAEpD;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAE9B;IAIK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,KAAK;IAQL,IAAI,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CA6E/C"}
@@ -0,0 +1,81 @@
1
+ import { AssemblyModel, AssemblyOptions } from './types';
2
+ import { SingletonKosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * # Assembly
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with AssemblyModel 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: Assembly.type, id: "assemblyId"})
18
+ * private assemblyModel: AssemblyModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory method creates a factory function that can be used to create new AssemblyModel instances.
25
+ *
26
+
27
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
28
+ *
29
+ * If a model with the specified id 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 = Assembly.factory("assemblyId")({
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 AssemblyModel.
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ *
48
+ * const model: IKosDataModel = ...; // some model
49
+ *
50
+ * if (Assembly.predicate(model)) {
51
+ * // if the function evaluates to true, the model is narrowed down to AssemblyModel
52
+ * // and the compiler will know that the model has the AssemblyModel 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 { Assembly } from "@kosdev-code/kos-dispense-sdk";
70
+ * ...
71
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
72
+ * export const kosModels: IKosRegistry["models"] = {
73
+ * ...Assembly.registration,
74
+ * };
75
+ * ```
76
+ *
77
+ * ## registration.singleton
78
+ * The assembly model is a singleton model. This means that each time the factory function the same instance of the model will be returned.
79
+ * */
80
+ export declare const Assembly: Readonly<SingletonKosModelRegistrationBean<AssemblyModel, AssemblyOptions>>;
81
+ //# sourceMappingURL=assembly-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/assembly-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAGjF,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2EK;AACL,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAC7B,iCAAiC,CAAC,aAAa,EAAE,eAAe,CAAC,CAWlE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AssemblyBoard } from '../types/assembly';
2
+ import { BoardContainerModel } from '../board';
3
+
4
+ export declare const mapAssemblyBoardToModel: <AssemblyBoardResponseExt extends object = any, BoardExt extends object = any>(board: AssemblyBoard<AssemblyBoardResponseExt>) => Promise<import('../board').BoardModel<{}>>;
5
+ export declare const assemblyBoardMap: (boardContainer: BoardContainerModel) => (board: AssemblyBoard) => Promise<void>;
6
+ //# sourceMappingURL=board-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"board-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/board-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAO,MAAM,uBAAuB,wFAI3B,cAAc,wBAAwB,CAAC,+CA0B/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,mBACV,mBAAmB,aAAmB,aAAa,kBAInE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AssemblyHolder } from '../types/assembly';
2
+ import { HolderModel } from '../holder/types';
3
+
4
+ export declare const mapAssemblyHolderToModel: <AssemblyHolderResponseExt extends object = any, HolderExt extends object = any>(group: string, holderData: AssemblyHolder<AssemblyHolderResponseExt>) => Promise<HolderModel<HolderExt>>;
5
+ //# sourceMappingURL=holder-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holder-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/holder-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAiB,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,wBAAwB,0FAI5B,MAAM,cACD,eAAe,yBAAyB,CAAC,oCA2CtD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { CONTEXT_ASSEMBLY_DATA, CONTEXT_ASSEMBLY_RAW_DATA, } from './assembly-model';
2
+ export { Assembly } from './assembly-registration';
3
+ export * as AssemblyServices 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/sdk/kos-dispense-sdk/src/models/models/assembly/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,YAAY,CAAC;AAC/C,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AssemblyBoard } from '../types/assembly';
2
+ import { BoardContainerModel } from '../board';
3
+
4
+ export declare const mapAssemblyBoardToModel: (board: AssemblyBoard) => import('../board').BoardModel<{}>;
5
+ export declare const assemblyBoardMap: (boardContainer: BoardContainerModel) => (board: AssemblyBoard) => void;
6
+ //# sourceMappingURL=nozzle-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nozzle-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/nozzle-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAO,MAAM,uBAAuB,UAAW,aAAa,sCAc3D,CAAC;AAEF,eAAO,MAAM,gBAAgB,mBACV,mBAAmB,aAAa,aAAa,SAI7D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { AssemblyNozzle, AssemblyPump } from '../types/assembly';
2
+ import { PumpContainerModel } from '../pump-container';
3
+ import { HolderContainerModel } from '../holder-container';
4
+
5
+ export declare const mapAssemblyPumpToModel: (nozzlePath: string, pump: AssemblyPump) => import('../pump').PumpModel<any>;
6
+ export declare const assemblyPumpMap: (pumpContainer: PumpContainerModel) => (holderContainer: HolderContainerModel) => (nozzle: AssemblyNozzle) => (assemblyPump: AssemblyPump) => void;
7
+ //# sourceMappingURL=pump-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pump-utils.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/pump-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtE,eAAO,MAAM,sBAAsB,eACrB,MAAM,QACZ,YAAY,qCAqBnB,CAAC;AAEF,eAAO,MAAM,eAAe,kBACV,kBAAkB,uBAChB,oBAAoB,cAC7B,cAAc,oBACR,YAAY,SAqB1B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { AssemblyResponse } from '../../types/assembly';
2
+
3
+ /**
4
+ * @category Service
5
+ * Retrieves the initial assembly data.
6
+ */
7
+ export declare const getAssembly: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<AssemblyResponse<{}>> | undefined>;
8
+ //# sourceMappingURL=assembly-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/services/assembly-services.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAW7D;;;GAGG;AACH,eAAO,MAAM,WAAW,uGAIvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './assembly-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/assembly/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}