@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
@@ -0,0 +1,89 @@
1
+ import { DeviceAssemblyOptions } from './types';
2
+ import { DeviceAssemblyModel } from './device-assembly-model';
3
+ import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # DeviceAssembly
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with DeviceAssemblyModel 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: DeviceAssembly.type, id: "deviceAssemblyId"})
19
+ * private deviceAssemblyModel: DeviceAssemblyModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new DeviceAssemblyModel 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 = DeviceAssembly.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 DeviceAssemblyModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (DeviceAssembly.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to DeviceAssemblyModel
53
+ * // and the compiler will know that the model has the DeviceAssemblyModel 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 { DeviceAssembly } 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(DeviceAssembly);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The deviceAssembly 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 DeviceAssembly: SingletonKosModelRegistrationFactory<DeviceAssemblyModel, DeviceAssemblyOptions>;
89
+ //# sourceMappingURL=device-assembly-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"device-assembly-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/device-assembly/device-assembly-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,cAAc,kFAMzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { DeviceAssembly } from './device-assembly-registration';
2
+ export type * from './types';
3
+ export type { DeviceAssemblyModel } from './device-assembly-model';
4
+ //# 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/device-assembly/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ export interface DeviceAssemblyOptions {}
@@ -0,0 +1,53 @@
1
+ import { GenericPourOptions } from './types';
2
+ import { PourState } from '../types';
3
+ import { PourStrategyAware } from '../../../ui/hooks/utils/pour-strategy';
4
+ import { FutureContainer, IFutureModel, IKosDataModel, PublicModelInterface, KosData, KosFutureAwareFull, KosLoggerAware } from '@kosdev-code/kos-ui-sdk';
5
+
6
+ export declare const MODEL_TYPE = "generic-pour-model";
7
+ export type GenericPourModel = PublicModelInterface<GenericPourModelImpl>;
8
+ export declare const TOPIC_GENERIC_POUR_STARTED = "/kos/generic/pour/started";
9
+ export declare const TOPIC_GENERIC_POUR_PROGRESS = "/kos/generic/pour/progress";
10
+ export declare const TOPIC_GENERIC_POUR_CANCEL = "/kos/generic/pour/cancel";
11
+ export interface GenericPourModelImpl extends KosLoggerAware, KosFutureAwareFull<any> {
12
+ }
13
+ export declare class GenericPourModelImpl implements IKosDataModel, PourStrategyAware, FutureContainer {
14
+ id: string;
15
+ currentState: PourState;
16
+ servicePathFactory: (selectedId: string, context?: KosData<Record<string, any>>) => string;
17
+ pourType: string;
18
+ selectedId?: string;
19
+ private state;
20
+ constructor(modelId: string, options: GenericPourOptions);
21
+ get servicePath(): string;
22
+ updateContextData(key: string, value: any): void;
23
+ removeContextData(key: string): void;
24
+ clearContextData(): void;
25
+ /**
26
+ * An action that will initiate a pour for this nozzle.
27
+ *
28
+ * The invocation of this action will result in a Future being returned that will
29
+ * provide the status of the pour and return any errors that may occur.
30
+ *
31
+ * @see {@link kosFuture}
32
+ * */
33
+ pour(tracker?: string): Promise<void>;
34
+ cancelPour(): Promise<void>;
35
+ private updateIfCurrent;
36
+ /**
37
+ * A derived value that indicates if the nozzle is currently pouring a beverage.
38
+ * @readonly
39
+ */
40
+ get isPouring(): boolean;
41
+ /**
42
+ * A derived value that indicates if the pour target is currently available to pour a beverage.
43
+ *
44
+ * Generally this means that the pour target is currently idle and not in the process of pouring, initiating a pour, or canceling a pour.
45
+ * The value is observable and will change when the selected pourable changes or the pour target
46
+ * starts or stops pouring.
47
+ * @readonly
48
+ */
49
+ get canPour(): boolean;
50
+ get pourProgress(): number;
51
+ onFutureUpdate(future: IFutureModel<any>): void;
52
+ }
53
+ //# sourceMappingURL=generic-pour-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic-pour-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/generic-pour/generic-pour-model.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EAGf,YAAY,EACZ,aAAa,EAEb,oBAAoB,EAOpB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE1E,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,2BAA2B,+BAA+B,CAAC;AACxE,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AA4BpE,MAAM,WAAW,oBACf,SAAQ,cAAc,EACpB,kBAAkB,CAAC,GAAG,CAAC;CAAG;AAC9B,qBAGa,oBACX,YAAW,aAAa,EAAE,iBAAiB,EAAE,eAAe;IAE5D,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,SAAS,CAAkB;IACzC,kBAAkB,EAAE,CAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,KACnC,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,KAAK,CAA+B;gBAChC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB;IAUxD,IAAI,WAAW,WAKd;IAED,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAIzC,iBAAiB,CAAC,GAAG,EAAE,MAAM;IAI7B,gBAAgB;IAGhB;;;;;;;SAOK;IAEQ,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM;IAyCrB,UAAU;IA2BvB,OAAO,CAAC,eAAe;IAQvB;;;OAGG;IACH,IAAI,SAAS,YAOZ;IAED;;;;;;;OAOG;IACH,IAAI,OAAO,YAEV;IAED,IAAI,YAAY,WAEf;IAED,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC;CA0BzC"}
@@ -0,0 +1,87 @@
1
+ import { GenericPourModel } from './generic-pour-model';
2
+ import { GenericPourOptions } from './types';
3
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # GenericPour
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with GenericPourModel 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: GenericPour.type, id: "genericPourId"})
19
+ * private genericPourModel: GenericPourModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new GenericPourModel 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 = GenericPour.factory("genericPourId")({
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 GenericPourModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (GenericPour.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to GenericPourModel
53
+ * // and the compiler will know that the model has the GenericPourModel 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 { GenericPour } 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(GenericPour);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The genericPour 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.
83
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
84
+
85
+ * */
86
+ export declare const GenericPour: KosModelRegistrationFactory<GenericPourModel, GenericPourOptions>;
87
+ //# sourceMappingURL=generic-pour-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic-pour-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/generic-pour/generic-pour-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,WAAW,mEAMtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { GenericPour } from './generic-pour-registration';
2
+ export type * from './types';
3
+ export type { GenericPourModel } from './generic-pour-model';
4
+ export * as GenericPourServices from './services';
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/generic-pour/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,mBAAmB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ *
3
+ * Initiates a pour for a pour target on a given path.
4
+ *
5
+
6
+ *
7
+ * @param path - the API path to pour from, this will be passed in from the model
8
+ * @param tracker - the tracker to use for the pour. It will be returned in the future to allow consumers
9
+ * to track the pour
10
+ * @category Service
11
+ *
12
+ * @see {@link FutureManager.initiateFuture}
13
+ * @returns - a Future that encapsulates the pour including its status and progress.
14
+ **/
15
+ export declare const pourOnTarget: (path: string, tracker: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
16
+ //# sourceMappingURL=generic-pour-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generic-pour-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/generic-pour/services/generic-pour-services.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;IAaI;AACJ,eAAO,MAAM,YAAY,SAAgB,MAAM,WAAW,MAAM,mFAW/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './generic-pour-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/generic-pour/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface GenericPourOptions {
2
+ servicePathFactory: (selectedId: string) => string;
3
+ selectedId?: string;
4
+ pourType?: string;
5
+ }
@@ -0,0 +1,93 @@
1
+ import { HolderModel, HolderOptions } from './types';
2
+ import { KosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ export interface HolderTroubleData {
5
+ holderPaths: string[];
6
+ holderNames: string[];
7
+ }
8
+ export interface ContainerTroubleData {
9
+ ingredients: string[];
10
+ unknonwnIngredientId?: string;
11
+ }
12
+ /**
13
+ * # Holder
14
+ *
15
+ * The registration bean includes convenience methods for creating and working with HolderModel instances.
16
+ *
17
+ * ## type
18
+ * The type property is a string that identifies the model type.
19
+ * 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
20
+ * used when declaring dependencies on models.
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ *
25
+ * @kosDependency({modelType: Holder.type, id: "holderId"})
26
+ * private holderModel: HolderModel;
27
+ * ```
28
+ *
29
+ *
30
+ * ## factory
31
+ *
32
+ * The factory method creates a factory function that can be used to create new HolderModel instances.
33
+ *
34
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
35
+ *
36
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
37
+ * in this case and the existing model will be returned in its current state.
38
+ *
39
+ * @example
40
+ *
41
+ * ```typescript
42
+ * const model = Holder.factory("S1")({
43
+ * path: "core.dispenser.holder.s1",
44
+ * name: "S1",
45
+ * ingredientId: "1234532",
46
+ * assemblyName: "",
47
+ * type: "syrup",
48
+ * });
49
+ * ```
50
+ *
51
+ * ## predicate
52
+ *
53
+ * [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 HolderModel.
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ *
58
+ * const model: IKosDataModel = ...; // some model
59
+ *
60
+ * if (Holder.predicate(model)) {
61
+ * // if the function evaluates to true, the model is narrowed down to HolderModel
62
+ * // and the compiler will know that the model has the HolderModel interface
63
+ * model.updateAvailability(false);
64
+ * }
65
+ * ```
66
+ *
67
+ * ## registration
68
+ *
69
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
70
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
71
+ *
72
+ *
73
+ * @example
74
+ *
75
+ * In an application registration file you can declare the model registration as follows:
76
+ *
77
+ * **registration.ts**
78
+ * ```typescript
79
+ * import { Holder } from "@kosdev-code/kos-dispense-sdk";
80
+ * ...
81
+ * import { IKosRegistry } from "@kosdev-code/kos-ui-sdk";
82
+ * export const kosModels: IKosRegistry["models"] = {
83
+ * ...Holder.registration,
84
+ * };
85
+ * ```
86
+ *
87
+ * ## registration.singleton
88
+ *
89
+ * The holder 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.
90
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
91
+ * */
92
+ export declare const Holder: Readonly<KosModelRegistrationBean<HolderModel, HolderOptions>>;
93
+ //# sourceMappingURL=holder-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holder-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/holder/holder-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAIV,wBAAwB,EAGzB,MAAM,yBAAyB,CAAC;AAiCjC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAM1D,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AA6YD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+EK;AACL,eAAO,MAAM,MAAM,EAAE,QAAQ,CAC3B,wBAAwB,CAAC,WAAW,EAAE,aAAa,CAAC,CAWrD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { Holder, type HolderTroubleData } from './holder-model';
2
+ export * as HolderServices from './services';
3
+ export type * from './types';
4
+ export * from './utils/holder-utils';
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/holder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC;AAC7C,mBAAmB,SAAS,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,25 @@
1
+ export interface Assignment {
2
+ ingredientId: string;
3
+ holderPath: string;
4
+ containerId?: string;
5
+ fuelGauge?: number;
6
+ }
7
+ export interface AssignmentFactoryJson {
8
+ stickerId: string;
9
+ stickerCode: string;
10
+ }
11
+ /**
12
+ * @category Service
13
+ * Retrieves the initial dispenser data.
14
+ */
15
+ export declare const getAssignments: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<Assignment[]> | undefined>;
16
+ export type AssignmentErrorType = "errIdLen" | "errCodeLen" | "errIdFormat" | "errCodeFormat" | "errVerify" | "errBadJson" | "unknownError";
17
+ type AssignmentResponse = [
18
+ AssignmentErrorType | undefined,
19
+ Assignment | undefined
20
+ ];
21
+ export declare const sendRfidOverride: (holderPath: string, overrides: any) => Promise<AssignmentResponse>;
22
+ export declare const addAssignment: (assignment: Assignment) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
23
+ export declare const deleteAssignment: (id: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<unknown> | undefined>;
24
+ export {};
25
+ //# sourceMappingURL=assignment-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assignment-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/holder/services/assignment-services.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD;;;GAGG;AACH,eAAO,MAAM,cAAc,+FAG1B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,YAAY,GACZ,aAAa,GACb,eAAe,GACf,WAAW,GACX,YAAY,GACZ,cAAc,CAAC;AACnB,KAAK,kBAAkB,GAAG;IACxB,mBAAmB,GAAG,SAAS;IAC/B,UAAU,GAAG,SAAS;CACvB,CAAC;AACF,eAAO,MAAM,gBAAgB,eACf,MAAM,aACP,GAAG,KACb,QAAQ,kBAAkB,CAsB5B,CAAC;AAEF,eAAO,MAAM,aAAa,eAAsB,UAAU,mFAUzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAc,MAAM,uFAGhD,CAAC"}
@@ -0,0 +1,28 @@
1
+ export interface Pump {
2
+ inserted: boolean;
3
+ beveragePour: boolean;
4
+ ingredientPour: boolean;
5
+ type: string;
6
+ category: string;
7
+ ingredientId: string;
8
+ holderPath: string;
9
+ boardPath: string;
10
+ nozzlePath: string;
11
+ name: string;
12
+ path: string;
13
+ }
14
+ export interface HolderResponse {
15
+ path: string;
16
+ name: string;
17
+ ingType: string;
18
+ ingSource: string;
19
+ }
20
+ /**
21
+ * @category Service
22
+ * Retrieves the initial Holder data.
23
+ */
24
+ export declare const getHolders: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<HolderResponse[]> | undefined>;
25
+ export declare const assignHolderIngredient: (holderPath: string, ingredientId: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
26
+ export declare const unassignHolderIngredient: (holderPath: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<unknown> | undefined>;
27
+ export declare const replaceLine: (holderPath: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
28
+ //# sourceMappingURL=holder-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holder-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/holder/services/holder-services.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,IAAI;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD;;;GAGG;AACH,eAAO,MAAM,UAAU,mGAGtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,eACrB,MAAM,gBACJ,MAAM,mFAYrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,eAAsB,MAAM,uFAWhE,CAAC;AAEF,eAAO,MAAM,WAAW,eAAsB,MAAM,mFAanD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './holder-services';
2
+ export * from './assignment-services';
3
+ //# 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/holder/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,170 @@
1
+ import { Assignment } from '../services';
2
+ import { IntentAware } from '../../types/intent';
3
+ import { HolderSlice } from '../../types/assembly';
4
+ import { PumpModel } from '../../pump/types';
5
+ import { IngredientModel } from '../../ingredient';
6
+ import { IKosDataModel, IKosModelContainer, TroubleAware } from '@kosdev-code/kos-ui-sdk';
7
+
8
+
9
+ export interface HolderOptions<AdditionalData extends object = any> {
10
+ path: string;
11
+ name: string;
12
+ enjoyByDate?: Date;
13
+ ingredientId?: string;
14
+ ingredientType?: string;
15
+ ingredientSource?: string;
16
+ group: string;
17
+ slice: HolderSlice;
18
+ data: AdditionalData;
19
+ }
20
+
21
+ /**
22
+ * Abstraction of how an ingredient cartridge attaches to a pump. In many cases
23
+ * this is simply a hose that connects a BiB container to a pump, but in more
24
+ * complex devices this represents a cartridge slot which may have associated
25
+ * hardware, such as RFID antenna, indicator lights, and so on. This also holds
26
+ * state about the availability of a pump to pump the connected ingredient.
27
+ *
28
+ * @category Model
29
+ */
30
+ export interface HolderModel<AdditionalData extends object = any>
31
+ extends IKosDataModel,
32
+ IntentAware,
33
+ TroubleAware {
34
+ id: string;
35
+ name: string;
36
+ path: string;
37
+ ingredientId?: string;
38
+ ingredientType?: string;
39
+ ingredientSource?: string;
40
+ group: string;
41
+ slice: HolderSlice;
42
+ enjoyByDate?: Date;
43
+ hasEnjoyByWarning: boolean;
44
+ prevIngredientId?: string;
45
+
46
+ readonly maxVolume: number;
47
+ readonly remainingVolume: number;
48
+ readonly hasMaxVolume: boolean;
49
+ readonly hasRemainingVolume: boolean;
50
+ readonly fillPercent: number;
51
+ readonly hasFuelGuage: boolean;
52
+ readonly hasEnjoyByDate: boolean;
53
+
54
+ removed: boolean;
55
+ unassigned: boolean;
56
+ updateModel(options: HolderOptions): void;
57
+ data: AdditionalData;
58
+
59
+ /**
60
+ * Perform an RFID override on the holder
61
+ * @param overrides
62
+ * @throws AssignmentError(errIdLen) if the id length is invalid
63
+ * @throws AssignmentError(errCodeLen) if the code length is invalid
64
+ * @throws AssignmentError(errIdFormat) if the id format is invalid
65
+ * @throws AssignmentError(errCodeFormat) if the code format is invalid
66
+ * @throws AssignmentError(errVerify) if the verification fails
67
+ * @throws AssignmentError(errBadJson) if the json is invalid
68
+ *
69
+ * @returns
70
+ */
71
+ overrideRfidCode<T extends Record<string, any>>(
72
+ overrides: T
73
+ ): Promise<Assignment | undefined>;
74
+ /**
75
+ * The name of the ingredient assigned to the holder
76
+ * @readonly
77
+ */
78
+ readonly ingredientName: string;
79
+ /**
80
+ * The {@link IngredientModel} assigned to the holder
81
+ */
82
+ readonly ingredient?: IngredientModel;
83
+
84
+ /**
85
+ * The name of the previous ingredient assigned to the holder
86
+ * @readonly
87
+ */
88
+ readonly previousIngredientName: string;
89
+ /**
90
+ * The previous {@link IngredientModel} assigned to the holder
91
+ */
92
+ readonly previousIngredient?: IngredientModel;
93
+
94
+ /**
95
+ * The {@link PumpModel} models assigned to the holder.
96
+ */
97
+ pumps: IKosModelContainer<PumpModel>;
98
+
99
+ /**
100
+ * The {@link PumpModel} models assigned to the holder sorted by the pump order.
101
+ */
102
+ sortedPumps: PumpModel[];
103
+
104
+ /**
105
+ * The paths of the nozzles that are attached to the holder. It is possible
106
+ * for a holder to be connected to multiple nozzles depending on the number
107
+ * of pumps it has. For example, some dispensers might be configured to share
108
+ * ingredients across nozzles in cases where less frequently used ingredients
109
+ * are used in smaller quantities.
110
+ */
111
+ readonly nozzlePaths: string[];
112
+
113
+ /**
114
+ * A boolean value that indicates if the ingredient in the holder can be poured.
115
+ * This is derived from the pour status of all of the underlying pumps.
116
+ */
117
+ readonly canPour: boolean;
118
+
119
+ /**
120
+ * A boolean value that indicates if the ingredient in the holder is currently
121
+ * pouring.
122
+ *
123
+ * This is derived from the pour status of the underlying pumps indicating if any
124
+ * of the pumps are currently pouring.
125
+ */
126
+ readonly isPouring: boolean;
127
+
128
+ readonly pourState: string;
129
+
130
+ /**
131
+ * Assign an ingredient to the holder.
132
+ *
133
+ * This method will call into the {@link assignHolderIngredient} service to assign the ingredient to the holder.
134
+ *
135
+ * If unassigning the ingredient, the {@link unassignHolderIngredient} service will be called.
136
+ *
137
+ * @param ingredientId The id of the ingredient to assign to the holder. If not specified, the ingredient will be unassigned.
138
+ */
139
+ assignIngredient(ingredientId?: string): Promise<void>;
140
+
141
+ /**
142
+ * Update the ingredient id of the holder.
143
+ *
144
+ * This method will update the ingredient id of the holder without calling into the {@link assignHolderIngredient} or {@link unassignHolderIngredient} services.
145
+ *
146
+ * It is intended to be used when ingredient assignment events are received from the dispenser, such as when an ingredient is
147
+ * inserted into a holder and the rfid tag is read. In this case, the assignment will be received via the topic handler and
148
+ * the ingredient id will be updated on the holder.
149
+ *
150
+ * This method should be used to update state as opposed to the {@link assignIngredient} method which should be used to
151
+ * perform the actual assignment.
152
+ *
153
+ * @param ingredientId The id of the ingredient to assign to the holder. If not specified, the ingredient will be unassigned.
154
+ */
155
+ updateIngredient(ingredientId?: string): void;
156
+
157
+ resolveIntentVolume(intent: string): Promise<{ volume: number }>;
158
+
159
+ /**
160
+ * Indicate that the lines associated with holder have been replaced.
161
+ */
162
+ replaceLine(): Promise<void>;
163
+
164
+ /**
165
+ * Indicates that one or more of the pumps associated with the holder have constraints that
166
+ * must be satisfied before pouring can occur. For example, an ingredient may require agitation
167
+ * before pouring can occur. This is used to defer the pour until the constraints are satisfied.
168
+ */
169
+ shouldDefer: boolean;
170
+ }