|
@@ -1,2470 +1,3516 @@
|
|
|
/* tslint:disable */
|
|
/* tslint:disable */
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetAdministrators
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrators_administrators_items_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrators_administrators_items_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: GetAdministrators_administrators_items_user_roles[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrators_administrators_items {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: GetAdministrators_administrators_items_user;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrators_administrators {
|
|
|
|
|
- __typename: "AdministratorList";
|
|
|
|
|
- items: GetAdministrators_administrators_items[];
|
|
|
|
|
- totalItems: number;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrators {
|
|
|
|
|
- administrators: GetAdministrators_administrators;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministratorsVariables {
|
|
|
|
|
- options?: AdministratorListOptions | null;
|
|
|
|
|
|
|
+import { GraphQLResolveInfo } from 'graphql';
|
|
|
|
|
+
|
|
|
|
|
+export type Resolver<Result, Parent = any, Context = any, Args = any> = (
|
|
|
|
|
+ parent: Parent,
|
|
|
|
|
+ args: Args,
|
|
|
|
|
+ context: Context,
|
|
|
|
|
+ info: GraphQLResolveInfo,
|
|
|
|
|
+) => Promise<Result> | Result;
|
|
|
|
|
+
|
|
|
|
|
+export type SubscriptionResolver<Result, Parent = any, Context = any, Args = any> = {
|
|
|
|
|
+ subscribe<R = Result, P = Parent>(
|
|
|
|
|
+ parent: P,
|
|
|
|
|
+ args: Args,
|
|
|
|
|
+ context: Context,
|
|
|
|
|
+ info: GraphQLResolveInfo,
|
|
|
|
|
+ ): AsyncIterator<R | Result>;
|
|
|
|
|
+ resolve?<R = Result, P = Parent>(
|
|
|
|
|
+ parent: P,
|
|
|
|
|
+ args: Args,
|
|
|
|
|
+ context: Context,
|
|
|
|
|
+ info: GraphQLResolveInfo,
|
|
|
|
|
+ ): R | Result | Promise<R | Result>;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+export type DateTime = any;
|
|
|
|
|
+
|
|
|
|
|
+export type Json = any;
|
|
|
|
|
+
|
|
|
|
|
+export type Upload = any;
|
|
|
|
|
+
|
|
|
|
|
+export interface PaginatedList {
|
|
|
|
|
+ items: Node[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Query {
|
|
|
|
|
+ administrators: AdministratorList;
|
|
|
|
|
+ administrator?: Administrator | null;
|
|
|
|
|
+ assets: AssetList;
|
|
|
|
|
+ asset?: Asset | null;
|
|
|
|
|
+ me?: CurrentUser | null;
|
|
|
|
|
+ config: Config;
|
|
|
|
|
+ customers: CustomerList;
|
|
|
|
|
+ customer?: Customer | null;
|
|
|
|
|
+ facets: FacetList;
|
|
|
|
|
+ facet?: Facet | null;
|
|
|
|
|
+ order?: Order | null;
|
|
|
|
|
+ orders?: OrderList | null;
|
|
|
|
|
+ productOptionGroups: ProductOptionGroup[];
|
|
|
|
|
+ productOptionGroup?: ProductOptionGroup | null;
|
|
|
|
|
+ products: ProductList;
|
|
|
|
|
+ product?: Product | null;
|
|
|
|
|
+ roles: RoleList;
|
|
|
|
|
+ role?: Role | null;
|
|
|
|
|
+ networkStatus: NetworkStatus;
|
|
|
|
|
+ userStatus: UserStatus;
|
|
|
|
|
+ uiState: UiState;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface AdministratorList extends PaginatedList {
|
|
|
|
|
+ items: Administrator[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Administrator extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ firstName: string;
|
|
|
|
|
+ lastName: string;
|
|
|
|
|
+ emailAddress: string;
|
|
|
|
|
+ user: User;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface User extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ identifier: string;
|
|
|
|
|
+ passwordHash: string;
|
|
|
|
|
+ roles: Role[];
|
|
|
|
|
+ lastLogin?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Role extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ permissions: Permission[];
|
|
|
|
|
+ channels: Channel[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Channel extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ token: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface AssetList extends PaginatedList {
|
|
|
|
|
+ items: Asset[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Asset extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ type: AssetType;
|
|
|
|
|
+ fileSize: number;
|
|
|
|
|
+ mimeType: string;
|
|
|
|
|
+ source: string;
|
|
|
|
|
+ preview: string;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetAdministrator
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetAdministrator_administrator_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export interface CurrentUser {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ identifier: string;
|
|
|
|
|
+ channelTokens: string[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Config {
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface CustomerList extends PaginatedList {
|
|
|
|
|
+ items: Customer[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Customer extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ firstName: string;
|
|
|
|
|
+ lastName: string;
|
|
|
|
|
+ phoneNumber?: string | null;
|
|
|
|
|
+ emailAddress: string;
|
|
|
|
|
+ addresses?: Address[] | null;
|
|
|
|
|
+ user?: User | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Address extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ fullName?: string | null;
|
|
|
|
|
+ company?: string | null;
|
|
|
|
|
+ streetLine1?: string | null;
|
|
|
|
|
+ streetLine2?: string | null;
|
|
|
|
|
+ city?: string | null;
|
|
|
|
|
+ province?: string | null;
|
|
|
|
|
+ postalCode?: string | null;
|
|
|
|
|
+ country?: string | null;
|
|
|
|
|
+ phoneNumber?: string | null;
|
|
|
|
|
+ defaultShippingAddress?: boolean | null;
|
|
|
|
|
+ defaultBillingAddress?: boolean | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetList extends PaginatedList {
|
|
|
|
|
+ items: Facet[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Facet extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ values: FacetValue[];
|
|
|
|
|
+ translations: FacetTranslation[];
|
|
|
|
|
+ customFields?: FacetCustomFields | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetValue extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: FacetValueTranslation[];
|
|
|
|
|
+ customFields?: FacetValueCustomFields | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetValueTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetValueCustomFields {
|
|
|
|
|
+ link?: string | null;
|
|
|
|
|
+ available?: boolean | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface FacetCustomFields {
|
|
|
|
|
+ searchable?: boolean | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Order extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ customer: Customer;
|
|
|
|
|
+ items: OrderItem[];
|
|
|
|
|
+ adjustments: Adjustment[];
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface OrderItem extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ productVariant: ProductVariant;
|
|
|
|
|
+ unitPrice: number;
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+ adjustments: Adjustment[];
|
|
|
|
|
+ order: Order;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductVariant extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ sku: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ price: number;
|
|
|
|
|
+ options: ProductOption[];
|
|
|
|
|
+ facetValues: FacetValue[];
|
|
|
|
|
+ translations: ProductVariantTranslation[];
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductOption extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ translations: ProductOptionTranslation[];
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductOptionTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductVariantTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
-export interface GetAdministrator_administrator_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: GetAdministrator_administrator_user_roles[];
|
|
|
|
|
|
|
+export interface Adjustment extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ type: string;
|
|
|
|
|
+ amount: number;
|
|
|
|
|
+ target: AdjustmentTarget;
|
|
|
|
|
+ source: AdjustmentSource;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetAdministrator_administrator {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: GetAdministrator_administrator_user;
|
|
|
|
|
|
|
+export interface AdjustmentSource extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ type: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface OrderList extends PaginatedList {
|
|
|
|
|
+ items: Order[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductOptionGroup extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ options: ProductOption[];
|
|
|
|
|
+ translations: ProductOptionGroupTranslation[];
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductOptionGroupTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductList extends PaginatedList {
|
|
|
|
|
+ items: Product[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Product extends Node {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ slug: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ featuredAsset?: Asset | null;
|
|
|
|
|
+ assets: Asset[];
|
|
|
|
|
+ variants: ProductVariant[];
|
|
|
|
|
+ optionGroups: ProductOptionGroup[];
|
|
|
|
|
+ translations: ProductTranslation[];
|
|
|
|
|
+ customFields?: ProductCustomFields | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductTranslation {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ createdAt: DateTime;
|
|
|
|
|
+ updatedAt: DateTime;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ slug: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ customFields?: ProductTranslationCustomFields | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductTranslationCustomFields {
|
|
|
|
|
+ nickname?: string | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface ProductCustomFields {
|
|
|
|
|
+ infoUrl?: string | null;
|
|
|
|
|
+ downloadable?: boolean | null;
|
|
|
|
|
+ nickname?: string | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface RoleList extends PaginatedList {
|
|
|
|
|
+ items: Role[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface NetworkStatus {
|
|
|
|
|
+ inFlightRequests: number;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface UserStatus {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ isLoggedIn: boolean;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface UiState {
|
|
|
|
|
+ language: LanguageCode;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface Mutation {
|
|
|
|
|
+ createAdministrator: Administrator;
|
|
|
|
|
+ updateAdministrator: Administrator;
|
|
|
|
|
+ assignRoleToAdministrator: Administrator;
|
|
|
|
|
+ createAssets: Asset[];
|
|
|
|
|
+ login: LoginResult;
|
|
|
|
|
+ logout: boolean;
|
|
|
|
|
+ createChannel: Channel;
|
|
|
|
|
+ createCustomer: Customer;
|
|
|
|
|
+ createCustomerAddress: Address;
|
|
|
|
|
+ createFacet: Facet;
|
|
|
|
|
+ updateFacet: Facet;
|
|
|
|
|
+ createFacetValues: FacetValue[];
|
|
|
|
|
+ updateFacetValues: FacetValue[];
|
|
|
|
|
+ addItemToOrder?: Order | null;
|
|
|
|
|
+ removeItemFromOrder?: Order | null;
|
|
|
|
|
+ adjustItemQuantity?: Order | null;
|
|
|
|
|
+ createProductOptionGroup: ProductOptionGroup;
|
|
|
|
|
+ updateProductOptionGroup: ProductOptionGroup;
|
|
|
|
|
+ createProduct: Product;
|
|
|
|
|
+ updateProduct: Product;
|
|
|
|
|
+ addOptionGroupToProduct: Product;
|
|
|
|
|
+ removeOptionGroupFromProduct: Product;
|
|
|
|
|
+ generateVariantsForProduct: Product;
|
|
|
|
|
+ updateProductVariants: (ProductVariant | null)[];
|
|
|
|
|
+ applyFacetValuesToProductVariants: ProductVariant[];
|
|
|
|
|
+ createRole: Role;
|
|
|
|
|
+ updateRole: Role;
|
|
|
|
|
+ requestStarted: number;
|
|
|
|
|
+ requestCompleted: number;
|
|
|
|
|
+ setAsLoggedIn: UserStatus;
|
|
|
|
|
+ setAsLoggedOut: UserStatus;
|
|
|
|
|
+ setUiLanguage?: LanguageCode | null;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface LoginResult {
|
|
|
|
|
+ user: CurrentUser;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetAdministrator {
|
|
|
|
|
- administrator: GetAdministrator_administrator | null;
|
|
|
|
|
|
|
+export interface AdministratorListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: AdministratorSortParameter | null;
|
|
|
|
|
+ filter?: AdministratorFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetAdministratorVariables {
|
|
|
|
|
- id: string;
|
|
|
|
|
|
|
+export interface AdministratorSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ firstName?: SortOrder | null;
|
|
|
|
|
+ lastName?: SortOrder | null;
|
|
|
|
|
+ emailAddress?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateAdministrator
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateAdministrator_createAdministrator_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
|
|
+export interface AdministratorFilterParameter {
|
|
|
|
|
+ firstName?: StringOperators | null;
|
|
|
|
|
+ lastName?: StringOperators | null;
|
|
|
|
|
+ emailAddress?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateAdministrator_createAdministrator_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: CreateAdministrator_createAdministrator_user_roles[];
|
|
|
|
|
|
|
+export interface StringOperators {
|
|
|
|
|
+ eq?: string | null;
|
|
|
|
|
+ contains?: string | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateAdministrator_createAdministrator {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: CreateAdministrator_createAdministrator_user;
|
|
|
|
|
|
|
+export interface DateOperators {
|
|
|
|
|
+ eq?: DateTime | null;
|
|
|
|
|
+ before?: DateTime | null;
|
|
|
|
|
+ after?: DateTime | null;
|
|
|
|
|
+ between?: DateRange | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateAdministrator {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new Administrator
|
|
|
|
|
- */
|
|
|
|
|
- createAdministrator: CreateAdministrator_createAdministrator;
|
|
|
|
|
|
|
+export interface DateRange {
|
|
|
|
|
+ start: DateTime;
|
|
|
|
|
+ end: DateTime;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateAdministratorVariables {
|
|
|
|
|
- input: CreateAdministratorInput;
|
|
|
|
|
|
|
+export interface AssetListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: AssetSortParameter | null;
|
|
|
|
|
+ filter?: AssetFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateAdministrator
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateAdministrator_updateAdministrator_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
|
|
+export interface AssetSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ name?: SortOrder | null;
|
|
|
|
|
+ description?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateAdministrator_updateAdministrator_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: UpdateAdministrator_updateAdministrator_user_roles[];
|
|
|
|
|
|
|
+export interface AssetFilterParameter {
|
|
|
|
|
+ name?: StringOperators | null;
|
|
|
|
|
+ description?: StringOperators | null;
|
|
|
|
|
+ type?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateAdministrator_updateAdministrator {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: UpdateAdministrator_updateAdministrator_user;
|
|
|
|
|
|
|
+export interface CustomerListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: CustomerSortParameter | null;
|
|
|
|
|
+ filter?: CustomerFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateAdministrator {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update an existing Administrator
|
|
|
|
|
- */
|
|
|
|
|
- updateAdministrator: UpdateAdministrator_updateAdministrator;
|
|
|
|
|
|
|
+export interface CustomerSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ firstName?: SortOrder | null;
|
|
|
|
|
+ lastName?: SortOrder | null;
|
|
|
|
|
+ phoneNumber?: SortOrder | null;
|
|
|
|
|
+ emailAddress?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateAdministratorVariables {
|
|
|
|
|
- input: UpdateAdministratorInput;
|
|
|
|
|
|
|
+export interface CustomerFilterParameter {
|
|
|
|
|
+ firstName?: StringOperators | null;
|
|
|
|
|
+ lastName?: StringOperators | null;
|
|
|
|
|
+ phoneNumber?: StringOperators | null;
|
|
|
|
|
+ emailAddress?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetRoles
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetRoles_roles_items_channels {
|
|
|
|
|
- __typename: "Channel";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- token: string;
|
|
|
|
|
|
|
+export interface FacetListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: FacetSortParameter | null;
|
|
|
|
|
+ filter?: FacetFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRoles_roles_items {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
- channels: GetRoles_roles_items_channels[];
|
|
|
|
|
|
|
+export interface FacetSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ name?: SortOrder | null;
|
|
|
|
|
+ code?: SortOrder | null;
|
|
|
|
|
+ searchable?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRoles_roles {
|
|
|
|
|
- __typename: "RoleList";
|
|
|
|
|
- items: GetRoles_roles_items[];
|
|
|
|
|
- totalItems: number;
|
|
|
|
|
|
|
+export interface FacetFilterParameter {
|
|
|
|
|
+ name?: StringOperators | null;
|
|
|
|
|
+ code?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
|
|
+ searchable?: BooleanOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRoles {
|
|
|
|
|
- roles: GetRoles_roles;
|
|
|
|
|
|
|
+export interface BooleanOperators {
|
|
|
|
|
+ eq?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRolesVariables {
|
|
|
|
|
- options?: RoleListOptions | null;
|
|
|
|
|
|
|
+export interface OrderListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: OrderSortParameter | null;
|
|
|
|
|
+ filter?: OrderFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetRole
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetRole_role_channels {
|
|
|
|
|
- __typename: "Channel";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- token: string;
|
|
|
|
|
|
|
+export interface OrderSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ code?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRole_role {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
- channels: GetRole_role_channels[];
|
|
|
|
|
|
|
+export interface OrderFilterParameter {
|
|
|
|
|
+ code?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRole {
|
|
|
|
|
- role: GetRole_role | null;
|
|
|
|
|
|
|
+export interface ProductListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: ProductSortParameter | null;
|
|
|
|
|
+ filter?: ProductFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetRoleVariables {
|
|
|
|
|
- id: string;
|
|
|
|
|
|
|
+export interface ProductSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ name?: SortOrder | null;
|
|
|
|
|
+ slug?: SortOrder | null;
|
|
|
|
|
+ description?: SortOrder | null;
|
|
|
|
|
+ image?: SortOrder | null;
|
|
|
|
|
+ infoUrl?: SortOrder | null;
|
|
|
|
|
+ downloadable?: SortOrder | null;
|
|
|
|
|
+ nickname?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateRole
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateRole_createRole_channels {
|
|
|
|
|
- __typename: "Channel";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- token: string;
|
|
|
|
|
|
|
+export interface ProductFilterParameter {
|
|
|
|
|
+ name?: StringOperators | null;
|
|
|
|
|
+ slug?: StringOperators | null;
|
|
|
|
|
+ description?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
|
|
+ infoUrl?: StringOperators | null;
|
|
|
|
|
+ downloadable?: BooleanOperators | null;
|
|
|
|
|
+ nickname?: StringOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateRole_createRole {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
- channels: CreateRole_createRole_channels[];
|
|
|
|
|
|
|
+export interface RoleListOptions {
|
|
|
|
|
+ take?: number | null;
|
|
|
|
|
+ skip?: number | null;
|
|
|
|
|
+ sort?: RoleSortParameter | null;
|
|
|
|
|
+ filter?: RoleFilterParameter | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateRole {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new Role
|
|
|
|
|
- */
|
|
|
|
|
- createRole: CreateRole_createRole;
|
|
|
|
|
|
|
+export interface RoleSortParameter {
|
|
|
|
|
+ id?: SortOrder | null;
|
|
|
|
|
+ createdAt?: SortOrder | null;
|
|
|
|
|
+ updatedAt?: SortOrder | null;
|
|
|
|
|
+ code?: SortOrder | null;
|
|
|
|
|
+ description?: SortOrder | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateRoleVariables {
|
|
|
|
|
- input: CreateRoleInput;
|
|
|
|
|
|
|
+export interface RoleFilterParameter {
|
|
|
|
|
+ code?: StringOperators | null;
|
|
|
|
|
+ description?: StringOperators | null;
|
|
|
|
|
+ createdAt?: DateOperators | null;
|
|
|
|
|
+ updatedAt?: DateOperators | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateRole
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateRole_updateRole_channels {
|
|
|
|
|
- __typename: "Channel";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- token: string;
|
|
|
|
|
|
|
+export interface CreateAdministratorInput {
|
|
|
|
|
+ firstName: string;
|
|
|
|
|
+ lastName: string;
|
|
|
|
|
+ emailAddress: string;
|
|
|
|
|
+ password: string;
|
|
|
|
|
+ roleIds: string[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateRole_updateRole {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
- channels: UpdateRole_updateRole_channels[];
|
|
|
|
|
|
|
+export interface UpdateAdministratorInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ firstName?: string | null;
|
|
|
|
|
+ lastName?: string | null;
|
|
|
|
|
+ emailAddress?: string | null;
|
|
|
|
|
+ password?: string | null;
|
|
|
|
|
+ roleIds?: string[] | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateRole {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update an existing new Role
|
|
|
|
|
- */
|
|
|
|
|
- updateRole: UpdateRole_updateRole;
|
|
|
|
|
|
|
+export interface CreateAssetInput {
|
|
|
|
|
+ file: Upload;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateRoleVariables {
|
|
|
|
|
- input: UpdateRoleInput;
|
|
|
|
|
|
|
+export interface CreateCustomerInput {
|
|
|
|
|
+ firstName: string;
|
|
|
|
|
+ lastName: string;
|
|
|
|
|
+ phoneNumber?: string | null;
|
|
|
|
|
+ emailAddress: string;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: AssignRoleToAdministrator
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface AssignRoleToAdministrator_assignRoleToAdministrator_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
|
|
+export interface CreateAddressInput {
|
|
|
|
|
+ fullName?: string | null;
|
|
|
|
|
+ company?: string | null;
|
|
|
|
|
+ streetLine1?: string | null;
|
|
|
|
|
+ streetLine2?: string | null;
|
|
|
|
|
+ city?: string | null;
|
|
|
|
|
+ province?: string | null;
|
|
|
|
|
+ postalCode?: string | null;
|
|
|
|
|
+ country?: string | null;
|
|
|
|
|
+ phoneNumber?: string | null;
|
|
|
|
|
+ defaultShippingAddress?: boolean | null;
|
|
|
|
|
+ defaultBillingAddress?: boolean | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AssignRoleToAdministrator_assignRoleToAdministrator_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: AssignRoleToAdministrator_assignRoleToAdministrator_user_roles[];
|
|
|
|
|
|
|
+export interface CreateFacetInput {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: FacetTranslationInput[];
|
|
|
|
|
+ values?: CreateFacetValueWithFacetInput[] | null;
|
|
|
|
|
+ customFields?: CreateFacetCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AssignRoleToAdministrator_assignRoleToAdministrator {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: AssignRoleToAdministrator_assignRoleToAdministrator_user;
|
|
|
|
|
|
|
+export interface FacetTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AssignRoleToAdministrator {
|
|
|
|
|
- /**
|
|
|
|
|
- * Assign a Role to an Administrator
|
|
|
|
|
- */
|
|
|
|
|
- assignRoleToAdministrator: AssignRoleToAdministrator_assignRoleToAdministrator;
|
|
|
|
|
|
|
+export interface CreateFacetValueWithFacetInput {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: FacetValueTranslationInput[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AssignRoleToAdministratorVariables {
|
|
|
|
|
- administratorId: string;
|
|
|
|
|
- roleId: string;
|
|
|
|
|
|
|
+export interface FacetValueTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: AttemptLogin
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface AttemptLogin_login_user {
|
|
|
|
|
- __typename: "CurrentUser";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- channelTokens: string[];
|
|
|
|
|
|
|
+export interface CreateFacetCustomFieldsInput {
|
|
|
|
|
+ searchable?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AttemptLogin_login {
|
|
|
|
|
- __typename: "LoginResult";
|
|
|
|
|
- user: AttemptLogin_login_user;
|
|
|
|
|
|
|
+export interface UpdateFacetInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ translations?: FacetTranslationInput[] | null;
|
|
|
|
|
+ customFields?: UpdateFacetCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AttemptLogin {
|
|
|
|
|
- login: AttemptLogin_login;
|
|
|
|
|
|
|
+export interface UpdateFacetCustomFieldsInput {
|
|
|
|
|
+ searchable?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AttemptLoginVariables {
|
|
|
|
|
- username: string;
|
|
|
|
|
- password: string;
|
|
|
|
|
- rememberMe: boolean;
|
|
|
|
|
|
|
+export interface CreateFacetValueInput {
|
|
|
|
|
+ facetId: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: FacetValueTranslationInput[];
|
|
|
|
|
+ customFields?: CreateFacetValueCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: LogOut
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface LogOut {
|
|
|
|
|
- logout: boolean;
|
|
|
|
|
|
|
+export interface CreateFacetValueCustomFieldsInput {
|
|
|
|
|
+ link?: string | null;
|
|
|
|
|
+ available?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetCurrentUser
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetCurrentUser_me {
|
|
|
|
|
- __typename: "CurrentUser";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- channelTokens: string[];
|
|
|
|
|
|
|
+export interface UpdateFacetValueInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ translations?: FacetValueTranslationInput[] | null;
|
|
|
|
|
+ customFields?: UpdateFacetValueCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetCurrentUser {
|
|
|
|
|
- me: GetCurrentUser_me | null;
|
|
|
|
|
|
|
+export interface UpdateFacetValueCustomFieldsInput {
|
|
|
|
|
+ link?: string | null;
|
|
|
|
|
+ available?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetServerConfig
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetServerConfig_config {
|
|
|
|
|
- __typename: "Config";
|
|
|
|
|
- customFields: any | null;
|
|
|
|
|
|
|
+export interface CreateProductOptionGroupInput {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: ProductOptionGroupTranslationInput[];
|
|
|
|
|
+ options: CreateProductOptionInput[];
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetServerConfig {
|
|
|
|
|
- config: GetServerConfig_config;
|
|
|
|
|
|
|
+export interface ProductOptionGroupTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateFacet
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateFacet_createFacet_translations {
|
|
|
|
|
- __typename: "FacetTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface CreateProductOptionInput {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ translations: ProductOptionGroupTranslationInput[];
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacet_createFacet_values_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface UpdateProductOptionGroupInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ translations?: ProductOptionGroupTranslationInput[] | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacet_createFacet_values {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: CreateFacet_createFacet_values_translations[];
|
|
|
|
|
|
|
+export interface CreateProductInput {
|
|
|
|
|
+ featuredAssetId?: string | null;
|
|
|
|
|
+ assetIds?: string[] | null;
|
|
|
|
|
+ translations: ProductTranslationInput[];
|
|
|
|
|
+ customFields?: CreateProductCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacet_createFacet {
|
|
|
|
|
- __typename: "Facet";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: CreateFacet_createFacet_translations[];
|
|
|
|
|
- values: CreateFacet_createFacet_values[];
|
|
|
|
|
|
|
+export interface ProductTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ slug?: string | null;
|
|
|
|
|
+ description?: string | null;
|
|
|
|
|
+ customFields?: ProductTranslationCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacet {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new Facet
|
|
|
|
|
- */
|
|
|
|
|
- createFacet: CreateFacet_createFacet;
|
|
|
|
|
|
|
+export interface ProductTranslationCustomFieldsInput {
|
|
|
|
|
+ nickname?: string | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacetVariables {
|
|
|
|
|
- input: CreateFacetInput;
|
|
|
|
|
|
|
+export interface CreateProductCustomFieldsInput {
|
|
|
|
|
+ infoUrl?: string | null;
|
|
|
|
|
+ downloadable?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateFacet
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacet_updateFacet_translations {
|
|
|
|
|
- __typename: "FacetTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface UpdateProductInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ featuredAssetId?: string | null;
|
|
|
|
|
+ assetIds?: string[] | null;
|
|
|
|
|
+ translations?: ProductTranslationInput[] | null;
|
|
|
|
|
+ customFields?: UpdateProductCustomFieldsInput | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateFacet_updateFacet_values_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface UpdateProductCustomFieldsInput {
|
|
|
|
|
+ infoUrl?: string | null;
|
|
|
|
|
+ downloadable?: boolean | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateFacet_updateFacet_values {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: UpdateFacet_updateFacet_values_translations[];
|
|
|
|
|
|
|
+export interface UpdateProductVariantInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ translations?: ProductVariantTranslationInput[] | null;
|
|
|
|
|
+ sku?: string | null;
|
|
|
|
|
+ price?: number | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateFacet_updateFacet {
|
|
|
|
|
- __typename: "Facet";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: UpdateFacet_updateFacet_translations[];
|
|
|
|
|
- values: UpdateFacet_updateFacet_values[];
|
|
|
|
|
|
|
+export interface ProductVariantTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateFacet {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update an existing Facet
|
|
|
|
|
- */
|
|
|
|
|
- updateFacet: UpdateFacet_updateFacet;
|
|
|
|
|
|
|
+export interface CreateRoleInput {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ permissions: Permission[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface UpdateFacetVariables {
|
|
|
|
|
- input: UpdateFacetInput;
|
|
|
|
|
|
|
+export interface UpdateRoleInput {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ description?: string | null;
|
|
|
|
|
+ permissions?: Permission[] | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateFacetValues
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateFacetValues_createFacetValues_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface CreateProductVariantInput {
|
|
|
|
|
+ translations: ProductVariantTranslationInput[];
|
|
|
|
|
+ sku: string;
|
|
|
|
|
+ price: number;
|
|
|
|
|
+ optionCodes?: string[] | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacetValues_createFacetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: CreateFacetValues_createFacetValues_translations[];
|
|
|
|
|
|
|
+export interface NumberOperators {
|
|
|
|
|
+ eq?: number | null;
|
|
|
|
|
+ lt?: number | null;
|
|
|
|
|
+ lte?: number | null;
|
|
|
|
|
+ gt?: number | null;
|
|
|
|
|
+ gte?: number | null;
|
|
|
|
|
+ between?: NumberRange | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacetValues {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create one or more FacetValues
|
|
|
|
|
- */
|
|
|
|
|
- createFacetValues: CreateFacetValues_createFacetValues[];
|
|
|
|
|
|
|
+export interface NumberRange {
|
|
|
|
|
+ start: number;
|
|
|
|
|
+ end: number;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacetValuesVariables {
|
|
|
|
|
- input: CreateFacetValueInput[];
|
|
|
|
|
|
|
+export interface ProductOptionTranslationInput {
|
|
|
|
|
+ id?: string | null;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateFacetValues
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValues_updateFacetValues_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface AdministratorsQueryArgs {
|
|
|
|
|
+ options?: AdministratorListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValues_updateFacetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: UpdateFacetValues_updateFacetValues_translations[];
|
|
|
|
|
|
|
+export interface AdministratorQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValues {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update one or more FacetValues
|
|
|
|
|
- */
|
|
|
|
|
- updateFacetValues: UpdateFacetValues_updateFacetValues[];
|
|
|
|
|
|
|
+export interface AssetsQueryArgs {
|
|
|
|
|
+ options?: AssetListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValuesVariables {
|
|
|
|
|
- input: UpdateFacetValueInput[];
|
|
|
|
|
|
|
+export interface AssetQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetFacetList
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetFacetList_facets_items_translations {
|
|
|
|
|
- __typename: "FacetTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface CustomersQueryArgs {
|
|
|
|
|
+ options?: CustomerListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetList_facets_items_values_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface CustomerQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetList_facets_items_values {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: GetFacetList_facets_items_values_translations[];
|
|
|
|
|
|
|
+export interface FacetsQueryArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ options?: FacetListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetList_facets_items {
|
|
|
|
|
- __typename: "Facet";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: GetFacetList_facets_items_translations[];
|
|
|
|
|
- values: GetFacetList_facets_items_values[];
|
|
|
|
|
|
|
+export interface FacetQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetList_facets {
|
|
|
|
|
- __typename: "FacetList";
|
|
|
|
|
- items: GetFacetList_facets_items[];
|
|
|
|
|
- totalItems: number;
|
|
|
|
|
|
|
+export interface OrderQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetList {
|
|
|
|
|
- facets: GetFacetList_facets;
|
|
|
|
|
|
|
+export interface OrdersQueryArgs {
|
|
|
|
|
+ options?: OrderListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetListVariables {
|
|
|
|
|
- options?: FacetListOptions | null;
|
|
|
|
|
- languageCode?: LanguageCode | null;
|
|
|
|
|
|
|
+export interface ProductOptionGroupsQueryArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ filterTerm?: string | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetFacetWithValues
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValues_facet_translations {
|
|
|
|
|
- __typename: "FacetTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface ProductOptionGroupQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValues_facet_values_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface ProductsQueryArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ options?: ProductListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValues_facet_values {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: GetFacetWithValues_facet_values_translations[];
|
|
|
|
|
|
|
+export interface ProductQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValues_facet {
|
|
|
|
|
- __typename: "Facet";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: GetFacetWithValues_facet_translations[];
|
|
|
|
|
- values: GetFacetWithValues_facet_values[];
|
|
|
|
|
|
|
+export interface RolesQueryArgs {
|
|
|
|
|
+ options?: RoleListOptions | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValues {
|
|
|
|
|
- facet: GetFacetWithValues_facet | null;
|
|
|
|
|
|
|
+export interface RoleQueryArgs {
|
|
|
|
|
+ id: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetFacetWithValuesVariables {
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode?: LanguageCode | null;
|
|
|
|
|
|
|
+export interface CreateAdministratorMutationArgs {
|
|
|
|
|
+ input: CreateAdministratorInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: RequestStarted
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface RequestStarted {
|
|
|
|
|
- requestStarted: number;
|
|
|
|
|
|
|
+export interface UpdateAdministratorMutationArgs {
|
|
|
|
|
+ input: UpdateAdministratorInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: RequestCompleted
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface RequestCompleted {
|
|
|
|
|
- requestCompleted: number;
|
|
|
|
|
|
|
+export interface AssignRoleToAdministratorMutationArgs {
|
|
|
|
|
+ administratorId: string;
|
|
|
|
|
+ roleId: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: SetAsLoggedIn
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface SetAsLoggedIn_setAsLoggedIn {
|
|
|
|
|
- __typename: "UserStatus";
|
|
|
|
|
- username: string;
|
|
|
|
|
- isLoggedIn: boolean;
|
|
|
|
|
- loginTime: string;
|
|
|
|
|
|
|
+export interface CreateAssetsMutationArgs {
|
|
|
|
|
+ input: CreateAssetInput[];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface SetAsLoggedIn {
|
|
|
|
|
- setAsLoggedIn: SetAsLoggedIn_setAsLoggedIn;
|
|
|
|
|
|
|
+export interface LoginMutationArgs {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ password: string;
|
|
|
|
|
+ rememberMe?: boolean | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface SetAsLoggedInVariables {
|
|
|
|
|
- username: string;
|
|
|
|
|
- loginTime: string;
|
|
|
|
|
|
|
+export interface CreateChannelMutationArgs {
|
|
|
|
|
+ code: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: SetAsLoggedOut
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface SetAsLoggedOut_setAsLoggedOut {
|
|
|
|
|
- __typename: "UserStatus";
|
|
|
|
|
- username: string;
|
|
|
|
|
- isLoggedIn: boolean;
|
|
|
|
|
- loginTime: string;
|
|
|
|
|
|
|
+export interface CreateCustomerMutationArgs {
|
|
|
|
|
+ input: CreateCustomerInput;
|
|
|
|
|
+ password?: string | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface SetAsLoggedOut {
|
|
|
|
|
- setAsLoggedOut: SetAsLoggedOut_setAsLoggedOut;
|
|
|
|
|
|
|
+export interface CreateCustomerAddressMutationArgs {
|
|
|
|
|
+ customerId: string;
|
|
|
|
|
+ input: CreateAddressInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: SetUiLanguage
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface SetUiLanguage {
|
|
|
|
|
- setUiLanguage: LanguageCode | null;
|
|
|
|
|
|
|
+export interface CreateFacetMutationArgs {
|
|
|
|
|
+ input: CreateFacetInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface SetUiLanguageVariables {
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
|
|
+export interface UpdateFacetMutationArgs {
|
|
|
|
|
+ input: UpdateFacetInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetNetworkStatus
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetNetworkStatus_networkStatus {
|
|
|
|
|
- __typename: "NetworkStatus";
|
|
|
|
|
- inFlightRequests: number;
|
|
|
|
|
|
|
+export interface CreateFacetValuesMutationArgs {
|
|
|
|
|
+ input: CreateFacetValueInput[];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetNetworkStatus {
|
|
|
|
|
- networkStatus: GetNetworkStatus_networkStatus;
|
|
|
|
|
|
|
+export interface UpdateFacetValuesMutationArgs {
|
|
|
|
|
+ input: UpdateFacetValueInput[];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetUserStatus
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetUserStatus_userStatus {
|
|
|
|
|
- __typename: "UserStatus";
|
|
|
|
|
- username: string;
|
|
|
|
|
- isLoggedIn: boolean;
|
|
|
|
|
- loginTime: string;
|
|
|
|
|
|
|
+export interface AddItemToOrderMutationArgs {
|
|
|
|
|
+ productVariantId: string;
|
|
|
|
|
+ quantity: number;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetUserStatus {
|
|
|
|
|
- userStatus: GetUserStatus_userStatus;
|
|
|
|
|
|
|
+export interface RemoveItemFromOrderMutationArgs {
|
|
|
|
|
+ orderItemId: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetUiState
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetUiState_uiState {
|
|
|
|
|
- __typename: "UiState";
|
|
|
|
|
- language: LanguageCode;
|
|
|
|
|
|
|
+export interface AdjustItemQuantityMutationArgs {
|
|
|
|
|
+ orderItemId: string;
|
|
|
|
|
+ quantity: number;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface GetUiState {
|
|
|
|
|
- uiState: GetUiState_uiState;
|
|
|
|
|
|
|
+export interface CreateProductOptionGroupMutationArgs {
|
|
|
|
|
+ input: CreateProductOptionGroupInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateProduct
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_featuredAsset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_assets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_translations {
|
|
|
|
|
- __typename: "ProductTranslation";
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_variants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_variants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_variants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct_variants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: UpdateProduct_updateProduct_variants_options[];
|
|
|
|
|
- facetValues: UpdateProduct_updateProduct_variants_facetValues[];
|
|
|
|
|
- translations: UpdateProduct_updateProduct_variants_translations[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct_updateProduct {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- featuredAsset: UpdateProduct_updateProduct_featuredAsset | null;
|
|
|
|
|
- assets: UpdateProduct_updateProduct_assets[];
|
|
|
|
|
- translations: UpdateProduct_updateProduct_translations[];
|
|
|
|
|
- optionGroups: UpdateProduct_updateProduct_optionGroups[];
|
|
|
|
|
- variants: UpdateProduct_updateProduct_variants[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProduct {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update an existing Product
|
|
|
|
|
- */
|
|
|
|
|
- updateProduct: UpdateProduct_updateProduct;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariables {
|
|
|
|
|
- input: UpdateProductInput;
|
|
|
|
|
|
|
+export interface UpdateProductOptionGroupMutationArgs {
|
|
|
|
|
+ input: UpdateProductOptionGroupInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateProduct
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_featuredAsset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_assets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_translations {
|
|
|
|
|
- __typename: "ProductTranslation";
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_variants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_variants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_variants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct_variants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: CreateProduct_createProduct_variants_options[];
|
|
|
|
|
- facetValues: CreateProduct_createProduct_variants_facetValues[];
|
|
|
|
|
- translations: CreateProduct_createProduct_variants_translations[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct_createProduct {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- featuredAsset: CreateProduct_createProduct_featuredAsset | null;
|
|
|
|
|
- assets: CreateProduct_createProduct_assets[];
|
|
|
|
|
- translations: CreateProduct_createProduct_translations[];
|
|
|
|
|
- optionGroups: CreateProduct_createProduct_optionGroups[];
|
|
|
|
|
- variants: CreateProduct_createProduct_variants[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProduct {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new Product
|
|
|
|
|
- */
|
|
|
|
|
- createProduct: CreateProduct_createProduct;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductVariables {
|
|
|
|
|
- input: CreateProductInput;
|
|
|
|
|
|
|
+export interface CreateProductMutationArgs {
|
|
|
|
|
+ input: CreateProductInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: GenerateProductVariants
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_featuredAsset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_assets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_translations {
|
|
|
|
|
- __typename: "ProductTranslation";
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_variants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_variants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_variants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct_variants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: GenerateProductVariants_generateVariantsForProduct_variants_options[];
|
|
|
|
|
- facetValues: GenerateProductVariants_generateVariantsForProduct_variants_facetValues[];
|
|
|
|
|
- translations: GenerateProductVariants_generateVariantsForProduct_variants_translations[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants_generateVariantsForProduct {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- featuredAsset: GenerateProductVariants_generateVariantsForProduct_featuredAsset | null;
|
|
|
|
|
- assets: GenerateProductVariants_generateVariantsForProduct_assets[];
|
|
|
|
|
- translations: GenerateProductVariants_generateVariantsForProduct_translations[];
|
|
|
|
|
- optionGroups: GenerateProductVariants_generateVariantsForProduct_optionGroups[];
|
|
|
|
|
- variants: GenerateProductVariants_generateVariantsForProduct_variants[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariants {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a set of ProductVariants based on the OptionGroups assigned to the given Product
|
|
|
|
|
- */
|
|
|
|
|
- generateVariantsForProduct: GenerateProductVariants_generateVariantsForProduct;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GenerateProductVariantsVariables {
|
|
|
|
|
- productId: string;
|
|
|
|
|
- defaultPrice?: number | null;
|
|
|
|
|
- defaultSku?: string | null;
|
|
|
|
|
|
|
+export interface UpdateProductMutationArgs {
|
|
|
|
|
+ input: UpdateProductInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: UpdateProductVariants
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariants_updateProductVariants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
|
|
+export interface AddOptionGroupToProductMutationArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariants_updateProductVariants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface RemoveOptionGroupFromProductMutationArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariants_updateProductVariants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface GenerateVariantsForProductMutationArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ defaultPrice?: number | null;
|
|
|
|
|
+ defaultSku?: string | null;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariants_updateProductVariants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: UpdateProductVariants_updateProductVariants_options[];
|
|
|
|
|
- facetValues: UpdateProductVariants_updateProductVariants_facetValues[];
|
|
|
|
|
- translations: UpdateProductVariants_updateProductVariants_translations[];
|
|
|
|
|
|
|
+export interface UpdateProductVariantsMutationArgs {
|
|
|
|
|
+ input: UpdateProductVariantInput[];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariants {
|
|
|
|
|
- /**
|
|
|
|
|
- * Update existing ProductVariants
|
|
|
|
|
- */
|
|
|
|
|
- updateProductVariants: (UpdateProductVariants_updateProductVariants | null)[];
|
|
|
|
|
|
|
+export interface ApplyFacetValuesToProductVariantsMutationArgs {
|
|
|
|
|
+ facetValueIds: string[];
|
|
|
|
|
+ productVariantIds: string[];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariantsVariables {
|
|
|
|
|
- input: UpdateProductVariantInput[];
|
|
|
|
|
|
|
+export interface CreateRoleMutationArgs {
|
|
|
|
|
+ input: CreateRoleInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateProductOptionGroup
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroup_createProductOptionGroup_translations {
|
|
|
|
|
- __typename: "ProductOptionGroupTranslation";
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface UpdateRoleMutationArgs {
|
|
|
|
|
+ input: UpdateRoleInput;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroup_createProductOptionGroup_options_translations {
|
|
|
|
|
- __typename: "ProductOptionTranslation";
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+export interface SetAsLoggedInMutationArgs {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ loginTime: string;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroup_createProductOptionGroup_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- translations: CreateProductOptionGroup_createProductOptionGroup_options_translations[];
|
|
|
|
|
|
|
+export interface SetUiLanguageMutationArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateProductOptionGroup_createProductOptionGroup {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: CreateProductOptionGroup_createProductOptionGroup_translations[];
|
|
|
|
|
- options: CreateProductOptionGroup_createProductOptionGroup_options[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroup {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new ProductOptionGroup
|
|
|
|
|
- */
|
|
|
|
|
- createProductOptionGroup: CreateProductOptionGroup_createProductOptionGroup;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroupVariables {
|
|
|
|
|
- input: CreateProductOptionGroupInput;
|
|
|
|
|
|
|
+export enum SortOrder {
|
|
|
|
|
+ ASC = 'ASC',
|
|
|
|
|
+ DESC = 'DESC',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: AddOptionGroupToProduct
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
|
|
+export enum Permission {
|
|
|
|
|
+ Authenticated = 'Authenticated',
|
|
|
|
|
+ SuperAdmin = 'SuperAdmin',
|
|
|
|
|
+ Owner = 'Owner',
|
|
|
|
|
+ CreateCatalog = 'CreateCatalog',
|
|
|
|
|
+ ReadCatalog = 'ReadCatalog',
|
|
|
|
|
+ UpdateCatalog = 'UpdateCatalog',
|
|
|
|
|
+ DeleteCatalog = 'DeleteCatalog',
|
|
|
|
|
+ CreateCustomer = 'CreateCustomer',
|
|
|
|
|
+ ReadCustomer = 'ReadCustomer',
|
|
|
|
|
+ UpdateCustomer = 'UpdateCustomer',
|
|
|
|
|
+ DeleteCustomer = 'DeleteCustomer',
|
|
|
|
|
+ CreateAdministrator = 'CreateAdministrator',
|
|
|
|
|
+ ReadAdministrator = 'ReadAdministrator',
|
|
|
|
|
+ UpdateAdministrator = 'UpdateAdministrator',
|
|
|
|
|
+ DeleteAdministrator = 'DeleteAdministrator',
|
|
|
|
|
+ CreateOrder = 'CreateOrder',
|
|
|
|
|
+ ReadOrder = 'ReadOrder',
|
|
|
|
|
+ UpdateOrder = 'UpdateOrder',
|
|
|
|
|
+ DeleteOrder = 'DeleteOrder',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- options: AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups_options[];
|
|
|
|
|
|
|
+export enum AssetType {
|
|
|
|
|
+ IMAGE = 'IMAGE',
|
|
|
|
|
+ VIDEO = 'VIDEO',
|
|
|
|
|
+ BINARY = 'BINARY',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AddOptionGroupToProduct_addOptionGroupToProduct {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- optionGroups: AddOptionGroupToProduct_addOptionGroupToProduct_optionGroups[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export enum LanguageCode {
|
|
|
|
|
+ aa = 'aa',
|
|
|
|
|
+ ab = 'ab',
|
|
|
|
|
+ af = 'af',
|
|
|
|
|
+ ak = 'ak',
|
|
|
|
|
+ sq = 'sq',
|
|
|
|
|
+ am = 'am',
|
|
|
|
|
+ ar = 'ar',
|
|
|
|
|
+ an = 'an',
|
|
|
|
|
+ hy = 'hy',
|
|
|
|
|
+ as = 'as',
|
|
|
|
|
+ av = 'av',
|
|
|
|
|
+ ae = 'ae',
|
|
|
|
|
+ ay = 'ay',
|
|
|
|
|
+ az = 'az',
|
|
|
|
|
+ ba = 'ba',
|
|
|
|
|
+ bm = 'bm',
|
|
|
|
|
+ eu = 'eu',
|
|
|
|
|
+ be = 'be',
|
|
|
|
|
+ bn = 'bn',
|
|
|
|
|
+ bh = 'bh',
|
|
|
|
|
+ bi = 'bi',
|
|
|
|
|
+ bs = 'bs',
|
|
|
|
|
+ br = 'br',
|
|
|
|
|
+ bg = 'bg',
|
|
|
|
|
+ my = 'my',
|
|
|
|
|
+ ca = 'ca',
|
|
|
|
|
+ ch = 'ch',
|
|
|
|
|
+ ce = 'ce',
|
|
|
|
|
+ zh = 'zh',
|
|
|
|
|
+ cu = 'cu',
|
|
|
|
|
+ cv = 'cv',
|
|
|
|
|
+ kw = 'kw',
|
|
|
|
|
+ co = 'co',
|
|
|
|
|
+ cr = 'cr',
|
|
|
|
|
+ cs = 'cs',
|
|
|
|
|
+ da = 'da',
|
|
|
|
|
+ dv = 'dv',
|
|
|
|
|
+ nl = 'nl',
|
|
|
|
|
+ dz = 'dz',
|
|
|
|
|
+ en = 'en',
|
|
|
|
|
+ eo = 'eo',
|
|
|
|
|
+ et = 'et',
|
|
|
|
|
+ ee = 'ee',
|
|
|
|
|
+ fo = 'fo',
|
|
|
|
|
+ fj = 'fj',
|
|
|
|
|
+ fi = 'fi',
|
|
|
|
|
+ fr = 'fr',
|
|
|
|
|
+ fy = 'fy',
|
|
|
|
|
+ ff = 'ff',
|
|
|
|
|
+ ka = 'ka',
|
|
|
|
|
+ de = 'de',
|
|
|
|
|
+ gd = 'gd',
|
|
|
|
|
+ ga = 'ga',
|
|
|
|
|
+ gl = 'gl',
|
|
|
|
|
+ gv = 'gv',
|
|
|
|
|
+ el = 'el',
|
|
|
|
|
+ gn = 'gn',
|
|
|
|
|
+ gu = 'gu',
|
|
|
|
|
+ ht = 'ht',
|
|
|
|
|
+ ha = 'ha',
|
|
|
|
|
+ he = 'he',
|
|
|
|
|
+ hz = 'hz',
|
|
|
|
|
+ hi = 'hi',
|
|
|
|
|
+ ho = 'ho',
|
|
|
|
|
+ hr = 'hr',
|
|
|
|
|
+ hu = 'hu',
|
|
|
|
|
+ ig = 'ig',
|
|
|
|
|
+ is = 'is',
|
|
|
|
|
+ io = 'io',
|
|
|
|
|
+ ii = 'ii',
|
|
|
|
|
+ iu = 'iu',
|
|
|
|
|
+ ie = 'ie',
|
|
|
|
|
+ ia = 'ia',
|
|
|
|
|
+ id = 'id',
|
|
|
|
|
+ ik = 'ik',
|
|
|
|
|
+ it = 'it',
|
|
|
|
|
+ jv = 'jv',
|
|
|
|
|
+ ja = 'ja',
|
|
|
|
|
+ kl = 'kl',
|
|
|
|
|
+ kn = 'kn',
|
|
|
|
|
+ ks = 'ks',
|
|
|
|
|
+ kr = 'kr',
|
|
|
|
|
+ kk = 'kk',
|
|
|
|
|
+ km = 'km',
|
|
|
|
|
+ ki = 'ki',
|
|
|
|
|
+ rw = 'rw',
|
|
|
|
|
+ ky = 'ky',
|
|
|
|
|
+ kv = 'kv',
|
|
|
|
|
+ kg = 'kg',
|
|
|
|
|
+ ko = 'ko',
|
|
|
|
|
+ kj = 'kj',
|
|
|
|
|
+ ku = 'ku',
|
|
|
|
|
+ lo = 'lo',
|
|
|
|
|
+ la = 'la',
|
|
|
|
|
+ lv = 'lv',
|
|
|
|
|
+ li = 'li',
|
|
|
|
|
+ ln = 'ln',
|
|
|
|
|
+ lt = 'lt',
|
|
|
|
|
+ lb = 'lb',
|
|
|
|
|
+ lu = 'lu',
|
|
|
|
|
+ lg = 'lg',
|
|
|
|
|
+ mk = 'mk',
|
|
|
|
|
+ mh = 'mh',
|
|
|
|
|
+ ml = 'ml',
|
|
|
|
|
+ mi = 'mi',
|
|
|
|
|
+ mr = 'mr',
|
|
|
|
|
+ ms = 'ms',
|
|
|
|
|
+ mg = 'mg',
|
|
|
|
|
+ mt = 'mt',
|
|
|
|
|
+ mn = 'mn',
|
|
|
|
|
+ na = 'na',
|
|
|
|
|
+ nv = 'nv',
|
|
|
|
|
+ nr = 'nr',
|
|
|
|
|
+ nd = 'nd',
|
|
|
|
|
+ ng = 'ng',
|
|
|
|
|
+ ne = 'ne',
|
|
|
|
|
+ nn = 'nn',
|
|
|
|
|
+ nb = 'nb',
|
|
|
|
|
+ no = 'no',
|
|
|
|
|
+ ny = 'ny',
|
|
|
|
|
+ oc = 'oc',
|
|
|
|
|
+ oj = 'oj',
|
|
|
|
|
+ or = 'or',
|
|
|
|
|
+ om = 'om',
|
|
|
|
|
+ os = 'os',
|
|
|
|
|
+ pa = 'pa',
|
|
|
|
|
+ fa = 'fa',
|
|
|
|
|
+ pi = 'pi',
|
|
|
|
|
+ pl = 'pl',
|
|
|
|
|
+ pt = 'pt',
|
|
|
|
|
+ ps = 'ps',
|
|
|
|
|
+ qu = 'qu',
|
|
|
|
|
+ rm = 'rm',
|
|
|
|
|
+ ro = 'ro',
|
|
|
|
|
+ rn = 'rn',
|
|
|
|
|
+ ru = 'ru',
|
|
|
|
|
+ sg = 'sg',
|
|
|
|
|
+ sa = 'sa',
|
|
|
|
|
+ si = 'si',
|
|
|
|
|
+ sk = 'sk',
|
|
|
|
|
+ sl = 'sl',
|
|
|
|
|
+ se = 'se',
|
|
|
|
|
+ sm = 'sm',
|
|
|
|
|
+ sn = 'sn',
|
|
|
|
|
+ sd = 'sd',
|
|
|
|
|
+ so = 'so',
|
|
|
|
|
+ st = 'st',
|
|
|
|
|
+ es = 'es',
|
|
|
|
|
+ sc = 'sc',
|
|
|
|
|
+ sr = 'sr',
|
|
|
|
|
+ ss = 'ss',
|
|
|
|
|
+ su = 'su',
|
|
|
|
|
+ sw = 'sw',
|
|
|
|
|
+ sv = 'sv',
|
|
|
|
|
+ ty = 'ty',
|
|
|
|
|
+ ta = 'ta',
|
|
|
|
|
+ tt = 'tt',
|
|
|
|
|
+ te = 'te',
|
|
|
|
|
+ tg = 'tg',
|
|
|
|
|
+ tl = 'tl',
|
|
|
|
|
+ th = 'th',
|
|
|
|
|
+ bo = 'bo',
|
|
|
|
|
+ ti = 'ti',
|
|
|
|
|
+ to = 'to',
|
|
|
|
|
+ tn = 'tn',
|
|
|
|
|
+ ts = 'ts',
|
|
|
|
|
+ tk = 'tk',
|
|
|
|
|
+ tr = 'tr',
|
|
|
|
|
+ tw = 'tw',
|
|
|
|
|
+ ug = 'ug',
|
|
|
|
|
+ uk = 'uk',
|
|
|
|
|
+ ur = 'ur',
|
|
|
|
|
+ uz = 'uz',
|
|
|
|
|
+ ve = 've',
|
|
|
|
|
+ vi = 'vi',
|
|
|
|
|
+ vo = 'vo',
|
|
|
|
|
+ cy = 'cy',
|
|
|
|
|
+ wa = 'wa',
|
|
|
|
|
+ wo = 'wo',
|
|
|
|
|
+ xh = 'xh',
|
|
|
|
|
+ yi = 'yi',
|
|
|
|
|
+ yo = 'yo',
|
|
|
|
|
+ za = 'za',
|
|
|
|
|
+ zu = 'zu',
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export type AdjustmentTarget = Order | OrderItem;
|
|
|
|
|
+
|
|
|
|
|
+export namespace QueryResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ administrators?: AdministratorsResolver<AdministratorList, any, Context>;
|
|
|
|
|
+ administrator?: AdministratorResolver<Administrator | null, any, Context>;
|
|
|
|
|
+ assets?: AssetsResolver<AssetList, any, Context>;
|
|
|
|
|
+ asset?: AssetResolver<Asset | null, any, Context>;
|
|
|
|
|
+ me?: MeResolver<CurrentUser | null, any, Context>;
|
|
|
|
|
+ config?: ConfigResolver<Config, any, Context>;
|
|
|
|
|
+ customers?: CustomersResolver<CustomerList, any, Context>;
|
|
|
|
|
+ customer?: CustomerResolver<Customer | null, any, Context>;
|
|
|
|
|
+ facets?: FacetsResolver<FacetList, any, Context>;
|
|
|
|
|
+ facet?: FacetResolver<Facet | null, any, Context>;
|
|
|
|
|
+ order?: OrderResolver<Order | null, any, Context>;
|
|
|
|
|
+ orders?: OrdersResolver<OrderList | null, any, Context>;
|
|
|
|
|
+ productOptionGroups?: ProductOptionGroupsResolver<ProductOptionGroup[], any, Context>;
|
|
|
|
|
+ productOptionGroup?: ProductOptionGroupResolver<ProductOptionGroup | null, any, Context>;
|
|
|
|
|
+ products?: ProductsResolver<ProductList, any, Context>;
|
|
|
|
|
+ product?: ProductResolver<Product | null, any, Context>;
|
|
|
|
|
+ roles?: RolesResolver<RoleList, any, Context>;
|
|
|
|
|
+ role?: RoleResolver<Role | null, any, Context>;
|
|
|
|
|
+ networkStatus?: NetworkStatusResolver<NetworkStatus, any, Context>;
|
|
|
|
|
+ userStatus?: UserStatusResolver<UserStatus, any, Context>;
|
|
|
|
|
+ uiState?: UiStateResolver<UiState, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AdministratorsResolver<R = AdministratorList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AdministratorsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AdministratorsArgs {
|
|
|
|
|
+ options?: AdministratorListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AdministratorResolver<R = Administrator | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AdministratorArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AdministratorArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AssetsResolver<R = AssetList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AssetsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AssetsArgs {
|
|
|
|
|
+ options?: AssetListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AssetArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AssetArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type MeResolver<R = CurrentUser | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ConfigResolver<R = Config, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CustomersResolver<R = CustomerList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CustomersArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CustomersArgs {
|
|
|
|
|
+ options?: CustomerListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CustomerArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CustomerArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type FacetsResolver<R = FacetList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ FacetsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface FacetsArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ options?: FacetListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type FacetResolver<R = Facet | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ FacetArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface FacetArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type OrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ OrderArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface OrderArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type OrdersResolver<R = OrderList | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ OrdersArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface OrdersArgs {
|
|
|
|
|
+ options?: OrderListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ProductOptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ ProductOptionGroupsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface ProductOptionGroupsArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ filterTerm?: string | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ProductOptionGroupResolver<
|
|
|
|
|
+ R = ProductOptionGroup | null,
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context, ProductOptionGroupArgs>;
|
|
|
|
|
+ export interface ProductOptionGroupArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ProductsResolver<R = ProductList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ ProductsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface ProductsArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ options?: ProductListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ProductResolver<R = Product | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ ProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface ProductArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type RolesResolver<R = RoleList, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ RolesArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface RolesArgs {
|
|
|
|
|
+ options?: RoleListOptions | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type RoleResolver<R = Role | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ RoleArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface RoleArgs {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type NetworkStatusResolver<R = NetworkStatus, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type UserStatusResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type UiStateResolver<R = UiState, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AdministratorListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Administrator[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Administrator[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AdministratorResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ firstName?: FirstNameResolver<string, any, Context>;
|
|
|
|
|
+ lastName?: LastNameResolver<string, any, Context>;
|
|
|
|
|
+ emailAddress?: EmailAddressResolver<string, any, Context>;
|
|
|
|
|
+ user?: UserResolver<User, 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 FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type UserResolver<R = User, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace UserResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ identifier?: IdentifierResolver<string, any, Context>;
|
|
|
|
|
+ passwordHash?: PasswordHashResolver<string, any, Context>;
|
|
|
|
|
+ roles?: RolesResolver<Role[], any, Context>;
|
|
|
|
|
+ lastLogin?: LastLoginResolver<string | null, any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type PasswordHashResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type RolesResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type LastLoginResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace RoleResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ description?: DescriptionResolver<string, any, Context>;
|
|
|
|
|
+ permissions?: PermissionsResolver<Permission[], any, Context>;
|
|
|
|
|
+ channels?: ChannelsResolver<Channel[], any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type PermissionsResolver<R = Permission[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type ChannelsResolver<R = Channel[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ChannelResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ token?: TokenResolver<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 CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TokenResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AssetListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Asset[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AssetResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ type?: TypeResolver<AssetType, any, Context>;
|
|
|
|
|
+ fileSize?: FileSizeResolver<number, any, Context>;
|
|
|
|
|
+ mimeType?: MimeTypeResolver<string, any, Context>;
|
|
|
|
|
+ source?: SourceResolver<string, any, Context>;
|
|
|
|
|
+ preview?: PreviewResolver<string, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type IdResolver<R = string, 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 = AssetType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type FileSizeResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type MimeTypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type SourceResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type PreviewResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CurrentUserResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ identifier?: IdentifierResolver<string, any, Context>;
|
|
|
|
|
+ channelTokens?: ChannelTokensResolver<string[], any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ChannelTokensResolver<R = string[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ConfigResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CustomerListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Customer[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Customer[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CustomerResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ firstName?: FirstNameResolver<string, any, Context>;
|
|
|
|
|
+ lastName?: LastNameResolver<string, any, Context>;
|
|
|
|
|
+ phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
|
|
|
|
|
+ emailAddress?: EmailAddressResolver<string, any, Context>;
|
|
|
|
|
+ addresses?: AddressesResolver<Address[] | null, any, Context>;
|
|
|
|
|
+ user?: UserResolver<User | null, any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type AddressesResolver<R = Address[] | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type UserResolver<R = User | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AddressResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ fullName?: FullNameResolver<string | null, any, Context>;
|
|
|
|
|
+ company?: CompanyResolver<string | null, any, Context>;
|
|
|
|
|
+ streetLine1?: StreetLine1Resolver<string | null, any, Context>;
|
|
|
|
|
+ streetLine2?: StreetLine2Resolver<string | null, any, Context>;
|
|
|
|
|
+ city?: CityResolver<string | null, any, Context>;
|
|
|
|
|
+ province?: ProvinceResolver<string | null, any, Context>;
|
|
|
|
|
+ postalCode?: PostalCodeResolver<string | null, any, Context>;
|
|
|
|
|
+ country?: CountryResolver<string | null, any, Context>;
|
|
|
|
|
+ phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
|
|
|
|
|
+ defaultShippingAddress?: DefaultShippingAddressResolver<boolean | null, any, Context>;
|
|
|
|
|
+ defaultBillingAddress?: DefaultBillingAddressResolver<boolean | null, any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type StreetLine1Resolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CountryResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type DefaultShippingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type DefaultBillingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Facet[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Facet[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ values?: ValuesResolver<FacetValue[], any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<FacetTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<FacetCustomFields | null, 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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type ValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TranslationsResolver<R = FacetTranslation[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = FacetCustomFields | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetValueResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<FacetValueTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<FacetValueCustomFields | null, 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 LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TranslationsResolver<R = FacetValueTranslation[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<
|
|
|
|
|
+ R = FacetValueCustomFields | null,
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetValueTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetValueCustomFieldsResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ link?: LinkResolver<string | null, any, Context>;
|
|
|
|
|
+ available?: AvailableResolver<boolean | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type LinkResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type AvailableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetCustomFieldsResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ searchable?: SearchableResolver<boolean | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type SearchableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace OrderResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ customer?: CustomerResolver<Customer, any, Context>;
|
|
|
|
|
+ items?: ItemsResolver<OrderItem[], any, Context>;
|
|
|
|
|
+ adjustments?: AdjustmentsResolver<Adjustment[], 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 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 ItemsResolver<R = OrderItem[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace OrderItemResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ productVariant?: ProductVariantResolver<ProductVariant, any, Context>;
|
|
|
|
|
+ unitPrice?: UnitPriceResolver<number, any, Context>;
|
|
|
|
|
+ quantity?: QuantityResolver<number, any, Context>;
|
|
|
|
|
+ adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
|
|
|
|
|
+ order?: OrderResolver<Order, 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 ProductVariantResolver<R = ProductVariant, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type UnitPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type QuantityResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type OrderResolver<R = Order, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductVariantResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ sku?: SkuResolver<string, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ price?: PriceResolver<number, any, Context>;
|
|
|
|
|
+ options?: OptionsResolver<ProductOption[], any, Context>;
|
|
|
|
|
+ facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<ProductVariantTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type SkuResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type PriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type TranslationsResolver<R = ProductVariantTranslation[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductOptionResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string | null, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string | null, any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<ProductOptionTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CodeResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type NameResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TranslationsResolver<R = ProductOptionTranslation[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductOptionTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductVariantTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace AdjustmentResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ type?: TypeResolver<string, any, Context>;
|
|
|
|
|
+ amount?: AmountResolver<number, any, Context>;
|
|
|
|
|
+ target?: TargetResolver<AdjustmentTarget, any, Context>;
|
|
|
|
|
+ source?: SourceResolver<AdjustmentSource, 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 TypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type AmountResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TargetResolver<R = AdjustmentTarget, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type SourceResolver<R = AdjustmentSource, 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<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>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Order[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductOptionGroupResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ code?: CodeResolver<string, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ options?: OptionsResolver<ProductOption[], any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<ProductOptionGroupTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<Json | null, 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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type TranslationsResolver<
|
|
|
|
|
+ R = ProductOptionGroupTranslation[],
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductOptionGroupTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Product[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Product[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ slug?: SlugResolver<string, any, Context>;
|
|
|
|
|
+ description?: DescriptionResolver<string, any, Context>;
|
|
|
|
|
+ featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
|
|
|
|
|
+ assets?: AssetsResolver<Asset[], any, Context>;
|
|
|
|
|
+ variants?: VariantsResolver<ProductVariant[], any, Context>;
|
|
|
|
|
+ optionGroups?: OptionGroupsResolver<ProductOptionGroup[], any, Context>;
|
|
|
|
|
+ translations?: TranslationsResolver<ProductTranslation[], any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<ProductCustomFields | null, 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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type AssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type VariantsResolver<R = ProductVariant[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type OptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type TranslationsResolver<R = ProductTranslation[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type CustomFieldsResolver<R = ProductCustomFields | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductTranslationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ id?: IdResolver<string, any, Context>;
|
|
|
|
|
+ createdAt?: CreatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
|
|
|
|
|
+ languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ name?: NameResolver<string, any, Context>;
|
|
|
|
|
+ slug?: SlugResolver<string, any, Context>;
|
|
|
|
|
+ description?: DescriptionResolver<string, any, Context>;
|
|
|
|
|
+ customFields?: CustomFieldsResolver<ProductTranslationCustomFields | null, 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 LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CustomFieldsResolver<
|
|
|
|
|
+ R = ProductTranslationCustomFields | null,
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductTranslationCustomFieldsResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ nickname?: NicknameResolver<string | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type NicknameResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductCustomFieldsResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ infoUrl?: InfoUrlResolver<string | null, any, Context>;
|
|
|
|
|
+ downloadable?: DownloadableResolver<boolean | null, any, Context>;
|
|
|
|
|
+ nickname?: NicknameResolver<string | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type InfoUrlResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type DownloadableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type NicknameResolver<R = string | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace RoleListResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ items?: ItemsResolver<Role[], any, Context>;
|
|
|
|
|
+ totalItems?: TotalItemsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ItemsResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace NetworkStatusResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ inFlightRequests?: InFlightRequestsResolver<number, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type InFlightRequestsResolver<R = number, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace UserStatusResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ username?: UsernameResolver<string, any, Context>;
|
|
|
|
|
+ isLoggedIn?: IsLoggedInResolver<boolean, any, Context>;
|
|
|
|
|
+ loginTime?: LoginTimeResolver<string, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UsernameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type IsLoggedInResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type LoginTimeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace UiStateResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ language?: LanguageResolver<LanguageCode, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type LanguageResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace MutationResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ createAdministrator?: CreateAdministratorResolver<Administrator, any, Context>;
|
|
|
|
|
+ updateAdministrator?: UpdateAdministratorResolver<Administrator, any, Context>;
|
|
|
|
|
+ assignRoleToAdministrator?: AssignRoleToAdministratorResolver<Administrator, any, Context>;
|
|
|
|
|
+ createAssets?: CreateAssetsResolver<Asset[], any, Context>;
|
|
|
|
|
+ login?: LoginResolver<LoginResult, any, Context>;
|
|
|
|
|
+ logout?: LogoutResolver<boolean, any, Context>;
|
|
|
|
|
+ createChannel?: CreateChannelResolver<Channel, any, Context>;
|
|
|
|
|
+ createCustomer?: CreateCustomerResolver<Customer, any, Context>;
|
|
|
|
|
+ createCustomerAddress?: CreateCustomerAddressResolver<Address, any, Context>;
|
|
|
|
|
+ createFacet?: CreateFacetResolver<Facet, any, Context>;
|
|
|
|
|
+ updateFacet?: UpdateFacetResolver<Facet, any, Context>;
|
|
|
|
|
+ createFacetValues?: CreateFacetValuesResolver<FacetValue[], any, Context>;
|
|
|
|
|
+ updateFacetValues?: UpdateFacetValuesResolver<FacetValue[], any, Context>;
|
|
|
|
|
+ addItemToOrder?: AddItemToOrderResolver<Order | null, any, Context>;
|
|
|
|
|
+ removeItemFromOrder?: RemoveItemFromOrderResolver<Order | null, any, Context>;
|
|
|
|
|
+ adjustItemQuantity?: AdjustItemQuantityResolver<Order | null, any, Context>;
|
|
|
|
|
+ createProductOptionGroup?: CreateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
|
|
|
|
|
+ updateProductOptionGroup?: UpdateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
|
|
|
|
|
+ createProduct?: CreateProductResolver<Product, any, Context>;
|
|
|
|
|
+ updateProduct?: UpdateProductResolver<Product, any, Context>;
|
|
|
|
|
+ addOptionGroupToProduct?: AddOptionGroupToProductResolver<Product, any, Context>;
|
|
|
|
|
+ removeOptionGroupFromProduct?: RemoveOptionGroupFromProductResolver<Product, any, Context>;
|
|
|
|
|
+ generateVariantsForProduct?: GenerateVariantsForProductResolver<Product, any, Context>;
|
|
|
|
|
+ updateProductVariants?: UpdateProductVariantsResolver<(ProductVariant | null)[], any, Context>;
|
|
|
|
|
+ applyFacetValuesToProductVariants?: ApplyFacetValuesToProductVariantsResolver<
|
|
|
|
|
+ ProductVariant[],
|
|
|
|
|
+ any,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ createRole?: CreateRoleResolver<Role, any, Context>;
|
|
|
|
|
+ updateRole?: UpdateRoleResolver<Role, any, Context>;
|
|
|
|
|
+ requestStarted?: RequestStartedResolver<number, any, Context>;
|
|
|
|
|
+ requestCompleted?: RequestCompletedResolver<number, any, Context>;
|
|
|
|
|
+ setAsLoggedIn?: SetAsLoggedInResolver<UserStatus, any, Context>;
|
|
|
|
|
+ setAsLoggedOut?: SetAsLoggedOutResolver<UserStatus, any, Context>;
|
|
|
|
|
+ setUiLanguage?: SetUiLanguageResolver<LanguageCode | null, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateAdministratorArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateAdministratorArgs {
|
|
|
|
|
+ input: CreateAdministratorInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ UpdateAdministratorArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface UpdateAdministratorArgs {
|
|
|
|
|
+ input: UpdateAdministratorInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AssignRoleToAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AssignRoleToAdministratorArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AssignRoleToAdministratorArgs {
|
|
|
|
|
+ administratorId: string;
|
|
|
|
|
+ roleId: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateAssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateAssetsArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateAssetsArgs {
|
|
|
|
|
+ input: CreateAssetInput[];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type LoginResolver<R = LoginResult, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ LoginArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface LoginArgs {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ password: string;
|
|
|
|
|
+ rememberMe?: boolean | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type LogoutResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+ export type CreateChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateChannelArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateChannelArgs {
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateCustomerResolver<R = Customer, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateCustomerArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateCustomerArgs {
|
|
|
|
|
+ input: CreateCustomerInput;
|
|
|
|
|
+ password?: string | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateCustomerAddressResolver<R = Address, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateCustomerAddressArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateCustomerAddressArgs {
|
|
|
|
|
+ customerId: string;
|
|
|
|
|
+ input: CreateAddressInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateFacetArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateFacetArgs {
|
|
|
|
|
+ input: CreateFacetInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ UpdateFacetArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface UpdateFacetArgs {
|
|
|
|
|
+ input: UpdateFacetInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateFacetValuesArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateFacetValuesArgs {
|
|
|
|
|
+ input: CreateFacetValueInput[];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ UpdateFacetValuesArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface UpdateFacetValuesArgs {
|
|
|
|
|
+ input: UpdateFacetValueInput[];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AddItemToOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AddItemToOrderArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AddItemToOrderArgs {
|
|
|
|
|
+ productVariantId: string;
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type RemoveItemFromOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ RemoveItemFromOrderArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface RemoveItemFromOrderArgs {
|
|
|
|
|
+ orderItemId: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AdjustItemQuantityResolver<R = Order | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AdjustItemQuantityArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AdjustItemQuantityArgs {
|
|
|
|
|
+ orderItemId: string;
|
|
|
|
|
+ quantity: number;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateProductOptionGroupResolver<
|
|
|
|
|
+ R = ProductOptionGroup,
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context, CreateProductOptionGroupArgs>;
|
|
|
|
|
+ export interface CreateProductOptionGroupArgs {
|
|
|
|
|
+ input: CreateProductOptionGroupInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateProductOptionGroupResolver<
|
|
|
|
|
+ R = ProductOptionGroup,
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context, UpdateProductOptionGroupArgs>;
|
|
|
|
|
+ export interface UpdateProductOptionGroupArgs {
|
|
|
|
|
+ input: UpdateProductOptionGroupInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateProductArgs {
|
|
|
|
|
+ input: CreateProductInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ UpdateProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface UpdateProductArgs {
|
|
|
|
|
+ input: UpdateProductInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type AddOptionGroupToProductResolver<R = Product, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ AddOptionGroupToProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface AddOptionGroupToProductArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type RemoveOptionGroupFromProductResolver<R = Product, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ RemoveOptionGroupFromProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface RemoveOptionGroupFromProductArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type GenerateVariantsForProductResolver<R = Product, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ GenerateVariantsForProductArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface GenerateVariantsForProductArgs {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ defaultPrice?: number | null;
|
|
|
|
|
+ defaultSku?: string | null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateProductVariantsResolver<
|
|
|
|
|
+ R = (ProductVariant | null)[],
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context, UpdateProductVariantsArgs>;
|
|
|
|
|
+ export interface UpdateProductVariantsArgs {
|
|
|
|
|
+ input: UpdateProductVariantInput[];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type ApplyFacetValuesToProductVariantsResolver<
|
|
|
|
|
+ R = ProductVariant[],
|
|
|
|
|
+ Parent = any,
|
|
|
|
|
+ Context = any
|
|
|
|
|
+ > = Resolver<R, Parent, Context, ApplyFacetValuesToProductVariantsArgs>;
|
|
|
|
|
+ export interface ApplyFacetValuesToProductVariantsArgs {
|
|
|
|
|
+ facetValueIds: string[];
|
|
|
|
|
+ productVariantIds: string[];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ CreateRoleArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface CreateRoleArgs {
|
|
|
|
|
+ input: CreateRoleInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UpdateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ UpdateRoleArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface UpdateRoleArgs {
|
|
|
|
|
+ input: UpdateRoleInput;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type RequestStartedResolver<R = number, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type RequestCompletedResolver<R = number, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type SetAsLoggedInResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ SetAsLoggedInArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface SetAsLoggedInArgs {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type SetAsLoggedOutResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context
|
|
|
|
|
+ >;
|
|
|
|
|
+ export type SetUiLanguageResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
|
|
|
|
|
+ R,
|
|
|
|
|
+ Parent,
|
|
|
|
|
+ Context,
|
|
|
|
|
+ SetUiLanguageArgs
|
|
|
|
|
+ >;
|
|
|
|
|
+ export interface SetUiLanguageArgs {
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace LoginResultResolvers {
|
|
|
|
|
+ export interface Resolvers<Context = any> {
|
|
|
|
|
+ user?: UserResolver<CurrentUser, any, Context>;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ export type UserResolver<R = CurrentUser, Parent = any, Context = any> = Resolver<R, Parent, Context>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetAdministrators {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ options?: AdministratorListOptions | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ administrators: Administrators;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Administrators = {
|
|
|
|
|
+ __typename?: 'AdministratorList';
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Items = Administrator.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetAdministrator {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ administrator?: Administrator | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Administrator = Administrator.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CreateAdministrator {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateAdministratorInput;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createAdministrator: CreateAdministrator;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateAdministrator = Administrator.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace UpdateAdministrator {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateAdministratorInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AddOptionGroupToProduct {
|
|
|
|
|
- /**
|
|
|
|
|
- * Add an OptionGroup to a Product
|
|
|
|
|
- */
|
|
|
|
|
- addOptionGroupToProduct: AddOptionGroupToProduct_addOptionGroupToProduct;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateAdministrator: UpdateAdministrator;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AddOptionGroupToProductVariables {
|
|
|
|
|
- productId: string;
|
|
|
|
|
- optionGroupId: string;
|
|
|
|
|
|
|
+ export type UpdateAdministrator = Administrator.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace GetRoles {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ options?: RoleListOptions | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: RemoveOptionGroupFromProduct
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ roles: Roles;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Roles = {
|
|
|
|
|
+ __typename?: 'RoleList';
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- options: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups_options[];
|
|
|
|
|
|
|
+ export type Items = Role.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface RemoveOptionGroupFromProduct_removeOptionGroupFromProduct {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- optionGroups: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct_optionGroups[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace GetRole {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface RemoveOptionGroupFromProduct {
|
|
|
|
|
- /**
|
|
|
|
|
- * Remove an OptionGroup from a Product
|
|
|
|
|
- */
|
|
|
|
|
- removeOptionGroupFromProduct: RemoveOptionGroupFromProduct_removeOptionGroupFromProduct;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ role?: Role | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface RemoveOptionGroupFromProductVariables {
|
|
|
|
|
- productId: string;
|
|
|
|
|
- optionGroupId: string;
|
|
|
|
|
|
|
+ export type Role = Role.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace CreateRole {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateRoleInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: ApplyFacetValuesToProductVariants
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createRole: CreateRole;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
|
|
+ export type CreateRole = Role.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace UpdateRole {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateRoleInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateRole: UpdateRole;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_options[];
|
|
|
|
|
- facetValues: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_facetValues[];
|
|
|
|
|
- translations: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants_translations[];
|
|
|
|
|
|
|
+ export type UpdateRole = Role.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariants {
|
|
|
|
|
- /**
|
|
|
|
|
- * Applies a FacetValue to the given ProductVariants
|
|
|
|
|
- */
|
|
|
|
|
- applyFacetValuesToProductVariants: ApplyFacetValuesToProductVariants_applyFacetValuesToProductVariants[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace AssignRoleToAdministrator {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ administratorId: string;
|
|
|
|
|
+ roleId: string;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ApplyFacetValuesToProductVariantsVariables {
|
|
|
|
|
- facetValueIds: string[];
|
|
|
|
|
- productVariantIds: string[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ assignRoleToAdministrator: AssignRoleToAdministrator;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetProductWithVariants
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_featuredAsset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_assets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_translations {
|
|
|
|
|
- __typename: "ProductTranslation";
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_variants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_variants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_variants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product_variants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: GetProductWithVariants_product_variants_options[];
|
|
|
|
|
- facetValues: GetProductWithVariants_product_variants_facetValues[];
|
|
|
|
|
- translations: GetProductWithVariants_product_variants_translations[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants_product {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- featuredAsset: GetProductWithVariants_product_featuredAsset | null;
|
|
|
|
|
- assets: GetProductWithVariants_product_assets[];
|
|
|
|
|
- translations: GetProductWithVariants_product_translations[];
|
|
|
|
|
- optionGroups: GetProductWithVariants_product_optionGroups[];
|
|
|
|
|
- variants: GetProductWithVariants_product_variants[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariants {
|
|
|
|
|
- product: GetProductWithVariants_product | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface GetProductWithVariantsVariables {
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode?: LanguageCode | null;
|
|
|
|
|
|
|
+ export type AssignRoleToAdministrator = Administrator.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace AttemptLogin {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ password: string;
|
|
|
|
|
+ rememberMe: boolean;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetProductList
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ login: Login;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetProductList_products_items {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Login = {
|
|
|
|
|
+ __typename?: 'LoginResult';
|
|
|
|
|
+ user: User;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetProductList_products {
|
|
|
|
|
- __typename: "ProductList";
|
|
|
|
|
- items: GetProductList_products_items[];
|
|
|
|
|
- totalItems: number;
|
|
|
|
|
|
|
+ export type User = CurrentUser.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetProductList {
|
|
|
|
|
- products: GetProductList_products;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace LogOut {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface GetProductListVariables {
|
|
|
|
|
- options?: ProductListOptions | null;
|
|
|
|
|
- languageCode?: LanguageCode | null;
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ logout: boolean;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace GetCurrentUser {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetProductOptionGroups
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ me?: Me | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetProductOptionGroups_productOptionGroups_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
|
|
+ export type Me = CurrentUser.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetProductOptionGroups_productOptionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- options: GetProductOptionGroups_productOptionGroups_options[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace GetServerConfig {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface GetProductOptionGroups {
|
|
|
|
|
- productOptionGroups: GetProductOptionGroups_productOptionGroups[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ config: Config;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetProductOptionGroupsVariables {
|
|
|
|
|
- filterTerm?: string | null;
|
|
|
|
|
- languageCode?: LanguageCode | null;
|
|
|
|
|
|
|
+ export type Config = {
|
|
|
|
|
+ __typename?: 'Config';
|
|
|
|
|
+ customFields?: Json | null;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace CreateFacet {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateFacetInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL query operation: GetAssetList
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createFacet: CreateFacet;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetAssetList_assets_items {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
|
|
+ export type CreateFacet = FacetWithValues.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface GetAssetList_assets {
|
|
|
|
|
- __typename: "AssetList";
|
|
|
|
|
- items: GetAssetList_assets_items[];
|
|
|
|
|
- totalItems: number;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace UpdateFacet {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateFacetInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetAssetList {
|
|
|
|
|
- assets: GetAssetList_assets;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateFacet: UpdateFacet;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface GetAssetListVariables {
|
|
|
|
|
- options?: AssetListOptions | null;
|
|
|
|
|
|
|
+ export type UpdateFacet = FacetWithValues.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL mutation operation: CreateAssets
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+export namespace CreateFacetValues {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateFacetValueInput[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateAssets_createAssets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateAssets {
|
|
|
|
|
- /**
|
|
|
|
|
- * Create a new Asset
|
|
|
|
|
- */
|
|
|
|
|
- createAssets: CreateAssets_createAssets[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createFacetValues: CreateFacetValues[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateAssetsVariables {
|
|
|
|
|
- input: CreateAssetInput[];
|
|
|
|
|
|
|
+ export type CreateFacetValues = FacetValue.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: Administrator
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface Administrator_user_roles {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace UpdateFacetValues {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateFacetValueInput[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface Administrator_user {
|
|
|
|
|
- __typename: "User";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- lastLogin: string | null;
|
|
|
|
|
- roles: Administrator_user_roles[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateFacetValues: UpdateFacetValues[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface Administrator {
|
|
|
|
|
- __typename: "Administrator";
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- user: Administrator_user;
|
|
|
|
|
|
|
+ export type UpdateFacetValues = FacetValue.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace GetFacetList {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ options?: FacetListOptions | null;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: Role
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ facets: Facets;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface Role_channels {
|
|
|
|
|
- __typename: "Channel";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- token: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Facets = {
|
|
|
|
|
+ __typename?: 'FacetList';
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface Role {
|
|
|
|
|
- __typename: "Role";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
- channels: Role_channels[];
|
|
|
|
|
|
|
+ export type Items = FacetWithValues.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace GetFacetWithValues {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: CurrentUser
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ facet?: Facet | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CurrentUser {
|
|
|
|
|
- __typename: "CurrentUser";
|
|
|
|
|
- id: string;
|
|
|
|
|
- identifier: string;
|
|
|
|
|
- channelTokens: string[];
|
|
|
|
|
|
|
+ export type Facet = FacetWithValues.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: FacetValue
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetValue_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace RequestStarted {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface FacetValue {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: FacetValue_translations[];
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ requestStarted: number;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: FacetWithValues
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+export namespace RequestCompleted {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface FacetWithValues_translations {
|
|
|
|
|
- __typename: "FacetTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ requestCompleted: number;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface FacetWithValues_values_translations {
|
|
|
|
|
- __typename: "FacetValueTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace SetAsLoggedIn {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface FacetWithValues_values {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: FacetWithValues_values_translations[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ setAsLoggedIn: SetAsLoggedIn;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface FacetWithValues {
|
|
|
|
|
- __typename: "Facet";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: FacetWithValues_translations[];
|
|
|
|
|
- values: FacetWithValues_values[];
|
|
|
|
|
|
|
+ export type SetAsLoggedIn = {
|
|
|
|
|
+ __typename?: 'UserStatus';
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ isLoggedIn: boolean;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace SetAsLoggedOut {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: Asset
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ setAsLoggedOut: SetAsLoggedOut;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface Asset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
|
|
+ export type SetAsLoggedOut = {
|
|
|
|
|
+ __typename?: 'UserStatus';
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ isLoggedIn: boolean;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: ProductVariant
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductVariant_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace SetUiLanguage {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ProductVariant_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ setUiLanguage?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface ProductVariant_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace GetNetworkStatus {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface ProductVariant {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: ProductVariant_options[];
|
|
|
|
|
- facetValues: ProductVariant_facetValues[];
|
|
|
|
|
- translations: ProductVariant_translations[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ networkStatus: NetworkStatus;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
-
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: ProductWithVariants
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_featuredAsset {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_assets {
|
|
|
|
|
- __typename: "Asset";
|
|
|
|
|
- id: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- fileSize: number;
|
|
|
|
|
- mimeType: string;
|
|
|
|
|
- type: AssetType;
|
|
|
|
|
- preview: string;
|
|
|
|
|
- source: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_translations {
|
|
|
|
|
- __typename: "ProductTranslation";
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_optionGroups {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_variants_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_variants_facetValues {
|
|
|
|
|
- __typename: "FacetValue";
|
|
|
|
|
- id: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_variants_translations {
|
|
|
|
|
- __typename: "ProductVariantTranslation";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants_variants {
|
|
|
|
|
- __typename: "ProductVariant";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- price: number;
|
|
|
|
|
- sku: string;
|
|
|
|
|
- options: ProductWithVariants_variants_options[];
|
|
|
|
|
- facetValues: ProductWithVariants_variants_facetValues[];
|
|
|
|
|
- translations: ProductWithVariants_variants_translations[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductWithVariants {
|
|
|
|
|
- __typename: "Product";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name: string;
|
|
|
|
|
- slug: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- featuredAsset: ProductWithVariants_featuredAsset | null;
|
|
|
|
|
- assets: ProductWithVariants_assets[];
|
|
|
|
|
- translations: ProductWithVariants_translations[];
|
|
|
|
|
- optionGroups: ProductWithVariants_optionGroups[];
|
|
|
|
|
- variants: ProductWithVariants_variants[];
|
|
|
|
|
|
|
+ export type NetworkStatus = {
|
|
|
|
|
+ __typename?: 'NetworkStatus';
|
|
|
|
|
+ inFlightRequests: number;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace GetUserStatus {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-// ====================================================
|
|
|
|
|
-// GraphQL fragment: ProductOptionGroup
|
|
|
|
|
-// ====================================================
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ userStatus: UserStatus;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ProductOptionGroup_translations {
|
|
|
|
|
- __typename: "ProductOptionGroupTranslation";
|
|
|
|
|
- name: string;
|
|
|
|
|
|
|
+ export type UserStatus = {
|
|
|
|
|
+ __typename?: 'UserStatus';
|
|
|
|
|
+ username: string;
|
|
|
|
|
+ isLoggedIn: boolean;
|
|
|
|
|
+ loginTime: string;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface ProductOptionGroup_options_translations {
|
|
|
|
|
- __typename: "ProductOptionTranslation";
|
|
|
|
|
- name: string;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace GetUiState {
|
|
|
|
|
+ export type Variables = {};
|
|
|
|
|
|
|
|
-export interface ProductOptionGroup_options {
|
|
|
|
|
- __typename: "ProductOption";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode | null;
|
|
|
|
|
- name: string | null;
|
|
|
|
|
- code: string | null;
|
|
|
|
|
- translations: ProductOptionGroup_options_translations[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ uiState: UiState;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface ProductOptionGroup {
|
|
|
|
|
- __typename: "ProductOptionGroup";
|
|
|
|
|
- id: string;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- code: string;
|
|
|
|
|
- name: string;
|
|
|
|
|
- translations: ProductOptionGroup_translations[];
|
|
|
|
|
- options: ProductOptionGroup_options[];
|
|
|
|
|
|
|
+ export type UiState = {
|
|
|
|
|
+ __typename?: 'UiState';
|
|
|
|
|
+ language: LanguageCode;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* tslint:disable */
|
|
|
|
|
-// This file was automatically generated and should not be edited.
|
|
|
|
|
|
|
+export namespace UpdateProduct {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateProductInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-//==============================================================
|
|
|
|
|
-// START Enums and Input Objects
|
|
|
|
|
-//==============================================================
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateProduct: UpdateProduct;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export enum AssetType {
|
|
|
|
|
- BINARY = "BINARY",
|
|
|
|
|
- IMAGE = "IMAGE",
|
|
|
|
|
- VIDEO = "VIDEO",
|
|
|
|
|
|
|
+ export type UpdateProduct = ProductWithVariants.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * ISO 639-1 language code
|
|
|
|
|
- */
|
|
|
|
|
-export enum LanguageCode {
|
|
|
|
|
- aa = "aa",
|
|
|
|
|
- ab = "ab",
|
|
|
|
|
- ae = "ae",
|
|
|
|
|
- af = "af",
|
|
|
|
|
- ak = "ak",
|
|
|
|
|
- am = "am",
|
|
|
|
|
- an = "an",
|
|
|
|
|
- ar = "ar",
|
|
|
|
|
- as = "as",
|
|
|
|
|
- av = "av",
|
|
|
|
|
- ay = "ay",
|
|
|
|
|
- az = "az",
|
|
|
|
|
- ba = "ba",
|
|
|
|
|
- be = "be",
|
|
|
|
|
- bg = "bg",
|
|
|
|
|
- bh = "bh",
|
|
|
|
|
- bi = "bi",
|
|
|
|
|
- bm = "bm",
|
|
|
|
|
- bn = "bn",
|
|
|
|
|
- bo = "bo",
|
|
|
|
|
- br = "br",
|
|
|
|
|
- bs = "bs",
|
|
|
|
|
- ca = "ca",
|
|
|
|
|
- ce = "ce",
|
|
|
|
|
- ch = "ch",
|
|
|
|
|
- co = "co",
|
|
|
|
|
- cr = "cr",
|
|
|
|
|
- cs = "cs",
|
|
|
|
|
- cu = "cu",
|
|
|
|
|
- cv = "cv",
|
|
|
|
|
- cy = "cy",
|
|
|
|
|
- da = "da",
|
|
|
|
|
- de = "de",
|
|
|
|
|
- dv = "dv",
|
|
|
|
|
- dz = "dz",
|
|
|
|
|
- ee = "ee",
|
|
|
|
|
- el = "el",
|
|
|
|
|
- en = "en",
|
|
|
|
|
- eo = "eo",
|
|
|
|
|
- es = "es",
|
|
|
|
|
- et = "et",
|
|
|
|
|
- eu = "eu",
|
|
|
|
|
- fa = "fa",
|
|
|
|
|
- ff = "ff",
|
|
|
|
|
- fi = "fi",
|
|
|
|
|
- fj = "fj",
|
|
|
|
|
- fo = "fo",
|
|
|
|
|
- fr = "fr",
|
|
|
|
|
- fy = "fy",
|
|
|
|
|
- ga = "ga",
|
|
|
|
|
- gd = "gd",
|
|
|
|
|
- gl = "gl",
|
|
|
|
|
- gn = "gn",
|
|
|
|
|
- gu = "gu",
|
|
|
|
|
- gv = "gv",
|
|
|
|
|
- ha = "ha",
|
|
|
|
|
- he = "he",
|
|
|
|
|
- hi = "hi",
|
|
|
|
|
- ho = "ho",
|
|
|
|
|
- hr = "hr",
|
|
|
|
|
- ht = "ht",
|
|
|
|
|
- hu = "hu",
|
|
|
|
|
- hy = "hy",
|
|
|
|
|
- hz = "hz",
|
|
|
|
|
- ia = "ia",
|
|
|
|
|
- id = "id",
|
|
|
|
|
- ie = "ie",
|
|
|
|
|
- ig = "ig",
|
|
|
|
|
- ii = "ii",
|
|
|
|
|
- ik = "ik",
|
|
|
|
|
- io = "io",
|
|
|
|
|
- is = "is",
|
|
|
|
|
- it = "it",
|
|
|
|
|
- iu = "iu",
|
|
|
|
|
- ja = "ja",
|
|
|
|
|
- jv = "jv",
|
|
|
|
|
- ka = "ka",
|
|
|
|
|
- kg = "kg",
|
|
|
|
|
- ki = "ki",
|
|
|
|
|
- kj = "kj",
|
|
|
|
|
- kk = "kk",
|
|
|
|
|
- kl = "kl",
|
|
|
|
|
- km = "km",
|
|
|
|
|
- kn = "kn",
|
|
|
|
|
- ko = "ko",
|
|
|
|
|
- kr = "kr",
|
|
|
|
|
- ks = "ks",
|
|
|
|
|
- ku = "ku",
|
|
|
|
|
- kv = "kv",
|
|
|
|
|
- kw = "kw",
|
|
|
|
|
- ky = "ky",
|
|
|
|
|
- la = "la",
|
|
|
|
|
- lb = "lb",
|
|
|
|
|
- lg = "lg",
|
|
|
|
|
- li = "li",
|
|
|
|
|
- ln = "ln",
|
|
|
|
|
- lo = "lo",
|
|
|
|
|
- lt = "lt",
|
|
|
|
|
- lu = "lu",
|
|
|
|
|
- lv = "lv",
|
|
|
|
|
- mg = "mg",
|
|
|
|
|
- mh = "mh",
|
|
|
|
|
- mi = "mi",
|
|
|
|
|
- mk = "mk",
|
|
|
|
|
- ml = "ml",
|
|
|
|
|
- mn = "mn",
|
|
|
|
|
- mr = "mr",
|
|
|
|
|
- ms = "ms",
|
|
|
|
|
- mt = "mt",
|
|
|
|
|
- my = "my",
|
|
|
|
|
- na = "na",
|
|
|
|
|
- nb = "nb",
|
|
|
|
|
- nd = "nd",
|
|
|
|
|
- ne = "ne",
|
|
|
|
|
- ng = "ng",
|
|
|
|
|
- nl = "nl",
|
|
|
|
|
- nn = "nn",
|
|
|
|
|
- no = "no",
|
|
|
|
|
- nr = "nr",
|
|
|
|
|
- nv = "nv",
|
|
|
|
|
- ny = "ny",
|
|
|
|
|
- oc = "oc",
|
|
|
|
|
- oj = "oj",
|
|
|
|
|
- om = "om",
|
|
|
|
|
- or = "or",
|
|
|
|
|
- os = "os",
|
|
|
|
|
- pa = "pa",
|
|
|
|
|
- pi = "pi",
|
|
|
|
|
- pl = "pl",
|
|
|
|
|
- ps = "ps",
|
|
|
|
|
- pt = "pt",
|
|
|
|
|
- qu = "qu",
|
|
|
|
|
- rm = "rm",
|
|
|
|
|
- rn = "rn",
|
|
|
|
|
- ro = "ro",
|
|
|
|
|
- ru = "ru",
|
|
|
|
|
- rw = "rw",
|
|
|
|
|
- sa = "sa",
|
|
|
|
|
- sc = "sc",
|
|
|
|
|
- sd = "sd",
|
|
|
|
|
- se = "se",
|
|
|
|
|
- sg = "sg",
|
|
|
|
|
- si = "si",
|
|
|
|
|
- sk = "sk",
|
|
|
|
|
- sl = "sl",
|
|
|
|
|
- sm = "sm",
|
|
|
|
|
- sn = "sn",
|
|
|
|
|
- so = "so",
|
|
|
|
|
- sq = "sq",
|
|
|
|
|
- sr = "sr",
|
|
|
|
|
- ss = "ss",
|
|
|
|
|
- st = "st",
|
|
|
|
|
- su = "su",
|
|
|
|
|
- sv = "sv",
|
|
|
|
|
- sw = "sw",
|
|
|
|
|
- ta = "ta",
|
|
|
|
|
- te = "te",
|
|
|
|
|
- tg = "tg",
|
|
|
|
|
- th = "th",
|
|
|
|
|
- ti = "ti",
|
|
|
|
|
- tk = "tk",
|
|
|
|
|
- tl = "tl",
|
|
|
|
|
- tn = "tn",
|
|
|
|
|
- to = "to",
|
|
|
|
|
- tr = "tr",
|
|
|
|
|
- ts = "ts",
|
|
|
|
|
- tt = "tt",
|
|
|
|
|
- tw = "tw",
|
|
|
|
|
- ty = "ty",
|
|
|
|
|
- ug = "ug",
|
|
|
|
|
- uk = "uk",
|
|
|
|
|
- ur = "ur",
|
|
|
|
|
- uz = "uz",
|
|
|
|
|
- ve = "ve",
|
|
|
|
|
- vi = "vi",
|
|
|
|
|
- vo = "vo",
|
|
|
|
|
- wa = "wa",
|
|
|
|
|
- wo = "wo",
|
|
|
|
|
- xh = "xh",
|
|
|
|
|
- yi = "yi",
|
|
|
|
|
- yo = "yo",
|
|
|
|
|
- za = "za",
|
|
|
|
|
- zh = "zh",
|
|
|
|
|
- zu = "zu",
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * Permissions for administrators and customers
|
|
|
|
|
- */
|
|
|
|
|
-export enum Permission {
|
|
|
|
|
- Authenticated = "Authenticated",
|
|
|
|
|
- CreateAdministrator = "CreateAdministrator",
|
|
|
|
|
- CreateCatalog = "CreateCatalog",
|
|
|
|
|
- CreateCustomer = "CreateCustomer",
|
|
|
|
|
- CreateOrder = "CreateOrder",
|
|
|
|
|
- DeleteAdministrator = "DeleteAdministrator",
|
|
|
|
|
- DeleteCatalog = "DeleteCatalog",
|
|
|
|
|
- DeleteCustomer = "DeleteCustomer",
|
|
|
|
|
- DeleteOrder = "DeleteOrder",
|
|
|
|
|
- Owner = "Owner",
|
|
|
|
|
- ReadAdministrator = "ReadAdministrator",
|
|
|
|
|
- ReadCatalog = "ReadCatalog",
|
|
|
|
|
- ReadCustomer = "ReadCustomer",
|
|
|
|
|
- ReadOrder = "ReadOrder",
|
|
|
|
|
- SuperAdmin = "SuperAdmin",
|
|
|
|
|
- UpdateAdministrator = "UpdateAdministrator",
|
|
|
|
|
- UpdateCatalog = "UpdateCatalog",
|
|
|
|
|
- UpdateCustomer = "UpdateCustomer",
|
|
|
|
|
- UpdateOrder = "UpdateOrder",
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace CreateProduct {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateProductInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export enum SortOrder {
|
|
|
|
|
- ASC = "ASC",
|
|
|
|
|
- DESC = "DESC",
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createProduct: CreateProduct;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AdministratorFilterParameter {
|
|
|
|
|
- firstName?: StringOperators | null;
|
|
|
|
|
- lastName?: StringOperators | null;
|
|
|
|
|
- emailAddress?: StringOperators | null;
|
|
|
|
|
- createdAt?: DateOperators | null;
|
|
|
|
|
- updatedAt?: DateOperators | null;
|
|
|
|
|
|
|
+ export type CreateProduct = ProductWithVariants.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AdministratorListOptions {
|
|
|
|
|
- take?: number | null;
|
|
|
|
|
- skip?: number | null;
|
|
|
|
|
- sort?: AdministratorSortParameter | null;
|
|
|
|
|
- filter?: AdministratorFilterParameter | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace GenerateProductVariants {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ defaultPrice?: number | null;
|
|
|
|
|
+ defaultSku?: string | null;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AdministratorSortParameter {
|
|
|
|
|
- id?: SortOrder | null;
|
|
|
|
|
- createdAt?: SortOrder | null;
|
|
|
|
|
- updatedAt?: SortOrder | null;
|
|
|
|
|
- firstName?: SortOrder | null;
|
|
|
|
|
- lastName?: SortOrder | null;
|
|
|
|
|
- emailAddress?: SortOrder | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ generateVariantsForProduct: GenerateVariantsForProduct;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AssetFilterParameter {
|
|
|
|
|
- name?: StringOperators | null;
|
|
|
|
|
- description?: StringOperators | null;
|
|
|
|
|
- type?: StringOperators | null;
|
|
|
|
|
- createdAt?: DateOperators | null;
|
|
|
|
|
- updatedAt?: DateOperators | null;
|
|
|
|
|
|
|
+ export type GenerateVariantsForProduct = ProductWithVariants.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface AssetListOptions {
|
|
|
|
|
- take?: number | null;
|
|
|
|
|
- skip?: number | null;
|
|
|
|
|
- sort?: AssetSortParameter | null;
|
|
|
|
|
- filter?: AssetFilterParameter | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace UpdateProductVariants {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: UpdateProductVariantInput[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface AssetSortParameter {
|
|
|
|
|
- id?: SortOrder | null;
|
|
|
|
|
- createdAt?: SortOrder | null;
|
|
|
|
|
- updatedAt?: SortOrder | null;
|
|
|
|
|
- name?: SortOrder | null;
|
|
|
|
|
- description?: SortOrder | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ updateProductVariants: (UpdateProductVariants | null)[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface BooleanOperators {
|
|
|
|
|
- eq?: boolean | null;
|
|
|
|
|
|
|
+ export type UpdateProductVariants = ProductVariant.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateAdministratorInput {
|
|
|
|
|
- firstName: string;
|
|
|
|
|
- lastName: string;
|
|
|
|
|
- emailAddress: string;
|
|
|
|
|
- password: string;
|
|
|
|
|
- roleIds: string[];
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace CreateProductOptionGroup {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateProductOptionGroupInput;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateAssetInput {
|
|
|
|
|
- file: any;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createProductOptionGroup: CreateProductOptionGroup;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateFacetCustomFieldsInput {
|
|
|
|
|
- searchable?: boolean | null;
|
|
|
|
|
|
|
+ export type CreateProductOptionGroup = ProductOptionGroup.Fragment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export interface CreateFacetInput {
|
|
|
|
|
- code: string;
|
|
|
|
|
- translations: FacetTranslationInput[];
|
|
|
|
|
- values?: CreateFacetValueWithFacetInput[] | null;
|
|
|
|
|
- customFields?: CreateFacetCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+export namespace AddOptionGroupToProduct {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateFacetValueCustomFieldsInput {
|
|
|
|
|
- link?: string | null;
|
|
|
|
|
- available?: boolean | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ addOptionGroupToProduct: AddOptionGroupToProduct;
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateFacetValueInput {
|
|
|
|
|
- facetId: string;
|
|
|
|
|
- code: string;
|
|
|
|
|
- translations: FacetValueTranslationInput[];
|
|
|
|
|
- customFields?: CreateFacetValueCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ export type AddOptionGroupToProduct = {
|
|
|
|
|
+ __typename?: 'Product';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ optionGroups: OptionGroups[];
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-export interface CreateFacetValueWithFacetInput {
|
|
|
|
|
- code: string;
|
|
|
|
|
- translations: FacetValueTranslationInput[];
|
|
|
|
|
|
|
+ export type OptionGroups = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroup';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ options: Options[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Options = {
|
|
|
|
|
+ __typename?: 'ProductOption';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace RemoveOptionGroupFromProduct {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ productId: string;
|
|
|
|
|
+ optionGroupId: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ removeOptionGroupFromProduct: RemoveOptionGroupFromProduct;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type RemoveOptionGroupFromProduct = {
|
|
|
|
|
+ __typename?: 'Product';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ optionGroups: OptionGroups[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type OptionGroups = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroup';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ options: Options[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Options = {
|
|
|
|
|
+ __typename?: 'ProductOption';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ApplyFacetValuesToProductVariants {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ facetValueIds: string[];
|
|
|
|
|
+ productVariantIds: string[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ applyFacetValuesToProductVariants: ApplyFacetValuesToProductVariants[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type ApplyFacetValuesToProductVariants = ProductVariant.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetProductWithVariants {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ product?: Product | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Product = ProductWithVariants.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetProductList {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ options?: ProductListOptions | null;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ products: Products;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Products = {
|
|
|
|
|
+ __typename?: 'ProductList';
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Items = {
|
|
|
|
|
+ __typename?: 'Product';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ slug: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetProductOptionGroups {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ filterTerm?: string | null;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ productOptionGroups: ProductOptionGroups[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type ProductOptionGroups = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroup';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ options: Options[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Options = {
|
|
|
|
|
+ __typename?: 'ProductOption';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace GetAssetList {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ options?: AssetListOptions | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Query = {
|
|
|
|
|
+ __typename?: 'Query';
|
|
|
|
|
+ assets: Assets;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Assets = {
|
|
|
|
|
+ __typename?: 'AssetList';
|
|
|
|
|
+ items: Items[];
|
|
|
|
|
+ totalItems: number;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Items = Asset.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CreateAssets {
|
|
|
|
|
+ export type Variables = {
|
|
|
|
|
+ input: CreateAssetInput[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Mutation = {
|
|
|
|
|
+ __typename?: 'Mutation';
|
|
|
|
|
+ createAssets: CreateAssets[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type CreateAssets = Asset.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace Administrator {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'Administrator';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ firstName: string;
|
|
|
|
|
+ lastName: string;
|
|
|
|
|
+ emailAddress: string;
|
|
|
|
|
+ user: User;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type User = {
|
|
|
|
|
+ __typename?: 'User';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ identifier: string;
|
|
|
|
|
+ lastLogin?: string | null;
|
|
|
|
|
+ roles: Roles[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Roles = {
|
|
|
|
|
+ __typename?: 'Role';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ permissions: Permission[];
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace Role {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'Role';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ permissions: Permission[];
|
|
|
|
|
+ channels: Channels[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Channels = {
|
|
|
|
|
+ __typename?: 'Channel';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ token: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace CurrentUser {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'CurrentUser';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ identifier: string;
|
|
|
|
|
+ channelTokens: string[];
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetValue {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'FacetValue';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ translations: Translations[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Translations = {
|
|
|
|
|
+ __typename?: 'FacetValueTranslation';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace FacetWithValues {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'Facet';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ translations: Translations[];
|
|
|
|
|
+ values: Values[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Translations = {
|
|
|
|
|
+ __typename?: 'FacetTranslation';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Values = FacetValue.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace Asset {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'Asset';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ fileSize: number;
|
|
|
|
|
+ mimeType: string;
|
|
|
|
|
+ type: AssetType;
|
|
|
|
|
+ preview: string;
|
|
|
|
|
+ source: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductVariant {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'ProductVariant';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ price: number;
|
|
|
|
|
+ sku: string;
|
|
|
|
|
+ options: Options[];
|
|
|
|
|
+ facetValues: FacetValues[];
|
|
|
|
|
+ translations: Translations[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Options = {
|
|
|
|
|
+ __typename?: 'ProductOption';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type FacetValues = {
|
|
|
|
|
+ __typename?: 'FacetValue';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Translations = {
|
|
|
|
|
+ __typename?: 'ProductVariantTranslation';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductWithVariants {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'Product';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ slug: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ featuredAsset?: FeaturedAsset | null;
|
|
|
|
|
+ assets: Assets[];
|
|
|
|
|
+ translations: Translations[];
|
|
|
|
|
+ optionGroups: OptionGroups[];
|
|
|
|
|
+ variants: Variants[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type FeaturedAsset = Asset.Fragment;
|
|
|
|
|
+
|
|
|
|
|
+ export type Assets = Asset.Fragment;
|
|
|
|
|
+
|
|
|
|
|
+ export type Translations = {
|
|
|
|
|
+ __typename?: 'ProductTranslation';
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ slug: string;
|
|
|
|
|
+ description: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type OptionGroups = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroup';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Variants = ProductVariant.Fragment;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export namespace ProductOptionGroup {
|
|
|
|
|
+ export type Fragment = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroup';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode: LanguageCode;
|
|
|
|
|
+ code: string;
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ translations: Translations[];
|
|
|
|
|
+ options: Options[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Translations = {
|
|
|
|
|
+ __typename?: 'ProductOptionGroupTranslation';
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type Options = {
|
|
|
|
|
+ __typename?: 'ProductOption';
|
|
|
|
|
+ id: string;
|
|
|
|
|
+ languageCode?: LanguageCode | null;
|
|
|
|
|
+ name?: string | null;
|
|
|
|
|
+ code?: string | null;
|
|
|
|
|
+ translations: _Translations[];
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ export type _Translations = {
|
|
|
|
|
+ __typename?: 'ProductOptionTranslation';
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-export interface CreateProductCustomFieldsInput {
|
|
|
|
|
- infoUrl?: string | null;
|
|
|
|
|
- downloadable?: boolean | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductInput {
|
|
|
|
|
- featuredAssetId?: string | null;
|
|
|
|
|
- assetIds?: string[] | null;
|
|
|
|
|
- translations: ProductTranslationInput[];
|
|
|
|
|
- customFields?: CreateProductCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionGroupInput {
|
|
|
|
|
- code: string;
|
|
|
|
|
- translations: ProductOptionGroupTranslationInput[];
|
|
|
|
|
- options: CreateProductOptionInput[];
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateProductOptionInput {
|
|
|
|
|
- code: string;
|
|
|
|
|
- translations: ProductOptionGroupTranslationInput[];
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface CreateRoleInput {
|
|
|
|
|
- code: string;
|
|
|
|
|
- description: string;
|
|
|
|
|
- permissions: Permission[];
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface DateOperators {
|
|
|
|
|
- eq?: any | null;
|
|
|
|
|
- before?: any | null;
|
|
|
|
|
- after?: any | null;
|
|
|
|
|
- between?: DateRange | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface DateRange {
|
|
|
|
|
- start: any;
|
|
|
|
|
- end: any;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetFilterParameter {
|
|
|
|
|
- name?: StringOperators | null;
|
|
|
|
|
- code?: StringOperators | null;
|
|
|
|
|
- createdAt?: DateOperators | null;
|
|
|
|
|
- updatedAt?: DateOperators | null;
|
|
|
|
|
- searchable?: BooleanOperators | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetListOptions {
|
|
|
|
|
- take?: number | null;
|
|
|
|
|
- skip?: number | null;
|
|
|
|
|
- sort?: FacetSortParameter | null;
|
|
|
|
|
- filter?: FacetFilterParameter | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetSortParameter {
|
|
|
|
|
- id?: SortOrder | null;
|
|
|
|
|
- createdAt?: SortOrder | null;
|
|
|
|
|
- updatedAt?: SortOrder | null;
|
|
|
|
|
- name?: SortOrder | null;
|
|
|
|
|
- code?: SortOrder | null;
|
|
|
|
|
- searchable?: SortOrder | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetTranslationInput {
|
|
|
|
|
- id?: string | null;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name?: string | null;
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface FacetValueTranslationInput {
|
|
|
|
|
- id?: string | null;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name?: string | null;
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductFilterParameter {
|
|
|
|
|
- name?: StringOperators | null;
|
|
|
|
|
- slug?: StringOperators | null;
|
|
|
|
|
- description?: StringOperators | null;
|
|
|
|
|
- createdAt?: DateOperators | null;
|
|
|
|
|
- updatedAt?: DateOperators | null;
|
|
|
|
|
- infoUrl?: StringOperators | null;
|
|
|
|
|
- downloadable?: BooleanOperators | null;
|
|
|
|
|
- nickname?: StringOperators | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductListOptions {
|
|
|
|
|
- take?: number | null;
|
|
|
|
|
- skip?: number | null;
|
|
|
|
|
- sort?: ProductSortParameter | null;
|
|
|
|
|
- filter?: ProductFilterParameter | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductOptionGroupTranslationInput {
|
|
|
|
|
- id?: string | null;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name?: string | null;
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductSortParameter {
|
|
|
|
|
- id?: SortOrder | null;
|
|
|
|
|
- createdAt?: SortOrder | null;
|
|
|
|
|
- updatedAt?: SortOrder | null;
|
|
|
|
|
- name?: SortOrder | null;
|
|
|
|
|
- slug?: SortOrder | null;
|
|
|
|
|
- description?: SortOrder | null;
|
|
|
|
|
- image?: SortOrder | null;
|
|
|
|
|
- infoUrl?: SortOrder | null;
|
|
|
|
|
- downloadable?: SortOrder | null;
|
|
|
|
|
- nickname?: SortOrder | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductTranslationCustomFieldsInput {
|
|
|
|
|
- nickname?: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductTranslationInput {
|
|
|
|
|
- id?: string | null;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name?: string | null;
|
|
|
|
|
- slug?: string | null;
|
|
|
|
|
- description?: string | null;
|
|
|
|
|
- customFields?: ProductTranslationCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface ProductVariantTranslationInput {
|
|
|
|
|
- id?: string | null;
|
|
|
|
|
- languageCode: LanguageCode;
|
|
|
|
|
- name?: string | null;
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface RoleFilterParameter {
|
|
|
|
|
- code?: StringOperators | null;
|
|
|
|
|
- description?: StringOperators | null;
|
|
|
|
|
- createdAt?: DateOperators | null;
|
|
|
|
|
- updatedAt?: DateOperators | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface RoleListOptions {
|
|
|
|
|
- take?: number | null;
|
|
|
|
|
- skip?: number | null;
|
|
|
|
|
- sort?: RoleSortParameter | null;
|
|
|
|
|
- filter?: RoleFilterParameter | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface RoleSortParameter {
|
|
|
|
|
- id?: SortOrder | null;
|
|
|
|
|
- createdAt?: SortOrder | null;
|
|
|
|
|
- updatedAt?: SortOrder | null;
|
|
|
|
|
- code?: SortOrder | null;
|
|
|
|
|
- description?: SortOrder | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface StringOperators {
|
|
|
|
|
- eq?: string | null;
|
|
|
|
|
- contains?: string | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateAdministratorInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- firstName?: string | null;
|
|
|
|
|
- lastName?: string | null;
|
|
|
|
|
- emailAddress?: string | null;
|
|
|
|
|
- password?: string | null;
|
|
|
|
|
- roleIds?: string[] | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetCustomFieldsInput {
|
|
|
|
|
- searchable?: boolean | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- code?: string | null;
|
|
|
|
|
- translations?: FacetTranslationInput[] | null;
|
|
|
|
|
- customFields?: UpdateFacetCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValueCustomFieldsInput {
|
|
|
|
|
- link?: string | null;
|
|
|
|
|
- available?: boolean | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateFacetValueInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- code?: string | null;
|
|
|
|
|
- translations?: FacetValueTranslationInput[] | null;
|
|
|
|
|
- customFields?: UpdateFacetValueCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProductCustomFieldsInput {
|
|
|
|
|
- infoUrl?: string | null;
|
|
|
|
|
- downloadable?: boolean | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProductInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- featuredAssetId?: string | null;
|
|
|
|
|
- assetIds?: string[] | null;
|
|
|
|
|
- translations?: ProductTranslationInput[] | null;
|
|
|
|
|
- customFields?: UpdateProductCustomFieldsInput | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateProductVariantInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- translations?: ProductVariantTranslationInput[] | null;
|
|
|
|
|
- sku?: string | null;
|
|
|
|
|
- price?: number | null;
|
|
|
|
|
- customFields?: any | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export interface UpdateRoleInput {
|
|
|
|
|
- id: string;
|
|
|
|
|
- code?: string | null;
|
|
|
|
|
- description?: string | null;
|
|
|
|
|
- permissions?: Permission[] | null;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-//==============================================================
|
|
|
|
|
-// END Enums and Input Objects
|
|
|
|
|
-//==============================================================
|
|
|