@kosdev-code/kos-freestyle-sdk 0.1.0-dev.5873 → 0.1.0-next.1000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extension-utils-BLjVB2bu.cjs +344 -0
- package/extension-utils-BLjVB2bu.cjs.map +1 -0
- package/extension-utils-CV3CeJXI.js +345 -0
- package/extension-utils-CV3CeJXI.js.map +1 -0
- package/index.cjs +42 -1
- package/index.cjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +40 -48
- package/index.js.map +1 -1
- package/models/constants/index.d.ts.map +1 -1
- package/models/index.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +14 -80
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
- package/models/models/agitation-required-trouble/types/index.d.ts +1 -3
- package/models/models/carb-agitator/carb-agitator-model.d.ts +4 -24
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
- package/models/models/carb-agitator/index.d.ts.map +1 -1
- package/models/models/carb-agitator/services/carb-tank-services.d.ts +1 -15
- package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts +2 -3
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts +12 -77
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +1 -2
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -1
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts +12 -79
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts.map +1 -1
- package/models/models/cartridge-agitator/index.d.ts.map +1 -1
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts +0 -1
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts.map +1 -1
- package/models/models/cgp-pump/cgp-pump-model.d.ts +3 -4
- package/models/models/cgp-pump/cgp-pump-model.d.ts.map +1 -1
- package/models/models/cgp-pump/index.d.ts.map +1 -1
- package/models/models/cgp-pump/types/index.d.ts +1 -3
- package/models/models/fcm-pump/fcm-pump-model.d.ts +8 -5
- package/models/models/fcm-pump/fcm-pump-model.d.ts.map +1 -1
- package/models/models/fcm-pump/fcm-pump-registration.d.ts +12 -77
- package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +1 -1
- package/models/models/fcm-pump/index.d.ts.map +1 -1
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts +1 -2
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +1 -1
- package/models/models/fcm-pump/services/index.d.ts.map +1 -1
- package/models/models/fcm-pump/types/index.d.ts +1 -3
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +7 -8
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts +12 -79
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts.map +1 -1
- package/models/models/freestyle-assembly/index.d.ts.map +1 -1
- package/models/models/freestyle-assembly/types/index.d.ts +1 -3
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts +2 -3
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts.map +1 -1
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts +12 -77
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts.map +1 -1
- package/models/models/freestyle-holder/index.d.ts.map +1 -1
- package/models/models/freestyle-holder/types/index.d.ts +1 -3
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +2 -3
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts +12 -77
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/index.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/services/index.d.ts.map +1 -1
- package/models/models/freestyle-nozzle/types/index.d.ts +1 -3
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts +2 -3
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts.map +1 -1
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts +12 -77
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts.map +1 -1
- package/models/models/freestyle-pump/index.d.ts.map +1 -1
- package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts.map +1 -1
- package/models/models/freestyle-pump/services/index.d.ts.map +1 -1
- package/models/models/freestyle-pump/types/index.d.ts +1 -3
- package/models/models/ice-agitator/ice-agitator-model.d.ts +2 -3
- package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -1
- package/models/models/ice-agitator/index.d.ts.map +1 -1
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts +0 -1
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts.map +1 -1
- package/models/models/ice-agitator/services/index.d.ts.map +1 -1
- package/models/models/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts +8 -5
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +1 -1
- package/models/models/lfcv-pump/types/index.d.ts +1 -3
- package/models/models/remote-tray/index.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-container-model.d.ts +1 -2
- package/models/models/remote-tray/remote-tray-container-model.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-container-registration.d.ts +12 -77
- package/models/models/remote-tray/remote-tray-container-registration.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-model.d.ts +11 -93
- package/models/models/remote-tray/remote-tray-model.d.ts.map +1 -1
- package/models/models/remote-tray/remote-tray-registration.d.ts +12 -80
- package/models/models/remote-tray/remote-tray-registration.d.ts.map +1 -1
- package/models/models/spm-pump/index.d.ts.map +1 -1
- package/models/models/spm-pump/services/index.d.ts.map +1 -1
- package/models/models/spm-pump/services/spm-pump-services.d.ts +0 -1
- package/models/models/spm-pump/services/spm-pump-services.d.ts.map +1 -1
- package/models/models/spm-pump/spm-pump-model.d.ts +7 -4
- package/models/models/spm-pump/spm-pump-model.d.ts.map +1 -1
- package/models/models/spm-pump/spm-pump-registration.d.ts +12 -77
- package/models/models/spm-pump/spm-pump-registration.d.ts.map +1 -1
- package/models/models/spm-pump/types/index.d.ts +1 -3
- package/models/models/types/assembly.d.ts +3 -4
- package/models/models/types/assembly.d.ts.map +1 -1
- package/models/models/types/ingredients.d.ts +0 -1
- package/models/models/types/ingredients.d.ts.map +1 -1
- package/models/models/types/pumps.d.ts +0 -1
- package/models/models/types/pumps.d.ts.map +1 -1
- package/models/utils/extension-utils.d.ts +2 -3
- package/models/utils/extension-utils.d.ts.map +1 -1
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +2 -3
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
- package/models/utils/extensions/assembly/types.d.ts +6 -90
- package/models/utils/extensions/assembly/types.d.ts.map +1 -1
- package/models/utils/extensions/availability/freestyle-loader.d.ts +1 -2
- package/models/utils/extensions/availability/freestyle-loader.d.ts.map +1 -1
- package/models/utils/extensions/availability/freestyle-mapper.d.ts +2 -3
- package/models/utils/extensions/availability/freestyle-mapper.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/assets.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/assets.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/beverages.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/beverages.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/brands.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/brands.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/copy-input.d.ts +0 -1
- package/models/utils/extensions/availability/middleware/copy-input.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/flavors.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/flavors.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/nutrition.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/nutrition.d.ts.map +1 -1
- package/models/utils/extensions/availability/middleware/related-brands.d.ts +1 -2
- package/models/utils/extensions/availability/middleware/related-brands.d.ts.map +1 -1
- package/models/utils/extensions/availability/types.d.ts.map +1 -1
- package/models/utils/extensions/availability/util/locate-brand.d.ts.map +1 -1
- package/models/utils/extensions/availability/util/process-related-brand.d.ts +0 -1
- package/models/utils/extensions/availability/util/process-related-brand.d.ts.map +1 -1
- package/models/utils/extensions/ingredient/index.d.ts.map +1 -1
- package/models/utils/extensions/ingredient/model-extension.d.ts +1 -2
- package/models/utils/extensions/ingredient/model-extension.d.ts.map +1 -1
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts +0 -1
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts.map +1 -1
- package/models/utils/extensions/trouble/trouble-utils.d.ts +0 -1
- package/models/utils/extensions/trouble/trouble-utils.d.ts.map +1 -1
- package/models/utils/freestyle-registration-manager.d.ts +22 -13
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
- package/models/utils/index.d.ts.map +1 -1
- package/models/utils/openapi-index.d.ts +2 -2
- package/models/utils/openapi-index.d.ts.map +1 -1
- package/models/utils/services/freestyle/1.6.5/service.d.ts +34 -35
- package/models/utils/services/freestyle/1.6.5/service.d.ts.map +1 -1
- package/models/utils/services/freestyle/1.8.1/service.d.ts +34 -35
- package/models/utils/services/freestyle/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/freestyle/daily/openapi.d.ts +477 -475
- package/models/utils/services/freestyle/daily/service.d.ts +127 -37
- package/models/utils/services/freestyle/daily/service.d.ts.map +1 -1
- package/models/utils/services/handle/1.8.1/service.d.ts +34 -35
- package/models/utils/services/handle/1.8.1/service.d.ts.map +1 -1
- package/models/utils/services/handle/daily/openapi.d.ts +102 -110
- package/models/utils/services/handle/daily/service.d.ts +128 -38
- package/models/utils/services/handle/daily/service.d.ts.map +1 -1
- package/models/utils/services-index.d.ts +2 -6
- package/models/utils/services-index.d.ts.map +1 -1
- package/models.cjs +34 -1
- package/models.cjs.map +1 -1
- package/models.d.ts +1 -0
- package/models.js +31 -37
- package/models.js.map +1 -1
- package/package.json +9 -10
- package/service-Dfj0KrIU.cjs +2323 -0
- package/service-Dfj0KrIU.cjs.map +1 -0
- package/service-VBsCe4jt.js +2324 -0
- package/service-VBsCe4jt.js.map +1 -0
- package/ui/contexts/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-assembly/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts +0 -1
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts.map +1 -1
- package/ui/hooks/freestyle-nozzle/index.d.ts.map +1 -1
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts +0 -1
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/index.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts +1 -2
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts.map +1 -1
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts +0 -1
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts.map +1 -1
- package/ui/hooks/index.d.ts.map +1 -1
- package/ui/hooks/nutrition/index.d.ts.map +1 -1
- package/ui/hooks/nutrition/use-nutrition-info.d.ts +0 -1
- package/ui/hooks/nutrition/use-nutrition-info.d.ts.map +1 -1
- package/ui/index.d.ts.map +1 -1
- package/ui.cjs +8 -1
- package/ui.cjs.map +1 -1
- package/ui.d.ts +1 -0
- package/ui.js +6 -11
- package/ui.js.map +1 -1
- package/use-nutrition-info-6ijRu88p.cjs +67 -0
- package/use-nutrition-info-6ijRu88p.cjs.map +1 -0
- package/use-nutrition-info-Rc_SHgBZ.js +68 -0
- package/use-nutrition-info-Rc_SHgBZ.js.map +1 -0
- package/extension-utils-CFD54lr3.js +0 -237
- package/extension-utils-CFD54lr3.js.map +0 -1
- package/extension-utils-D3-Gwy8G.cjs +0 -2
- package/extension-utils-D3-Gwy8G.cjs.map +0 -1
- package/kos-models.json +0 -180
- package/service-8u3gW6pr.cjs +0 -2
- package/service-8u3gW6pr.cjs.map +0 -1
- package/service-DildzPxj.js +0 -1910
- package/service-DildzPxj.js.map +0 -1
- package/use-nutrition-info-DMKLi-5k.cjs +0 -2
- package/use-nutrition-info-DMKLi-5k.cjs.map +0 -1
- package/use-nutrition-info-DP_JHkR0.js +0 -52
- package/use-nutrition-info-DP_JHkR0.js.map +0 -1
|
@@ -1,87 +1,22 @@
|
|
|
1
|
-
import { FcmPumpModel } from './fcm-pump-model';
|
|
2
|
-
import { FcmPumpOptions } from './types';
|
|
3
1
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FcmPumpOptions } from './types';
|
|
3
|
+
import { FcmPumpModel } from './fcm-pump-model';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* The registration bean includes convenience methods for creating and working with FcmPumpModel 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: FcmPump.type, id: "fcmPumpId"})
|
|
19
|
-
* private fcmPumpModel: FcmPumpModel;
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* ## factory
|
|
24
|
-
*
|
|
25
|
-
* The factory method creates a factory function that can be used to create new FcmPumpModel 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 = FcmPump.factory("fcmPumpId")({
|
|
36
|
-
* // Add option data
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
|
|
40
|
-
|
|
5
|
+
* Registration bean for {@link FcmPumpModel}.
|
|
41
6
|
*
|
|
42
|
-
*
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: curried factory, `FcmPump.factory(id)(options)`. Returns the existing model when the id is already in use and ignores the options.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `FcmPumpModel`.
|
|
10
|
+
* - `instance(id)`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
43
12
|
*
|
|
44
|
-
*
|
|
13
|
+
* FcmPump is not a singleton: each id has its own instance. `KosModelRegistry.freestyle.models()` registers it.
|
|
45
14
|
*
|
|
46
15
|
* @example
|
|
47
16
|
* ```typescript
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
* if (FcmPump.predicate(model)) {
|
|
52
|
-
* // if the function evaluates to true, the model is narrowed down to FcmPumpModel
|
|
53
|
-
* // and the compiler will know that the model has the FcmPumpModel interface
|
|
54
|
-
* model.updateAvailability(false);
|
|
55
|
-
* }
|
|
17
|
+
* @kosDependency({ modelType: FcmPump.type, id: "fcmPumpId" })
|
|
18
|
+
* private fcmPump!: FcmPumpModel;
|
|
56
19
|
* ```
|
|
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 { FcmPump } 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(FcmPump);
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* ## registration.singleton
|
|
81
|
-
|
|
82
|
-
* The fcmPump 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
|
-
* */
|
|
20
|
+
*/
|
|
86
21
|
export declare const FcmPump: KosModelRegistrationFactory<FcmPumpModel, FcmPumpOptions>;
|
|
87
22
|
//# sourceMappingURL=fcm-pump-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm-pump-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"fcm-pump-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/fcm-pump/fcm-pump-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,2DAMlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/fcm-pump/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,YAAY,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
-
|
|
3
2
|
export type ElectricalTestErrorType = "errEEPROM" | "unknownError";
|
|
4
3
|
export type ElectricalTestData = {
|
|
5
4
|
error?: ElectricalTestErrorType;
|
|
@@ -13,5 +12,5 @@ export declare const performElectricalTest: (path: string) => Promise<Electrical
|
|
|
13
12
|
export declare const performPreCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
14
13
|
export declare const performCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
15
14
|
export declare const performVerify: (pump: string, volume: string, tracker?: string) => Promise<FutureResponse>;
|
|
16
|
-
export declare const performComplete: (pump: string, volume1: string, volume2: string) => Promise<string
|
|
15
|
+
export declare const performComplete: (pump: string, volume1: string, volume2: string) => Promise<string>;
|
|
17
16
|
//# sourceMappingURL=fcm-pump-services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm-pump-services.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"fcm-pump-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/fcm-pump/services/fcm-pump-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAWjC,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,cAAc,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG;IACnC,uBAAuB,GAAG,SAAS;IACnC,kBAAkB;CACnB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,MAAM,MAAM,KACX,OAAO,CAAC,sBAAsB,CAoChC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAU,MAAM,MAAM,EAAE,UAAU,MAAM,4BAoCvE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,EAAE,UAAU,MAAM,4BAoCpE,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,UAAU,MAAM,4BAqCjB,CAAC;AASF,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,SAAS,MAAM,EACf,SAAS,MAAM,oBAuBhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/fcm-pump/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { PumpModel, PumpOptions } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type FcmPumpOptions = IKosCompanionOptions<PumpModel, PumpOptions>;
|
|
@@ -1,12 +1,11 @@
|
|
|
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
1
|
import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
9
|
-
|
|
2
|
+
import { FreestyleAssemblyOptions } from './types';
|
|
3
|
+
import { AssemblyModel, AssemblyOptions, BoardModel, HolderModel, PumpModel } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
import { CarbAgitatorModel } from '../carb-agitator';
|
|
5
|
+
import { CartridgeAgitatorContainerModel, CartridgeAgitatorModel } from '../cartridge-agitator';
|
|
6
|
+
import { IceAgitatorModel } from '../ice-agitator';
|
|
7
|
+
import { RemoteTrayContainerModel } from '../remote-tray';
|
|
8
|
+
import { FreestyleHolderModelExt, FreestyleModelAssemblyExt } from '../types/assembly';
|
|
10
9
|
export declare const MODEL_TYPE = "freestyle-assembly-model";
|
|
11
10
|
export declare const FEATURE_SUPPORTS_ICE = "iceAgitator";
|
|
12
11
|
export declare const FEATURE_SUPPORTS_CARB = "carbTank";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;AAQjC,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,EAAgB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,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,aAAa,CAAC;AAChD,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;IAEX,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,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,QAAQ,IAAI,iBAAiB,GAAG,SAAS,CAE5C;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;IAIrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
|
|
@@ -1,89 +1,22 @@
|
|
|
1
|
-
import { FreestyleAssemblyOptions } from './types';
|
|
2
|
-
import { FreestyleAssemblyModel } from './freestyle-assembly-model';
|
|
3
1
|
import { SingletonKosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestyleAssemblyModel } from './freestyle-assembly-model';
|
|
3
|
+
import { FreestyleAssemblyOptions } from './types';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
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
|
|
5
|
+
* Registration bean for {@link FreestyleAssemblyModel}.
|
|
17
6
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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.
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: `FreestyleAssembly.factory(options)` returns the single instance, creating it on the first call.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `FreestyleAssemblyModel`.
|
|
10
|
+
* - `instance()`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
29
12
|
*
|
|
30
|
-
*
|
|
31
|
-
* in this case and the existing model will be returned in its current state.
|
|
13
|
+
* FreestyleAssembly is a singleton. `KosModelRegistry.freestyle.models()` registers it.
|
|
32
14
|
*
|
|
33
15
|
* @example
|
|
34
16
|
* ```typescript
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* });
|
|
17
|
+
* @kosDependency({ modelType: FreestyleAssembly.type })
|
|
18
|
+
* private freestyleAssembly!: FreestyleAssemblyModel;
|
|
38
19
|
* ```
|
|
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
|
-
* */
|
|
20
|
+
*/
|
|
88
21
|
export declare const FreestyleAssembly: SingletonKosModelRegistrationFactory<FreestyleAssemblyModel, FreestyleAssemblyOptions>;
|
|
89
22
|
//# sourceMappingURL=freestyle-assembly-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-assembly-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-assembly-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,wFAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/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"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { AssemblyModel, AssemblyOptions } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type FreestyleAssemblyOptions = IKosCompanionOptions<
|
|
6
4
|
AssemblyModel,
|
|
7
5
|
AssemblyOptions
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { HolderModel } from '@kosdev-code/kos-dispense-sdk';
|
|
2
|
-
import { FreestyleHolderOptions } from './types';
|
|
3
1
|
import { FutureDelegate, IFutureModel, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestyleHolderOptions } from './types';
|
|
3
|
+
import { HolderModel } from '@kosdev-code/kos-dispense-sdk';
|
|
5
4
|
export declare const MODEL_TYPE = "freestyle-holder-model";
|
|
6
5
|
export declare const freestyleHolderFactory: (holder: HolderModel) => "freestyle-holder-model" | undefined;
|
|
7
6
|
export type FreestyleHolderModel = PublicModelInterface<FreestyleHolderModelImpl>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-holder-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-holder-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;AASjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAajE,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAoCnD,eAAO,MAAM,sBAAsB,GAAI,QAAQ,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,OAAO,IACwC,MAAM,GAAG,SAAS,CACpE;IACD,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"}
|
|
@@ -1,87 +1,22 @@
|
|
|
1
|
-
import { FreestyleHolderOptions } from './types';
|
|
2
|
-
import { FreestyleHolderModel } from './freestyle-holder-model';
|
|
3
1
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestyleHolderModel } from './freestyle-holder-model';
|
|
3
|
+
import { FreestyleHolderOptions } from './types';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
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
|
-
|
|
5
|
+
* Registration bean for {@link FreestyleHolderModel}.
|
|
41
6
|
*
|
|
42
|
-
*
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: curried factory, `FreestyleHolder.factory(id)(options)`. Returns the existing model when the id is already in use and ignores the options.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `FreestyleHolderModel`.
|
|
10
|
+
* - `instance(id)`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
43
12
|
*
|
|
44
|
-
*
|
|
13
|
+
* FreestyleHolder is not a singleton: each id has its own instance. `KosModelRegistry.freestyle.models()` registers it.
|
|
45
14
|
*
|
|
46
15
|
* @example
|
|
47
16
|
* ```typescript
|
|
48
|
-
*
|
|
49
|
-
*
|
|
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
|
-
* }
|
|
17
|
+
* @kosDependency({ modelType: FreestyleHolder.type, id: "freestyleHolderId" })
|
|
18
|
+
* private freestyleHolder!: FreestyleHolderModel;
|
|
56
19
|
* ```
|
|
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
|
-
* */
|
|
20
|
+
*/
|
|
86
21
|
export declare const FreestyleHolder: KosModelRegistrationFactory<FreestyleHolderModel, FreestyleHolderOptions>;
|
|
87
22
|
//# sourceMappingURL=freestyle-holder-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-holder-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-holder-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,2EAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/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"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { HolderModel, HolderOptions } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type FreestyleHolderOptions = IKosCompanionOptions<
|
|
6
4
|
HolderModel,
|
|
7
5
|
HolderOptions
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { FreestyleNozzleOptions } from './types';
|
|
2
|
-
import { FreestyleNutritionInfoResponse } from './services';
|
|
3
1
|
import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestyleNutritionInfoResponse } from './services';
|
|
3
|
+
import { FreestyleNozzleOptions } from './types';
|
|
5
4
|
export declare const MODEL_TYPE = "freestyle-nozzle-model";
|
|
6
5
|
export type FreestyleNozzleModel = PublicModelInterface<FreestyleNozzleModelImpl>;
|
|
7
6
|
export declare class FreestyleNozzleModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-nozzle-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-nozzle-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;gBAEtD,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;IAED,IAAI,gBAAgB;;;MAEnB;IAOK,uBAAuB;IA0BvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,MAAM,IAAI,IAAI;IAGR,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -1,87 +1,22 @@
|
|
|
1
|
-
import { FreestyleNozzleOptions } from './types';
|
|
2
|
-
import { FreestyleNozzleModel } from './freestyle-nozzle-model';
|
|
3
1
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestyleNozzleModel } from './freestyle-nozzle-model';
|
|
3
|
+
import { FreestyleNozzleOptions } from './types';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
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
|
-
|
|
5
|
+
* Registration bean for {@link FreestyleNozzleModel}.
|
|
41
6
|
*
|
|
42
|
-
*
|
|
7
|
+
* - `type`: the model type, used by the model registry and in `@kosDependency` declarations.
|
|
8
|
+
* - `factory`: curried factory, `FreestyleNozzle.factory(id)(options)`. Returns the existing model when the id is already in use and ignores the options.
|
|
9
|
+
* - `guard`: type guard that narrows an `IKosDataModel` to `FreestyleNozzleModel`.
|
|
10
|
+
* - `instance(id)`: reads the model, or builds it from options.
|
|
11
|
+
* - `register()`: registers the model, and any related models, with the model registry.
|
|
43
12
|
*
|
|
44
|
-
*
|
|
13
|
+
* FreestyleNozzle is not a singleton: each id has its own instance. `KosModelRegistry.freestyle.models()` registers it.
|
|
45
14
|
*
|
|
46
15
|
* @example
|
|
47
16
|
* ```typescript
|
|
48
|
-
*
|
|
49
|
-
*
|
|
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
|
-
* }
|
|
17
|
+
* @kosDependency({ modelType: FreestyleNozzle.type, id: "freestyleNozzleId" })
|
|
18
|
+
* private freestyleNozzle!: FreestyleNozzleModel;
|
|
56
19
|
* ```
|
|
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
|
-
* */
|
|
20
|
+
*/
|
|
86
21
|
export declare const FreestyleNozzle: KosModelRegistrationFactory<FreestyleNozzleModel, FreestyleNozzleOptions>;
|
|
87
22
|
//# sourceMappingURL=freestyle-nozzle-registration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-nozzle-registration.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-nozzle-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/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;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,2EAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-freestyle-sdk/src/models/models/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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-nozzle-services.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-nozzle-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/freestyle-nozzle/services/freestyle-nozzle-services.ts"],"names":[],"mappings":"AAgBA,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,GACpC,iBAAiB,MAAM,EACvB,YAAY,MAAM,EAClB,SAAS,MAAM,EAAE,EACjB,gBAAiC,4CA6BlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/kos-freestyle-sdk/src/models/models/freestyle-nozzle/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
2
1
|
import { NozzleModel, NozzleOptions } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { IKosCompanionOptions } from '@kosdev-code/kos-ui-sdk';
|
|
5
3
|
export type FreestyleNozzleOptions = IKosCompanionOptions<
|
|
6
4
|
NozzleModel,
|
|
7
5
|
NozzleOptions
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ReplacePumpData, ReplacePumpErrorType } from './services';
|
|
2
|
-
import { FreestylePumpOptions } from './types';
|
|
3
1
|
import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
-
|
|
2
|
+
import { FreestylePumpOptions } from './types';
|
|
3
|
+
import { ReplacePumpData, ReplacePumpErrorType } from './services';
|
|
5
4
|
export declare const MODEL_TYPE = "freestyle-pump-model";
|
|
6
5
|
export type FreestylePumpModel = PublicModelInterface<FreestylePumpModelImpl>;
|
|
7
6
|
export declare class FreestylePumpModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-pump-model.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"freestyle-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/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"}
|