@kosdev-code/kos-freestyle-sdk 2.1.27 → 2.1.28

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.
Files changed (44) hide show
  1. package/{extension-utils-DABHO8qx.cjs → extension-utils-CbiToj2v.cjs} +2 -2
  2. package/{extension-utils-DABHO8qx.cjs.map → extension-utils-CbiToj2v.cjs.map} +1 -1
  3. package/{extension-utils-CARIyqNK.js → extension-utils-DP5eulYE.js} +11 -11
  4. package/{extension-utils-CARIyqNK.js.map → extension-utils-DP5eulYE.js.map} +1 -1
  5. package/index.cjs +1 -1
  6. package/index.js +36 -33
  7. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +195 -5
  8. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
  9. package/models/models/agitation-required-trouble/index.d.ts +4 -2
  10. package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
  11. package/models/models/carb-agitator/carb-agitator-model.d.ts +258 -0
  12. package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
  13. package/models/models/carb-agitator/services/carb-tank-services.d.ts +25 -0
  14. package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -1
  15. package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
  16. package/models/utils/openapi-index.d.ts +2 -2
  17. package/models/utils/services/freestyle/1.6.5/openapi.d.ts +1462 -0
  18. package/models/utils/services/freestyle/1.6.5/service.d.ts +118 -0
  19. package/models/utils/services/freestyle/1.6.5/service.d.ts.map +1 -0
  20. package/models/utils/services/freestyle/1.8.1/openapi.d.ts +1656 -0
  21. package/models/utils/services/freestyle/1.8.1/service.d.ts +118 -0
  22. package/models/utils/services/freestyle/1.8.1/service.d.ts.map +1 -0
  23. package/models/utils/services/handle/1.8.1/openapi.d.ts +237 -0
  24. package/models/utils/services/handle/1.8.1/service.d.ts +118 -0
  25. package/models/utils/services/handle/1.8.1/service.d.ts.map +1 -0
  26. package/models/utils/services-index.d.ts +3 -0
  27. package/models/utils/services-index.d.ts.map +1 -1
  28. package/models.cjs +1 -1
  29. package/models.js +30 -27
  30. package/package.json +2 -2
  31. package/{service-VUszslQD.cjs → service-BYZ3LYEa.cjs} +2 -2
  32. package/service-BYZ3LYEa.cjs.map +1 -0
  33. package/{service-C0WOCTr1.js → service-_jG-Kd3m.js} +634 -478
  34. package/service-_jG-Kd3m.js.map +1 -0
  35. package/ui.cjs +1 -1
  36. package/ui.js +2 -2
  37. package/{use-nutrition-info-BWyJAXF6.js → use-nutrition-info-B9ybCLwb.js} +2 -2
  38. package/{use-nutrition-info-BWyJAXF6.js.map → use-nutrition-info-B9ybCLwb.js.map} +1 -1
  39. package/{use-nutrition-info-BRX7H5o6.cjs → use-nutrition-info-C-RDcG4S.cjs} +2 -2
  40. package/{use-nutrition-info-BRX7H5o6.cjs.map → use-nutrition-info-C-RDcG4S.cjs.map} +1 -1
  41. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +0 -87
  42. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +0 -1
  43. package/service-C0WOCTr1.js.map +0 -1
  44. package/service-VUszslQD.cjs.map +0 -1
@@ -1,25 +1,215 @@
1
1
  import { AgitationRequiredTroubleOptions } from './types';
2
- import { DeferAware, FutureResponse, IKosDataModel, IKosIdentifiable, KosConfigProperty, KosCreationContext, PublicModelInterface, ResolveAware, TroubleModel } from '@kosdev-code/kos-ui-sdk';
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
- constructor(modelId: string, options: AgitationRequiredTroubleOptions, context: KosCreationContext);
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,EAEZ,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EAEjB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACb,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,UAAU,qCAAqC,CAAC;AAE7D,MAAM,MAAM,6BAA6B,GACvC,oBAAoB,CAAC,iCAAiC,CAAC,CAAC;AAE1D,eAAO,MAAM,qBAAqB,iBAAkB,YAAY,mDAK/D,CAAC;AAEF,eAAO,MAAM,0BAA0B,iCAAiC,CAAC;AACzE,qBACa,iCACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU;IAEpE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,cAAc,CAAS;IAM/B,iBAAiB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBAG7C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,+BAA+B,EACxC,OAAO,EAAE,kBAAkB;IAQvB,OAAO,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAKpD,IAAI,MAAM,iCAST;IAMD,YAAY;IAUZ,IAAI,WAAW,YASd;IAED,IAAI,QAAQ,YAEX;IACD,KAAK;IAIL,UAAU;CAGX"}
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;IACH,IAAI,MAAM,iCAST;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
- export { AGITATION_REQUIRED_TROUBLE, type AgitationRequiredTroubleModel, } from './agitation-required-trouble-model';
2
- export { AgitationRequiredTrouble } from './agitation-required-trouble-registration';
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,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,mBAAmB,SAAS,CAAC"}
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"}
@@ -3,44 +3,302 @@ import { ProbeAware } from '../types/assembly';
3
3
  import { IKosDataModel, KosCompanionComposition, KosConfigProperty, KosCreationContext, KosFutureAwareFull, KosLoggerAware, KosModelRegistrationType, KosStateMachineAware, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
4
  import { AssemblyModel } from '@kosdev-code/kos-dispense-sdk';
5
5
 
6
+ /**
7
+ * Unique identifier for the carb agitator model type used in KOS model registration.
8
+ *
9
+ * @category Constants
10
+ */
6
11
  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
+ */
7
23
  export declare enum CarbAgitatorState {
24
+ /**
25
+ * Initial state before any action is taken.
26
+ * Can transition to ACTIVATING or SKIPPED.
27
+ */
8
28
  UNINITIALIZED = "UNINITIALIZED",
29
+ /**
30
+ * Carb tank activation is in progress.
31
+ * Transitions to INITIALIZED when complete.
32
+ */
9
33
  ACTIVATING = "ACTIVATING",
34
+ /**
35
+ * Carb tank is initialized and ready for operation.
36
+ * Can transition back to UNINITIALIZED via RESET.
37
+ */
10
38
  INITIALIZED = "INITIALIZED",
39
+ /**
40
+ * User chose to skip carbonation for this workflow.
41
+ * Can transition back to UNINITIALIZED via RESET.
42
+ */
11
43
  SKIPPED = "SKIPPED"
12
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
+ */
13
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
+ */
14
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
+ */
15
77
  export interface CarbAgitatorModelImpl extends KosLoggerAware, ProbeAware, KosStateMachineAware<CarbAgitatorState, CarbAgitatorEvent>, KosFutureAwareFull, KosCompanionComposition<AssemblyModel> {
16
78
  }
17
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
+ */
18
87
  static Registration: KosModelRegistrationType<CarbAgitatorModel, CarbAgitatorOptions>;
88
+ /**
89
+ * Unique identifier for this carb agitator instance.
90
+ */
19
91
  id: string;
92
+ /**
93
+ * Display name for this carb agitator.
94
+ */
20
95
  name: string;
96
+ /**
97
+ * Device path for carb tank operations.
98
+ */
21
99
  path: string;
100
+ /**
101
+ * State path for accessing probe and filling status.
102
+ */
22
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
+ */
23
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
+ */
24
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
+ */
25
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
+ */
26
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
+ */
27
136
  constructor(modelId: string, options: CarbAgitatorOptions, context: KosCreationContext);
137
+ /**
138
+ * Gets the carb holder associated with this agitator.
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
+ */
28
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
+ */
29
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
+ */
30
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
+ */
31
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
+ */
32
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
+ */
33
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
+ */
34
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
+ */
35
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
+ */
36
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
+ */
37
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
+ */
38
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
+ */
39
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
+ */
40
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
+ */
41
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
+ */
42
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
+ */
43
277
  handleTestCarbTank(tracker?: string): Promise<import('@kosdev-code/kos-ui-sdk').FutureResponse>;
44
278
  }
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
+ */
45
303
  export declare const CarbAgitator: KosModelRegistrationType<CarbAgitatorModel, CarbAgitatorOptions>;
46
304
  //# 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":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAiBjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAGhD,oBAAY,iBAAiB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,qBAAqB,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;IAStB,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM;CAUpC;AAED,eAAO,MAAM,YAAY,kEAAqC,CAAC"}
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;;GAEG;AAIH,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAiBjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAShD;;;;;;;;;;GAUG;AACH,oBAAY,iBAAiB;IAC3B;;;OAGG;IACH,aAAa,kBAAkB;IAE/B;;;OAGG;IACH,UAAU,eAAe;IAEzB;;;OAGG;IACH,WAAW,gBAAgB;IAE3B;;;OAGG;IACH,OAAO,YAAY;CACpB;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GACzB,UAAU,GACV,qBAAqB,GACrB,MAAM,GACN,OAAO,CAAC;AAEZ;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAE5E;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,qBACf,SAAQ,cAAc,EACpB,UAAU,EACV,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EAC1D,kBAAkB,EAClB,uBAAuB,CAAC,aAAa,CAAC;CAAG;AAC7C,qBAwEa,qBAAsB,YAAW,aAAa;IACzD;;;;;;O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;OASG;IAEH,IAAI,IAAI,IAAI;IAIZ;;;;;;;;;;OAUG;IAIH,KAAK,IAAI,IAAI;IAKb;;;;;OAKG;IACH,cAAc,IAAI,IAAI;IAQtB;;;;;;;;;OASG;IAEH,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM;CAUpC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,YAAY,kEAAqC,CAAC"}
@@ -1,4 +1,29 @@
1
1
  import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
2
2
 
3
+ /**
4
+ * Initiates a carb tank test operation on the device.
5
+ *
6
+ * Sends a test command to the carb tank hardware at the specified path and returns
7
+ * a future response that can be used to track the test operation's progress and
8
+ * completion status.
9
+ *
10
+ * @param path - Device path to the carb tank hardware (e.g., "assembly:core:board:macksm:carbTank:carbTank")
11
+ * @param tracker - Future tracker ID for monitoring operation progress
12
+ * @returns Promise resolving to a FutureResponse for operation tracking
13
+ * @throws {Error} If the server returns no response data
14
+ *
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
+ * @category Services
27
+ */
3
28
  export declare const testCarbTank: (path: string, tracker: string) => Promise<FutureResponse>;
4
29
  //# sourceMappingURL=carb-tank-services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carb-tank-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/services/carb-tank-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAWjC,eAAO,MAAM,YAAY,SAAgB,MAAM,WAAW,MAAM,4BAY/D,CAAC"}
1
+ {"version":3,"file":"carb-tank-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/services/carb-tank-services.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAYjC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,SAAgB,MAAM,WAAW,MAAM,4BAY/D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"freestyle-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/freestyle-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,yBAAyB,EAU9C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKL,mBAAmB,EAEnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAgBjC,eAAO,MAAM,uBAAuB,YACxB,CAAC;;;;;CA+GV,CAAC;AAEJ,KAAK,aAAa,CAAC,CAAC,IAAI,OAAO,yBAAyB,GAAG;IACzD,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"freestyle-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/freestyle-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,yBAAyB,EAU9C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKL,mBAAmB,EAEnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAmBjC,eAAO,MAAM,uBAAuB,YACxB,CAAC;;;;;CA+GV,CAAC;AAEJ,KAAK,aAAa,CAAC,CAAC,IAAI,OAAO,yBAAyB,GAAG;IACzD,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- export * as freestyle from './services/freestyle/daily/openapi';
2
- export * as handle from './services/handle/daily/openapi';
1
+ export * as freestyle from './services/freestyle/1.8.1/openapi';
2
+ export * as handle from './services/handle/1.8.1/openapi';
3
3
  //# sourceMappingURL=openapi-index.d.ts.map