@kosdev-code/kos-freestyle-sdk 0.1.0-dev.5880 → 0.1.0-next.1000
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 +344 -0
- package/extension-utils-BLjVB2bu.cjs.map +1 -0
- package/extension-utils-CV3CeJXI.js +345 -0
- package/extension-utils-CV3CeJXI.js.map +1 -0
- package/index.cjs +42 -1
- package/index.cjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +40 -48
- package/index.js.map +1 -1
- package/models/constants/index.d.ts.map +1 -1
- package/models/index.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +14 -80
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/types/index.d.ts +1 -3
- package/models/models/carb-agitator/carb-agitator-model.d.ts +4 -24
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
- package/models/models/carb-agitator/index.d.ts.map +1 -1
- package/models/models/carb-agitator/services/carb-tank-services.d.ts +1 -15
- package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts +2 -3
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts +12 -77
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +1 -2
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts +12 -79
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts.map +1 -1
- package/models/models/cartridge-agitator/index.d.ts.map +1 -1
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts +0 -1
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts.map +1 -1
- package/models/models/cgp-pump/cgp-pump-model.d.ts +3 -4
- package/models/models/cgp-pump/cgp-pump-model.d.ts.map +1 -1
- package/models/models/cgp-pump/index.d.ts.map +1 -1
- package/models/models/cgp-pump/types/index.d.ts +1 -3
- package/models/models/fcm-pump/fcm-pump-model.d.ts +7 -4
- package/models/models/fcm-pump/fcm-pump-model.d.ts.map +1 -1
- package/models/models/fcm-pump/fcm-pump-registration.d.ts +12 -77
- package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +1 -1
- package/models/models/fcm-pump/index.d.ts.map +1 -1
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts +0 -1
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +1 -1
- package/models/models/fcm-pump/services/index.d.ts.map +1 -1
- package/models/models/fcm-pump/types/index.d.ts +1 -3
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +7 -8
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts +12 -79
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts.map +1 -1
- package/models/models/freestyle-assembly/index.d.ts.map +1 -1
- package/models/models/freestyle-assembly/types/index.d.ts +1 -3
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts +2 -3
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts.map +1 -1
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts +12 -77
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts.map +1 -1
- package/models/models/freestyle-holder/index.d.ts.map +1 -1
- package/models/models/freestyle-holder/types/index.d.ts +1 -3
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +2 -3
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts +12 -77
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/index.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/services/index.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/types/index.d.ts +1 -3
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts +2 -3
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts.map +1 -1
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts +12 -77
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts.map +1 -1
- package/models/models/freestyle-pump/index.d.ts.map +1 -1
- package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts.map +1 -1
- package/models/models/freestyle-pump/services/index.d.ts.map +1 -1
- package/models/models/freestyle-pump/types/index.d.ts +1 -3
- package/models/models/ice-agitator/ice-agitator-model.d.ts +2 -3
- package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -1
- package/models/models/ice-agitator/index.d.ts.map +1 -1
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts +0 -1
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts.map +1 -1
- package/models/models/ice-agitator/services/index.d.ts.map +1 -1
- package/models/models/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts +8 -5
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +1 -1
- package/models/models/lfcv-pump/types/index.d.ts +1 -3
- package/models/models/remote-tray/index.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-container-model.d.ts +1 -2
- package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-container-registration.d.ts +12 -77
- package/models/models/remote-tray/remote-tray-container-registration.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-model.d.ts +11 -93
- package/models/models/remote-tray/remote-tray-model.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-registration.d.ts +12 -80
- package/models/models/remote-tray/remote-tray-registration.d.ts.map +1 -1
- package/models/models/spm-pump/index.d.ts.map +1 -1
- package/models/models/spm-pump/services/index.d.ts.map +1 -1
- package/models/models/spm-pump/services/spm-pump-services.d.ts +0 -1
- package/models/models/spm-pump/services/spm-pump-services.d.ts.map +1 -1
- package/models/models/spm-pump/spm-pump-model.d.ts +7 -4
- package/models/models/spm-pump/spm-pump-model.d.ts.map +1 -1
- package/models/models/spm-pump/spm-pump-registration.d.ts +12 -77
- package/models/models/spm-pump/spm-pump-registration.d.ts.map +1 -1
- package/models/models/spm-pump/types/index.d.ts +1 -3
- package/models/models/types/assembly.d.ts +3 -4
- package/models/models/types/assembly.d.ts.map +1 -1
- package/models/models/types/ingredients.d.ts +0 -1
- package/models/models/types/ingredients.d.ts.map +1 -1
- package/models/models/types/pumps.d.ts +0 -1
- package/models/models/types/pumps.d.ts.map +1 -1
- package/models/utils/extension-utils.d.ts +2 -3
- package/models/utils/extension-utils.d.ts.map +1 -1
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +2 -3
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
- package/models/utils/extensions/assembly/types.d.ts +6 -90
- package/models/utils/extensions/assembly/types.d.ts.map +1 -1
- package/models/utils/extensions/availability/freestyle-loader.d.ts +1 -2
- package/models/utils/extensions/availability/freestyle-loader.d.ts.map +1 -1
- package/models/utils/extensions/availability/freestyle-mapper.d.ts +2 -3
- package/models/utils/extensions/availability/freestyle-mapper.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/assets.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/assets.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/beverages.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/beverages.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/brands.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/brands.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/copy-input.d.ts +0 -1
- package/models/utils/extensions/availability/middleware/copy-input.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/flavors.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/flavors.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/nutrition.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/nutrition.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/related-brands.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/related-brands.d.ts.map +1 -1
- package/models/utils/extensions/availability/types.d.ts.map +1 -1
- package/models/utils/extensions/availability/util/locate-brand.d.ts.map +1 -1
- package/models/utils/extensions/availability/util/process-related-brand.d.ts +0 -1
- package/models/utils/extensions/availability/util/process-related-brand.d.ts.map +1 -1
- package/models/utils/extensions/ingredient/index.d.ts.map +1 -1
- package/models/utils/extensions/ingredient/model-extension.d.ts +1 -2
- package/models/utils/extensions/ingredient/model-extension.d.ts.map +1 -1
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts +0 -1
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts.map +1 -1
- package/models/utils/extensions/trouble/trouble-utils.d.ts +0 -1
- package/models/utils/extensions/trouble/trouble-utils.d.ts.map +1 -1
- package/models/utils/freestyle-registration-manager.d.ts +22 -13
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +2 -2
- package/models/utils/openapi-index.d.ts.map +1 -1
- package/models/utils/services/freestyle/1.6.5/service.d.ts +34 -35
- package/models/utils/services/freestyle/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/freestyle/1.8.1/service.d.ts +34 -35
- package/models/utils/services/freestyle/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/freestyle/daily/openapi.d.ts +477 -475
- package/models/utils/services/freestyle/daily/service.d.ts +127 -37
- package/models/utils/services/freestyle/daily/service.d.ts.map +1 -1
- package/models/utils/services/handle/1.8.1/service.d.ts +34 -35
- package/models/utils/services/handle/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/handle/daily/openapi.d.ts +102 -110
- package/models/utils/services/handle/daily/service.d.ts +128 -38
- package/models/utils/services/handle/daily/service.d.ts.map +1 -1
- package/models/utils/services-index.d.ts +2 -6
- package/models/utils/services-index.d.ts.map +1 -1
- package/models.cjs +34 -1
- package/models.cjs.map +1 -1
- package/models.d.ts +1 -0
- package/models.js +31 -37
- package/models.js.map +1 -1
- package/package.json +9 -10
- package/service-Dfj0KrIU.cjs +2323 -0
- package/service-Dfj0KrIU.cjs.map +1 -0
- package/service-VBsCe4jt.js +2324 -0
- package/service-VBsCe4jt.js.map +1 -0
- package/ui/contexts/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-assembly/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts +0 -1
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts.map +1 -1
- package/ui/hooks/freestyle-nozzle/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts +0 -1
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/index.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts +1 -2
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts +0 -1
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts.map +1 -1
- package/ui/hooks/index.d.ts.map +1 -1
- package/ui/hooks/nutrition/index.d.ts.map +1 -1
- package/ui/hooks/nutrition/use-nutrition-info.d.ts +0 -1
- package/ui/hooks/nutrition/use-nutrition-info.d.ts.map +1 -1
- package/ui/index.d.ts.map +1 -1
- package/ui.cjs +8 -1
- package/ui.cjs.map +1 -1
- package/ui.d.ts +1 -0
- package/ui.js +6 -11
- package/ui.js.map +1 -1
- package/use-nutrition-info-6ijRu88p.cjs +67 -0
- package/use-nutrition-info-6ijRu88p.cjs.map +1 -0
- package/use-nutrition-info-Rc_SHgBZ.js +68 -0
- package/use-nutrition-info-Rc_SHgBZ.js.map +1 -0
- package/extension-utils-BmYlSFBk.js +0 -237
- package/extension-utils-BmYlSFBk.js.map +0 -1
- package/extension-utils-CfoCVS2Q.cjs +0 -2
- package/extension-utils-CfoCVS2Q.cjs.map +0 -1
- package/kos-models.json +0 -180
- package/service-CWOr4GoM.js +0 -1909
- package/service-CWOr4GoM.js.map +0 -1
- package/service-DSYXBBUw.cjs +0 -2
- package/service-DSYXBBUw.cjs.map +0 -1
- package/use-nutrition-info-C-xQQgQc.js +0 -52
- package/use-nutrition-info-C-xQQgQc.js.map +0 -1
- package/use-nutrition-info-CkwUK6FN.cjs +0 -2
- package/use-nutrition-info-CkwUK6FN.cjs.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AgitationRequiredTroubleOptions } from './types';
|
|
2
|
-
import { DeferAware, FutureResponse, IKosDataModel, IKosIdentifiable, KosCompanionComposition, KosConfigProperty, KosLoggerAware, KosModelRegistrationFactory, PublicModelInterface, ResolveAware, TroubleModel } from '@kosdev-code/kos-ui-sdk';
|
|
3
1
|
import { HolderModel, HolderTroubleData } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
-
|
|
2
|
+
import { DeferAware, FutureResponse, IKosDataModel, IKosIdentifiable, KosCompanionComposition, KosConfigProperty, KosLoggerAware, KosModelRegistrationFactory, PublicModelInterface, ResolveAware, TroubleModel } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { AgitationRequiredTroubleOptions } from './types';
|
|
5
4
|
/**
|
|
6
5
|
* Agitation required trouble model type identifier.
|
|
7
6
|
*
|
|
@@ -23,27 +22,13 @@ export declare const MODEL_TYPE = "agitation-required-trouble-model";
|
|
|
23
22
|
*/
|
|
24
23
|
export type AgitationRequiredTroubleModel = PublicModelInterface<AgitationRequiredTroubleModelImpl>;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* insufficient agitation condition that requires a dedicated agitation
|
|
30
|
-
* trouble model.
|
|
25
|
+
* Companion factory for trouble models. Returns the agitation trouble model type when the trouble's
|
|
26
|
+
* data has `agitationRequired` set, so the framework creates an {@link AgitationRequiredTroubleModel}
|
|
27
|
+
* companion for it.
|
|
31
28
|
*
|
|
32
29
|
* @param troubleModel - The trouble model to examine
|
|
33
30
|
* @returns The agitation model type if agitation is required, undefined otherwise
|
|
34
31
|
*
|
|
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
32
|
* @category Trouble Models
|
|
48
33
|
*/
|
|
49
34
|
export declare const agitationModelFactory: (troubleModel: TroubleModel) => "agitation-required-trouble-model" | undefined;
|
|
@@ -61,37 +46,13 @@ export interface AgitationRequiredTroubleModelImpl extends KosLoggerAware, KosCo
|
|
|
61
46
|
trouble: TroubleModel<HolderTroubleData>;
|
|
62
47
|
}
|
|
63
48
|
/**
|
|
64
|
-
* Companion model for
|
|
65
|
-
*
|
|
66
|
-
*
|
|
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.
|
|
49
|
+
* Companion model for troubles that need the holder to be agitated first, typically because
|
|
50
|
+
* carbonation is too low. It resolves through the parent trouble and defers resolution while the
|
|
51
|
+
* holder has insufficient-agitation troubles and the `ncui.agitateBeforePour` setting is enabled.
|
|
74
52
|
*
|
|
75
53
|
* @remarks
|
|
76
|
-
*
|
|
77
|
-
*
|
|
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
|
-
* ```
|
|
54
|
+
* Created by the framework through {@link agitationModelFactory} when a trouble's
|
|
55
|
+
* `agitationRequired` flag is set.
|
|
95
56
|
*
|
|
96
57
|
* @category Trouble Models
|
|
97
58
|
* @author Mark Pomerant (mark@matrica.ca)
|
|
@@ -127,10 +88,7 @@ export declare class AgitationRequiredTroubleModelImpl implements IKosDataModel,
|
|
|
127
88
|
*/
|
|
128
89
|
constructor(modelId: string);
|
|
129
90
|
/**
|
|
130
|
-
* Resolves the
|
|
131
|
-
*
|
|
132
|
-
* Resolution typically involves completing the agitation process and clearing
|
|
133
|
-
* the trouble state once carbonation or mixing levels are acceptable.
|
|
91
|
+
* Resolves the trouble through the parent trouble model.
|
|
134
92
|
*
|
|
135
93
|
* @returns Promise resolving to the future response from the parent trouble's resolution
|
|
136
94
|
*/
|
|
@@ -155,15 +113,8 @@ export declare class AgitationRequiredTroubleModelImpl implements IKosDataModel,
|
|
|
155
113
|
*/
|
|
156
114
|
updateHolder(): void;
|
|
157
115
|
/**
|
|
158
|
-
*
|
|
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.
|
|
116
|
+
* Whether trouble resolution should wait for agitation: true when the holder has insufficient
|
|
117
|
+
* agitation troubles and `agitateBeforePour` is enabled, or when the holder is not loaded yet.
|
|
167
118
|
*
|
|
168
119
|
* @returns true if trouble resolution should wait for agitation to complete
|
|
169
120
|
*/
|
|
@@ -190,24 +141,7 @@ export declare class AgitationRequiredTroubleModelImpl implements IKosDataModel,
|
|
|
190
141
|
clearDefer(): void;
|
|
191
142
|
}
|
|
192
143
|
/**
|
|
193
|
-
* Registration factory for
|
|
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
|
-
* ```
|
|
144
|
+
* Registration factory for the AgitationRequiredTrouble model.
|
|
211
145
|
*
|
|
212
146
|
* @category Trouble Models
|
|
213
147
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agitation-required-trouble-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"agitation-required-trouble-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,cAAc,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;;;;;;;;;;;;GAYG;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;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAIpD;;;;;;;;OAQG;IAEH,IAAI,MAAM,iCAYT;IAED;;;;;;;OAOG;IAKH,YAAY;IAUZ;;;;;OAKG;IACH,IAAI,WAAW,YASd;IAED;;;;OAIG;IACH,IAAI,QAAQ,YAEX;IAED;;;;;OAKG;IACH,KAAK;IAIL;;;;;OAKG;IACH,UAAU;CAGX;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,6FACW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/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"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IKosCompanionOptions, TroubleModel, TroubleOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { HolderTroubleData } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions, TroubleModel, TroubleOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type AgitationRequiredTroubleOptions = IKosCompanionOptions<
|
|
6
4
|
TroubleModel<HolderTroubleData>,
|
|
7
5
|
TroubleOptions
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CarbAgitatorOptions } from './types';
|
|
2
|
-
import { ProbeAware } from '../types/assembly';
|
|
3
|
-
import { IKosDataModel, KosCompanionComposition, KosConfigProperty, KosCreationContext, KosFutureAwareFull, KosLoggerAware, KosModelRegistrationType, KosStateMachineAware, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
1
|
import { AssemblyModel } from '@kosdev-code/kos-dispense-sdk';
|
|
5
|
-
|
|
2
|
+
import { IKosDataModel, KosCompanionComposition, KosConfigProperty, KosCreationContext, KosFutureAwareFull, KosLoggerAware, KosModelRegistrationType, KosStateMachineAware, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { ProbeAware } from '../types/assembly';
|
|
4
|
+
import { CarbAgitatorOptions } from './types';
|
|
6
5
|
/**
|
|
7
6
|
* Unique identifier for the carb agitator model type used in KOS model registration.
|
|
8
7
|
*
|
|
@@ -277,26 +276,7 @@ export declare class CarbAgitatorModelImpl implements IKosDataModel {
|
|
|
277
276
|
handleTestCarbTank(tracker?: string): Promise<import('@kosdev-code/kos-ui-sdk').FutureResponse>;
|
|
278
277
|
}
|
|
279
278
|
/**
|
|
280
|
-
* Registration factory for
|
|
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
|
-
* ```
|
|
279
|
+
* Registration factory for the CarbAgitator model.
|
|
300
280
|
*
|
|
301
281
|
* @category Models
|
|
302
282
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carb-agitator-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"carb-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/carb-agitator/carb-agitator-model.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/carb-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE7E,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
-
|
|
3
2
|
/**
|
|
4
3
|
* Initiates a carb tank test operation on the device.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
7
|
-
* a future response that can be used to track the test operation's progress and
|
|
8
|
-
* completion status.
|
|
5
|
+
* Returns the future response that tracks the test's progress and completion.
|
|
9
6
|
*
|
|
10
7
|
* @param path - Device path to the carb tank hardware (e.g., "assembly:core:board:macksm:carbTank:carbTank")
|
|
11
8
|
* @param tracker - Future tracker ID for monitoring operation progress
|
|
12
9
|
* @returns Promise resolving to a FutureResponse for operation tracking
|
|
13
10
|
* @throws {Error} If the server returns no response data
|
|
14
11
|
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const future = await testCarbTank(
|
|
18
|
-
* "assembly:core:board:macksm:carbTank:carbTank",
|
|
19
|
-
* "tracker-123"
|
|
20
|
-
* );
|
|
21
|
-
*
|
|
22
|
-
* // Monitor future progress
|
|
23
|
-
* console.log(`Test status: ${future.status}`);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
12
|
* @category Services
|
|
27
13
|
*/
|
|
28
14
|
export declare const testCarbTank: (path: string, tracker: string) => Promise<FutureResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carb-tank-services.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"carb-tank-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/carb-agitator/services/carb-tank-services.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAOjC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAU,MAAM,MAAM,EAAE,SAAS,MAAM,4BAY/D,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CartridgeAgitatorContainerOptions } from './types';
|
|
2
|
-
import { CartridgeAgitatorModel } from './cartridge-agitator-model';
|
|
3
1
|
import { IKosDataModel, IKosIdentifiable, IKosModelContainer, IKosModelHolder, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { CartridgeAgitatorModel } from './cartridge-agitator-model';
|
|
3
|
+
import { CartridgeAgitatorContainerOptions } from './types';
|
|
5
4
|
export declare const MODEL_TYPE = "cartridge-agitator-container-model";
|
|
6
5
|
export type CartridgeAgitatorContainerModel = PublicModelInterface<CartridgeAgitatorContainerModelImpl>;
|
|
7
6
|
export declare class CartridgeAgitatorContainerModelImpl implements IKosIdentifiable, IKosModelHolder<CartridgeAgitatorModel>, IKosDataModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-container-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-container-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,UAAU,uCAAuC,CAAC;AAE/D,MAAM,MAAM,+BAA+B,GACzC,oBAAoB,CAAC,mCAAmC,CAAC,CAAC;AAE5D,qBACa,mCACX,YACE,gBAAgB,EAChB,eAAe,CAAC,sBAAsB,CAAC,EACvC,aAAa;IAEf,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACvB,OAAO,CAAC,OAAO,CAA6C;gBAEpE,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,iCAAiC,EAC1C,OAAO,EAAE,kBAAkB;IAY7B,QAAQ,CAAC,EAAE,EAAE,MAAM;IAGnB,IAAI,MAAM,+CAET;IACD,IAAI,IAAI,6BAEP;IAED,QAAQ,CAAC,KAAK,EAAE,sBAAsB;IAItC,WAAW,CAAC,EAAE,EAAE,MAAM;IAKhB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAMrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
|
|
@@ -1,87 +1,22 @@
|
|
|
1
|
-
import { CartridgeAgitatorContainerOptions } from './types';
|
|
2
|
-
import { CartridgeAgitatorContainerModel } from './cartridge-agitator-container-model';
|
|
3
1
|
import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { CartridgeAgitatorContainerModel } from './cartridge-agitator-container-model';
|
|
3
|
+
import { CartridgeAgitatorContainerOptions } from './types';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* Registration bean for {@link CartridgeAgitatorContainerModel}.
|
|
7
6
|
*
|
|
8
|
-
*
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: `CartridgeAgitatorContainer.factory(options)` returns the single instance, creating it on the first call.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `CartridgeAgitatorContainerModel`.
|
|
10
|
+
* - `instance()`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
9
12
|
*
|
|
10
|
-
*
|
|
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.
|
|
13
|
+
* CartridgeAgitatorContainer is a singleton. `KosModelRegistry.freestyle.models()` registers it.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* private cartridgeAgitatorContainerModel: CartridgeAgitatorContainerModel;
|
|
17
|
+
* @kosDependency({ modelType: CartridgeAgitatorContainer.type })
|
|
18
|
+
* private cartridgeAgitatorContainer!: CartridgeAgitatorContainerModel;
|
|
20
19
|
* ```
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
* ## factory
|
|
24
|
-
*
|
|
25
|
-
* The factory method creates a factory function that can be used to create new CartridgeAgitatorContainerModel instances.
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
* As this is a singleton model, the factory function accepts the model options as its argument.
|
|
29
|
-
*
|
|
30
|
-
* If a model with the same model type 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 = CartridgeAgitatorContainer.factory({
|
|
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 CartridgeAgitatorContainerModel.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
*
|
|
49
|
-
* const model: IKosDataModel = ...; // some model
|
|
50
|
-
*
|
|
51
|
-
* if (CartridgeAgitatorContainer.predicate(model)) {
|
|
52
|
-
* // if the function evaluates to true, the model is narrowed down to CartridgeAgitatorContainerModel
|
|
53
|
-
* // and the compiler will know that the model has the CartridgeAgitatorContainerModel 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 { CartridgeAgitatorContainer } from "@kosdev-code/kos-dispense-sdk";
|
|
71
|
-
* ...
|
|
72
|
-
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
73
|
-
* export const kosModels: IKosRegistry["models"] = {
|
|
74
|
-
* ...CartridgeAgitatorContainer.registration,
|
|
75
|
-
* };
|
|
76
|
-
* ```
|
|
77
|
-
*
|
|
78
|
-
* ## registration.singleton
|
|
79
|
-
|
|
80
|
-
* The cartridgeAgitatorContainer model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
|
|
81
|
-
* If the model does not yet exist, it will be created passing in the provided options to initialize it.
|
|
82
|
-
*
|
|
83
|
-
* Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
|
|
84
|
-
|
|
85
|
-
* */
|
|
20
|
+
*/
|
|
86
21
|
export declare const CartridgeAgitatorContainer: SingletonKosModelRegistrationFactory<CartridgeAgitatorContainerModel, CartridgeAgitatorContainerOptions>;
|
|
87
22
|
//# sourceMappingURL=cartridge-agitator-container-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-container-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-container-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-container-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAM5F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,0BAA0B,0GAOnC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CartridgeAgitatorOptions } from './types';
|
|
2
1
|
import { ExternalFutureInterface, IKosDataModel, IKosIdentifiable, KosFutureAwareFull, KosLoggerAware, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
-
|
|
2
|
+
import { CartridgeAgitatorOptions } from './types';
|
|
4
3
|
export declare const MODEL_TYPE = "cartridge-agitator-model";
|
|
5
4
|
export type CartridgeAgitatorModel = PublicModelInterface<CartridgeAgitatorModelImpl> & ExternalFutureInterface;
|
|
6
5
|
export declare class CartridgeAgitatorEvents {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EAEd,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAYjC,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;AAGD,MAAM,WAAW,0BACf,SAAQ,kBAAkB,EACxB,cAAc;CAAG;AAGrB,qBAGa,0BACX,YAAW,aAAa,EAAE,gBAAgB;IAE1C,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,SAAS,CAAyB;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;gBACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB;IAQ9D,IAAI,WAAW,IAAI,OAAO,CAEzB;IAGK,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAclC,eAAe;CAahB"}
|
|
@@ -1,89 +1,22 @@
|
|
|
1
|
-
import { CartridgeAgitatorOptions } from './types';
|
|
2
|
-
import { CartridgeAgitatorModel } from './cartridge-agitator-model';
|
|
3
1
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { CartridgeAgitatorModel } from './cartridge-agitator-model';
|
|
3
|
+
import { CartridgeAgitatorOptions } from './types';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* The registration bean includes convenience methods for creating and working with CartridgeAgitatorModel 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
|
|
5
|
+
* Registration bean for {@link CartridgeAgitatorModel}.
|
|
17
6
|
*
|
|
18
|
-
*
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: curried factory, `CartridgeAgitator.factory(id)(options)`. Returns the existing model when the id is already in use and ignores the options.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `CartridgeAgitatorModel`.
|
|
10
|
+
* - `instance(id)`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
19
12
|
*
|
|
20
|
-
*
|
|
21
|
-
* private cartridgeAgitatorModel: CartridgeAgitatorModel;
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* ## factory
|
|
26
|
-
*
|
|
27
|
-
* The factory method creates a factory function that can be used to create new CartridgeAgitatorModel instances.
|
|
28
|
-
*
|
|
29
|
-
|
|
30
|
-
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
31
|
-
*
|
|
32
|
-
* If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
|
|
33
|
-
* in this case and the existing model will be returned in its current state.
|
|
13
|
+
* CartridgeAgitator is not a singleton: each id has its own instance. `KosModelRegistry.freestyle.models()` registers it.
|
|
34
14
|
*
|
|
35
15
|
* @example
|
|
36
16
|
* ```typescript
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* });
|
|
17
|
+
* @kosDependency({ modelType: CartridgeAgitator.type, id: "cartridgeAgitatorId" })
|
|
18
|
+
* private cartridgeAgitator!: CartridgeAgitatorModel;
|
|
40
19
|
* ```
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
* ## predicate
|
|
45
|
-
*
|
|
46
|
-
* [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 CartridgeAgitatorModel.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```typescript
|
|
50
|
-
*
|
|
51
|
-
* const model: IKosDataModel = ...; // some model
|
|
52
|
-
*
|
|
53
|
-
* if (CartridgeAgitator.predicate(model)) {
|
|
54
|
-
* // if the function evaluates to true, the model is narrowed down to CartridgeAgitatorModel
|
|
55
|
-
* // and the compiler will know that the model has the CartridgeAgitatorModel interface
|
|
56
|
-
* model.updateAvailability(false);
|
|
57
|
-
* }
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* ## registration
|
|
61
|
-
*
|
|
62
|
-
* The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
|
|
63
|
-
* can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
*
|
|
68
|
-
* In an application registration file you can declare the model registration as follows:
|
|
69
|
-
*
|
|
70
|
-
* **registration.ts**
|
|
71
|
-
* ```typescript
|
|
72
|
-
* import { CartridgeAgitator } from "@kos-ui/project-models";
|
|
73
|
-
* import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
|
|
74
|
-
*
|
|
75
|
-
* import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
|
|
76
|
-
*
|
|
77
|
-
* KosModelRegistry.dispense
|
|
78
|
-
* .models()
|
|
79
|
-
* .model(CartridgeAgitator);
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* ## registration.singleton
|
|
83
|
-
|
|
84
|
-
* The cartridgeAgitator 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.
|
|
85
|
-
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
86
|
-
|
|
87
|
-
* */
|
|
20
|
+
*/
|
|
88
21
|
export declare const CartridgeAgitator: KosModelRegistrationFactory<CartridgeAgitatorModel, CartridgeAgitatorOptions>;
|
|
89
22
|
//# sourceMappingURL=cartridge-agitator-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,sBAAsB,EAGvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,+EAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,GAC5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,mBAAmB,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-agitator-services.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cartridge-agitator-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/cartridge-agitator/services/cartridge-agitator-services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,yBAAyB,CAAC;AAOjC;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAU,MAAM,MAAM,EAAE,SAAS,MAAM,4BAY1D,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ProbeAware } from '../types/assembly';
|
|
2
|
-
import { PumpModel } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
import { CgpPumpOptions } from './types';
|
|
4
1
|
import { IKosDataModel, IKosIdentifiable, KosCompanionComposition, KosLoggerAware, KosModelRegistrationType, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
5
|
-
|
|
2
|
+
import { CgpPumpOptions } from './types';
|
|
3
|
+
import { PumpModel } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
import { ProbeAware } from '../types/assembly';
|
|
6
5
|
export declare const MODEL_TYPE = "cgp-pump-model";
|
|
7
6
|
export type CgpPumpModel = PublicModelInterface<CgpPumpModelImpl>;
|
|
8
7
|
export interface CgpPumpModelImpl extends KosLoggerAware, ProbeAware, KosCompanionComposition<PumpModel> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cgp-pump-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"cgp-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cgp-pump/cgp-pump-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAGlE,MAAM,WAAW,gBACf,SAAQ,cAAc,EACpB,UAAU,EACV,uBAAuB,CAAC,SAAS,CAAC;CAAG;AAGzC,qBAKa,gBAAiB,YAAW,aAAa,EAAE,gBAAgB;IAEtE,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAM5E,YAAY,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAMrC,WAAW,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAMpC,OAAO,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;gBAE1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;IAMpD,IAAI,SAAS,WAEZ;CACF;AAED,eAAO,MAAM,OAAO,wDAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/cgp-pump/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { PumpModel, PumpOptions } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type CgpPumpOptions = IKosCompanionOptions<PumpModel, PumpOptions>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IntentAware, IntentAwareProps, IntentContainer } from '@kosdev-code/kos-dispense-sdk';
|
|
2
2
|
import { FutureAwareContainer, FutureContainer, FutureResponse, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { FcmPumpOptions } from './types';
|
|
5
4
|
export declare const MODEL_TYPE = "fcm-pump-model";
|
|
6
5
|
export type FcmPumpModel = PublicModelInterface<FcmPumpModelImpl>;
|
|
7
|
-
export declare class FcmPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware, FutureContainer {
|
|
6
|
+
export declare class FcmPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware, IntentContainer, FutureContainer {
|
|
8
7
|
id: string;
|
|
9
8
|
private logger;
|
|
10
9
|
private pumpModel;
|
|
@@ -16,6 +15,10 @@ export declare class FcmPumpModelImpl implements IKosDataModel, IKosIdentifiable
|
|
|
16
15
|
get isPouring(): boolean;
|
|
17
16
|
cancelPour(): Promise<void>;
|
|
18
17
|
performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
|
|
18
|
+
get ingredientId(): string | undefined;
|
|
19
|
+
resolveIntentVolume(intent: string): Promise<{
|
|
20
|
+
volume: number;
|
|
21
|
+
}>;
|
|
19
22
|
performElectricalTest(): Promise<import('./services').ElectricalTestData>;
|
|
20
23
|
getChildren(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>>[];
|
|
21
24
|
performPreCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm-pump-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"fcm-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/fcm-pump/fcm-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAEhB,eAAe,EAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAejC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAO3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAElE,qBACa,gBACX,YACE,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,eAAe;IAEjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAY;IAC7B,aAAa,EAAE,oBAAoB,CAAC;gBAElC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,MAAM,wFAET;IAED,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,YAEZ;IAEK,UAAU;IAIhB,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAItC,IAAI,YAAY,uBAEf;IAED,mBAAmB,CAAC,MAAM,EAAE,MAAM;;;IAI5B,qBAAqB;IAS3B,WAAW;IAML,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKpC,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKjC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAI9C,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAMhD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|