@kosdev-code/kos-freestyle-sdk 2.1.17 → 2.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extension-utils-BUUtrM-T.cjs +2 -0
- package/{extension-utils-BVDLwtKr.cjs.map → extension-utils-BUUtrM-T.cjs.map} +1 -1
- package/extension-utils-sj0P_x9E.js +220 -0
- package/{extension-utils-BE0Y1Zlv.js.map → extension-utils-sj0P_x9E.js.map} +1 -1
- package/freestyle-registration-manager-DSugLmqT.js +1739 -0
- package/freestyle-registration-manager-DSugLmqT.js.map +1 -0
- package/freestyle-registration-manager-rmrOsUZq.cjs +2 -0
- package/freestyle-registration-manager-rmrOsUZq.cjs.map +1 -0
- package/index.cjs +1 -1
- package/index.js +34 -27
- package/models/models/carb-agitator/carb-agitator-model.d.ts +38 -6
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
- package/models/models/carb-agitator/index.d.ts +1 -1
- package/models/models/carb-agitator/index.d.ts.map +1 -1
- package/models/models/carb-agitator/services/carb-tank-services.d.ts +4 -0
- package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -0
- package/models/models/carb-agitator/types/index.d.ts +1 -8
- package/models/models/cgp-pump/cgp-pump-model.d.ts +24 -0
- package/models/models/cgp-pump/cgp-pump-model.d.ts.map +1 -0
- package/models/models/cgp-pump/index.d.ts +4 -0
- package/models/models/cgp-pump/index.d.ts.map +1 -0
- package/models/models/cgp-pump/types/index.d.ts +5 -0
- package/models/models/fcm-pump/fcm-pump-model.d.ts +28 -0
- package/models/models/fcm-pump/fcm-pump-model.d.ts.map +1 -0
- package/models/models/{carb-agitator/carb-agitator-registration.d.ts → fcm-pump/fcm-pump-registration.d.ts} +23 -20
- package/models/models/fcm-pump/fcm-pump-registration.d.ts.map +1 -0
- package/models/models/fcm-pump/index.d.ts +5 -0
- package/models/models/fcm-pump/index.d.ts.map +1 -0
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts +17 -0
- package/models/models/fcm-pump/services/fcm-pump-services.d.ts.map +1 -0
- package/models/models/fcm-pump/services/index.d.ts +2 -0
- package/models/models/fcm-pump/services/index.d.ts.map +1 -0
- package/models/models/fcm-pump/types/index.d.ts +5 -0
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +4 -2
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -1
- package/models/models/index.d.ts +4 -0
- package/models/models/index.d.ts.map +1 -1
- package/models/models/lfcv-pump/index.d.ts +5 -0
- package/models/models/lfcv-pump/index.d.ts.map +1 -0
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts +20 -0
- package/models/models/lfcv-pump/lfcv-pump-model.d.ts.map +1 -0
- package/models/models/lfcv-pump/lfcv-pump-registration.d.ts +87 -0
- package/models/models/lfcv-pump/lfcv-pump-registration.d.ts.map +1 -0
- package/models/models/lfcv-pump/services/index.d.ts +2 -0
- package/models/models/lfcv-pump/services/index.d.ts.map +1 -0
- package/models/models/lfcv-pump/services/lfcv-pump-services.d.ts +10 -0
- package/models/models/lfcv-pump/services/lfcv-pump-services.d.ts.map +1 -0
- package/models/models/lfcv-pump/types/index.d.ts +5 -0
- package/models/models/spm-pump/index.d.ts +5 -0
- package/models/models/spm-pump/index.d.ts.map +1 -0
- package/models/models/spm-pump/services/index.d.ts +2 -0
- package/models/models/spm-pump/services/index.d.ts.map +1 -0
- package/models/models/spm-pump/services/spm-pump-services.d.ts +7 -0
- package/models/models/spm-pump/services/spm-pump-services.d.ts.map +1 -0
- package/models/models/spm-pump/spm-pump-model.d.ts +26 -0
- package/models/models/spm-pump/spm-pump-model.d.ts.map +1 -0
- package/models/models/spm-pump/spm-pump-registration.d.ts +87 -0
- package/models/models/spm-pump/spm-pump-registration.d.ts.map +1 -0
- package/models/models/spm-pump/types/index.d.ts +5 -0
- package/models/models/types/assembly.d.ts +7 -3
- package/models/models/types/assembly.d.ts.map +1 -1
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +1 -5
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -1
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
- package/models.cjs +1 -1
- package/models.js +27 -20
- package/package.json +2 -2
- package/ui.cjs +1 -1
- package/ui.js +2 -2
- package/{use-nutrition-info-DjIGT-mE.cjs → use-nutrition-info-DSdA_SRp.cjs} +2 -2
- package/{use-nutrition-info-DjIGT-mE.cjs.map → use-nutrition-info-DSdA_SRp.cjs.map} +1 -1
- package/{use-nutrition-info-CjXNGbCN.js → use-nutrition-info-DtcZs7dL.js} +5 -5
- package/{use-nutrition-info-CjXNGbCN.js.map → use-nutrition-info-DtcZs7dL.js.map} +1 -1
- package/extension-utils-BE0Y1Zlv.js +0 -201
- package/extension-utils-BVDLwtKr.cjs +0 -2
- package/freestyle-registration-manager-CDbljuRk.cjs +0 -2
- package/freestyle-registration-manager-CDbljuRk.cjs.map +0 -1
- package/freestyle-registration-manager-z0aYdMcC.js +0 -1069
- package/freestyle-registration-manager-z0aYdMcC.js.map +0 -1
- package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +0 -1
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import { IKosIdentifiable } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
-
|
|
3
|
-
|
|
4
1
|
export interface CarbAgitatorOptions {
|
|
5
2
|
name: string;
|
|
6
3
|
path: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export interface CarbAgitatorModel extends IKosIdentifiable {
|
|
10
|
-
name: string;
|
|
11
|
-
path: string;
|
|
4
|
+
statePath: string;
|
|
12
5
|
}
|
|
13
6
|
|
|
14
7
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ProbeAware } from '../types/assembly';
|
|
2
|
+
import { PumpModel } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
+
import { CgpPumpOptions } from './types';
|
|
4
|
+
import { IKosDataModel, IKosIdentifiable, KosCompanionComposition, KosLoggerAware, KosModelRegistrationType, KosStateProp, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
5
|
+
|
|
6
|
+
export declare const MODEL_TYPE = "cgp-pump-model";
|
|
7
|
+
export type CgpPumpModel = PublicModelInterface<CgpPumpModelImpl>;
|
|
8
|
+
export interface CgpPumpModelImpl extends KosLoggerAware, ProbeAware, KosCompanionComposition<PumpModel> {
|
|
9
|
+
}
|
|
10
|
+
export declare class CgpPumpModelImpl implements IKosDataModel, IKosIdentifiable {
|
|
11
|
+
static Registration: KosModelRegistrationType<CgpPumpModel, CgpPumpOptions>;
|
|
12
|
+
highProbeWet: KosStateProp<boolean>;
|
|
13
|
+
lowProbeWet: KosStateProp<boolean>;
|
|
14
|
+
filling: KosStateProp<boolean>;
|
|
15
|
+
id: string;
|
|
16
|
+
state: {
|
|
17
|
+
name: string;
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
constructor(modelId: string, options: CgpPumpOptions);
|
|
21
|
+
get statePath(): string;
|
|
22
|
+
}
|
|
23
|
+
export declare const CgpPump: KosModelRegistrationType<CgpPumpModel, CgpPumpOptions>;
|
|
24
|
+
//# sourceMappingURL=cgp-pump-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cgp-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/cgp-pump/cgp-pump-model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAGlE,MAAM,WAAW,gBACf,SAAQ,cAAc,EACpB,UAAU,EACV,uBAAuB,CAAC,SAAS,CAAC;CAAG;AAGzC,qBAKa,gBAAiB,YAAW,aAAa,EAAE,gBAAgB;IAEtE,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IAM5E,YAAY,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAMrC,WAAW,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAMpC,OAAO,EAAG,YAAY,CAAC,OAAO,CAAC,CAAC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;gBAE1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;IAMpD,IAAI,SAAS,WAEZ;CACF;AAED,eAAO,MAAM,OAAO,wDAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/cgp-pump/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FcmPumpOptions } from './types';
|
|
2
|
+
import { FutureAwareContainer, FutureContainer, FutureResponse, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { IntentAware, IntentAwareProps } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "fcm-pump-model";
|
|
6
|
+
export type FcmPumpModel = PublicModelInterface<FcmPumpModelImpl>;
|
|
7
|
+
export declare class FcmPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware, FutureContainer {
|
|
8
|
+
id: string;
|
|
9
|
+
private logger;
|
|
10
|
+
private pumpModel;
|
|
11
|
+
futureHandler: FutureAwareContainer;
|
|
12
|
+
constructor(modelId: string, options: FcmPumpOptions, context: KosCreationContext);
|
|
13
|
+
get future(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
|
|
14
|
+
get name(): string;
|
|
15
|
+
get canPour(): boolean;
|
|
16
|
+
get isPouring(): boolean;
|
|
17
|
+
cancelPour(): Promise<void>;
|
|
18
|
+
performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
|
|
19
|
+
performElectricalTest(): Promise<import('./services').ElectricalTestData>;
|
|
20
|
+
getChildren(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>>[];
|
|
21
|
+
performPreCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
22
|
+
performCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
23
|
+
performVerify(volume: string, tracker?: string): Promise<FutureResponse>;
|
|
24
|
+
performComplete(volume1: string, volume2: string): Promise<string | undefined>;
|
|
25
|
+
init(): Promise<void>;
|
|
26
|
+
load(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fcm-pump-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/fcm-pump/fcm-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAcjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAI3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAElE,qBACa,gBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe;IAExE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAY;IAC7B,aAAa,EAAE,oBAAoB,CAAC;gBAElC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,kBAAkB;IAQ7B,IAAI,MAAM,wFAET;IAED,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,YAEZ;IAEK,UAAU;IAIhB,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAIhC,qBAAqB;IAS3B,WAAW;IAML,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKpC,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKjC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAI9C,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAMhD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FcmPumpModel } from './fcm-pump-model';
|
|
2
|
+
import { FcmPumpOptions } from './types';
|
|
2
3
|
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
|
-
* #
|
|
6
|
+
* # FcmPump
|
|
6
7
|
*
|
|
7
|
-
* The registration bean includes convenience methods for creating and working with
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with FcmPumpModel instances.
|
|
8
9
|
*
|
|
9
10
|
* ## type
|
|
10
11
|
* The type property is a string that identifies the model type.
|
|
@@ -14,14 +15,14 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
14
15
|
* @example
|
|
15
16
|
* ```typescript
|
|
16
17
|
*
|
|
17
|
-
* @kosDependency({modelType:
|
|
18
|
-
* private
|
|
18
|
+
* @kosDependency({modelType: FcmPump.type, id: "fcmPumpId"})
|
|
19
|
+
* private fcmPumpModel: FcmPumpModel;
|
|
19
20
|
* ```
|
|
20
21
|
*
|
|
21
22
|
*
|
|
22
23
|
* ## factory
|
|
23
24
|
*
|
|
24
|
-
* The factory method creates a factory function that can be used to create new
|
|
25
|
+
* The factory method creates a factory function that can be used to create new FcmPumpModel instances.
|
|
25
26
|
*
|
|
26
27
|
|
|
27
28
|
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
@@ -31,7 +32,7 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
31
32
|
*
|
|
32
33
|
* @example
|
|
33
34
|
* ```typescript
|
|
34
|
-
* const model =
|
|
35
|
+
* const model = FcmPump.factory("fcmPumpId")({
|
|
35
36
|
* // Add option data
|
|
36
37
|
* });
|
|
37
38
|
* ```
|
|
@@ -40,16 +41,16 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
40
41
|
*
|
|
41
42
|
* ## predicate
|
|
42
43
|
*
|
|
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
|
|
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 FcmPumpModel.
|
|
44
45
|
*
|
|
45
46
|
* @example
|
|
46
47
|
* ```typescript
|
|
47
48
|
*
|
|
48
49
|
* const model: IKosDataModel = ...; // some model
|
|
49
50
|
*
|
|
50
|
-
* if (
|
|
51
|
-
* // if the function evaluates to true, the model is narrowed down to
|
|
52
|
-
* // and the compiler will know that the model has the
|
|
51
|
+
* if (FcmPump.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to FcmPumpModel
|
|
53
|
+
* // and the compiler will know that the model has the FcmPumpModel interface
|
|
53
54
|
* model.updateAvailability(false);
|
|
54
55
|
* }
|
|
55
56
|
* ```
|
|
@@ -66,19 +67,21 @@ import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
|
66
67
|
*
|
|
67
68
|
* **registration.ts**
|
|
68
69
|
* ```typescript
|
|
69
|
-
* import {
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
70
|
+
* import { FcmPump } from "@kos-ui/project-models";
|
|
71
|
+
* import { KosModelRegistry } from "@kosdev-code/kos-dispense-sdk";
|
|
72
|
+
*
|
|
73
|
+
* import { initKosProvider } from "@kosdev-code/kos-ui-sdk";
|
|
74
|
+
*
|
|
75
|
+
* KosModelRegistry.dispense
|
|
76
|
+
* .models()
|
|
77
|
+
* .model(FcmPump);
|
|
75
78
|
* ```
|
|
76
79
|
*
|
|
77
80
|
* ## registration.singleton
|
|
78
81
|
|
|
79
|
-
* The
|
|
82
|
+
* The fcmPump model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
80
83
|
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
81
84
|
|
|
82
85
|
* */
|
|
83
|
-
export declare const
|
|
84
|
-
//# sourceMappingURL=
|
|
86
|
+
export declare const FcmPump: KosModelRegistrationFactory<FcmPumpModel, FcmPumpOptions>;
|
|
87
|
+
//# sourceMappingURL=fcm-pump-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm-pump-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/fcm-pump/fcm-pump-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,OAAO,2DAMlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/fcm-pump/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
|
|
3
|
+
export type ElectricalTestErrorType = "errEEPROM" | "unknownError";
|
|
4
|
+
export type ElectricalTestData = {
|
|
5
|
+
error?: ElectricalTestErrorType;
|
|
6
|
+
result?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ElectricalTestResponse = [
|
|
9
|
+
ElectricalTestErrorType | undefined,
|
|
10
|
+
ElectricalTestData
|
|
11
|
+
];
|
|
12
|
+
export declare const performElectricalTest: (path: string) => Promise<ElectricalTestResponse>;
|
|
13
|
+
export declare const performPreCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
14
|
+
export declare const performCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
15
|
+
export declare const performVerify: (pump: string, volume: string, tracker?: string) => Promise<FutureResponse>;
|
|
16
|
+
export declare const performComplete: (pump: string, volume1: string, volume2: string) => Promise<string | undefined>;
|
|
17
|
+
//# sourceMappingURL=fcm-pump-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm-pump-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/fcm-pump/services/fcm-pump-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAWjC,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,cAAc,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,uBAAuB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG;IACnC,uBAAuB,GAAG,SAAS;IACnC,kBAAkB;CACnB,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAC1B,MAAM,KACX,QAAQ,sBAAsB,CAoChC,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAgB,MAAM,YAAY,MAAM,4BAoCvE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAgB,MAAM,YAAY,MAAM,4BAoCpE,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,MAAM,UACJ,MAAM,YACJ,MAAM,4BAqCjB,CAAC;AAyBF,eAAO,MAAM,eAAe,SACpB,MAAM,WACH,MAAM,WACN,MAAM,gCAuBhB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/fcm-pump/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -9,11 +9,12 @@ import { IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterfa
|
|
|
9
9
|
|
|
10
10
|
export declare const MODEL_TYPE = "freestyle-assembly-model";
|
|
11
11
|
export declare const FEATURE_SUPPORTS_ICE = "iceAgitator";
|
|
12
|
-
export declare const FEATURE_SUPPORTS_CARB = "
|
|
12
|
+
export declare const FEATURE_SUPPORTS_CARB = "carbTank";
|
|
13
13
|
export declare const FEATURE_SUPPORTS_REMOTE_TRAYS = "remoteTrays";
|
|
14
14
|
export type FreestyleAssemblyModel = PublicModelInterface<FreestyleAssemblyModelImpl> & AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt>;
|
|
15
15
|
export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosIdentifiable, AssemblyModel<FreestyleModelAssemblyExt, FreestyleHolderModelExt> {
|
|
16
16
|
id: string;
|
|
17
|
+
private _carbTankModel?;
|
|
17
18
|
private logger;
|
|
18
19
|
private assembly;
|
|
19
20
|
private _remoteTrays;
|
|
@@ -28,7 +29,7 @@ export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosId
|
|
|
28
29
|
get boards(): BoardModel<any>[];
|
|
29
30
|
updateModel(options: AssemblyOptions): void;
|
|
30
31
|
get iceAgitator(): IceAgitatorModel;
|
|
31
|
-
get
|
|
32
|
+
get carbTank(): CarbAgitatorModel | undefined;
|
|
32
33
|
get cartridgeAgitators(): CartridgeAgitatorContainerModel;
|
|
33
34
|
get defaultCartridgeAgitator(): CartridgeAgitatorModel;
|
|
34
35
|
get cartridgeAgitatorModels(): CartridgeAgitatorModel[];
|
|
@@ -39,5 +40,6 @@ export declare class FreestyleAssemblyModelImpl implements IKosDataModel, IKosId
|
|
|
39
40
|
get supportsIce(): boolean;
|
|
40
41
|
get supportsCarb(): boolean;
|
|
41
42
|
init(): Promise<void>;
|
|
43
|
+
ready(): Promise<void>;
|
|
42
44
|
}
|
|
43
45
|
//# sourceMappingURL=freestyle-assembly-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"freestyle-assembly-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/freestyle-assembly/freestyle-assembly-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,UAAU,6BAA6B,CAAC;AAErD,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAChD,eAAO,MAAM,6BAA6B,gBAAgB,CAAC;AAE3D,MAAM,MAAM,sBAAsB,GAChC,oBAAoB,CAAC,0BAA0B,CAAC,GAC9C,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC,CAAC;AAEtE,qBAEa,0BACX,YACE,aAAa,EACb,gBAAgB,EAChB,aAAa,CAAC,yBAAyB,EAAE,uBAAuB,CAAC;IAEnE,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,cAAc,CAAC,CAAoB;IAC3C,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,QAAQ,CAGd;IAGF,OAAO,CAAC,YAAY,CAA4B;gBAG9C,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,kBAAkB;IAW7B,IAAI,YAAY,IAAI,MAAM,EAAE,CAE3B;IACD,IAAI,WAAW,IAAI,MAAM,EAAE,CAE1B;IACD,IAAI,UAAU,IAAI,WAAW,CAAC,uBAAuB,CAAC,EAAE,CAEvD;IACD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGxE,kBAAkB,CAChB,UAAU,EAAE,MAAM,GACjB,WAAW,CAAC,uBAAuB,CAAC,EAAE;IAGzC,IAAI,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAEpD;IACD,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;IAED,IAAI,MAAM,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAE9B;IACD,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IAG3C,IAAI,WAAW,IAAI,gBAAgB,CAElC;IACD,IAAI,QAAQ,IAAI,iBAAiB,GAAG,SAAS,CAE5C;IAED,IAAI,kBAAkB,IAAI,+BAA+B,CAExD;IAED,IAAI,wBAAwB,IAAI,sBAAsB,CAErD;IACD,IAAI,uBAAuB,IAAI,sBAAsB,EAAE,CAEtD;IAED,IAAI,qBAAqB,IAAI,OAAO,CAEnC;IAED,IAAI,WAAW,IAAI,wBAAwB,CAE1C;IAED,IAAI,cAAc,IAAI,OAAO,CAI5B;IAID,IAAI,mBAAmB,IAAI,OAAO,CAEjC;IACD,IAAI,WAAW,YAEd;IAED,IAAI,YAAY,YAEf;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ7B"}
|
package/models/models/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export * from './carb-agitator';
|
|
2
2
|
export * from './cartridge-agitator';
|
|
3
|
+
export * from './cgp-pump';
|
|
4
|
+
export * from './fcm-pump';
|
|
3
5
|
export * from './freestyle-assembly';
|
|
4
6
|
export * from './freestyle-holder';
|
|
5
7
|
export * from './freestyle-nozzle';
|
|
6
8
|
export * from './freestyle-pump';
|
|
7
9
|
export * from './ice-agitator';
|
|
10
|
+
export * from './lfcv-pump';
|
|
11
|
+
export * from './spm-pump';
|
|
8
12
|
export * from './types/assembly';
|
|
9
13
|
export * from './types/ingredients';
|
|
10
14
|
export * from './types/pumps';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/lfcv-pump/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LfcvPumpOptions } from './types';
|
|
2
|
+
import { FutureResponse, IKosDataModel, IKosIdentifiable, KosCreationContext, PublicModelInterface } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { IntentAware, IntentAwareProps } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "lfcv-pump-model";
|
|
6
|
+
export type LfcvPumpModel = PublicModelInterface<LfcvPumpModelImpl>;
|
|
7
|
+
export declare class LfcvPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware {
|
|
8
|
+
id: string;
|
|
9
|
+
private logger;
|
|
10
|
+
private pumpModel;
|
|
11
|
+
constructor(modelId: string, options: LfcvPumpOptions, context: KosCreationContext);
|
|
12
|
+
get name(): string;
|
|
13
|
+
get canPour(): boolean;
|
|
14
|
+
get isPouring(): boolean;
|
|
15
|
+
cancelPour(): Promise<void>;
|
|
16
|
+
performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
|
|
17
|
+
init(): Promise<void>;
|
|
18
|
+
load(): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=lfcv-pump-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lfcv-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/lfcv-pump/lfcv-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAEhB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEpE,qBACa,iBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,WAAW;IAEvD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAY;gBAE3B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,kBAAkB;IAO7B,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,YAEZ;IAEK,UAAU;IAIhB,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAMhC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { LfcvPumpModel } from './lfcv-pump-model';
|
|
2
|
+
import { LfcvPumpOptions } from './types';
|
|
3
|
+
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # LfcvPump
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with LfcvPumpModel 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: LfcvPump.type, id: "lfcvPumpId"})
|
|
19
|
+
* private lfcvPumpModel: LfcvPumpModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new LfcvPumpModel instances.
|
|
26
|
+
*
|
|
27
|
+
|
|
28
|
+
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
29
|
+
*
|
|
30
|
+
* If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
|
|
31
|
+
* in this case and the existing model will be returned in its current state.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const model = LfcvPump.factory("lfcvPumpId")({
|
|
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 LfcvPumpModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (LfcvPump.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to LfcvPumpModel
|
|
53
|
+
* // and the compiler will know that the model has the LfcvPumpModel 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 { LfcvPump } 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(LfcvPump);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The lfcvPump model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
83
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const LfcvPump: KosModelRegistrationFactory<LfcvPumpModel, LfcvPumpOptions>;
|
|
87
|
+
//# sourceMappingURL=lfcv-pump-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lfcv-pump-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/lfcv-pump/lfcv-pump-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,QAAQ,6DAMnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/lfcv-pump/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface LfcvPumpResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* @category Service
|
|
6
|
+
* Retrieves the initial lfcv-pump data.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getLfcvPumps: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<LfcvPumpResponse[]> | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=lfcv-pump-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lfcv-pump-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/lfcv-pump/services/lfcv-pump-services.ts"],"names":[],"mappings":"AAcA,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AACD;;;GAGG;AACH,eAAO,MAAM,YAAY,qGAIxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/spm-pump/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,mBAAmB,SAAS,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,eAAe,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/spm-pump/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FutureResponse } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
|
|
3
|
+
export declare const performPreCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
4
|
+
export declare const performCalibrate: (pump: string, tracker?: string) => Promise<FutureResponse>;
|
|
5
|
+
export declare const performVerify: (pump: string, volume: string, payload: any, tracker?: string) => Promise<FutureResponse>;
|
|
6
|
+
export declare const performComplete: (pump: string, volume1: string, volume2: string, payload: any) => Promise<any[]>;
|
|
7
|
+
//# sourceMappingURL=spm-pump-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spm-pump-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/spm-pump/services/spm-pump-services.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAYjC,eAAO,MAAM,mBAAmB,SAAgB,MAAM,YAAY,MAAM,4BAoCvE,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAgB,MAAM,YAAY,MAAM,4BAoCpE,CAAC;AAEF,eAAO,MAAM,aAAa,SAClB,MAAM,UACJ,MAAM,WACL,GAAG,YACF,MAAM,4BA4CjB,CAAC;AAEF,eAAO,MAAM,eAAe,SACpB,MAAM,WACH,MAAM,WACN,MAAM,WACN,GAAG,mBA4Cb,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IntentAware, IntentAwareProps } from '@kosdev-code/kos-dispense-sdk';
|
|
2
|
+
import { SpmPumpOptions } from './types';
|
|
3
|
+
import { KosCreationContext, IKosDataModel, IKosIdentifiable, PublicModelInterface, FutureContainer, FutureAwareContainer, FutureResponse } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
+
|
|
5
|
+
export declare const MODEL_TYPE = "spm-pump-model";
|
|
6
|
+
export type SpmPumpModel = PublicModelInterface<SpmPumpModelImpl>;
|
|
7
|
+
export declare class SpmPumpModelImpl implements IKosDataModel, IKosIdentifiable, IntentAware, FutureContainer {
|
|
8
|
+
id: string;
|
|
9
|
+
private logger;
|
|
10
|
+
private pump;
|
|
11
|
+
futureHandler: FutureAwareContainer;
|
|
12
|
+
constructor(modelId: string, options: SpmPumpOptions, context: KosCreationContext);
|
|
13
|
+
get name(): string;
|
|
14
|
+
get canPour(): boolean;
|
|
15
|
+
get isPouring(): boolean;
|
|
16
|
+
cancelPour(): Promise<void>;
|
|
17
|
+
performIntent(props: IntentAwareProps | string): Promise<FutureResponse | undefined>;
|
|
18
|
+
get future(): import('@kosdev-code/kos-ui-sdk').IFutureModel<Record<string, unknown>> | undefined;
|
|
19
|
+
performPreCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
20
|
+
performCalibrate(tracker?: string): Promise<FutureResponse>;
|
|
21
|
+
performVerify(volume: string, payload: any, tracker?: string): Promise<FutureResponse>;
|
|
22
|
+
performComplete(volume1: string, volume2: string, payload: any): Promise<any[]>;
|
|
23
|
+
init(): Promise<void>;
|
|
24
|
+
load(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=spm-pump-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spm-pump-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/spm-pump/spm-pump-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AAQvC,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;AAElE,qBACa,gBACX,YAAW,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe;IAExE,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,IAAI,CAAY;IACxB,aAAa,EAAE,oBAAoB,CAAC;gBAGlC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,kBAAkB;IAS7B,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,YAEZ;IAEK,UAAU;IAIhB,aAAa,CACX,KAAK,EAAE,gBAAgB,GAAG,MAAM,GAC/B,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAItC,IAAI,MAAM,wFAET;IAGK,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKpC,gBAAgB,CAAC,OAAO,CAAC,EAAE,MAAM;IAKjC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM;IAI5D,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG;IAM9D,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { SpmPumpModel } from './spm-pump-model';
|
|
2
|
+
import { SpmPumpOptions } from './types';
|
|
3
|
+
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* # SpmPump
|
|
7
|
+
*
|
|
8
|
+
* The registration bean includes convenience methods for creating and working with SpmPumpModel 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: SpmPump.type, id: "spmPumpId"})
|
|
19
|
+
* private spmPumpModel: SpmPumpModel;
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* ## factory
|
|
24
|
+
*
|
|
25
|
+
* The factory method creates a factory function that can be used to create new SpmPumpModel instances.
|
|
26
|
+
*
|
|
27
|
+
|
|
28
|
+
* The factory function is a curried function that takes the model id as the first argument and the options as the second argument.
|
|
29
|
+
*
|
|
30
|
+
* If a model with the specified id already exists, the factory function will return the existing model. The options will be ignored
|
|
31
|
+
* in this case and the existing model will be returned in its current state.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const model = SpmPump.factory("spmPumpId")({
|
|
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 SpmPumpModel.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
*
|
|
49
|
+
* const model: IKosDataModel = ...; // some model
|
|
50
|
+
*
|
|
51
|
+
* if (SpmPump.predicate(model)) {
|
|
52
|
+
* // if the function evaluates to true, the model is narrowed down to SpmPumpModel
|
|
53
|
+
* // and the compiler will know that the model has the SpmPumpModel 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 { SpmPump } 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(SpmPump);
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## registration.singleton
|
|
81
|
+
|
|
82
|
+
* The spmPump model is NOT a singleton model. This means that each time the factory function is called with a unique ID, a new model instance will be created.
|
|
83
|
+
* If the factory function is called with an ID that already exists, the existing model will be returned.
|
|
84
|
+
|
|
85
|
+
* */
|
|
86
|
+
export declare const SpmPump: KosModelRegistrationFactory<SpmPumpModel, SpmPumpOptions>;
|
|
87
|
+
//# sourceMappingURL=spm-pump-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spm-pump-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/spm-pump/spm-pump-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgFK;AACL,eAAO,MAAM,OAAO,2DAMlB,CAAC"}
|