@kosdev-code/kos-dispense-sdk 0.1.0-dev.5873 → 0.1.0-next.1000

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 (312) hide show
  1. package/.kos.json +129 -0
  2. package/{dispense-registration-manager-ukk4OBeX.cjs → dispense-registration-manager-CfWgJqfq.cjs} +807 -445
  3. package/dispense-registration-manager-CfWgJqfq.cjs.map +1 -0
  4. package/{dispense-registration-manager-C4XZ_c3x.js → dispense-registration-manager-DtN0T_JG.js} +846 -484
  5. package/dispense-registration-manager-DtN0T_JG.js.map +1 -0
  6. package/{extension-utils-CMVLCSA8.cjs → extension-utils-BWYG2dYG.cjs} +52 -194
  7. package/extension-utils-BWYG2dYG.cjs.map +1 -0
  8. package/{extension-utils-FxS68Xu9.js → extension-utils-BoXtjU5_.js} +58 -200
  9. package/extension-utils-BoXtjU5_.js.map +1 -0
  10. package/extensions/control-pour-extension.d.ts +8 -9
  11. package/extensions/control-pour-extension.d.ts.map +1 -1
  12. package/extensions/index.d.ts.map +1 -1
  13. package/index.cjs +31 -11
  14. package/index.cjs.map +1 -1
  15. package/index.d.ts.map +1 -1
  16. package/index.js +118 -98
  17. package/index.js.map +1 -1
  18. package/models/constants/constants.d.ts +14 -178
  19. package/models/constants/constants.d.ts.map +1 -1
  20. package/models/constants/index.d.ts.map +1 -1
  21. package/models/index.d.ts.map +1 -1
  22. package/models/models/assembly/assembly-model.d.ts +12 -5
  23. package/models/models/assembly/assembly-model.d.ts.map +1 -1
  24. package/models/models/assembly/assembly-registration.d.ts +12 -71
  25. package/models/models/assembly/assembly-registration.d.ts.map +1 -1
  26. package/models/models/assembly/board-utils.d.ts +1 -2
  27. package/models/models/assembly/board-utils.d.ts.map +1 -1
  28. package/models/models/assembly/holder-utils.d.ts +1 -2
  29. package/models/models/assembly/holder-utils.d.ts.map +1 -1
  30. package/models/models/assembly/index.d.ts.map +1 -1
  31. package/models/models/assembly/nozzle-utils.d.ts +1 -2
  32. package/models/models/assembly/nozzle-utils.d.ts.map +1 -1
  33. package/models/models/assembly/pump-utils.d.ts +2 -3
  34. package/models/models/assembly/pump-utils.d.ts.map +1 -1
  35. package/models/models/assembly/services/assembly-services.d.ts +0 -1
  36. package/models/models/assembly/services/assembly-services.d.ts.map +1 -1
  37. package/models/models/assembly/services/index.d.ts.map +1 -1
  38. package/models/models/assembly/types/index.d.ts +8 -3
  39. package/models/models/availability/availability-model.d.ts +13 -78
  40. package/models/models/availability/availability-model.d.ts.map +1 -1
  41. package/models/models/availability/index.d.ts.map +1 -1
  42. package/models/models/availability/types/index.d.ts +7 -13
  43. package/models/models/board/board-container-model.d.ts +10 -3
  44. package/models/models/board/board-container-model.d.ts.map +1 -1
  45. package/models/models/board/board-container-registration.d.ts +13 -77
  46. package/models/models/board/board-container-registration.d.ts.map +1 -1
  47. package/models/models/board/board-model.d.ts +1 -2
  48. package/models/models/board/board-model.d.ts.map +1 -1
  49. package/models/models/board/board-registration.d.ts +12 -74
  50. package/models/models/board/board-registration.d.ts.map +1 -1
  51. package/models/models/board/index.d.ts.map +1 -1
  52. package/models/models/board/types/index.d.ts +12 -2
  53. package/models/models/board/types/services.d.ts.map +1 -1
  54. package/models/models/board/utils/board-trouble-data-mapper.d.ts +1 -2
  55. package/models/models/board/utils/board-trouble-data-mapper.d.ts.map +1 -1
  56. package/models/models/board/utils/board-trouble-resolver.d.ts +0 -1
  57. package/models/models/board/utils/board-trouble-resolver.d.ts.map +1 -1
  58. package/models/models/cui-kit-state/cui-kit-state-model.d.ts +133 -0
  59. package/models/models/cui-kit-state/cui-kit-state-model.d.ts.map +1 -0
  60. package/models/models/cui-kit-state/index.d.ts +4 -0
  61. package/models/models/cui-kit-state/index.d.ts.map +1 -0
  62. package/models/models/cui-kit-state/types/index.d.ts +82 -0
  63. package/models/models/device-assembly/device-assembly-model.d.ts +6 -3
  64. package/models/models/device-assembly/device-assembly-model.d.ts.map +1 -1
  65. package/models/models/device-assembly/device-assembly-registration.d.ts +14 -79
  66. package/models/models/device-assembly/device-assembly-registration.d.ts.map +1 -1
  67. package/models/models/device-assembly/index.d.ts.map +1 -1
  68. package/models/models/device-assembly/types/index.d.ts +4 -0
  69. package/models/models/generic-pour/generic-pour-model.d.ts +19 -4
  70. package/models/models/generic-pour/generic-pour-model.d.ts.map +1 -1
  71. package/models/models/generic-pour/generic-pour-registration.d.ts +13 -75
  72. package/models/models/generic-pour/generic-pour-registration.d.ts.map +1 -1
  73. package/models/models/generic-pour/index.d.ts.map +1 -1
  74. package/models/models/generic-pour/services/generic-pour-services.d.ts.map +1 -1
  75. package/models/models/generic-pour/services/index.d.ts.map +1 -1
  76. package/models/models/generic-pour/types/index.d.ts +4 -0
  77. package/models/models/holder/holder-model.d.ts +16 -75
  78. package/models/models/holder/holder-model.d.ts.map +1 -1
  79. package/models/models/holder/index.d.ts.map +1 -1
  80. package/models/models/holder/services/assignment-services.d.ts.map +1 -1
  81. package/models/models/holder/services/holder-services.d.ts.map +1 -1
  82. package/models/models/holder/services/index.d.ts.map +1 -1
  83. package/models/models/holder/types/index.d.ts +11 -7
  84. package/models/models/holder/utils/holder-utils.d.ts +0 -1
  85. package/models/models/holder/utils/holder-utils.d.ts.map +1 -1
  86. package/models/models/holder-container/holder-container-model.d.ts +12 -70
  87. package/models/models/holder-container/holder-container-model.d.ts.map +1 -1
  88. package/models/models/holder-container/index.d.ts.map +1 -1
  89. package/models/models/holder-container/types/index.d.ts +16 -5
  90. package/models/models/index.d.ts +1 -0
  91. package/models/models/index.d.ts.map +1 -1
  92. package/models/models/ingredient/index.d.ts.map +1 -1
  93. package/models/models/ingredient/ingredient-model.d.ts +12 -76
  94. package/models/models/ingredient/ingredient-model.d.ts.map +1 -1
  95. package/models/models/ingredient/services/index.d.ts.map +1 -1
  96. package/models/models/ingredient/services/ingredient-services.d.ts.map +1 -1
  97. package/models/models/ingredient/types/index.d.ts +7 -13
  98. package/models/models/ingredient-container/index.d.ts.map +1 -1
  99. package/models/models/ingredient-container/ingredient-container-model.d.ts +12 -70
  100. package/models/models/ingredient-container/ingredient-container-model.d.ts.map +1 -1
  101. package/models/models/ingredient-container/types/index.d.ts +7 -3
  102. package/models/models/nozzle/index.d.ts.map +1 -1
  103. package/models/models/nozzle/nozzle-model.d.ts +20 -81
  104. package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
  105. package/models/models/nozzle/services/index.d.ts.map +1 -1
  106. package/models/models/nozzle/services/nozzle-services.d.ts +11 -65
  107. package/models/models/nozzle/services/nozzle-services.d.ts.map +1 -1
  108. package/models/models/nozzle/types/index.d.ts +7 -3
  109. package/models/models/pump/index.d.ts.map +1 -1
  110. package/models/models/pump/pump-model.d.ts +12 -81
  111. package/models/models/pump/pump-model.d.ts.map +1 -1
  112. package/models/models/pump/services/index.d.ts.map +1 -1
  113. package/models/models/pump/services/pump-services.d.ts +3 -5
  114. package/models/models/pump/services/pump-services.d.ts.map +1 -1
  115. package/models/models/pump/types/index.d.ts +7 -3
  116. package/models/models/pump/utils/pump-trouble-resolver.d.ts +0 -1
  117. package/models/models/pump/utils/pump-trouble-resolver.d.ts.map +1 -1
  118. package/models/models/pump-container/index.d.ts.map +1 -1
  119. package/models/models/pump-container/pump-container-model.d.ts +16 -70
  120. package/models/models/pump-container/pump-container-model.d.ts.map +1 -1
  121. package/models/models/pump-container/types/index.d.ts +7 -3
  122. package/models/models/types/assembly.d.ts.map +1 -1
  123. package/models/models/types/index.d.ts.map +1 -1
  124. package/models/models/types/intent.d.ts +11 -79
  125. package/models/models/types/intent.d.ts.map +1 -1
  126. package/models/models/types/pouring.d.ts.map +1 -1
  127. package/models/utils/dispense-registration-manager.d.ts +34 -10
  128. package/models/utils/dispense-registration-manager.d.ts.map +1 -1
  129. package/models/utils/extension-utils.d.ts +66 -173
  130. package/models/utils/extension-utils.d.ts.map +1 -1
  131. package/models/utils/openapi-index.d.ts +1 -1
  132. package/models/utils/openapi-index.d.ts.map +1 -1
  133. package/models/utils/pour-context.d.ts +8 -0
  134. package/models/utils/pour-context.d.ts.map +1 -0
  135. package/models/utils/registration.d.ts +0 -1
  136. package/models/utils/registration.d.ts.map +1 -1
  137. package/models/utils/service.d.ts +34 -35
  138. package/models/utils/service.d.ts.map +1 -1
  139. package/models/utils/services/dispense/1.6.5/service.d.ts +34 -35
  140. package/models/utils/services/dispense/1.6.5/service.d.ts.map +1 -1
  141. package/models/utils/services/dispense/1.8.1/service.d.ts +34 -35
  142. package/models/utils/services/dispense/1.8.1/service.d.ts.map +1 -1
  143. package/models/utils/services/dispense/daily/openapi.d.ts +1941 -1812
  144. package/models/utils/services/dispense/daily/service.d.ts +127 -37
  145. package/models/utils/services/dispense/daily/service.d.ts.map +1 -1
  146. package/models/utils/services-index.d.ts +1 -1
  147. package/models/utils/services-index.d.ts.map +1 -1
  148. package/models.cjs +4 -5
  149. package/models.cjs.map +1 -1
  150. package/models.d.ts +1 -0
  151. package/models.js +29 -30
  152. package/models.js.map +1 -1
  153. package/package.json +11 -12
  154. package/{pump-provider-BAQXIUuP.cjs → pump-provider-B4WR3LiY.cjs} +480 -544
  155. package/pump-provider-B4WR3LiY.cjs.map +1 -0
  156. package/{pump-provider-9rUgev7q.js → pump-provider-CPUsLke5.js} +541 -605
  157. package/pump-provider-CPUsLke5.js.map +1 -0
  158. package/ui/contexts/assembly/assembly-provider.d.ts +9 -2
  159. package/ui/contexts/assembly/assembly-provider.d.ts.map +1 -1
  160. package/ui/contexts/assembly/index.d.ts.map +1 -1
  161. package/ui/contexts/availability/availability-provider.d.ts +9 -2
  162. package/ui/contexts/availability/availability-provider.d.ts.map +1 -1
  163. package/ui/contexts/availability/index.d.ts.map +1 -1
  164. package/ui/contexts/board/board-provider.d.ts +9 -2
  165. package/ui/contexts/board/board-provider.d.ts.map +1 -1
  166. package/ui/contexts/board/index.d.ts.map +1 -1
  167. package/ui/contexts/board-container/board-container-provider.d.ts +9 -2
  168. package/ui/contexts/board-container/board-container-provider.d.ts.map +1 -1
  169. package/ui/contexts/board-container/index.d.ts.map +1 -1
  170. package/ui/contexts/cui-kit/cui-kit.d.ts +17 -3
  171. package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -1
  172. package/ui/contexts/cui-kit/index.d.ts.map +1 -1
  173. package/ui/contexts/device-assembly/device-assembly-provider.d.ts +9 -2
  174. package/ui/contexts/device-assembly/device-assembly-provider.d.ts.map +1 -1
  175. package/ui/contexts/device-assembly/index.d.ts.map +1 -1
  176. package/ui/contexts/holder/holder-provider.d.ts +9 -2
  177. package/ui/contexts/holder/holder-provider.d.ts.map +1 -1
  178. package/ui/contexts/holder/index.d.ts.map +1 -1
  179. package/ui/contexts/holder-container/holder-container-provider.d.ts +9 -2
  180. package/ui/contexts/holder-container/holder-container-provider.d.ts.map +1 -1
  181. package/ui/contexts/holder-container/index.d.ts.map +1 -1
  182. package/ui/contexts/index.d.ts.map +1 -1
  183. package/ui/contexts/ingredient/index.d.ts.map +1 -1
  184. package/ui/contexts/ingredient/ingredient-provider.d.ts +9 -2
  185. package/ui/contexts/ingredient/ingredient-provider.d.ts.map +1 -1
  186. package/ui/contexts/ingredient-container/index.d.ts.map +1 -1
  187. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts +9 -2
  188. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts.map +1 -1
  189. package/ui/contexts/nozzle/index.d.ts.map +1 -1
  190. package/ui/contexts/nozzle/nozzle-provider.d.ts +9 -2
  191. package/ui/contexts/nozzle/nozzle-provider.d.ts.map +1 -1
  192. package/ui/contexts/pump/index.d.ts.map +1 -1
  193. package/ui/contexts/pump/pump-provider.d.ts +9 -2
  194. package/ui/contexts/pump/pump-provider.d.ts.map +1 -1
  195. package/ui/hooks/assembly/index.d.ts.map +1 -1
  196. package/ui/hooks/assembly/use-assembly.d.ts +5 -2
  197. package/ui/hooks/assembly/use-assembly.d.ts.map +1 -1
  198. package/ui/hooks/assembly/with-assembly.d.ts +4 -1
  199. package/ui/hooks/assembly/with-assembly.d.ts.map +1 -1
  200. package/ui/hooks/availability/index.d.ts.map +1 -1
  201. package/ui/hooks/availability/use-availability.d.ts +5 -2
  202. package/ui/hooks/availability/use-availability.d.ts.map +1 -1
  203. package/ui/hooks/availability/with-availability.d.ts +0 -1
  204. package/ui/hooks/availability/with-availability.d.ts.map +1 -1
  205. package/ui/hooks/board/index.d.ts.map +1 -1
  206. package/ui/hooks/board/use-board.d.ts +5 -2
  207. package/ui/hooks/board/use-board.d.ts.map +1 -1
  208. package/ui/hooks/board/with-board.d.ts +4 -1
  209. package/ui/hooks/board/with-board.d.ts.map +1 -1
  210. package/ui/hooks/board-container/index.d.ts.map +1 -1
  211. package/ui/hooks/board-container/use-board-container.d.ts +5 -2
  212. package/ui/hooks/board-container/use-board-container.d.ts.map +1 -1
  213. package/ui/hooks/board-container/with-board-container.d.ts +4 -1
  214. package/ui/hooks/board-container/with-board-container.d.ts.map +1 -1
  215. package/ui/hooks/cui-kit/dispense-topics.d.ts +0 -1
  216. package/ui/hooks/cui-kit/dispense-topics.d.ts.map +1 -1
  217. package/ui/hooks/cui-kit/index.d.ts.map +1 -1
  218. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts +0 -1
  219. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts.map +1 -1
  220. package/ui/hooks/cui-kit/use-beverages.d.ts +1 -2
  221. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -1
  222. package/ui/hooks/cui-kit/use-brands.d.ts +1 -2
  223. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -1
  224. package/ui/hooks/cui-kit/use-cui-kit.d.ts +51 -7
  225. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -1
  226. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts +16 -44
  227. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -1
  228. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts +0 -1
  229. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts.map +1 -1
  230. package/ui/hooks/cui-kit/use-dispense-timers.d.ts +0 -1
  231. package/ui/hooks/cui-kit/use-dispense-timers.d.ts.map +1 -1
  232. package/ui/hooks/cui-kit/use-flavors.d.ts +1 -2
  233. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -1
  234. package/ui/hooks/device-assembly/index.d.ts.map +1 -1
  235. package/ui/hooks/device-assembly/use-device-assembly.d.ts +5 -2
  236. package/ui/hooks/device-assembly/use-device-assembly.d.ts.map +1 -1
  237. package/ui/hooks/device-assembly/with-device-assembly.d.ts +4 -1
  238. package/ui/hooks/device-assembly/with-device-assembly.d.ts.map +1 -1
  239. package/ui/hooks/generic-pour/index.d.ts.map +1 -1
  240. package/ui/hooks/generic-pour/use-generic-pour.d.ts +6 -3
  241. package/ui/hooks/generic-pour/use-generic-pour.d.ts.map +1 -1
  242. package/ui/hooks/generic-pour/with-generic-pour.d.ts +5 -2
  243. package/ui/hooks/generic-pour/with-generic-pour.d.ts.map +1 -1
  244. package/ui/hooks/holder/index.d.ts.map +1 -1
  245. package/ui/hooks/holder/use-holder.d.ts +5 -2
  246. package/ui/hooks/holder/use-holder.d.ts.map +1 -1
  247. package/ui/hooks/holder/with-holder.d.ts +4 -1
  248. package/ui/hooks/holder/with-holder.d.ts.map +1 -1
  249. package/ui/hooks/holder-container/index.d.ts.map +1 -1
  250. package/ui/hooks/holder-container/use-holder-container.d.ts +7 -4
  251. package/ui/hooks/holder-container/use-holder-container.d.ts.map +1 -1
  252. package/ui/hooks/holder-container/with-holder-container.d.ts +4 -1
  253. package/ui/hooks/holder-container/with-holder-container.d.ts.map +1 -1
  254. package/ui/hooks/index.d.ts.map +1 -1
  255. package/ui/hooks/ingredient/index.d.ts.map +1 -1
  256. package/ui/hooks/ingredient/use-ingredient-pour.d.ts +16 -22
  257. package/ui/hooks/ingredient/use-ingredient-pour.d.ts.map +1 -1
  258. package/ui/hooks/ingredient/use-ingredient.d.ts +5 -2
  259. package/ui/hooks/ingredient/use-ingredient.d.ts.map +1 -1
  260. package/ui/hooks/ingredient/with-ingredient.d.ts +4 -1
  261. package/ui/hooks/ingredient/with-ingredient.d.ts.map +1 -1
  262. package/ui/hooks/ingredient-container/index.d.ts.map +1 -1
  263. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts +5 -2
  264. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts.map +1 -1
  265. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts +4 -1
  266. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts.map +1 -1
  267. package/ui/hooks/nozzle/index.d.ts.map +1 -1
  268. package/ui/hooks/nozzle/use-dispense-kit.d.ts +0 -1
  269. package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -1
  270. package/ui/hooks/nozzle/use-nozzle.d.ts +5 -2
  271. package/ui/hooks/nozzle/use-nozzle.d.ts.map +1 -1
  272. package/ui/hooks/nozzle/with-nozzle.d.ts +4 -1
  273. package/ui/hooks/nozzle/with-nozzle.d.ts.map +1 -1
  274. package/ui/hooks/nozzle-pour/index.d.ts.map +1 -1
  275. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts +16 -22
  276. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts.map +1 -1
  277. package/ui/hooks/pour/index.d.ts.map +1 -1
  278. package/ui/hooks/pour/use-pour.d.ts +11 -23
  279. package/ui/hooks/pour/use-pour.d.ts.map +1 -1
  280. package/ui/hooks/pump/index.d.ts.map +1 -1
  281. package/ui/hooks/pump/use-pump.d.ts +1 -2
  282. package/ui/hooks/pump/use-pump.d.ts.map +1 -1
  283. package/ui/hooks/pump/with-pump.d.ts +0 -1
  284. package/ui/hooks/pump/with-pump.d.ts.map +1 -1
  285. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts +5 -2
  286. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts.map +1 -1
  287. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts +4 -1
  288. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts.map +1 -1
  289. package/ui/hooks/utils/pour-strategy/index.d.ts.map +1 -1
  290. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts +11 -2
  291. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts.map +1 -1
  292. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts +5 -2
  293. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts.map +1 -1
  294. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts +5 -2
  295. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts.map +1 -1
  296. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts +4 -1
  297. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts.map +1 -1
  298. package/ui/index.d.ts.map +1 -1
  299. package/ui/utils/pour-context.d.ts +1 -7
  300. package/ui/utils/pour-context.d.ts.map +1 -1
  301. package/ui.cjs +3 -7
  302. package/ui.cjs.map +1 -1
  303. package/ui.d.ts +1 -0
  304. package/ui.js +64 -68
  305. package/ui.js.map +1 -1
  306. package/dispense-registration-manager-C4XZ_c3x.js.map +0 -1
  307. package/dispense-registration-manager-ukk4OBeX.cjs.map +0 -1
  308. package/extension-utils-CMVLCSA8.cjs.map +0 -1
  309. package/extension-utils-FxS68Xu9.js.map +0 -1
  310. package/kos-models.json +0 -180
  311. package/pump-provider-9rUgev7q.js.map +0 -1
  312. package/pump-provider-BAQXIUuP.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/types/assembly.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,MAAM,GAAG,EAAE,IAAI;KACvD,GAAG,IAAI,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC;CACvC,GAAG;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GAAG,GAAG,CACjD,CAAC"}
1
+ {"version":3,"file":"assembly.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-dispense-sdk/src/models/models/types/assembly.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,MAAM,GAAG,EAAE,IAAI;KACvD,GAAG,IAAI,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC;CACvC,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,MAAM,cAAc,CAAC,SAAS,SAAS,MAAM,GAAG,EAAE,IAAI;KACzD,GAAG,IAAI,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC;CACzC,GAAG;IACF,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE;QACV,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AACF,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,MAAM,GAAG,EAAE,IAAI,IAAI,CAC7D,YAAY,CAAC,OAAO,CAAC,EACrB,OAAO,CACR,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AC,WAAW,CAAC,GAAG,GAAG,EACpD,CAAC,CAAC,WAAW,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,GAAG,GAAG,EACpD,CAAC,CAAC,UAAU,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,GAAG,GAAG,EAClD,CAAC,CAAC,SAAS,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,GAAG,CACjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,YAAY,CAAC;AAC5C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-dispense-sdk/src/models/models/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,YAAY,CAAC;AAC5C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { IKosIdentifiable, FutureResponse } from '@kosdev-code/kos-ui-sdk';
2
-
3
2
  export interface IntentAwareProps {
4
3
  intent: string;
5
4
  pumpPath?: string;
@@ -17,36 +16,13 @@ export interface IntentAware extends IKosIdentifiable {
17
16
  performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
18
17
  }
19
18
  /**
20
- * Interface for models that can resolve intent volumes for various operations.
21
- *
22
- * This interface extends intent-aware models with the ability to calculate
23
- * appropriate volumes for specific intents (e.g., CALIBRATE, PRIME, FLUSH).
24
- * Typically implemented by holder and pump models that have ingredient assignments
25
- * and need to determine operation-specific volumes based on ingredient type,
26
- * pump configuration, or operational requirements.
27
- *
28
- * Use this interface in combination with {@link IntentAware} to create models
29
- * that can both determine appropriate volumes and execute the operations.
30
- *
31
- * @example
32
- * Using IntentContainer for calibration:
33
- * ```typescript
34
- * async function calibratePump(holder: HolderModel & IntentContainer) {
35
- * // Resolve appropriate calibration volume
36
- * const result = await holder.resolveIntentVolume("CALIBRATE");
37
- * console.log(`Calibration requires ${result.volume} oz`);
38
- *
39
- * // Execute calibration with resolved volume
40
- * await holder.performIntent("CALIBRATE");
41
- * }
42
- * ```
19
+ * A model that can resolve the volume an intent (such as CALIBRATE, PRIME or FLUSH) will dispense.
20
+ * Holder and pump models implement it alongside {@link IntentAware}, which performs the intent.
43
21
  *
44
22
  * @example
45
- * Checking for ingredient assignment:
46
23
  * ```typescript
47
- * function canResolveVolume(model: IntentContainer): boolean {
48
- * return model.ingredientId !== undefined;
49
- * }
24
+ * const { volume } = await holder.resolveIntentVolume("CALIBRATE");
25
+ * await holder.performIntent("CALIBRATE");
50
26
  * ```
51
27
  *
52
28
  * @category Model Interfaces
@@ -54,63 +30,19 @@ export interface IntentAware extends IKosIdentifiable {
54
30
  */
55
31
  export interface IntentContainer {
56
32
  /**
57
- * Resolves the appropriate volume for a given intent operation.
33
+ * Resolves the volume the backend reports for an intent on the assigned ingredient.
58
34
  *
59
- * Different intents require different volumes based on operational requirements:
60
- * - **CALIBRATE**: Standard calibration volume based on ingredient type and pump configuration
61
- * - **PRIME**: Volume needed to prime the line from reservoir to dispense point
62
- * - **FLUSH**: Cleaning volume to flush contaminants from the system
63
- * - **PURGE**: Volume to completely clear the line
64
- *
65
- * The resolved volume is calculated based on:
66
- * - Ingredient type and properties
67
- * - Pump hardware configuration (line length, diameter)
68
- * - Operational parameters (flow rates, pressure)
69
- * - Device-specific calibration data
70
- *
71
- * @param intent - The intent string identifier (e.g., "CALIBRATE", "PRIME", "FLUSH")
72
- * @returns Promise resolving to object with `volume` property in ounces (oz)
73
- *
74
- * @throws May reject if ingredient is not assigned or volume cannot be determined
75
- *
76
- * @example
77
- * Resolving calibration volume:
78
- * ```typescript
79
- * const result = await holder.resolveIntentVolume("CALIBRATE");
80
- * console.log(`Calibration: ${result.volume} oz`);
81
- * ```
82
- *
83
- * @example
84
- * Handling volume resolution errors:
85
- * ```typescript
86
- * try {
87
- * const result = await holder.resolveIntentVolume("PRIME");
88
- * displayVolume(result.volume);
89
- * } catch (error) {
90
- * console.error("Cannot resolve volume - ingredient may not be assigned");
91
- * }
92
- * ```
35
+ * @param intent - The intent identifier (e.g., "CALIBRATE", "PRIME", "FLUSH")
36
+ * @returns Promise resolving to an object with a `volume` property in ounces, or `-1` when no
37
+ * volume is available
38
+ * @throws Rejects when the volume request to the backend fails
93
39
  */
94
40
  resolveIntentVolume(intent: string): Promise<{
95
41
  volume: number;
96
42
  }>;
97
43
  /**
98
- * Optional ingredient identifier for the assigned ingredient.
99
- *
100
- * When undefined, no ingredient is assigned to this holder/pump and volume
101
- * resolution operations may fail or return default values. Check this property
102
- * before calling {@link resolveIntentVolume} to ensure an ingredient is assigned.
103
- *
104
- * @example
105
- * Checking for assignment before resolving volume:
106
- * ```typescript
107
- * if (holder.ingredientId) {
108
- * const volume = await holder.resolveIntentVolume("CALIBRATE");
109
- * // Use volume...
110
- * } else {
111
- * console.log("No ingredient assigned - cannot calibrate");
112
- * }
113
- * ```
44
+ * Id of the assigned ingredient, or undefined when none is assigned. Volume resolution needs an
45
+ * assigned ingredient.
114
46
  */
115
47
  ingredientId?: string;
116
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/types/intent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEjE;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-dispense-sdk/src/models/models/types/intent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,gBAAgB;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEjE;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"pouring.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/models/models/types/pouring.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC"}
1
+ {"version":3,"file":"pouring.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-dispense-sdk/src/models/models/types/pouring.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC"}
@@ -1,14 +1,38 @@
1
- import { KosModelRegistry as CoreKosModelRegistration, RegistrationManager, RegistrationResult } from '@kosdev-code/kos-ui-sdk';
2
-
3
- export declare const registerDispenseModels: <R>(root: R) => () => {
1
+ import { KosModelRegistry as CoreKosModelRegistration, RegistrationManager, CoreModelOptions, RegistrationResult } from '@kosdev-code/kos-ui-sdk';
2
+ export declare const registerDispenseModels: <R>(root: R) => (options?: CoreModelOptions) => {
4
3
  preload: (type: string) => RegistrationResult<R>;
5
- model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<R>;
4
+ model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean) => RegistrationResult<R>;
6
5
  companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<R>;
7
- legacy: <T_1 extends import('@kosdev-code/kos-ui-sdk').IKosModelRegistration>(type: string, registration: T_1) => RegistrationResult<R>;
6
+ legacy: <T extends import('@kosdev-code/kos-ui-sdk').IKosModelRegistration>(type: string, registration: T) => RegistrationResult<R>;
7
+ };
8
+ /**
9
+ * Registers the CUI Kit's models together with the dispense models they depend on. The
10
+ * name a Consumer UI's registration chain uses; `dispense.models()` registers the same.
11
+ * @kosService dispense.cui-kit
12
+ * @kosApiLevel 17
13
+ */
14
+ export declare const registerCuiKitModels: <R>(root: R) => (options?: CoreModelOptions) => {
15
+ preload: (type: string) => RegistrationResult<R>;
16
+ model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean) => RegistrationResult<R>;
17
+ companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<R>;
18
+ legacy: <T extends import('@kosdev-code/kos-ui-sdk').IKosModelRegistration>(type: string, registration: T) => RegistrationResult<R>;
8
19
  };
9
20
  export type DispenseKosModelRegistration<R> = typeof CoreKosModelRegistration & {
21
+ /**
22
+ * Registers the core and dispense models; `options` reach the core models, as
23
+ * with `core.models()`.
24
+ * @kosApiLevel 17
25
+ */
10
26
  dispense: {
11
- models: () => RegistrationResult<R>;
27
+ models: (options?: CoreModelOptions) => RegistrationResult<R>;
28
+ };
29
+ /**
30
+ * Registers the CUI Kit's models with the dispense and core models; `options`
31
+ * reach the core models, as with `core.models()`.
32
+ * @kosApiLevel 17
33
+ */
34
+ cuiKit: {
35
+ models: (options?: CoreModelOptions) => RegistrationResult<R>;
12
36
  };
13
37
  preload: ReturnType<typeof RegistrationManager.model.preloadModel>;
14
38
  model: ReturnType<typeof RegistrationManager.model.register>;
@@ -16,11 +40,11 @@ export type DispenseKosModelRegistration<R> = typeof CoreKosModelRegistration &
16
40
  };
17
41
  declare const _KosModelRegistry: {
18
42
  core: {
19
- models: () => RegistrationResult<{}>;
43
+ models: (options?: CoreModelOptions) => RegistrationResult<{}>;
20
44
  };
21
- preload: (type: string) => RegistrationResult<unknown>;
22
- model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('@kosdev-code/kos-ui-sdk').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
23
- companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<unknown>;
45
+ preload: ReturnType<typeof RegistrationManager.model.preloadModel>;
46
+ model: ReturnType<typeof RegistrationManager.model.register>;
47
+ companion: ReturnType<typeof RegistrationManager.companion.register>;
24
48
  };
25
49
  type KosModelRegistryType = DispenseKosModelRegistration<typeof _KosModelRegistry>;
26
50
  declare const KosModelRegistry: KosModelRegistryType;
@@ -1 +1 @@
1
- {"version":3,"file":"dispense-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/utils/dispense-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,wBAAwB,EAG5C,mBAAmB,EAInB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAOjC,eAAO,MAAM,sBAAsB,YACvB,CAAC;;;;;CAuCV,CAAC;AAEJ,MAAM,MAAM,4BAA4B,CAAC,CAAC,IACxC,OAAO,wBAAwB,GAAG;IAChC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IAClD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEJ,QAAA,MAAM,iBAAiB;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,4BAA4B,CACtD,OAAO,iBAAiB,CACzB,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"dispense-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-dispense-sdk/src/models/utils/dispense-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,IAAI,wBAAwB,EAG5C,mBAAmB,EAInB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAQjC,eAAO,MAAM,sBAAsB,GAChC,CAAC,EAAE,MAAM,CAAC,MACV,UAAU,gBAAgB;;;;;CAuC1B,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC9B,CAAC,EAAE,MAAM,CAAC,MACV,UAAU,gBAAgB;;;;;CACY,CAAC;AAE1C,MAAM,MAAM,4BAA4B,CAAC,CAAC,IACxC,OAAO,wBAAwB,GAAG;IAChC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,gBAAgB,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IAC5E;;;;OAIG;IACH,MAAM,EAAE;QAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,gBAAgB,KAAK,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IAC1E,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEJ,QAAA,MAAM,iBAAiB;;;;;;;CAEtB,CAAC;AAiBF,KAAK,oBAAoB,GAAG,4BAA4B,CACtD,OAAO,iBAAiB,CACzB,CAAC;AAEF,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,33 +1,54 @@
1
- import { SelectedPourable } from '../models/nozzle/types';
2
- import { BeverageResponse } from '../models/nozzle/services';
3
- import { IngredientResponse } from '../models/ingredient/services';
4
- import { HolderModel } from '../models/holder/types';
5
- import { HolderResponse } from '../models/holder/services';
6
- import { AssemblyTypes, AssemblyModel } from '../models';
7
1
  import { CoreExtensionManager, DataLoader, DataMapper, ExtensionOptions, IndexExtension, PropertyMapper, FlagResolver } from '@kosdev-code/kos-ui-sdk';
8
-
2
+ import { AssemblyTypes, AssemblyModel } from '../models';
3
+ import { HolderResponse } from '../models/holder/services';
4
+ import { HolderModel } from '../models/holder/types';
5
+ import { IngredientResponse } from '../models/ingredient/services';
6
+ import { BeverageResponse } from '../models/nozzle/services';
7
+ import { SelectedPourable } from '../models/nozzle/types';
8
+ /**
9
+ * @kosService dispense.ingredient
10
+ * @kosApiLevel 2
11
+ */
9
12
  export type IngredientDataMapper<AdditionalData extends object = Record<string, any>> = DataMapper<IngredientResponse, AdditionalData, any>;
10
13
  /**
11
14
  * Mapping function that maps an ingredient response into the type property of
12
15
  * the {@link IngredientModel}.
16
+ * @kosService dispense.ingredient
17
+ * @kosApiLevel 2
13
18
  */
14
19
  export type IngredientTypeMapper<T extends IngredientResponse = IngredientResponse> = PropertyMapper<T, string>;
15
20
  /**
16
21
  * Mapping function that maps additional data from holder service response
17
22
  * into the {@link HolderModel} data.
23
+ * @kosService dispense.holder
24
+ * @kosApiLevel 2
18
25
  */
19
26
  export type HolderTypeMapper<T extends HolderResponse = HolderResponse> = PropertyMapper<T, string>;
20
27
  /**
21
28
  * Mapping function that maps additional data from holder service response
22
29
  * into the {@link HolderModel} data.
30
+ * @kosService dispense.holder
31
+ * @kosApiLevel 2
23
32
  */
24
33
  export type HolderDataMapper<AdditionalData extends object = Record<string, any>, HolderData extends HolderResponse = HolderResponse> = DataMapper<HolderData, AdditionalData, any>;
25
34
  export type GroupBeverageResponse = BeverageResponse & {
26
35
  groupId: string;
27
36
  };
37
+ /**
38
+ * @kosService dispense.availability
39
+ * @kosApiLevel 2
40
+ */
28
41
  export type AvailabilityDataMapper<AdditionalData extends object = Record<string, any>, AvailabilityData extends GroupBeverageResponse = GroupBeverageResponse> = DataMapper<AvailabilityData, AdditionalData, any>;
29
42
  export type SelectedPourableMapper = DataMapper<SelectedPourable, any>;
43
+ /**
44
+ * @kosService dispense.board
45
+ * @kosApiLevel 2
46
+ */
30
47
  export type BoardDataMapper<AdditionalData extends object = Record<string, any>, BoardData extends AssemblyTypes.AssemblyBoard<any> = AssemblyTypes.AssemblyBoard<any>> = DataMapper<BoardData, AdditionalData, any>;
48
+ /**
49
+ * @kosService dispense.assembly
50
+ * @kosApiLevel 2
51
+ */
31
52
  export type AssemblyMapper<AdditionalData extends object = Record<string, any>, AssemblyResponseData extends AssemblyTypes.AssemblyResponse<any> = AssemblyTypes.AssemblyResponse<any>> = DataMapper<AssemblyResponseData, AdditionalData, any>;
32
53
  /**
33
54
  * The DispenseExtensionManager is responsible for managing the extension points that are specific to the Dispense application.
@@ -35,85 +56,28 @@ export type AssemblyMapper<AdditionalData extends object = Record<string, any>,
35
56
  export declare class DispenseExtensionManager {
36
57
  core: CoreExtensionManager;
37
58
  /**
38
- * Maps data into the {@link IngredientModel}
59
+ * Registers a data mapper for the {@link IngredientModel}.
39
60
  *
40
- * It is common for the ingredient data provided by the ingredient service to be augmented with additional properties that are
41
- * not provided by the base KOS Ingredient model. The {@link IngredientMapper} extension point allows for the data to be mapped
42
- * into the {@link IngredientModel} and the {@link IngredientModel.data} property to be augmented with additional properties.
61
+ * Ingredient service data often needs properties the base model does not carry. The mapper receives each
62
+ * {@link IngredientResponse} and the data returned by the ingredient loader as context, and its result
63
+ * becomes the model's `data` property.
43
64
  *
44
65
  * @param ingredientDataMapper - Mapping function that maps an {@link IngredientResponse} into additional model data
45
66
  * @param options - Optional {@link ExtensionOptions} to control failure behavior.
46
67
  * Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on mapper failure.
47
68
  * Set to `"continue"` to log the error and continue processing remaining mappers.
48
69
  * @returns this instance for chaining
49
- *
50
- * @example
51
- * The following example shows how to map the data from the service response into the {@link IngredientModel}.
52
- * The context is provided by the {@link IngredientLoader} extension point with its data being used to optionally augment the
53
- * ingredient data.
54
- *
55
- * The result of the mapping will be available in the `data` property of the {@link IngredientModel}.
56
- *
57
- * In this case the `IngedientReponseData` interface represents the data being returned by the ingredient service and the
58
- * `IngredientData` interface represents the data that will be available in the {@link IngredientModel.data} property. The `ingredientDataMapper`
59
- * is responsible for mapping from one format to the other.
60
- *
61
- * ```typescript
62
- *
63
- * interface IngredientResponseData extends NozzleServices.IngredientResponse {
64
- * chilled: boolean;
65
- * carbonated: boolean;
66
- * highYield: boolean;
67
- * }
68
- *
69
- * interface IngredientData {
70
- * chilled: boolean;
71
- * carbonated: boolean;
72
- * highYield: boolean;
73
- * }
74
- *
75
- * export const ingredientDataMapper = async (
76
- * data: IngredientResponseData,
77
- * context: IngredientContext
78
- * ): Promise<IngredientData> => {
79
- * return {
80
- * chilled: data.chilled,
81
- * carbonated: data.carbonated,
82
- * highYield: data.highYield,
83
- * }
84
- * }
85
- * ```
86
- * */
70
+ */
87
71
  registerIngredientDataMapper(ingredientDataMapper: IngredientDataMapper, options?: ExtensionOptions): this;
88
72
  /**
89
- * Loads data that will be provided as context into the {@link IngredientMapper}.
73
+ * Registers a loader whose result is passed as context to the ingredient data and type mappers.
90
74
  *
91
75
  * @param ingredientLoader - Async function that loads and returns ingredient context data
92
76
  * @param options - Optional {@link ExtensionOptions} to control failure behavior.
93
77
  * Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on loader failure.
94
78
  * Set to `"continue"` to log the error and return `undefined` instead.
95
79
  * @returns this instance for chaining
96
- *
97
- * @example
98
- * The following example shows how to load the brandset data, normalize it into a map and then provide it back to the framework
99
- * where it can be used by the other extension points.
100
- *
101
- * In the ingredient container model, the data is provided to the {@link IngredientMapper} extension point in order to augment ingredient data
102
- * and also loaded into the ingredient container model context in order to make the data available throughout the code.
103
- *
104
- * ```typescript
105
- * export const ingredientContextLoader = async (): Promise<BeverageContext> => {
106
- * const response = await kosFetch('kos:/system/some/ingredient/endpoint.json');
107
- *
108
- * if (response.status !== 200) {
109
- * KosLog.error('Failed to load ingredient data');
110
- * return {};
111
- * }
112
- * const json = await response.json();
113
- * return json;
114
- * };
115
- * ```
116
- * */
80
+ */
117
81
  registerIngredientLoader(ingredientLoader: DataLoader, options?: ExtensionOptions): this;
118
82
  registerIngredientIndex(ingredientIndex: IndexExtension): this;
119
83
  /**
@@ -162,7 +126,10 @@ export declare class DispenseExtensionManager {
162
126
  registerHolderIngredientMapper(holderTypeMapper: HolderTypeMapper, options?: ExtensionOptions): this;
163
127
  registerHolderIndex<T extends HolderModel = HolderModel>(holderIndex: IndexExtension<T>): this;
164
128
  /**
165
- * Maps data into the {@link AvailabilityModel}.
129
+ * Registers a data mapper for the {@link AvailabilityModel}.
130
+ *
131
+ * The mapper receives each availability node, with its `groupId`, and the data returned by the
132
+ * availability loader as context. Its result becomes the model's `data` property.
166
133
  *
167
134
  * @param availabilityMapper - Mapping function that maps a {@link GroupBeverageResponse} into additional availability data
168
135
  * @param options - Optional {@link ExtensionOptions} to control failure behavior.
@@ -171,31 +138,19 @@ export declare class DispenseExtensionManager {
171
138
  * @returns this instance for chaining
172
139
  *
173
140
  * @example
174
- * The following example shows how to map the data from the service response into the {@link AvailabilityModel}.
175
- * The context is provided by the {@link AvailabilityLoader} extension point with its data being used to augment the
176
- * availability data.
177
- *
178
- * The result of the mapping will be available in the `data` property of the {@link AvailabilityModel}.
179
- *
180
141
  * ```typescript
181
- * export const beverageDataMapper = async (
182
- * data: NozzleServices.BeverageResponse,
183
- * context: BeverageContext
184
- * ): Promise<BeverageData> => {
185
- * const id = data.altId;
186
- * const iconUrl = encodeURI(
187
- * `http://localhost:8081/system/brandset/${context?.[id]?.icon}`
188
- * );
189
- * const cuiColorCode = context?.[id]?.cuiColorCode
190
- * ? context?.[id]?.cuiColorCode
191
- * : '';
192
- * return { iconUrl, cuiColorCode };
193
- * };
142
+ * const beverageDataMapper: AvailabilityDataMapper<BeverageData> = async (
143
+ * data,
144
+ * context?: Record<string, BrandsetIngredient>
145
+ * ) => ({
146
+ * iconUrl: context?.[data.altId]?.icon ?? "",
147
+ * });
194
148
  * ```
195
- * */
149
+ */
196
150
  registerAvailabilityDataMapper(availabilityMapper: AvailabilityDataMapper, options?: ExtensionOptions): this;
197
151
  /**
198
- * Loads data that will be provided as context into the {@link AvailabilityMapper}.
152
+ * Registers a loader whose result is passed as context to the availability data mapper. A common use is
153
+ * loading UI-specific brandset data that the backend service does not provide.
199
154
  *
200
155
  * @param availabilityLoader - Async function that loads and returns availability context data
201
156
  * @param options - Optional {@link ExtensionOptions} to control failure behavior.
@@ -204,32 +159,14 @@ export declare class DispenseExtensionManager {
204
159
  * @returns this instance for chaining
205
160
  *
206
161
  * @example
207
- * A common use case is to load brandset data that is UI specific and not provided directly by the Java service.
208
- *
209
- * The following example shows how to load the brandset data, normalize it into a map and then provide it back to the framework
210
- * where it can be used by the other extension points.
211
- *
212
- * In the nozzle model, the data is provided to the {@link AvailabilityMapper} extension point in order to augment availability data
213
- * and also loaded into the nozzle model context in order to make the data available throughout the code.
214
- *
215
162
  * ```typescript
216
- * export const beverageContextLoader = async (): Promise<BeverageContext> => {
217
- * const response = await kosFetch('kos:/system/brandset/brandset.json');
218
- *
219
- * if (response.status !== 200) {
220
- * KosLog.error('Failed to load beverage data');
221
- * return {};
222
- * }
223
- * const json: BrandsetResponse | null = await response.json();
224
- * const initialBeverages: Record<string, BrandsetIngredient> = {};
225
- * const beverages = json?.ingredients?.reduce((acc, beverage) => {
226
- * acc[beverage.ingredientId] = beverage;
227
- * return acc;
228
- * }, initialBeverages);
229
- * return beverages;
230
- * };
163
+ * const beverageContextLoader = async () => {
164
+ * const response = await kosFetch("kos:/system/brandset/brandset.json");
165
+ * const json: BrandsetResponse = await response.json();
166
+ * return Object.fromEntries(json.ingredients.map((i) => [i.ingredientId, i]));
167
+ * };
231
168
  * ```
232
- * */
169
+ */
233
170
  registerAvailabilityLoader(availabilityLoader: DataLoader, options?: ExtensionOptions): this;
234
171
  /**
235
172
  * Maps the abstract {@link SelectedPourable} data into a format that is specific to the nozzle.
@@ -242,9 +179,8 @@ export declare class DispenseExtensionManager {
242
179
  * */
243
180
  registerSelectedPourableDataMapper(selectedPourableMapper: SelectedPourableMapper, options?: ExtensionOptions): this;
244
181
  /**
245
- * Maps data into the {@link AssemblyModel} data.
246
- * Used in cases where the base assembly has been extended with additional properties in the backend. This extension
247
- * point allows for the data to be mapped into the {@link AssemblyModel} and augmented with additional properties.
182
+ * Registers a data mapper for the {@link AssemblyModel}, for backends that extend the assembly response
183
+ * with additional properties. The mapper's result is merged into the assembly model.
248
184
  *
249
185
  * @param assemblyDataMapper - Mapping function that maps an {@link AssemblyTypes.AssemblyResponse} into additional assembly data
250
186
  * @param options - Optional {@link ExtensionOptions} to control failure behavior.
@@ -253,60 +189,18 @@ export declare class DispenseExtensionManager {
253
189
  * @returns this instance for chaining
254
190
  *
255
191
  * @example
256
- *
257
- * In this example of an implementation of a {@link AssemblyMapper}, the {@link AssemblyResponse} data is mapped into
258
- * a {@link FreestyleAssembly} object.
259
- *
260
- * The {@link FreestyleAssemblyResponse} interface represents the additional data being returned by the assembly service and is
261
- * merged into the {@link AssemblyResponse} interface.
262
- *
263
- * The {@link FreestyleAssembly} interface represents the additional data, beyond the base data set, that will be merged into the {@link AssemblyModel}.
264
- *
265
- * The mapper is responsible for mapping from the {@link FreestyleAssemblyResponse} format to the {@link FreestyleAssembly} format.
266
192
  * ```typescript
267
- * import { AssemblyTypes } from "@kosdev-code/kos-dispense-sdk";
268
- * import { DataMapper } from "@kosdev-code/kos-ui-sdk";
269
- *
270
- * // define the additional data being returned by the assembly service
271
- * export interface FreestyleAssemblyResponse {
272
- * iceAgitator?: {
273
- * name: "iceAgitator";
274
- * path: string;
275
- * };
276
- * }
277
- *
278
- * // define the additional data structure that will be merged into the assembly model
279
- * export interface FreestyleAssembly {
280
- * iceAgitator: {
281
- * path: string;
282
- * };
283
- * carbAgitator: {
284
- * path: string;
285
- * };
286
- * }
287
- *
288
- *
289
- * // define the mapper that will map the data from the service response into the additional data structure
290
- * // that will be merged into the assembly model.
291
- * // In this case the mapper is responsible for mapping from the {@link FreestyleAssemblyResponse} format to the {@link FreestyleAssembly} format.
292
- * export const assemblyDataMapper: DataMapper<
293
- * AssemblyTypes.AssemblyResponse<FreestyleAssemblyResponse>,
294
- * FreestyleAssembly
295
- * > = async (data) => {
296
- * const response = data.assemblies.reduce((acc, assembly) => {
297
- * const agitatorKeys = ["iceAgitator", "carbAgitator"];
298
- * agitatorKeys.forEach((key) => {
299
- * const agitator = assembly[key];
300
- * if (agitator) {
301
- * acc[key] = agitator;
302
- * }
303
- * });
193
+ * interface IceAgitatorExt {
194
+ * iceAgitator?: { name: string; path: string };
195
+ * }
304
196
  *
305
- * return acc;
306
- * }, {} as FreestyleAssembly);
307
- * return response;
308
- * };
309
- *```
197
+ * const assemblyDataMapper: AssemblyMapper<
198
+ * { iceAgitatorPath?: string },
199
+ * AssemblyTypes.AssemblyResponse<{ AssemblyExt: IceAgitatorExt }>
200
+ * > = async (data) => ({
201
+ * iceAgitatorPath: data.assemblies.find((a) => a.iceAgitator)?.iceAgitator?.path,
202
+ * });
203
+ * ```
310
204
  */
311
205
  registerAssemblyDataMapper(assemblyDataMapper: AssemblyMapper, options?: ExtensionOptions): this;
312
206
  registerBoardIndex(boardIndex: IndexExtension): this;
@@ -320,7 +214,6 @@ export declare class DispenseExtensionManager {
320
214
  * @returns this instance for chaining
321
215
  */
322
216
  registerBoardDataMapper(boardDataMapper: BoardDataMapper<any, any>, options?: ExtensionOptions): this;
323
- registerControlledPour(): this;
324
217
  registerAssemblyFeatureFlagResolver(assemblyFeatureFlagResolver: FlagResolver<AssemblyModel>): this;
325
218
  }
326
219
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/utils/extension-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,UAAU,EAGV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,MAAM,oBAAoB,CAC9B,cAAc,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACjD,UAAU,CAAC,kBAAkB,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAC/C,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IACpE,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5B;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,cAAc,SAAS,M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BAAuB,CACrB,eAAe,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,EAC1C,OAAO,CAAC,EAAE,gBAAgB;IAU5B,sBAAsB;IAKtB,mCAAmC,CACjC,2BAA2B,EAAE,YAAY,CAAC,aAAa,CAAC;CAQ3D;AAED;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC;;CAK5B"}
1
+ {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-dispense-sdk/src/models/utils/extension-utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,UAAU,EAGV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAC9B,cAAc,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACjD,UAAU,CAAC,kBAAkB,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,CAC9B,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAC/C,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB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AAc;IAQ7C;;;;;;;;OAQG;IACH,uBAAuB,CACrB,eAAe,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,EAC1C,OAAO,CAAC,EAAE,gBAAgB;IAU5B,mCAAmC,CACjC,2BAA2B,EAAE,YAAY,CAAC,aAAa,CAAC;CAQ3D;AAED;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC;;CAK5B"}
@@ -1,2 +1,2 @@
1
- export * as dispense from './services/dispense/1.8.1/openapi';
1
+ export * as dispense from './services/dispense/daily/openapi';
2
2
  //# sourceMappingURL=openapi-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/utils/openapi-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"openapi-index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-dispense-sdk/src/models/utils/openapi-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare class PourContext {
2
+ private _data;
3
+ get<T>(key: string): T | undefined;
4
+ set<T>(key: string, value: T): void;
5
+ remove(key: string): void;
6
+ has(key: string): boolean;
7
+ }
8
+ //# sourceMappingURL=pour-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pour-context.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-dispense-sdk/src/models/utils/pour-context.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAA0B;IAEvC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAGlC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAG5B,MAAM,CAAC,GAAG,EAAE,MAAM;IAGlB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAG1B"}
@@ -1,4 +1,3 @@
1
1
  import { IKosRegistry } from '@kosdev-code/kos-ui-sdk';
2
-
3
2
  export declare const kosModels: IKosRegistry["models"];
4
3
  //# sourceMappingURL=registration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/models/utils/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAY5D,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,QAAQ,CAWlB,CAAC"}
1
+ {"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-dispense-sdk/src/models/utils/registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAY5D,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,QAAQ,CAWlB,CAAC"}