@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 @@
|
|
|
1
|
+
{"version":3,"file":"related-brands.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/middleware/related-brands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,mBAAmB,EAGnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAkClB;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAC7C,gBAAgB,EAChB,mBAAmB,CASpB,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export interface BaseAvailabilityData {
|
|
2
|
+
name: string;
|
|
3
|
+
displayNameKey: string;
|
|
4
|
+
asset?: Asset;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* This is the data structure for a beverage availability node.
|
|
8
|
+
*
|
|
9
|
+
* It represents the additional data that will be added into the availability model
|
|
10
|
+
* for a beverage.
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export interface BeverageData extends BaseAvailabilityData {
|
|
16
|
+
availabilityType: "beverage";
|
|
17
|
+
beverageColor: string;
|
|
18
|
+
flavor?: Flavor;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* This is the data structure for a brand availability node.
|
|
22
|
+
*
|
|
23
|
+
* It represents the additional data that will be added into the availability model
|
|
24
|
+
* for a brand.
|
|
25
|
+
*/
|
|
26
|
+
export interface BrandData extends BaseAvailabilityData {
|
|
27
|
+
availabilityType: "brand";
|
|
28
|
+
brandColor: string;
|
|
29
|
+
brandFamilyTextKey: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This union type represents the data that can be loaded into the availability context.
|
|
33
|
+
*
|
|
34
|
+
* It can be either a beverage or a brand.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export type AvailabilityData = BeverageData | BrandData;
|
|
38
|
+
type AssetIdType = "asset";
|
|
39
|
+
export interface WaterButton {
|
|
40
|
+
backgroundAssetDbId: number;
|
|
41
|
+
beverageId: number;
|
|
42
|
+
dbId: number;
|
|
43
|
+
textAlignment: string;
|
|
44
|
+
name: string;
|
|
45
|
+
ringColor: string;
|
|
46
|
+
textColor: string;
|
|
47
|
+
textKey: string;
|
|
48
|
+
"backgroundAssetDbId.type": AssetIdType;
|
|
49
|
+
}
|
|
50
|
+
export interface Flavor {
|
|
51
|
+
dbId: number;
|
|
52
|
+
liquidColor: string;
|
|
53
|
+
name: string;
|
|
54
|
+
flavorFontColor: string;
|
|
55
|
+
mainFlavorColor: string;
|
|
56
|
+
displayNameKey: string;
|
|
57
|
+
}
|
|
58
|
+
type BeverageType = "Regular";
|
|
59
|
+
export interface Beverage {
|
|
60
|
+
"brandDbId.type": BeverageType;
|
|
61
|
+
highFoamingBeverage: boolean;
|
|
62
|
+
caffeineFree: boolean;
|
|
63
|
+
beverageColor: string;
|
|
64
|
+
showWaveAnimation: boolean;
|
|
65
|
+
brandDbId: number;
|
|
66
|
+
type: BeverageType;
|
|
67
|
+
flavorDbId: number;
|
|
68
|
+
beverageId: number;
|
|
69
|
+
dbId: number;
|
|
70
|
+
name: string;
|
|
71
|
+
lowCalorie: boolean;
|
|
72
|
+
carbonated: boolean;
|
|
73
|
+
displayNameKey: string;
|
|
74
|
+
experimentOnly: boolean;
|
|
75
|
+
}
|
|
76
|
+
type BrandType = "Regular";
|
|
77
|
+
export interface Brand {
|
|
78
|
+
brandColor: string;
|
|
79
|
+
caffeineFree: boolean;
|
|
80
|
+
type: BrandType;
|
|
81
|
+
brandFamilyTextKey: string;
|
|
82
|
+
dbId: number;
|
|
83
|
+
nutritionTextKey: string;
|
|
84
|
+
name: string;
|
|
85
|
+
lowCalorie: true;
|
|
86
|
+
caloricTextSubTitleKey: string;
|
|
87
|
+
trademark: string;
|
|
88
|
+
caloricTextTitleKey: string;
|
|
89
|
+
carbonated: boolean;
|
|
90
|
+
displayNameKey: string;
|
|
91
|
+
}
|
|
92
|
+
export interface SelfServe {
|
|
93
|
+
pourControlHoldForDrinkTextKey: string;
|
|
94
|
+
lowNoCalButtonTextKey: string;
|
|
95
|
+
"iceLeverEngaged.title": string;
|
|
96
|
+
allDrinksButtonTextKey: string;
|
|
97
|
+
pincodeLabelWaterKey: string;
|
|
98
|
+
pincodeLabelInputIncorrectKey: string;
|
|
99
|
+
inactivityQuestionKey: string;
|
|
100
|
+
"carbRecharging.message": string;
|
|
101
|
+
"beverage.water": string;
|
|
102
|
+
"iceLeverEngaged.message": string;
|
|
103
|
+
"agitationRequired.title": string;
|
|
104
|
+
inactivityResponseKey: string;
|
|
105
|
+
caffeineFreeButtonTextKey: string;
|
|
106
|
+
"beverage.sparklingWater": string;
|
|
107
|
+
pincodeLabelKeyDeleteKey: string;
|
|
108
|
+
dbId: number;
|
|
109
|
+
name: string;
|
|
110
|
+
unavailableTextKey: string;
|
|
111
|
+
pincodeLabelWaterAdaKey: string;
|
|
112
|
+
"agitationRequired.message": string;
|
|
113
|
+
pincodeLabelTitleKey: string;
|
|
114
|
+
"carbRecharging.title": string;
|
|
115
|
+
pincodeLabelTitleIncorrectKey: string;
|
|
116
|
+
}
|
|
117
|
+
export type AssetType = "Ambient/Attract/Promo/Background" | "Beverage/Brand/Promo Icon" | "Other Elements" | "Nutrition Info Button" | "Water Icon";
|
|
118
|
+
export type ResourceType = "image";
|
|
119
|
+
export interface Asset {
|
|
120
|
+
path: string;
|
|
121
|
+
dbId: number;
|
|
122
|
+
width: number;
|
|
123
|
+
height: number;
|
|
124
|
+
assetType: AssetType;
|
|
125
|
+
resourceType: ResourceType;
|
|
126
|
+
}
|
|
127
|
+
type StateContextType = "Text";
|
|
128
|
+
export interface PourButtonOverlay {
|
|
129
|
+
stopStateContentType: StateContextType;
|
|
130
|
+
stopStateKey: string;
|
|
131
|
+
startStateContentType: StateContextType;
|
|
132
|
+
startStateKey: string;
|
|
133
|
+
dbId: number;
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
136
|
+
type ContentType = "Image";
|
|
137
|
+
export interface NutritionButton {
|
|
138
|
+
buttonText: string;
|
|
139
|
+
saltLabel: string;
|
|
140
|
+
sugarLabel: string;
|
|
141
|
+
carbohydrateLabel: string;
|
|
142
|
+
energyLabel: string;
|
|
143
|
+
sraDisclaimer: string;
|
|
144
|
+
unitDescriptor: string;
|
|
145
|
+
tableHeader: string;
|
|
146
|
+
"buttonImageAssetDbId.type": AssetIdType;
|
|
147
|
+
buttonImageAssetDbId: number;
|
|
148
|
+
dbId: number;
|
|
149
|
+
name: string;
|
|
150
|
+
buttonContentType: ContentType;
|
|
151
|
+
}
|
|
152
|
+
export type BeverageScreen = {
|
|
153
|
+
beverages: BeverageScreenData;
|
|
154
|
+
} & Record<string, string | number | boolean>;
|
|
155
|
+
export type BrandScreen = Record<string, string | number | boolean>;
|
|
156
|
+
export interface Nutrition {
|
|
157
|
+
country: string;
|
|
158
|
+
recipeType: string;
|
|
159
|
+
carbohydratesGramsPerOz: number;
|
|
160
|
+
sugarsGramsPerOz: number;
|
|
161
|
+
endDate: string;
|
|
162
|
+
allergensKey: string;
|
|
163
|
+
recipeName: string;
|
|
164
|
+
beverageDbId: number;
|
|
165
|
+
legalDescriptionKey: string;
|
|
166
|
+
ingredientsKey: string;
|
|
167
|
+
dbId: number;
|
|
168
|
+
beverage: string;
|
|
169
|
+
preferredVersion: boolean;
|
|
170
|
+
caloricValuePerOz: number;
|
|
171
|
+
ingredientsHeadingKey: string;
|
|
172
|
+
saltGramsPerOz: number;
|
|
173
|
+
recipeVersion: number;
|
|
174
|
+
startDate: string;
|
|
175
|
+
}
|
|
176
|
+
export interface UiSchemaResponse {
|
|
177
|
+
dbId: number;
|
|
178
|
+
name: string;
|
|
179
|
+
uiType: string;
|
|
180
|
+
primaryLanguage: string;
|
|
181
|
+
"backButtonAssetDbId.type": AssetType;
|
|
182
|
+
location: string;
|
|
183
|
+
platform: number;
|
|
184
|
+
beverageRingOpacity: string;
|
|
185
|
+
nutritionPanelStyle: string;
|
|
186
|
+
publishDate: string;
|
|
187
|
+
pourButtonRingOpacity: string;
|
|
188
|
+
backButtonAssetDbId: number;
|
|
189
|
+
waterButton: WaterButton;
|
|
190
|
+
selfServe: SelfServe;
|
|
191
|
+
pourButtonOverlay: PourButtonOverlay;
|
|
192
|
+
nutritionButton: NutritionButton;
|
|
193
|
+
beverageScreens: Record<string, BeverageScreen>;
|
|
194
|
+
brandScreen: Record<string, string | number | boolean>;
|
|
195
|
+
flavors: Flavor[];
|
|
196
|
+
beverages: Beverage[];
|
|
197
|
+
brands: Brand[];
|
|
198
|
+
assets: Asset[];
|
|
199
|
+
}
|
|
200
|
+
type NutritionBeverage = Beverage & {
|
|
201
|
+
nutrition?: Nutrition;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* This is the interface for the data that is loaded into the availability context when
|
|
205
|
+
* the freestyle brandset is loaded.
|
|
206
|
+
*
|
|
207
|
+
* @remarks
|
|
208
|
+
* The data is derrived from the the UI Schema response from the availability service.
|
|
209
|
+
* The primary changes are that the data is organized into a format that is more easily
|
|
210
|
+
* consumed by the UI and model layers.
|
|
211
|
+
*
|
|
212
|
+
* Most lists have been converted into maps for easier lookup.
|
|
213
|
+
*/
|
|
214
|
+
export interface AvailabilityContext {
|
|
215
|
+
dbId: number;
|
|
216
|
+
name: string;
|
|
217
|
+
uiType: string;
|
|
218
|
+
primaryLanguage: string;
|
|
219
|
+
"backButtonAssetDbId.type": AssetType;
|
|
220
|
+
location: string;
|
|
221
|
+
platform: number;
|
|
222
|
+
beverageRingOpacity: string;
|
|
223
|
+
nutritionPanelStyle: string;
|
|
224
|
+
publishDate: string;
|
|
225
|
+
pourButtonRingOpacity: string;
|
|
226
|
+
backButtonAssetDbId: number;
|
|
227
|
+
waterButton: WaterButton;
|
|
228
|
+
selfServe: SelfServe;
|
|
229
|
+
pourButtonOverlay: PourButtonOverlay;
|
|
230
|
+
nutritionButton: NutritionButton;
|
|
231
|
+
beverageScreens: Record<string, BeverageScreen>;
|
|
232
|
+
brandScreen: Record<string, BrandScreen>;
|
|
233
|
+
flavors: Record<string, Flavor>;
|
|
234
|
+
beverages: Record<string, NutritionBeverage>;
|
|
235
|
+
brands: Record<string, Brand>;
|
|
236
|
+
assets: Record<string, Asset>;
|
|
237
|
+
beverageMap?: Record<string | number, string>;
|
|
238
|
+
}
|
|
239
|
+
export interface BeverageScreenData {
|
|
240
|
+
relatedBrands?: Record<string, {
|
|
241
|
+
rank: number;
|
|
242
|
+
[key: string]: any;
|
|
243
|
+
}>;
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
}
|
|
246
|
+
export interface BrandScreenData {
|
|
247
|
+
rank: number;
|
|
248
|
+
[key: string]: any;
|
|
249
|
+
}
|
|
250
|
+
export {};
|
|
251
|
+
//# 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/availability/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACxD,gBAAgB,EAAE,UAAU,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAU,SAAQ,oBAAoB;IACrD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAC;AAGxD,KAAK,WAAW,GAAG,OAAO,CAAC;AAC3B,MAAM,WAAW,WAAW;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,0BAA0B,EAAE,WAAW,CAAC;CACzC;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,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MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;IACrE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locate-brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/util/locate-brand.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,IAAI,EAAE,MAAM,OAIb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-related-brand.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/availability/util/process-related-brand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,mBAAmB,SACvB,OAAO,MAAM,EAAE,GAAG,CAAC,oBAEV,kBAAkB,WACvB,MAAM,QACT,MAAM,OACP,MAAM,SAcZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/ingredient/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FreestyleIngredientModelData } from '../../../models/types/ingredients';
|
|
2
|
+
import { DataMapper, IndexExtension, PropertyMapper } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
export declare const ingredientDataMapper: DataMapper;
|
|
5
|
+
export declare const ingredientIndexExtension: IndexExtension<FreestyleIngredientModelData>;
|
|
6
|
+
export declare const ingredientCategoryMapper: PropertyMapper;
|
|
7
|
+
//# sourceMappingURL=model-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-extension.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/ingredient/model-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,4BAA4B,EAE7B,MAAM,mCAAmC,CAAC;AAE3C,eAAO,MAAM,oBAAoB,EAAE,UAUlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,4BAA4B,CAG/E,CAAC;AACJ,eAAO,MAAM,wBAAwB,EAAE,cAEf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-pourable-mapper.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/extensions/pourable/select-pourable-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,eAAO,MAAM,qBAAqB,SAAgB,gBAAgB;;EAIjE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { RegistrationManager, RegistrationResult } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
import { KosModelRegistry as DispenseModelRegistration } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
+
|
|
4
|
+
export declare const registerFreestyleModels: <R>(root: R) => () => {
|
|
5
|
+
preload: (type: string) => RegistrationResult<R>;
|
|
6
|
+
model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<R>;
|
|
7
|
+
companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<R>;
|
|
8
|
+
legacy: <T_1 extends import('@kosdev-code/kos-ui-sdk').IKosModelRegistration>(type: string, registration: T_1) => RegistrationResult<R>;
|
|
9
|
+
};
|
|
10
|
+
type ModelRegistry<R> = typeof DispenseModelRegistration & {
|
|
11
|
+
freestyle: {
|
|
12
|
+
models: () => RegistrationResult<R>;
|
|
13
|
+
};
|
|
14
|
+
preload: ReturnType<typeof RegistrationManager.model.preloadModel>;
|
|
15
|
+
model: ReturnType<typeof RegistrationManager.model.register>;
|
|
16
|
+
companion: ReturnType<typeof RegistrationManager.companion.register>;
|
|
17
|
+
};
|
|
18
|
+
declare const _KosModelRegistry: {
|
|
19
|
+
core: {
|
|
20
|
+
models: () => RegistrationResult<{}>;
|
|
21
|
+
};
|
|
22
|
+
preload: (type: string) => RegistrationResult<unknown>;
|
|
23
|
+
model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
|
|
24
|
+
companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<unknown>;
|
|
25
|
+
dispense: {
|
|
26
|
+
models: () => RegistrationResult<{
|
|
27
|
+
core: {
|
|
28
|
+
models: () => RegistrationResult<{}>;
|
|
29
|
+
};
|
|
30
|
+
preload: (type: string) => RegistrationResult<unknown>;
|
|
31
|
+
model: <T extends import('@kosdev-code/kos-ui-sdk').BaseKosModelRegistrationBean<any, any> | import('packages/sdk/kos-ui-sdk/src/core/core/registration/model-registration').KosModelRegistrationType<any, any>>(registration: T, preload?: boolean | undefined) => RegistrationResult<unknown>;
|
|
32
|
+
companion: (parentType: string, companion: import('@kosdev-code/kos-ui-sdk').KosCompanionModelType<any>) => RegistrationResult<unknown>;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type KosModelRegistryType = ModelRegistry<typeof _KosModelRegistry>;
|
|
37
|
+
declare const KosModelRegistry: KosModelRegistryType;
|
|
38
|
+
export { KosModelRegistry };
|
|
39
|
+
//# sourceMappingURL=freestyle-registration-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freestyle-registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/freestyle-registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,IAAI,yBAAyB,EAU9C,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAKL,mBAAmB,EAEnB,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAWjC,eAAO,MAAM,uBAAuB,YACxB,CAAC;;;;;CAyGV,CAAC;AAEJ,KAAK,aAAa,CAAC,CAAC,IAAI,OAAO,yBAAyB,GAAG;IACzD,SAAS,EAAE;QAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC;IACnD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnE,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,SAAS,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;CACtE,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAcF,KAAK,oBAAoB,GAAG,aAAa,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,gBAAgB,EAAE,oBAA+C,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC"}
|
package/models.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./freestyle-registration-manager-yxRMbjlE.cjs"),r=require("./extension-utils-D_CXSnlW.cjs");require("@kosdev-code/kos-dispense-sdk");require("@kosdev-code/kos-ui-sdk");exports.AGITATION_REQUIRED_TROUBLE=e.AGITATION_REQUIRED_TROUBLE;exports.AgitationRequiredTrouble=e.AgitationRequiredTrouble;exports.CarbAgitator=e.CarbAgitator;exports.CartridgeAgitator=e.CartridgeAgitator;exports.CartridgeAgitatorContainer=e.CartridgeAgitatorContainer;exports.CartridgeAgitatorEvents=e.CartridgeAgitatorEvents;exports.FreestyleAssembly=e.FreestyleAssembly;exports.FreestyleHolder=e.FreestyleHolder;exports.FreestyleNozzle=e.FreestyleNozzle;exports.FreestylePump=e.FreestylePump;exports.IceAgitator=e.IceAgitator;exports.KosModelRegistry=e.KosModelRegistry;exports.registerFreestyleModels=e.registerFreestyleModels;exports.EXTENSION_PLUGIN_VISIBILITY=r.EXTENSION_PLUGIN_VISIBILITY;exports.FreestyleExtensionManager=r.FreestyleExtensionManager;exports.FreestyleNozzleServices=r.index;exports.FreestylePumpServices=r.index$1;exports.KosExtensionManager=r.KosExtensionManager;
|
|
2
|
+
//# sourceMappingURL=models.cjs.map
|
package/models.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/models.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './models/index'
|
package/models.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { A as t, g as o, C as i, c as l, a as g, b as I, F as n, d as y, e as A, f as F, I as E, K as d, r as m } from "./freestyle-registration-manager-pbtzJUqS.js";
|
|
2
|
+
import { E as C, F as N, i as T, a as R, K as b } from "./extension-utils-uYGl3TGm.js";
|
|
3
|
+
import "@kosdev-code/kos-dispense-sdk";
|
|
4
|
+
import "@kosdev-code/kos-ui-sdk";
|
|
5
|
+
export {
|
|
6
|
+
t as AGITATION_REQUIRED_TROUBLE,
|
|
7
|
+
o as AgitationRequiredTrouble,
|
|
8
|
+
i as CarbAgitator,
|
|
9
|
+
l as CartridgeAgitator,
|
|
10
|
+
g as CartridgeAgitatorContainer,
|
|
11
|
+
I as CartridgeAgitatorEvents,
|
|
12
|
+
C as EXTENSION_PLUGIN_VISIBILITY,
|
|
13
|
+
n as FreestyleAssembly,
|
|
14
|
+
N as FreestyleExtensionManager,
|
|
15
|
+
y as FreestyleHolder,
|
|
16
|
+
A as FreestyleNozzle,
|
|
17
|
+
T as FreestyleNozzleServices,
|
|
18
|
+
F as FreestylePump,
|
|
19
|
+
R as FreestylePumpServices,
|
|
20
|
+
E as IceAgitator,
|
|
21
|
+
b as KosExtensionManager,
|
|
22
|
+
d as KosModelRegistry,
|
|
23
|
+
m as registerFreestyleModels
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=models.js.map
|
package/models.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kosdev-code/kos-freestyle-sdk",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./index.js",
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"require": "./index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./models": {
|
|
14
|
+
"import": "./models.js",
|
|
15
|
+
"require": "./models.cjs",
|
|
16
|
+
"types": "./models.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./ui": {
|
|
19
|
+
"import": "./ui.js",
|
|
20
|
+
"require": "./ui.cjs",
|
|
21
|
+
"types": "./ui.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@kosdev-code/kos-ui-sdk": "~2.0.2",
|
|
27
|
+
"@kosdev-code/kos-dispense-sdk": "~2.0.2"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"registry": "https://registry.npmjs.org/"
|
|
31
|
+
},
|
|
32
|
+
"kos": {
|
|
33
|
+
"build": {
|
|
34
|
+
"gitHash": "07201c14a1bf5d3227fe2ffe67c0049384383ccd"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/contexts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-assembly/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-freestyle-assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-assembly/use-freestyle-assembly.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,2BAA2B,QAClC,sBAAsB,GAAG,IAW5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-nozzle/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-freestyle-nozzle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/freestyle-nozzle/use-freestyle-nozzle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,eAAO,MAAM,yBAAyB,QAAO,oBAAoB,GAAG,IAQnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IceAgitatorModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useIceAgitator: (id: string) => {
|
|
4
|
+
model: IceAgitatorModel | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: IceAgitatorModel | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-ice-agitator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-ice-agitator.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/use-ice-agitator.ts"],"names":[],"mappings":";AACA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAErE,eAAO,MAAM,cAAc,OAAQ,MAAM;;;;;;;;;;CASxC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IceAgitatorModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export interface IceAgitatorProps {
|
|
4
|
+
iceAgitator: IceAgitatorModel;
|
|
5
|
+
}
|
|
6
|
+
export declare function withIceAgitator<T extends IceAgitatorProps = IceAgitatorProps>(WrappedComponent: React.ComponentType<T>): (id: string) => (props: Omit<T, keyof IceAgitatorProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=with-ice-agitator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-ice-agitator.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/ice-agitator/with-ice-agitator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGnD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,gBAAgB,CAAC;CAC/B;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,EAC3E,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,QAE5B,MAAM,aAAa,KAAK,CAAC,EAAE,MAAM,gBAAgB,CAAC,sDAS/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/nutrition/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-nutrition-info.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-freestyle-sdk/src/ui/hooks/nutrition/use-nutrition-info.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAY/D,eAAO,MAAM,gBAAgB,aAAc,MAAM,EAAE,uEAyBlD,CAAC"}
|
package/ui/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/sdk/kos-freestyle-sdk/src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
package/ui.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-nutrition-info-CGrmEGIR.cjs");require("@kosdev-code/kos-dispense-sdk");require("@kosdev-code/kos-ui-sdk");require("./freestyle-registration-manager-yxRMbjlE.cjs");require("@emotion/react/jsx-runtime");require("react");exports.useFreestyleAssemblyContext=e.useFreestyleAssemblyContext;exports.useFreestyleNozzleContext=e.useFreestyleNozzleContext;exports.useIceAgitator=e.useIceAgitator;exports.useNutritionInfo=e.useNutritionInfo;exports.withIceAgitator=e.withIceAgitator;
|
|
2
|
+
//# sourceMappingURL=ui.cjs.map
|
package/ui.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/ui.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui/index'
|
package/ui.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { u as m, a as p, b as u, c as l, w as n } from "./use-nutrition-info-D-wbfIlj.js";
|
|
2
|
+
import "@kosdev-code/kos-dispense-sdk";
|
|
3
|
+
import "@kosdev-code/kos-ui-sdk";
|
|
4
|
+
import "./freestyle-registration-manager-pbtzJUqS.js";
|
|
5
|
+
import "@emotion/react/jsx-runtime";
|
|
6
|
+
import "react";
|
|
7
|
+
export {
|
|
8
|
+
m as useFreestyleAssemblyContext,
|
|
9
|
+
p as useFreestyleNozzleContext,
|
|
10
|
+
u as useIceAgitator,
|
|
11
|
+
l as useNutritionInfo,
|
|
12
|
+
n as withIceAgitator
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=ui.js.map
|
package/ui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const f=require("@kosdev-code/kos-dispense-sdk"),r=require("@kosdev-code/kos-ui-sdk"),i=require("./freestyle-registration-manager-yxRMbjlE.cjs"),c=require("@emotion/react/jsx-runtime"),u=require("react"),d=()=>{const{model:e}=f.useAssemblyContext();return e?r.getKosCompanionModel(e,i.FreestyleAssembly.type):null},y=()=>{const{model:e}=f.useNozzleContext();return e?r.getKosCompanionModel(e,i.FreestyleNozzle.type):null},a=e=>{const t=e;return r.useKosModel({modelId:t,modelType:i.IceAgitator.type,options:{}})};function m(e){return t=>s=>{const{model:n,status:o,KosModelLoader:l}=a(t);return c.jsx(l,{...o,children:c.jsx(e,{...s,iceAgitator:n})})}}const g=(e,t)=>{if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0},z=e=>{const t=y(),[s,n]=u.useState(),o=u.useRef([]);return u.useEffect(()=>{t&&!g(e,o.current)&&(t.cupSizes=e,o.current=e);const l=r.kosAutoEffect(()=>{t&&n(t.nutritionInfo)});return()=>{l()}},[e,t]),s};exports.useFreestyleAssemblyContext=d;exports.useFreestyleNozzleContext=y;exports.useIceAgitator=a;exports.useNutritionInfo=z;exports.withIceAgitator=m;
|
|
2
|
+
//# sourceMappingURL=use-nutrition-info-CGrmEGIR.cjs.map
|