@kosdev-code/kos-dispense-sdk 3.0.5 → 3.0.6
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.
- package/.kos.json +122 -0
- package/{dispense-registration-manager-BSKa5Oi9.js → dispense-registration-manager-Da9CW_cN.js} +1 -7
- package/dispense-registration-manager-Da9CW_cN.js.map +1 -0
- package/{dispense-registration-manager-BH0mkCQx.cjs → dispense-registration-manager-Dtb31fcI.cjs} +1 -7
- package/dispense-registration-manager-Dtb31fcI.cjs.map +1 -0
- package/{extension-utils-jntF0-vN.js → extension-utils-C_pwmFbZ.js} +2 -2
- package/{extension-utils-jntF0-vN.js.map → extension-utils-C_pwmFbZ.js.map} +1 -1
- package/{extension-utils-FKfiDSbi.cjs → extension-utils-CwctwFhK.cjs} +2 -2
- package/{extension-utils-FKfiDSbi.cjs.map → extension-utils-CwctwFhK.cjs.map} +1 -1
- package/index.cjs +3 -3
- package/index.js +3 -3
- package/models/models/holder-container/types/index.d.ts +1 -2
- package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
- package/models/models/pump/services/pump-services.d.ts.map +1 -1
- package/models.cjs +2 -2
- package/models.js +2 -2
- package/package.json +3 -3
- package/{pump-provider-ntLT8vr7.js → pump-provider-CAKW652V.js} +2 -2
- package/pump-provider-CAKW652V.js.map +1 -0
- package/{pump-provider-D4iVLU-o.cjs → pump-provider-SXrqGmxO.cjs} +2 -2
- package/pump-provider-SXrqGmxO.cjs.map +1 -0
- package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -1
- package/ui/hooks/generic-pour/with-generic-pour.d.ts +1 -1
- package/ui/hooks/generic-pour/with-generic-pour.d.ts.map +1 -1
- package/ui/hooks/holder-container/use-holder-container.d.ts +2 -2
- package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -1
- package/ui.cjs +1 -1
- package/ui.js +1 -1
- package/dispense-registration-manager-BH0mkCQx.cjs.map +0 -1
- package/dispense-registration-manager-BSKa5Oi9.js.map +0 -1
- package/pump-provider-D4iVLU-o.cjs.map +0 -1
- package/pump-provider-ntLT8vr7.js.map +0 -1
package/.kos.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "kos-dispense-sdk",
|
|
3
|
+
"type": "kos.model",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"models": {
|
|
6
|
+
"device-assembly": {
|
|
7
|
+
"name": "device-assembly",
|
|
8
|
+
"type": "device-assembly-model",
|
|
9
|
+
"singleton": true,
|
|
10
|
+
"factory": "DeviceAssembly",
|
|
11
|
+
"purpose": "Singleton hydration root for the device's physical assembly — entry point exposing boards, holders, nozzles, pumps and their live paths."
|
|
12
|
+
},
|
|
13
|
+
"assembly": {
|
|
14
|
+
"name": "assembly",
|
|
15
|
+
"type": "assembly-model",
|
|
16
|
+
"singleton": true,
|
|
17
|
+
"factory": "Assembly",
|
|
18
|
+
"purpose": "The configured assembly tree (beverages, ingredients, nozzles) read from the device; resolves data-driven dispense paths."
|
|
19
|
+
},
|
|
20
|
+
"availability": {
|
|
21
|
+
"name": "availability",
|
|
22
|
+
"type": "availability-model",
|
|
23
|
+
"singleton": false,
|
|
24
|
+
"container": false,
|
|
25
|
+
"factory": "Availability",
|
|
26
|
+
"purpose": "Availability / out-of-stock state for a dispensable item."
|
|
27
|
+
},
|
|
28
|
+
"board": {
|
|
29
|
+
"name": "board",
|
|
30
|
+
"type": "board-model",
|
|
31
|
+
"singleton": false,
|
|
32
|
+
"container": false,
|
|
33
|
+
"factory": "Board",
|
|
34
|
+
"managedBy": ["board-container"],
|
|
35
|
+
"purpose": "A control board in the assembly; tracks linked/unlinked state."
|
|
36
|
+
},
|
|
37
|
+
"board-container": {
|
|
38
|
+
"name": "board-container",
|
|
39
|
+
"type": "board-container-model",
|
|
40
|
+
"singleton": true,
|
|
41
|
+
"container": true,
|
|
42
|
+
"factory": "BoardContainer",
|
|
43
|
+
"purpose": "Manages the set of boards in the assembly."
|
|
44
|
+
},
|
|
45
|
+
"holder": {
|
|
46
|
+
"name": "holder",
|
|
47
|
+
"type": "holder-model",
|
|
48
|
+
"singleton": false,
|
|
49
|
+
"container": false,
|
|
50
|
+
"factory": "Holder",
|
|
51
|
+
"managedBy": ["holder-container"],
|
|
52
|
+
"purpose": "An ingredient holder (slot) in the assembly and what it holds."
|
|
53
|
+
},
|
|
54
|
+
"holder-container": {
|
|
55
|
+
"name": "holder-container",
|
|
56
|
+
"type": "holder-container-model",
|
|
57
|
+
"singleton": true,
|
|
58
|
+
"container": true,
|
|
59
|
+
"factory": "HolderContainer",
|
|
60
|
+
"purpose": "Manages the set of holders in the assembly."
|
|
61
|
+
},
|
|
62
|
+
"ingredient": {
|
|
63
|
+
"name": "ingredient",
|
|
64
|
+
"type": "ingredient-model",
|
|
65
|
+
"singleton": false,
|
|
66
|
+
"container": false,
|
|
67
|
+
"factory": "Ingredient",
|
|
68
|
+
"managedBy": ["ingredient-container"],
|
|
69
|
+
"purpose": "An ingredient and its level/availability tracking."
|
|
70
|
+
},
|
|
71
|
+
"ingredient-container": {
|
|
72
|
+
"name": "ingredient-container",
|
|
73
|
+
"type": "ingredient-container-model",
|
|
74
|
+
"singleton": true,
|
|
75
|
+
"container": true,
|
|
76
|
+
"factory": "IngredientContainer",
|
|
77
|
+
"purpose": "Manages the set of ingredients in the assembly."
|
|
78
|
+
},
|
|
79
|
+
"nozzle": {
|
|
80
|
+
"name": "nozzle",
|
|
81
|
+
"type": "nozzle-model",
|
|
82
|
+
"singleton": false,
|
|
83
|
+
"container": false,
|
|
84
|
+
"factory": "Nozzle",
|
|
85
|
+
"purpose": "A dispense nozzle; reads its paths/names from the device-assembly payload and constructs pour/select calls (data-driven endpoints, not static)."
|
|
86
|
+
},
|
|
87
|
+
"pump": {
|
|
88
|
+
"name": "pump",
|
|
89
|
+
"type": "pump-model",
|
|
90
|
+
"singleton": false,
|
|
91
|
+
"factory": "Pump",
|
|
92
|
+
"managedBy": ["pump-container"],
|
|
93
|
+
"purpose": "A pump in the assembly and its run state."
|
|
94
|
+
},
|
|
95
|
+
"pump-container": {
|
|
96
|
+
"name": "pump-container",
|
|
97
|
+
"type": "pump-container-model",
|
|
98
|
+
"singleton": true,
|
|
99
|
+
"container": true,
|
|
100
|
+
"factory": "PumpContainer",
|
|
101
|
+
"purpose": "Manages the set of pumps in the assembly."
|
|
102
|
+
},
|
|
103
|
+
"generic-pour": {
|
|
104
|
+
"name": "generic-pour",
|
|
105
|
+
"type": "generic-pour-model",
|
|
106
|
+
"singleton": false,
|
|
107
|
+
"factory": "GenericPour",
|
|
108
|
+
"purpose": "Drives a generic pour operation and tracks its progress."
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"generator": {
|
|
112
|
+
"projectType": ["model", "ui", "model-component"],
|
|
113
|
+
"defaults": {
|
|
114
|
+
"model": {
|
|
115
|
+
"folder": "models/models"
|
|
116
|
+
},
|
|
117
|
+
"components": {
|
|
118
|
+
"folder": "ui"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
package/{dispense-registration-manager-BSKa5Oi9.js → dispense-registration-manager-Da9CW_cN.js}
RENAMED
|
@@ -1146,10 +1146,6 @@ const { URL: URL$2 } = resolveServiceUrl("PUMP_SERVICE");
|
|
|
1146
1146
|
const { postModel: postModel$2, getOne: getOne$1 } = ServiceFactory.build({
|
|
1147
1147
|
basePath: `${URL$2}/api/kos/holders`
|
|
1148
1148
|
});
|
|
1149
|
-
KosLog.createLogger({
|
|
1150
|
-
name: "pump-service",
|
|
1151
|
-
group: "Services"
|
|
1152
|
-
});
|
|
1153
1149
|
const sendIntent = async ({
|
|
1154
1150
|
intent,
|
|
1155
1151
|
pumpId,
|
|
@@ -2011,8 +2007,6 @@ let NozzleModelImpl = class {
|
|
|
2011
2007
|
}
|
|
2012
2008
|
async reload() {
|
|
2013
2009
|
this.logger.info(`reloading nozzle ${this.id}`);
|
|
2014
|
-
const context = KosContextManager.getContext(this.id);
|
|
2015
|
-
context?.get(ExtensionType.AvailabilityLoader) || {};
|
|
2016
2010
|
const availability = await getAvailability(this.urlPrefix);
|
|
2017
2011
|
if (availability?.status !== 200 || !availability?.data) {
|
|
2018
2012
|
this.logger.error("Failed to load nozzle availability");
|
|
@@ -2671,4 +2665,4 @@ export {
|
|
|
2671
2665
|
unassignHolderIngredient as y,
|
|
2672
2666
|
getAssembly as z
|
|
2673
2667
|
};
|
|
2674
|
-
//# sourceMappingURL=dispense-registration-manager-
|
|
2668
|
+
//# sourceMappingURL=dispense-registration-manager-Da9CW_cN.js.map
|