@kosdev-code/kos-dispense-sdk 0.1.0-dev.5264 → 0.1.0-dev.5344
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/{dispense-registration-manager-BkJ1ggtS.cjs → dispense-registration-manager-BP5wXKEC.cjs} +2 -2
- package/{dispense-registration-manager-BkJ1ggtS.cjs.map → dispense-registration-manager-BP5wXKEC.cjs.map} +1 -1
- package/{dispense-registration-manager-CcFUS_KM.js → dispense-registration-manager-Ba4UWXju.js} +14 -18
- package/{dispense-registration-manager-CcFUS_KM.js.map → dispense-registration-manager-Ba4UWXju.js.map} +1 -1
- package/{extension-utils-DeLiIgFH.js → extension-utils-CNDUJVak.js} +2 -2
- package/{extension-utils-DeLiIgFH.js.map → extension-utils-CNDUJVak.js.map} +1 -1
- package/{extension-utils-DUV7OQR1.cjs → extension-utils-CxlY9mef.cjs} +2 -2
- package/{extension-utils-DUV7OQR1.cjs.map → extension-utils-CxlY9mef.cjs.map} +1 -1
- package/index.cjs +1 -1
- package/index.js +3 -3
- package/models/models/nozzle/nozzle-model.d.ts +2 -2
- package/models/models/nozzle/nozzle-model.d.ts.map +1 -1
- package/models.cjs +1 -1
- package/models.js +2 -2
- package/package.json +4 -4
- package/{pump-provider-BTnIydH2.js → pump-provider-Dhh0rg1k.js} +247 -241
- package/pump-provider-Dhh0rg1k.js.map +1 -0
- package/pump-provider-m3YekBzj.cjs +2 -0
- package/pump-provider-m3YekBzj.cjs.map +1 -0
- package/ui/hooks/cui-kit/use-beverages.d.ts +1 -1
- package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -1
- package/ui/hooks/cui-kit/use-brands.d.ts +1 -1
- package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -1
- package/ui/hooks/cui-kit/use-cui-kit.d.ts +1 -1
- package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -1
- package/ui/hooks/cui-kit/use-flavors.d.ts +1 -1
- package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -1
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/pump-provider-BTnIydH2.js.map +0 -1
- package/pump-provider-BUfMtaXv.cjs +0 -2
- package/pump-provider-BUfMtaXv.cjs.map +0 -1
package/{dispense-registration-manager-CcFUS_KM.js → dispense-registration-manager-Ba4UWXju.js}
RENAMED
|
@@ -1316,8 +1316,8 @@ let I = class {
|
|
|
1316
1316
|
updateModel() {
|
|
1317
1317
|
}
|
|
1318
1318
|
// -------------------LIFECYCLE----------------------------
|
|
1319
|
-
setSelectedBrand(e) {
|
|
1320
|
-
this._selectedBrand = e, this._selectedBeverage = void 0;
|
|
1319
|
+
setSelectedBrand(e, t) {
|
|
1320
|
+
t && this.logger.debug("context is currenty being ignored when setting brand"), this._selectedBrand = e, this._selectedBeverage = void 0;
|
|
1321
1321
|
}
|
|
1322
1322
|
get selectedBrand() {
|
|
1323
1323
|
return this._selectedBrand;
|
|
@@ -1330,24 +1330,20 @@ let I = class {
|
|
|
1330
1330
|
* @param pourable.additional The additional items such as flavors or other items that could be incorporated
|
|
1331
1331
|
* into the pourable.
|
|
1332
1332
|
* */
|
|
1333
|
-
async setSelectedPourable({
|
|
1334
|
-
beverage: e,
|
|
1335
|
-
additional: t,
|
|
1336
|
-
context: r
|
|
1337
|
-
}) {
|
|
1333
|
+
async setSelectedPourable({ beverage: e, additional: t, context: r }, a = !1) {
|
|
1338
1334
|
if (!e) {
|
|
1339
|
-
const
|
|
1340
|
-
if ((
|
|
1335
|
+
const c = await Fr(this.name);
|
|
1336
|
+
if ((c == null ? void 0 : c.status) !== 200)
|
|
1341
1337
|
throw new Error("Failed to clear pourable");
|
|
1342
1338
|
this._selectedBeverage = void 0;
|
|
1343
1339
|
return;
|
|
1344
1340
|
}
|
|
1345
|
-
if (e === this._selectedBeverage && Mt(this._additionalItems, t)) {
|
|
1341
|
+
if (!a && e === this._selectedBeverage && Mt(this._additionalItems, t)) {
|
|
1346
1342
|
this.logger.info("No change in selected pourable");
|
|
1347
1343
|
return;
|
|
1348
1344
|
}
|
|
1349
1345
|
this._selectedBeverage = e, this._additionalItems = t;
|
|
1350
|
-
let
|
|
1346
|
+
let i = await y.dataMapper.executeMapper(
|
|
1351
1347
|
g.SelectedPourableMapper,
|
|
1352
1348
|
{
|
|
1353
1349
|
beverage: e,
|
|
@@ -1355,14 +1351,14 @@ let I = class {
|
|
|
1355
1351
|
context: r
|
|
1356
1352
|
}
|
|
1357
1353
|
);
|
|
1358
|
-
const
|
|
1354
|
+
const s = {
|
|
1359
1355
|
bevId: e.rawId
|
|
1360
1356
|
};
|
|
1361
|
-
(!
|
|
1362
|
-
`No selected pourable mapper defined, using the default payload ${
|
|
1363
|
-
),
|
|
1364
|
-
const
|
|
1365
|
-
if ((
|
|
1357
|
+
(!i || Object.keys(i).length === 0) && (this.logger.info(
|
|
1358
|
+
`No selected pourable mapper defined, using the default payload ${s}`
|
|
1359
|
+
), i = s);
|
|
1360
|
+
const n = i ?? s, l = await jr(this.name, n);
|
|
1361
|
+
if ((l == null ? void 0 : l.status) !== 200)
|
|
1366
1362
|
throw new Error("Failed to select pourable");
|
|
1367
1363
|
}
|
|
1368
1364
|
/**
|
|
@@ -2014,4 +2010,4 @@ export {
|
|
|
2014
2010
|
Kt as y,
|
|
2015
2011
|
qe as z
|
|
2016
2012
|
};
|
|
2017
|
-
//# sourceMappingURL=dispense-registration-manager-
|
|
2013
|
+
//# sourceMappingURL=dispense-registration-manager-Ba4UWXju.js.map
|