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