Add warn for proportions mutation for product (#40)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user