@kosdev-code/kos-dispense-sdk 2.0.2

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 (319) hide show
  1. package/dispense-registration-manager-DxIbOft8.js +1759 -0
  2. package/dispense-registration-manager-DxIbOft8.js.map +1 -0
  3. package/dispense-registration-manager-aM9RAFHn.cjs +2 -0
  4. package/dispense-registration-manager-aM9RAFHn.cjs.map +1 -0
  5. package/extension-utils-hWIrDMX4.cjs +2 -0
  6. package/extension-utils-hWIrDMX4.cjs.map +1 -0
  7. package/extension-utils-qcU_4sXo.js +370 -0
  8. package/extension-utils-qcU_4sXo.js.map +1 -0
  9. package/index.cjs +2 -0
  10. package/index.cjs.map +1 -0
  11. package/index.d.ts +4 -0
  12. package/index.d.ts.map +1 -0
  13. package/index.js +103 -0
  14. package/index.js.map +1 -0
  15. package/models/constants/constants.d.ts +229 -0
  16. package/models/constants/constants.d.ts.map +1 -0
  17. package/models/constants/index.d.ts +2 -0
  18. package/models/constants/index.d.ts.map +1 -0
  19. package/models/index.d.ts +6 -0
  20. package/models/index.d.ts.map +1 -0
  21. package/models/models/assembly/assembly-model.d.ts +40 -0
  22. package/models/models/assembly/assembly-model.d.ts.map +1 -0
  23. package/models/models/assembly/assembly-registration.d.ts +81 -0
  24. package/models/models/assembly/assembly-registration.d.ts.map +1 -0
  25. package/models/models/assembly/board-utils.d.ts +6 -0
  26. package/models/models/assembly/board-utils.d.ts.map +1 -0
  27. package/models/models/assembly/holder-utils.d.ts +5 -0
  28. package/models/models/assembly/holder-utils.d.ts.map +1 -0
  29. package/models/models/assembly/index.d.ts +4 -0
  30. package/models/models/assembly/index.d.ts.map +1 -0
  31. package/models/models/assembly/nozzle-utils.d.ts +6 -0
  32. package/models/models/assembly/nozzle-utils.d.ts.map +1 -0
  33. package/models/models/assembly/pump-utils.d.ts +7 -0
  34. package/models/models/assembly/pump-utils.d.ts.map +1 -0
  35. package/models/models/assembly/services/assembly-services.d.ts +8 -0
  36. package/models/models/assembly/services/assembly-services.d.ts.map +1 -0
  37. package/models/models/assembly/services/index.d.ts +2 -0
  38. package/models/models/assembly/services/index.d.ts.map +1 -0
  39. package/models/models/assembly/types/index.d.ts +64 -0
  40. package/models/models/availability/availability-model.d.ts +89 -0
  41. package/models/models/availability/availability-model.d.ts.map +1 -0
  42. package/models/models/availability/index.d.ts +3 -0
  43. package/models/models/availability/index.d.ts.map +1 -0
  44. package/models/models/availability/types/index.d.ts +71 -0
  45. package/models/models/board/board-container-model.d.ts +23 -0
  46. package/models/models/board/board-container-model.d.ts.map +1 -0
  47. package/models/models/board/board-container-registration.d.ts +87 -0
  48. package/models/models/board/board-container-registration.d.ts.map +1 -0
  49. package/models/models/board/board-model.d.ts +18 -0
  50. package/models/models/board/board-model.d.ts.map +1 -0
  51. package/models/models/board/board-registration.d.ts +84 -0
  52. package/models/models/board/board-registration.d.ts.map +1 -0
  53. package/models/models/board/index.d.ts +5 -0
  54. package/models/models/board/index.d.ts.map +1 -0
  55. package/models/models/board/types/index.d.ts +36 -0
  56. package/models/models/board/types/services.d.ts +12 -0
  57. package/models/models/board/types/services.d.ts.map +1 -0
  58. package/models/models/board/utils/board-trouble-data-mapper.d.ts +7 -0
  59. package/models/models/board/utils/board-trouble-data-mapper.d.ts.map +1 -0
  60. package/models/models/board/utils/board-trouble-resolver.d.ts +7 -0
  61. package/models/models/board/utils/board-trouble-resolver.d.ts.map +1 -0
  62. package/models/models/device-assembly/device-assembly-model.d.ts +17 -0
  63. package/models/models/device-assembly/device-assembly-model.d.ts.map +1 -0
  64. package/models/models/device-assembly/device-assembly-registration.d.ts +89 -0
  65. package/models/models/device-assembly/device-assembly-registration.d.ts.map +1 -0
  66. package/models/models/device-assembly/index.d.ts +4 -0
  67. package/models/models/device-assembly/index.d.ts.map +1 -0
  68. package/models/models/device-assembly/types/index.d.ts +1 -0
  69. package/models/models/holder/holder-model.d.ts +93 -0
  70. package/models/models/holder/holder-model.d.ts.map +1 -0
  71. package/models/models/holder/index.d.ts +5 -0
  72. package/models/models/holder/index.d.ts.map +1 -0
  73. package/models/models/holder/services/assignment-services.d.ts +25 -0
  74. package/models/models/holder/services/assignment-services.d.ts.map +1 -0
  75. package/models/models/holder/services/holder-services.d.ts +28 -0
  76. package/models/models/holder/services/holder-services.d.ts.map +1 -0
  77. package/models/models/holder/services/index.d.ts +3 -0
  78. package/models/models/holder/services/index.d.ts.map +1 -0
  79. package/models/models/holder/types/index.d.ts +163 -0
  80. package/models/models/holder/utils/holder-utils.d.ts +9 -0
  81. package/models/models/holder/utils/holder-utils.d.ts.map +1 -0
  82. package/models/models/holder-container/holder-container-model.d.ts +80 -0
  83. package/models/models/holder-container/holder-container-model.d.ts.map +1 -0
  84. package/models/models/holder-container/index.d.ts +3 -0
  85. package/models/models/holder-container/index.d.ts.map +1 -0
  86. package/models/models/holder-container/types/index.d.ts +69 -0
  87. package/models/models/index.d.ts +13 -0
  88. package/models/models/index.d.ts.map +1 -0
  89. package/models/models/ingredient/index.d.ts +4 -0
  90. package/models/models/ingredient/index.d.ts.map +1 -0
  91. package/models/models/ingredient/ingredient-model.d.ts +86 -0
  92. package/models/models/ingredient/ingredient-model.d.ts.map +1 -0
  93. package/models/models/ingredient/services/index.d.ts +2 -0
  94. package/models/models/ingredient/services/index.d.ts.map +1 -0
  95. package/models/models/ingredient/services/ingredient-services.d.ts +30 -0
  96. package/models/models/ingredient/services/ingredient-services.d.ts.map +1 -0
  97. package/models/models/ingredient/types/index.d.ts +67 -0
  98. package/models/models/ingredient-container/index.d.ts +3 -0
  99. package/models/models/ingredient-container/index.d.ts.map +1 -0
  100. package/models/models/ingredient-container/ingredient-container-model.d.ts +80 -0
  101. package/models/models/ingredient-container/ingredient-container-model.d.ts.map +1 -0
  102. package/models/models/ingredient-container/types/index.d.ts +67 -0
  103. package/models/models/nozzle/index.d.ts +5 -0
  104. package/models/models/nozzle/index.d.ts.map +1 -0
  105. package/models/models/nozzle/nozzle-model.d.ts +257 -0
  106. package/models/models/nozzle/nozzle-model.d.ts.map +1 -0
  107. package/models/models/nozzle/services/index.d.ts +2 -0
  108. package/models/models/nozzle/services/index.d.ts.map +1 -0
  109. package/models/models/nozzle/services/nozzle-services.d.ts +181 -0
  110. package/models/models/nozzle/services/nozzle-services.d.ts.map +1 -0
  111. package/models/models/nozzle/types/index.d.ts +85 -0
  112. package/models/models/pump/index.d.ts +4 -0
  113. package/models/models/pump/index.d.ts.map +1 -0
  114. package/models/models/pump/pump-model.d.ts +91 -0
  115. package/models/models/pump/pump-model.d.ts.map +1 -0
  116. package/models/models/pump/services/index.d.ts +2 -0
  117. package/models/models/pump/services/index.d.ts.map +1 -0
  118. package/models/models/pump/services/pump-services.d.ts +27 -0
  119. package/models/models/pump/services/pump-services.d.ts.map +1 -0
  120. package/models/models/pump/types/index.d.ts +55 -0
  121. package/models/models/pump/utils/pump-trouble-resolver.d.ts +8 -0
  122. package/models/models/pump/utils/pump-trouble-resolver.d.ts.map +1 -0
  123. package/models/models/pump-container/index.d.ts +3 -0
  124. package/models/models/pump-container/index.d.ts.map +1 -0
  125. package/models/models/pump-container/pump-container-model.d.ts +85 -0
  126. package/models/models/pump-container/pump-container-model.d.ts.map +1 -0
  127. package/models/models/pump-container/types/index.d.ts +31 -0
  128. package/models/models/types/assembly.d.ts +83 -0
  129. package/models/models/types/assembly.d.ts.map +1 -0
  130. package/models/models/types/index.d.ts +4 -0
  131. package/models/models/types/index.d.ts.map +1 -0
  132. package/models/models/types/intent.d.ts +19 -0
  133. package/models/models/types/intent.d.ts.map +1 -0
  134. package/models/models/types/pouring.d.ts +9 -0
  135. package/models/models/types/pouring.d.ts.map +1 -0
  136. package/models/utils/dispense-registration-manager.d.ts +28 -0
  137. package/models/utils/dispense-registration-manager.d.ts.map +1 -0
  138. package/models/utils/extension-utils.d.ts +265 -0
  139. package/models/utils/extension-utils.d.ts.map +1 -0
  140. package/models/utils/openapi.d.ts +9276 -0
  141. package/models/utils/registration.d.ts +4 -0
  142. package/models/utils/registration.d.ts.map +1 -0
  143. package/models/utils/service.d.ts +64 -0
  144. package/models/utils/service.d.ts.map +1 -0
  145. package/models.cjs +2 -0
  146. package/models.cjs.map +1 -0
  147. package/models.d.ts +1 -0
  148. package/models.js +38 -0
  149. package/models.js.map +1 -0
  150. package/package.json +36 -0
  151. package/pump-provider-COTqsOH-.js +1013 -0
  152. package/pump-provider-COTqsOH-.js.map +1 -0
  153. package/pump-provider-D2HzZ2Bj.cjs +2 -0
  154. package/pump-provider-D2HzZ2Bj.cjs.map +1 -0
  155. package/ui/contexts/assembly/assembly-provider.d.ts +12 -0
  156. package/ui/contexts/assembly/assembly-provider.d.ts.map +1 -0
  157. package/ui/contexts/assembly/index.d.ts +2 -0
  158. package/ui/contexts/assembly/index.d.ts.map +1 -0
  159. package/ui/contexts/availability/availability-provider.d.ts +13 -0
  160. package/ui/contexts/availability/availability-provider.d.ts.map +1 -0
  161. package/ui/contexts/availability/index.d.ts +2 -0
  162. package/ui/contexts/availability/index.d.ts.map +1 -0
  163. package/ui/contexts/board/board-provider.d.ts +13 -0
  164. package/ui/contexts/board/board-provider.d.ts.map +1 -0
  165. package/ui/contexts/board/index.d.ts +2 -0
  166. package/ui/contexts/board/index.d.ts.map +1 -0
  167. package/ui/contexts/board-container/board-container-provider.d.ts +12 -0
  168. package/ui/contexts/board-container/board-container-provider.d.ts.map +1 -0
  169. package/ui/contexts/board-container/index.d.ts +2 -0
  170. package/ui/contexts/board-container/index.d.ts.map +1 -0
  171. package/ui/contexts/cui-kit/cui-kit.d.ts +22 -0
  172. package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -0
  173. package/ui/contexts/cui-kit/index.d.ts +2 -0
  174. package/ui/contexts/cui-kit/index.d.ts.map +1 -0
  175. package/ui/contexts/device-assembly/device-assembly-provider.d.ts +12 -0
  176. package/ui/contexts/device-assembly/device-assembly-provider.d.ts.map +1 -0
  177. package/ui/contexts/device-assembly/index.d.ts +2 -0
  178. package/ui/contexts/device-assembly/index.d.ts.map +1 -0
  179. package/ui/contexts/holder/holder-provider.d.ts +13 -0
  180. package/ui/contexts/holder/holder-provider.d.ts.map +1 -0
  181. package/ui/contexts/holder/index.d.ts +2 -0
  182. package/ui/contexts/holder/index.d.ts.map +1 -0
  183. package/ui/contexts/holder-container/holder-container-provider.d.ts +13 -0
  184. package/ui/contexts/holder-container/holder-container-provider.d.ts.map +1 -0
  185. package/ui/contexts/holder-container/index.d.ts +2 -0
  186. package/ui/contexts/holder-container/index.d.ts.map +1 -0
  187. package/ui/contexts/index.d.ts +13 -0
  188. package/ui/contexts/index.d.ts.map +1 -0
  189. package/ui/contexts/ingredient/index.d.ts +2 -0
  190. package/ui/contexts/ingredient/index.d.ts.map +1 -0
  191. package/ui/contexts/ingredient/ingredient-provider.d.ts +13 -0
  192. package/ui/contexts/ingredient/ingredient-provider.d.ts.map +1 -0
  193. package/ui/contexts/ingredient-container/index.d.ts +2 -0
  194. package/ui/contexts/ingredient-container/index.d.ts.map +1 -0
  195. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts +13 -0
  196. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts.map +1 -0
  197. package/ui/contexts/nozzle/index.d.ts +2 -0
  198. package/ui/contexts/nozzle/index.d.ts.map +1 -0
  199. package/ui/contexts/nozzle/nozzle-provider.d.ts +13 -0
  200. package/ui/contexts/nozzle/nozzle-provider.d.ts.map +1 -0
  201. package/ui/contexts/pump/index.d.ts +2 -0
  202. package/ui/contexts/pump/index.d.ts.map +1 -0
  203. package/ui/contexts/pump/pump-provider.d.ts +13 -0
  204. package/ui/contexts/pump/pump-provider.d.ts.map +1 -0
  205. package/ui/hooks/assembly/index.d.ts +3 -0
  206. package/ui/hooks/assembly/index.d.ts.map +1 -0
  207. package/ui/hooks/assembly/use-assembly.d.ts +14 -0
  208. package/ui/hooks/assembly/use-assembly.d.ts.map +1 -0
  209. package/ui/hooks/assembly/with-assembly.d.ts +8 -0
  210. package/ui/hooks/assembly/with-assembly.d.ts.map +1 -0
  211. package/ui/hooks/availability/index.d.ts +3 -0
  212. package/ui/hooks/availability/index.d.ts.map +1 -0
  213. package/ui/hooks/availability/use-availability.d.ts +14 -0
  214. package/ui/hooks/availability/use-availability.d.ts.map +1 -0
  215. package/ui/hooks/availability/with-availability.d.ts +8 -0
  216. package/ui/hooks/availability/with-availability.d.ts.map +1 -0
  217. package/ui/hooks/board/index.d.ts +3 -0
  218. package/ui/hooks/board/index.d.ts.map +1 -0
  219. package/ui/hooks/board/use-board.d.ts +14 -0
  220. package/ui/hooks/board/use-board.d.ts.map +1 -0
  221. package/ui/hooks/board/with-board.d.ts +8 -0
  222. package/ui/hooks/board/with-board.d.ts.map +1 -0
  223. package/ui/hooks/board-container/index.d.ts +3 -0
  224. package/ui/hooks/board-container/index.d.ts.map +1 -0
  225. package/ui/hooks/board-container/use-board-container.d.ts +14 -0
  226. package/ui/hooks/board-container/use-board-container.d.ts.map +1 -0
  227. package/ui/hooks/board-container/with-board-container.d.ts +8 -0
  228. package/ui/hooks/board-container/with-board-container.d.ts.map +1 -0
  229. package/ui/hooks/cui-kit/index.d.ts +8 -0
  230. package/ui/hooks/cui-kit/index.d.ts.map +1 -0
  231. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts +18 -0
  232. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts.map +1 -0
  233. package/ui/hooks/cui-kit/use-beverages.d.ts +17 -0
  234. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -0
  235. package/ui/hooks/cui-kit/use-brands.d.ts +17 -0
  236. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -0
  237. package/ui/hooks/cui-kit/use-cui-kit.d.ts +127 -0
  238. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -0
  239. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts +88 -0
  240. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -0
  241. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts +19 -0
  242. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts.map +1 -0
  243. package/ui/hooks/cui-kit/use-dispense-timers.d.ts +17 -0
  244. package/ui/hooks/cui-kit/use-dispense-timers.d.ts.map +1 -0
  245. package/ui/hooks/cui-kit/use-flavors.d.ts +17 -0
  246. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -0
  247. package/ui/hooks/device-assembly/index.d.ts +3 -0
  248. package/ui/hooks/device-assembly/index.d.ts.map +1 -0
  249. package/ui/hooks/device-assembly/use-device-assembly.d.ts +14 -0
  250. package/ui/hooks/device-assembly/use-device-assembly.d.ts.map +1 -0
  251. package/ui/hooks/device-assembly/with-device-assembly.d.ts +9 -0
  252. package/ui/hooks/device-assembly/with-device-assembly.d.ts.map +1 -0
  253. package/ui/hooks/holder/index.d.ts +3 -0
  254. package/ui/hooks/holder/index.d.ts.map +1 -0
  255. package/ui/hooks/holder/use-holder.d.ts +14 -0
  256. package/ui/hooks/holder/use-holder.d.ts.map +1 -0
  257. package/ui/hooks/holder/with-holder.d.ts +8 -0
  258. package/ui/hooks/holder/with-holder.d.ts.map +1 -0
  259. package/ui/hooks/holder-container/index.d.ts +3 -0
  260. package/ui/hooks/holder-container/index.d.ts.map +1 -0
  261. package/ui/hooks/holder-container/use-holder-container.d.ts +14 -0
  262. package/ui/hooks/holder-container/use-holder-container.d.ts.map +1 -0
  263. package/ui/hooks/holder-container/with-holder-container.d.ts +8 -0
  264. package/ui/hooks/holder-container/with-holder-container.d.ts.map +1 -0
  265. package/ui/hooks/index.d.ts +14 -0
  266. package/ui/hooks/index.d.ts.map +1 -0
  267. package/ui/hooks/ingredient/index.d.ts +4 -0
  268. package/ui/hooks/ingredient/index.d.ts.map +1 -0
  269. package/ui/hooks/ingredient/use-ingredient-pour.d.ts +49 -0
  270. package/ui/hooks/ingredient/use-ingredient-pour.d.ts.map +1 -0
  271. package/ui/hooks/ingredient/use-ingredient.d.ts +14 -0
  272. package/ui/hooks/ingredient/use-ingredient.d.ts.map +1 -0
  273. package/ui/hooks/ingredient/with-ingredient.d.ts +8 -0
  274. package/ui/hooks/ingredient/with-ingredient.d.ts.map +1 -0
  275. package/ui/hooks/ingredient-container/index.d.ts +3 -0
  276. package/ui/hooks/ingredient-container/index.d.ts.map +1 -0
  277. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts +14 -0
  278. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts.map +1 -0
  279. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts +8 -0
  280. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts.map +1 -0
  281. package/ui/hooks/nozzle/index.d.ts +3 -0
  282. package/ui/hooks/nozzle/index.d.ts.map +1 -0
  283. package/ui/hooks/nozzle/use-dispense-kit.d.ts +22 -0
  284. package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -0
  285. package/ui/hooks/nozzle/use-nozzle.d.ts +14 -0
  286. package/ui/hooks/nozzle/use-nozzle.d.ts.map +1 -0
  287. package/ui/hooks/nozzle/with-nozzle.d.ts +8 -0
  288. package/ui/hooks/nozzle/with-nozzle.d.ts.map +1 -0
  289. package/ui/hooks/nozzle-pour/index.d.ts +2 -0
  290. package/ui/hooks/nozzle-pour/index.d.ts.map +1 -0
  291. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts +48 -0
  292. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts.map +1 -0
  293. package/ui/hooks/pump/index.d.ts +3 -0
  294. package/ui/hooks/pump/index.d.ts.map +1 -0
  295. package/ui/hooks/pump/use-pump.d.ts +14 -0
  296. package/ui/hooks/pump/use-pump.d.ts.map +1 -0
  297. package/ui/hooks/pump/with-pump.d.ts +8 -0
  298. package/ui/hooks/pump/with-pump.d.ts.map +1 -0
  299. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts +5 -0
  300. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts.map +1 -0
  301. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts +4 -0
  302. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts.map +1 -0
  303. package/ui/hooks/utils/pour-strategy/index.d.ts +7 -0
  304. package/ui/hooks/utils/pour-strategy/index.d.ts.map +1 -0
  305. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts +8 -0
  306. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts.map +1 -0
  307. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts +13 -0
  308. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts.map +1 -0
  309. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts +5 -0
  310. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts.map +1 -0
  311. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts +4 -0
  312. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts.map +1 -0
  313. package/ui/index.d.ts +3 -0
  314. package/ui/index.d.ts.map +1 -0
  315. package/ui.cjs +2 -0
  316. package/ui.cjs.map +1 -0
  317. package/ui.d.ts +1 -0
  318. package/ui.js +70 -0
  319. package/ui.js.map +1 -0
@@ -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,163 @@
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
+ }
@@ -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,13 @@
1
+ export * from './assembly';
2
+ export * from './availability';
3
+ export * from './board';
4
+ export * from './device-assembly';
5
+ export * from './holder';
6
+ export * from './holder-container';
7
+ export * from './ingredient';
8
+ export * from './ingredient-container';
9
+ export * from './nozzle';
10
+ export * from './pump';
11
+ export * from './pump-container';
12
+ export * from './types';
13
+ //# 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,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"}