|
|
@@ -29,16 +29,19 @@ export type Json = any;
|
|
|
|
|
|
export type Upload = any;
|
|
|
|
|
|
+export interface Node {
|
|
|
+ id: string;
|
|
|
+}
|
|
|
+
|
|
|
export interface PaginatedList {
|
|
|
items: Node[];
|
|
|
totalItems: number;
|
|
|
}
|
|
|
|
|
|
-export interface Node {
|
|
|
- id: string;
|
|
|
-}
|
|
|
-
|
|
|
export interface Query {
|
|
|
+ adjustmentSource?: AdjustmentSource | null;
|
|
|
+ adjustmentSources: AdjustmentSourceList;
|
|
|
+ adjustmentOperations: AdjustmentOperations;
|
|
|
administrators: AdministratorList;
|
|
|
administrator?: Administrator | null;
|
|
|
assets: AssetList;
|
|
|
@@ -62,6 +65,39 @@ export interface Query {
|
|
|
uiState: UiState;
|
|
|
}
|
|
|
|
|
|
+export interface AdjustmentSource extends Node {
|
|
|
+ id: string;
|
|
|
+ createdAt: DateTime;
|
|
|
+ updatedAt: DateTime;
|
|
|
+ name: string;
|
|
|
+ type: AdjustmentType;
|
|
|
+ conditions: AdjustmentOperation[];
|
|
|
+ actions: AdjustmentOperation[];
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdjustmentOperation {
|
|
|
+ type: AdjustmentType;
|
|
|
+ code: string;
|
|
|
+ args: AdjustmentArg[];
|
|
|
+ description: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdjustmentArg {
|
|
|
+ name: string;
|
|
|
+ type: string;
|
|
|
+ value?: string | null;
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdjustmentSourceList extends PaginatedList {
|
|
|
+ items: AdjustmentSource[];
|
|
|
+ totalItems: number;
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdjustmentOperations {
|
|
|
+ conditions: AdjustmentOperation[];
|
|
|
+ actions: AdjustmentOperation[];
|
|
|
+}
|
|
|
+
|
|
|
export interface AdministratorList extends PaginatedList {
|
|
|
items: Administrator[];
|
|
|
totalItems: number;
|
|
|
@@ -223,7 +259,7 @@ export interface Order extends Node {
|
|
|
createdAt: DateTime;
|
|
|
updatedAt: DateTime;
|
|
|
code: string;
|
|
|
- customer: Customer;
|
|
|
+ customer?: Customer | null;
|
|
|
items: OrderItem[];
|
|
|
adjustments: Adjustment[];
|
|
|
}
|
|
|
@@ -290,14 +326,6 @@ export interface Adjustment extends Node {
|
|
|
source: AdjustmentSource;
|
|
|
}
|
|
|
|
|
|
-export interface AdjustmentSource extends Node {
|
|
|
- id: string;
|
|
|
- createdAt: DateTime;
|
|
|
- updatedAt: DateTime;
|
|
|
- name: string;
|
|
|
- type: string;
|
|
|
-}
|
|
|
-
|
|
|
export interface OrderList extends PaginatedList {
|
|
|
items: Order[];
|
|
|
totalItems: number;
|
|
|
@@ -385,6 +413,8 @@ export interface UiState {
|
|
|
}
|
|
|
|
|
|
export interface Mutation {
|
|
|
+ createAdjustmentSource: AdjustmentSource;
|
|
|
+ updateAdjustmentSource: AdjustmentSource;
|
|
|
createAdministrator: Administrator;
|
|
|
updateAdministrator: Administrator;
|
|
|
assignRoleToAdministrator: Administrator;
|
|
|
@@ -423,26 +453,22 @@ export interface LoginResult {
|
|
|
user: CurrentUser;
|
|
|
}
|
|
|
|
|
|
-export interface AdministratorListOptions {
|
|
|
+export interface AdjustmentSourceListOptions {
|
|
|
take?: number | null;
|
|
|
skip?: number | null;
|
|
|
- sort?: AdministratorSortParameter | null;
|
|
|
- filter?: AdministratorFilterParameter | null;
|
|
|
+ sort?: AdjustmentSourceSortParameter | null;
|
|
|
+ filter?: AdjustmentSourceFilterParameter | null;
|
|
|
}
|
|
|
|
|
|
-export interface AdministratorSortParameter {
|
|
|
+export interface AdjustmentSourceSortParameter {
|
|
|
id?: SortOrder | null;
|
|
|
createdAt?: SortOrder | null;
|
|
|
updatedAt?: SortOrder | null;
|
|
|
- firstName?: SortOrder | null;
|
|
|
- lastName?: SortOrder | null;
|
|
|
- emailAddress?: SortOrder | null;
|
|
|
+ name?: SortOrder | null;
|
|
|
}
|
|
|
|
|
|
-export interface AdministratorFilterParameter {
|
|
|
- firstName?: StringOperators | null;
|
|
|
- lastName?: StringOperators | null;
|
|
|
- emailAddress?: StringOperators | null;
|
|
|
+export interface AdjustmentSourceFilterParameter {
|
|
|
+ name?: StringOperators | null;
|
|
|
createdAt?: DateOperators | null;
|
|
|
updatedAt?: DateOperators | null;
|
|
|
}
|
|
|
@@ -464,6 +490,30 @@ export interface DateRange {
|
|
|
end: DateTime;
|
|
|
}
|
|
|
|
|
|
+export interface AdministratorListOptions {
|
|
|
+ take?: number | null;
|
|
|
+ skip?: number | null;
|
|
|
+ sort?: AdministratorSortParameter | null;
|
|
|
+ filter?: AdministratorFilterParameter | null;
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdministratorSortParameter {
|
|
|
+ id?: SortOrder | null;
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
+ firstName?: SortOrder | null;
|
|
|
+ lastName?: SortOrder | null;
|
|
|
+ emailAddress?: SortOrder | null;
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdministratorFilterParameter {
|
|
|
+ firstName?: StringOperators | null;
|
|
|
+ lastName?: StringOperators | null;
|
|
|
+ emailAddress?: StringOperators | null;
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
+}
|
|
|
+
|
|
|
export interface AssetListOptions {
|
|
|
take?: number | null;
|
|
|
skip?: number | null;
|
|
|
@@ -614,6 +664,25 @@ export interface RoleFilterParameter {
|
|
|
updatedAt?: DateOperators | null;
|
|
|
}
|
|
|
|
|
|
+export interface CreateAdjustmentSourceInput {
|
|
|
+ name: string;
|
|
|
+ type: AdjustmentType;
|
|
|
+ conditions: AdjustmentOperationInput[];
|
|
|
+ actions: AdjustmentOperationInput[];
|
|
|
+}
|
|
|
+
|
|
|
+export interface AdjustmentOperationInput {
|
|
|
+ code: string;
|
|
|
+ arguments: string[];
|
|
|
+}
|
|
|
+
|
|
|
+export interface UpdateAdjustmentSourceInput {
|
|
|
+ id: string;
|
|
|
+ name?: string | null;
|
|
|
+ conditions?: AdjustmentOperationInput[] | null;
|
|
|
+ actions?: AdjustmentOperationInput[] | null;
|
|
|
+}
|
|
|
+
|
|
|
export interface CreateAdministratorInput {
|
|
|
firstName: string;
|
|
|
lastName: string;
|
|
|
@@ -844,6 +913,16 @@ export interface ProductOptionTranslationInput {
|
|
|
name?: string | null;
|
|
|
customFields?: Json | null;
|
|
|
}
|
|
|
+export interface AdjustmentSourceQueryArgs {
|
|
|
+ id: string;
|
|
|
+}
|
|
|
+export interface AdjustmentSourcesQueryArgs {
|
|
|
+ type: AdjustmentType;
|
|
|
+ options?: AdjustmentSourceListOptions | null;
|
|
|
+}
|
|
|
+export interface AdjustmentOperationsQueryArgs {
|
|
|
+ type: AdjustmentType;
|
|
|
+}
|
|
|
export interface AdministratorsQueryArgs {
|
|
|
options?: AdministratorListOptions | null;
|
|
|
}
|
|
|
@@ -898,6 +977,12 @@ export interface RolesQueryArgs {
|
|
|
export interface RoleQueryArgs {
|
|
|
id: string;
|
|
|
}
|
|
|
+export interface CreateAdjustmentSourceMutationArgs {
|
|
|
+ input: CreateAdjustmentSourceInput;
|
|
|
+}
|
|
|
+export interface UpdateAdjustmentSourceMutationArgs {
|
|
|
+ input: UpdateAdjustmentSourceInput;
|
|
|
+}
|
|
|
export interface CreateAdministratorMutationArgs {
|
|
|
input: CreateAdministratorInput;
|
|
|
}
|
|
|
@@ -996,6 +1081,12 @@ export interface SetUiLanguageMutationArgs {
|
|
|
languageCode?: LanguageCode | null;
|
|
|
}
|
|
|
|
|
|
+export enum AdjustmentType {
|
|
|
+ TAX = 'TAX',
|
|
|
+ PROMOTION = 'PROMOTION',
|
|
|
+ SHIPPING = 'SHIPPING',
|
|
|
+}
|
|
|
+
|
|
|
export enum SortOrder {
|
|
|
ASC = 'ASC',
|
|
|
DESC = 'DESC',
|
|
|
@@ -1021,6 +1112,10 @@ export enum Permission {
|
|
|
ReadOrder = 'ReadOrder',
|
|
|
UpdateOrder = 'UpdateOrder',
|
|
|
DeleteOrder = 'DeleteOrder',
|
|
|
+ CreateAdjustmentSource = 'CreateAdjustmentSource',
|
|
|
+ ReadAdjustmentSource = 'ReadAdjustmentSource',
|
|
|
+ UpdateAdjustmentSource = 'UpdateAdjustmentSource',
|
|
|
+ DeleteAdjustmentSource = 'DeleteAdjustmentSource',
|
|
|
}
|
|
|
|
|
|
export enum AssetType {
|
|
|
@@ -1220,6 +1315,9 @@ export type AdjustmentTarget = Order | OrderItem;
|
|
|
|
|
|
export namespace QueryResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
|
+ adjustmentSource?: AdjustmentSourceResolver<AdjustmentSource | null, any, Context>;
|
|
|
+ adjustmentSources?: AdjustmentSourcesResolver<AdjustmentSourceList, any, Context>;
|
|
|
+ adjustmentOperations?: AdjustmentOperationsResolver<AdjustmentOperations, any, Context>;
|
|
|
administrators?: AdministratorsResolver<AdministratorList, any, Context>;
|
|
|
administrator?: AdministratorResolver<Administrator | null, any, Context>;
|
|
|
assets?: AssetsResolver<AssetList, any, Context>;
|
|
|
@@ -1243,6 +1341,36 @@ export namespace QueryResolvers {
|
|
|
uiState?: UiStateResolver<UiState, any, Context>;
|
|
|
}
|
|
|
|
|
|
+ export type AdjustmentSourceResolver<R = AdjustmentSource | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context,
|
|
|
+ AdjustmentSourceArgs
|
|
|
+ >;
|
|
|
+ export interface AdjustmentSourceArgs {
|
|
|
+ id: string;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type AdjustmentSourcesResolver<R = AdjustmentSourceList, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context,
|
|
|
+ AdjustmentSourcesArgs
|
|
|
+ >;
|
|
|
+ export interface AdjustmentSourcesArgs {
|
|
|
+ type: AdjustmentType;
|
|
|
+ options?: AdjustmentSourceListOptions | null;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type AdjustmentOperationsResolver<
|
|
|
+ R = AdjustmentOperations,
|
|
|
+ Parent = any,
|
|
|
+ Context = any
|
|
|
+ > = Resolver<R, Parent, Context, AdjustmentOperationsArgs>;
|
|
|
+ export interface AdjustmentOperationsArgs {
|
|
|
+ type: AdjustmentType;
|
|
|
+ }
|
|
|
+
|
|
|
export type AdministratorsResolver<R = AdministratorList, Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
|
Parent,
|
|
|
@@ -1427,6 +1555,92 @@ export namespace QueryResolvers {
|
|
|
export type UiStateResolver<R = UiState, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
}
|
|
|
|
|
|
+export namespace AdjustmentSourceResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
+ type?: TypeResolver<AdjustmentType, any, Context>;
|
|
|
+ conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
|
|
|
+ actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type TypeResolver<R = AdjustmentType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace AdjustmentOperationResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ type?: TypeResolver<AdjustmentType, any, Context>;
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
+ args?: ArgsResolver<AdjustmentArg[], any, Context>;
|
|
|
+ description?: DescriptionResolver<string, any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type TypeResolver<R = AdjustmentType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type ArgsResolver<R = AdjustmentArg[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace AdjustmentArgResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
+ type?: TypeResolver<string, any, Context>;
|
|
|
+ value?: ValueResolver<string | null, any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type TypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type ValueResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace AdjustmentSourceListResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ items?: ItemsResolver<AdjustmentSource[], any, Context>;
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type ItemsResolver<R = AdjustmentSource[], Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace AdjustmentOperationsResolvers {
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
+ conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
|
|
|
+ actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+ export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
+}
|
|
|
+
|
|
|
export namespace AdministratorListResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
|
items?: ItemsResolver<Administrator[], any, Context>;
|
|
|
@@ -1865,7 +2079,7 @@ export namespace OrderResolvers {
|
|
|
createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
code?: CodeResolver<string, any, Context>;
|
|
|
- customer?: CustomerResolver<Customer, any, Context>;
|
|
|
+ customer?: CustomerResolver<Customer | null, any, Context>;
|
|
|
items?: ItemsResolver<OrderItem[], any, Context>;
|
|
|
adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
|
|
|
}
|
|
|
@@ -1874,7 +2088,11 @@ export namespace OrderResolvers {
|
|
|
export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
- export type CustomerResolver<R = Customer, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
+ export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context
|
|
|
+ >;
|
|
|
export type ItemsResolver<R = OrderItem[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
|
@@ -2063,22 +2281,6 @@ export namespace AdjustmentResolvers {
|
|
|
>;
|
|
|
}
|
|
|
|
|
|
-export namespace AdjustmentSourceResolvers {
|
|
|
- export interface Resolvers<Context = any> {
|
|
|
- id?: IdResolver<string, any, Context>;
|
|
|
- createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
- updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
- name?: NameResolver<string, any, Context>;
|
|
|
- type?: TypeResolver<string, any, Context>;
|
|
|
- }
|
|
|
-
|
|
|
- export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
- export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
- export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
- export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
- export type TypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
-}
|
|
|
-
|
|
|
export namespace OrderListResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
|
items?: ItemsResolver<Order[], any, Context>;
|
|
|
@@ -2329,6 +2531,8 @@ export namespace UiStateResolvers {
|
|
|
|
|
|
export namespace MutationResolvers {
|
|
|
export interface Resolvers<Context = any> {
|
|
|
+ createAdjustmentSource?: CreateAdjustmentSourceResolver<AdjustmentSource, any, Context>;
|
|
|
+ updateAdjustmentSource?: UpdateAdjustmentSourceResolver<AdjustmentSource, any, Context>;
|
|
|
createAdministrator?: CreateAdministratorResolver<Administrator, any, Context>;
|
|
|
updateAdministrator?: UpdateAdministratorResolver<Administrator, any, Context>;
|
|
|
assignRoleToAdministrator?: AssignRoleToAdministratorResolver<Administrator, any, Context>;
|
|
|
@@ -2367,6 +2571,26 @@ export namespace MutationResolvers {
|
|
|
setUiLanguage?: SetUiLanguageResolver<LanguageCode | null, any, Context>;
|
|
|
}
|
|
|
|
|
|
+ export type CreateAdjustmentSourceResolver<R = AdjustmentSource, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context,
|
|
|
+ CreateAdjustmentSourceArgs
|
|
|
+ >;
|
|
|
+ export interface CreateAdjustmentSourceArgs {
|
|
|
+ input: CreateAdjustmentSourceInput;
|
|
|
+ }
|
|
|
+
|
|
|
+ export type UpdateAdjustmentSourceResolver<R = AdjustmentSource, Parent = any, Context = any> = Resolver<
|
|
|
+ R,
|
|
|
+ Parent,
|
|
|
+ Context,
|
|
|
+ UpdateAdjustmentSourceArgs
|
|
|
+ >;
|
|
|
+ export interface UpdateAdjustmentSourceArgs {
|
|
|
+ input: UpdateAdjustmentSourceInput;
|
|
|
+ }
|
|
|
+
|
|
|
export type CreateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
|
|
|
R,
|
|
|
Parent,
|
|
|
@@ -2681,6 +2905,86 @@ export namespace LoginResultResolvers {
|
|
|
export type UserResolver<R = CurrentUser, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
}
|
|
|
|
|
|
+export namespace GetAdjustmentSourceList {
|
|
|
+ export type Variables = {
|
|
|
+ type: AdjustmentType;
|
|
|
+ options?: AdjustmentSourceListOptions | null;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Query = {
|
|
|
+ __typename?: 'Query';
|
|
|
+ adjustmentSources: AdjustmentSources;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type AdjustmentSources = {
|
|
|
+ __typename?: 'AdjustmentSourceList';
|
|
|
+ items: Items[];
|
|
|
+ totalItems: number;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Items = AdjustmentSource.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace GetAdjustmentSource {
|
|
|
+ export type Variables = {
|
|
|
+ id: string;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Query = {
|
|
|
+ __typename?: 'Query';
|
|
|
+ adjustmentSource?: AdjustmentSource | null;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type AdjustmentSource = AdjustmentSource.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace GetAdjustmentOperations {
|
|
|
+ export type Variables = {
|
|
|
+ type: AdjustmentType;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Query = {
|
|
|
+ __typename?: 'Query';
|
|
|
+ adjustmentOperations: AdjustmentOperations;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type AdjustmentOperations = {
|
|
|
+ __typename?: 'AdjustmentOperations';
|
|
|
+ actions: Actions[];
|
|
|
+ conditions: Conditions[];
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Actions = AdjustmentOperation.Fragment;
|
|
|
+
|
|
|
+ export type Conditions = AdjustmentOperation.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace CreateAdjustmentSource {
|
|
|
+ export type Variables = {
|
|
|
+ input: CreateAdjustmentSourceInput;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Mutation = {
|
|
|
+ __typename?: 'Mutation';
|
|
|
+ createAdjustmentSource: CreateAdjustmentSource;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type CreateAdjustmentSource = AdjustmentSource.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
+export namespace UpdateAdjustmentSource {
|
|
|
+ export type Variables = {
|
|
|
+ input: UpdateAdjustmentSourceInput;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Mutation = {
|
|
|
+ __typename?: 'Mutation';
|
|
|
+ updateAdjustmentSource: UpdateAdjustmentSource;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type UpdateAdjustmentSource = AdjustmentSource.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
export namespace GetAdministrators {
|
|
|
export type Variables = {
|
|
|
options?: AdministratorListOptions | null;
|
|
|
@@ -3323,6 +3627,40 @@ export namespace CreateAssets {
|
|
|
export type CreateAssets = Asset.Fragment;
|
|
|
}
|
|
|
|
|
|
+export namespace AdjustmentOperation {
|
|
|
+ export type Fragment = {
|
|
|
+ __typename?: 'AdjustmentOperation';
|
|
|
+ args: Args[];
|
|
|
+ code: string;
|
|
|
+ description: string;
|
|
|
+ type: AdjustmentType;
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Args = {
|
|
|
+ __typename?: 'AdjustmentArg';
|
|
|
+ name: string;
|
|
|
+ type: string;
|
|
|
+ value?: string | null;
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+export namespace AdjustmentSource {
|
|
|
+ export type Fragment = {
|
|
|
+ __typename?: 'AdjustmentSource';
|
|
|
+ id: string;
|
|
|
+ createdAt: DateTime;
|
|
|
+ updatedAt: DateTime;
|
|
|
+ type: AdjustmentType;
|
|
|
+ name: string;
|
|
|
+ conditions: Conditions[];
|
|
|
+ actions: Actions[];
|
|
|
+ };
|
|
|
+
|
|
|
+ export type Conditions = AdjustmentOperation.Fragment;
|
|
|
+
|
|
|
+ export type Actions = AdjustmentOperation.Fragment;
|
|
|
+}
|
|
|
+
|
|
|
export namespace Administrator {
|
|
|
export type Fragment = {
|
|
|
__typename?: 'Administrator';
|
|
|
@@ -3423,7 +3761,7 @@ export namespace Order {
|
|
|
createdAt: DateTime;
|
|
|
updatedAt: DateTime;
|
|
|
code: string;
|
|
|
- customer: Customer;
|
|
|
+ customer?: Customer | null;
|
|
|
};
|
|
|
|
|
|
export type Customer = {
|