@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/macro-assignment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { MacroAssignmentModel, MacroAssignmentOptions } from './types';
|
|
2
|
+
import { FutureAwareContainer, IKosDataModel, KosCreationContext, TroubleModel } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "macro-assignment-model";
|
|
5
|
+
export declare const TROUBLE_TYPE_PURGE = "PurgeTrouble";
|
|
6
|
+
export declare const TROUBLE_TYPE_PRIME = "PrimeTrouble";
|
|
7
|
+
export declare class MacroAssignmentModelImpl implements MacroAssignmentModel, IKosDataModel {
|
|
8
|
+
id: string;
|
|
9
|
+
private logger;
|
|
10
|
+
/**
|
|
11
|
+
* futureHandler is used to handle async operations
|
|
12
|
+
*/
|
|
13
|
+
futureHandler: FutureAwareContainer;
|
|
14
|
+
/**
|
|
15
|
+
* Model containing all of the holders in the current dispenser assembly
|
|
16
|
+
*/
|
|
17
|
+
private holders;
|
|
18
|
+
/**
|
|
19
|
+
* Model containing all of the ingredients in the current dispenser brandset
|
|
20
|
+
*/
|
|
21
|
+
private ingredients;
|
|
22
|
+
constructor(modelId: string, _options: MacroAssignmentOptions, context: KosCreationContext);
|
|
23
|
+
/**
|
|
24
|
+
* shortcut to the current running future
|
|
25
|
+
*/
|
|
26
|
+
get future(): import('../../../../../sdk/kos-ui-sdk/src/index.ts').IFutureModel<Record<string, unknown>> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Represents the subset of holder that are identified as holding macros.
|
|
29
|
+
*
|
|
30
|
+
* This is determined by the group property of the holder which is determined
|
|
31
|
+
* by the holders position in the dispenser assembly.
|
|
32
|
+
*/
|
|
33
|
+
get macroHolders(): import('../../../../../sdk/kos-dispense-sdk/src/index.ts').HolderModel<any>[];
|
|
34
|
+
/**
|
|
35
|
+
* Returns true if there are any macro holders in the dispenser assembly
|
|
36
|
+
*/
|
|
37
|
+
get hasMacroHolders(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Returns all of the purge troubles for the macro holders.
|
|
40
|
+
*
|
|
41
|
+
* Relying on the indexing of troubles by type to find the purge troubles.
|
|
42
|
+
*/
|
|
43
|
+
get holderPurgeTroubles(): TroubleModel<any>[];
|
|
44
|
+
get holderPrimeTroubles(): TroubleModel<any>[];
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if there are any purge troubles for the macro holders.
|
|
47
|
+
*/
|
|
48
|
+
get hasHolderPurgeTroubles(): boolean;
|
|
49
|
+
get hasHolderPrimeTroubles(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Represents the subset of ingredients that are identified as macros
|
|
52
|
+
*
|
|
53
|
+
* This is determined by the `ingredientMacro` property of the ingredient
|
|
54
|
+
* which is derived from the `bib` and `sweetener` properties of the ingredient.
|
|
55
|
+
*
|
|
56
|
+
* The `ingredientMacro` property is set by the `ingredientDataMapper` extension point.
|
|
57
|
+
*
|
|
58
|
+
* The macro ingredients are indexed by the `ingredientIndexExtension` extension point using
|
|
59
|
+
* the `ingredientMacro` property.
|
|
60
|
+
*/
|
|
61
|
+
get macroIngredients(): import('../../../../../sdk/kos-dispense-sdk/src/index.ts').IngredientModel<any>[];
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if there are any macro ingredients in the dispenser brandset
|
|
64
|
+
*/
|
|
65
|
+
get hasMacroIngredients(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* Purges all of the macro holders in the dispenser assembly.
|
|
69
|
+
*
|
|
70
|
+
* Gathers up all of the purge troubles that are associated with the macro holders and submits them to the
|
|
71
|
+
* trouble service bulk resolve endpoint.
|
|
72
|
+
*
|
|
73
|
+
* @param tracker - the tracker to use for the purge future. This is passed in by the framework automatically.
|
|
74
|
+
* @returns the future response
|
|
75
|
+
*/
|
|
76
|
+
resolveAll(type: string, tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=macro-assignment-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"macro-assignment-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/macro-assignment/macro-assignment-model.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EAEb,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,YAAY,EAIb,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE5E,eAAO,MAAM,UAAU,2BAA2B,CAAC;AAEnD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,qBACa,wBACX,YAAW,oBAAoB,EAAE,aAAa;IAE9C,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC;;OAEG;IACH,aAAa,EAAE,oBAAoB,CAAC;IAEpC;;OAEG;IAEH,OAAO,CAAC,OAAO,CAAwB;IAEvC;;OAEG;IAEH,OAAO,CAAC,WAAW,CAA4B;gBAG7C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,sBAAsB,EAChC,OAAO,EAAE,kBAAkB;IAO7B;;OAEG;IACH,IAAI,MAAM,wFAET;IAED;;;;;OAKG;IACH,IAAI,YAAY,+DAQf;IAED;;OAEG;IACH,IAAI,eAAe,YAElB;IAED;;;;OAIG;IACH,IAAI,mBAAmB,wBAQtB;IAED,IAAI,mBAAmB,wBAQtB;IAED;;OAEG;IACH,IAAI,sBAAsB,YAEzB;IAED,IAAI,sBAAsB,YAEzB;IAED;;;;;;;;;;OAUG;IACH,IAAI,gBAAgB,mEAEnB;IAED;;OAEG;IACH,IAAI,mBAAmB,YAEtB;IAED;;;;;;;;;OASG;IAEG,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAkBhD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { MacroAssignmentModel, MacroAssignmentOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # MacroAssignment
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with MacroAssignmentModel 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: MacroAssignment.type, id: "macroAssignmentId"})
|
|
18
|
+
* private macroAssignmentModel: MacroAssignmentModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new MacroAssignmentModel 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 = MacroAssignment.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 MacroAssignmentModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (MacroAssignment.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to MacroAssignmentModel
|
|
52
|
+
* // and the compiler will know that the model has the MacroAssignmentModel 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 { MacroAssignment } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...MacroAssignment.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The macroAssignment 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 MacroAssignment: Readonly<SingletonKosModelRegistrationBean<MacroAssignmentModel, MacroAssignmentOptions>>;
|
|
86
|
+
//# sourceMappingURL=macro-assignment-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"macro-assignment-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/macro-assignment/macro-assignment-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAG5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,eAAe,EAAE,QAAQ,CACpC,iCAAiC,CAC/B,oBAAoB,EACpB,sBAAsB,CACvB,CAaF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/macro-assignment/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"macro-assignment-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/macro-assignment/services/macro-assignment-services.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,eACd,MAAM,EAAE,YACV,MAAM,8DAQjB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FutureContainer, FutureResponse, IFutureModel, IKosDataModel, TroubleModel } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
import { HolderModel, IngredientModel } from '../../../../../../sdk/kos-dispense-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export interface MacroAssignmentOptions {}
|
|
6
|
+
|
|
7
|
+
export interface MacroAssignmentModel extends IKosDataModel, FutureContainer {
|
|
8
|
+
/**
|
|
9
|
+
* Returns all of the purge troubles for the macro holders.
|
|
10
|
+
*
|
|
11
|
+
* Relying on the indexing of troubles by type to find the purge troubles.
|
|
12
|
+
*/
|
|
13
|
+
readonly holderPurgeTroubles: TroubleModel[];
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the subset of holder that are identified as holding macros.
|
|
17
|
+
*
|
|
18
|
+
* This is determined by the group property of the holder which is determined
|
|
19
|
+
* by the holders position in the dispenser assembly.
|
|
20
|
+
*/
|
|
21
|
+
readonly macroHolders: HolderModel[];
|
|
22
|
+
readonly macroIngredients: IngredientModel[];
|
|
23
|
+
readonly hasHolderPurgeTroubles: boolean;
|
|
24
|
+
readonly hasHolderPrimeTroubles: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if there are any macro holders in the dispenser assembly
|
|
28
|
+
*/
|
|
29
|
+
readonly hasMacroHolders: boolean;
|
|
30
|
+
|
|
31
|
+
readonly hasMacroIngredients: boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* shortcut to the current running future
|
|
35
|
+
*/
|
|
36
|
+
readonly future?: IFutureModel;
|
|
37
|
+
|
|
38
|
+
resolveAll: (type: string) => Promise<FutureResponse>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,mBAAmB,SAAS,CAAC;AAC7B,OAAO,KAAK,mBAAmB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NetworkTestContainerModel, NetworkTestContainerOptions, NetworkTestModel } from './types';
|
|
2
|
+
import { ReportItem } from './services';
|
|
3
|
+
import { FutureAwareContainer, IFutureModel, IKosModelContainer, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "network-test-container-model";
|
|
6
|
+
export declare class NetworkTestContainerModelImpl implements NetworkTestContainerModel {
|
|
7
|
+
id: string;
|
|
8
|
+
private logger;
|
|
9
|
+
lastTested: Date;
|
|
10
|
+
futureHandler: FutureAwareContainer<ReportItem[]>;
|
|
11
|
+
models: IKosModelContainer<NetworkTestModel>;
|
|
12
|
+
constructor(modelId: string, options: NetworkTestContainerOptions, context: KosCreationContext);
|
|
13
|
+
get data(): NetworkTestModel[];
|
|
14
|
+
addModel(model: NetworkTestModel): void;
|
|
15
|
+
removeModel(id: string): void;
|
|
16
|
+
getModel(id: string): NetworkTestModel | undefined;
|
|
17
|
+
init(): Promise<void>;
|
|
18
|
+
getLastTested(groupName: string): string;
|
|
19
|
+
load(): Promise<void>;
|
|
20
|
+
performTest(group: string, tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse | undefined>;
|
|
21
|
+
onFutureUpdate(future: IFutureModel<ReportItem[]>): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=network-test-container-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-test-container-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/network-test-container-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAElB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EACL,UAAU,EAIX,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,gBAAgB,EAEjB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,iCAAiC,CAAC;AAEzD,qBACa,6BACX,YAAW,yBAAyB;IAEpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,UAAU,EAAE,IAAI,CAAC;IACjB,aAAa,EAAE,oBAAoB,CAAC,UAAU,EAAE,CAAC,CAAC;IACxC,MAAM,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;gBAErD,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,kBAAkB;IAiB7B,IAAI,IAAI,uBAEP;IAED,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAIhC,WAAW,CAAC,EAAE,EAAE,MAAM;IAItB,QAAQ,CAAC,EAAE,EAAE,MAAM;IAMb,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,aAAa,CAAC,SAAS,EAAE,MAAM;IAUzB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAoCrB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAQjD,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,UAAU,EAAE,CAAC;CA+BlD"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { NetworkTestContainerModel, NetworkTestContainerOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # NetworkTestContainer
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with NetworkTestContainerModel 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: NetworkTestContainer.type, id: "networkTestContainerId"})
|
|
18
|
+
* private networkTestContainerModel: NetworkTestContainerModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new NetworkTestContainerModel 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 = NetworkTestContainer.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 NetworkTestContainerModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (NetworkTestContainer.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to NetworkTestContainerModel
|
|
52
|
+
* // and the compiler will know that the model has the NetworkTestContainerModel 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 { NetworkTestContainer } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...NetworkTestContainer.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The networkTestContainer 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 NetworkTestContainer: Readonly<SingletonKosModelRegistrationBean<NetworkTestContainerModel, NetworkTestContainerOptions>>;
|
|
86
|
+
//# sourceMappingURL=network-test-container-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-test-container-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/network-test-container-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,SAAS,CAAC;AAMjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CACzC,iCAAiC,CAC/B,yBAAyB,EACzB,2BAA2B,CAC5B,CAeF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NetworkTestModel, NetworkTestOptions, NetworkTestUpdateOptions } from './types';
|
|
2
|
+
import { ReportResult } from './services';
|
|
3
|
+
import { IKosDataModel, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "network-test-model";
|
|
6
|
+
export declare class NetworkTestModelImpl implements NetworkTestModel, IKosDataModel {
|
|
7
|
+
id: string;
|
|
8
|
+
group: string;
|
|
9
|
+
passed: boolean;
|
|
10
|
+
inProgress: boolean;
|
|
11
|
+
failureTime?: Date;
|
|
12
|
+
timestamp?: Date;
|
|
13
|
+
name: string;
|
|
14
|
+
results: ReportResult[];
|
|
15
|
+
private logger;
|
|
16
|
+
constructor(modelId: string, options: NetworkTestOptions, context: KosCreationContext);
|
|
17
|
+
updateModel(options: NetworkTestUpdateOptions): void;
|
|
18
|
+
init(): Promise<void>;
|
|
19
|
+
load(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=network-test-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-test-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/network-test-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,uBAAuB,CAAC;AAE/C,qBACa,oBAAqB,YAAW,gBAAgB,EAAE,aAAa;IAC1E,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,EAAE,CAAC;IAExB,OAAO,CAAC,MAAM,CAAmB;gBAE/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB;IAW7B,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI;IAY9C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { NetworkTestModel, NetworkTestOptions } from './types';
|
|
2
|
+
import { KosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # NetworkTest
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with NetworkTestModel 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: NetworkTest.type, id: "networkTestId"})
|
|
18
|
+
* private networkTestModel: NetworkTestModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new NetworkTestModel 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 = NetworkTest.factory("networkTestId")({
|
|
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 NetworkTestModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (NetworkTest.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to NetworkTestModel
|
|
52
|
+
* // and the compiler will know that the model has the NetworkTestModel 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 { NetworkTest } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...NetworkTest.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The networkTest 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 NetworkTest: Readonly<KosModelRegistrationBean<NetworkTestModel, NetworkTestOptions>>;
|
|
84
|
+
//# sourceMappingURL=network-test-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-test-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/network-test-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AACL,eAAO,MAAM,WAAW,EAAE,QAAQ,CAChC,wBAAwB,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAW/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FutureResponse } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
|
|
3
|
+
interface NetworkTestResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
group: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ReportResult {
|
|
9
|
+
name: string;
|
|
10
|
+
val: string;
|
|
11
|
+
passed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ReportItem {
|
|
14
|
+
passed: boolean;
|
|
15
|
+
timestamp: number;
|
|
16
|
+
failureTime?: number;
|
|
17
|
+
inProgress: boolean;
|
|
18
|
+
results: ReportResult[];
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
group: string;
|
|
22
|
+
}
|
|
23
|
+
interface ReportGroup {
|
|
24
|
+
[k: string]: ReportItem;
|
|
25
|
+
}
|
|
26
|
+
interface NetworkTestReportResponse {
|
|
27
|
+
[k: string]: ReportGroup;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @category Service
|
|
31
|
+
* Retrieves the initial network-test data.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getNetworkTests: () => Promise<NetworkTestResponse[] | undefined>;
|
|
34
|
+
export declare const getTestsReports: () => Promise<NetworkTestReportResponse | undefined>;
|
|
35
|
+
export declare const performGroupTest: (group: string, tracker: string) => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<FutureResponse> | undefined>;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=network-test-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-test-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/network-test/services/network-test-services.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAIf,MAAM,yBAAyB,CAAC;AAUjC,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;CACjB;AACD,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,WAAW;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CACzB;AACD,UAAU,yBAAyB;IACjC,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC1B;AACD;;;GAGG;AACH,eAAO,MAAM,eAAe,kDAM3B,CAAC;AAEF,eAAO,MAAM,eAAe,sDAK3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAiB,MAAM,WAAW,MAAM,8FAMpE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReportItem, ReportResult } from '../services';
|
|
2
|
+
import { FutureContainer, IKosDataModel, IKosIdentifiable, IKosModelHolder, Nameable } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// --------------- NetworkTest ---------------
|
|
6
|
+
|
|
7
|
+
export interface NetworkTestOptions {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
group: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface NetworkTestUpdateOptions {
|
|
14
|
+
passed: boolean;
|
|
15
|
+
timestamp: Date;
|
|
16
|
+
failureTime?: Date;
|
|
17
|
+
inProgress: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
results: ReportResult[];
|
|
20
|
+
group: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface NetworkTestModel
|
|
24
|
+
extends IKosDataModel,
|
|
25
|
+
IKosIdentifiable,
|
|
26
|
+
Nameable {
|
|
27
|
+
group: string;
|
|
28
|
+
passed: boolean;
|
|
29
|
+
inProgress: boolean;
|
|
30
|
+
failureTime?: Date;
|
|
31
|
+
timestamp?: Date;
|
|
32
|
+
results: ReportResult[];
|
|
33
|
+
updateModel(options: NetworkTestUpdateOptions): void;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// --------------- NetworkTestContainer ---------------
|
|
37
|
+
export interface NetworkTestContainerOptions {}
|
|
38
|
+
|
|
39
|
+
export interface NetworkTestContainerModel
|
|
40
|
+
extends IKosModelHolder<NetworkTestModel>,
|
|
41
|
+
FutureContainer<ReportItem[]> {
|
|
42
|
+
performTest(group: string): Promise<FutureResponse>;
|
|
43
|
+
getLastTested: (group: string) => string;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/nutritive-sweetener/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NutritiveSweetenerOptions } from './types';
|
|
2
|
+
import { IKosDataModel, KosCreationContext, PublicModelInterface } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
import { PumpAware } from '../../../../../sdk/kos-freestyle-sdk/src/index.ts';
|
|
4
|
+
import { AssemblyModel } from '../../../../../sdk/kos-dispense-sdk/src/index.ts';
|
|
5
|
+
|
|
6
|
+
export declare const MODEL_TYPE = "nutritive-sweetener-model";
|
|
7
|
+
export type NutritiveSweetenerModel = PublicModelInterface<NutritiveSweetenerModelImpl>;
|
|
8
|
+
export declare class NutritiveSweetenerModelImpl implements NutritiveSweetenerModel, IKosDataModel, PumpAware {
|
|
9
|
+
id: string;
|
|
10
|
+
assemblyModel: AssemblyModel;
|
|
11
|
+
private logger;
|
|
12
|
+
constructor(modelId: string, _options: NutritiveSweetenerOptions, context: KosCreationContext);
|
|
13
|
+
getHolder(): import('../../../../../sdk/kos-dispense-sdk/src/index.ts').HolderModel<any>;
|
|
14
|
+
getPump(): import('../../../../../sdk/kos-dispense-sdk/src/index.ts').PumpModel<any>;
|
|
15
|
+
init(): Promise<void>;
|
|
16
|
+
load(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=nutritive-sweetener-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nutritive-sweetener-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/nutritive-sweetener/nutritive-sweetener-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,UAAU,8BAA8B,CAAC;AAEtD,MAAM,MAAM,uBAAuB,GACjC,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEpD,qBACa,2BACX,YAAW,uBAAuB,EAAE,aAAa,EAAE,SAAS;IAE5D,EAAE,EAAE,MAAM,CAAC;IAGX,aAAa,EAAG,aAAa,CAAC;IAE9B,OAAO,CAAC,MAAM,CAAmB;gBAG/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,yBAAyB,EACnC,OAAO,EAAE,kBAAkB;IAM7B,SAAS;IAMT,OAAO;IAUD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|