refactor: make characteristic a seperate type to allow additional images

This commit is contained in:
Michel Jonathan Schmitz
2019-01-25 13:26:39 +01:00
committed by Jovan Krunić
parent 5aaa679d30
commit d5a0c6ba11

View File

@@ -46,7 +46,7 @@ export interface SCDishWithoutReferences
/** /**
* Characteristics of the dish * Characteristics of the dish
*/ */
characteristics?: string[]; characteristics?: Characteristic[];
/** /**
* Nutrition information (calories and nutrients with amounts) * Nutrition information (calories and nutrients with amounts)
@@ -90,6 +90,28 @@ 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
*/ */