@kosdev-code/kos-freestyle-sdk 2.0.2
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-D_CXSnlW.cjs +2 -0
- package/extension-utils-D_CXSnlW.cjs.map +1 -0
- package/extension-utils-uYGl3TGm.js +201 -0
- package/extension-utils-uYGl3TGm.js.map +1 -0
- package/freestyle-registration-manager-pbtzJUqS.js +765 -0
- package/freestyle-registration-manager-pbtzJUqS.js.map +1 -0
- package/freestyle-registration-manager-yxRMbjlE.cjs +2 -0
- package/freestyle-registration-manager-yxRMbjlE.cjs.map +1 -0
- package/index.cjs +2 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +33 -0
- package/index.js.map +1 -0
- package/models/constants/index.d.ts +2 -0
- package/models/constants/index.d.ts.map +1 -0
- package/models/index.d.ts +6 -0
- package/models/index.d.ts.map +1 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +23 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +87 -0
- package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +1 -0
- package/models/models/agitation-required-trouble/index.d.ts +4 -0
- package/models/models/agitation-required-trouble/index.d.ts.map +1 -0
- package/models/models/agitation-required-trouble/types/index.d.ts +8 -0
- package/models/models/carb-agitator/carb-agitator-model.d.ts +14 -0
- package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -0
- package/models/models/carb-agitator/carb-agitator-registration.d.ts +84 -0
- package/models/models/carb-agitator/carb-agitator-registration.d.ts.map +1 -0
- package/models/models/carb-agitator/index.d.ts +3 -0
- package/models/models/carb-agitator/index.d.ts.map +1 -0
- package/models/models/carb-agitator/types/index.d.ts +14 -0
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts +20 -0
- package/models/models/cartridge-agitator/cartridge-agitator-container-model.d.ts.map +1 -0
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts +87 -0
- package/models/models/cartridge-agitator/cartridge-agitator-container-registration.d.ts.map +1 -0
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts +27 -0
- package/models/models/cartridge-agitator/cartridge-agitator-model.d.ts.map +1 -0
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts +87 -0
- package/models/models/cartridge-agitator/cartridge-agitator-registration.d.ts.map +1 -0
- package/models/models/cartridge-agitator/index.d.ts +6 -0
- package/models/models/cartridge-agitator/index.d.ts.map +1 -0
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts +8 -0
- package/models/models/cartridge-agitator/services/cartridge-agitator-services.d.ts.map +1 -0
- package/models/models/cartridge-agitator/types/index.d.ts +14 -0
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts +38 -0
- package/models/models/freestyle-assembly/freestyle-assembly-model.d.ts.map +1 -0
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts +89 -0
- package/models/models/freestyle-assembly/freestyle-assembly-registration.d.ts.map +1 -0
- package/models/models/freestyle-assembly/index.d.ts +4 -0
- package/models/models/freestyle-assembly/index.d.ts.map +1 -0
- package/models/models/freestyle-assembly/types/index.d.ts +8 -0
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts +19 -0
- package/models/models/freestyle-holder/freestyle-holder-model.d.ts.map +1 -0
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts +87 -0
- package/models/models/freestyle-holder/freestyle-holder-registration.d.ts.map +1 -0
- package/models/models/freestyle-holder/index.d.ts +4 -0
- package/models/models/freestyle-holder/index.d.ts.map +1 -0
- package/models/models/freestyle-holder/types/index.d.ts +8 -0
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts +21 -0
- package/models/models/freestyle-nozzle/freestyle-nozzle-model.d.ts.map +1 -0
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts +87 -0
- package/models/models/freestyle-nozzle/freestyle-nozzle-registration.d.ts.map +1 -0
- package/models/models/freestyle-nozzle/index.d.ts +5 -0
- package/models/models/freestyle-nozzle/index.d.ts.map +1 -0
- package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts +32 -0
- package/models/models/freestyle-nozzle/services/freestyle-nozzle-services.d.ts.map +1 -0
- package/models/models/freestyle-nozzle/services/index.d.ts +2 -0
- package/models/models/freestyle-nozzle/services/index.d.ts.map +1 -0
- package/models/models/freestyle-nozzle/types/index.d.ts +8 -0
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts +14 -0
- package/models/models/freestyle-pump/freestyle-pump-model.d.ts.map +1 -0
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts +87 -0
- package/models/models/freestyle-pump/freestyle-pump-registration.d.ts.map +1 -0
- package/models/models/freestyle-pump/index.d.ts +5 -0
- package/models/models/freestyle-pump/index.d.ts.map +1 -0
- package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts +10 -0
- package/models/models/freestyle-pump/services/freestyle-pump-services.d.ts.map +1 -0
- package/models/models/freestyle-pump/services/index.d.ts +2 -0
- package/models/models/freestyle-pump/services/index.d.ts.map +1 -0
- package/models/models/freestyle-pump/types/index.d.ts +5 -0
- package/models/models/ice-agitator/ice-agitator-model.d.ts +28 -0
- package/models/models/ice-agitator/ice-agitator-model.d.ts.map +1 -0
- package/models/models/ice-agitator/ice-agitator-registration.d.ts +84 -0
- package/models/models/ice-agitator/ice-agitator-registration.d.ts.map +1 -0
- package/models/models/ice-agitator/index.d.ts +3 -0
- package/models/models/ice-agitator/index.d.ts.map +1 -0
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts +8 -0
- package/models/models/ice-agitator/services/ice-agitator-services.d.ts.map +1 -0
- package/models/models/ice-agitator/services/index.d.ts +2 -0
- package/models/models/ice-agitator/services/index.d.ts.map +1 -0
- package/models/models/ice-agitator/types/index.d.ts +28 -0
- package/models/models/index.d.ts +11 -0
- package/models/models/index.d.ts.map +1 -0
- package/models/models/types/assembly.d.ts +16 -0
- package/models/models/types/assembly.d.ts.map +1 -0
- package/models/models/types/ingredients.d.ts +33 -0
- package/models/models/types/ingredients.d.ts.map +1 -0
- package/models/models/types/pumps.d.ts +6 -0
- package/models/models/types/pumps.d.ts.map +1 -0
- package/models/utils/extension-utils.d.ts +37 -0
- package/models/utils/extension-utils.d.ts.map +1 -0
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts +19 -0
- package/models/utils/extensions/assembly/assembly-data-mapper.d.ts.map +1 -0
- package/models/utils/extensions/assembly/types.d.ts +130 -0
- package/models/utils/extensions/assembly/types.d.ts.map +1 -0
- package/models/utils/extensions/availability/freestyle-loader.d.ts +31 -0
- package/models/utils/extensions/availability/freestyle-loader.d.ts.map +1 -0
- package/models/utils/extensions/availability/freestyle-mapper.d.ts +14 -0
- package/models/utils/extensions/availability/freestyle-mapper.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/assets.d.ts +10 -0
- package/models/utils/extensions/availability/middleware/assets.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts +14 -0
- package/models/utils/extensions/availability/middleware/beverage-screen.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/beverages.d.ts +10 -0
- package/models/utils/extensions/availability/middleware/beverages.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts +5 -0
- package/models/utils/extensions/availability/middleware/brand-screen.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/brands.d.ts +10 -0
- package/models/utils/extensions/availability/middleware/brands.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/copy-input.d.ts +4 -0
- package/models/utils/extensions/availability/middleware/copy-input.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/flavors.d.ts +10 -0
- package/models/utils/extensions/availability/middleware/flavors.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/nutrition.d.ts +10 -0
- package/models/utils/extensions/availability/middleware/nutrition.d.ts.map +1 -0
- package/models/utils/extensions/availability/middleware/related-brands.d.ts +14 -0
- package/models/utils/extensions/availability/middleware/related-brands.d.ts.map +1 -0
- package/models/utils/extensions/availability/types.d.ts +251 -0
- package/models/utils/extensions/availability/types.d.ts.map +1 -0
- package/models/utils/extensions/availability/util/locate-brand.d.ts +2 -0
- package/models/utils/extensions/availability/util/locate-brand.d.ts.map +1 -0
- package/models/utils/extensions/availability/util/process-related-brand.d.ts +4 -0
- package/models/utils/extensions/availability/util/process-related-brand.d.ts.map +1 -0
- package/models/utils/extensions/ingredient/index.d.ts +2 -0
- package/models/utils/extensions/ingredient/index.d.ts.map +1 -0
- package/models/utils/extensions/ingredient/model-extension.d.ts +7 -0
- package/models/utils/extensions/ingredient/model-extension.d.ts.map +1 -0
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts +6 -0
- package/models/utils/extensions/pourable/select-pourable-mapper.d.ts.map +1 -0
- package/models/utils/freestyle-registration-manager.d.ts +39 -0
- package/models/utils/freestyle-registration-manager.d.ts.map +1 -0
- package/models/utils/index.d.ts +5 -0
- package/models/utils/index.d.ts.map +1 -0
- package/models.cjs +2 -0
- package/models.cjs.map +1 -0
- package/models.d.ts +1 -0
- package/models.js +25 -0
- package/models.js.map +1 -0
- package/package.json +37 -0
- package/ui/contexts/index.d.ts +2 -0
- package/ui/contexts/index.d.ts.map +1 -0
- package/ui/hooks/freestyle-assembly/index.d.ts +2 -0
- package/ui/hooks/freestyle-assembly/index.d.ts.map +1 -0
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts +4 -0
- package/ui/hooks/freestyle-assembly/use-freestyle-assembly.d.ts.map +1 -0
- package/ui/hooks/freestyle-nozzle/index.d.ts +2 -0
- package/ui/hooks/freestyle-nozzle/index.d.ts.map +1 -0
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts +4 -0
- package/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.d.ts.map +1 -0
- package/ui/hooks/ice-agitator/index.d.ts +3 -0
- package/ui/hooks/ice-agitator/index.d.ts.map +1 -0
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts +14 -0
- package/ui/hooks/ice-agitator/use-ice-agitator.d.ts.map +1 -0
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts +7 -0
- package/ui/hooks/ice-agitator/with-ice-agitator.d.ts.map +1 -0
- package/ui/hooks/index.d.ts +5 -0
- package/ui/hooks/index.d.ts.map +1 -0
- package/ui/hooks/nutrition/index.d.ts +2 -0
- package/ui/hooks/nutrition/index.d.ts.map +1 -0
- package/ui/hooks/nutrition/use-nutrition-info.d.ts +4 -0
- package/ui/hooks/nutrition/use-nutrition-info.d.ts.map +1 -0
- package/ui/index.d.ts +3 -0
- package/ui/index.d.ts.map +1 -0
- package/ui.cjs +2 -0
- package/ui.cjs.map +1 -0
- package/ui.d.ts +1 -0
- package/ui.js +14 -0
- package/ui.js.map +1 -0
- package/use-nutrition-info-CGrmEGIR.cjs +2 -0
- package/use-nutrition-info-CGrmEGIR.cjs.map +1 -0
- package/use-nutrition-info-D-wbfIlj.js +52 -0
- package/use-nutrition-info-D-wbfIlj.js.map +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { IceAgitatorModel, IceAgitatorOptions } from './types';
|
|
2
|
+
import { KosModelRegistrationFactory } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* # IceAgitator
|
|
6
|
+
*
|
|
7
|
+
* The registration bean includes convenience methods for creating and working with IceAgitatorModel 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: IceAgitator.type, id: "iceAgitatorId"})
|
|
18
|
+
* private iceAgitatorModel: IceAgitatorModel;
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* ## factory
|
|
23
|
+
*
|
|
24
|
+
* The factory method creates a factory function that can be used to create new IceAgitatorModel 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 = IceAgitator.factory("iceAgitatorId")({
|
|
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 IceAgitatorModel.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
*
|
|
48
|
+
* const model: IKosDataModel = ...; // some model
|
|
49
|
+
*
|
|
50
|
+
* if (IceAgitator.predicate(model)) {
|
|
51
|
+
* // if the function evaluates to true, the model is narrowed down to IceAgitatorModel
|
|
52
|
+
* // and the compiler will know that the model has the IceAgitatorModel 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 { IceAgitator } from "@kos-ui/kos-dispenser-model";
|
|
70
|
+
* ...
|
|
71
|
+
* import { ExtensionManager, IKosRegistry } from "@kosdev-code/kos-ui-sdk";
|
|
72
|
+
* export const kosModels: IKosRegistry["models"] = {
|
|
73
|
+
* ...IceAgitator.registration,
|
|
74
|
+
* };
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* ## registration.singleton
|
|
78
|
+
|
|
79
|
+
* The iceAgitator 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 IceAgitator: KosModelRegistrationFactory<IceAgitatorModel, IceAgitatorOptions>;
|
|
84
|
+
//# sourceMappingURL=ice-agitator-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ice-agitator-registration.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/ice-agitator-registration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EK;AAEL,eAAO,MAAM,WAAW,mEAMtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Service
|
|
3
|
+
* Retrieves the initial dispenser data.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getIceTypes: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<string[]> | undefined>;
|
|
6
|
+
export declare const updateIceType: (agitator: string, type: string) => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<any> | undefined>;
|
|
7
|
+
export declare const resetIceSetting: () => Promise<import('@kosdev-code/kos-ui-sdk').KosServiceResponse<unknown[]> | undefined>;
|
|
8
|
+
//# sourceMappingURL=ice-agitator-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ice-agitator-services.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/services/ice-agitator-services.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,eAAO,MAAM,WAAW,2FAMvB,CAAC;AAEF,eAAO,MAAM,aAAa,aAAoB,MAAM,QAAQ,MAAM,mFAOjE,CAAC;AAEF,eAAO,MAAM,eAAe,4FAK3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/ice-agitator/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IKosIdentifiable, KosConfigProperty } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
|
|
3
|
+
export interface IceAgitatorOptions {
|
|
4
|
+
name: string;
|
|
5
|
+
path: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface IceAgitatorModel extends IKosIdentifiable {
|
|
9
|
+
name: string;
|
|
10
|
+
path: string;
|
|
11
|
+
enableIceChuteClear: KosConfigProperty<boolean>;
|
|
12
|
+
iceChuteClearDurationMs: KosConfigProperty<number>;
|
|
13
|
+
iceChuteClearIntervalSec: KosConfigProperty<number>;
|
|
14
|
+
iceChuteClearRetryIntervalSec: KosConfigProperty<number>;
|
|
15
|
+
maxDispenseSec: KosConfigProperty<number>;
|
|
16
|
+
readonly type: KosConfigProperty<string>;
|
|
17
|
+
dilutionOffset: KosConfigProperty<number>;
|
|
18
|
+
inactivitySec: KosConfigProperty<number>;
|
|
19
|
+
|
|
20
|
+
volWithoutIceMl: KosConfigProperty<number>;
|
|
21
|
+
durationSec: KosConfigProperty<number>;
|
|
22
|
+
|
|
23
|
+
iceTypes: string[];
|
|
24
|
+
updateIceType: (type: string) => Promise<void>;
|
|
25
|
+
resetDefaultValues: () => any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './carb-agitator';
|
|
2
|
+
export * from './cartridge-agitator';
|
|
3
|
+
export * from './freestyle-assembly';
|
|
4
|
+
export * from './freestyle-holder';
|
|
5
|
+
export * from './freestyle-nozzle';
|
|
6
|
+
export * from './freestyle-pump';
|
|
7
|
+
export * from './ice-agitator';
|
|
8
|
+
export * from './types/assembly';
|
|
9
|
+
export * from './types/ingredients';
|
|
10
|
+
export * from './types/pumps';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IceAgitatorModel } from '../ice-agitator';
|
|
2
|
+
import { CartridgeAgitatorContainerModel } from '../cartridge-agitator';
|
|
3
|
+
import { CarbAgitatorModel } from '../carb-agitator';
|
|
4
|
+
|
|
5
|
+
export interface FreestyleHolderModelExt {
|
|
6
|
+
agitated?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface FreestyleModelAssemblyExt {
|
|
9
|
+
iceAgitator: IceAgitatorModel;
|
|
10
|
+
carbAgitator: CarbAgitatorModel;
|
|
11
|
+
cartridgeAgitators: CartridgeAgitatorContainerModel;
|
|
12
|
+
supportsIce: boolean;
|
|
13
|
+
supportsCarb: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type Agitator = IceAgitatorModel | CarbAgitatorModel;
|
|
16
|
+
//# sourceMappingURL=assembly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/types/assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,YAAY,EAAE,iBAAiB,CAAC;IAChC,kBAAkB,EAAE,+BAA+B,CAAC;IACpD,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IngredientContainerModel, IngredientModel, IngredientServices } from '@kosdev-code/kos-dispense-sdk';
|
|
2
|
+
|
|
3
|
+
export interface FreestyleExtIngredientResponseData {
|
|
4
|
+
carbonated: boolean;
|
|
5
|
+
chilled: boolean;
|
|
6
|
+
highYield: number;
|
|
7
|
+
icon: string;
|
|
8
|
+
daysUseByOffset: number;
|
|
9
|
+
daysExpirationOffset: number;
|
|
10
|
+
maxGaugeLevel: number;
|
|
11
|
+
agitated: boolean;
|
|
12
|
+
sweetener: boolean;
|
|
13
|
+
superPump: boolean;
|
|
14
|
+
bib: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FreestyleIngredientData {
|
|
17
|
+
carbonated: boolean;
|
|
18
|
+
chilled: boolean;
|
|
19
|
+
highYield: number;
|
|
20
|
+
icon: string;
|
|
21
|
+
daysUseByOffset: number;
|
|
22
|
+
daysExpirationOffset: number;
|
|
23
|
+
maxGaugeLevel: number;
|
|
24
|
+
agitated: boolean;
|
|
25
|
+
sweetener: boolean;
|
|
26
|
+
superPump: boolean;
|
|
27
|
+
bib: boolean;
|
|
28
|
+
ingredientMacro: "macro" | "micro";
|
|
29
|
+
}
|
|
30
|
+
export type FreestyleIngredientResponseData = FreestyleExtIngredientResponseData & IngredientServices.IngredientResponse;
|
|
31
|
+
export type FreestyleIngredientModelData = IngredientModel<FreestyleIngredientData>;
|
|
32
|
+
export type IngredientContainerModelData = IngredientContainerModel<FreestyleIngredientData>;
|
|
33
|
+
//# sourceMappingURL=ingredients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ingredients.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/types/ingredients.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,WAAW,kCAAkC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;IACb,eAAe,EAAE,OAAO,GAAG,OAAO,CAAC;CACpC;AACD,MAAM,MAAM,+BAA+B,GACzC,kCAAkC,GAAG,kBAAkB,CAAC,kBAAkB,CAAC;AAE7E,MAAM,MAAM,4BAA4B,GACtC,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3C,MAAM,MAAM,4BAA4B,GACtC,wBAAwB,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pumps.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/models/types/pumps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,WAAW,CAAC;CAC5B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AvailabilityLoaderProps } from './extensions/availability/freestyle-loader';
|
|
2
|
+
import { CoreExtensionManager } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
import { DispenseExtensionManager } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
|
|
5
|
+
export declare const EXTENSION_PLUGIN_VISIBILITY = "pluginVisibility";
|
|
6
|
+
export declare class FreestyleExtensionManager {
|
|
7
|
+
core: CoreExtensionManager;
|
|
8
|
+
dispense: DispenseExtensionManager;
|
|
9
|
+
constructor(core: CoreExtensionManager, dispense: DispenseExtensionManager);
|
|
10
|
+
/**
|
|
11
|
+
* Loads the core brandset data into a format that can be consumed by the
|
|
12
|
+
* freestyle models.
|
|
13
|
+
* */
|
|
14
|
+
registerFreestyleBrandsetReader(props?: AvailabilityLoaderProps): this;
|
|
15
|
+
registerFreestylePourableMapper(): void;
|
|
16
|
+
registerFreestyleAssemblyMapper(): void;
|
|
17
|
+
registerFreestyleIngredientIndex(): void;
|
|
18
|
+
registerFreestyleIngredientDataMapper(): void;
|
|
19
|
+
registerFreestyleIceAgitator(): void;
|
|
20
|
+
registerFreestyleAgitationRequiredTroubleMapper(): void;
|
|
21
|
+
initializeFreestyleExtension(): void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The KosExtensionManager provides access to the extension points that are provided in the SDK for Dispense applications.
|
|
25
|
+
*
|
|
26
|
+
* The extension points are divided into two categories:
|
|
27
|
+
*
|
|
28
|
+
* @param core - The core extension {@link CoreExtensionManager} points are used to extend the base models that are provided by the SDK.
|
|
29
|
+
* @param dispense - The dispense extension {@link DispenseExtensionManager} points are used to extend the models that are specific to the Dispense SDK.
|
|
30
|
+
*/
|
|
31
|
+
export declare class KosExtensionManager {
|
|
32
|
+
dispense: DispenseExtensionManager;
|
|
33
|
+
core: CoreExtensionManager;
|
|
34
|
+
freestyle: FreestyleExtensionManager;
|
|
35
|
+
constructor();
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=extension-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extension-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACL,oBAAoB,EAKrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,4CAA4C,CAAC;AAMpD,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,qBAAa,yBAAyB;IACpC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,wBAAwB,CAAC;gBACvB,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,wBAAwB;IAK1E;;;SAGK;IACL,+BAA+B,CAAC,KAAK,GAAE,uBAA4B;IAQnE,+BAA+B;IAI/B,+BAA+B;IAI/B,gCAAgC;IAIhC,qCAAqC;IAIrC,4BAA4B;IAS5B,+CAA+C;IAS/C,4BAA4B;CAQ7B;AACD;;;;;;;GAOG;AACH,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,wBAAwB,CAAC;IACnC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,SAAS,EAAE,yBAAyB,CAAC;;CAMtC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FreestyleAssemblyResponse } from './types';
|
|
2
|
+
import { FreestyleModelAssemblyExt } from '../../../models/types/assembly';
|
|
3
|
+
import { IceAgitatorModel } from '../../../models/ice-agitator';
|
|
4
|
+
import { CarbAgitatorModel } from '../../../models/carb-agitator';
|
|
5
|
+
import { DataMapper } from '@kosdev-code/kos-ui-sdk';
|
|
6
|
+
|
|
7
|
+
export type AgitatorTypes = "iceAgitator" | "carbAgitator";
|
|
8
|
+
export declare const AGITATOR_KEYS: AgitatorTypes[];
|
|
9
|
+
export declare const AGITATOR_FACTORY_MAP: {
|
|
10
|
+
iceAgitator: (id: string) => (options?: import('../../../models/ice-agitator').IceAgitatorOptions | undefined, parentId?: string | undefined) => IceAgitatorModel;
|
|
11
|
+
carbAgitator: (id: string) => (options?: import('../../../models/carb-agitator').CarbAgitatorOptions | undefined, parentId?: string | undefined) => CarbAgitatorModel;
|
|
12
|
+
};
|
|
13
|
+
export declare const AGITATOR_NAME_MAP: {
|
|
14
|
+
iceAgitator: string;
|
|
15
|
+
carbAgitator: string;
|
|
16
|
+
cartridgeAgitator: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const freestyleAssemblyDataMapper: DataMapper<FreestyleAssemblyResponse, FreestyleModelAssemblyExt>;
|
|
19
|
+
//# sourceMappingURL=assembly-data-mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assembly-data-mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/assembly/assembly-data-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAGzD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,aAAa,EAAoC,CAAC;AAC9E,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAClD,yBAAyB,EACzB,yBAAyB,CA0C1B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { IceAgitatorModel } from '../../../models/ice-agitator';
|
|
2
|
+
import { CarbAgitatorModel } from '../../../models/carb-agitator';
|
|
3
|
+
import { AssemblyTypes } from '@kosdev-code/kos-dispense-sdk';
|
|
4
|
+
|
|
5
|
+
export type AgitatorModel = CarbAgitatorModel | IceAgitatorModel;
|
|
6
|
+
export type AgitatorTypes = "iceAgitator" | "carbAgitator";
|
|
7
|
+
/**
|
|
8
|
+
* extension to the base assembly returned from the backend. These are additional properties that are not
|
|
9
|
+
* on the base assembly but added as part of an application.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```json
|
|
13
|
+
* {
|
|
14
|
+
"assemblies": [
|
|
15
|
+
{
|
|
16
|
+
"boards": [
|
|
17
|
+
...
|
|
18
|
+
],
|
|
19
|
+
"holders": {
|
|
20
|
+
...
|
|
21
|
+
},
|
|
22
|
+
"nozzles": [
|
|
23
|
+
...
|
|
24
|
+
],
|
|
25
|
+
"core": true,
|
|
26
|
+
"name": "core",
|
|
27
|
+
"path": "assembly.core",
|
|
28
|
+
// extra properties added to the assembly
|
|
29
|
+
"carbAgitator": {
|
|
30
|
+
"name": "carbAgitator",
|
|
31
|
+
"path": "assembly.core.board:ksm.carbAgitator"
|
|
32
|
+
},
|
|
33
|
+
"iceAgitator": {
|
|
34
|
+
"name": "iceAgitator",
|
|
35
|
+
"path": "assembly.core.board:ksm.iceAgitator"
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
*/
|
|
42
|
+
export interface FreestyleResponseExt {
|
|
43
|
+
iceAgitator?: {
|
|
44
|
+
name: "iceAgitator";
|
|
45
|
+
path: string;
|
|
46
|
+
};
|
|
47
|
+
carbAgitator?: {
|
|
48
|
+
name: "carbAgitator";
|
|
49
|
+
path: string;
|
|
50
|
+
};
|
|
51
|
+
cartridgeAgitators?: {
|
|
52
|
+
name: "agit";
|
|
53
|
+
path: string;
|
|
54
|
+
state: {
|
|
55
|
+
path: string;
|
|
56
|
+
};
|
|
57
|
+
}[];
|
|
58
|
+
}
|
|
59
|
+
export interface FreestyleNozzleExt {
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* extension to the holder types on the assembly as returned from the backend. These
|
|
63
|
+
* are additional properties that are not on the base assembly but added as part of an application.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
*
|
|
67
|
+
* In this example, the maxVolumeML and remainingVolumeML are added to the holder.
|
|
68
|
+
* ```json
|
|
69
|
+
* {
|
|
70
|
+
"assemblies": [
|
|
71
|
+
{
|
|
72
|
+
"boards": [
|
|
73
|
+
...
|
|
74
|
+
],
|
|
75
|
+
"holders": {
|
|
76
|
+
"carb": [
|
|
77
|
+
...
|
|
78
|
+
],
|
|
79
|
+
"ns": [
|
|
80
|
+
...
|
|
81
|
+
],
|
|
82
|
+
"micros.0": [
|
|
83
|
+
{
|
|
84
|
+
"agitated": false,
|
|
85
|
+
"ingredientId": "1048588",
|
|
86
|
+
"name": "S1",
|
|
87
|
+
"maxVolumeML": 680,
|
|
88
|
+
"remainingVolumeML": 520,
|
|
89
|
+
"path": "assembly.core.holder:S1"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"agitated": false,
|
|
93
|
+
"ingredientId": "1050608",
|
|
94
|
+
"name": "S2",
|
|
95
|
+
"maxVolumeML": 680,
|
|
96
|
+
"remainingVolumeML": 520,
|
|
97
|
+
"path": "assembly.core.holder:S2"
|
|
98
|
+
},
|
|
99
|
+
...
|
|
100
|
+
],
|
|
101
|
+
"micros.1": [
|
|
102
|
+
...
|
|
103
|
+
|
|
104
|
+
],
|
|
105
|
+
"water": [
|
|
106
|
+
...
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"nozzles": [],
|
|
110
|
+
...
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
*/
|
|
116
|
+
export interface FreestyleHolderExt {
|
|
117
|
+
agitated?: boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface FreestyleBoardExt {
|
|
120
|
+
}
|
|
121
|
+
export interface FreestylePumpExt {
|
|
122
|
+
}
|
|
123
|
+
export type FreestyleAssemblyResponse = AssemblyTypes.AssemblyResponse<{
|
|
124
|
+
AssemblyExt: FreestyleResponseExt;
|
|
125
|
+
NozzleExt: FreestyleNozzleExt;
|
|
126
|
+
HolderExt: FreestyleHolderExt;
|
|
127
|
+
BoardExt: FreestyleBoardExt;
|
|
128
|
+
PumpExt: FreestylePumpExt;
|
|
129
|
+
}>;
|
|
130
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/assembly/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;AAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,aAAa,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,YAAY,CAAC,EAAE;QACb,IAAI,EAAE,cAAc,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF,kBAAkB,CAAC,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE,CAAC;CACL;AAGD,MAAM,WAAW,kBAAkB;CAAG;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsDK;AACL,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;CAAG;AAErC,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,gBAAgB,CAAC;IACrE,WAAW,EAAE,oBAAoB,CAAC;IAClC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from './types';
|
|
2
|
+
import { DataLoader, Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
export declare const transformAvailabilityData: (input: UiSchemaResponse, additionalMiddleware?: Middleware<UiSchemaResponse, AvailabilityContext>[], replace?: boolean) => Promise<AvailabilityContext>;
|
|
5
|
+
/**
|
|
6
|
+
* Props for the freestyle availability loader
|
|
7
|
+
*/
|
|
8
|
+
export interface AvailabilityLoaderProps {
|
|
9
|
+
/** the url to send the request for the UiSchemaData. Defaults to http://localhost:8081/system/cui/core.json */
|
|
10
|
+
url?: string;
|
|
11
|
+
/** additional middlewares to execute as part of the data processing */
|
|
12
|
+
middleware?: Middleware<UiSchemaResponse, AvailabilityContext>[];
|
|
13
|
+
/** if true, replace the default middleware with the provided middleware */
|
|
14
|
+
replace?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Utility method to load the freestyle brandset data into the availability context.
|
|
18
|
+
*
|
|
19
|
+
* This loader will retrieve the UI Schema from the provided URL and transform it into
|
|
20
|
+
* a format that can be used to populate the availability brands and beverages with UI schema
|
|
21
|
+
* data.
|
|
22
|
+
*
|
|
23
|
+
* With this data, the availability models can have access to the brandset assets for
|
|
24
|
+
* brands, beverages and flavours.
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @param props
|
|
28
|
+
* @returns A DataLoader function that will load the availability context
|
|
29
|
+
*/
|
|
30
|
+
export declare const freestyleAvailabilityLoader: ({ url, middleware, replace, }?: AvailabilityLoaderProps) => DataLoader;
|
|
31
|
+
//# sourceMappingURL=freestyle-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freestyle-loader.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/freestyle-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,yBAAyB,UAC7B,gBAAgB,yBACD,WACpB,gBAAgB,EAChB,mBAAmB,CACpB,EAAE,wBAEF,QAAQ,mBAAmB,CAoB7B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,gHAAgH;IAChH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,uEAAuE;IACvE,UAAU,CAAC,EAAE,UAAU,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,EAAE,CAAC;IAEjE,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,mCAKnC,uBAAuB,KAAQ,UAWjC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AvailabilityContext, BeverageData, BrandData } from './types';
|
|
2
|
+
import { GroupBeverageResponse } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This utility mapper will augment the core kOS availability data with freestyle specific
|
|
6
|
+
* UI data.
|
|
7
|
+
*
|
|
8
|
+
* @param input - the availability data including the group id.
|
|
9
|
+
* @param context - the data loaded into the availability context.
|
|
10
|
+
* @returns an augmented availability node with data specific to freestyle brands
|
|
11
|
+
* and beverages.
|
|
12
|
+
*/
|
|
13
|
+
export declare const freestyleAvailabilityMapper: (input: GroupBeverageResponse, context: AvailabilityContext) => Promise<BeverageData | BrandData>;
|
|
14
|
+
//# sourceMappingURL=freestyle-mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freestyle-mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/freestyle-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAEV,mBAAmB,EACnB,YAAY,EACZ,SAAS,EAEV,MAAM,SAAS,CAAC;AAsDjB;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,UAC/B,qBAAqB,WACnB,mBAAmB,sCAO7B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the assets array into a dictionary
|
|
6
|
+
* @param context The context object that contains the data and result
|
|
7
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
8
|
+
*/
|
|
9
|
+
export declare const assetsMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
10
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAS,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO7E;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CACvC,gBAAgB,EAChB,mBAAmB,CAMpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the beverage screen data. The middleware will perform the following:
|
|
6
|
+
* 1. Organize the beverage screen data into a dictionary keyed by the brand id
|
|
7
|
+
* 2. Adds a beverages property to the beverage screen data that contains the organized beverage data
|
|
8
|
+
* 3. Processes related brands for each beverage screen
|
|
9
|
+
*
|
|
10
|
+
* @param context The context object that contains the data and result
|
|
11
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
12
|
+
*/
|
|
13
|
+
export declare const beverageScreenMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
14
|
+
//# sourceMappingURL=beverage-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beverage-screen.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/beverage-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EAGnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAwClB;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAC/C,gBAAgB,EAChB,mBAAmB,CASpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the brands array into a dictionary
|
|
6
|
+
* @param context The context object that contains the data and result
|
|
7
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
8
|
+
*/
|
|
9
|
+
export declare const beveragesMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
10
|
+
//# sourceMappingURL=beverages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beverages.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/beverages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAY,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAOhF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAC1C,gBAAgB,EAChB,mBAAmB,CAapB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-screen.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/brand-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EAEnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AA4BlB,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAC5C,gBAAgB,EAChB,mBAAmB,CAMpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the brands array into a dictionary
|
|
6
|
+
* @param context The context object that contains the data and result
|
|
7
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
8
|
+
*/
|
|
9
|
+
export declare const brandsMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
10
|
+
//# sourceMappingURL=brands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/brands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAS,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO7E;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CACvC,gBAAgB,EAChB,mBAAmB,CAMpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-input.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/copy-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAG/C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the flavors array into a dictionary
|
|
6
|
+
* @param context The context object that contains the data and result
|
|
7
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
8
|
+
*/
|
|
9
|
+
export declare const flavorsMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
10
|
+
//# sourceMappingURL=flavors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flavors.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/flavors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAU,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO9E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CACxC,gBAAgB,EAChB,mBAAmB,CASpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will augment the beverage data with nutrition information
|
|
6
|
+
* @param context The context object that contains the data and result
|
|
7
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
8
|
+
*/
|
|
9
|
+
export declare const nutritionMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
10
|
+
//# sourceMappingURL=nutrition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nutrition.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/nutrition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EAEnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAiBlB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAC1C,gBAAgB,EAChB,mBAAmB,CAWpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AvailabilityContext, UiSchemaResponse } from '../types';
|
|
2
|
+
import { Middleware } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Middleware that will normalize the beverage screen data. The middleware will perform the following:
|
|
6
|
+
* 1. Organize the beverage screen data into a dictionary keyed by the brand id
|
|
7
|
+
* 2. Adds a beverages property to the beverage screen data that contains the organized beverage data
|
|
8
|
+
* 3. Processes related brands for each beverage screen
|
|
9
|
+
*
|
|
10
|
+
* @param context The context object that contains the data and result
|
|
11
|
+
* @param next called at the end of the middleware to indicate that the next middleware can be called
|
|
12
|
+
*/
|
|
13
|
+
export declare const relatedBrandMiddleware: Middleware<UiSchemaResponse, AvailabilityContext>;
|
|
14
|
+
//# sourceMappingURL=related-brands.d.ts.map
|