diff --git a/src/plugins/types/pluginConfiguration.ts b/src/plugins/types/pluginConfiguration.ts new file mode 100644 index 000000000..2ca376f07 --- /dev/null +++ b/src/plugins/types/pluginConfiguration.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +// This file was automatically generated and should not be edited. + +import { ConfigurationTypeFieldEnum } from "./../../types/globalTypes"; + +// ==================================================== +// GraphQL query operation: pluginConfiguration +// ==================================================== + +export interface pluginConfiguration_pluginConfiguration_configuration { + __typename: "ConfigurationItem"; + name: string; + type: ConfigurationTypeFieldEnum | null; + value: string; + helpText: string | null; + label: string | null; +} + +export interface pluginConfiguration_pluginConfiguration { + __typename: "PluginConfiguration"; + id: string; + name: string; + description: string; + active: boolean; + configuration: (pluginConfiguration_pluginConfiguration_configuration | null)[] | null; +} + +export interface pluginConfiguration { + pluginConfiguration: pluginConfiguration_pluginConfiguration | null; +} + +export interface pluginConfigurationVariables { + id: string; +} diff --git a/src/plugins/types/pluginConfigurationUpdate.ts b/src/plugins/types/pluginConfigurationUpdate.ts new file mode 100644 index 000000000..0d3e0beec --- /dev/null +++ b/src/plugins/types/pluginConfigurationUpdate.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +// This file was automatically generated and should not be edited. + +import { PluginConfigurationUpdateInput, ConfigurationTypeFieldEnum } from "./../../types/globalTypes"; + +// ==================================================== +// GraphQL mutation operation: pluginConfigurationUpdate +// ==================================================== + +export interface pluginConfigurationUpdate_pluginConfigurationUpdate_errors { + __typename: "Error"; + field: string | null; + message: string | null; +} + +export interface pluginConfigurationUpdate_pluginConfigurationUpdate_pluginConfiguration_configuration { + __typename: "ConfigurationItem"; + name: string; + type: ConfigurationTypeFieldEnum | null; + value: string; + helpText: string | null; + label: string | null; +} + +export interface pluginConfigurationUpdate_pluginConfigurationUpdate_pluginConfiguration { + __typename: "PluginConfiguration"; + id: string; + name: string; + description: string; + active: boolean; + configuration: (pluginConfigurationUpdate_pluginConfigurationUpdate_pluginConfiguration_configuration | null)[] | null; +} + +export interface pluginConfigurationUpdate_pluginConfigurationUpdate { + __typename: "PluginConfigurationUpdate"; + errors: pluginConfigurationUpdate_pluginConfigurationUpdate_errors[] | null; + pluginConfiguration: pluginConfigurationUpdate_pluginConfigurationUpdate_pluginConfiguration | null; +} + +export interface pluginConfigurationUpdate { + pluginConfigurationUpdate: pluginConfigurationUpdate_pluginConfigurationUpdate | null; +} + +export interface pluginConfigurationUpdateVariables { + id: string; + input: PluginConfigurationUpdateInput; +} diff --git a/src/plugins/types/pluginsDetailsFragment.ts b/src/plugins/types/pluginsDetailsFragment.ts new file mode 100644 index 000000000..3a925ef75 --- /dev/null +++ b/src/plugins/types/pluginsDetailsFragment.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +// This file was automatically generated and should not be edited. + +import { ConfigurationTypeFieldEnum } from "./../../types/globalTypes"; + +// ==================================================== +// GraphQL fragment: pluginsDetailsFragment +// ==================================================== + +export interface pluginsDetailsFragment_configuration { + __typename: "ConfigurationItem"; + name: string; + type: ConfigurationTypeFieldEnum | null; + value: string; + helpText: string | null; + label: string | null; +} + +export interface pluginsDetailsFragment { + __typename: "PluginConfiguration"; + id: string; + name: string; + description: string; + active: boolean; + configuration: (pluginsDetailsFragment_configuration | null)[] | null; +} diff --git a/src/types/globalTypes.ts b/src/types/globalTypes.ts index ee1d14bb7..35cf5faaf 100644 --- a/src/types/globalTypes.ts +++ b/src/types/globalTypes.ts @@ -33,6 +33,11 @@ export enum AuthorizationKeyType { GOOGLE_OAUTH2 = "GOOGLE_OAUTH2", } +export enum ConfigurationTypeFieldEnum { + BOOLEAN = "BOOLEAN", + STRING = "STRING", +} + export enum DiscountValueTypeEnum { FIXED = "FIXED", PERCENTAGE = "PERCENTAGE", @@ -340,6 +345,11 @@ export interface CollectionInput { publicationDate?: any | null; } +export interface ConfigurationItemInput { + name: string; + value: string; +} + export interface CustomerInput { defaultBillingAddress?: AddressInput | null; defaultShippingAddress?: AddressInput | null; @@ -466,6 +476,11 @@ export interface PageTranslationInput { contentJson?: any | null; } +export interface PluginConfigurationUpdateInput { + active?: boolean | null; + configuration?: (ConfigurationItemInput | null)[] | null; +} + export interface PriceRangeInput { gte?: number | null; lte?: number | null;