@kosdev-code/kos-freestyle-sdk 0.1.0-dev.5180 → 0.1.0-dev.5187
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/{extension-utils-CbiToj2v.cjs → extension-utils-DSygTC6m.cjs} +2 -2
- package/{extension-utils-CbiToj2v.cjs.map → extension-utils-DSygTC6m.cjs.map} +1 -1
- package/{extension-utils-DP5eulYE.js → extension-utils-a_ajKIu1.js} +2 -2
- package/{extension-utils-DP5eulYE.js.map → extension-utils-a_ajKIu1.js.map} +1 -1
- package/index.cjs +1 -1
- package/index.js +3 -3
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
- package/models.cjs +1 -1
- package/models.js +2 -2
- package/package.json +4 -4
- package/{service-BYZ3LYEa.cjs → service-D8GRisCE.cjs} +2 -2
- package/{service-BYZ3LYEa.cjs.map → service-D8GRisCE.cjs.map} +1 -1
- package/{service-_jG-Kd3m.js → service-DyLnkK6H.js} +32 -30
- package/{service-_jG-Kd3m.js.map → service-DyLnkK6H.js.map} +1 -1
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/{use-nutrition-info-C-RDcG4S.cjs → use-nutrition-info-CN9i519Z.cjs} +2 -2
- package/{use-nutrition-info-C-RDcG4S.cjs.map → use-nutrition-info-CN9i519Z.cjs.map} +1 -1
- package/{use-nutrition-info-B9ybCLwb.js → use-nutrition-info-DK4oEzW9.js} +2 -2
- package/{use-nutrition-info-B9ybCLwb.js.map → use-nutrition-info-DK4oEzW9.js.map} +1 -1
|
@@ -2,7 +2,7 @@ var vt = Object.defineProperty;
|
|
|
2
2
|
var Tt = (e, t, r) => t in e ? vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var i = (e, t, r) => (Tt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import { resolveServiceUrl as A, ServiceFactory as w, KosLog as $, createPropKey as U, kosStateProp as O, kosConfigProperty as b, kosStateEntry as be, kosStateExit as _t, kosStateGuard as Pe, kosFuture as I, kosModel as f, kosLoggerAware as V, kosCompanion as ve, kosFutureAware as xe, kosStateMachine as It, DependencyLifecycle as Ue, KosModelContainer as $t, kosChild as qe, kosModelEffect as Te, EventBus as k, KosModelRegistrationFactory as E, SingletonKosModelRegistrationFactory as _e, FetchError as Ie, FutureManager as y, FutureEndState as q, FutureHandler as Ge, kosParentAware as je, KosFeatureFlags as ue, getKosCompanionModel as Ct, getKosModelSync as R, kosContainerAware as Ot, KosContextManager as Et, kosAction as Z, KOS_MODEL_ID as C, kosMultipleFutureAware as St, kosTopicHandler as At, modelTypeEventTopicFactory as wt, RegistrationManager as m, registerCoreModels as Mt, Trouble as Rt, ExtensionManager as ce, EXTENSION_TROUBLE_DATA_MAPPER as de, createClient as H, kosServiceRequest as B } from "@kosdev-code/kos-ui-sdk";
|
|
5
|
-
import { PourState as d, Assembly as Ve, KosModelRegistry as Dt, registerDispenseModels as
|
|
5
|
+
import { PourState as d, Assembly as Ve, KosModelRegistry as Dt, registerDispenseModels as Lt, Nozzle as Ft, Pump as zt, Holder as Nt, PumpContainer as xt, PumpIndex as Ut } from "@kosdev-code/kos-dispense-sdk";
|
|
6
6
|
const { URL: He } = A("ICE_AGITATOR_SERVICE"), { postModel: qt } = w.build({
|
|
7
7
|
basePath: `${He}/api/ext/freestyle/ice`
|
|
8
8
|
});
|
|
@@ -359,7 +359,7 @@ class Q {
|
|
|
359
359
|
}
|
|
360
360
|
i(Q, "TOPIC_AGITATION_STARTED", "/kos/events/ddk/agitation-started"), i(Q, "TOPIC_AGITATION_ENDED", "/kos/events/ddk/agitation-ended");
|
|
361
361
|
const Qt = U("statePath");
|
|
362
|
-
let
|
|
362
|
+
let F = class {
|
|
363
363
|
constructor(e, t) {
|
|
364
364
|
i(this, "id");
|
|
365
365
|
i(this, "agitating");
|
|
@@ -388,22 +388,22 @@ let L = class {
|
|
|
388
388
|
};
|
|
389
389
|
ae([
|
|
390
390
|
O({ path: Qt, attribute: "agitating" })
|
|
391
|
-
],
|
|
391
|
+
], F.prototype, "agitating", 2);
|
|
392
392
|
ae([
|
|
393
393
|
I()
|
|
394
|
-
],
|
|
394
|
+
], F.prototype, "testAgitate", 1);
|
|
395
395
|
ae([
|
|
396
396
|
Te({
|
|
397
397
|
dependencies: (e) => [e.isAgitating]
|
|
398
398
|
})
|
|
399
|
-
],
|
|
400
|
-
|
|
399
|
+
], F.prototype, "handleAgitation", 1);
|
|
400
|
+
F = ae([
|
|
401
401
|
f(ke),
|
|
402
402
|
xe(),
|
|
403
403
|
V()
|
|
404
|
-
],
|
|
404
|
+
], F);
|
|
405
405
|
const Je = new E({
|
|
406
|
-
class:
|
|
406
|
+
class: F,
|
|
407
407
|
type: ke
|
|
408
408
|
}), Ce = new _e({
|
|
409
409
|
class: J,
|
|
@@ -1048,18 +1048,18 @@ te = st([
|
|
|
1048
1048
|
const Me = new E({
|
|
1049
1049
|
class: te,
|
|
1050
1050
|
type: nt
|
|
1051
|
-
}), { URL: lt } = A("PUMP_SERVICE"), { postModel:
|
|
1051
|
+
}), { URL: lt } = A("PUMP_SERVICE"), { postModel: Lr } = w.build({
|
|
1052
1052
|
basePath: `${lt}/api/ext/freestyle/microCalibration`
|
|
1053
1053
|
}), pe = $.createLogger({
|
|
1054
1054
|
name: "freestyle-pump-service",
|
|
1055
1055
|
group: "Services"
|
|
1056
|
-
}),
|
|
1056
|
+
}), Fr = async (e, t) => {
|
|
1057
1057
|
var r, o, a, n, s;
|
|
1058
1058
|
pe.debug(
|
|
1059
1059
|
`replacePump - sending POST request to /api/ext/freestyle/microCalibration/cal/${e}/code/${t}`
|
|
1060
1060
|
);
|
|
1061
1061
|
try {
|
|
1062
|
-
const u = await
|
|
1062
|
+
const u = await Lr({
|
|
1063
1063
|
model: {},
|
|
1064
1064
|
urlOverride: `${lt}/api/ext/freestyle/microCalibration/cal/${e}/code/${t}`
|
|
1065
1065
|
});
|
|
@@ -1090,7 +1090,7 @@ let me = class {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
// -------------------LIFECYCLE----------------------------
|
|
1092
1092
|
async replacePump(e) {
|
|
1093
|
-
const [t, r] = await
|
|
1093
|
+
const [t, r] = await Fr(this.pump.path, e);
|
|
1094
1094
|
return t && this.logger.error(`Failed to replace the pump, ${this.pump.id}`, t), [t, r];
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
@@ -1100,23 +1100,23 @@ me = Nr([
|
|
|
1100
1100
|
const Re = new E({
|
|
1101
1101
|
class: me,
|
|
1102
1102
|
type: ut
|
|
1103
|
-
}), { URL:
|
|
1104
|
-
basePath: `${
|
|
1103
|
+
}), { URL: L } = A("ICE_AGITATOR_SERVICE"), { getAll: ct, postModel: se } = w.build({
|
|
1104
|
+
basePath: `${L}/api/ext/freestyle/ice`
|
|
1105
1105
|
}), dt = $.createLogger({
|
|
1106
1106
|
name: "ice-agitator-service",
|
|
1107
1107
|
group: "Services"
|
|
1108
1108
|
}), xr = async (e) => (dt.debug("sending GET for ice types"), await ct({
|
|
1109
|
-
urlOverride: `${
|
|
1109
|
+
urlOverride: `${L}/api/handle/${e}/types`
|
|
1110
1110
|
})), Ur = async (e, t) => (dt.debug("sending POST for ice types"), await se({
|
|
1111
|
-
urlOverride: `${
|
|
1111
|
+
urlOverride: `${L}/api/handle/${e}/type/${t}`,
|
|
1112
1112
|
model: {}
|
|
1113
1113
|
})), qr = async (e) => await ct({
|
|
1114
|
-
urlOverride: `${
|
|
1114
|
+
urlOverride: `${L}/api/kos/config/details/${e}/4`
|
|
1115
1115
|
}), Gr = async (e, t) => {
|
|
1116
1116
|
const r = await se({
|
|
1117
1117
|
model: {},
|
|
1118
1118
|
tracker: t,
|
|
1119
|
-
urlOverride: `${
|
|
1119
|
+
urlOverride: `${L}/api/handle/${e}/pour`
|
|
1120
1120
|
});
|
|
1121
1121
|
if (!(r != null && r.data))
|
|
1122
1122
|
throw new Error("No response from server");
|
|
@@ -1125,7 +1125,7 @@ const Re = new E({
|
|
|
1125
1125
|
const r = await se({
|
|
1126
1126
|
model: {},
|
|
1127
1127
|
tracker: t,
|
|
1128
|
-
urlOverride: `${
|
|
1128
|
+
urlOverride: `${L}/api/handle/${e}/test/agitation`
|
|
1129
1129
|
});
|
|
1130
1130
|
if (!(r != null && r.data))
|
|
1131
1131
|
throw new Error("No response from server");
|
|
@@ -1134,7 +1134,7 @@ const Re = new E({
|
|
|
1134
1134
|
const r = await se({
|
|
1135
1135
|
model: {},
|
|
1136
1136
|
tracker: t,
|
|
1137
|
-
urlOverride: `${
|
|
1137
|
+
urlOverride: `${L}/api/handle/${e}/test/gate`
|
|
1138
1138
|
});
|
|
1139
1139
|
if (!(r != null && r.data))
|
|
1140
1140
|
throw new Error("No response from server");
|
|
@@ -1632,6 +1632,8 @@ let x = class {
|
|
|
1632
1632
|
* @returns The holder model or undefined if not yet loaded
|
|
1633
1633
|
*/
|
|
1634
1634
|
get holder() {
|
|
1635
|
+
if (!this.trouble || !this._holdersLoaded)
|
|
1636
|
+
return;
|
|
1635
1637
|
const e = this.trouble.data.holderPaths[0], t = R(e);
|
|
1636
1638
|
if (!(!this._holdersLoaded && !t.model))
|
|
1637
1639
|
return t == null ? void 0 : t.model;
|
|
@@ -1750,8 +1752,8 @@ const ca = x.Registration, da = ["iceAgitator"], pa = {
|
|
|
1750
1752
|
supportsCarb: n,
|
|
1751
1753
|
supportsIce: a
|
|
1752
1754
|
};
|
|
1753
|
-
}, ha = (e) => () => (Mt(e)(),
|
|
1754
|
-
|
|
1755
|
+
}, ha = (e) => () => (Mt(e)(), Lt(e)(), Me.register(), ge.register(), ht.register(), Ke.register(), Ce.register(), oa.register(), gr.register(), Wr.register(), ar.register(), Re.register(), Ae.register(), j.register(), Ee.register(), m.companion.register(e)(
|
|
1756
|
+
Ft.type,
|
|
1755
1757
|
Me.type
|
|
1756
1758
|
), m.companion.register(e)(
|
|
1757
1759
|
Ve.type,
|
|
@@ -1836,19 +1838,19 @@ const De = H(), Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
1836
1838
|
function ma(e) {
|
|
1837
1839
|
return B(e);
|
|
1838
1840
|
}
|
|
1839
|
-
const
|
|
1841
|
+
const Le = H(), Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1840
1842
|
__proto__: null,
|
|
1841
|
-
api:
|
|
1842
|
-
default:
|
|
1843
|
+
api: Le,
|
|
1844
|
+
default: Le,
|
|
1843
1845
|
kosServiceRequest: ma
|
|
1844
1846
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1845
1847
|
function ya(e) {
|
|
1846
1848
|
return B(e);
|
|
1847
1849
|
}
|
|
1848
|
-
const
|
|
1850
|
+
const Fe = H(), Sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1849
1851
|
__proto__: null,
|
|
1850
|
-
api:
|
|
1851
|
-
default:
|
|
1852
|
+
api: Fe,
|
|
1853
|
+
default: Fe,
|
|
1852
1854
|
kosServiceRequest: ya
|
|
1853
1855
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1854
1856
|
function ba(e) {
|
|
@@ -1909,7 +1911,7 @@ export {
|
|
|
1909
1911
|
nr as v,
|
|
1910
1912
|
we as w,
|
|
1911
1913
|
Mr as x,
|
|
1912
|
-
|
|
1914
|
+
Fr as y,
|
|
1913
1915
|
Ia as z
|
|
1914
1916
|
};
|
|
1915
|
-
//# sourceMappingURL=service-
|
|
1917
|
+
//# sourceMappingURL=service-DyLnkK6H.js.map
|