@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,9 @@
1
+ import { HolderModel } from '../types';
2
+
3
+ export declare const getFuelGaugeValue: (holder: HolderModel) => {
4
+ maxVolume: number;
5
+ remainingVolume: number;
6
+ fillPercent: number;
7
+ hasFuelGuage: boolean;
8
+ };
9
+ //# 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/holder/utils/holder-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,iBAAiB,WAAY,WAAW;;;;;CA8CpD,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { HolderContainerModel, HolderContainerOptions } from './types';
2
+ import { SingletonKosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * # HolderContainer
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with HolderContainerModel 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: HolderContainer.type})
18
+ * private holderContainerModel: HolderContainerModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory function that can be used to create new HolderContainerModel instances.
25
+ *
26
+ * As this is a singleton model, the factory function accepts the model options as its argument.
27
+ *
28
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ *
32
+ * @example
33
+ *
34
+ * ```typescript
35
+ * const model = HolderContainer.factory({ });
36
+ * ```
37
+ *
38
+ * ## predicate
39
+ *
40
+ * [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 HolderContainerModel.
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ *
45
+ * const model: IKosDataModel = ...; // some model
46
+ *
47
+ * if (HolderContainer.predicate(model)) {
48
+ * // if the function evaluates to true, the model is narrowed down to HolderContainerModel
49
+ * // and the compiler will know that the model has the HolderContainerModel interface
50
+ * model.updateAvailability(false);
51
+ * }
52
+ * ```
53
+ *
54
+ * ## registration
55
+ *
56
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
57
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
58
+ *
59
+ *
60
+ * @example
61
+ *
62
+ * In an application registration file you can declare the model registration as follows:
63
+ *
64
+ * **registration.ts**
65
+ * ```typescript
66
+ * import { HolderContainer } from "@kosdev-code/kos-dispense-sdk";
67
+ * ...
68
+ * import { IKosRegistry } from "@kosdev-code/kos-ui-sdk";
69
+ * export const kosModels: IKosRegistry["models"] = {
70
+ * ...HolderContainer.registration,
71
+ * };
72
+ * ```
73
+ *
74
+ * ## registration.singleton
75
+ * The HolderContainer model is a singleton. This means that each time the factory function is called , the same instance will be returned.
76
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
77
+ *
78
+ * * */
79
+ export declare const HolderContainer: SingletonKosModelRegistrationBean<HolderContainerModel, HolderContainerOptions>;
80
+ //# sourceMappingURL=holder-container-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"holder-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/holder-container/holder-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,iCAAiC,EAClC,MAAM,yBAAyB,CAAC;AAYjC,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAwHjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0EO;AACP,eAAO,MAAM,eAAe,EAAE,iCAAiC,CAC7D,oBAAoB,EACpB,sBAAsB,CAavB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { HolderContainer } from './holder-container-model';
2
+ export type * from './types';
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-container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { HolderModel } from '../../holder/types';
2
+ import { IKosDataModel, IKosModelContainer } from '@kosdev-code/kos-ui-sdk';
3
+
4
+
5
+ export interface HolderContainerOptions {}
6
+
7
+ export interface PathAware {
8
+ path: string;
9
+ }
10
+ export interface HolderPathAware extends PathAware {
11
+ slice: {
12
+ pos: number;
13
+ currentVolMl?: number;
14
+ maxVolMl?: number;
15
+ };
16
+ agitated: boolean;
17
+ container: {
18
+ enjoyByDate: number;
19
+ };
20
+ ingredientId: string;
21
+ containerId: string;
22
+ name: string;
23
+ }
24
+ /**
25
+ * Represents a collection of holders for the dispenser or a specific assembly.
26
+ *
27
+ * Provides default indexing to allow for grouping of holders by nozzle.
28
+ *
29
+ *
30
+ * @category Model
31
+ */
32
+ export interface HolderContainerModel<T extends object = any>
33
+ extends IKosDataModel {
34
+ /** the unique identifier for the model */
35
+ id: string;
36
+
37
+ /** the collection of holder models */
38
+ holders: IKosModelContainer<HolderModel>;
39
+
40
+ /** convenience method to update the holder container based on the options */
41
+ updateModel(options: HolderContainerOptions): void;
42
+ }
43
+
44
+ export interface InsertionPump {
45
+ inserted: boolean;
46
+ type: string;
47
+ boardPath: string;
48
+ ingredientId: string;
49
+ prevIngredientId?: string;
50
+ holderPath: string;
51
+ name: string;
52
+ path: string;
53
+ }
54
+ export interface InsertionEvent {
55
+ pumps: InsertionPump[];
56
+ slice: {
57
+ pos: number;
58
+ maxVolMl?: number;
59
+ currentVolMl?: number;
60
+ };
61
+ container: {
62
+ enjoyByDate: number;
63
+ };
64
+ agitated: boolean;
65
+ ingredientId: string;
66
+ containerId: string;
67
+ name: string;
68
+ path: string;
69
+ }
@@ -0,0 +1,14 @@
1
+ export * from './assembly';
2
+ export * from './availability';
3
+ export * from './board';
4
+ export * from './device-assembly';
5
+ export * from './generic-pour';
6
+ export * from './holder';
7
+ export * from './holder-container';
8
+ export * from './ingredient';
9
+ export * from './ingredient-container';
10
+ export * from './nozzle';
11
+ export * from './pump';
12
+ export * from './pump-container';
13
+ export * from './types';
14
+ //# 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/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Ingredient } from './ingredient-model';
2
+ export type * from './types';
3
+ export * as IngredientServices from './services';
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/ingredient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,86 @@
1
+ import { IngredientModel, IngredientOptions } from './types';
2
+ import { KosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * # Ingredient
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with IngredientModel 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: Ingredient.type, id: "ingredientId"})
18
+ * private ingredientModel: IngredientModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory method creates a factory function that can be used to create new IngredientModel instances.
25
+ *
26
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
27
+ *
28
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ * @example
32
+ *
33
+ * ```typescript
34
+ * const model = Ingredient.factory("S1")({
35
+ * name: "S1",
36
+ * ingredientId: "1234532",
37
+ * type: "syrup",
38
+ * data: {
39
+ * // mapped from an extension point
40
+ * }
41
+ * });
42
+ * ```
43
+ *
44
+ * ## predicate
45
+ *
46
+ * [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 IngredientModel.
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ *
51
+ * const model: IKosDataModel = ...; // some model
52
+ *
53
+ * if (Ingredient.predicate(model)) {
54
+ * // if the function evaluates to true, the model is narrowed down to IngredientModel
55
+ * // and the compiler will know that the model has the IngredientModel interface
56
+ * model.updateAvailability(false);
57
+ * }
58
+ * ```
59
+ *
60
+ * ## registration
61
+ *
62
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
63
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
64
+ *
65
+ *
66
+ * @example
67
+ *
68
+ * In an application registration file you can declare the model registration as follows:
69
+ *
70
+ * **registration.ts**
71
+ * ```typescript
72
+ * import { Ingredient } from "@kosdev-code/kos-dispense-sdk";
73
+ * ...
74
+ * import { IKosRegistry } from "@kosdev-code/kos-ui-sdk";
75
+ * export const kosModels: IKosRegistry["models"] = {
76
+ * ...Ingredient.registration,
77
+ * };
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+ *
82
+ * The ingredient 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
+ export declare const Ingredient: Readonly<KosModelRegistrationBean<IngredientModel, IngredientOptions>>;
86
+ //# sourceMappingURL=ingredient-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/ingredient/ingredient-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAmDlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,UAAU,EAAE,QAAQ,CAC/B,wBAAwB,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAW7D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ingredient-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/ingredient/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,30 @@
1
+ export interface BrandsetResponse {
2
+ brandSet: IngredientResponse[];
3
+ }
4
+ /**
5
+ * Base ingredient response returned by the service. Most likely this will be augmented by the {@link IngredientMapper} extension point
6
+ * to allow for additional properties to be added to the ingredient data.
7
+ * */
8
+ export interface IngredientResponse {
9
+ /** The ingredient id */
10
+ id: string;
11
+ /**
12
+ * The raw ingredient without considering the source. This will only be different in cases where there are asymetrical nozzles with
13
+ * discrete ingredient sources.
14
+ */
15
+ ingredientId: string;
16
+ /** The ingredient name */
17
+ name: string;
18
+ /**
19
+ * The ingredient type as defined by the java application. This can be any value and is generally used
20
+ * to classify ingredients into groups. For example, the ingredient type may be used to identify ingredients that are
21
+ * used for flavor shots.
22
+ */
23
+ type: string;
24
+ }
25
+ /**
26
+ * @category Service
27
+ * Retrieves the initial Ingredient data.
28
+ */
29
+ export declare const getIngredients: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<BrandsetResponse> | undefined>;
30
+ //# sourceMappingURL=ingredient-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/ingredient/services/ingredient-services.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAChC;AACD;;;KAGK;AACL,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AACD;;;GAGG;AACH,eAAO,MAAM,cAAc,mGAK1B,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { IKosDataModel } from '@kosdev-code/kos-ui-sdk';
2
+
3
+
4
+ /**
5
+ * Represents the options for creating an ingredient.
6
+ *
7
+ */
8
+ export interface IngredientOptions<AdditionalData extends object = any> {
9
+ /**
10
+ * The name of the ingredient.
11
+ * */
12
+ name: string;
13
+ /**
14
+ * The type of the ingredient.
15
+ * */
16
+ type: string;
17
+ /**
18
+ * The ingredient id.
19
+ * */
20
+ ingredientId: string;
21
+ [key: keyof AdditionalData]: AdditionalData[key];
22
+ data: AdditionalData;
23
+ }
24
+
25
+ /**
26
+ * Represents an ingredient that is composed into beverages and dispensed by the dispenser.
27
+ *
28
+ * These will typically be created as part of the overall dispenser lifecycle as part of the Nozzle model.
29
+ *
30
+ * @typeParam AdditionalData - Any additional data that is added to an ingredient at the application layer.
31
+ *
32
+ * @example The base Ingredient from the backend will have an id, type and name properties. However,
33
+ * a given implementation might extend the Ingredient node to include additional data, such as the image url.
34
+ * This additional data would be added to the model and would be represented by the AdditionalData type parameter.
35
+ * ```typescript
36
+ * const model: IngredientModel<{icon: string}> = ...;
37
+ * ```
38
+ * would allow for visibility of all the base properties as well as the additional data (icon) that might be on the message payload from
39
+ * the backend.
40
+ *
41
+ * @category Model
42
+ */
43
+ export interface IngredientModel<AdditionalData extends object = any>
44
+ extends IKosDataModel,
45
+ AdditionalData {
46
+ id: string;
47
+ /**
48
+ * The name of the ingredient.
49
+ * */
50
+ name: string;
51
+ /**
52
+ * The type of the ingredient.
53
+ * */
54
+ type: string;
55
+ /**
56
+ * The ingredient id.
57
+ * */
58
+ ingredientId: string;
59
+
60
+ /**
61
+ * The ingredient data as defined by the {@link ExtensionType.IngredientMapper} extension point.
62
+ * */
63
+ data: AdditionalData;
64
+
65
+ /** @internal */
66
+ updateModel(options: IngredientOptions): void;
67
+ }
@@ -0,0 +1,3 @@
1
+ export { IngredientContainer } from './ingredient-container-model';
2
+ export type * from './types';
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/ingredient-container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,80 @@
1
+ import { IngredientContainerModel, IngredientContainerOptions } from './types';
2
+ import { SingletonKosModelRegistrationBean } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * # IngredientContainer
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with IngredientContainerModel 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: IngredientContainer.type})
18
+ * private holderContainerModel: IngredientContainerModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory function that can be used to create new IngredientContainerModel instances.
25
+ *
26
+ * As this is a singleton model, the factory function accepts the model options as its argument.
27
+ *
28
+ * If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
29
+ * in this case and the existing model will be returned in its current state.
30
+ *
31
+ *
32
+ * @example
33
+ *
34
+ * ```typescript
35
+ * const model = IngredientContainer.factory({ });
36
+ * ```
37
+ *
38
+ * ## predicate
39
+ *
40
+ * [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 IngredientContainerModel.
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ *
45
+ * const model: IKosDataModel = ...; // some model
46
+ *
47
+ * if (IngredientContainer.predicate(model)) {
48
+ * // if the function evaluates to true, the model is narrowed down to IngredientContainerModel
49
+ * // and the compiler will know that the model has the IngredientContainerModel interface
50
+ * model.updateAvailability(false);
51
+ * }
52
+ * ```
53
+ *
54
+ * ## registration
55
+ *
56
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
57
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
58
+ *
59
+ *
60
+ * @example
61
+ *
62
+ * In an application registration file you can declare the model registration as follows:
63
+ *
64
+ * **registration.ts**
65
+ * ```typescript
66
+ * import { IngredientContainer } from "@kosdev-code/kos-dispense-sdk";
67
+ * ...
68
+ * import { IKosRegistry } from "@kosdev-code/kos-ui-sdk";
69
+ * export const kosModels: IKosRegistry["models"] = {
70
+ * ...IngredientContainer.registration,
71
+ * };
72
+ * ```
73
+ *
74
+ * ## registration.singleton
75
+ * The IngredientContainer model is a singleton. This means that each time the factory function is called , the same instance will be returned.
76
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
77
+ *
78
+ * * */
79
+ export declare const IngredientContainer: SingletonKosModelRegistrationBean<IngredientContainerModel, IngredientContainerOptions>;
80
+ //# sourceMappingURL=ingredient-container-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ingredient-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/ingredient-container/ingredient-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,iCAAiC,EAClC,MAAM,yBAAyB,CAAC;AAajC,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAoFjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0EO;AACP,eAAO,MAAM,mBAAmB,EAAE,iCAAiC,CACjE,wBAAwB,EACxB,0BAA0B,CAc3B,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { IngredientModel } from '../../ingredient/types';
2
+ import { IKosDataModel, IKosModelContainer } from '@kosdev-code/kos-ui-sdk';
3
+
4
+
5
+ export interface IngredientContainerOptions {}
6
+
7
+ /**
8
+ * The IngredientContainer represents the collection of {@link IngredientModel} entities that are considered as part of the KOS Beverage Graph.
9
+ *
10
+ * Its primary purpose is expose the set of ingredients that can be used to compose a pourable beverage. The presence or absence
11
+ * of an ingredient in the container will determine if the ingredient is available for use in the beverage graph.
12
+ *
13
+ * The ingredient container will index all of the underlying ingredients by the `type` property of the ingredient. This allows for
14
+ * the grouping and filtering of ingredients based on the `type` property. For example, to get the ingredients that are used for flavor shots,
15
+ * you would call {@link IngredientContainer.getIngredientsByType} with the `type` of the flavor shot.
16
+ *
17
+ * The Ingredient is a {@link IKosDataModel} and is registered with the model registry using the {@link IngredientContainer} type.
18
+ *
19
+ *
20
+ * @see {@link IngredientServices.getIngredients} - The ingredient service will retrieve the set of ingredients.
21
+ *
22
+ * ## Lifecycle
23
+ *
24
+ * ### Load
25
+ *
26
+ * During the `load` phase of the model lifecycle, the set of {@link IngredientModel} models will be retrieved and processed. The nodes will be indexed based on
27
+ * the defined `type` for the node. The `type` is defined as part of the backend Ingredient model.
28
+ *
29
+ * #### Extension Points
30
+ *
31
+ * The `load` lifecycle hook will call into the {@link ExtensionType.IngredientLoader} extension point in order to establish the context
32
+ * that will be used to populate the ingredients nodes. Use of this extension point is optional.
33
+ *
34
+ * The `load` lifecycle hook will call into the {@link ExtensionType.IngredientMapper} for each ingredient node that is retrieved from the backend.
35
+ * The extension point will be called with the Ingredient context data and the {@link IngredientServices.IngredientResponse} for the ingredient node and will
36
+ * map the results into the {@link IngredientModel} as part of the `data` property.
37
+ *
38
+ * The `load` lifecycle hook will call into the {@link ExtensionType.IngredientTypeMapper} for each ingredient node that is retrieved from the backend.
39
+ * The extension point will be called with the Ingredient context data and the {@link IngredientServices.IngredientResponse} for the ingredient node. The results will
40
+ * be mapped into the {@link IngredientModel} as the `type` property.
41
+ *
42
+ *
43
+ * @see {@link IngredientContainer}
44
+ *
45
+ * @category Model
46
+ */
47
+ export interface IngredientContainerModel<AdditionalData extends object = {}>
48
+ extends IngredientContainerOptions,
49
+ IKosDataModel,
50
+ AdditionalData {
51
+ id: string;
52
+ /**
53
+ * The set of ingredients that are available for use in the beverage graph.
54
+ * @readonly
55
+ * */
56
+ ingredients: IKosModelContainer<IngredientModel>;
57
+
58
+ /**
59
+ * Utility method to retrieve the ingredients that are associated with the specified type.
60
+ * @param type The type of the ingredient to retrieve.
61
+ * @returns The set of ingredients that are associated with the specified type.
62
+ * */
63
+ getIngredientsByType(type: string): IngredientModel<AdditionalData>[];
64
+
65
+ /** @internal */
66
+ updateModel(options: IngredientContainerOptions): void;
67
+ }
@@ -0,0 +1,5 @@
1
+ export { Nozzle, type NozzleModel } from './nozzle-model';
2
+ export type { NozzleOptions, SelectedPourable } from './types';
3
+ /** @category KOS Services */
4
+ export * as NozzleServices 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/nozzle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE/D,6BAA6B;AAC7B,OAAO,KAAK,cAAc,MAAM,YAAY,CAAC"}