mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: resolve discussions from last commit
This commit is contained in:
committed by
Jovan Krunić
parent
d5a0c6ba11
commit
05d346b5c6
@@ -46,7 +46,7 @@ export interface SCDishWithoutReferences
|
|||||||
/**
|
/**
|
||||||
* Characteristics of the dish
|
* Characteristics of the dish
|
||||||
*/
|
*/
|
||||||
characteristics?: Characteristic[];
|
characteristics?: SCDishCharacteristic[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Nutrition information (calories and nutrients with amounts)
|
* Nutrition information (calories and nutrients with amounts)
|
||||||
@@ -90,28 +90,6 @@ export interface SCDishTranslatableProperties
|
|||||||
extends SCThingWithCategoriesTranslatableProperties, SCThingThatCanBeOfferedTranslatableProperties {
|
extends SCThingWithCategoriesTranslatableProperties, SCThingThatCanBeOfferedTranslatableProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Composition of properties of a food characteristic
|
|
||||||
*/
|
|
||||||
export interface Characteristic{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name of the characteristic
|
|
||||||
*/
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The superscript text, that will be shown as a reference to this Characteristic
|
|
||||||
*/
|
|
||||||
superscriptText?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Image of the characteristic
|
|
||||||
*/
|
|
||||||
image?: string;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dish meta data
|
* Dish meta data
|
||||||
*/
|
*/
|
||||||
@@ -124,6 +102,26 @@ export class SCDishMeta extends SCThingMeta {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Composition of properties of a food characteristic
|
||||||
|
*/
|
||||||
|
export interface SCDishCharacteristic {
|
||||||
|
/**
|
||||||
|
* URL to the image of the characteristic
|
||||||
|
*/
|
||||||
|
image?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the characteristic
|
||||||
|
*/
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The superscript text, that will be shown as a reference
|
||||||
|
*/
|
||||||
|
supScript?: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of categories for dishes
|
* A list of categories for dishes
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user