@kosdev-code/kos-freestyle-sdk 2.0.2

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 (183) hide show
  1. package/extension-utils-D_CXSnlW.cjs +2 -0
  2. package/extension-utils-D_CXSnlW.cjs.map +1 -0
  3. package/extension-utils-uYGl3TGm.js +201 -0
  4. package/extension-utils-uYGl3TGm.js.map +1 -0
  5. package/freestyle-registration-manager-pbtzJUqS.js +765 -0
  6. package/freestyle-registration-manager-pbtzJUqS.js.map +1 -0
  7. package/freestyle-registration-manager-yxRMbjlE.cjs +2 -0
  8. package/freestyle-registration-manager-yxRMbjlE.cjs.map +1 -0
  9. package/index.cjs +2 -0
  10. package/index.cjs.map +1 -0
  11. package/index.d.ts +3 -0
  12. package/index.d.ts.map +1 -0
  13. package/index.js +33 -0
  14. package/index.js.map +1 -0
  15. package/models/constants/index.d.ts +2 -0
  16. package/models/constants/index.d.ts.map +1 -0
  17. package/models/index.d.ts +6 -0
  18. package/models/index.d.ts.map +1 -0
  19. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +23 -0
  20. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -0
  21. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +87 -0
  22. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +1 -0
  23. package/models/models/agitation-required-trouble/index.d.ts +4 -0
  24. package/models/models/agitation-required-trouble/index.d.ts.map +1 -0
  25. package/models/models/agitation-required-trouble/types/index.d.ts +8 -0
  26. package/models/models/carb-agitator/carb-agitator-model.d.ts +14 -0
  27. package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -0
  28. package/models/models/carb-agitator/carb-agitator-registration.d.ts +84 -0
  29. package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +1 -0
  30. package/models/models/carb-agitator/index.d.ts +3 -0
  31. package/models/models/carb-agitator/index.d.ts.map +1 -0
  32. package/models/models/carb-agitator/types/index.d.ts +14 -0
  33. package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts +20 -0
  34. package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts.map +1 -0
  35. package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts +87 -0
  36. package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts.map +1 -0
  37. package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +27 -0
  38. package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -0
  39. package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts +87 -0
  40. package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts.map +1 -0
  41. package/models/models/cartridge-agitator/index.d.ts +6 -0
  42. package/models/models/cartridge-agitator/index.d.ts.map +1 -0
  43. package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts +8 -0
  44. package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts.map +1 -0
  45. package/models/models/cartridge-agitator/types/index.d.ts +14 -0
  46. package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +38 -0
  47. package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -0
  48. package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts +89 -0
  49. package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts.map +1 -0
  50. package/models/models/freestyle-assembly/index.d.ts +4 -0
  51. package/models/models/freestyle-assembly/index.d.ts.map +1 -0
  52. package/models/models/freestyle-assembly/types/index.d.ts +8 -0
  53. package/models/models/freestyle-holder/freestyle-holder-model.d.ts +19 -0
  54. package/models/models/freestyle-holder/freestyle-holder-model.d.ts.map +1 -0
  55. package/models/models/freestyle-holder/freestyle-holder-registration.d.ts +87 -0
  56. package/models/models/freestyle-holder/freestyle-holder-registration.d.ts.map +1 -0
  57. package/models/models/freestyle-holder/index.d.ts +4 -0
  58. package/models/models/freestyle-holder/index.d.ts.map +1 -0
  59. package/models/models/freestyle-holder/types/index.d.ts +8 -0
  60. package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +21 -0
  61. package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -0
  62. package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts +87 -0
  63. package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts.map +1 -0
  64. package/models/models/freestyle-nozzle/index.d.ts +5 -0
  65. package/models/models/freestyle-nozzle/index.d.ts.map +1 -0
  66. package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts +32 -0
  67. package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts.map +1 -0
  68. package/models/models/freestyle-nozzle/services/index.d.ts +2 -0
  69. package/models/models/freestyle-nozzle/services/index.d.ts.map +1 -0
  70. package/models/models/freestyle-nozzle/types/index.d.ts +8 -0
  71. package/models/models/freestyle-pump/freestyle-pump-model.d.ts +14 -0
  72. package/models/models/freestyle-pump/freestyle-pump-model.d.ts.map +1 -0
  73. package/models/models/freestyle-pump/freestyle-pump-registration.d.ts +87 -0
  74. package/models/models/freestyle-pump/freestyle-pump-registration.d.ts.map +1 -0
  75. package/models/models/freestyle-pump/index.d.ts +5 -0
  76. package/models/models/freestyle-pump/index.d.ts.map +1 -0
  77. package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts +10 -0
  78. package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts.map +1 -0
  79. package/models/models/freestyle-pump/services/index.d.ts +2 -0
  80. package/models/models/freestyle-pump/services/index.d.ts.map +1 -0
  81. package/models/models/freestyle-pump/types/index.d.ts +5 -0
  82. package/models/models/ice-agitator/ice-agitator-model.d.ts +28 -0
  83. package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -0
  84. package/models/models/ice-agitator/ice-agitator-registration.d.ts +84 -0
  85. package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +1 -0
  86. package/models/models/ice-agitator/index.d.ts +3 -0
  87. package/models/models/ice-agitator/index.d.ts.map +1 -0
  88. package/models/models/ice-agitator/services/ice-agitator-services.d.ts +8 -0
  89. package/models/models/ice-agitator/services/ice-agitator-services.d.ts.map +1 -0
  90. package/models/models/ice-agitator/services/index.d.ts +2 -0
  91. package/models/models/ice-agitator/services/index.d.ts.map +1 -0
  92. package/models/models/ice-agitator/types/index.d.ts +28 -0
  93. package/models/models/index.d.ts +11 -0
  94. package/models/models/index.d.ts.map +1 -0
  95. package/models/models/types/assembly.d.ts +16 -0
  96. package/models/models/types/assembly.d.ts.map +1 -0
  97. package/models/models/types/ingredients.d.ts +33 -0
  98. package/models/models/types/ingredients.d.ts.map +1 -0
  99. package/models/models/types/pumps.d.ts +6 -0
  100. package/models/models/types/pumps.d.ts.map +1 -0
  101. package/models/utils/extension-utils.d.ts +37 -0
  102. package/models/utils/extension-utils.d.ts.map +1 -0
  103. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +19 -0
  104. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -0
  105. package/models/utils/extensions/assembly/types.d.ts +130 -0
  106. package/models/utils/extensions/assembly/types.d.ts.map +1 -0
  107. package/models/utils/extensions/availability/freestyle-loader.d.ts +31 -0
  108. package/models/utils/extensions/availability/freestyle-loader.d.ts.map +1 -0
  109. package/models/utils/extensions/availability/freestyle-mapper.d.ts +14 -0
  110. package/models/utils/extensions/availability/freestyle-mapper.d.ts.map +1 -0
  111. package/models/utils/extensions/availability/middleware/assets.d.ts +10 -0
  112. package/models/utils/extensions/availability/middleware/assets.d.ts.map +1 -0
  113. package/models/utils/extensions/availability/middleware/beverage-screen.d.ts +14 -0
  114. package/models/utils/extensions/availability/middleware/beverage-screen.d.ts.map +1 -0
  115. package/models/utils/extensions/availability/middleware/beverages.d.ts +10 -0
  116. package/models/utils/extensions/availability/middleware/beverages.d.ts.map +1 -0
  117. package/models/utils/extensions/availability/middleware/brand-screen.d.ts +5 -0
  118. package/models/utils/extensions/availability/middleware/brand-screen.d.ts.map +1 -0
  119. package/models/utils/extensions/availability/middleware/brands.d.ts +10 -0
  120. package/models/utils/extensions/availability/middleware/brands.d.ts.map +1 -0
  121. package/models/utils/extensions/availability/middleware/copy-input.d.ts +4 -0
  122. package/models/utils/extensions/availability/middleware/copy-input.d.ts.map +1 -0
  123. package/models/utils/extensions/availability/middleware/flavors.d.ts +10 -0
  124. package/models/utils/extensions/availability/middleware/flavors.d.ts.map +1 -0
  125. package/models/utils/extensions/availability/middleware/nutrition.d.ts +10 -0
  126. package/models/utils/extensions/availability/middleware/nutrition.d.ts.map +1 -0
  127. package/models/utils/extensions/availability/middleware/related-brands.d.ts +14 -0
  128. package/models/utils/extensions/availability/middleware/related-brands.d.ts.map +1 -0
  129. package/models/utils/extensions/availability/types.d.ts +251 -0
  130. package/models/utils/extensions/availability/types.d.ts.map +1 -0
  131. package/models/utils/extensions/availability/util/locate-brand.d.ts +2 -0
  132. package/models/utils/extensions/availability/util/locate-brand.d.ts.map +1 -0
  133. package/models/utils/extensions/availability/util/process-related-brand.d.ts +4 -0
  134. package/models/utils/extensions/availability/util/process-related-brand.d.ts.map +1 -0
  135. package/models/utils/extensions/ingredient/index.d.ts +2 -0
  136. package/models/utils/extensions/ingredient/index.d.ts.map +1 -0
  137. package/models/utils/extensions/ingredient/model-extension.d.ts +7 -0
  138. package/models/utils/extensions/ingredient/model-extension.d.ts.map +1 -0
  139. package/models/utils/extensions/pourable/select-pourable-mapper.d.ts +6 -0
  140. package/models/utils/extensions/pourable/select-pourable-mapper.d.ts.map +1 -0
  141. package/models/utils/freestyle-registration-manager.d.ts +39 -0
  142. package/models/utils/freestyle-registration-manager.d.ts.map +1 -0
  143. package/models/utils/index.d.ts +5 -0
  144. package/models/utils/index.d.ts.map +1 -0
  145. package/models.cjs +2 -0
  146. package/models.cjs.map +1 -0
  147. package/models.d.ts +1 -0
  148. package/models.js +25 -0
  149. package/models.js.map +1 -0
  150. package/package.json +37 -0
  151. package/ui/contexts/index.d.ts +2 -0
  152. package/ui/contexts/index.d.ts.map +1 -0
  153. package/ui/hooks/freestyle-assembly/index.d.ts +2 -0
  154. package/ui/hooks/freestyle-assembly/index.d.ts.map +1 -0
  155. package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts +4 -0
  156. package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts.map +1 -0
  157. package/ui/hooks/freestyle-nozzle/index.d.ts +2 -0
  158. package/ui/hooks/freestyle-nozzle/index.d.ts.map +1 -0
  159. package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts +4 -0
  160. package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts.map +1 -0
  161. package/ui/hooks/ice-agitator/index.d.ts +3 -0
  162. package/ui/hooks/ice-agitator/index.d.ts.map +1 -0
  163. package/ui/hooks/ice-agitator/use-ice-agitator.d.ts +14 -0
  164. package/ui/hooks/ice-agitator/use-ice-agitator.d.ts.map +1 -0
  165. package/ui/hooks/ice-agitator/with-ice-agitator.d.ts +7 -0
  166. package/ui/hooks/ice-agitator/with-ice-agitator.d.ts.map +1 -0
  167. package/ui/hooks/index.d.ts +5 -0
  168. package/ui/hooks/index.d.ts.map +1 -0
  169. package/ui/hooks/nutrition/index.d.ts +2 -0
  170. package/ui/hooks/nutrition/index.d.ts.map +1 -0
  171. package/ui/hooks/nutrition/use-nutrition-info.d.ts +4 -0
  172. package/ui/hooks/nutrition/use-nutrition-info.d.ts.map +1 -0
  173. package/ui/index.d.ts +3 -0
  174. package/ui/index.d.ts.map +1 -0
  175. package/ui.cjs +2 -0
  176. package/ui.cjs.map +1 -0
  177. package/ui.d.ts +1 -0
  178. package/ui.js +14 -0
  179. package/ui.js.map +1 -0
  180. package/use-nutrition-info-CGrmEGIR.cjs +2 -0
  181. package/use-nutrition-info-CGrmEGIR.cjs.map +1 -0
  182. package/use-nutrition-info-D-wbfIlj.js +52 -0
  183. package/use-nutrition-info-D-wbfIlj.js.map +1 -0
@@ -0,0 +1,89 @@
1
+ import { FreestyleAssemblyOptions } from './types';
2
+ import { FreestyleAssemblyModel } from './freestyle-assembly-model';
3
+ import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # FreestyleAssembly
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with FreestyleAssemblyModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: FreestyleAssembly.type, id: "freestyleAssemblyId"})
19
+ * private freestyleAssemblyModel: FreestyleAssemblyModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new FreestyleAssemblyModel 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 = FreestyleAssembly.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 FreestyleAssemblyModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (FreestyleAssembly.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to FreestyleAssemblyModel
53
+ * // and the compiler will know that the model has the FreestyleAssemblyModel 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 { FreestyleAssembly } from "@kos-ui/project-models";
71
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
+ *
73
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
+ *
75
+ * KosModelRegistry.dispense
76
+ * .models()
77
+ * .model(FreestyleAssembly);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The freestyleAssembly model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
83
+ * If the model does not yet exist, it will be created passing in the provided options to initialize it.
84
+ *
85
+ * Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
86
+
87
+ * */
88
+ export declare const FreestyleAssembly: SingletonKosModelRegistrationFactory<FreestyleAssemblyModel, FreestyleAssemblyOptions>;
89
+ //# sourceMappingURL=freestyle-assembly-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-assembly-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAKzE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,iBAAiB,wFAM5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { FreestyleAssembly } from './freestyle-assembly-registration';
2
+ export type * from './types';
3
+ export type { FreestyleAssemblyModel } from './freestyle-assembly-model';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
2
+ import { AssemblyModel, AssemblyOptions } from '@kosdev-code/kos-dispense-sdk';
3
+
4
+
5
+ export type FreestyleAssemblyOptions = IKosCompanionOptions<
6
+ AssemblyModel,
7
+ AssemblyOptions
8
+ >;
@@ -0,0 +1,19 @@
1
+ import { HolderModel } from '@kosdev-code/kos-dispense-sdk';
2
+ import { FreestyleHolderOptions } from './types';
3
+ import { FutureDelegate, IFutureModel, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ export declare const MODEL_TYPE = "freestyle-holder-model";
6
+ export declare const freestyleHolderFactory: (holder: HolderModel) => "freestyle-holder-model" | undefined;
7
+ export type FreestyleHolderModel = PublicModelInterface<FreestyleHolderModelImpl>;
8
+ export declare class FreestyleHolderModelImpl implements IKosDataModel, IKosIdentifiable, FutureDelegate {
9
+ id: string;
10
+ private logger;
11
+ private holder;
12
+ future?: IFutureModel;
13
+ constructor(modelId: string, options: FreestyleHolderOptions, context: KosCreationContext);
14
+ get agitated(): boolean | undefined;
15
+ agitate(): Promise<IFutureModel<Record<string, unknown>> | undefined>;
16
+ init(): Promise<void>;
17
+ load(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=freestyle-holder-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-holder-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-holder/freestyle-holder-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EAEd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQjE,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAoCnD,eAAO,MAAM,sBAAsB,WAAY,WAAW,yCAKzD,CAAC;AACF,MAAM,MAAM,oBAAoB,GAC9B,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAEjD,qBACa,wBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,cAAc;IAE1D,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,MAAM,CAAkC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,QAAQ,wBAEX;IACK,OAAO;IAyBP,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,87 @@
1
+ import { FreestyleHolderOptions } from './types';
2
+ import { FreestyleHolderModel } from './freestyle-holder-model';
3
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # FreestyleHolder
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with FreestyleHolderModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: FreestyleHolder.type, id: "freestyleHolderId"})
19
+ * private freestyleHolderModel: FreestyleHolderModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new FreestyleHolderModel instances.
26
+ *
27
+
28
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
29
+ *
30
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
31
+ * in this case and the existing model will be returned in its current state.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const model = FreestyleHolder.factory("freestyleHolderId")({
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 FreestyleHolderModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (FreestyleHolder.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to FreestyleHolderModel
53
+ * // and the compiler will know that the model has the FreestyleHolderModel 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 { FreestyleHolder } from "@kos-ui/project-models";
71
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
+ *
73
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
+ *
75
+ * KosModelRegistry.dispense
76
+ * .models()
77
+ * .model(FreestyleHolder);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The freestyleHolder model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
83
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
84
+
85
+ * */
86
+ export declare const FreestyleHolder: KosModelRegistrationFactory<FreestyleHolderModel, FreestyleHolderOptions>;
87
+ //# sourceMappingURL=freestyle-holder-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-holder-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-holder/freestyle-holder-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,eAAe,2EAM1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { FreestyleHolder } from './freestyle-holder-registration';
2
+ export type * from './types';
3
+ export type { FreestyleHolderModel } from './freestyle-holder-model';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-holder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
2
+ import { HolderModel, HolderOptions } from '@kosdev-code/kos-dispense-sdk';
3
+
4
+
5
+ export type FreestyleHolderOptions = IKosCompanionOptions<
6
+ HolderModel,
7
+ HolderOptions
8
+ >;
@@ -0,0 +1,21 @@
1
+ import { FreestyleNozzleOptions } from './types';
2
+ import { FreestyleNutritionInfoResponse } from './services';
3
+ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ export declare const MODEL_TYPE = "freestyle-nozzle-model";
6
+ export type FreestyleNozzleModel = PublicModelInterface<FreestyleNozzleModelImpl>;
7
+ export declare class FreestyleNozzleModelImpl implements IKosDataModel, IKosIdentifiable {
8
+ id: string;
9
+ private logger;
10
+ private nozzleModel;
11
+ private _cupSizes;
12
+ private _nutritionInfo?;
13
+ private _disposer;
14
+ constructor(modelId: string, options: FreestyleNozzleOptions, context: KosCreationContext);
15
+ set cupSizes(cupSizes: number[]);
16
+ get nutritionInfo(): FreestyleNutritionInfoResponse | undefined;
17
+ init(): Promise<void>;
18
+ unload(): void;
19
+ load(): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=freestyle-nozzle-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-nozzle-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/freestyle-nozzle-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAC9B,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAEjD,qBAEa,wBACX,YAAW,aAAa,EAAE,gBAAgB;IAE1C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,cAAc,CAAC,CAAiC;IACxD,OAAO,CAAC,SAAS,CAA6B;gBAE5C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,EAE9B;IACD,IAAI,aAAa,+CAEhB;IAIK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA2B3B,MAAM,IAAI,IAAI;IAMR,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -0,0 +1,87 @@
1
+ import { FreestyleNozzleOptions } from './types';
2
+ import { FreestyleNozzleModel } from './freestyle-nozzle-model';
3
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # FreestyleNozzle
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with FreestyleNozzleModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: FreestyleNozzle.type, id: "freestyleNozzleId"})
19
+ * private freestyleNozzleModel: FreestyleNozzleModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new FreestyleNozzleModel instances.
26
+ *
27
+
28
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
29
+ *
30
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
31
+ * in this case and the existing model will be returned in its current state.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const model = FreestyleNozzle.factory("freestyleNozzleId")({
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 FreestyleNozzleModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (FreestyleNozzle.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to FreestyleNozzleModel
53
+ * // and the compiler will know that the model has the FreestyleNozzleModel 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 { FreestyleNozzle } from "@kos-ui/project-models";
71
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
+ *
73
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
+ *
75
+ * KosModelRegistry.dispense
76
+ * .models()
77
+ * .model(FreestyleNozzle);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The freestyleNozzle model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
83
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
84
+
85
+ * */
86
+ export declare const FreestyleNozzle: KosModelRegistrationFactory<FreestyleNozzleModel, FreestyleNozzleOptions>;
87
+ //# sourceMappingURL=freestyle-nozzle-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-nozzle-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/freestyle-nozzle-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,eAAe,2EAM1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { FreestyleNozzle } from './freestyle-nozzle-registration';
2
+ export type * from './types';
3
+ export type { FreestyleNozzleModel } from './freestyle-nozzle-model';
4
+ export * as FreestyleNozzleServices from './services';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,uBAAuB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,32 @@
1
+ interface NutritionValue {
2
+ displayValue: string;
3
+ units: string;
4
+ type: string;
5
+ }
6
+ interface NutritionVolume {
7
+ volume: number;
8
+ values: NutritionValue[];
9
+ }
10
+ export interface FreestyleNutritionInfoResponse {
11
+ labels?: {
12
+ allergens: string;
13
+ legalDescriptor: string;
14
+ ingredients: string;
15
+ ingredientsHeading: string;
16
+ };
17
+ volumes: NutritionVolume[];
18
+ error?: string;
19
+ }
20
+ export declare class NutritionInfoError extends Error {
21
+ constructor(message: string);
22
+ }
23
+ export declare class InvalidRequestError extends Error {
24
+ constructor(message: string);
25
+ }
26
+ /**
27
+ * @category Service
28
+ * Retrieves the initial freestyle-nozzle data.
29
+ */
30
+ export declare const getFreestyleNutritionInfo: (nozzleUrlPrefix: string, beverageId: string, volumes: number[], baseUrl?: string) => Promise<FreestyleNutritionInfoResponse>;
31
+ export {};
32
+ //# sourceMappingURL=freestyle-nozzle-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-nozzle-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/services/freestyle-nozzle-services.ts"],"names":[],"mappings":"AAeA,UAAU,cAAc;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AACD,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AACD,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,mBAAoB,SAAQ,KAAK;gBAChC,OAAO,EAAE,MAAM;CAI5B;AACD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,oBACnB,MAAM,cACX,MAAM,WACT,MAAM,EAAE,8DA8BlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './freestyle-nozzle-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-nozzle/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
2
+ import { NozzleModel, NozzleOptions } from '@kosdev-code/kos-dispense-sdk';
3
+
4
+
5
+ export type FreestyleNozzleOptions = IKosCompanionOptions<
6
+ NozzleModel,
7
+ NozzleOptions
8
+ >;
@@ -0,0 +1,14 @@
1
+ import { ReplacePumpData, ReplacePumpErrorType } from './services';
2
+ import { FreestylePumpOptions } from './types';
3
+ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ export declare const MODEL_TYPE = "freestyle-pump-model";
6
+ export type FreestylePumpModel = PublicModelInterface<FreestylePumpModelImpl>;
7
+ export declare class FreestylePumpModelImpl implements IKosDataModel, IKosIdentifiable {
8
+ id: string;
9
+ private logger;
10
+ private pump;
11
+ constructor(modelId: string, options: FreestylePumpOptions, context: KosCreationContext);
12
+ replacePump(code: string): Promise<[ReplacePumpErrorType, ReplacePumpData]>;
13
+ }
14
+ //# sourceMappingURL=freestyle-pump-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-pump/freestyle-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,sBAAsB,CAAC,CAAC;AAE9E,qBACa,sBAAuB,YAAW,aAAa,EAAE,gBAAgB;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,IAAI,CAAY;gBAEtB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,kBAAkB;IASvB,WAAW,CACf,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;CAQpD"}
@@ -0,0 +1,87 @@
1
+ import { FreestylePumpOptions } from './types';
2
+ import { FreestylePumpModel } from './freestyle-pump-model';
3
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # FreestylePump
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with FreestylePumpModel instances.
9
+ *
10
+ * ## type
11
+ * The type property is a string that identifies the model type.
12
+ * The type is used to identify the model type in the model registry and to narrow down the model type in type predicates. It's most frequently
13
+ * used when declaring dependencies on models.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ *
18
+ * @kosDependency({modelType: FreestylePump.type, id: "freestylePumpId"})
19
+ * private freestylePumpModel: FreestylePumpModel;
20
+ * ```
21
+ *
22
+ *
23
+ * ## factory
24
+ *
25
+ * The factory method creates a factory function that can be used to create new FreestylePumpModel instances.
26
+ *
27
+
28
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
29
+ *
30
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
31
+ * in this case and the existing model will be returned in its current state.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const model = FreestylePump.factory("freestylePumpId")({
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 FreestylePumpModel.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ *
49
+ * const model: IKosDataModel = ...; // some model
50
+ *
51
+ * if (FreestylePump.predicate(model)) {
52
+ * // if the function evaluates to true, the model is narrowed down to FreestylePumpModel
53
+ * // and the compiler will know that the model has the FreestylePumpModel 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 { FreestylePump } from "@kos-ui/project-models";
71
+ * import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
72
+ *
73
+ * import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
74
+ *
75
+ * KosModelRegistry.dispense
76
+ * .models()
77
+ * .model(FreestylePump);
78
+ * ```
79
+ *
80
+ * ## registration.singleton
81
+
82
+ * The freestylePump model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
83
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
84
+
85
+ * */
86
+ export declare const FreestylePump: KosModelRegistrationFactory<FreestylePumpModel, FreestylePumpOptions>;
87
+ //# sourceMappingURL=freestyle-pump-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-pump-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-pump/freestyle-pump-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,aAAa,uEAMxB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { FreestylePump } from './freestyle-pump-registration';
2
+ export type * from './types';
3
+ export type { FreestylePumpModel } from './freestyle-pump-model';
4
+ export * as FreestylePumpServices from './services';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-pump/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,qBAAqB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type ReplacePumpErrorType = "unknownError" | undefined;
2
+ export type ReplacePumpData = {
3
+ error?: ReplacePumpErrorType;
4
+ };
5
+ export type ReplacePumpResponse = [
6
+ ReplacePumpErrorType | undefined,
7
+ ReplacePumpData
8
+ ];
9
+ export declare const replacePump: (pumpId: string, code: string) => Promise<ReplacePumpResponse>;
10
+ //# sourceMappingURL=freestyle-pump-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-pump-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-pump/services/freestyle-pump-services.ts"],"names":[],"mappings":"AAeA,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG,SAAS,CAAC;AAC9D,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB,GAAG,SAAS;IAChC,eAAe;CAChB,CAAC;AACF,eAAO,MAAM,WAAW,WACd,MAAM,QACR,MAAM,KACX,QAAQ,mBAAmB,CAoC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './freestyle-pump-services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-pump/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
2
+ import { PumpModel, PumpOptions } from '@kosdev-code/kos-dispense-sdk';
3
+
4
+
5
+ export type FreestylePumpOptions = IKosCompanionOptions<PumpModel, PumpOptions>;
@@ -0,0 +1,28 @@
1
+ import { IceAgitatorModel, IceAgitatorOptions } from './types';
2
+ import { IKosDataModel, KosConfigProperty, KosCreationContext } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ export declare const MODEL_TYPE = "ice-agitator-model";
5
+ export declare class IceAgitatorModelImpl implements IceAgitatorModel, IKosDataModel {
6
+ id: string;
7
+ name: string;
8
+ path: string;
9
+ volWithoutIceMl: KosConfigProperty<number>;
10
+ durationSec: KosConfigProperty<number>;
11
+ enableIceChuteClear: KosConfigProperty<boolean>;
12
+ iceChuteClearDurationMs: KosConfigProperty<number>;
13
+ iceChuteClearIntervalSec: KosConfigProperty<number>;
14
+ iceChuteClearRetryIntervalSec: KosConfigProperty<number>;
15
+ maxDispenseSec: KosConfigProperty<number>;
16
+ type: KosConfigProperty<string>;
17
+ dilutionOffset: KosConfigProperty<number>;
18
+ inactivitySec: KosConfigProperty<number>;
19
+ private _allIceTypes;
20
+ private logger;
21
+ constructor(modelId: string, options: IceAgitatorOptions, context: KosCreationContext);
22
+ get iceTypes(): string[];
23
+ updateIceType(type: string): Promise<void>;
24
+ resetDefaultValues: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<unknown[]> | undefined>;
25
+ init(): Promise<void>;
26
+ load(): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=ice-agitator-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ice-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/ice-agitator-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAYjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEpE,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAE/C,qBACa,oBAAqB,YAAW,gBAAgB,EAAE,aAAa;IAC1E,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAMb,eAAe,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS5C,WAAW,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMxC,mBAAmB,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMjD,uBAAuB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMpD,wBAAwB,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMrD,6BAA6B,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM1D,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAM3C,IAAI,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMjC,cAAc,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAS3C,aAAa,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE1C,OAAO,CAAC,YAAY,CAAW;IAC/B,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB;IAS7B,IAAI,QAAQ,IAAI,MAAM,EAAE,CAEvB;IAIK,aAAa,CAAC,IAAI,EAAE,MAAM;IAIhC,kBAAkB,6FAGhB;IAEI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAS5B"}