58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
|
declare namespace FG {
|
||
|
interface Drink {
|
||
|
id: number;
|
||
|
article_id?: string;
|
||
|
package_size?: number;
|
||
|
name: string;
|
||
|
volume?: number;
|
||
|
cost_per_volume?: number;
|
||
|
cost_per_package?: number;
|
||
|
uuid: string;
|
||
|
receipt?: Array<string>;
|
||
|
tags?: Array<Tag>;
|
||
|
type?: DrinkType;
|
||
|
volumes: Array<DrinkPriceVolume>;
|
||
|
}
|
||
|
interface DrinkIngredient {
|
||
|
id: number;
|
||
|
volume: number;
|
||
|
ingredient_id: number;
|
||
|
}
|
||
|
interface DrinkPrice {
|
||
|
id: number;
|
||
|
price: number;
|
||
|
public: boolean;
|
||
|
description?: string;
|
||
|
}
|
||
|
interface DrinkPriceVolume {
|
||
|
id: number;
|
||
|
volume: number;
|
||
|
min_prices: Array<MinPrices>;
|
||
|
prices: Array<DrinkPrice>;
|
||
|
ingredients: Array<Ingredient>;
|
||
|
}
|
||
|
interface DrinkType {
|
||
|
id: number;
|
||
|
name: string;
|
||
|
}
|
||
|
interface ExtraIngredient {
|
||
|
id: number;
|
||
|
name: string;
|
||
|
price: number;
|
||
|
}
|
||
|
interface Ingredient {
|
||
|
id: number;
|
||
|
drink_ingredient?: DrinkIngredient;
|
||
|
extra_ingredient?: ExtraIngredient;
|
||
|
}
|
||
|
interface MinPrices {
|
||
|
percentage: number;
|
||
|
price: number;
|
||
|
}
|
||
|
interface Tag {
|
||
|
id: number;
|
||
|
name: string;
|
||
|
color: string;
|
||
|
}
|
||
|
}
|