|
@@ -1,5 +1,5 @@
|
|
|
// tslint:disable
|
|
// tslint:disable
|
|
|
-// Generated in 2019-04-25T20:45:59+02:00
|
|
|
|
|
|
|
+// Generated in 2019-05-02T11:33:31+02:00
|
|
|
export type Maybe<T> = T | null;
|
|
export type Maybe<T> = T | null;
|
|
|
|
|
|
|
|
export interface OrderListOptions {
|
|
export interface OrderListOptions {
|
|
@@ -768,6 +768,13 @@ export enum Permission {
|
|
|
DeleteSettings = 'DeleteSettings',
|
|
DeleteSettings = 'DeleteSettings',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export enum StockMovementType {
|
|
|
|
|
+ ADJUSTMENT = 'ADJUSTMENT',
|
|
|
|
|
+ SALE = 'SALE',
|
|
|
|
|
+ CANCELLATION = 'CANCELLATION',
|
|
|
|
|
+ RETURN = 'RETURN',
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export enum DeletionResult {
|
|
export enum DeletionResult {
|
|
|
DELETED = 'DELETED',
|
|
DELETED = 'DELETED',
|
|
|
NOT_DELETED = 'NOT_DELETED',
|
|
NOT_DELETED = 'NOT_DELETED',
|
|
@@ -1675,6 +1682,22 @@ export interface AssetList extends PaginatedList {
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface Cancellation extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ productVariant: ProductVariant;
|
|
|
|
|
+
|
|
|
|
|
+ type: StockMovementType;
|
|
|
|
|
+
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+
|
|
|
|
|
+ orderLine: OrderLine;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface CountryList extends PaginatedList {
|
|
export interface CountryList extends PaginatedList {
|
|
|
items: Country[];
|
|
items: Country[];
|
|
|
|
|
|
|
@@ -1708,6 +1731,8 @@ export interface GlobalSettings {
|
|
|
|
|
|
|
|
availableLanguages: LanguageCode[];
|
|
availableLanguages: LanguageCode[];
|
|
|
|
|
|
|
|
|
|
+ trackInventory: boolean;
|
|
|
|
|
+
|
|
|
serverConfig: ServerConfig;
|
|
serverConfig: ServerConfig;
|
|
|
|
|
|
|
|
customFields?: Maybe<Json>;
|
|
customFields?: Maybe<Json>;
|
|
@@ -1761,12 +1786,44 @@ export interface PromotionList extends PaginatedList {
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface Return extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ productVariant: ProductVariant;
|
|
|
|
|
+
|
|
|
|
|
+ type: StockMovementType;
|
|
|
|
|
+
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+
|
|
|
|
|
+ orderItem: OrderItem;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface RoleList extends PaginatedList {
|
|
export interface RoleList extends PaginatedList {
|
|
|
items: Role[];
|
|
items: Role[];
|
|
|
|
|
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface Sale extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ productVariant: ProductVariant;
|
|
|
|
|
+
|
|
|
|
|
+ type: StockMovementType;
|
|
|
|
|
+
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+
|
|
|
|
|
+ orderLine: OrderLine;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface SearchReindexResponse {
|
|
export interface SearchReindexResponse {
|
|
|
success: boolean;
|
|
success: boolean;
|
|
|
|
|
|
|
@@ -1781,6 +1838,26 @@ export interface ShippingMethodList extends PaginatedList {
|
|
|
totalItems: number;
|
|
totalItems: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export interface StockAdjustment extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+
|
|
|
|
|
+ productVariant: ProductVariant;
|
|
|
|
|
+
|
|
|
|
|
+ type: StockMovementType;
|
|
|
|
|
+
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface StockMovementList {
|
|
|
|
|
+ items: StockMovement[];
|
|
|
|
|
+
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface TaxRateList extends PaginatedList {
|
|
export interface TaxRateList extends PaginatedList {
|
|
|
items: TaxRate[];
|
|
items: TaxRate[];
|
|
|
|
|
|
|
@@ -1912,3 +1989,5 @@ export interface ResetPasswordMutationArgs {
|
|
|
|
|
|
|
|
/** The price of a search result product, either as a range or as a single price */
|
|
/** The price of a search result product, either as a range or as a single price */
|
|
|
export type SearchResultPrice = PriceRange | SinglePrice;
|
|
export type SearchResultPrice = PriceRange | SinglePrice;
|
|
|
|
|
+
|
|
|
|
|
+export type StockMovement = StockAdjustment | Sale | Cancellation | Return;
|