@kosdev-code/kos-freestyle-sdk 2.0.44 → 2.0.45
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--qB2FP1I.js +237 -0
- package/extension-utils--qB2FP1I.js.map +1 -0
- package/extension-utils-DQSu9dSv.cjs +2 -0
- package/extension-utils-DQSu9dSv.cjs.map +1 -0
- package/index.cjs +1 -1
- package/index.js +43 -28
- package/kos-models.json +180 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +195 -5
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/index.d.ts +4 -2
- package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
- package/models/models/carb-agitator/carb-agitator-model.d.ts +296 -6
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
- 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/services/carb-tank-services.d.ts +29 -0
- package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -0
- package/models/models/carb-agitator/types/index.d.ts +1 -8
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +5 -8
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -1
- package/models/models/cgp-pump/cgp-pump-model.d.ts +24 -0
- package/models/models/cgp-pump/cgp-pump-model.d.ts.map +1 -0
- package/models/models/cgp-pump/index.d.ts +4 -0
- package/models/models/cgp-pump/index.d.ts.map +1 -0
- package/models/models/cgp-pump/types/index.d.ts +5 -0
- package/models/models/fcm-pump/fcm-pump-model.d.ts +28 -0
- package/models/models/fcm-pump/fcm-pump-model.d.ts.map +1 -0
- package/models/models/{carb-agitator/carb-agitator-registration.d.ts → fcm-pump/fcm-pump-registration.d.ts} +23 -20
- package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +1 -0
- package/models/models/fcm-pump/index.d.ts +5 -0
- package/models/models/fcm-pump/index.d.ts.map +1 -0
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts +17 -0
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +1 -0
- package/models/models/fcm-pump/services/index.d.ts +2 -0
- package/models/models/fcm-pump/services/index.d.ts.map +1 -0
- package/models/models/fcm-pump/types/index.d.ts +5 -0
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +4 -2
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +5 -1
- 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/ice-agitator/index.d.ts +1 -2
- package/models/models/ice-agitator/index.d.ts.map +1 -1
- package/models/models/index.d.ts +4 -0
- package/models/models/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/index.d.ts +3 -0
- package/models/models/lfcv-pump/index.d.ts.map +1 -0
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts +21 -0
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +1 -0
- package/models/models/lfcv-pump/types/index.d.ts +5 -0
- package/models/models/remote-tray/remote-tray-container-model.d.ts +5 -14
- package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -1
- package/models/models/spm-pump/index.d.ts +5 -0
- package/models/models/spm-pump/index.d.ts.map +1 -0
- package/models/models/spm-pump/services/index.d.ts +2 -0
- package/models/models/spm-pump/services/index.d.ts.map +1 -0
- package/models/models/spm-pump/services/spm-pump-services.d.ts +7 -0
- package/models/models/spm-pump/services/spm-pump-services.d.ts.map +1 -0
- package/models/models/spm-pump/spm-pump-model.d.ts +26 -0
- package/models/models/spm-pump/spm-pump-model.d.ts.map +1 -0
- package/models/models/{ice-agitator/ice-agitator-registration.d.ts → spm-pump/spm-pump-registration.d.ts} +23 -21
- package/models/models/spm-pump/spm-pump-registration.d.ts.map +1 -0
- package/models/models/spm-pump/types/index.d.ts +5 -0
- package/models/models/types/assembly.d.ts +7 -3
- package/models/models/types/assembly.d.ts.map +1 -1
- package/models/utils/extension-utils.d.ts +3 -0
- package/models/utils/extension-utils.d.ts.map +1 -1
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +2 -7
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
- package/models/utils/extensions/trouble/trouble-utils.d.ts +10 -0
- package/models/utils/extensions/trouble/trouble-utils.d.ts.map +1 -0
- 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 +1 -0
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +3 -0
- package/models/utils/openapi-index.d.ts.map +1 -0
- package/models/utils/services/freestyle/1.6.5/openapi.d.ts +1462 -0
- package/models/utils/services/freestyle/1.6.5/service.d.ts +122 -0
- package/models/utils/services/freestyle/1.6.5/service.d.ts.map +1 -0
- package/models/utils/services/freestyle/1.8.1/openapi.d.ts +1656 -0
- package/models/utils/services/freestyle/1.8.1/service.d.ts +122 -0
- package/models/utils/services/freestyle/1.8.1/service.d.ts.map +1 -0
- package/models/utils/services/freestyle/daily/openapi.d.ts +1937 -0
- package/models/utils/services/freestyle/daily/service.d.ts +122 -0
- package/models/utils/services/freestyle/daily/service.d.ts.map +1 -0
- package/models/utils/services/handle/1.8.1/openapi.d.ts +237 -0
- package/models/utils/services/handle/1.8.1/service.d.ts +122 -0
- package/models/utils/services/handle/1.8.1/service.d.ts.map +1 -0
- package/models/utils/services/handle/daily/openapi.d.ts +420 -0
- package/models/utils/services/handle/daily/service.d.ts +122 -0
- package/models/utils/services/handle/daily/service.d.ts.map +1 -0
- package/models/utils/services-index.d.ts +10 -0
- package/models/utils/services-index.d.ts.map +1 -0
- package/models.cjs +1 -1
- package/models.js +36 -21
- package/package.json +3 -2
- package/service-BuugCicr.js +1907 -0
- package/service-BuugCicr.js.map +1 -0
- package/service-DSV9Dr2d.cjs +2 -0
- package/service-DSV9Dr2d.cjs.map +1 -0
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/{use-nutrition-info-Ca9_UnOV.js → use-nutrition-info-CPEwk_O-.js} +8 -8
- package/{use-nutrition-info-Ca9_UnOV.js.map → use-nutrition-info-CPEwk_O-.js.map} +1 -1
- package/use-nutrition-info-C_myxRvf.cjs +2 -0
- package/{use-nutrition-info-Bb4itG4D.cjs.map → use-nutrition-info-C_myxRvf.cjs.map} +1 -1
- package/extension-utils-COesmx4N.js +0 -201
- package/extension-utils-COesmx4N.js.map +0 -1
- package/extension-utils-yKcm_im8.cjs +0 -2
- package/extension-utils-yKcm_im8.cjs.map +0 -1
- package/freestyle-registration-manager-D57Lznu_.js +0 -1111
- package/freestyle-registration-manager-D57Lznu_.js.map +0 -1
- package/freestyle-registration-manager-Dx8XJMpl.cjs +0 -2
- package/freestyle-registration-manager-Dx8XJMpl.cjs.map +0 -1
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +0 -87
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +0 -1
- package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +0 -1
- package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +0 -1
- package/use-nutrition-info-Bb4itG4D.cjs +0 -2
package/kos-models.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedAt": "2026-04-24T22:12:30.229Z",
|
|
3
|
+
"packageName": "@kosdev-code/kos-freestyle-sdk",
|
|
4
|
+
"models": {
|
|
5
|
+
"test-future-model-model": {
|
|
6
|
+
"modelTypeId": "test-future-model-model",
|
|
7
|
+
"singleton": false,
|
|
8
|
+
"container": false,
|
|
9
|
+
"dependencies": [],
|
|
10
|
+
"children": []
|
|
11
|
+
},
|
|
12
|
+
"remote-tray-model": {
|
|
13
|
+
"modelTypeId": "remote-tray-model",
|
|
14
|
+
"className": "RemoteTrayModelImpl",
|
|
15
|
+
"singleton": false,
|
|
16
|
+
"container": false,
|
|
17
|
+
"sourcePath": "src/models/models/remote-tray/remote-tray-model.ts",
|
|
18
|
+
"dependencies": [],
|
|
19
|
+
"children": []
|
|
20
|
+
},
|
|
21
|
+
"remote-tray-container-model": {
|
|
22
|
+
"modelTypeId": "remote-tray-container-model",
|
|
23
|
+
"className": "RemoteTrayContainerModelImpl",
|
|
24
|
+
"singleton": true,
|
|
25
|
+
"container": true,
|
|
26
|
+
"sourcePath": "src/models/models/remote-tray/remote-tray-container-model.ts",
|
|
27
|
+
"dependencies": [],
|
|
28
|
+
"children": [
|
|
29
|
+
{
|
|
30
|
+
"propertyName": "container",
|
|
31
|
+
"modelType": "remote-tray-model"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"carb-agitator-model": {
|
|
36
|
+
"modelTypeId": "carb-agitator-model",
|
|
37
|
+
"className": "CarbAgitatorModelImpl",
|
|
38
|
+
"singleton": false,
|
|
39
|
+
"container": false,
|
|
40
|
+
"sourcePath": "src/models/models/carb-agitator/carb-agitator-model.ts",
|
|
41
|
+
"dependencies": [],
|
|
42
|
+
"children": [],
|
|
43
|
+
"companion": {
|
|
44
|
+
"mode": "composition",
|
|
45
|
+
"parentProperty": "companionParent",
|
|
46
|
+
"lifecycle": "load"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"agitation-required-trouble-model": {
|
|
50
|
+
"modelTypeId": "agitation-required-trouble-model",
|
|
51
|
+
"className": "AgitationRequiredTroubleModelImpl",
|
|
52
|
+
"singleton": false,
|
|
53
|
+
"container": false,
|
|
54
|
+
"sourcePath": "src/models/models/agitation-required-trouble/agitation-required-trouble-model.ts",
|
|
55
|
+
"dependencies": [],
|
|
56
|
+
"children": [],
|
|
57
|
+
"companion": {
|
|
58
|
+
"mode": "composition",
|
|
59
|
+
"parentProperty": "trouble"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"spm-pump-model": {
|
|
63
|
+
"modelTypeId": "spm-pump-model",
|
|
64
|
+
"className": "SpmPumpModelImpl",
|
|
65
|
+
"singleton": false,
|
|
66
|
+
"container": false,
|
|
67
|
+
"sourcePath": "src/models/models/spm-pump/spm-pump-model.ts",
|
|
68
|
+
"dependencies": [],
|
|
69
|
+
"children": []
|
|
70
|
+
},
|
|
71
|
+
"freestyle-holder-model": {
|
|
72
|
+
"modelTypeId": "freestyle-holder-model",
|
|
73
|
+
"className": "FreestyleHolderModelImpl",
|
|
74
|
+
"singleton": false,
|
|
75
|
+
"container": false,
|
|
76
|
+
"sourcePath": "src/models/models/freestyle-holder/freestyle-holder-model.ts",
|
|
77
|
+
"dependencies": [],
|
|
78
|
+
"children": []
|
|
79
|
+
},
|
|
80
|
+
"fcm-pump-model": {
|
|
81
|
+
"modelTypeId": "fcm-pump-model",
|
|
82
|
+
"className": "FcmPumpModelImpl",
|
|
83
|
+
"singleton": false,
|
|
84
|
+
"container": false,
|
|
85
|
+
"sourcePath": "src/models/models/fcm-pump/fcm-pump-model.ts",
|
|
86
|
+
"dependencies": [],
|
|
87
|
+
"children": []
|
|
88
|
+
},
|
|
89
|
+
"cartridge-agitator-container-model": {
|
|
90
|
+
"modelTypeId": "cartridge-agitator-container-model",
|
|
91
|
+
"className": "CartridgeAgitatorContainerModelImpl",
|
|
92
|
+
"singleton": true,
|
|
93
|
+
"container": false,
|
|
94
|
+
"sourcePath": "src/models/models/cartridge-agitator/cartridge-agitator-container-model.ts",
|
|
95
|
+
"dependencies": [],
|
|
96
|
+
"children": [
|
|
97
|
+
{
|
|
98
|
+
"propertyName": "_models",
|
|
99
|
+
"modelType": "cartridge-agitator-model"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"cartridge-agitator-model": {
|
|
104
|
+
"modelTypeId": "cartridge-agitator-model",
|
|
105
|
+
"className": "CartridgeAgitatorModelImpl",
|
|
106
|
+
"singleton": false,
|
|
107
|
+
"container": false,
|
|
108
|
+
"sourcePath": "src/models/models/cartridge-agitator/cartridge-agitator-model.ts",
|
|
109
|
+
"dependencies": [],
|
|
110
|
+
"children": []
|
|
111
|
+
},
|
|
112
|
+
"freestyle-nozzle-model": {
|
|
113
|
+
"modelTypeId": "freestyle-nozzle-model",
|
|
114
|
+
"className": "FreestyleNozzleModelImpl",
|
|
115
|
+
"singleton": false,
|
|
116
|
+
"container": false,
|
|
117
|
+
"sourcePath": "src/models/models/freestyle-nozzle/freestyle-nozzle-model.ts",
|
|
118
|
+
"dependencies": [],
|
|
119
|
+
"children": []
|
|
120
|
+
},
|
|
121
|
+
"ice-agitator-model": {
|
|
122
|
+
"modelTypeId": "ice-agitator-model",
|
|
123
|
+
"className": "IceAgitatorModelImpl",
|
|
124
|
+
"singleton": false,
|
|
125
|
+
"container": false,
|
|
126
|
+
"sourcePath": "src/models/models/ice-agitator/ice-agitator-model.ts",
|
|
127
|
+
"dependencies": [],
|
|
128
|
+
"children": []
|
|
129
|
+
},
|
|
130
|
+
"freestyle-pump-model": {
|
|
131
|
+
"modelTypeId": "freestyle-pump-model",
|
|
132
|
+
"className": "FreestylePumpModelImpl",
|
|
133
|
+
"singleton": false,
|
|
134
|
+
"container": false,
|
|
135
|
+
"sourcePath": "src/models/models/freestyle-pump/freestyle-pump-model.ts",
|
|
136
|
+
"dependencies": [],
|
|
137
|
+
"children": []
|
|
138
|
+
},
|
|
139
|
+
"freestyle-assembly-model": {
|
|
140
|
+
"modelTypeId": "freestyle-assembly-model",
|
|
141
|
+
"className": "FreestyleAssemblyModelImpl",
|
|
142
|
+
"singleton": true,
|
|
143
|
+
"container": false,
|
|
144
|
+
"sourcePath": "src/models/models/freestyle-assembly/freestyle-assembly-model.ts",
|
|
145
|
+
"dependencies": [],
|
|
146
|
+
"children": [
|
|
147
|
+
{
|
|
148
|
+
"propertyName": "_remoteTrays",
|
|
149
|
+
"modelType": "remote-tray-container-model"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"cgp-pump-model": {
|
|
154
|
+
"modelTypeId": "cgp-pump-model",
|
|
155
|
+
"className": "CgpPumpModelImpl",
|
|
156
|
+
"singleton": false,
|
|
157
|
+
"container": false,
|
|
158
|
+
"sourcePath": "src/models/models/cgp-pump/cgp-pump-model.ts",
|
|
159
|
+
"dependencies": [],
|
|
160
|
+
"children": [],
|
|
161
|
+
"companion": {
|
|
162
|
+
"mode": "composition",
|
|
163
|
+
"parentProperty": "companionParent"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"lfcv-pump-model": {
|
|
167
|
+
"modelTypeId": "lfcv-pump-model",
|
|
168
|
+
"className": "LfcvPumpModelImpl",
|
|
169
|
+
"singleton": false,
|
|
170
|
+
"container": false,
|
|
171
|
+
"sourcePath": "src/models/models/lfcv-pump/lfcv-pump-model.ts",
|
|
172
|
+
"dependencies": [],
|
|
173
|
+
"children": [],
|
|
174
|
+
"companion": {
|
|
175
|
+
"mode": "composition",
|
|
176
|
+
"parentProperty": "pumpModel"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -1,25 +1,215 @@
|
|
|
1
1
|
import { AgitationRequiredTroubleOptions } from './types';
|
|
2
|
-
import { DeferAware, FutureResponse, IKosDataModel, IKosIdentifiable, KosConfigProperty,
|
|
3
|
-
import { HolderModel } from '@kosdev-code/kos-dispense-sdk';
|
|
2
|
+
import { DeferAware, FutureResponse, IKosDataModel, IKosIdentifiable, KosCompanionComposition, KosConfigProperty, KosLoggerAware, KosModelRegistrationFactory, PublicModelInterface, ResolveAware, TroubleModel } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { HolderModel, HolderTroubleData } from '@kosdev-code/kos-dispense-sdk';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Agitation required trouble model type identifier.
|
|
7
|
+
*
|
|
8
|
+
* Used for model registration and type predicates when working with
|
|
9
|
+
* agitation-related troubles in the KOS framework.
|
|
10
|
+
*
|
|
11
|
+
* @category Trouble Models
|
|
12
|
+
*/
|
|
5
13
|
export declare const MODEL_TYPE = "agitation-required-trouble-model";
|
|
14
|
+
/**
|
|
15
|
+
* Public interface for the AgitationRequiredTrouble model.
|
|
16
|
+
*
|
|
17
|
+
* This model manages troubles related to insufficient agitation in beverage
|
|
18
|
+
* holders, providing resolution capabilities and deferral logic based on
|
|
19
|
+
* configuration properties.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link AgitationRequiredTroubleModelImpl} for the implementation
|
|
22
|
+
* @category Trouble Models
|
|
23
|
+
*/
|
|
6
24
|
export type AgitationRequiredTroubleModel = PublicModelInterface<AgitationRequiredTroubleModelImpl>;
|
|
25
|
+
/**
|
|
26
|
+
* Factory function to determine if a trouble requires agitation handling.
|
|
27
|
+
*
|
|
28
|
+
* Examines the trouble model's data to determine if it represents an
|
|
29
|
+
* insufficient agitation condition that requires a dedicated agitation
|
|
30
|
+
* trouble model.
|
|
31
|
+
*
|
|
32
|
+
* @param troubleModel - The trouble model to examine
|
|
33
|
+
* @returns The agitation model type if agitation is required, undefined otherwise
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const modelType = agitationModelFactory(troubleModel);
|
|
38
|
+
* if (modelType) {
|
|
39
|
+
* // Create agitation trouble model
|
|
40
|
+
* const agitationModel = AgitationRequiredTrouble
|
|
41
|
+
* .instance(troubleModel.id)
|
|
42
|
+
* .options({ companionParent: troubleModel })
|
|
43
|
+
* .build();
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @category Trouble Models
|
|
48
|
+
*/
|
|
7
49
|
export declare const agitationModelFactory: (troubleModel: TroubleModel) => "agitation-required-trouble-model" | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Trouble type identifier for insufficient agitation troubles.
|
|
52
|
+
*
|
|
53
|
+
* This constant is used to filter and identify agitation-related troubles
|
|
54
|
+
* in the trouble system.
|
|
55
|
+
*
|
|
56
|
+
* @category Trouble Models
|
|
57
|
+
*/
|
|
8
58
|
export declare const AGITATION_REQUIRED_TROUBLE = "InsufficientAgitationTrouble";
|
|
59
|
+
export interface AgitationRequiredTroubleModelImpl extends KosLoggerAware, KosCompanionComposition<TroubleModel<HolderTroubleData>> {
|
|
60
|
+
/** Parent trouble model (set by @kosCompanion decorator via parentProperty: "trouble") */
|
|
61
|
+
trouble: TroubleModel<HolderTroubleData>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Companion model for managing agitation-required troubles in KOS beverage dispensers.
|
|
65
|
+
*
|
|
66
|
+
* This model represents troubles caused by insufficient agitation in ingredient holders,
|
|
67
|
+
* typically occurring when carbonation levels are too low or agitation mechanisms fail.
|
|
68
|
+
* It provides resolution capabilities and deferral logic to prevent pouring until
|
|
69
|
+
* agitation conditions are met.
|
|
70
|
+
*
|
|
71
|
+
* The model integrates with the KOS configuration system to respect the
|
|
72
|
+
* `ncui.agitateBeforePour` setting, allowing operators to control whether
|
|
73
|
+
* pouring should wait for agitation to complete.
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* This is a companion model to the parent trouble model, created via the
|
|
77
|
+
* {@link agitationModelFactory} when a trouble's `agitationRequired` flag is set.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* // Factory-based creation (typical usage)
|
|
82
|
+
* const agitationTrouble = AgitationRequiredTrouble
|
|
83
|
+
* .instance(troubleId)
|
|
84
|
+
* .options({ companionParent: parentTroubleModel })
|
|
85
|
+
* .build();
|
|
86
|
+
*
|
|
87
|
+
* // Check if pouring should be deferred
|
|
88
|
+
* if (agitationTrouble.shouldDefer) {
|
|
89
|
+
* await agitationTrouble.defer();
|
|
90
|
+
* }
|
|
91
|
+
*
|
|
92
|
+
* // Resolve the trouble
|
|
93
|
+
* await agitationTrouble.resolve();
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* @category Trouble Models
|
|
97
|
+
* @author Mark Pomerant (mark@matrica.ca)
|
|
98
|
+
* @version 2.1.27
|
|
99
|
+
*/
|
|
9
100
|
export declare class AgitationRequiredTroubleModelImpl implements IKosDataModel, IKosIdentifiable, ResolveAware, DeferAware {
|
|
101
|
+
/**
|
|
102
|
+
* Registration factory for creating AgitationRequiredTrouble model instances.
|
|
103
|
+
*
|
|
104
|
+
* Automatically injected by the `@kosModel` decorator. Use the exported
|
|
105
|
+
* {@link AgitationRequiredTrouble} constant instead of accessing this directly.
|
|
106
|
+
*
|
|
107
|
+
* @see {@link AgitationRequiredTrouble}
|
|
108
|
+
*/
|
|
109
|
+
static Registration: KosModelRegistrationFactory<AgitationRequiredTroubleModel, AgitationRequiredTroubleOptions>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique identifier for this model instance.
|
|
112
|
+
*/
|
|
10
113
|
id: string;
|
|
11
|
-
private logger;
|
|
12
|
-
private trouble;
|
|
13
114
|
private _deferred;
|
|
14
115
|
private _holdersLoaded;
|
|
116
|
+
/**
|
|
117
|
+
* Configuration property controlling whether to wait for agitation before pouring.
|
|
118
|
+
*
|
|
119
|
+
* When enabled, pouring will be deferred if the holder has insufficient agitation troubles.
|
|
120
|
+
* This ensures beverage quality by preventing pours with inadequate carbonation or mixing.
|
|
121
|
+
*/
|
|
15
122
|
agitateBeforePour: KosConfigProperty<boolean>;
|
|
16
|
-
|
|
123
|
+
/**
|
|
124
|
+
* Creates a new AgitationRequiredTrouble model instance.
|
|
125
|
+
*
|
|
126
|
+
* @param modelId - Unique identifier for this model instance (typically matches parent trouble ID)
|
|
127
|
+
*/
|
|
128
|
+
constructor(modelId: string);
|
|
129
|
+
/**
|
|
130
|
+
* Resolves the agitation trouble by delegating to the parent trouble model.
|
|
131
|
+
*
|
|
132
|
+
* Resolution typically involves completing the agitation process and clearing
|
|
133
|
+
* the trouble state once carbonation or mixing levels are acceptable.
|
|
134
|
+
*
|
|
135
|
+
* @returns Promise resolving to the future response from the parent trouble's resolution
|
|
136
|
+
*/
|
|
17
137
|
resolve(): Promise<FutureResponse | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* Gets the holder model associated with this agitation trouble.
|
|
140
|
+
*
|
|
141
|
+
* The holder is the physical container (cartridge holder, ingredient holder, etc.)
|
|
142
|
+
* that requires agitation. Returns undefined if the holder model hasn't been
|
|
143
|
+
* loaded yet through the Assembly model initialization.
|
|
144
|
+
*
|
|
145
|
+
* @returns The holder model or undefined if not yet loaded
|
|
146
|
+
*/
|
|
18
147
|
get holder(): HolderModel<any> | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Handles Assembly model events to track when holder models become available.
|
|
150
|
+
*
|
|
151
|
+
* This topic handler listens for Assembly model lifecycle events to determine
|
|
152
|
+
* when holder models have been fully loaded and are accessible.
|
|
153
|
+
*
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
19
156
|
updateHolder(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Determines if trouble resolution should be deferred until agitation completes.
|
|
159
|
+
*
|
|
160
|
+
* Trouble resolution is deferred when:
|
|
161
|
+
* 1. The holder has active insufficient agitation troubles
|
|
162
|
+
* 2. The `agitateBeforePour` configuration is enabled
|
|
163
|
+
*
|
|
164
|
+
* This ensures that operations requiring agitation (prime, purge, or other
|
|
165
|
+
* holder-related troubles) wait for proper carbonation or mixing before
|
|
166
|
+
* being marked as resolved.
|
|
167
|
+
*
|
|
168
|
+
* @returns true if trouble resolution should wait for agitation to complete
|
|
169
|
+
*/
|
|
20
170
|
get shouldDefer(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Gets the current deferral state of this trouble.
|
|
173
|
+
*
|
|
174
|
+
* @returns true if this trouble resolution is currently deferred
|
|
175
|
+
*/
|
|
21
176
|
get deferred(): boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Marks this trouble as deferred, preventing immediate resolution.
|
|
179
|
+
*
|
|
180
|
+
* Called by the trouble system to indicate that trouble resolution
|
|
181
|
+
* should wait for agitation to complete before being marked as resolved.
|
|
182
|
+
*/
|
|
22
183
|
defer(): void;
|
|
184
|
+
/**
|
|
185
|
+
* Clears the deferral state, allowing trouble resolution to proceed.
|
|
186
|
+
*
|
|
187
|
+
* Typically called after agitation has completed and the trouble can
|
|
188
|
+
* now be safely resolved.
|
|
189
|
+
*/
|
|
23
190
|
clearDefer(): void;
|
|
24
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Registration factory for creating AgitationRequiredTrouble model instances.
|
|
194
|
+
*
|
|
195
|
+
* Use this constant to create new instances of the agitation trouble model
|
|
196
|
+
* using the fluent factory pattern.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* // Create a new agitation trouble model
|
|
201
|
+
* const agitationTrouble = AgitationRequiredTrouble
|
|
202
|
+
* .instance(troubleId)
|
|
203
|
+
* .options({ companionParent: parentTroubleModel })
|
|
204
|
+
* .build();
|
|
205
|
+
*
|
|
206
|
+
* // Check deferral status
|
|
207
|
+
* if (agitationTrouble.shouldDefer) {
|
|
208
|
+
* console.log('Pouring deferred due to agitation');
|
|
209
|
+
* }
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* @category Trouble Models
|
|
213
|
+
*/
|
|
214
|
+
export declare const AgitationRequiredTrouble: KosModelRegistrationFactory<AgitationRequiredTroubleModel, AgitationRequiredTroubleOptions>;
|
|
25
215
|
//# sourceMappingURL=agitation-required-trouble-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agitation-required-trouble-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/agitation-required-trouble/agitation-required-trouble-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,
|
|
1
|
+
{"version":3,"file":"agitation-required-trouble-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/agitation-required-trouble/agitation-required-trouble-model.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAEL,WAAW,EACX,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,2BAA2B,EAC3B,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACb,MAAM,yBAAyB,CAAC;AAWjC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,qCAAqC,CAAC;AAE7D;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GACvC,oBAAoB,CAAC,iCAAiC,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qBAAqB,iBAAkB,YAAY,mDAK/D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,iCAAiC,CAAC;AAEzE,MAAM,WAAW,iCACf,SAAQ,cAAc,EACpB,uBAAuB,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAC1D,0FAA0F;IAC1F,OAAO,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAGa,iCACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU;IAEpE;;;;;;;OAOG;IACH,MAAM,CAAC,YAAY,EAAE,2BAA2B,CAC9C,6BAA6B,EAC7B,+BAA+B,CAChC,CAAC;IAEF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,cAAc,CAAS;IAE/B;;;;;OAKG;IAKH,iBAAiB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;OAIG;gBACS,OAAO,EAAE,MAAM;IAK3B;;;;;;;OAOG;IACG,OAAO,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAIpD;;;;;;;;OAQG;IAEH,IAAI,MAAM,iCAYT;IAED;;;;;;;OAOG;IAKH,YAAY;IAUZ;;;;;;;;;;;;OAYG;IACH,IAAI,WAAW,YASd;IAED;;;;OAIG;IACH,IAAI,QAAQ,YAEX;IAED;;;;;OAKG;IACH,KAAK;IAIL;;;;;OAKG;IACH,UAAU;CAGX;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,wBAAwB,6FACW,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* (C) Copyright 2024, TCCC, All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
export { AGITATION_REQUIRED_TROUBLE, AgitationRequiredTrouble, type AgitationRequiredTroubleModel, } from './agitation-required-trouble-model';
|
|
3
5
|
export type * from './types';
|
|
4
6
|
//# 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,OAAO,EACL,0BAA0B,EAC1B,KAAK,6BAA6B,GACnC,MAAM,oCAAoC,CAAC;AAC5C,
|
|
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;;GAEG;AAEH,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,KAAK,6BAA6B,GACnC,MAAM,oCAAoC,CAAC;AAC5C,mBAAmB,SAAS,CAAC"}
|