Add warn for proportions mutation for product (#40)

This commit is contained in:
Niklas Fondberg
2021-09-13 15:27:28 +02:00
committed by GitHub
parent 84bed9a7ce
commit 0a786d6754
5 changed files with 81 additions and 7 deletions
+9 -2
View File
@@ -27,6 +27,14 @@ export interface ProductBlacklistInput {
markets: Array<ProductBlacklistMarketInput>;
}
export interface ProductProportionsInput {
proportionsWarning: boolean;
marginWidthMax: number;
marginWidthMin: number;
marginHeightMax: number;
marginHeightMin: number;
}
// query types
export interface ProductsFilterInput {
pagination: PaginationInput;
@@ -117,7 +125,6 @@ export interface Product {
blacklisting: [ProductBlacklist];
type: [ProductType];
fields: ProductFields;
fields_json: JSON; // remove later
}
// TODO: test stock products to see what props can be mandatory
@@ -130,7 +137,7 @@ export interface ProductFields {
canvasResolution?: number;
wallpaperResolution?: number;
copyright?: string;
proportionsWarning?: string;
proportionsWarning?: boolean;
marginWidthMax?: number;
marginWidthMin?: number;
marginHeightMax?: number;