@kosdev-code/kos-freestyle-sdk 0.1.0-dev.5053

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 (194) hide show
  1. package/extension-utils-BE0Y1Zlv.js +201 -0
  2. package/extension-utils-BE0Y1Zlv.js.map +1 -0
  3. package/extension-utils-BVDLwtKr.cjs +2 -0
  4. package/extension-utils-BVDLwtKr.cjs.map +1 -0
  5. package/freestyle-registration-manager-CDbljuRk.cjs +2 -0
  6. package/freestyle-registration-manager-CDbljuRk.cjs.map +1 -0
  7. package/freestyle-registration-manager-z0aYdMcC.js +1069 -0
  8. package/freestyle-registration-manager-z0aYdMcC.js.map +1 -0
  9. package/index.cjs +2 -0
  10. package/index.cjs.map +1 -0
  11. package/index.d.ts +4 -0
  12. package/index.d.ts.map +1 -0
  13. package/index.js +36 -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 +25 -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 +23 -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 +89 -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 +43 -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 +21 -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 +25 -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 +65 -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 +85 -0
  85. package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +1 -0
  86. package/models/models/ice-agitator/index.d.ts +4 -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 +13 -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 +7 -0
  93. package/models/models/index.d.ts +11 -0
  94. package/models/models/index.d.ts.map +1 -0
  95. package/models/models/remote-tray/index.d.ts +6 -0
  96. package/models/models/remote-tray/index.d.ts.map +1 -0
  97. package/models/models/remote-tray/remote-tray-container-model.d.ts +12 -0
  98. package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -0
  99. package/models/models/remote-tray/remote-tray-container-registration.d.ts +87 -0
  100. package/models/models/remote-tray/remote-tray-container-registration.d.ts.map +1 -0
  101. package/models/models/remote-tray/remote-tray-model.d.ts +175 -0
  102. package/models/models/remote-tray/remote-tray-model.d.ts.map +1 -0
  103. package/models/models/remote-tray/remote-tray-registration.d.ts +90 -0
  104. package/models/models/remote-tray/remote-tray-registration.d.ts.map +1 -0
  105. package/models/models/remote-tray/types/index.d.ts +10 -0
  106. package/models/models/types/assembly.d.ts +21 -0
  107. package/models/models/types/assembly.d.ts.map +1 -0
  108. package/models/models/types/ingredients.d.ts +33 -0
  109. package/models/models/types/ingredients.d.ts.map +1 -0
  110. package/models/models/types/pumps.d.ts +6 -0
  111. package/models/models/types/pumps.d.ts.map +1 -0
  112. package/models/utils/extension-utils.d.ts +37 -0
  113. package/models/utils/extension-utils.d.ts.map +1 -0
  114. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +19 -0
  115. package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -0
  116. package/models/utils/extensions/assembly/types.d.ts +141 -0
  117. package/models/utils/extensions/assembly/types.d.ts.map +1 -0
  118. package/models/utils/extensions/availability/freestyle-loader.d.ts +31 -0
  119. package/models/utils/extensions/availability/freestyle-loader.d.ts.map +1 -0
  120. package/models/utils/extensions/availability/freestyle-mapper.d.ts +14 -0
  121. package/models/utils/extensions/availability/freestyle-mapper.d.ts.map +1 -0
  122. package/models/utils/extensions/availability/middleware/assets.d.ts +10 -0
  123. package/models/utils/extensions/availability/middleware/assets.d.ts.map +1 -0
  124. package/models/utils/extensions/availability/middleware/beverage-screen.d.ts +14 -0
  125. package/models/utils/extensions/availability/middleware/beverage-screen.d.ts.map +1 -0
  126. package/models/utils/extensions/availability/middleware/beverages.d.ts +10 -0
  127. package/models/utils/extensions/availability/middleware/beverages.d.ts.map +1 -0
  128. package/models/utils/extensions/availability/middleware/brand-screen.d.ts +5 -0
  129. package/models/utils/extensions/availability/middleware/brand-screen.d.ts.map +1 -0
  130. package/models/utils/extensions/availability/middleware/brands.d.ts +10 -0
  131. package/models/utils/extensions/availability/middleware/brands.d.ts.map +1 -0
  132. package/models/utils/extensions/availability/middleware/copy-input.d.ts +4 -0
  133. package/models/utils/extensions/availability/middleware/copy-input.d.ts.map +1 -0
  134. package/models/utils/extensions/availability/middleware/flavors.d.ts +10 -0
  135. package/models/utils/extensions/availability/middleware/flavors.d.ts.map +1 -0
  136. package/models/utils/extensions/availability/middleware/nutrition.d.ts +10 -0
  137. package/models/utils/extensions/availability/middleware/nutrition.d.ts.map +1 -0
  138. package/models/utils/extensions/availability/middleware/related-brands.d.ts +14 -0
  139. package/models/utils/extensions/availability/middleware/related-brands.d.ts.map +1 -0
  140. package/models/utils/extensions/availability/types.d.ts +251 -0
  141. package/models/utils/extensions/availability/types.d.ts.map +1 -0
  142. package/models/utils/extensions/availability/util/locate-brand.d.ts +2 -0
  143. package/models/utils/extensions/availability/util/locate-brand.d.ts.map +1 -0
  144. package/models/utils/extensions/availability/util/process-related-brand.d.ts +4 -0
  145. package/models/utils/extensions/availability/util/process-related-brand.d.ts.map +1 -0
  146. package/models/utils/extensions/ingredient/index.d.ts +2 -0
  147. package/models/utils/extensions/ingredient/index.d.ts.map +1 -0
  148. package/models/utils/extensions/ingredient/model-extension.d.ts +7 -0
  149. package/models/utils/extensions/ingredient/model-extension.d.ts.map +1 -0
  150. package/models/utils/extensions/pourable/select-pourable-mapper.d.ts +6 -0
  151. package/models/utils/extensions/pourable/select-pourable-mapper.d.ts.map +1 -0
  152. package/models/utils/freestyle-registration-manager.d.ts +39 -0
  153. package/models/utils/freestyle-registration-manager.d.ts.map +1 -0
  154. package/models/utils/index.d.ts +5 -0
  155. package/models/utils/index.d.ts.map +1 -0
  156. package/models.cjs +2 -0
  157. package/models.cjs.map +1 -0
  158. package/models.d.ts +1 -0
  159. package/models.js +26 -0
  160. package/models.js.map +1 -0
  161. package/package.json +37 -0
  162. package/ui/contexts/index.d.ts +2 -0
  163. package/ui/contexts/index.d.ts.map +1 -0
  164. package/ui/hooks/freestyle-assembly/index.d.ts +2 -0
  165. package/ui/hooks/freestyle-assembly/index.d.ts.map +1 -0
  166. package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts +4 -0
  167. package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts.map +1 -0
  168. package/ui/hooks/freestyle-nozzle/index.d.ts +2 -0
  169. package/ui/hooks/freestyle-nozzle/index.d.ts.map +1 -0
  170. package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts +4 -0
  171. package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts.map +1 -0
  172. package/ui/hooks/ice-agitator/index.d.ts +3 -0
  173. package/ui/hooks/ice-agitator/index.d.ts.map +1 -0
  174. package/ui/hooks/ice-agitator/use-ice-agitator.d.ts +14 -0
  175. package/ui/hooks/ice-agitator/use-ice-agitator.d.ts.map +1 -0
  176. package/ui/hooks/ice-agitator/with-ice-agitator.d.ts +7 -0
  177. package/ui/hooks/ice-agitator/with-ice-agitator.d.ts.map +1 -0
  178. package/ui/hooks/index.d.ts +5 -0
  179. package/ui/hooks/index.d.ts.map +1 -0
  180. package/ui/hooks/nutrition/index.d.ts +2 -0
  181. package/ui/hooks/nutrition/index.d.ts.map +1 -0
  182. package/ui/hooks/nutrition/use-nutrition-info.d.ts +4 -0
  183. package/ui/hooks/nutrition/use-nutrition-info.d.ts.map +1 -0
  184. package/ui/index.d.ts +3 -0
  185. package/ui/index.d.ts.map +1 -0
  186. package/ui.cjs +2 -0
  187. package/ui.cjs.map +1 -0
  188. package/ui.d.ts +1 -0
  189. package/ui.js +14 -0
  190. package/ui.js.map +1 -0
  191. package/use-nutrition-info-CjXNGbCN.js +52 -0
  192. package/use-nutrition-info-CjXNGbCN.js.map +1 -0
  193. package/use-nutrition-info-DjIGT-mE.cjs +2 -0
  194. package/use-nutrition-info-DjIGT-mE.cjs.map +1 -0
@@ -0,0 +1,84 @@
1
+ import { CarbAgitatorModel, CarbAgitatorOptions } from './types';
2
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * # CarbAgitator
6
+ *
7
+ * The registration bean includes convenience methods for creating and working with CarbAgitatorModel instances.
8
+ *
9
+ * ## type
10
+ * The type property is a string that identifies the model type.
11
+ * 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
12
+ * used when declaring dependencies on models.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ *
17
+ * @kosDependency({modelType: CarbAgitator.type, id: "carbAgitatorId"})
18
+ * private carbAgitatorModel: CarbAgitatorModel;
19
+ * ```
20
+ *
21
+ *
22
+ * ## factory
23
+ *
24
+ * The factory method creates a factory function that can be used to create new CarbAgitatorModel instances.
25
+ *
26
+
27
+ * The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
28
+ *
29
+ * If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
30
+ * in this case and the existing model will be returned in its current state.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * const model = CarbAgitator.factory("carbAgitatorId")({
35
+ * // Add option data
36
+ * });
37
+ * ```
38
+
39
+
40
+ *
41
+ * ## predicate
42
+ *
43
+ * [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a CarbAgitatorModel.
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ *
48
+ * const model: IKosDataModel = ...; // some model
49
+ *
50
+ * if (CarbAgitator.predicate(model)) {
51
+ * // if the function evaluates to true, the model is narrowed down to CarbAgitatorModel
52
+ * // and the compiler will know that the model has the CarbAgitatorModel interface
53
+ * model.updateAvailability(false);
54
+ * }
55
+ * ```
56
+ *
57
+ * ## registration
58
+ *
59
+ * The registration property is an object that can be used to simplify registration of the model with the model registry. The registration object
60
+ * can be spread into the model registration and provides all of the required information to register the model implementation class against the model type.
61
+ *
62
+ *
63
+ * @example
64
+ *
65
+ * In an application registration file you can declare the model registration as follows:
66
+ *
67
+ * **registration.ts**
68
+ * ```typescript
69
+ * import { CarbAgitator } from "@kos-ui/kos-dispenser-model";
70
+ * ...
71
+ * import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
72
+ * export const kosModels: IKosRegistry["models"] = {
73
+ * ...CarbAgitator.registration,
74
+ * };
75
+ * ```
76
+ *
77
+ * ## registration.singleton
78
+
79
+ * The carbAgitator model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
80
+ * If the factory function is called with an ID that already exists, the existing model will be returned.
81
+
82
+ * */
83
+ export declare const CarbAgitator: KosModelRegistrationFactory<CarbAgitatorModel, CarbAgitatorOptions>;
84
+ //# sourceMappingURL=carb-agitator-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carb-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/carb-agitator/carb-agitator-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AAEL,eAAO,MAAM,YAAY,qEAMvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CarbAgitator } from './carb-agitator-registration';
2
+ export type * from './types';
3
+ //# 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/carb-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { IKosIdentifiable } from '@kosdev-code/kos-ui-sdk';
2
+
3
+
4
+ export interface CarbAgitatorOptions {
5
+ name: string;
6
+ path: string;
7
+ }
8
+
9
+ export interface CarbAgitatorModel extends IKosIdentifiable {
10
+ name: string;
11
+ path: string;
12
+ }
13
+
14
+ export {};
@@ -0,0 +1,20 @@
1
+ import { CartridgeAgitatorContainerOptions } from './types';
2
+ import { CartridgeAgitatorModel } from './cartridge-agitator-model';
3
+ import { IKosDataModel, IKosIdentifiable, IKosModelContainer, IKosModelHolder, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ export declare const MODEL_TYPE = "cartridge-agitator-container-model";
6
+ export type CartridgeAgitatorContainerModel = PublicModelInterface<CartridgeAgitatorContainerModelImpl>;
7
+ export declare class CartridgeAgitatorContainerModelImpl implements IKosIdentifiable, IKosModelHolder<CartridgeAgitatorModel>, IKosDataModel {
8
+ id: string;
9
+ private logger;
10
+ private _models;
11
+ constructor(modelId: string, options: CartridgeAgitatorContainerOptions, context: KosCreationContext);
12
+ getModel(id: string): CartridgeAgitatorModel | undefined;
13
+ get models(): IKosModelContainer<CartridgeAgitatorModel>;
14
+ get data(): CartridgeAgitatorModel[];
15
+ addModel(model: CartridgeAgitatorModel): void;
16
+ removeModel(id: string): void;
17
+ init(): Promise<void>;
18
+ load(): Promise<void>;
19
+ }
20
+ //# sourceMappingURL=cartridge-agitator-container-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartridge-agitator-container-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/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"}
@@ -0,0 +1,87 @@
1
+ import { CartridgeAgitatorContainerOptions } from './types';
2
+ import { CartridgeAgitatorContainerModel } from './cartridge-agitator-container-model';
3
+ import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # CartridgeAgitatorContainer
7
+ *
8
+ * The registration bean includes convenience methods for creating and working with CartridgeAgitatorContainerModel 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: CartridgeAgitatorContainer.type, id: "cartridgeAgitatorContainerId"})
19
+ * private cartridgeAgitatorContainerModel: CartridgeAgitatorContainerModel;
20
+ * ```
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
+ * */
86
+ export declare const CartridgeAgitatorContainer: SingletonKosModelRegistrationFactory<CartridgeAgitatorContainerModel, CartridgeAgitatorContainerOptions>;
87
+ //# sourceMappingURL=cartridge-agitator-container-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartridge-agitator-container-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,0BAA0B,0GAOnC,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { CartridgeAgitatorOptions } from './types';
2
+ import { ExternalFutureInterface, IKosDataModel, IKosIdentifiable, KosFutureAwareFull, KosLoggerAware, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ export declare const MODEL_TYPE = "cartridge-agitator-model";
5
+ export type CartridgeAgitatorModel = PublicModelInterface<CartridgeAgitatorModelImpl> & ExternalFutureInterface;
6
+ export declare class CartridgeAgitatorEvents {
7
+ static TOPIC_AGITATION_STARTED: string;
8
+ static TOPIC_AGITATION_ENDED: string;
9
+ }
10
+ export interface CartridgeAgitatorModelImpl extends KosFutureAwareFull, KosLoggerAware {
11
+ }
12
+ export declare class CartridgeAgitatorModelImpl implements IKosDataModel, IKosIdentifiable {
13
+ id: string;
14
+ private agitating;
15
+ path: string;
16
+ statePath: string;
17
+ name: string;
18
+ constructor(modelId: string, options: CartridgeAgitatorOptions);
19
+ get isAgitating(): boolean;
20
+ testAgitate(tracker?: string): Promise<import('@kosdev-code/kos-ui-sdk').FutureResponse>;
21
+ handleAgitation(): void;
22
+ }
23
+ //# sourceMappingURL=cartridge-agitator-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartridge-agitator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/cartridge-agitator/cartridge-agitator-model.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,89 @@
1
+ import { CartridgeAgitatorOptions } from './types';
2
+ import { CartridgeAgitatorModel } from './cartridge-agitator-model';
3
+ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
4
+
5
+ /**
6
+ * # CartridgeAgitator
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
17
+ *
18
+ * import type { CartridgeAgitatorModel } from "./cartridge-agitator-model";
19
+ *
20
+ * @kosDependency({modelType: CartridgeAgitator.type, id: "cartridgeAgitatorId"})
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.
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * const model = CartridgeAgitator.factory("cartridgeAgitatorId")({
38
+ * // Add option data
39
+ * });
40
+ * ```
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
+ * */
88
+ export declare const CartridgeAgitator: KosModelRegistrationFactory<CartridgeAgitatorModel, CartridgeAgitatorOptions>;
89
+ //# sourceMappingURL=cartridge-agitator-registration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartridge-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,iBAAiB,+EAM5B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type { CartridgeAgitatorContainerModel } from './cartridge-agitator-container-model';
2
+ export { CartridgeAgitatorContainer } from './cartridge-agitator-container-registration';
3
+ export { CartridgeAgitatorEvents, type CartridgeAgitatorModel, } from './cartridge-agitator-model';
4
+ export { CartridgeAgitator } from './cartridge-agitator-registration';
5
+ export type * from './types';
6
+ //# 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/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"}
@@ -0,0 +1,8 @@
1
+ import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
2
+
3
+ /**
4
+ * @category Service
5
+ * Retrieves the initial screen data.
6
+ */
7
+ export declare const agitate: (path: string, tracker: string) => Promise<FutureResponse>;
8
+ //# sourceMappingURL=cartridge-agitator-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartridge-agitator-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/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,SAAgB,MAAM,WAAW,MAAM,4BAY1D,CAAC"}
@@ -0,0 +1,14 @@
1
+ // --------------- CartridgeAgitator ---------------
2
+
3
+ export interface CartridgeAgitatorOptions {
4
+ name: string;
5
+ path: string;
6
+ statePath: string;
7
+ }
8
+
9
+ export interface AgitationRequiredTroubleIface {
10
+ agitationRequired: boolean;
11
+ }
12
+
13
+ // --------------- CartridgeAgitatorContainer ---------------
14
+ export interface CartridgeAgitatorContainerOptions {}
@@ -0,0 +1,43 @@
1
+ import { FreestyleHolderModelExt, FreestyleModelAssemblyExt } from '../types/assembly';
2
+ import { RemoteTrayContainerModel } from '../remote-tray';
3
+ import { IceAgitatorModel } from '../ice-agitator';
4
+ import { CartridgeAgitatorContainerModel, CartridgeAgitatorModel } from '../cartridge-agitator';
5
+ import { CarbAgitatorModel } from '../carb-agitator';
6
+ import { AssemblyModel, AssemblyOptions, BoardModel, HolderModel, PumpModel } from '@kosdev-code/kos-dispense-sdk';
7
+ import { FreestyleAssemblyOptions } from './types';
8
+ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
9
+
10
+ export declare const MODEL_TYPE = "freestyle-assembly-model";
11
+ export declare const FEATURE_SUPPORTS_ICE = "iceAgitator";
12
+ export declare const FEATURE_SUPPORTS_CARB = "carbAgitator";
13
+ export declare const FEATURE_SUPPORTS_REMOTE_TRAYS = "remoteTrays";
14
+ export type FreestyleAssemblyModel = PublicModelInterface<FreestyleAssemblyModelImpl> & AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt>;
15
+ export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosIdentifiable, AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt> {
16
+ id: string;
17
+ private logger;
18
+ private assembly;
19
+ private _remoteTrays;
20
+ constructor(modelId: string, options: FreestyleAssemblyOptions, context: KosCreationContext);
21
+ get holderGroups(): string[];
22
+ get nozzlePaths(): string[];
23
+ get allHolders(): HolderModel<FreestyleHolderModelExt>[];
24
+ getHoldersByGroup(group: string): HolderModel<FreestyleHolderModelExt>[];
25
+ getHoldersByNozzle(nozzlePath: string): HolderModel<FreestyleHolderModelExt>[];
26
+ get pumpsByNozzle(): Record<string, PumpModel<any>[]>;
27
+ get pumpPaths(): string[];
28
+ get boards(): BoardModel<any>[];
29
+ updateModel(options: AssemblyOptions): void;
30
+ get iceAgitator(): IceAgitatorModel;
31
+ get carbAgitator(): CarbAgitatorModel;
32
+ get cartridgeAgitators(): CartridgeAgitatorContainerModel;
33
+ get defaultCartridgeAgitator(): CartridgeAgitatorModel;
34
+ get cartridgeAgitatorModels(): CartridgeAgitatorModel[];
35
+ get hasCartridgeAgitators(): boolean;
36
+ get remoteTrays(): RemoteTrayContainerModel;
37
+ get hasRemoteTrays(): boolean;
38
+ get supportsRemoteTrays(): boolean;
39
+ get supportsIce(): boolean;
40
+ get supportsCarb(): boolean;
41
+ init(): Promise<void>;
42
+ }
43
+ //# sourceMappingURL=freestyle-assembly-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,qBAAqB,iBAAiB,CAAC;AACpD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAChC,oBAAoB,CAAC,0BAA0B,CAAC,GAC9C,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC,CAAC;AAEtE,qBAEa,0BACX,YACE,aAAa,EACb,gBAAgB,EAChB,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;IAEnE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,QAAQ,CAGd;IAGF,OAAO,CAAC,YAAY,CAA4B;gBAG9C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,kBAAkB;IAW7B,IAAI,YAAY,IAAI,MAAM,EAAE,CAE3B;IACD,IAAI,WAAW,IAAI,MAAM,EAAE,CAE1B;IACD,IAAI,UAAU,IAAI,WAAW,CAAC,uBAAuB,CAAC,EAAE,CAEvD;IACD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGxE,kBAAkB,CAChB,UAAU,EAAE,MAAM,GACjB,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGzC,IAAI,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAEpD;IACD,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAE9B;IACD,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAG3C,IAAI,WAAW,IAAI,gBAAgB,CAElC;IACD,IAAI,YAAY,IAAI,iBAAiB,CAEpC;IAED,IAAI,kBAAkB,IAAI,+BAA+B,CAExD;IAED,IAAI,wBAAwB,IAAI,sBAAsB,CAErD;IACD,IAAI,uBAAuB,IAAI,sBAAsB,EAAE,CAEtD;IAED,IAAI,qBAAqB,IAAI,OAAO,CAEnC;IAED,IAAI,WAAW,IAAI,wBAAwB,CAE1C;IAED,IAAI,cAAc,IAAI,OAAO,CAI5B;IAID,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IACD,IAAI,WAAW,YAEd;IAED,IAAI,YAAY,YAEf;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
@@ -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,21 @@
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
+ private context;
13
+ future?: IFutureModel;
14
+ constructor(modelId: string, options: FreestyleHolderOptions, context: KosCreationContext);
15
+ get agitated(): boolean | undefined;
16
+ agitate(): Promise<IFutureModel<Record<string, unknown>> | undefined>;
17
+ get isRemote(): boolean;
18
+ init(): Promise<void>;
19
+ load(): Promise<void>;
20
+ }
21
+ //# 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,EAGhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AASjE,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,OAAO,CAAC,OAAO,CAAa;IAE5B,MAAM,CAAC,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,sBAAsB,EAC/B,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,QAAQ,wBAEX;IACK,OAAO;IAuBb,IAAI,QAAQ,IAAI,OAAO,CAOtB;IAIK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}