Break out ref and copyright to own responses (#79)

This commit is contained in:
Niklas Fondberg
2021-10-27 13:15:16 +02:00
committed by GitHub
parent 56ad07edf8
commit 68e7414e32
4 changed files with 46 additions and 26 deletions
+10
View File
@@ -55,6 +55,8 @@ export interface ProductsSearchResult {
keywords: Promise<Array<Keyword>>;
categories: Promise<Array<Category>>;
designers: Promise<Array<Designer>>;
copyrights: Promise<Array<Copyright>>;
references: Promise<Array<Product>>;
}
export interface ProductListResult {
pagination: PaginationResult;
@@ -128,6 +130,11 @@ export interface Batch {
products: Promise<Array<Product>>;
}
export interface Copyright {
name: string;
products: Promise<Array<Product>>;
}
export interface Product {
id: number;
stockid: number;
@@ -136,6 +143,9 @@ export interface Product {
browsable: boolean;
inserted: Date;
updated?: Date;
ref1: string;
ref2: string;
ref3: string;
orientation?: Orientation;
printProducts: [PrintProduct];
blacklisting: [ProductBlacklist];