@kosdev-code/kos-freestyle-sdk 3.0.35 → 3.0.37
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-BLjVB2bu.cjs → extension-utils-COimzrdy.cjs} +2 -2
- package/{extension-utils-BLjVB2bu.cjs.map → extension-utils-COimzrdy.cjs.map} +1 -1
- package/{extension-utils-CV3CeJXI.js → extension-utils-DzcpLjlD.js} +2 -2
- package/{extension-utils-CV3CeJXI.js.map → extension-utils-DzcpLjlD.js.map} +1 -1
- package/index.cjs +4 -3
- package/index.cjs.map +1 -1
- package/index.js +6 -5
- package/models/models/index.d.ts +1 -0
- package/models/models/index.d.ts.map +1 -1
- package/models/models/lfcv-dcp/index.d.ts +4 -0
- package/models/models/lfcv-dcp/index.d.ts.map +1 -0
- package/models/models/lfcv-dcp/lfcv-dcp-model.d.ts +30 -0
- package/models/models/lfcv-dcp/lfcv-dcp-model.d.ts.map +1 -0
- package/models/models/lfcv-dcp/services/index.d.ts +2 -0
- package/models/models/lfcv-dcp/services/index.d.ts.map +1 -0
- package/models/models/lfcv-dcp/services/lfcv-dcp-services.d.ts +5 -0
- package/models/models/lfcv-dcp/services/lfcv-dcp-services.d.ts.map +1 -0
- package/models/models/lfcv-dcp/types/index.d.ts +5 -0
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
- package/models/utils/services/freestyle/daily/openapi.d.ts +719 -487
- package/models/utils/services/freestyle/daily/service.d.ts +2 -2
- package/models.cjs +3 -2
- package/models.cjs.map +1 -1
- package/models.js +4 -3
- package/package.json +2 -2
- package/{service-Dfj0KrIU.cjs → service-B8BhemKF.cjs} +303 -199
- package/service-B8BhemKF.cjs.map +1 -0
- package/{service-VBsCe4jt.js → service-CR0lhX5W.js} +318 -214
- package/service-CR0lhX5W.js.map +1 -0
- package/ui.cjs +1 -1
- package/ui.js +1 -1
- package/{use-nutrition-info-6ijRu88p.cjs → use-nutrition-info-D96Z42vP.cjs} +2 -2
- package/{use-nutrition-info-6ijRu88p.cjs.map → use-nutrition-info-D96Z42vP.cjs.map} +1 -1
- package/{use-nutrition-info-Rc_SHgBZ.js → use-nutrition-info-DT2GQx-C.js} +2 -2
- package/{use-nutrition-info-Rc_SHgBZ.js.map → use-nutrition-info-DT2GQx-C.js.map} +1 -1
- package/service-Dfj0KrIU.cjs.map +0 -1
- package/service-VBsCe4jt.js.map +0 -1
|
@@ -16,19 +16,19 @@ const testCarbTank = async (path, tracker) => {
|
|
|
16
16
|
}
|
|
17
17
|
return response?.data;
|
|
18
18
|
};
|
|
19
|
-
var __defProp$
|
|
20
|
-
var __getOwnPropDesc$
|
|
21
|
-
var __defNormalProp$
|
|
22
|
-
var __decorateClass$
|
|
23
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
19
|
+
var __defProp$c = Object.defineProperty;
|
|
20
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
21
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
22
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
23
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
24
24
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
25
25
|
if (decorator = decorators[i])
|
|
26
26
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
27
|
-
if (kind && result) __defProp$
|
|
27
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
28
28
|
return result;
|
|
29
29
|
};
|
|
30
|
-
var __publicField$
|
|
31
|
-
const MODEL_TYPE$
|
|
30
|
+
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "", value);
|
|
31
|
+
const MODEL_TYPE$f = "carb-agitator-model";
|
|
32
32
|
const PROP_STATE_PATH$1 = kosUiSdk.createPropKey("statePath");
|
|
33
33
|
let CarbAgitatorModelImpl = class {
|
|
34
34
|
/**
|
|
@@ -187,68 +187,68 @@ let CarbAgitatorModelImpl = class {
|
|
|
187
187
|
return testCarbTank(this.path, tracker);
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
__publicField$
|
|
191
|
-
__decorateClass$
|
|
190
|
+
__publicField$5(CarbAgitatorModelImpl, "Registration");
|
|
191
|
+
__decorateClass$f([
|
|
192
192
|
kosUiSdk.kosStateProp({
|
|
193
193
|
path: PROP_STATE_PATH$1,
|
|
194
194
|
attribute: "highProbeWet"
|
|
195
195
|
})
|
|
196
196
|
], CarbAgitatorModelImpl.prototype, "highProbeWet", 2);
|
|
197
|
-
__decorateClass$
|
|
197
|
+
__decorateClass$f([
|
|
198
198
|
kosUiSdk.kosStateProp({
|
|
199
199
|
path: PROP_STATE_PATH$1,
|
|
200
200
|
attribute: "lowProbeWet"
|
|
201
201
|
})
|
|
202
202
|
], CarbAgitatorModelImpl.prototype, "lowProbeWet", 2);
|
|
203
|
-
__decorateClass$
|
|
203
|
+
__decorateClass$f([
|
|
204
204
|
kosUiSdk.kosStateProp({
|
|
205
205
|
path: PROP_STATE_PATH$1,
|
|
206
206
|
attribute: "filling"
|
|
207
207
|
})
|
|
208
208
|
], CarbAgitatorModelImpl.prototype, "filling", 2);
|
|
209
|
-
__decorateClass$
|
|
209
|
+
__decorateClass$f([
|
|
210
210
|
kosUiSdk.kosConfigProperty({
|
|
211
211
|
path: "assembly:core:board:macksm:carbTank:carbTank",
|
|
212
212
|
attribute: "enabled"
|
|
213
213
|
})
|
|
214
214
|
], CarbAgitatorModelImpl.prototype, "enabled", 2);
|
|
215
|
-
__decorateClass$
|
|
215
|
+
__decorateClass$f([
|
|
216
216
|
kosUiSdk.kosStateEntry(
|
|
217
217
|
"ACTIVATING"
|
|
218
218
|
/* ACTIVATING */
|
|
219
219
|
)
|
|
220
220
|
], CarbAgitatorModelImpl.prototype, "handleActivationStart", 1);
|
|
221
|
-
__decorateClass$
|
|
221
|
+
__decorateClass$f([
|
|
222
222
|
kosUiSdk.kosStateExit(
|
|
223
223
|
"ACTIVATING"
|
|
224
224
|
/* ACTIVATING */
|
|
225
225
|
)
|
|
226
226
|
], CarbAgitatorModelImpl.prototype, "handleActivationComplete", 1);
|
|
227
|
-
__decorateClass$
|
|
227
|
+
__decorateClass$f([
|
|
228
228
|
kosUiSdk.kosStateEntry(
|
|
229
229
|
"INITIALIZED"
|
|
230
230
|
/* INITIALIZED */
|
|
231
231
|
)
|
|
232
232
|
], CarbAgitatorModelImpl.prototype, "handleInitialized", 1);
|
|
233
|
-
__decorateClass$
|
|
233
|
+
__decorateClass$f([
|
|
234
234
|
kosUiSdk.kosStateEntry(
|
|
235
235
|
"SKIPPED"
|
|
236
236
|
/* SKIPPED */
|
|
237
237
|
)
|
|
238
238
|
], CarbAgitatorModelImpl.prototype, "handleSkipped", 1);
|
|
239
|
-
__decorateClass$
|
|
239
|
+
__decorateClass$f([
|
|
240
240
|
kosUiSdk.kosStateGuard({ allowedStates: [
|
|
241
241
|
"UNINITIALIZED"
|
|
242
242
|
/* UNINITIALIZED */
|
|
243
243
|
] })
|
|
244
244
|
], CarbAgitatorModelImpl.prototype, "activateCarbTank", 1);
|
|
245
|
-
__decorateClass$
|
|
245
|
+
__decorateClass$f([
|
|
246
246
|
kosUiSdk.kosStateGuard({ allowedStates: [
|
|
247
247
|
"UNINITIALIZED"
|
|
248
248
|
/* UNINITIALIZED */
|
|
249
249
|
] })
|
|
250
250
|
], CarbAgitatorModelImpl.prototype, "skip", 1);
|
|
251
|
-
__decorateClass$
|
|
251
|
+
__decorateClass$f([
|
|
252
252
|
kosUiSdk.kosStateGuard({
|
|
253
253
|
allowedStates: [
|
|
254
254
|
"INITIALIZED",
|
|
@@ -257,11 +257,11 @@ __decorateClass$e([
|
|
|
257
257
|
]
|
|
258
258
|
})
|
|
259
259
|
], CarbAgitatorModelImpl.prototype, "reset", 1);
|
|
260
|
-
__decorateClass$
|
|
260
|
+
__decorateClass$f([
|
|
261
261
|
kosUiSdk.kosFuture()
|
|
262
262
|
], CarbAgitatorModelImpl.prototype, "handleTestCarbTank", 1);
|
|
263
|
-
CarbAgitatorModelImpl = __decorateClass$
|
|
264
|
-
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$
|
|
263
|
+
CarbAgitatorModelImpl = __decorateClass$f([
|
|
264
|
+
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$f, singleton: false }),
|
|
265
265
|
kosUiSdk.kosLoggerAware(),
|
|
266
266
|
kosUiSdk.kosCompanion({ mode: "composition", lifecycle: kosUiSdk.DependencyLifecycle.LOAD }),
|
|
267
267
|
kosUiSdk.kosFutureAware(),
|
|
@@ -315,17 +315,17 @@ CarbAgitatorModelImpl = __decorateClass$e([
|
|
|
315
315
|
)
|
|
316
316
|
], CarbAgitatorModelImpl);
|
|
317
317
|
const CarbAgitator = CarbAgitatorModelImpl.Registration;
|
|
318
|
-
var __defProp$
|
|
319
|
-
var __getOwnPropDesc$
|
|
320
|
-
var __decorateClass$
|
|
321
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
318
|
+
var __defProp$b = Object.defineProperty;
|
|
319
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
320
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
321
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
322
322
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
323
323
|
if (decorator = decorators[i])
|
|
324
324
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
325
|
-
if (kind && result) __defProp$
|
|
325
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
326
326
|
return result;
|
|
327
327
|
};
|
|
328
|
-
const MODEL_TYPE$
|
|
328
|
+
const MODEL_TYPE$e = "cartridge-agitator-container-model";
|
|
329
329
|
let CartridgeAgitatorContainerModelImpl = class {
|
|
330
330
|
id;
|
|
331
331
|
logger;
|
|
@@ -364,11 +364,11 @@ let CartridgeAgitatorContainerModelImpl = class {
|
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
|
-
__decorateClass$
|
|
367
|
+
__decorateClass$e([
|
|
368
368
|
kosUiSdk.kosChild
|
|
369
369
|
], CartridgeAgitatorContainerModelImpl.prototype, "_models", 2);
|
|
370
|
-
CartridgeAgitatorContainerModelImpl = __decorateClass$
|
|
371
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
370
|
+
CartridgeAgitatorContainerModelImpl = __decorateClass$e([
|
|
371
|
+
kosUiSdk.kosModel(MODEL_TYPE$e)
|
|
372
372
|
], CartridgeAgitatorContainerModelImpl);
|
|
373
373
|
const { URL: URL$5 } = kosUiSdk.resolveServiceUrl("CARTRIDGE_AGITATOR_SERVICE");
|
|
374
374
|
const { postModel: postModel$4 } = kosUiSdk.ServiceFactory.build({
|
|
@@ -385,17 +385,17 @@ const agitate$1 = async (path, tracker) => {
|
|
|
385
385
|
}
|
|
386
386
|
return response.data;
|
|
387
387
|
};
|
|
388
|
-
var __defProp$
|
|
389
|
-
var __getOwnPropDesc$
|
|
390
|
-
var __decorateClass$
|
|
391
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
388
|
+
var __defProp$a = Object.defineProperty;
|
|
389
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
390
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
391
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
392
392
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
393
393
|
if (decorator = decorators[i])
|
|
394
394
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
395
|
-
if (kind && result) __defProp$
|
|
395
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
396
396
|
return result;
|
|
397
397
|
};
|
|
398
|
-
const MODEL_TYPE$
|
|
398
|
+
const MODEL_TYPE$d = "cartridge-agitator-model";
|
|
399
399
|
class CartridgeAgitatorEvents {
|
|
400
400
|
static TOPIC_AGITATION_STARTED = "/kos/events/ddk/agitation-started";
|
|
401
401
|
static TOPIC_AGITATION_ENDED = "/kos/events/ddk/agitation-ended";
|
|
@@ -437,44 +437,44 @@ let CartridgeAgitatorModelImpl = class {
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
__decorateClass$
|
|
440
|
+
__decorateClass$d([
|
|
441
441
|
kosUiSdk.kosStateProp({ path: PROP_PATH$1, attribute: "agitating" })
|
|
442
442
|
], CartridgeAgitatorModelImpl.prototype, "agitating", 2);
|
|
443
|
-
__decorateClass$
|
|
443
|
+
__decorateClass$d([
|
|
444
444
|
kosUiSdk.kosFuture()
|
|
445
445
|
], CartridgeAgitatorModelImpl.prototype, "testAgitate", 1);
|
|
446
|
-
__decorateClass$
|
|
446
|
+
__decorateClass$d([
|
|
447
447
|
kosUiSdk.kosModelEffect({
|
|
448
448
|
dependencies: (model) => [model.isAgitating]
|
|
449
449
|
})
|
|
450
450
|
], CartridgeAgitatorModelImpl.prototype, "handleAgitation", 1);
|
|
451
|
-
CartridgeAgitatorModelImpl = __decorateClass$
|
|
452
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
451
|
+
CartridgeAgitatorModelImpl = __decorateClass$d([
|
|
452
|
+
kosUiSdk.kosModel(MODEL_TYPE$d),
|
|
453
453
|
kosUiSdk.kosFutureAware(),
|
|
454
454
|
kosUiSdk.kosLoggerAware()
|
|
455
455
|
], CartridgeAgitatorModelImpl);
|
|
456
456
|
const CartridgeAgitator = new kosUiSdk.KosModelRegistrationFactory({
|
|
457
457
|
class: CartridgeAgitatorModelImpl,
|
|
458
|
-
type: MODEL_TYPE$
|
|
458
|
+
type: MODEL_TYPE$d
|
|
459
459
|
});
|
|
460
460
|
const CartridgeAgitatorContainer = new kosUiSdk.SingletonKosModelRegistrationFactory({
|
|
461
461
|
class: CartridgeAgitatorContainerModelImpl,
|
|
462
|
-
type: MODEL_TYPE$
|
|
462
|
+
type: MODEL_TYPE$e
|
|
463
463
|
});
|
|
464
464
|
CartridgeAgitatorContainer.addRelatedModel(CartridgeAgitator);
|
|
465
|
-
var __defProp$
|
|
466
|
-
var __getOwnPropDesc$
|
|
467
|
-
var __defNormalProp$
|
|
468
|
-
var __decorateClass$
|
|
469
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
465
|
+
var __defProp$9 = Object.defineProperty;
|
|
466
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
467
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
468
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
469
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
470
470
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
471
471
|
if (decorator = decorators[i])
|
|
472
472
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
473
|
-
if (kind && result) __defProp$
|
|
473
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
474
474
|
return result;
|
|
475
475
|
};
|
|
476
|
-
var __publicField$
|
|
477
|
-
const MODEL_TYPE$
|
|
476
|
+
var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, key + "", value);
|
|
477
|
+
const MODEL_TYPE$c = "cgp-pump-model";
|
|
478
478
|
const PROP_STATE_PATH = kosUiSdk.createPropKey("statePath");
|
|
479
479
|
let CgpPumpModelImpl = class {
|
|
480
480
|
highProbeWet;
|
|
@@ -490,27 +490,27 @@ let CgpPumpModelImpl = class {
|
|
|
490
490
|
return this.state.path;
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
|
-
__publicField$
|
|
494
|
-
__decorateClass$
|
|
493
|
+
__publicField$4(CgpPumpModelImpl, "Registration");
|
|
494
|
+
__decorateClass$c([
|
|
495
495
|
kosUiSdk.kosStateProp({
|
|
496
496
|
path: PROP_STATE_PATH,
|
|
497
497
|
attribute: "highProbeWet"
|
|
498
498
|
})
|
|
499
499
|
], CgpPumpModelImpl.prototype, "highProbeWet", 2);
|
|
500
|
-
__decorateClass$
|
|
500
|
+
__decorateClass$c([
|
|
501
501
|
kosUiSdk.kosStateProp({
|
|
502
502
|
path: PROP_STATE_PATH,
|
|
503
503
|
attribute: "lowProbeWet"
|
|
504
504
|
})
|
|
505
505
|
], CgpPumpModelImpl.prototype, "lowProbeWet", 2);
|
|
506
|
-
__decorateClass$
|
|
506
|
+
__decorateClass$c([
|
|
507
507
|
kosUiSdk.kosStateProp({
|
|
508
508
|
path: PROP_STATE_PATH,
|
|
509
509
|
attribute: "filling"
|
|
510
510
|
})
|
|
511
511
|
], CgpPumpModelImpl.prototype, "filling", 2);
|
|
512
|
-
CgpPumpModelImpl = __decorateClass$
|
|
513
|
-
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$
|
|
512
|
+
CgpPumpModelImpl = __decorateClass$c([
|
|
513
|
+
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$c, singleton: false }),
|
|
514
514
|
kosUiSdk.kosCompanion({
|
|
515
515
|
mode: "composition"
|
|
516
516
|
}),
|
|
@@ -581,7 +581,7 @@ const performPreCalibrate$1 = async (pump, tracker) => {
|
|
|
581
581
|
return futureResponse;
|
|
582
582
|
}
|
|
583
583
|
};
|
|
584
|
-
const performCalibrate$
|
|
584
|
+
const performCalibrate$2 = async (pump, tracker) => {
|
|
585
585
|
log$6.debug(
|
|
586
586
|
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/calibrate`
|
|
587
587
|
);
|
|
@@ -611,7 +611,7 @@ const performCalibrate$1 = async (pump, tracker) => {
|
|
|
611
611
|
return futureResponse;
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
|
-
const performVerify$
|
|
614
|
+
const performVerify$2 = async (pump, volume, tracker) => {
|
|
615
615
|
log$6.debug(
|
|
616
616
|
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/verify/${volume}`
|
|
617
617
|
);
|
|
@@ -658,7 +658,7 @@ const performComplete$1 = async (pump, volume1, volume2) => {
|
|
|
658
658
|
urlOverride: `${URL$4}/api/ext/freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`
|
|
659
659
|
});
|
|
660
660
|
log$6.debug("performPreCalibrate - response:", response);
|
|
661
|
-
return processResponse(response
|
|
661
|
+
return response ? processResponse(response) : "unknownError";
|
|
662
662
|
} catch (error) {
|
|
663
663
|
log$6.error(
|
|
664
664
|
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`,
|
|
@@ -667,17 +667,17 @@ const performComplete$1 = async (pump, volume1, volume2) => {
|
|
|
667
667
|
return "unknownError";
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
|
-
var __defProp$
|
|
671
|
-
var __getOwnPropDesc$
|
|
672
|
-
var __decorateClass$
|
|
673
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
670
|
+
var __defProp$8 = Object.defineProperty;
|
|
671
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
672
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
673
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
674
674
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
675
675
|
if (decorator = decorators[i])
|
|
676
676
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
677
|
-
if (kind && result) __defProp$
|
|
677
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
678
678
|
return result;
|
|
679
679
|
};
|
|
680
|
-
const MODEL_TYPE$
|
|
680
|
+
const MODEL_TYPE$b = "fcm-pump-model";
|
|
681
681
|
const log$5 = kosUiSdk.KosLog.createLogger({
|
|
682
682
|
group: kosUiSdk.LogGroup.model,
|
|
683
683
|
name: "fcm-pump-model"
|
|
@@ -732,10 +732,10 @@ let FcmPumpModelImpl = class {
|
|
|
732
732
|
return performPreCalibrate$1(this.pumpModel.path, tracker);
|
|
733
733
|
}
|
|
734
734
|
async performCalibrate(tracker) {
|
|
735
|
-
return performCalibrate$
|
|
735
|
+
return performCalibrate$2(this.pumpModel.path, tracker);
|
|
736
736
|
}
|
|
737
737
|
async performVerify(volume, tracker) {
|
|
738
|
-
return performVerify$
|
|
738
|
+
return performVerify$2(this.pumpModel.path, volume, tracker);
|
|
739
739
|
}
|
|
740
740
|
async performComplete(volume1, volume2) {
|
|
741
741
|
return performComplete$1(this.pumpModel.path, volume1, volume2);
|
|
@@ -748,33 +748,33 @@ let FcmPumpModelImpl = class {
|
|
|
748
748
|
this.logger.debug(`loading fcm-pump ${this.id}`);
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
|
-
__decorateClass$
|
|
751
|
+
__decorateClass$b([
|
|
752
752
|
kosUiSdk.kosFuture()
|
|
753
753
|
], FcmPumpModelImpl.prototype, "performPreCalibrate", 1);
|
|
754
|
-
__decorateClass$
|
|
754
|
+
__decorateClass$b([
|
|
755
755
|
kosUiSdk.kosFuture()
|
|
756
756
|
], FcmPumpModelImpl.prototype, "performCalibrate", 1);
|
|
757
|
-
__decorateClass$
|
|
757
|
+
__decorateClass$b([
|
|
758
758
|
kosUiSdk.kosFuture()
|
|
759
759
|
], FcmPumpModelImpl.prototype, "performVerify", 1);
|
|
760
|
-
FcmPumpModelImpl = __decorateClass$
|
|
761
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
760
|
+
FcmPumpModelImpl = __decorateClass$b([
|
|
761
|
+
kosUiSdk.kosModel(MODEL_TYPE$b)
|
|
762
762
|
], FcmPumpModelImpl);
|
|
763
763
|
const FcmPump = new kosUiSdk.KosModelRegistrationFactory({
|
|
764
764
|
class: FcmPumpModelImpl,
|
|
765
|
-
type: MODEL_TYPE$
|
|
765
|
+
type: MODEL_TYPE$b
|
|
766
766
|
});
|
|
767
|
-
var __defProp$
|
|
768
|
-
var __getOwnPropDesc$
|
|
769
|
-
var __decorateClass$
|
|
770
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
767
|
+
var __defProp$7 = Object.defineProperty;
|
|
768
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
769
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
770
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
771
771
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
772
772
|
if (decorator = decorators[i])
|
|
773
773
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
774
|
-
if (kind && result) __defProp$
|
|
774
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
775
775
|
return result;
|
|
776
776
|
};
|
|
777
|
-
const MODEL_TYPE$
|
|
777
|
+
const MODEL_TYPE$a = "freestyle-assembly-model";
|
|
778
778
|
const FEATURE_SUPPORTS_ICE = "iceAgitator";
|
|
779
779
|
const FEATURE_SUPPORTS_CARB = "carbTank";
|
|
780
780
|
const FEATURE_SUPPORTS_REMOTE_TRAYS = "remoteTrays";
|
|
@@ -861,28 +861,28 @@ let FreestyleAssemblyModelImpl = class {
|
|
|
861
861
|
this._carbTankModel = _carbTank;
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
__decorateClass$
|
|
864
|
+
__decorateClass$a([
|
|
865
865
|
kosUiSdk.kosChild
|
|
866
866
|
], FreestyleAssemblyModelImpl.prototype, "_remoteTrays", 2);
|
|
867
|
-
FreestyleAssemblyModelImpl = __decorateClass$
|
|
867
|
+
FreestyleAssemblyModelImpl = __decorateClass$a([
|
|
868
868
|
kosUiSdk.kosParentAware(),
|
|
869
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
869
|
+
kosUiSdk.kosModel(MODEL_TYPE$a)
|
|
870
870
|
], FreestyleAssemblyModelImpl);
|
|
871
871
|
const FreestyleAssembly = new kosUiSdk.SingletonKosModelRegistrationFactory({
|
|
872
872
|
class: FreestyleAssemblyModelImpl,
|
|
873
|
-
type: MODEL_TYPE$
|
|
873
|
+
type: MODEL_TYPE$a
|
|
874
874
|
});
|
|
875
|
-
var __defProp$
|
|
876
|
-
var __getOwnPropDesc$
|
|
877
|
-
var __decorateClass$
|
|
878
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
875
|
+
var __defProp$6 = Object.defineProperty;
|
|
876
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
877
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
878
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
879
879
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
880
880
|
if (decorator = decorators[i])
|
|
881
881
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
882
|
-
if (kind && result) __defProp$
|
|
882
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
883
883
|
return result;
|
|
884
884
|
};
|
|
885
|
-
const MODEL_TYPE$
|
|
885
|
+
const MODEL_TYPE$9 = "remote-tray-model";
|
|
886
886
|
kosUiSdk.createPropKey("holderPath");
|
|
887
887
|
const PROP_CONFIG_PATH = kosUiSdk.createPropKey("configPath");
|
|
888
888
|
let RemoteTrayModelImpl = class {
|
|
@@ -969,47 +969,47 @@ let RemoteTrayModelImpl = class {
|
|
|
969
969
|
this.logger.debug(`loading remote-tray ${this.id}`);
|
|
970
970
|
}
|
|
971
971
|
};
|
|
972
|
-
__decorateClass$
|
|
972
|
+
__decorateClass$9([
|
|
973
973
|
kosUiSdk.kosConfigProperty({
|
|
974
974
|
path: PROP_CONFIG_PATH,
|
|
975
975
|
attribute: "enabled"
|
|
976
976
|
})
|
|
977
977
|
], RemoteTrayModelImpl.prototype, "remoteTrayEnabled", 2);
|
|
978
|
-
RemoteTrayModelImpl = __decorateClass$
|
|
979
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
978
|
+
RemoteTrayModelImpl = __decorateClass$9([
|
|
979
|
+
kosUiSdk.kosModel(MODEL_TYPE$9)
|
|
980
980
|
], RemoteTrayModelImpl);
|
|
981
981
|
const RemoteTray = new kosUiSdk.KosModelRegistrationFactory({
|
|
982
982
|
class: RemoteTrayModelImpl,
|
|
983
|
-
type: MODEL_TYPE$
|
|
983
|
+
type: MODEL_TYPE$9
|
|
984
984
|
});
|
|
985
|
-
var __getOwnPropDesc$
|
|
986
|
-
var __decorateClass$
|
|
987
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
985
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
986
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
987
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
988
988
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
989
989
|
if (decorator = decorators[i])
|
|
990
990
|
result = decorator(result) || result;
|
|
991
991
|
return result;
|
|
992
992
|
};
|
|
993
|
-
const MODEL_TYPE$
|
|
993
|
+
const MODEL_TYPE$8 = "remote-tray-container-model";
|
|
994
994
|
let RemoteTrayContainerModelImpl = class {
|
|
995
995
|
id;
|
|
996
996
|
constructor(modelId) {
|
|
997
997
|
this.id = modelId;
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
|
-
RemoteTrayContainerModelImpl = __decorateClass$
|
|
1001
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
1000
|
+
RemoteTrayContainerModelImpl = __decorateClass$8([
|
|
1001
|
+
kosUiSdk.kosModel(MODEL_TYPE$8),
|
|
1002
1002
|
kosUiSdk.kosLoggerAware(),
|
|
1003
1003
|
kosUiSdk.kosContainerAware()
|
|
1004
1004
|
], RemoteTrayContainerModelImpl);
|
|
1005
1005
|
const RemoteTrayContainer = new kosUiSdk.SingletonKosModelRegistrationFactory({
|
|
1006
1006
|
class: RemoteTrayContainerModelImpl,
|
|
1007
|
-
type: MODEL_TYPE$
|
|
1007
|
+
type: MODEL_TYPE$8
|
|
1008
1008
|
});
|
|
1009
1009
|
RemoteTrayContainer.addRelatedModel(RemoteTray);
|
|
1010
|
-
var __getOwnPropDesc$
|
|
1011
|
-
var __decorateClass$
|
|
1012
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1010
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
1011
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
1012
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
1013
1013
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1014
1014
|
if (decorator = decorators[i])
|
|
1015
1015
|
result = decorator(result) || result;
|
|
@@ -1019,7 +1019,7 @@ const log$4 = kosUiSdk.KosLog.createLogger({
|
|
|
1019
1019
|
group: kosUiSdk.LogGroup.model,
|
|
1020
1020
|
name: "freestyle-holder-model"
|
|
1021
1021
|
});
|
|
1022
|
-
const MODEL_TYPE$
|
|
1022
|
+
const MODEL_TYPE$7 = "freestyle-holder-model";
|
|
1023
1023
|
function resolveFreestyleAssembly(id) {
|
|
1024
1024
|
const context = kosUiSdk.KosContextManager.getContext(id);
|
|
1025
1025
|
const freestyleAssembly = context?.get(
|
|
@@ -1095,12 +1095,12 @@ let FreestyleHolderModelImpl = class {
|
|
|
1095
1095
|
this.logger.debug(`loading freestyle-holder ${this.id}`);
|
|
1096
1096
|
}
|
|
1097
1097
|
};
|
|
1098
|
-
FreestyleHolderModelImpl = __decorateClass$
|
|
1099
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
1098
|
+
FreestyleHolderModelImpl = __decorateClass$7([
|
|
1099
|
+
kosUiSdk.kosModel(MODEL_TYPE$7)
|
|
1100
1100
|
], FreestyleHolderModelImpl);
|
|
1101
1101
|
const FreestyleHolder = new kosUiSdk.KosModelRegistrationFactory({
|
|
1102
1102
|
class: FreestyleHolderModelImpl,
|
|
1103
|
-
type: MODEL_TYPE$
|
|
1103
|
+
type: MODEL_TYPE$7
|
|
1104
1104
|
});
|
|
1105
1105
|
const { URL: URL$3 } = kosUiSdk.resolveServiceUrl("FREESTYLE-NOZZLE_SERVICE");
|
|
1106
1106
|
const { getOne } = kosUiSdk.ServiceFactory.build({
|
|
@@ -1146,17 +1146,17 @@ const getFreestyleNutritionInfo = async (nozzleUrlPrefix, beverageId, volumes, b
|
|
|
1146
1146
|
}
|
|
1147
1147
|
return response.data;
|
|
1148
1148
|
};
|
|
1149
|
-
var __defProp$
|
|
1150
|
-
var __getOwnPropDesc$
|
|
1151
|
-
var __decorateClass$
|
|
1152
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1149
|
+
var __defProp$5 = Object.defineProperty;
|
|
1150
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
1151
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
1152
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
1153
1153
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1154
1154
|
if (decorator = decorators[i])
|
|
1155
1155
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1156
|
-
if (kind && result) __defProp$
|
|
1156
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
1157
1157
|
return result;
|
|
1158
1158
|
};
|
|
1159
|
-
const MODEL_TYPE$
|
|
1159
|
+
const MODEL_TYPE$6 = "freestyle-nozzle-model";
|
|
1160
1160
|
let FreestyleNozzleModelImpl = class {
|
|
1161
1161
|
id;
|
|
1162
1162
|
logger;
|
|
@@ -1210,20 +1210,20 @@ let FreestyleNozzleModelImpl = class {
|
|
|
1210
1210
|
this.logger.debug(`loading freestyle-nozzle ${this.id}`);
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
__decorateClass$
|
|
1213
|
+
__decorateClass$6([
|
|
1214
1214
|
kosUiSdk.kosModelEffect({
|
|
1215
1215
|
dependencies: (model) => [
|
|
1216
1216
|
model.selectedPourable.beverage
|
|
1217
1217
|
]
|
|
1218
1218
|
})
|
|
1219
1219
|
], FreestyleNozzleModelImpl.prototype, "handleBeverageSelection", 1);
|
|
1220
|
-
FreestyleNozzleModelImpl = __decorateClass$
|
|
1220
|
+
FreestyleNozzleModelImpl = __decorateClass$6([
|
|
1221
1221
|
kosUiSdk.kosParentAware(),
|
|
1222
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
1222
|
+
kosUiSdk.kosModel(MODEL_TYPE$6)
|
|
1223
1223
|
], FreestyleNozzleModelImpl);
|
|
1224
1224
|
const FreestyleNozzle = new kosUiSdk.KosModelRegistrationFactory({
|
|
1225
1225
|
class: FreestyleNozzleModelImpl,
|
|
1226
|
-
type: MODEL_TYPE$
|
|
1226
|
+
type: MODEL_TYPE$6
|
|
1227
1227
|
});
|
|
1228
1228
|
const { URL: URL$2 } = kosUiSdk.resolveServiceUrl("PUMP_SERVICE");
|
|
1229
1229
|
const { postModel: postModel$2 } = kosUiSdk.ServiceFactory.build({
|
|
@@ -1259,15 +1259,15 @@ const replacePump = async (pumpId, code) => {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
return ["unknownError", { error: "unknownError" }];
|
|
1261
1261
|
};
|
|
1262
|
-
var __getOwnPropDesc$
|
|
1263
|
-
var __decorateClass$
|
|
1264
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1262
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
1263
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
1264
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
1265
1265
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1266
1266
|
if (decorator = decorators[i])
|
|
1267
1267
|
result = decorator(result) || result;
|
|
1268
1268
|
return result;
|
|
1269
1269
|
};
|
|
1270
|
-
const MODEL_TYPE$
|
|
1270
|
+
const MODEL_TYPE$5 = "freestyle-pump-model";
|
|
1271
1271
|
let FreestylePumpModelImpl = class {
|
|
1272
1272
|
id;
|
|
1273
1273
|
logger;
|
|
@@ -1286,12 +1286,12 @@ let FreestylePumpModelImpl = class {
|
|
|
1286
1286
|
return [error, data];
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
FreestylePumpModelImpl = __decorateClass$
|
|
1290
|
-
kosUiSdk.kosModel(MODEL_TYPE$
|
|
1289
|
+
FreestylePumpModelImpl = __decorateClass$5([
|
|
1290
|
+
kosUiSdk.kosModel(MODEL_TYPE$5)
|
|
1291
1291
|
], FreestylePumpModelImpl);
|
|
1292
1292
|
const FreestylePump = new kosUiSdk.KosModelRegistrationFactory({
|
|
1293
1293
|
class: FreestylePumpModelImpl,
|
|
1294
|
-
type: MODEL_TYPE$
|
|
1294
|
+
type: MODEL_TYPE$5
|
|
1295
1295
|
});
|
|
1296
1296
|
const { URL: URL$1 } = kosUiSdk.resolveServiceUrl("ICE_AGITATOR_SERVICE");
|
|
1297
1297
|
const { getAll, postModel: postModel$1 } = kosUiSdk.ServiceFactory.build({
|
|
@@ -1355,23 +1355,23 @@ const testGate = async (path, tracker) => {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
return response?.data;
|
|
1357
1357
|
};
|
|
1358
|
-
var __defProp$
|
|
1359
|
-
var __getOwnPropDesc$
|
|
1360
|
-
var __defNormalProp$
|
|
1361
|
-
var __decorateClass$
|
|
1362
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1358
|
+
var __defProp$4 = Object.defineProperty;
|
|
1359
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
1360
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1361
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
1362
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
1363
1363
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1364
1364
|
if (decorator = decorators[i])
|
|
1365
1365
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1366
|
-
if (kind && result) __defProp$
|
|
1366
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
1367
1367
|
return result;
|
|
1368
1368
|
};
|
|
1369
|
-
var __publicField$
|
|
1369
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, key + "", value);
|
|
1370
1370
|
class IceAgitatorEvents {
|
|
1371
1371
|
static TOPIC_AGITATION_STARTED = "/kos/events/ddk/ice-agitation-started";
|
|
1372
1372
|
static TOPIC_AGITATION_ENDED = "/kos/events/ddk/ice-agitation-ended";
|
|
1373
1373
|
}
|
|
1374
|
-
const MODEL_TYPE$
|
|
1374
|
+
const MODEL_TYPE$4 = "ice-agitator-model";
|
|
1375
1375
|
const PROP_PATH = kosUiSdk.createPropKey("statePath");
|
|
1376
1376
|
let IceAgitatorModelImpl = class {
|
|
1377
1377
|
id;
|
|
@@ -1521,14 +1521,14 @@ let IceAgitatorModelImpl = class {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
};
|
|
1524
|
-
__publicField$
|
|
1525
|
-
__decorateClass$
|
|
1524
|
+
__publicField$3(IceAgitatorModelImpl, "Registration");
|
|
1525
|
+
__decorateClass$4([
|
|
1526
1526
|
kosUiSdk.kosConfigProperty({
|
|
1527
1527
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1528
1528
|
attribute: "settings.volWithoutIceMl"
|
|
1529
1529
|
})
|
|
1530
1530
|
], IceAgitatorModelImpl.prototype, "volWithoutIceMl", 2);
|
|
1531
|
-
__decorateClass$
|
|
1531
|
+
__decorateClass$4([
|
|
1532
1532
|
kosUiSdk.kosConfigProperty({
|
|
1533
1533
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1534
1534
|
attribute: "settings.durationSec",
|
|
@@ -1537,49 +1537,49 @@ __decorateClass$3([
|
|
|
1537
1537
|
}
|
|
1538
1538
|
})
|
|
1539
1539
|
], IceAgitatorModelImpl.prototype, "durationSec", 2);
|
|
1540
|
-
__decorateClass$
|
|
1540
|
+
__decorateClass$4([
|
|
1541
1541
|
kosUiSdk.kosConfigProperty({
|
|
1542
1542
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1543
1543
|
attribute: "enableIceChuteClear"
|
|
1544
1544
|
})
|
|
1545
1545
|
], IceAgitatorModelImpl.prototype, "enableIceChuteClear", 2);
|
|
1546
|
-
__decorateClass$
|
|
1546
|
+
__decorateClass$4([
|
|
1547
1547
|
kosUiSdk.kosConfigProperty({
|
|
1548
1548
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1549
1549
|
attribute: "iceChuteClearDurationMs"
|
|
1550
1550
|
})
|
|
1551
1551
|
], IceAgitatorModelImpl.prototype, "iceChuteClearDurationMs", 2);
|
|
1552
|
-
__decorateClass$
|
|
1552
|
+
__decorateClass$4([
|
|
1553
1553
|
kosUiSdk.kosConfigProperty({
|
|
1554
1554
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1555
1555
|
attribute: "iceChuteClearIntervalSec"
|
|
1556
1556
|
})
|
|
1557
1557
|
], IceAgitatorModelImpl.prototype, "iceChuteClearIntervalSec", 2);
|
|
1558
|
-
__decorateClass$
|
|
1558
|
+
__decorateClass$4([
|
|
1559
1559
|
kosUiSdk.kosConfigProperty({
|
|
1560
1560
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1561
1561
|
attribute: "iceChuteClearRetryIntervalSec"
|
|
1562
1562
|
})
|
|
1563
1563
|
], IceAgitatorModelImpl.prototype, "iceChuteClearRetryIntervalSec", 2);
|
|
1564
|
-
__decorateClass$
|
|
1564
|
+
__decorateClass$4([
|
|
1565
1565
|
kosUiSdk.kosConfigProperty({
|
|
1566
1566
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1567
1567
|
attribute: "maxDispenseSec"
|
|
1568
1568
|
})
|
|
1569
1569
|
], IceAgitatorModelImpl.prototype, "maxDispenseSec", 2);
|
|
1570
|
-
__decorateClass$
|
|
1570
|
+
__decorateClass$4([
|
|
1571
1571
|
kosUiSdk.kosConfigProperty({
|
|
1572
1572
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1573
1573
|
attribute: "type"
|
|
1574
1574
|
})
|
|
1575
1575
|
], IceAgitatorModelImpl.prototype, "type", 2);
|
|
1576
|
-
__decorateClass$
|
|
1576
|
+
__decorateClass$4([
|
|
1577
1577
|
kosUiSdk.kosConfigProperty({
|
|
1578
1578
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1579
1579
|
attribute: "settings.dilutionOffset"
|
|
1580
1580
|
})
|
|
1581
1581
|
], IceAgitatorModelImpl.prototype, "dilutionOffset", 2);
|
|
1582
|
-
__decorateClass$
|
|
1582
|
+
__decorateClass$4([
|
|
1583
1583
|
kosUiSdk.kosConfigProperty({
|
|
1584
1584
|
path: kosUiSdk.KOS_MODEL_ID,
|
|
1585
1585
|
attribute: "settings.inactivitySec",
|
|
@@ -1588,46 +1588,46 @@ __decorateClass$3([
|
|
|
1588
1588
|
}
|
|
1589
1589
|
})
|
|
1590
1590
|
], IceAgitatorModelImpl.prototype, "inactivitySec", 2);
|
|
1591
|
-
__decorateClass$
|
|
1591
|
+
__decorateClass$4([
|
|
1592
1592
|
kosUiSdk.kosStateProp({ path: PROP_PATH, attribute: "agitating" })
|
|
1593
1593
|
], IceAgitatorModelImpl.prototype, "agitating", 2);
|
|
1594
|
-
__decorateClass$
|
|
1594
|
+
__decorateClass$4([
|
|
1595
1595
|
kosUiSdk.kosStateProp({ path: PROP_PATH, attribute: "iceChuteOpen" })
|
|
1596
1596
|
], IceAgitatorModelImpl.prototype, "iceChuteOpen", 2);
|
|
1597
|
-
__decorateClass$
|
|
1597
|
+
__decorateClass$4([
|
|
1598
1598
|
kosUiSdk.kosFuture({ alias: "pour" })
|
|
1599
1599
|
], IceAgitatorModelImpl.prototype, "pourIce", 1);
|
|
1600
|
-
__decorateClass$
|
|
1600
|
+
__decorateClass$4([
|
|
1601
1601
|
kosUiSdk.kosFuture({ alias: "agitate" })
|
|
1602
1602
|
], IceAgitatorModelImpl.prototype, "testAgitate", 1);
|
|
1603
|
-
__decorateClass$
|
|
1603
|
+
__decorateClass$4([
|
|
1604
1604
|
kosUiSdk.kosFuture({
|
|
1605
1605
|
alias: "gate"
|
|
1606
1606
|
})
|
|
1607
1607
|
], IceAgitatorModelImpl.prototype, "testGate", 1);
|
|
1608
|
-
__decorateClass$
|
|
1608
|
+
__decorateClass$4([
|
|
1609
1609
|
kosUiSdk.kosModelEffect({
|
|
1610
1610
|
dependencies: (model) => [model.isAgitating]
|
|
1611
1611
|
})
|
|
1612
1612
|
], IceAgitatorModelImpl.prototype, "handleAgitationChange", 1);
|
|
1613
|
-
IceAgitatorModelImpl = __decorateClass$
|
|
1614
|
-
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$
|
|
1613
|
+
IceAgitatorModelImpl = __decorateClass$4([
|
|
1614
|
+
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$4, singleton: false }),
|
|
1615
1615
|
kosUiSdk.kosLoggerAware(),
|
|
1616
1616
|
kosUiSdk.kosMultipleFutureAware()
|
|
1617
1617
|
], IceAgitatorModelImpl);
|
|
1618
1618
|
const IceAgitator = IceAgitatorModelImpl.Registration;
|
|
1619
|
-
var __defProp$
|
|
1620
|
-
var __getOwnPropDesc$
|
|
1621
|
-
var __defNormalProp$
|
|
1622
|
-
var __decorateClass$
|
|
1623
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1619
|
+
var __defProp$3 = Object.defineProperty;
|
|
1620
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
1621
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1622
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
1623
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
1624
1624
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1625
1625
|
if (decorator = decorators[i])
|
|
1626
1626
|
result = decorator(result) || result;
|
|
1627
1627
|
return result;
|
|
1628
1628
|
};
|
|
1629
|
-
var __publicField$
|
|
1630
|
-
const MODEL_TYPE$
|
|
1629
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, key + "", value);
|
|
1630
|
+
const MODEL_TYPE$3 = "lfcv-pump-model";
|
|
1631
1631
|
let LfcvPumpModelImpl = class {
|
|
1632
1632
|
id;
|
|
1633
1633
|
constructor(modelId) {
|
|
@@ -1655,9 +1655,9 @@ let LfcvPumpModelImpl = class {
|
|
|
1655
1655
|
return this.pumpModel.resolveIntentVolume(intent);
|
|
1656
1656
|
}
|
|
1657
1657
|
};
|
|
1658
|
-
__publicField$
|
|
1659
|
-
LfcvPumpModelImpl = __decorateClass$
|
|
1660
|
-
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$
|
|
1658
|
+
__publicField$2(LfcvPumpModelImpl, "Registration");
|
|
1659
|
+
LfcvPumpModelImpl = __decorateClass$3([
|
|
1660
|
+
kosUiSdk.kosModel({ modelTypeId: MODEL_TYPE$3, singleton: false }),
|
|
1661
1661
|
kosUiSdk.kosLoggerAware(),
|
|
1662
1662
|
kosUiSdk.kosCompanion({
|
|
1663
1663
|
mode: "composition",
|
|
@@ -1665,6 +1665,140 @@ LfcvPumpModelImpl = __decorateClass$2([
|
|
|
1665
1665
|
})
|
|
1666
1666
|
], LfcvPumpModelImpl);
|
|
1667
1667
|
const LfcvPump = LfcvPumpModelImpl.Registration;
|
|
1668
|
+
function kosServiceRequest$4(params) {
|
|
1669
|
+
return kosUiSdk.kosServiceRequest(params);
|
|
1670
|
+
}
|
|
1671
|
+
function endpoint$1(path, method) {
|
|
1672
|
+
return { path, method };
|
|
1673
|
+
}
|
|
1674
|
+
function serviceRequest$1(ep, opts) {
|
|
1675
|
+
return kosServiceRequest$4({
|
|
1676
|
+
path: ep.path,
|
|
1677
|
+
method: ep.method,
|
|
1678
|
+
errorHandler: { strategy: "log", defaultValue: null },
|
|
1679
|
+
...opts
|
|
1680
|
+
});
|
|
1681
|
+
}
|
|
1682
|
+
function provisionalServiceRequest$1(ep, opts) {
|
|
1683
|
+
return kosUiSdk.kosServiceRequest({
|
|
1684
|
+
path: ep.path,
|
|
1685
|
+
method: ep.method,
|
|
1686
|
+
errorHandler: { strategy: "log", defaultValue: null },
|
|
1687
|
+
...opts
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1690
|
+
const api$4 = kosUiSdk.createClient();
|
|
1691
|
+
const service$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1692
|
+
__proto__: null,
|
|
1693
|
+
api: api$4,
|
|
1694
|
+
default: api$4,
|
|
1695
|
+
endpoint: endpoint$1,
|
|
1696
|
+
kosServiceRequest: kosServiceRequest$4,
|
|
1697
|
+
provisionalServiceRequest: provisionalServiceRequest$1,
|
|
1698
|
+
serviceRequest: serviceRequest$1
|
|
1699
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1700
|
+
const performCalibrate$1 = async (pump, tracker) => {
|
|
1701
|
+
try {
|
|
1702
|
+
const [error, work] = await api$4.post(
|
|
1703
|
+
"/api/ext/freestyle/dcp/calibration/{pump}/calibrate",
|
|
1704
|
+
{ path: { pump } },
|
|
1705
|
+
void 0,
|
|
1706
|
+
{ tracker }
|
|
1707
|
+
);
|
|
1708
|
+
const id = work?.id?.toString();
|
|
1709
|
+
if (error || !id) {
|
|
1710
|
+
throw new Error(error || "DCP calibration returned no future ID.");
|
|
1711
|
+
}
|
|
1712
|
+
const future = { ...work, id };
|
|
1713
|
+
kosUiSdk.FutureManager.initiateFuture(future);
|
|
1714
|
+
return future;
|
|
1715
|
+
} catch (error) {
|
|
1716
|
+
return {
|
|
1717
|
+
id: tracker ?? "",
|
|
1718
|
+
tracker,
|
|
1719
|
+
endState: kosUiSdk.FutureEndState.Fail,
|
|
1720
|
+
reason: error instanceof Error ? error.message : "Unknown error."
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
};
|
|
1724
|
+
const performVerify$1 = async (pump, volume) => {
|
|
1725
|
+
const mlPoured = Number(volume);
|
|
1726
|
+
if (!volume.trim() || !Number.isFinite(mlPoured)) return "error";
|
|
1727
|
+
try {
|
|
1728
|
+
const [error, result] = await api$4.post(
|
|
1729
|
+
"/api/ext/freestyle/dcp/calibration/{pump}/verify/{mlPoured}",
|
|
1730
|
+
{ path: { pump, mlPoured } }
|
|
1731
|
+
);
|
|
1732
|
+
if (error || result?.reasonCode != null || typeof result?.needsVerification !== "boolean") {
|
|
1733
|
+
return "error";
|
|
1734
|
+
}
|
|
1735
|
+
return result.needsVerification ? "out-of-spec" : "in-spec";
|
|
1736
|
+
} catch {
|
|
1737
|
+
return "error";
|
|
1738
|
+
}
|
|
1739
|
+
};
|
|
1740
|
+
var __defProp$2 = Object.defineProperty;
|
|
1741
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
1742
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1743
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
1744
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
1745
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1746
|
+
if (decorator = decorators[i])
|
|
1747
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1748
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
1749
|
+
return result;
|
|
1750
|
+
};
|
|
1751
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, key + "", value);
|
|
1752
|
+
const MODEL_TYPE$2 = "lfcv-dcp-model";
|
|
1753
|
+
const MODEL_CONFIG = {
|
|
1754
|
+
modelTypeId: MODEL_TYPE$2,
|
|
1755
|
+
singleton: false
|
|
1756
|
+
};
|
|
1757
|
+
let LfcvDcpModelImpl = class {
|
|
1758
|
+
id;
|
|
1759
|
+
pumpModel;
|
|
1760
|
+
constructor(modelId, options) {
|
|
1761
|
+
this.id = modelId;
|
|
1762
|
+
this.pumpModel = options.companionParent;
|
|
1763
|
+
}
|
|
1764
|
+
get name() {
|
|
1765
|
+
return this.pumpModel.name;
|
|
1766
|
+
}
|
|
1767
|
+
get canPour() {
|
|
1768
|
+
return this.pumpModel.canPour;
|
|
1769
|
+
}
|
|
1770
|
+
get isPouring() {
|
|
1771
|
+
return this.pumpModel.isPouring;
|
|
1772
|
+
}
|
|
1773
|
+
get ingredientId() {
|
|
1774
|
+
return this.pumpModel.ingredientId;
|
|
1775
|
+
}
|
|
1776
|
+
get future() {
|
|
1777
|
+
return this.futureHandler.future;
|
|
1778
|
+
}
|
|
1779
|
+
async cancelPour() {
|
|
1780
|
+
return this.pumpModel.cancelPour();
|
|
1781
|
+
}
|
|
1782
|
+
resolveIntentVolume(intent) {
|
|
1783
|
+
return this.pumpModel.resolveIntentVolume(intent);
|
|
1784
|
+
}
|
|
1785
|
+
async performCalibrate(tracker) {
|
|
1786
|
+
return performCalibrate$1(this.pumpModel.path, tracker);
|
|
1787
|
+
}
|
|
1788
|
+
performVerify(volume) {
|
|
1789
|
+
return performVerify$1(this.pumpModel.path, volume);
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
__publicField$1(LfcvDcpModelImpl, "Registration");
|
|
1793
|
+
__decorateClass$2([
|
|
1794
|
+
kosUiSdk.kosFuture()
|
|
1795
|
+
], LfcvDcpModelImpl.prototype, "performCalibrate", 1);
|
|
1796
|
+
LfcvDcpModelImpl = __decorateClass$2([
|
|
1797
|
+
kosUiSdk.kosModel(MODEL_CONFIG),
|
|
1798
|
+
kosUiSdk.kosFutureAware({ mode: "minimal" }),
|
|
1799
|
+
kosUiSdk.kosLoggerAware()
|
|
1800
|
+
], LfcvDcpModelImpl);
|
|
1801
|
+
const LfcvDcp = LfcvDcpModelImpl.Registration;
|
|
1668
1802
|
const { URL } = kosUiSdk.resolveServiceUrl("SPM-PUMP_SERVICE");
|
|
1669
1803
|
const { postModel } = kosUiSdk.ServiceFactory.build({
|
|
1670
1804
|
basePath: `${URL}/api/spm-pump`
|
|
@@ -2088,6 +2222,7 @@ const registerFreestyleModels = (root) => () => {
|
|
|
2088
2222
|
SpmPump.register();
|
|
2089
2223
|
FcmPump.register();
|
|
2090
2224
|
LfcvPump.register();
|
|
2225
|
+
LfcvDcp.register();
|
|
2091
2226
|
CgpPump.register();
|
|
2092
2227
|
FreestylePump.register();
|
|
2093
2228
|
FreestyleHolder.register();
|
|
@@ -2186,38 +2321,6 @@ _KosModelRegistry.model = kosUiSdk.RegistrationManager.model.register(_KosModelR
|
|
|
2186
2321
|
_KosModelRegistry.companion = kosUiSdk.RegistrationManager.companion.register(_KosModelRegistry);
|
|
2187
2322
|
_KosModelRegistry.legacy = kosUiSdk.RegistrationManager.model.registerLegacyModel(_KosModelRegistry);
|
|
2188
2323
|
const KosModelRegistry = _KosModelRegistry;
|
|
2189
|
-
function kosServiceRequest$4(params) {
|
|
2190
|
-
return kosUiSdk.kosServiceRequest(params);
|
|
2191
|
-
}
|
|
2192
|
-
function endpoint$1(path, method) {
|
|
2193
|
-
return { path, method };
|
|
2194
|
-
}
|
|
2195
|
-
function serviceRequest$1(ep, opts) {
|
|
2196
|
-
return kosServiceRequest$4({
|
|
2197
|
-
path: ep.path,
|
|
2198
|
-
method: ep.method,
|
|
2199
|
-
errorHandler: { strategy: "log", defaultValue: null },
|
|
2200
|
-
...opts
|
|
2201
|
-
});
|
|
2202
|
-
}
|
|
2203
|
-
function provisionalServiceRequest$1(ep, opts) {
|
|
2204
|
-
return kosUiSdk.kosServiceRequest({
|
|
2205
|
-
path: ep.path,
|
|
2206
|
-
method: ep.method,
|
|
2207
|
-
errorHandler: { strategy: "log", defaultValue: null },
|
|
2208
|
-
...opts
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
const api$4 = kosUiSdk.createClient();
|
|
2212
|
-
const service$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2213
|
-
__proto__: null,
|
|
2214
|
-
api: api$4,
|
|
2215
|
-
default: api$4,
|
|
2216
|
-
endpoint: endpoint$1,
|
|
2217
|
-
kosServiceRequest: kosServiceRequest$4,
|
|
2218
|
-
provisionalServiceRequest: provisionalServiceRequest$1,
|
|
2219
|
-
serviceRequest: serviceRequest$1
|
|
2220
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2221
2324
|
function kosServiceRequest$3(params) {
|
|
2222
2325
|
return kosUiSdk.kosServiceRequest(params);
|
|
2223
2326
|
}
|
|
@@ -2297,6 +2400,7 @@ exports.IceAgitator = IceAgitator;
|
|
|
2297
2400
|
exports.IceAgitatorEvents = IceAgitatorEvents;
|
|
2298
2401
|
exports.InvalidRequestError = InvalidRequestError;
|
|
2299
2402
|
exports.KosModelRegistry = KosModelRegistry;
|
|
2403
|
+
exports.LfcvDcp = LfcvDcp;
|
|
2300
2404
|
exports.LfcvPump = LfcvPump;
|
|
2301
2405
|
exports.NutritionInfoError = NutritionInfoError;
|
|
2302
2406
|
exports.RemoteTray = RemoteTray;
|
|
@@ -2304,14 +2408,14 @@ exports.RemoteTrayContainer = RemoteTrayContainer;
|
|
|
2304
2408
|
exports.SpmPump = SpmPump;
|
|
2305
2409
|
exports.freestyleAssemblyDataMapper = freestyleAssemblyDataMapper;
|
|
2306
2410
|
exports.getFreestyleNutritionInfo = getFreestyleNutritionInfo;
|
|
2307
|
-
exports.performCalibrate = performCalibrate$
|
|
2411
|
+
exports.performCalibrate = performCalibrate$2;
|
|
2308
2412
|
exports.performCalibrate$1 = performCalibrate;
|
|
2309
2413
|
exports.performComplete = performComplete$1;
|
|
2310
2414
|
exports.performComplete$1 = performComplete;
|
|
2311
2415
|
exports.performElectricalTest = performElectricalTest;
|
|
2312
2416
|
exports.performPreCalibrate = performPreCalibrate$1;
|
|
2313
2417
|
exports.performPreCalibrate$1 = performPreCalibrate;
|
|
2314
|
-
exports.performVerify = performVerify$
|
|
2418
|
+
exports.performVerify = performVerify$2;
|
|
2315
2419
|
exports.performVerify$1 = performVerify;
|
|
2316
2420
|
exports.registerFreestyleModels = registerFreestyleModels;
|
|
2317
2421
|
exports.replacePump = replacePump;
|
|
@@ -2320,4 +2424,4 @@ exports.service$1 = service$3;
|
|
|
2320
2424
|
exports.service$2 = service$2;
|
|
2321
2425
|
exports.service$3 = service$1;
|
|
2322
2426
|
exports.service$4 = service;
|
|
2323
|
-
//# sourceMappingURL=service-
|
|
2427
|
+
//# sourceMappingURL=service-B8BhemKF.cjs.map
|