@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,50 @@
|
|
|
1
|
+
import { AgitationControlOptions } from './types';
|
|
2
|
+
import { FutureAwareContainer, FutureContainer, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface, IFutureModel } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "agitation-control-model";
|
|
5
|
+
export declare const FUTURE_RESOLVE = "resolve";
|
|
6
|
+
export declare const FUTURE_AGITATE = "agitate";
|
|
7
|
+
export type AgitationControlModel = PublicModelInterface<AgitationControlModelImpl>;
|
|
8
|
+
export declare class AgitationControlModelImpl implements IKosDataModel, IKosIdentifiable, FutureContainer {
|
|
9
|
+
id: string;
|
|
10
|
+
futureHandler: FutureAwareContainer;
|
|
11
|
+
private logger;
|
|
12
|
+
private troubleContainer;
|
|
13
|
+
private _agitationFutureId?;
|
|
14
|
+
private _canExit;
|
|
15
|
+
private _exiting;
|
|
16
|
+
private _isFailed;
|
|
17
|
+
private disposer?;
|
|
18
|
+
private application;
|
|
19
|
+
constructor(modelId: string, options: AgitationControlOptions, context: KosCreationContext);
|
|
20
|
+
set isFailed(value: boolean);
|
|
21
|
+
get isFailed(): boolean;
|
|
22
|
+
get isDoorClosed(): boolean;
|
|
23
|
+
get isAgitating(): boolean;
|
|
24
|
+
set exiting(value: boolean);
|
|
25
|
+
get exiting(): boolean;
|
|
26
|
+
get canExit(): boolean;
|
|
27
|
+
clearAll(): void;
|
|
28
|
+
get readyToResolve(): boolean;
|
|
29
|
+
onFutureUpdate(future: IFutureModel<Record<string, unknown>>): void;
|
|
30
|
+
private inProgress;
|
|
31
|
+
resolveDeferredTroubles(tracker?: string): Promise<import('../../../../../sdk/kos-ui-sdk/src/index.ts').FutureResponse | undefined>;
|
|
32
|
+
get hasQueuedTroubles(): boolean;
|
|
33
|
+
get queuedTroubles(): any;
|
|
34
|
+
get visibleTroubles(): any;
|
|
35
|
+
get future(): IFutureModel<Record<string, unknown>> | undefined;
|
|
36
|
+
get resolveFuture(): IFutureModel<Record<string, unknown>> | undefined;
|
|
37
|
+
get agitateFuture(): IFutureModel<Record<string, unknown>> | undefined;
|
|
38
|
+
handleAgitationStarted(event: {
|
|
39
|
+
path: string;
|
|
40
|
+
futureId: number;
|
|
41
|
+
}): void;
|
|
42
|
+
handleAgitationEnded(event: {
|
|
43
|
+
path: string;
|
|
44
|
+
}): void;
|
|
45
|
+
init(): Promise<void>;
|
|
46
|
+
unload(): void;
|
|
47
|
+
handleReadyToResolve(): void;
|
|
48
|
+
load(): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=agitation-control-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agitation-control-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/agitation-control/agitation-control-model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,eAAe,EAEf,aAAa,EACb,gBAAgB,EAGhB,kBAAkB,EAOlB,oBAAoB,EAIpB,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AASvD,eAAO,MAAM,UAAU,4BAA4B,CAAC;AACpD,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,MAAM,MAAM,qBAAqB,GAC/B,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;AAElD,qBACa,yBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,eAAe;IAE3D,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,oBAAoB,CAAC;IACpC,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,gBAAgB,CAAwB;IAChD,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,CAAe;IAEhC,OAAO,CAAC,WAAW,CAAoB;gBAErC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,kBAAkB;IAY7B,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IACD,IAAI,QAAQ,IAHQ,OAAO,CAK1B;IACD,IAAI,YAAY,YAEf;IAED,IAAI,WAAW,YAEd;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED,IAAI,OAAO,IAJQ,OAAO,CAMzB;IAED,IAAI,OAAO,YAIV;IAED,QAAQ;IAMR,IAAI,cAAc,YAKjB;IACD,cAAc,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IA0B5D,OAAO,CAAC,UAAU,CAAgB;IAE5B,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM;IAkB9C,IAAI,iBAAiB,YAEpB;IACD,IAAI,cAAc,QAKjB;IAED,IAAI,eAAe,QAKlB;IAGD,IAAI,MAAM,sDAET;IAED,IAAI,aAAa,sDAEhB;IAED,IAAI,aAAa,sDAEhB;IAGD,sBAAsB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;IAMhE,oBAAoB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAKtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,MAAM;IAUN,oBAAoB;IAUd,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { AgitationControlModel } from './agitation-control-model';
|
|
2
|
+
import { AgitationControlOptions } from './types';
|
|
3
|
+
import { SingletonKosModelRegistrationFactory } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # AgitationControl
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with AgitationControlModel 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: AgitationControl.type, id: "agitationControlId"})
|
|
19
|
+
* private agitationControlModel: AgitationControlModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new AgitationControlModel instances.
|
|
26
|
+
*
|
|
27
|
+
|
|
28
|
+
* As this is a singleton model, the factory function accepts the model options as its argument.
|
|
29
|
+
*
|
|
30
|
+
* If a model with the same model type already exists, the factory function will return the existing model. The options will be ignored
|
|
31
|
+
* in this case and the existing model will be returned in its current state.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const model = AgitationControl.factory({
|
|
36
|
+
* // Add option data
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
*
|
|
42
|
+
* ## predicate
|
|
43
|
+
*
|
|
44
|
+
* [Typescript type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates) function that will identify and narrow down a model to a AgitationControlModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (AgitationControl.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to AgitationControlModel
|
|
53
|
+
* // and the compiler will know that the model has the AgitationControlModel 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 { AgitationControl } 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(AgitationControl);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The agitationControl model is a singleton model. This means that each time the factory function is called , the same instance will be returned.
|
|
83
|
+
* If the model does not yet exist, it will be created passing in the provided options to initialize it.
|
|
84
|
+
*
|
|
85
|
+
* Singleton models don't require an ID as they will use the model type as their ID to guarantee uniqueness throughout the system.
|
|
86
|
+
|
|
87
|
+
* */
|
|
88
|
+
export declare const AgitationControl: SingletonKosModelRegistrationFactory<AgitationControlModel, AgitationControlOptions>;
|
|
89
|
+
//# sourceMappingURL=agitation-control-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agitation-control-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/agitation-control/agitation-control-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkFK;AACL,eAAO,MAAM,gBAAgB,sFAM3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/agitation-control/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnimationModel, AnimationOptions } from './types';
|
|
2
|
+
import { IKosDataModel, KosConfigProperty, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
export declare const MODEL_TYPE = "animation-model";
|
|
5
|
+
export declare class AnimationModelImpl implements AnimationModel, IKosDataModel {
|
|
6
|
+
id: string;
|
|
7
|
+
private logger;
|
|
8
|
+
disableAll: KosConfigProperty<boolean>;
|
|
9
|
+
enableDial: KosConfigProperty<boolean>;
|
|
10
|
+
enableModal: KosConfigProperty<boolean>;
|
|
11
|
+
enableSideBar: KosConfigProperty<boolean>;
|
|
12
|
+
constructor(modelId: string, options: AnimationOptions, context: KosCreationContext);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=animation-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/animation/animation-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAE5C,qBACa,kBAAmB,YAAW,cAAc,EAAE,aAAa;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAMjC,UAAU,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMxC,UAAU,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMxC,WAAW,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAMzC,aAAa,EAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBAGzC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,kBAAkB;CAQ9B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AnimationModel, AnimationOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Animation
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with AnimationModel 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: Animation.type, id: "animationId"})
|
|
18
|
+
* private animationModel: AnimationModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new AnimationModel 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 = Animation.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 AnimationModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (Animation.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to AnimationModel
|
|
52
|
+
* // and the compiler will know that the model has the AnimationModel 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 { Animation } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...Animation.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The animation 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 Animation: Readonly<SingletonKosModelRegistrationBean<AnimationModel, AnimationOptions>>;
|
|
86
|
+
//# sourceMappingURL=animation-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/animation/animation-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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/animation/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 AnimationResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @category Service
|
|
6
|
+
* Retrieves the initial animation data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getAnimations: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<AnimationResponse[]> | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=animation-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/animation/services/animation-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/animation/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IKosIdentifiable, KosConfigProperty } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface AnimationOptions {}
|
|
5
|
+
|
|
6
|
+
export interface AnimationModel extends IKosIdentifiable {
|
|
7
|
+
disableAll: KosConfigProperty<boolean>;
|
|
8
|
+
|
|
9
|
+
enableDial: KosConfigProperty<boolean>;
|
|
10
|
+
|
|
11
|
+
enableModal: KosConfigProperty<boolean>;
|
|
12
|
+
|
|
13
|
+
enableSideBar: KosConfigProperty<boolean>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApplicationModel, ApplicationOptions, Language } from './types';
|
|
2
|
+
import { NavigationItem } from './services';
|
|
3
|
+
import { SetupStepContainerModel } from '../setup-step';
|
|
4
|
+
import { DoorModel } from '../door';
|
|
5
|
+
import { AuthModel } from '../auth';
|
|
6
|
+
import { DeviceModel, IKosDataModel, KosConfigProperty, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
7
|
+
|
|
8
|
+
export declare const MODEL_TYPE = "application-model";
|
|
9
|
+
export declare class ApplicationModelImpl implements ApplicationModel, IKosDataModel {
|
|
10
|
+
id: string;
|
|
11
|
+
device: DeviceModel;
|
|
12
|
+
authModel: AuthModel;
|
|
13
|
+
setupStepContainer: SetupStepContainerModel;
|
|
14
|
+
door: DoorModel;
|
|
15
|
+
ncuiLanguage: KosConfigProperty<string>;
|
|
16
|
+
activeCui: KosConfigProperty<string>;
|
|
17
|
+
fallbackCui: KosConfigProperty<string>;
|
|
18
|
+
private _cuis;
|
|
19
|
+
private _navigationItems;
|
|
20
|
+
languages: Language[];
|
|
21
|
+
private logger;
|
|
22
|
+
constructor(modelId: string, _options: ApplicationOptions, context: KosCreationContext);
|
|
23
|
+
get setupRequired(): boolean;
|
|
24
|
+
get currentRole(): import('../auth').NcuiRole;
|
|
25
|
+
get cuis(): {};
|
|
26
|
+
get navigationItems(): Record<string, NavigationItem>;
|
|
27
|
+
get hasCuiDefined(): boolean;
|
|
28
|
+
get doorIsOpen(): boolean;
|
|
29
|
+
enter(): Promise<void>;
|
|
30
|
+
exit(): Promise<void>;
|
|
31
|
+
load(): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=application-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/application/application-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,eAAe,CAAC;AACvB,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9E,eAAO,MAAM,UAAU,sBAAsB,CAAC;AAkB9C,qBACa,oBAAqB,YAAW,gBAAgB,EAAE,aAAa;IAC1E,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAG,WAAW,CAAC;IAGrB,SAAS,EAAG,SAAS,CAAC;IAGtB,kBAAkB,EAAG,uBAAuB,CAAC;IAG7C,IAAI,EAAE,SAAS,CAAC;IAMhB,YAAY,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMzC,SAAS,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMtC,WAAW,EAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAExC,OAAO,CAAC,KAAK,CAAqB;IAElC,OAAO,CAAC,gBAAgB,CAAwB;IAmBhD,SAAS,EAAE,QAAQ,EAAE,CAAC;IAEtB,OAAO,CAAC,MAAM,CAAmB;gBAG/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,kBAAkB;IAa7B,IAAI,aAAa,YAIhB;IAED,IAAI,WAAW,+BAEd;IAED,IAAI,IAAI,OAKP;IAED,IAAI,eAAe,mCAElB;IAED,IAAI,aAAa,YAEhB;IAED,IAAI,UAAU,YAEb;IAEK,KAAK;IAKL,IAAI;IAMJ,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAgC5B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ApplicationModel, ApplicationOptions } from './types';
|
|
2
|
+
import { SingletonKosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Application
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with ApplicationModel 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: Application.type, id: "applicationId"})
|
|
18
|
+
* private applicationModel: ApplicationModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new ApplicationModel 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 = Application.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 ApplicationModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (Application.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to ApplicationModel
|
|
52
|
+
* // and the compiler will know that the model has the ApplicationModel 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 { Application } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...Application.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The application 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 Application: Readonly<SingletonKosModelRegistrationBean<ApplicationModel, ApplicationOptions>>;
|
|
86
|
+
//# sourceMappingURL=application-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-registration.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/application/application-registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,WAAW,EAAE,QAAQ,CAChC,iCAAiC,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAaxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface LanguageResponse {
|
|
2
|
+
languages: {
|
|
3
|
+
name: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
}[];
|
|
6
|
+
}
|
|
7
|
+
export interface CuiResponse {
|
|
8
|
+
name: string;
|
|
9
|
+
basePath: string;
|
|
10
|
+
}
|
|
11
|
+
export interface NavigationItem {
|
|
12
|
+
name: string;
|
|
13
|
+
roles: string[];
|
|
14
|
+
root?: boolean;
|
|
15
|
+
options?: {
|
|
16
|
+
embed?: boolean;
|
|
17
|
+
};
|
|
18
|
+
children?: NavigationItem[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @category Service
|
|
22
|
+
* Retrieves the initial language data.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getLanguages: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<LanguageResponse> | undefined>;
|
|
25
|
+
export declare const getCuis: () => Promise<CuiResponse[]>;
|
|
26
|
+
export declare const getNavigation: () => Promise<NavigationItem[]>;
|
|
27
|
+
export declare const navigateToCui: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<unknown> | undefined>;
|
|
28
|
+
export declare const navigateToNCui: () => Promise<import('../../../../../../sdk/kos-ui-sdk/src/index.ts').KosServiceResponse<unknown> | undefined>;
|
|
29
|
+
//# sourceMappingURL=application-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-services.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/application/services/application-services.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B;AACD;;;GAGG;AACH,eAAO,MAAM,YAAY,mGAMxB,CAAC;AAEF,eAAO,MAAM,OAAO,8BAUnB,CAAC;AAEF,eAAO,MAAM,aAAa,iCASzB,CAAC;AAEF,eAAO,MAAM,aAAa,0FAMzB,CAAC;AAEF,eAAO,MAAM,cAAc,0FAM1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/ddk/kos-ddk-models/src/lib/application/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CuiResponse, NavigationItem } from '../services';
|
|
2
|
+
import { AuthModel, NcuiRole } from '../../auth';
|
|
3
|
+
import { IKosIdentifiable, KosConfigProperty, DeviceModel } from '../../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export interface ApplicationOptions {}
|
|
7
|
+
|
|
8
|
+
export interface Language {
|
|
9
|
+
name: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ApplicationModel extends IKosIdentifiable {
|
|
14
|
+
// enableDialAnimation: KosConfigProperty<boolean>;
|
|
15
|
+
// enableModalAnimation: KosConfigProperty<boolean>;
|
|
16
|
+
// enableSidebarAnimation: KosConfigProperty<boolean>;
|
|
17
|
+
activeCui: KosConfigProperty<string>;
|
|
18
|
+
authModel: AuthModel;
|
|
19
|
+
cuis: Record<string, CuiResponse>;
|
|
20
|
+
currentRole: NcuiRole;
|
|
21
|
+
device: DeviceModel;
|
|
22
|
+
doorIsOpen: boolean;
|
|
23
|
+
enter: () => Promise<void>;
|
|
24
|
+
exit: () => Promise<void>;
|
|
25
|
+
fallbackCui: KosConfigProperty<string>;
|
|
26
|
+
hasCuiDefined: boolean;
|
|
27
|
+
languages: Language[];
|
|
28
|
+
navigationItems: Record<string, NavigationItem>;
|
|
29
|
+
ncuiLanguage: KosConfigProperty<string>;
|
|
30
|
+
setupRequired: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthModel, AuthOptions, NcuiRole } from './types';
|
|
2
|
+
import { AuthResponse } from './services';
|
|
3
|
+
import { IKosDataModel, KosCreationContext } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "auth-model";
|
|
6
|
+
export declare class AuthModelImpl implements AuthModel, IKosDataModel {
|
|
7
|
+
id: string;
|
|
8
|
+
private logger;
|
|
9
|
+
currentRole: NcuiRole;
|
|
10
|
+
constructor(modelId: string, options: AuthOptions, context: KosCreationContext);
|
|
11
|
+
authorize(pinCode: string): Promise<boolean>;
|
|
12
|
+
init(): Promise<void>;
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
handleRoleChange(role: AuthResponse): void;
|
|
15
|
+
forceRole(role: NcuiRole): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=auth-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-model.d.ts","sourceRoot":"","sources":["../../../../../../packages/ddk/kos-ddk-models/src/lib/auth/auth-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhE,eAAO,MAAM,UAAU,eAAe,CAAC;AAIvC,qBACa,aAAc,YAAW,SAAS,EAAE,aAAa;IAC5D,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,WAAW,EAAE,QAAQ,CAAC;gBAEpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,kBAAkB;IAUvB,SAAS,CAAC,OAAO,EAAE,MAAM;IAczB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAe3B,gBAAgB,CAAC,IAAI,EAAE,YAAY;IAGnC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAGzB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AuthModel, AuthOptions } from './types';
|
|
2
|
+
import { KosModelRegistrationBean } from '../../../../../sdk/kos-ui-sdk/src/index.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # Auth
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with AuthModel 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: Auth.type, id: "authId"})
|
|
18
|
+
* private authModel: AuthModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new AuthModel 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 = Auth.factory("authId")({
|
|
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 AuthModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (Auth.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to AuthModel
|
|
52
|
+
* // and the compiler will know that the model has the AuthModel 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 { Auth } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...Auth.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The auth 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 Auth: Readonly<KosModelRegistrationBean<AuthModel, AuthOptions>>;
|
|
84
|
+
//# sourceMappingURL=auth-registration.d.ts.map
|