@kosdev-code/kos-freestyle-sdk 2.0.45 → 2.0.46
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-COesmx4N.js +201 -0
- package/extension-utils-COesmx4N.js.map +1 -0
- package/extension-utils-yKcm_im8.cjs +2 -0
- package/extension-utils-yKcm_im8.cjs.map +1 -0
- package/freestyle-registration-manager-D57Lznu_.js +1111 -0
- package/freestyle-registration-manager-D57Lznu_.js.map +1 -0
- package/freestyle-registration-manager-Dx8XJMpl.cjs +2 -0
- package/freestyle-registration-manager-Dx8XJMpl.cjs.map +1 -0
- package/index.cjs +1 -1
- package/index.js +28 -43
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +5 -195
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +87 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +1 -0
- package/models/models/agitation-required-trouble/index.d.ts +2 -4
- package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
- package/models/models/carb-agitator/carb-agitator-model.d.ts +6 -296
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
- package/models/models/{fcm-pump/fcm-pump-registration.d.ts → carb-agitator/carb-agitator-registration.d.ts} +20 -23
- package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +1 -0
- package/models/models/carb-agitator/index.d.ts +1 -1
- package/models/models/carb-agitator/index.d.ts.map +1 -1
- package/models/models/carb-agitator/types/index.d.ts +8 -1
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +8 -5
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -1
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +2 -4
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +1 -5
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -1
- package/models/models/ice-agitator/ice-agitator-model.d.ts +9 -9
- package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -1
- package/models/models/{spm-pump/spm-pump-registration.d.ts → ice-agitator/ice-agitator-registration.d.ts} +21 -23
- package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +1 -0
- package/models/models/ice-agitator/index.d.ts +2 -1
- package/models/models/ice-agitator/index.d.ts.map +1 -1
- package/models/models/index.d.ts +0 -4
- package/models/models/index.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-container-model.d.ts +14 -5
- package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -1
- package/models/models/types/assembly.d.ts +3 -7
- package/models/models/types/assembly.d.ts.map +1 -1
- package/models/utils/extension-utils.d.ts +0 -3
- package/models/utils/extension-utils.d.ts.map +1 -1
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +7 -2
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
- package/models/utils/freestyle-registration-manager.d.ts +3 -3
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
- package/models/utils/index.d.ts +0 -1
- package/models/utils/index.d.ts.map +1 -1
- package/models.cjs +1 -1
- package/models.js +21 -36
- package/package.json +2 -3
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/use-nutrition-info-Bb4itG4D.cjs +2 -0
- package/{use-nutrition-info-C_myxRvf.cjs.map → use-nutrition-info-Bb4itG4D.cjs.map} +1 -1
- package/{use-nutrition-info-CPEwk_O-.js → use-nutrition-info-Ca9_UnOV.js} +8 -8
- package/{use-nutrition-info-CPEwk_O-.js.map → use-nutrition-info-Ca9_UnOV.js.map} +1 -1
- package/extension-utils--qB2FP1I.js +0 -237
- package/extension-utils--qB2FP1I.js.map +0 -1
- package/extension-utils-DQSu9dSv.cjs +0 -2
- package/extension-utils-DQSu9dSv.cjs.map +0 -1
- package/kos-models.json +0 -180
- package/models/models/carb-agitator/services/carb-tank-services.d.ts +0 -29
- package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +0 -1
- package/models/models/cgp-pump/cgp-pump-model.d.ts +0 -24
- package/models/models/cgp-pump/cgp-pump-model.d.ts.map +0 -1
- package/models/models/cgp-pump/index.d.ts +0 -4
- package/models/models/cgp-pump/index.d.ts.map +0 -1
- package/models/models/cgp-pump/types/index.d.ts +0 -5
- package/models/models/fcm-pump/fcm-pump-model.d.ts +0 -28
- package/models/models/fcm-pump/fcm-pump-model.d.ts.map +0 -1
- package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +0 -1
- package/models/models/fcm-pump/index.d.ts +0 -5
- package/models/models/fcm-pump/index.d.ts.map +0 -1
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts +0 -17
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +0 -1
- package/models/models/fcm-pump/services/index.d.ts +0 -2
- package/models/models/fcm-pump/services/index.d.ts.map +0 -1
- package/models/models/fcm-pump/types/index.d.ts +0 -5
- package/models/models/lfcv-pump/index.d.ts +0 -3
- package/models/models/lfcv-pump/index.d.ts.map +0 -1
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts +0 -21
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +0 -1
- package/models/models/lfcv-pump/types/index.d.ts +0 -5
- package/models/models/spm-pump/index.d.ts +0 -5
- package/models/models/spm-pump/index.d.ts.map +0 -1
- package/models/models/spm-pump/services/index.d.ts +0 -2
- package/models/models/spm-pump/services/index.d.ts.map +0 -1
- package/models/models/spm-pump/services/spm-pump-services.d.ts +0 -7
- package/models/models/spm-pump/services/spm-pump-services.d.ts.map +0 -1
- package/models/models/spm-pump/spm-pump-model.d.ts +0 -26
- package/models/models/spm-pump/spm-pump-model.d.ts.map +0 -1
- package/models/models/spm-pump/spm-pump-registration.d.ts.map +0 -1
- package/models/models/spm-pump/types/index.d.ts +0 -5
- package/models/utils/extensions/trouble/trouble-utils.d.ts +0 -10
- package/models/utils/extensions/trouble/trouble-utils.d.ts.map +0 -1
- package/models/utils/openapi-index.d.ts +0 -3
- package/models/utils/openapi-index.d.ts.map +0 -1
- package/models/utils/services/freestyle/1.6.5/openapi.d.ts +0 -1462
- package/models/utils/services/freestyle/1.6.5/service.d.ts +0 -122
- package/models/utils/services/freestyle/1.6.5/service.d.ts.map +0 -1
- package/models/utils/services/freestyle/1.8.1/openapi.d.ts +0 -1656
- package/models/utils/services/freestyle/1.8.1/service.d.ts +0 -122
- package/models/utils/services/freestyle/1.8.1/service.d.ts.map +0 -1
- package/models/utils/services/freestyle/daily/openapi.d.ts +0 -1937
- package/models/utils/services/freestyle/daily/service.d.ts +0 -122
- package/models/utils/services/freestyle/daily/service.d.ts.map +0 -1
- package/models/utils/services/handle/1.8.1/openapi.d.ts +0 -237
- package/models/utils/services/handle/1.8.1/service.d.ts +0 -122
- package/models/utils/services/handle/1.8.1/service.d.ts.map +0 -1
- package/models/utils/services/handle/daily/openapi.d.ts +0 -420
- package/models/utils/services/handle/daily/service.d.ts +0 -122
- package/models/utils/services/handle/daily/service.d.ts.map +0 -1
- package/models/utils/services-index.d.ts +0 -10
- package/models/utils/services-index.d.ts.map +0 -1
- package/service-BuugCicr.js +0 -1907
- package/service-BuugCicr.js.map +0 -1
- package/service-DSV9Dr2d.cjs +0 -2
- package/service-DSV9Dr2d.cjs.map +0 -1
- package/use-nutrition-info-C_myxRvf.cjs +0 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AgitationRequiredTroubleOptions } from './types';
|
|
2
|
+
import { AgitationRequiredTroubleModel } from './agitation-required-trouble-model';
|
|
3
|
+
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # AgitationRequiredTrouble
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with AgitationRequiredTroubleModel instances.
|
|
9
|
+
*
|
|
10
|
+
* ## type
|
|
11
|
+
* The type property is a string that identifies the model type.
|
|
12
|
+
* The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
|
|
13
|
+
* used when declaring dependencies on models.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
*
|
|
18
|
+
* @kosDependency({modelType: AgitationRequiredTrouble.type, id: "agitationRequiredTroubleId"})
|
|
19
|
+
* private agitationRequiredTroubleModel: AgitationRequiredTroubleModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new AgitationRequiredTroubleModel instances.
|
|
26
|
+
*
|
|
27
|
+
|
|
28
|
+
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
29
|
+
*
|
|
30
|
+
* If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
|
|
31
|
+
* in this case and the existing model will be returned in its current state.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const model = AgitationRequiredTrouble.factory("agitationRequiredTroubleId")({
|
|
36
|
+
* // Add option data
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
*
|
|
42
|
+
* ## predicate
|
|
43
|
+
*
|
|
44
|
+
* [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a AgitationRequiredTroubleModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (AgitationRequiredTrouble.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to AgitationRequiredTroubleModel
|
|
53
|
+
* // and the compiler will know that the model has the AgitationRequiredTroubleModel interface
|
|
54
|
+
* model.updateAvailability(false);
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ## registration
|
|
59
|
+
*
|
|
60
|
+
* The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
|
|
61
|
+
* can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
*
|
|
66
|
+
* In an application registration file you can declare the model registration as follows:
|
|
67
|
+
*
|
|
68
|
+
* **registration.ts**
|
|
69
|
+
* ```typescript
|
|
70
|
+
* import { AgitationRequiredTrouble } from "@kos-ui/project-models";
|
|
71
|
+
* import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
|
|
72
|
+
*
|
|
73
|
+
* import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
|
|
74
|
+
*
|
|
75
|
+
* KosModelRegistry.dispense
|
|
76
|
+
* .models()
|
|
77
|
+
* .model(AgitationRequiredTrouble);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The agitationRequiredTrouble model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
83
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const AgitationRequiredTrouble: KosModelRegistrationFactory<AgitationRequiredTroubleModel, AgitationRequiredTroubleOptions>;
|
|
87
|
+
//# sourceMappingURL=agitation-required-trouble-registration.d.ts.map
|
package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agitation-required-trouble-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/agitation-required-trouble/agitation-required-trouble-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAKxF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,wBAAwB,6FAMnC,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
export { AGITATION_REQUIRED_TROUBLE, AgitationRequiredTrouble, type AgitationRequiredTroubleModel, } from './agitation-required-trouble-model';
|
|
1
|
+
export { AGITATION_REQUIRED_TROUBLE, type AgitationRequiredTroubleModel, } from './agitation-required-trouble-model';
|
|
2
|
+
export { AgitationRequiredTrouble } from './agitation-required-trouble-registration';
|
|
5
3
|
export type * from './types';
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/agitation-required-trouble/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/agitation-required-trouble/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,6BAA6B,GACnC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,304 +1,14 @@
|
|
|
1
|
-
import { CarbAgitatorOptions } from './types';
|
|
2
|
-
import {
|
|
3
|
-
import { IKosDataModel, KosCompanionComposition, KosConfigProperty, KosCreationContext, KosFutureAwareFull, KosLoggerAware, KosModelRegistrationType, KosStateMachineAware, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
import { AssemblyModel } from '@kosdev-code/kos-dispense-sdk';
|
|
1
|
+
import { CarbAgitatorModel, CarbAgitatorOptions } from './types';
|
|
2
|
+
import { IKosDataModel, KosCreationContext } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier for the carb agitator model type used in KOS model registration.
|
|
8
|
-
*
|
|
9
|
-
* @category Constants
|
|
10
|
-
*/
|
|
11
4
|
export declare const MODEL_TYPE = "carb-agitator-model";
|
|
12
|
-
|
|
13
|
-
* State machine states for carb agitator initialization workflow.
|
|
14
|
-
*
|
|
15
|
-
* The carb agitator progresses through these states during setup and operation:
|
|
16
|
-
* - UNINITIALIZED: Initial state, awaiting user action
|
|
17
|
-
* - ACTIVATING: Carb tank is being initialized
|
|
18
|
-
* - INITIALIZED: Carb tank is ready for operation
|
|
19
|
-
* - SKIPPED: User chose to proceed without carbonation
|
|
20
|
-
*
|
|
21
|
-
* @category State Machine
|
|
22
|
-
*/
|
|
23
|
-
export declare enum CarbAgitatorState {
|
|
24
|
-
/**
|
|
25
|
-
* Initial state before any action is taken.
|
|
26
|
-
* Can transition to ACTIVATING or SKIPPED.
|
|
27
|
-
*/
|
|
28
|
-
UNINITIALIZED = "UNINITIALIZED",
|
|
29
|
-
/**
|
|
30
|
-
* Carb tank activation is in progress.
|
|
31
|
-
* Transitions to INITIALIZED when complete.
|
|
32
|
-
*/
|
|
33
|
-
ACTIVATING = "ACTIVATING",
|
|
34
|
-
/**
|
|
35
|
-
* Carb tank is initialized and ready for operation.
|
|
36
|
-
* Can transition back to UNINITIALIZED via RESET.
|
|
37
|
-
*/
|
|
38
|
-
INITIALIZED = "INITIALIZED",
|
|
39
|
-
/**
|
|
40
|
-
* User chose to skip carbonation for this workflow.
|
|
41
|
-
* Can transition back to UNINITIALIZED via RESET.
|
|
42
|
-
*/
|
|
43
|
-
SKIPPED = "SKIPPED"
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Events that trigger state transitions in the carb agitator state machine.
|
|
47
|
-
*
|
|
48
|
-
* - ACTIVATE: Begin carb tank activation process
|
|
49
|
-
* - ACTIVATION_COMPLETE: Carb tank activation finished successfully
|
|
50
|
-
* - SKIP: Bypass carbonation for this workflow
|
|
51
|
-
* - RESET: Return to uninitialized state
|
|
52
|
-
*
|
|
53
|
-
* @category State Machine
|
|
54
|
-
*/
|
|
55
|
-
export type CarbAgitatorEvent = "ACTIVATE" | "ACTIVATION_COMPLETE" | "SKIP" | "RESET";
|
|
56
|
-
/**
|
|
57
|
-
* Public interface type for the carb agitator model.
|
|
58
|
-
*
|
|
59
|
-
* This type represents the public-facing API of the carb agitator model,
|
|
60
|
-
* exposing only public methods and properties while hiding internal implementation details.
|
|
61
|
-
*
|
|
62
|
-
* @category Types
|
|
63
|
-
*/
|
|
64
|
-
export type CarbAgitatorModel = PublicModelInterface<CarbAgitatorModelImpl>;
|
|
65
|
-
/**
|
|
66
|
-
* Interface defining the capabilities of the carb agitator model implementation.
|
|
67
|
-
*
|
|
68
|
-
* This interface combines multiple KOS aware interfaces to provide:
|
|
69
|
-
* - Logging capabilities via KosLoggerAware
|
|
70
|
-
* - Probe monitoring via ProbeAware (high/low probes, filling status)
|
|
71
|
-
* - State machine management via KosStateMachineAware
|
|
72
|
-
* - Async operations via KosFutureAwareFull
|
|
73
|
-
* - Parent-child relationships via KosCompanionComposition
|
|
74
|
-
*
|
|
75
|
-
* @category Types
|
|
76
|
-
*/
|
|
77
|
-
export interface CarbAgitatorModelImpl extends KosLoggerAware, ProbeAware, KosStateMachineAware<CarbAgitatorState, CarbAgitatorEvent>, KosFutureAwareFull, KosCompanionComposition<AssemblyModel> {
|
|
78
|
-
}
|
|
79
|
-
export declare class CarbAgitatorModelImpl implements IKosDataModel {
|
|
80
|
-
/**
|
|
81
|
-
* Registration factory for creating CarbAgitator model instances.
|
|
82
|
-
*
|
|
83
|
-
* Automatically injected by the `@kosModel` decorator.
|
|
84
|
-
*
|
|
85
|
-
* @see {@link CarbAgitator}
|
|
86
|
-
*/
|
|
87
|
-
static Registration: KosModelRegistrationType<CarbAgitatorModel, CarbAgitatorOptions>;
|
|
88
|
-
/**
|
|
89
|
-
* Unique identifier for this carb agitator instance.
|
|
90
|
-
*/
|
|
5
|
+
export declare class CarbAgitatorModelImpl implements CarbAgitatorModel, IKosDataModel {
|
|
91
6
|
id: string;
|
|
92
|
-
/**
|
|
93
|
-
* Display name for this carb agitator.
|
|
94
|
-
*/
|
|
95
7
|
name: string;
|
|
96
|
-
/**
|
|
97
|
-
* Device path for carb tank operations.
|
|
98
|
-
*/
|
|
99
8
|
path: string;
|
|
100
|
-
|
|
101
|
-
* State path for accessing probe and filling status.
|
|
102
|
-
*/
|
|
103
|
-
statePath: string;
|
|
104
|
-
/**
|
|
105
|
-
* High probe wet status indicator.
|
|
106
|
-
*
|
|
107
|
-
* Monitors whether the high-level probe in the carb tank is detecting liquid.
|
|
108
|
-
*/
|
|
109
|
-
highProbeWet: KosStateProp<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* Low probe wet status indicator.
|
|
112
|
-
*
|
|
113
|
-
* Monitors whether the low-level probe in the carb tank is detecting liquid.
|
|
114
|
-
*/
|
|
115
|
-
lowProbeWet: KosStateProp<boolean>;
|
|
116
|
-
/**
|
|
117
|
-
* Carb tank filling status indicator.
|
|
118
|
-
*
|
|
119
|
-
* Indicates whether the carb tank is currently being filled with liquid.
|
|
120
|
-
*/
|
|
121
|
-
filling: KosStateProp<boolean>;
|
|
122
|
-
/**
|
|
123
|
-
* Configuration property controlling carb tank enable/disable state.
|
|
124
|
-
*
|
|
125
|
-
* When enabled, the carb tank is operational and carbonation is active.
|
|
126
|
-
* When disabled, carbonation is bypassed.
|
|
127
|
-
*/
|
|
128
|
-
enabled: KosConfigProperty<boolean>;
|
|
129
|
-
/**
|
|
130
|
-
* Creates a new carb agitator model instance.
|
|
131
|
-
*
|
|
132
|
-
* @param modelId - Unique identifier for this instance
|
|
133
|
-
* @param options - Configuration options including name
|
|
134
|
-
* @param context - KOS creation context providing assembly paths
|
|
135
|
-
*/
|
|
9
|
+
private logger;
|
|
136
10
|
constructor(modelId: string, options: CarbAgitatorOptions, context: KosCreationContext);
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
* Retrieves the first holder from the "carb" group in the parent assembly.
|
|
141
|
-
*
|
|
142
|
-
* @returns The carb holder model, or undefined if not found
|
|
143
|
-
*/
|
|
144
|
-
get holder(): import('@kosdev-code/kos-dispense-sdk').HolderModel<any>;
|
|
145
|
-
/**
|
|
146
|
-
* Gets the pump associated with the carb holder.
|
|
147
|
-
*
|
|
148
|
-
* Returns the first pump from the holder's pump collection.
|
|
149
|
-
*
|
|
150
|
-
* @returns The pump model, or undefined if holder or pump not available
|
|
151
|
-
*/
|
|
152
|
-
get pump(): import('@kosdev-code/kos-dispense-sdk').PumpModel<any>;
|
|
153
|
-
/**
|
|
154
|
-
* Indicates whether the carb tank is currently being filled.
|
|
155
|
-
*
|
|
156
|
-
* @returns true if the filling state property indicates active filling
|
|
157
|
-
*/
|
|
158
|
-
get isFilling(): boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Indicates whether the carb tank has been initialized.
|
|
161
|
-
*
|
|
162
|
-
* @returns true if the carb tank enabled configuration is set to true
|
|
163
|
-
*/
|
|
164
|
-
get isCarbInitialized(): boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Indicates whether carb tank activation is allowed.
|
|
167
|
-
*
|
|
168
|
-
* Activation is only allowed when the carb tank is not already enabled.
|
|
169
|
-
*
|
|
170
|
-
* @returns true if the carb tank can be activated
|
|
171
|
-
*/
|
|
172
|
-
get canActivate(): boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Indicates whether the workflow can proceed past carb initialization.
|
|
175
|
-
*
|
|
176
|
-
* The workflow can proceed when the state machine is in either INITIALIZED
|
|
177
|
-
* (carb tank activated) or SKIPPED (user chose to bypass carbonation).
|
|
178
|
-
*
|
|
179
|
-
* @returns true if ready to proceed with beverage operations
|
|
180
|
-
*/
|
|
181
|
-
get canProceed(): boolean;
|
|
182
|
-
/**
|
|
183
|
-
* State entry handler when entering ACTIVATING state.
|
|
184
|
-
*
|
|
185
|
-
* Logs the start of carb tank activation process.
|
|
186
|
-
*
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
handleActivationStart(): void;
|
|
190
|
-
/**
|
|
191
|
-
* State exit handler when leaving ACTIVATING state.
|
|
192
|
-
*
|
|
193
|
-
* Logs successful completion of carb tank initialization.
|
|
194
|
-
*
|
|
195
|
-
* @internal
|
|
196
|
-
*/
|
|
197
|
-
handleActivationComplete(): void;
|
|
198
|
-
/**
|
|
199
|
-
* State entry handler when entering INITIALIZED state.
|
|
200
|
-
*
|
|
201
|
-
* Logs that the carb tank is ready for beverage operations.
|
|
202
|
-
*
|
|
203
|
-
* @internal
|
|
204
|
-
*/
|
|
205
|
-
handleInitialized(): void;
|
|
206
|
-
/**
|
|
207
|
-
* State entry handler when entering SKIPPED state.
|
|
208
|
-
*
|
|
209
|
-
* Logs that the user has chosen to proceed without carbonation.
|
|
210
|
-
*
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
handleSkipped(): void;
|
|
214
|
-
/**
|
|
215
|
-
* Activates the carb tank and transitions through initialization workflow.
|
|
216
|
-
*
|
|
217
|
-
* This method:
|
|
218
|
-
* 1. Transitions to ACTIVATING state
|
|
219
|
-
* 2. Updates the enabled configuration property to true
|
|
220
|
-
* 3. Transitions to INITIALIZED state
|
|
221
|
-
*
|
|
222
|
-
* Can only be called when in UNINITIALIZED state (enforced by state guard).
|
|
223
|
-
*
|
|
224
|
-
* @throws {Error} If called from an invalid state
|
|
225
|
-
*/
|
|
226
|
-
activateCarbTank(): Promise<void>;
|
|
227
|
-
/**
|
|
228
|
-
* Deactivates the carb tank and resets to uninitialized state.
|
|
229
|
-
*
|
|
230
|
-
* This method:
|
|
231
|
-
* 1. Updates the enabled configuration property to false
|
|
232
|
-
* 2. Transitions back to UNINITIALIZED state
|
|
233
|
-
*
|
|
234
|
-
* Can be called from any state.
|
|
235
|
-
*/
|
|
236
|
-
deactivateCarbTank(): Promise<void>;
|
|
237
|
-
/**
|
|
238
|
-
* Skips carb tank initialization and proceeds without carbonation.
|
|
239
|
-
*
|
|
240
|
-
* Allows the workflow to continue without activating the carb tank.
|
|
241
|
-
* Transitions from UNINITIALIZED to SKIPPED state.
|
|
242
|
-
*
|
|
243
|
-
* Can only be called when in UNINITIALIZED state (enforced by state guard).
|
|
244
|
-
*
|
|
245
|
-
* @throws {Error} If called from an invalid state
|
|
246
|
-
*/
|
|
247
|
-
skip(): void;
|
|
248
|
-
/**
|
|
249
|
-
* Resets the carb tank to uninitialized state.
|
|
250
|
-
*
|
|
251
|
-
* This method:
|
|
252
|
-
* 1. Updates the enabled configuration property to false
|
|
253
|
-
* 2. Transitions back to UNINITIALIZED state
|
|
254
|
-
*
|
|
255
|
-
* Can only be called when in INITIALIZED or SKIPPED states (enforced by state guard).
|
|
256
|
-
*
|
|
257
|
-
* @throws {Error} If called from an invalid state
|
|
258
|
-
*/
|
|
259
|
-
reset(): void;
|
|
260
|
-
/**
|
|
261
|
-
* Toggles the carb tank between enabled and disabled states.
|
|
262
|
-
*
|
|
263
|
-
* If currently enabled, calls {@link deactivateCarbTank}.
|
|
264
|
-
* If currently disabled, calls {@link activateCarbTank}.
|
|
265
|
-
*/
|
|
266
|
-
toggleCarbTank(): void;
|
|
267
|
-
/**
|
|
268
|
-
* Tests the carb tank operation and returns a future for tracking progress.
|
|
269
|
-
*
|
|
270
|
-
* Initiates a carb tank test operation on the device and returns a future
|
|
271
|
-
* that can be monitored for progress and completion status.
|
|
272
|
-
*
|
|
273
|
-
* @param tracker - Future tracker ID (injected by @kosFuture decorator)
|
|
274
|
-
* @returns Promise resolving to a FutureResponse for operation tracking
|
|
275
|
-
* @throws {Error} If tracker is not provided by the decorator
|
|
276
|
-
*/
|
|
277
|
-
handleTestCarbTank(tracker?: string): Promise<import('@kosdev-code/kos-ui-sdk').FutureResponse>;
|
|
11
|
+
init(): Promise<void>;
|
|
12
|
+
load(): Promise<void>;
|
|
278
13
|
}
|
|
279
|
-
/**
|
|
280
|
-
* Registration factory for creating CarbAgitator model instances.
|
|
281
|
-
*
|
|
282
|
-
* Use this constant to create new carb agitator instances using the fluent factory pattern.
|
|
283
|
-
*
|
|
284
|
-
* @example
|
|
285
|
-
* ```typescript
|
|
286
|
-
* // Create a new carb agitator model
|
|
287
|
-
* const carbAgitator = CarbAgitator
|
|
288
|
-
* .instance("carb-agitator-1")
|
|
289
|
-
* .options({ name: "Carb Tank" })
|
|
290
|
-
* .build();
|
|
291
|
-
*
|
|
292
|
-
* // Activate carb tank
|
|
293
|
-
* await carbAgitator.activateCarbTank();
|
|
294
|
-
*
|
|
295
|
-
* // Check readiness
|
|
296
|
-
* if (carbAgitator.canProceed) {
|
|
297
|
-
* console.log("Ready for beverage operations");
|
|
298
|
-
* }
|
|
299
|
-
* ```
|
|
300
|
-
*
|
|
301
|
-
* @category Models
|
|
302
|
-
*/
|
|
303
|
-
export declare const CarbAgitator: KosModelRegistrationType<CarbAgitatorModel, CarbAgitatorOptions>;
|
|
304
14
|
//# sourceMappingURL=carb-agitator-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carb-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/carb-agitator-model.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"carb-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/carb-agitator-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAEhD,qBACa,qBAAsB,YAAW,iBAAiB,EAAE,aAAa;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,kBAAkB;IAavB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FcmPumpOptions } from './types';
|
|
1
|
+
import { CarbAgitatorModel, CarbAgitatorOptions } from './types';
|
|
3
2
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
|
-
* #
|
|
5
|
+
* # CarbAgitator
|
|
7
6
|
*
|
|
8
|
-
* The registration bean includes convenience methods for creating and working with
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with CarbAgitatorModel instances.
|
|
9
8
|
*
|
|
10
9
|
* ## type
|
|
11
10
|
* The type property is a string that identifies the model type.
|
|
@@ -15,14 +14,14 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
15
14
|
* @example
|
|
16
15
|
* ```typescript
|
|
17
16
|
*
|
|
18
|
-
* @kosDependency({modelType:
|
|
19
|
-
* private
|
|
17
|
+
* @kosDependency({modelType: CarbAgitator.type, id: "carbAgitatorId"})
|
|
18
|
+
* private carbAgitatorModel: CarbAgitatorModel;
|
|
20
19
|
* ```
|
|
21
20
|
*
|
|
22
21
|
*
|
|
23
22
|
* ## factory
|
|
24
23
|
*
|
|
25
|
-
* The factory method creates a factory function that can be used to create new
|
|
24
|
+
* The factory method creates a factory function that can be used to create new CarbAgitatorModel instances.
|
|
26
25
|
*
|
|
27
26
|
|
|
28
27
|
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
@@ -32,7 +31,7 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
32
31
|
*
|
|
33
32
|
* @example
|
|
34
33
|
* ```typescript
|
|
35
|
-
* const model =
|
|
34
|
+
* const model = CarbAgitator.factory("carbAgitatorId")({
|
|
36
35
|
* // Add option data
|
|
37
36
|
* });
|
|
38
37
|
* ```
|
|
@@ -41,16 +40,16 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
41
40
|
*
|
|
42
41
|
* ## predicate
|
|
43
42
|
*
|
|
44
|
-
* [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a
|
|
43
|
+
* [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a CarbAgitatorModel.
|
|
45
44
|
*
|
|
46
45
|
* @example
|
|
47
46
|
* ```typescript
|
|
48
47
|
*
|
|
49
48
|
* const model: IKosDataModel = ...; // some model
|
|
50
49
|
*
|
|
51
|
-
* if (
|
|
52
|
-
* // if the function evaluates to true, the model is narrowed down to
|
|
53
|
-
* // and the compiler will know that the model has the
|
|
50
|
+
* if (CarbAgitator.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to CarbAgitatorModel
|
|
52
|
+
* // and the compiler will know that the model has the CarbAgitatorModel interface
|
|
54
53
|
* model.updateAvailability(false);
|
|
55
54
|
* }
|
|
56
55
|
* ```
|
|
@@ -67,21 +66,19 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
67
66
|
*
|
|
68
67
|
* **registration.ts**
|
|
69
68
|
* ```typescript
|
|
70
|
-
* import {
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* .models()
|
|
77
|
-
* .model(FcmPump);
|
|
69
|
+
* import { CarbAgitator } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...CarbAgitator.registration,
|
|
74
|
+
* };
|
|
78
75
|
* ```
|
|
79
76
|
*
|
|
80
77
|
* ## registration.singleton
|
|
81
78
|
|
|
82
|
-
* The
|
|
79
|
+
* The carbAgitator model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
83
80
|
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
81
|
|
|
85
82
|
* */
|
|
86
|
-
export declare const
|
|
87
|
-
//# sourceMappingURL=
|
|
83
|
+
export declare const CarbAgitator: KosModelRegistrationFactory<CarbAgitatorModel, CarbAgitatorOptions>;
|
|
84
|
+
//# sourceMappingURL=carb-agitator-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carb-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/carb-agitator-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AAEL,eAAO,MAAM,YAAY,qEAMvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { IKosIdentifiable } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
|
|
3
|
+
|
|
1
4
|
export interface CarbAgitatorOptions {
|
|
2
5
|
name: string;
|
|
3
6
|
path: string;
|
|
4
|
-
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface CarbAgitatorModel extends IKosIdentifiable {
|
|
10
|
+
name: string;
|
|
11
|
+
path: string;
|
|
5
12
|
}
|
|
6
13
|
|
|
7
14
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CartridgeAgitatorOptions } from './types';
|
|
2
|
-
import { ExternalFutureInterface, IKosDataModel, IKosIdentifiable,
|
|
2
|
+
import { ExternalFutureInterface, FutureAwareContainer, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
3
|
|
|
4
4
|
export declare const MODEL_TYPE = "cartridge-agitator-model";
|
|
5
5
|
export type CartridgeAgitatorModel = PublicModelInterface<CartridgeAgitatorModelImpl> & ExternalFutureInterface;
|
|
@@ -7,17 +7,20 @@ export declare class CartridgeAgitatorEvents {
|
|
|
7
7
|
static TOPIC_AGITATION_STARTED: string;
|
|
8
8
|
static TOPIC_AGITATION_ENDED: string;
|
|
9
9
|
}
|
|
10
|
-
export interface CartridgeAgitatorModelImpl extends KosFutureAwareFull, KosLoggerAware {
|
|
11
|
-
}
|
|
12
10
|
export declare class CartridgeAgitatorModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
13
11
|
id: string;
|
|
12
|
+
futureHandler: FutureAwareContainer;
|
|
13
|
+
private logger;
|
|
14
|
+
private disposer?;
|
|
14
15
|
private agitating;
|
|
15
16
|
path: string;
|
|
16
17
|
statePath: string;
|
|
17
18
|
name: string;
|
|
18
|
-
constructor(modelId: string, options: CartridgeAgitatorOptions);
|
|
19
|
+
constructor(modelId: string, options: CartridgeAgitatorOptions, context: KosCreationContext);
|
|
19
20
|
get isAgitating(): boolean;
|
|
20
21
|
testAgitate(tracker?: string): Promise<import('@kosdev-code/kos-ui-sdk').FutureResponse>;
|
|
21
|
-
|
|
22
|
+
init(): Promise<void>;
|
|
23
|
+
unload(): void;
|
|
24
|
+
load(): Promise<void>;
|
|
22
25
|
}
|
|
23
26
|
//# sourceMappingURL=cartridge-agitator-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAWjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAChC,oBAAoB,CAAC,0BAA0B,CAAC,GAAG,uBAAuB,CAAC;AAE7E,qBAAa,uBAAuB;IAClC,MAAM,CAAC,uBAAuB,SAAuC;IACrE,MAAM,CAAC,qBAAqB,SAAqC;CAClE;AAED,qBACa,0BACX,YAAW,aAAa,EAAE,gBAAgB;IAE1C,EAAE,EAAE,MAAM,CAAC;IACJ,aAAa,EAAG,oBAAoB,CAAC;IAC5C,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAe;IAEhC,OAAO,CAAC,SAAS,CAAyB;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,kBAAkB;IAY7B,IAAI,WAAW,IAAI,OAAO,CAEzB;IAGK,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAY5B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,MAAM;IAIA,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAoB5B"}
|
|
@@ -9,12 +9,11 @@ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterfa
|
|
|
9
9
|
|
|
10
10
|
export declare const MODEL_TYPE = "freestyle-assembly-model";
|
|
11
11
|
export declare const FEATURE_SUPPORTS_ICE = "iceAgitator";
|
|
12
|
-
export declare const FEATURE_SUPPORTS_CARB = "
|
|
12
|
+
export declare const FEATURE_SUPPORTS_CARB = "carbAgitator";
|
|
13
13
|
export declare const FEATURE_SUPPORTS_REMOTE_TRAYS = "remoteTrays";
|
|
14
14
|
export type FreestyleAssemblyModel = PublicModelInterface<FreestyleAssemblyModelImpl> & AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt>;
|
|
15
15
|
export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosIdentifiable, AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt> {
|
|
16
16
|
id: string;
|
|
17
|
-
private _carbTankModel?;
|
|
18
17
|
private logger;
|
|
19
18
|
private assembly;
|
|
20
19
|
private _remoteTrays;
|
|
@@ -29,7 +28,7 @@ export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosId
|
|
|
29
28
|
get boards(): BoardModel<any>[];
|
|
30
29
|
updateModel(options: AssemblyOptions): void;
|
|
31
30
|
get iceAgitator(): IceAgitatorModel;
|
|
32
|
-
get
|
|
31
|
+
get carbAgitator(): CarbAgitatorModel;
|
|
33
32
|
get cartridgeAgitators(): CartridgeAgitatorContainerModel;
|
|
34
33
|
get defaultCartridgeAgitator(): CartridgeAgitatorModel;
|
|
35
34
|
get cartridgeAgitatorModels(): CartridgeAgitatorModel[];
|
|
@@ -40,6 +39,5 @@ export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosId
|
|
|
40
39
|
get supportsIce(): boolean;
|
|
41
40
|
get supportsCarb(): boolean;
|
|
42
41
|
init(): Promise<void>;
|
|
43
|
-
ready(): Promise<void>;
|
|
44
42
|
}
|
|
45
43
|
//# sourceMappingURL=freestyle-assembly-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,qBAAqB,iBAAiB,CAAC;AACpD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAChC,oBAAoB,CAAC,0BAA0B,CAAC,GAC9C,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC,CAAC;AAEtE,qBAEa,0BACX,YACE,aAAa,EACb,gBAAgB,EAChB,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;IAEnE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,QAAQ,CAGd;IAGF,OAAO,CAAC,YAAY,CAA4B;gBAG9C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,kBAAkB;IAW7B,IAAI,YAAY,IAAI,MAAM,EAAE,CAE3B;IACD,IAAI,WAAW,IAAI,MAAM,EAAE,CAE1B;IACD,IAAI,UAAU,IAAI,WAAW,CAAC,uBAAuB,CAAC,EAAE,CAEvD;IACD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGxE,kBAAkB,CAChB,UAAU,EAAE,MAAM,GACjB,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGzC,IAAI,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAEpD;IACD,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAE9B;IACD,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAG3C,IAAI,WAAW,IAAI,gBAAgB,CAElC;IACD,IAAI,YAAY,IAAI,iBAAiB,CAEpC;IAED,IAAI,kBAAkB,IAAI,+BAA+B,CAExD;IAED,IAAI,wBAAwB,IAAI,sBAAsB,CAErD;IACD,IAAI,uBAAuB,IAAI,sBAAsB,EAAE,CAEtD;IAED,IAAI,qBAAqB,IAAI,OAAO,CAEnC;IAED,IAAI,WAAW,IAAI,wBAAwB,CAE1C;IAED,IAAI,cAAc,IAAI,OAAO,CAI5B;IAID,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IACD,IAAI,WAAW,YAEd;IAED,IAAI,YAAY,YAEf;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -10,14 +10,10 @@ export declare class FreestyleNozzleModelImpl implements IKosDataModel, IKosIden
|
|
|
10
10
|
private nozzleModel;
|
|
11
11
|
private _cupSizes;
|
|
12
12
|
private _nutritionInfo?;
|
|
13
|
+
private _disposer;
|
|
13
14
|
constructor(modelId: string, options: FreestyleNozzleOptions, context: KosCreationContext);
|
|
14
15
|
set cupSizes(cupSizes: number[]);
|
|
15
16
|
get nutritionInfo(): FreestyleNutritionInfoResponse | undefined;
|
|
16
|
-
get selectedPourable(): {
|
|
17
|
-
beverage: import('@kosdev-code/kos-dispense-sdk').AvailabilityModel<any, Record<string, any>> | undefined;
|
|
18
|
-
additional: import('@kosdev-code/kos-dispense-sdk').AvailabilityModel<any, Record<string, any>>[] | undefined;
|
|
19
|
-
};
|
|
20
|
-
handleBeverageSelection(): Promise<void>;
|
|
21
17
|
init(): Promise<void>;
|
|
22
18
|
unload(): void;
|
|
23
19
|
load(): Promise<void>;
|