@kosdev-code/kos-ddk-models 2.0.0
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/constants.d.ts +3 -0
- package/constants.d.ts.map +1 -0
- package/index.d.ts +30 -0
- package/index.d.ts.map +1 -0
- package/index.js +1 -0
- package/index.mjs +2609 -0
- package/lib/agitation-control/agitation-control-model.d.ts +50 -0
- package/lib/agitation-control/agitation-control-model.d.ts.map +1 -0
- package/lib/agitation-control/agitation-control-registration.d.ts +89 -0
- package/lib/agitation-control/agitation-control-registration.d.ts.map +1 -0
- package/lib/agitation-control/index.d.ts +4 -0
- package/lib/agitation-control/index.d.ts.map +1 -0
- package/lib/agitation-control/types/index.d.ts +7 -0
- package/lib/animation/animation-model.d.ts +14 -0
- package/lib/animation/animation-model.d.ts.map +1 -0
- package/lib/animation/animation-registration.d.ts +86 -0
- package/lib/animation/animation-registration.d.ts.map +1 -0
- package/lib/animation/index.d.ts +4 -0
- package/lib/animation/index.d.ts.map +1 -0
- package/lib/animation/services/animation-services.d.ts +10 -0
- package/lib/animation/services/animation-services.d.ts.map +1 -0
- package/lib/animation/services/index.d.ts +2 -0
- package/lib/animation/services/index.d.ts.map +1 -0
- package/lib/animation/types/index.d.ts +14 -0
- package/lib/application/application-model.d.ts +33 -0
- package/lib/application/application-model.d.ts.map +1 -0
- package/lib/application/application-registration.d.ts +86 -0
- package/lib/application/application-registration.d.ts.map +1 -0
- package/lib/application/index.d.ts +4 -0
- package/lib/application/index.d.ts.map +1 -0
- package/lib/application/services/application-services.d.ts +29 -0
- package/lib/application/services/application-services.d.ts.map +1 -0
- package/lib/application/services/index.d.ts +2 -0
- package/lib/application/services/index.d.ts.map +1 -0
- package/lib/application/types/index.d.ts +31 -0
- package/lib/auth/auth-model.d.ts +17 -0
- package/lib/auth/auth-model.d.ts.map +1 -0
- package/lib/auth/auth-registration.d.ts +84 -0
- package/lib/auth/auth-registration.d.ts.map +1 -0
- package/lib/auth/index.d.ts +4 -0
- package/lib/auth/index.d.ts.map +1 -0
- package/lib/auth/services/auth-services.d.ts +10 -0
- package/lib/auth/services/auth-services.d.ts.map +1 -0
- package/lib/auth/services/index.d.ts +2 -0
- package/lib/auth/services/index.d.ts.map +1 -0
- package/lib/auth/types/index.d.ts +12 -0
- package/lib/carb-water/carb-water-model.d.ts +18 -0
- package/lib/carb-water/carb-water-model.d.ts.map +1 -0
- package/lib/carb-water/carb-water-registration.d.ts +85 -0
- package/lib/carb-water/carb-water-registration.d.ts.map +1 -0
- package/lib/carb-water/index.d.ts +4 -0
- package/lib/carb-water/index.d.ts.map +1 -0
- package/lib/carb-water/services/carb-water-services.d.ts +6 -0
- package/lib/carb-water/services/carb-water-services.d.ts.map +1 -0
- package/lib/carb-water/services/index.d.ts +2 -0
- package/lib/carb-water/services/index.d.ts.map +1 -0
- package/lib/carb-water/types/index.d.ts +1 -0
- package/lib/copy-logs/copy-logs-model.d.ts +45 -0
- package/lib/copy-logs/copy-logs-model.d.ts.map +1 -0
- package/lib/copy-logs/copy-logs-registration.d.ts +89 -0
- package/lib/copy-logs/copy-logs-registration.d.ts.map +1 -0
- package/lib/copy-logs/index.d.ts +5 -0
- package/lib/copy-logs/index.d.ts.map +1 -0
- package/lib/copy-logs/services/copy-logs-services.d.ts +22 -0
- package/lib/copy-logs/services/copy-logs-services.d.ts.map +1 -0
- package/lib/copy-logs/services/index.d.ts +2 -0
- package/lib/copy-logs/services/index.d.ts.map +1 -0
- package/lib/copy-logs/types/index.d.ts +8 -0
- package/lib/dashboard-operations/dashboard-operations-model.d.ts +28 -0
- package/lib/dashboard-operations/dashboard-operations-model.d.ts.map +1 -0
- package/lib/dashboard-operations/dashboard-operations-registration.d.ts +86 -0
- package/lib/dashboard-operations/dashboard-operations-registration.d.ts.map +1 -0
- package/lib/dashboard-operations/index.d.ts +4 -0
- package/lib/dashboard-operations/index.d.ts.map +1 -0
- package/lib/dashboard-operations/services/dashboard-operations-services.d.ts +7 -0
- package/lib/dashboard-operations/services/dashboard-operations-services.d.ts.map +1 -0
- package/lib/dashboard-operations/services/index.d.ts +2 -0
- package/lib/dashboard-operations/services/index.d.ts.map +1 -0
- package/lib/dashboard-operations/types/index.d.ts +21 -0
- package/lib/dispenser/dispenser-model.d.ts +13 -0
- package/lib/dispenser/dispenser-model.d.ts.map +1 -0
- package/lib/dispenser/dispenser-registration.d.ts +86 -0
- package/lib/dispenser/dispenser-registration.d.ts.map +1 -0
- package/lib/dispenser/index.d.ts +4 -0
- package/lib/dispenser/index.d.ts.map +1 -0
- package/lib/dispenser/services/dispenser-services.d.ts +10 -0
- package/lib/dispenser/services/dispenser-services.d.ts.map +1 -0
- package/lib/dispenser/services/index.d.ts +2 -0
- package/lib/dispenser/services/index.d.ts.map +1 -0
- package/lib/dispenser/types/index.d.ts +9 -0
- package/lib/dispenser-info/dispenser-info-model.d.ts +13 -0
- package/lib/dispenser-info/dispenser-info-model.d.ts.map +1 -0
- package/lib/dispenser-info/dispenser-info-registration.d.ts +84 -0
- package/lib/dispenser-info/dispenser-info-registration.d.ts.map +1 -0
- package/lib/dispenser-info/index.d.ts +4 -0
- package/lib/dispenser-info/index.d.ts.map +1 -0
- package/lib/dispenser-info/services/dispenser-info-services.d.ts +10 -0
- package/lib/dispenser-info/services/dispenser-info-services.d.ts.map +1 -0
- package/lib/dispenser-info/services/index.d.ts +2 -0
- package/lib/dispenser-info/services/index.d.ts.map +1 -0
- package/lib/dispenser-info/types/index.d.ts +10 -0
- package/lib/door/door-model.d.ts +20 -0
- package/lib/door/door-model.d.ts.map +1 -0
- package/lib/door/door-registration.d.ts +87 -0
- package/lib/door/door-registration.d.ts.map +1 -0
- package/lib/door/index.d.ts +4 -0
- package/lib/door/index.d.ts.map +1 -0
- package/lib/door/types/index.d.ts +3 -0
- package/lib/enrollment/enrollment-model.d.ts +14 -0
- package/lib/enrollment/enrollment-model.d.ts.map +1 -0
- package/lib/enrollment/enrollment-registration.d.ts +84 -0
- package/lib/enrollment/enrollment-registration.d.ts.map +1 -0
- package/lib/enrollment/index.d.ts +4 -0
- package/lib/enrollment/index.d.ts.map +1 -0
- package/lib/enrollment/services/enrollment-services.d.ts +10 -0
- package/lib/enrollment/services/enrollment-services.d.ts.map +1 -0
- package/lib/enrollment/services/index.d.ts +2 -0
- package/lib/enrollment/services/index.d.ts.map +1 -0
- package/lib/enrollment/types/index.d.ts +10 -0
- package/lib/extension/index.d.ts +2 -0
- package/lib/extension/index.d.ts.map +1 -0
- package/lib/fcm-pump/fcm-pump-model.d.ts +28 -0
- package/lib/fcm-pump/fcm-pump-model.d.ts.map +1 -0
- package/lib/fcm-pump/fcm-pump-registration.d.ts +87 -0
- package/lib/fcm-pump/fcm-pump-registration.d.ts.map +1 -0
- package/lib/fcm-pump/index.d.ts +5 -0
- package/lib/fcm-pump/index.d.ts.map +1 -0
- package/lib/fcm-pump/services/fcm-pump-services.d.ts +17 -0
- package/lib/fcm-pump/services/fcm-pump-services.d.ts.map +1 -0
- package/lib/fcm-pump/services/index.d.ts +2 -0
- package/lib/fcm-pump/services/index.d.ts.map +1 -0
- package/lib/fcm-pump/types/index.d.ts +5 -0
- package/lib/ingredient-summary/index.d.ts +3 -0
- package/lib/ingredient-summary/index.d.ts.map +1 -0
- package/lib/ingredient-summary/ingredient-summary-model.d.ts +18 -0
- package/lib/ingredient-summary/ingredient-summary-model.d.ts.map +1 -0
- package/lib/ingredient-summary/ingredient-summary-registration.d.ts +84 -0
- package/lib/ingredient-summary/ingredient-summary-registration.d.ts.map +1 -0
- package/lib/ingredient-summary/types/index.d.ts +11 -0
- package/lib/lfcv-pump/index.d.ts +5 -0
- package/lib/lfcv-pump/index.d.ts.map +1 -0
- package/lib/lfcv-pump/lfcv-pump-model.d.ts +20 -0
- package/lib/lfcv-pump/lfcv-pump-model.d.ts.map +1 -0
- package/lib/lfcv-pump/lfcv-pump-registration.d.ts +87 -0
- package/lib/lfcv-pump/lfcv-pump-registration.d.ts.map +1 -0
- package/lib/lfcv-pump/services/index.d.ts +2 -0
- package/lib/lfcv-pump/services/index.d.ts.map +1 -0
- package/lib/lfcv-pump/services/lfcv-pump-services.d.ts +10 -0
- package/lib/lfcv-pump/services/lfcv-pump-services.d.ts.map +1 -0
- package/lib/lfcv-pump/types/index.d.ts +5 -0
- package/lib/lockout/index.d.ts +5 -0
- package/lib/lockout/index.d.ts.map +1 -0
- package/lib/lockout/lockout-model.d.ts +79 -0
- package/lib/lockout/lockout-model.d.ts.map +1 -0
- package/lib/lockout/lockout-registration.d.ts +89 -0
- package/lib/lockout/lockout-registration.d.ts.map +1 -0
- package/lib/lockout/services/index.d.ts +2 -0
- package/lib/lockout/services/index.d.ts.map +1 -0
- package/lib/lockout/services/lockout-services.d.ts +3 -0
- package/lib/lockout/services/lockout-services.d.ts.map +1 -0
- package/lib/lockout/types/index.d.ts +1 -0
- package/lib/macro-assignment/index.d.ts +3 -0
- package/lib/macro-assignment/index.d.ts.map +1 -0
- package/lib/macro-assignment/macro-assignment-model.d.ts +78 -0
- package/lib/macro-assignment/macro-assignment-model.d.ts.map +1 -0
- package/lib/macro-assignment/macro-assignment-registration.d.ts +86 -0
- package/lib/macro-assignment/macro-assignment-registration.d.ts.map +1 -0
- package/lib/macro-assignment/services/index.d.ts +2 -0
- package/lib/macro-assignment/services/index.d.ts.map +1 -0
- package/lib/macro-assignment/services/macro-assignment-services.d.ts +2 -0
- package/lib/macro-assignment/services/macro-assignment-services.d.ts.map +1 -0
- package/lib/macro-assignment/types/index.d.ts +39 -0
- package/lib/network-test/index.d.ts +5 -0
- package/lib/network-test/index.d.ts.map +1 -0
- package/lib/network-test/network-test-container-model.d.ts +23 -0
- package/lib/network-test/network-test-container-model.d.ts.map +1 -0
- package/lib/network-test/network-test-container-registration.d.ts +86 -0
- package/lib/network-test/network-test-container-registration.d.ts.map +1 -0
- package/lib/network-test/network-test-model.d.ts +21 -0
- package/lib/network-test/network-test-model.d.ts.map +1 -0
- package/lib/network-test/network-test-registration.d.ts +84 -0
- package/lib/network-test/network-test-registration.d.ts.map +1 -0
- package/lib/network-test/services/index.d.ts +2 -0
- package/lib/network-test/services/index.d.ts.map +1 -0
- package/lib/network-test/services/network-test-services.d.ts +37 -0
- package/lib/network-test/services/network-test-services.d.ts.map +1 -0
- package/lib/network-test/types/index.d.ts +44 -0
- package/lib/nutritive-sweetener/index.d.ts +4 -0
- package/lib/nutritive-sweetener/index.d.ts.map +1 -0
- package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts +18 -0
- package/lib/nutritive-sweetener/nutritive-sweetener-model.d.ts.map +1 -0
- package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts +85 -0
- package/lib/nutritive-sweetener/nutritive-sweetener-registration.d.ts.map +1 -0
- package/lib/nutritive-sweetener/services/index.d.ts +2 -0
- package/lib/nutritive-sweetener/services/index.d.ts.map +1 -0
- package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts +6 -0
- package/lib/nutritive-sweetener/services/nutritive-sweetener-services.d.ts.map +1 -0
- package/lib/nutritive-sweetener/types/index.d.ts +1 -0
- package/lib/plain-water/index.d.ts +4 -0
- package/lib/plain-water/index.d.ts.map +1 -0
- package/lib/plain-water/plain-water-model.d.ts +19 -0
- package/lib/plain-water/plain-water-model.d.ts.map +1 -0
- package/lib/plain-water/plain-water-registration.d.ts +85 -0
- package/lib/plain-water/plain-water-registration.d.ts.map +1 -0
- package/lib/plain-water/services/index.d.ts +2 -0
- package/lib/plain-water/services/index.d.ts.map +1 -0
- package/lib/plain-water/services/plain-water-services.d.ts +6 -0
- package/lib/plain-water/services/plain-water-services.d.ts.map +1 -0
- package/lib/plain-water/types/index.d.ts +1 -0
- package/lib/reboot/index.d.ts +4 -0
- package/lib/reboot/index.d.ts.map +1 -0
- package/lib/reboot/reboot-model.d.ts +14 -0
- package/lib/reboot/reboot-model.d.ts.map +1 -0
- package/lib/reboot/reboot-registration.d.ts +84 -0
- package/lib/reboot/reboot-registration.d.ts.map +1 -0
- package/lib/reboot/services/index.d.ts +2 -0
- package/lib/reboot/services/index.d.ts.map +1 -0
- package/lib/reboot/services/reboot-services.d.ts +2 -0
- package/lib/reboot/services/reboot-services.d.ts.map +1 -0
- package/lib/reboot/types/index.d.ts +8 -0
- package/lib/registration.d.ts +4 -0
- package/lib/registration.d.ts.map +1 -0
- package/lib/settings/index.d.ts +4 -0
- package/lib/settings/index.d.ts.map +1 -0
- package/lib/settings/services/index.d.ts +2 -0
- package/lib/settings/services/index.d.ts.map +1 -0
- package/lib/settings/services/settings-services.d.ts +13 -0
- package/lib/settings/services/settings-services.d.ts.map +1 -0
- package/lib/settings/settings-model.d.ts +23 -0
- package/lib/settings/settings-model.d.ts.map +1 -0
- package/lib/settings/settings-registration.d.ts +86 -0
- package/lib/settings/settings-registration.d.ts.map +1 -0
- package/lib/settings/types/index.d.ts +26 -0
- package/lib/setup-step/index.d.ts +5 -0
- package/lib/setup-step/index.d.ts.map +1 -0
- package/lib/setup-step/services/index.d.ts +2 -0
- package/lib/setup-step/services/index.d.ts.map +1 -0
- package/lib/setup-step/services/setup-step-services.d.ts +13 -0
- package/lib/setup-step/services/setup-step-services.d.ts.map +1 -0
- package/lib/setup-step/setup-step-container-model.d.ts +29 -0
- package/lib/setup-step/setup-step-container-model.d.ts.map +1 -0
- package/lib/setup-step/setup-step-container-registration.d.ts +86 -0
- package/lib/setup-step/setup-step-container-registration.d.ts.map +1 -0
- package/lib/setup-step/setup-step-model.d.ts +21 -0
- package/lib/setup-step/setup-step-model.d.ts.map +1 -0
- package/lib/setup-step/setup-step-registration.d.ts +84 -0
- package/lib/setup-step/setup-step-registration.d.ts.map +1 -0
- package/lib/setup-step/types/index.d.ts +40 -0
- package/lib/trouble-action/index.d.ts +4 -0
- package/lib/trouble-action/index.d.ts.map +1 -0
- package/lib/trouble-action/trouble-action-model.d.ts +20 -0
- package/lib/trouble-action/trouble-action-model.d.ts.map +1 -0
- package/lib/trouble-action/trouble-action-registration.d.ts +89 -0
- package/lib/trouble-action/trouble-action-registration.d.ts.map +1 -0
- package/lib/trouble-action/types/index.d.ts +8 -0
- package/lib/utilities/index.d.ts +5 -0
- package/lib/utilities/index.d.ts.map +1 -0
- package/lib/utilities/services/index.d.ts +2 -0
- package/lib/utilities/services/index.d.ts.map +1 -0
- package/lib/utilities/services/utilities-services.d.ts +13 -0
- package/lib/utilities/services/utilities-services.d.ts.map +1 -0
- package/lib/utilities/types/index.d.ts +32 -0
- package/lib/utilities/utilities-container-model.d.ts +19 -0
- package/lib/utilities/utilities-container-model.d.ts.map +1 -0
- package/lib/utilities/utilities-container-registration.d.ts +86 -0
- package/lib/utilities/utilities-container-registration.d.ts.map +1 -0
- package/lib/utilities/utilities-model.d.ts +19 -0
- package/lib/utilities/utilities-model.d.ts.map +1 -0
- package/lib/utilities/utilities-registration.d.ts +84 -0
- package/lib/utilities/utilities-registration.d.ts.map +1 -0
- package/lib/utils/assembly-utils.d.ts +17 -0
- package/lib/utils/assembly-utils.d.ts.map +1 -0
- package/lib/utils/holder-view-extension.d.ts +16 -0
- package/lib/utils/holder-view-extension.d.ts.map +1 -0
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/time-utils.d.ts +9 -0
- package/lib/utils/time-utils.d.ts.map +1 -0
- package/lib/utils/trouble-visibility-filter.d.ts +5 -0
- package/lib/utils/trouble-visibility-filter.d.ts.map +1 -0
- package/package.json +20 -0
- package/start/index.d.ts +5 -0
- package/start/index.d.ts.map +1 -0
- package/start/services/index.d.ts +2 -0
- package/start/services/index.d.ts.map +1 -0
- package/start/services/start-services.d.ts +6 -0
- package/start/services/start-services.d.ts.map +1 -0
- package/start/start-model.d.ts +17 -0
- package/start/start-model.d.ts.map +1 -0
- package/start/start-registration.d.ts +89 -0
- package/start/start-registration.d.ts.map +1 -0
- package/start/types/index.d.ts +1 -0
- package/types/global.d.ts +19 -0
- package/types/global.d.ts.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -0
- package/utils/openapi.d.ts +9271 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { DispenserModel, DispenserOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Dispenser
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with DispenserModel 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: Dispenser.type, id: "dispenserId"})
|
|
18
|
+
* private dispenserModel: DispenserModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new DispenserModel instances.
|
|
25
|
+
*
|
|
26
|
+
|
|
27
|
+
* As this is a singleton model, the factory function accepts the model options as its argument.
|
|
28
|
+
*
|
|
29
|
+
* If a model with the same model type 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 = Dispenser.factory({
|
|
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 DispenserModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (Dispenser.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to DispenserModel
|
|
52
|
+
* // and the compiler will know that the model has the DispenserModel 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 { Dispenser } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...Dispenser.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The dispenser model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
|
|
80
|
+
* If the model does not yet exist, it will be created passing in the provided options to initialize it.
|
|
81
|
+
*
|
|
82
|
+
* Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
|
|
83
|
+
|
|
84
|
+
* */
|
|
85
|
+
export declare const Dispenser: Readonly<SingletonKosModelRegistrationBean<DispenserModel, DispenserOptions>>;
|
|
86
|
+
//# sourceMappingURL=dispenser-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispenser-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser/dispenser-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAGjF,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,SAAS,EAAE,QAAQ,CAC9B,iCAAiC,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAWpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface DispenserResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @category Service
|
|
6
|
+
* Retrieves the initial dispenser data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getDispensers: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<DispenserResponse[]> | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=dispenser-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispenser-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser/services/dispenser-services.ts"],"names":[],"mappings":"AAcA,UAAU,iBAAiB;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ;AACD;;;GAGG;AACH,eAAO,MAAM,aAAa,sGAIzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IKosDataModel } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface DispenserOptions {}
|
|
5
|
+
|
|
6
|
+
export interface DispenserModel extends DispenserOptions, IKosDataModel {
|
|
7
|
+
id: string;
|
|
8
|
+
updateModel(options: DispenserOptions): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DispenserInfoModel, DispenserInfoOptions } from './types';
|
|
2
|
+
import { IKosDataModel, KosConfigProperty, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "dispenser-info-model";
|
|
5
|
+
export declare class DispenserInfoModelImpl implements DispenserInfoModel, IKosDataModel {
|
|
6
|
+
private logger;
|
|
7
|
+
id: string;
|
|
8
|
+
name: KosConfigProperty<string>;
|
|
9
|
+
constructor(modelId: string, _options: DispenserInfoOptions, context: KosCreationContext);
|
|
10
|
+
init(): Promise<void>;
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=dispenser-info-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispenser-info-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser-info/dispenser-info-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAExE,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,qBACa,sBACX,YAAW,kBAAkB,EAAE,aAAa;IAE5C,OAAO,CAAC,MAAM,CAAmB;IAEjC,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;gBAG/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,kBAAkB;IAQvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { DispenserInfoModel, DispenserInfoOptions } from './types';
|
|
2
|
+
import { KosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # DispenserInfo
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with DispenserInfoModel 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: DispenserInfo.type, id: "dispenserInfoId"})
|
|
18
|
+
* private dispenserInfoModel: DispenserInfoModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new DispenserInfoModel 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 = DispenserInfo.factory("dispenserInfoId")({
|
|
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 DispenserInfoModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (DispenserInfo.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to DispenserInfoModel
|
|
52
|
+
* // and the compiler will know that the model has the DispenserInfoModel 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 { DispenserInfo } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...DispenserInfo.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The dispenserInfo 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 DispenserInfo: Readonly<KosModelRegistrationBean<DispenserInfoModel, DispenserInfoOptions>>;
|
|
84
|
+
//# sourceMappingURL=dispenser-info-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispenser-info-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser-info/dispenser-info-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,aAAa,EAAE,QAAQ,CAClC,wBAAwB,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAanE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser-info/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,qBAAqB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface DispenserInfoResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @category Service
|
|
6
|
+
* Retrieves the initial dispenser-info data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getDispenserInfos: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<DispenserInfoResponse[]> | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=dispenser-info-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispenser-info-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser-info/services/dispenser-info-services.ts"],"names":[],"mappings":"AAcA,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;CACZ;AACD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,0GAI7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/dispenser-info/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IKosDataModel, KosConfigProperty } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface DispenserInfoOptions {}
|
|
5
|
+
|
|
6
|
+
export interface DispenserInfoModel
|
|
7
|
+
extends DispenserInfoOptions,
|
|
8
|
+
IKosDataModel {
|
|
9
|
+
name: KosConfigProperty<string>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DoorOptions } from './types';
|
|
2
|
+
import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "door-model";
|
|
5
|
+
export type DoorModel = PublicModelInterface<DoorModelImpl>;
|
|
6
|
+
export declare enum DoorState {
|
|
7
|
+
OPEN = "OPEN",
|
|
8
|
+
CLOSED = "CLOSED",
|
|
9
|
+
UNKNOWN = "UNKNOWN"
|
|
10
|
+
}
|
|
11
|
+
export declare class DoorModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
12
|
+
id: string;
|
|
13
|
+
private logger;
|
|
14
|
+
readonly doorPath: string;
|
|
15
|
+
private open;
|
|
16
|
+
constructor(modelId: string, options: DoorOptions, context: KosCreationContext);
|
|
17
|
+
get currentState(): DoorState;
|
|
18
|
+
get isOpen(): boolean;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=door-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"door-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/door/door-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAElB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAI5D,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AACD,qBACa,aAAc,YAAW,aAAa,EAAE,gBAAgB;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAG1B,OAAO,CAAC,IAAI,CAAyB;gBAGnC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,YAAY,IAAI,SAAS,CAM5B;IAED,IAAI,MAAM,IAAI,OAAO,CAIpB;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { DoorModel } from './door-model';
|
|
2
|
+
import { DoorOptions } from './types';
|
|
3
|
+
import { KosModelRegistrationFactory } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # Door
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with DoorModel 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: Door.type, id: "doorId"})
|
|
19
|
+
* private doorModel: DoorModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new DoorModel 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 = Door.factory("doorId")({
|
|
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 DoorModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (Door.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to DoorModel
|
|
53
|
+
* // and the compiler will know that the model has the DoorModel 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 { Door } 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(Door);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The door model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
83
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const Door: KosModelRegistrationFactory<DoorModel, DoorOptions>;
|
|
87
|
+
//# sourceMappingURL=door-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"door-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/door/door-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,IAAI,qDAGf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/door/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EnrollmentModel, EnrollmentOptions } from './types';
|
|
2
|
+
import { IKosModelLogger, KosContextLogger, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "enrollment-model";
|
|
5
|
+
export declare class EnrollmentModelImpl implements EnrollmentModel, IKosModelLogger {
|
|
6
|
+
id: string;
|
|
7
|
+
logger: KosContextLogger;
|
|
8
|
+
enrolled: boolean;
|
|
9
|
+
constructor(modelId: string, _options: EnrollmentOptions, context: KosCreationContext);
|
|
10
|
+
updateModel(options: EnrollmentOptions): void;
|
|
11
|
+
init(): Promise<void>;
|
|
12
|
+
load(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=enrollment-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrollment-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/enrollment/enrollment-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,UAAU,qBAAqB,CAAC;AAE7C,qBACa,mBAAoB,YAAW,eAAe,EAAE,eAAe;IAC1E,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;gBAGhB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,kBAAkB;IAO7B,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAMvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { EnrollmentModel, EnrollmentOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Enrollment
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with EnrollmentModel 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: Enrollment.type, id: "enrollmentId"})
|
|
18
|
+
* private enrollmentModel: EnrollmentModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new EnrollmentModel 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 = Enrollment.factory("enrollmentId")({
|
|
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 EnrollmentModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (Enrollment.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to EnrollmentModel
|
|
52
|
+
* // and the compiler will know that the model has the EnrollmentModel 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 { Enrollment } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...Enrollment.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The enrollment 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 Enrollment: Readonly<SingletonKosModelRegistrationBean<EnrollmentModel, EnrollmentOptions>>;
|
|
84
|
+
//# sourceMappingURL=enrollment-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrollment-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/enrollment/enrollment-registration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,UAAU,EAAE,QAAQ,CAC/B,iCAAiC,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAWtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/enrollment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,kBAAkB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface EnrollmentResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @category Service
|
|
6
|
+
* Retrieves the initial enrollment data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getEnrollments: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<EnrollmentResponse[]> | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=enrollment-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrollment-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/enrollment/services/enrollment-services.ts"],"names":[],"mappings":"AAcA,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AACD;;;GAGG;AACH,eAAO,MAAM,cAAc,uGAI1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/enrollment/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IKosDataModel } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface EnrollmentOptions {}
|
|
5
|
+
|
|
6
|
+
export interface EnrollmentModel extends EnrollmentOptions, IKosDataModel {
|
|
7
|
+
id: string;
|
|
8
|
+
enrolled: boolean;
|
|
9
|
+
updateModel(options: EnrollmentOptions): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FcmPumpOptions } from './types';
|
|
2
|
+
import { FutureAwareContainer, FutureContainer, FutureResponse, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
import { IntentAware, IntentAwareProps } from '../../../../../sdk/kos-dispense-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "fcm-pump-model";
|
|
6
|
+
export type FcmPumpModel = PublicModelInterface<FcmPumpModelImpl>;
|
|
7
|
+
export declare class FcmPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware, FutureContainer {
|
|
8
|
+
id: string;
|
|
9
|
+
private logger;
|
|
10
|
+
private pumpModel;
|
|
11
|
+
futureHandler: FutureAwareContainer;
|
|
12
|
+
constructor(modelId: string, options: FcmPumpOptions, context: KosCreationContext);
|
|
13
|
+
get future(): import('../../../../../sdk/kos-ui-sdk/src/index.ts').IFutureModel<Record<string, unknown>> | undefined;
|
|
14
|
+
get name(): string;
|
|
15
|
+
get canPour(): boolean;
|
|
16
|
+
get isPouring(): boolean;
|
|
17
|
+
cancelPour(): Promise<void>;
|
|
18
|
+
performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
|
|
19
|
+
performElectricalTest(): Promise<import('./services').ElectricalTestData>;
|
|
20
|
+
getChildren(): import('../../../../../sdk/kos-ui-sdk/src/index.ts').IFutureModel<Record<string, unknown>>[];
|
|
21
|
+
performPreCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
22
|
+
performCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
23
|
+
performVerify(volume: string, tracker?: string): Promise<FutureResponse>;
|
|
24
|
+
performComplete(volume1: string, volume2: string): Promise<any>;
|
|
25
|
+
init(): Promise<void>;
|
|
26
|
+
load(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fcm-pump-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/fcm-pump/fcm-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAcjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAI3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAElE,qBACa,gBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe;IAExE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAY;IAC7B,aAAa,EAAE,oBAAoB,CAAC;gBAElC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,MAAM,wFAET;IAED,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,YAEZ;IAEK,UAAU;IAIhB,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAIhC,qBAAqB;IAS3B,WAAW;IAML,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKpC,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKjC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAI9C,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAMhD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|