generate schema

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-08 22:33:20 +03:00
parent 8b100c18b7
commit d0ff2907cb
3 changed files with 337 additions and 20 deletions

View File

@@ -75,6 +75,48 @@ type CategoryRelationResponseCollection {
nodes: [Category!]! nodes: [Category!]!
} }
type ComponentCardsAdvantage {
color: ComponentSharedColor
description: String
icon: ComponentSharedIcon
id: ID!
title: String
}
input ComponentCardsAdvantageFiltersInput {
and: [ComponentCardsAdvantageFiltersInput]
color: ComponentSharedColorFiltersInput
description: StringFilterInput
icon: ComponentSharedIconFiltersInput
not: ComponentCardsAdvantageFiltersInput
or: [ComponentCardsAdvantageFiltersInput]
title: StringFilterInput
}
type ComponentCardsCase {
badge: String
color: ComponentSharedColor
description: String
footnote: String
icon: ComponentSharedIcon
id: ID!
pretitle: String
title: String
}
input ComponentCardsCaseFiltersInput {
and: [ComponentCardsCaseFiltersInput]
badge: StringFilterInput
color: ComponentSharedColorFiltersInput
description: StringFilterInput
footnote: StringFilterInput
icon: ComponentSharedIconFiltersInput
not: ComponentCardsCaseFiltersInput
or: [ComponentCardsCaseFiltersInput]
pretitle: StringFilterInput
title: StringFilterInput
}
type ComponentCardsService { type ComponentCardsService {
category: Category category: Category
color: ComponentSharedColor color: ComponentSharedColor
@@ -95,6 +137,41 @@ input ComponentCardsServiceFiltersInput {
title: StringFilterInput title: StringFilterInput
} }
type ComponentCardsSolution {
category: Category
description: String
footnote: String
icon: ComponentSharedIcon
id: ID!
title: String
}
input ComponentCardsSolutionFiltersInput {
and: [ComponentCardsSolutionFiltersInput]
category: CategoryFiltersInput
description: StringFilterInput
footnote: StringFilterInput
icon: ComponentSharedIconFiltersInput
not: ComponentCardsSolutionFiltersInput
or: [ComponentCardsSolutionFiltersInput]
title: StringFilterInput
}
type ComponentSectionsAbout {
cards(filters: ComponentCardsAdvantageFiltersInput, pagination: PaginationArg = {}, sort: [String] = []): [ComponentCardsAdvantage]
description: String
id: ID!
partners(filters: ComponentSharedStringFiltersInput, pagination: PaginationArg = {}, sort: [String] = []): [ComponentSharedString]
title: String
}
type ComponentSectionsCases {
cards(filters: ComponentCardsCaseFiltersInput, pagination: PaginationArg = {}, sort: [String] = []): [ComponentCardsCase]
description: String
id: ID!
title: String
}
type ComponentSectionsHomeHero { type ComponentSectionsHomeHero {
badge: String badge: String
description: String description: String
@@ -110,6 +187,13 @@ type ComponentSectionsServices {
title: String title: String
} }
type ComponentSectionsSolutions {
cards(filters: ComponentCardsSolutionFiltersInput, pagination: PaginationArg = {}, sort: [String] = []): [ComponentCardsSolution]
description: String
id: ID!
title: String
}
type ComponentSharedAttribute { type ComponentSharedAttribute {
id: ID! id: ID!
key: String key: String
@@ -285,7 +369,7 @@ input FloatFilterInput {
startsWith: Float startsWith: Float
} }
union GenericMorph = Category | ComponentCardsService | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSharedAttribute | ComponentSharedColor | ComponentSharedContact | ComponentSharedIcon | ComponentSharedString | HomePage | I18NLocale | ReviewWorkflowsWorkflow | ReviewWorkflowsWorkflowStage | SiteConfig | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser | Vendor union GenericMorph = Category | ComponentCardsAdvantage | ComponentCardsCase | ComponentCardsService | ComponentCardsSolution | ComponentSectionsAbout | ComponentSectionsCases | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSectionsSolutions | ComponentSharedAttribute | ComponentSharedColor | ComponentSharedContact | ComponentSharedIcon | ComponentSharedString | HomePage | I18NLocale | ReviewWorkflowsWorkflow | ReviewWorkflowsWorkflowStage | SiteConfig | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser | Vendor
type HomePage { type HomePage {
createdAt: DateTime createdAt: DateTime
@@ -300,7 +384,7 @@ input HomePageInput {
sections: [HomePageSectionsDynamicZoneInput!] sections: [HomePageSectionsDynamicZoneInput!]
} }
union HomePageSectionsDynamicZone = ComponentSectionsHomeHero | ComponentSectionsServices | Error union HomePageSectionsDynamicZone = ComponentSectionsAbout | ComponentSectionsCases | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSectionsSolutions | Error
scalar HomePageSectionsDynamicZoneInput scalar HomePageSectionsDynamicZoneInput

View File

@@ -1,10 +1,11 @@
import gql from "graphql-tag"; import gql from 'graphql-tag'
export const homePageDocument = gql` export const homePageDocument = gql`
query HomePage { query HomePageQuery {
homePage { homePage {
sections { sections {
... on ComponentSectionsHomeHero { ... on ComponentSectionsHomeHero {
id
title title
description description
badge badge
@@ -15,8 +16,66 @@ export const homePageDocument = gql`
} }
} }
... on ComponentSectionsServices { ... on ComponentSectionsServices {
id
title title
description description
cards {
id
title
description
icon {
value
}
color {
value
}
category {
slug
}
}
}
... on ComponentSectionsSolutions {
id
title
description
cards {
id
title
description
icon {
value
}
category {
slug
}
}
}
... on ComponentSectionsCases {
id
title
description
cards {
id
title
description
pretitle
badge
color {
value
}
icon {
value
}
}
}
... on ComponentSectionsAbout {
id
title
description
partners(pagination: { pageSize: 100 }) {
id
value
}
cards { cards {
id id
title title
@@ -27,12 +86,9 @@ export const homePageDocument = gql`
icon { icon {
value value
} }
category {
slug
} }
} }
} }
} }
} }
} `
`;

View File

@@ -115,6 +115,50 @@ export type CategoryRelationResponseCollection = {
nodes: Array<Category>; nodes: Array<Category>;
}; };
export type ComponentCardsAdvantage = {
__typename?: 'ComponentCardsAdvantage';
color?: Maybe<ComponentSharedColor>;
description?: Maybe<Scalars['String']['output']>;
icon?: Maybe<ComponentSharedIcon>;
id: Scalars['ID']['output'];
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentCardsAdvantageFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentCardsAdvantageFiltersInput>>>;
color?: InputMaybe<ComponentSharedColorFiltersInput>;
description?: InputMaybe<StringFilterInput>;
icon?: InputMaybe<ComponentSharedIconFiltersInput>;
not?: InputMaybe<ComponentCardsAdvantageFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentCardsAdvantageFiltersInput>>>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentCardsCase = {
__typename?: 'ComponentCardsCase';
badge?: Maybe<Scalars['String']['output']>;
color?: Maybe<ComponentSharedColor>;
description?: Maybe<Scalars['String']['output']>;
footnote?: Maybe<Scalars['String']['output']>;
icon?: Maybe<ComponentSharedIcon>;
id: Scalars['ID']['output'];
pretitle?: Maybe<Scalars['String']['output']>;
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentCardsCaseFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentCardsCaseFiltersInput>>>;
badge?: InputMaybe<StringFilterInput>;
color?: InputMaybe<ComponentSharedColorFiltersInput>;
description?: InputMaybe<StringFilterInput>;
footnote?: InputMaybe<StringFilterInput>;
icon?: InputMaybe<ComponentSharedIconFiltersInput>;
not?: InputMaybe<ComponentCardsCaseFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentCardsCaseFiltersInput>>>;
pretitle?: InputMaybe<StringFilterInput>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentCardsService = { export type ComponentCardsService = {
__typename?: 'ComponentCardsService'; __typename?: 'ComponentCardsService';
category?: Maybe<Category>; category?: Maybe<Category>;
@@ -136,6 +180,65 @@ export type ComponentCardsServiceFiltersInput = {
title?: InputMaybe<StringFilterInput>; title?: InputMaybe<StringFilterInput>;
}; };
export type ComponentCardsSolution = {
__typename?: 'ComponentCardsSolution';
category?: Maybe<Category>;
description?: Maybe<Scalars['String']['output']>;
footnote?: Maybe<Scalars['String']['output']>;
icon?: Maybe<ComponentSharedIcon>;
id: Scalars['ID']['output'];
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentCardsSolutionFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentCardsSolutionFiltersInput>>>;
category?: InputMaybe<CategoryFiltersInput>;
description?: InputMaybe<StringFilterInput>;
footnote?: InputMaybe<StringFilterInput>;
icon?: InputMaybe<ComponentSharedIconFiltersInput>;
not?: InputMaybe<ComponentCardsSolutionFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentCardsSolutionFiltersInput>>>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentSectionsAbout = {
__typename?: 'ComponentSectionsAbout';
cards?: Maybe<Array<Maybe<ComponentCardsAdvantage>>>;
description?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
partners?: Maybe<Array<Maybe<ComponentSharedString>>>;
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentSectionsAboutCardsArgs = {
filters?: InputMaybe<ComponentCardsAdvantageFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};
export type ComponentSectionsAboutPartnersArgs = {
filters?: InputMaybe<ComponentSharedStringFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};
export type ComponentSectionsCases = {
__typename?: 'ComponentSectionsCases';
cards?: Maybe<Array<Maybe<ComponentCardsCase>>>;
description?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentSectionsCasesCardsArgs = {
filters?: InputMaybe<ComponentCardsCaseFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};
export type ComponentSectionsHomeHero = { export type ComponentSectionsHomeHero = {
__typename?: 'ComponentSectionsHomeHero'; __typename?: 'ComponentSectionsHomeHero';
badge?: Maybe<Scalars['String']['output']>; badge?: Maybe<Scalars['String']['output']>;
@@ -167,6 +270,21 @@ export type ComponentSectionsServicesCardsArgs = {
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>; sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
}; };
export type ComponentSectionsSolutions = {
__typename?: 'ComponentSectionsSolutions';
cards?: Maybe<Array<Maybe<ComponentCardsSolution>>>;
description?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
title?: Maybe<Scalars['String']['output']>;
};
export type ComponentSectionsSolutionsCardsArgs = {
filters?: InputMaybe<ComponentCardsSolutionFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};
export type ComponentSharedAttribute = { export type ComponentSharedAttribute = {
__typename?: 'ComponentSharedAttribute'; __typename?: 'ComponentSharedAttribute';
id: Scalars['ID']['output']; id: Scalars['ID']['output'];
@@ -344,7 +462,7 @@ export type FloatFilterInput = {
startsWith?: InputMaybe<Scalars['Float']['input']>; startsWith?: InputMaybe<Scalars['Float']['input']>;
}; };
export type GenericMorph = Category | ComponentCardsService | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSharedAttribute | ComponentSharedColor | ComponentSharedContact | ComponentSharedIcon | ComponentSharedString | HomePage | I18NLocale | ReviewWorkflowsWorkflow | ReviewWorkflowsWorkflowStage | SiteConfig | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser | Vendor; export type GenericMorph = Category | ComponentCardsAdvantage | ComponentCardsCase | ComponentCardsService | ComponentCardsSolution | ComponentSectionsAbout | ComponentSectionsCases | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSectionsSolutions | ComponentSharedAttribute | ComponentSharedColor | ComponentSharedContact | ComponentSharedIcon | ComponentSharedString | HomePage | I18NLocale | ReviewWorkflowsWorkflow | ReviewWorkflowsWorkflowStage | SiteConfig | UploadFile | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser | Vendor;
export type HomePage = { export type HomePage = {
__typename?: 'HomePage'; __typename?: 'HomePage';
@@ -360,7 +478,7 @@ export type HomePageInput = {
sections?: InputMaybe<Array<Scalars['HomePageSectionsDynamicZoneInput']['input']>>; sections?: InputMaybe<Array<Scalars['HomePageSectionsDynamicZoneInput']['input']>>;
}; };
export type HomePageSectionsDynamicZone = ComponentSectionsHomeHero | ComponentSectionsServices | Error; export type HomePageSectionsDynamicZone = ComponentSectionsAbout | ComponentSectionsCases | ComponentSectionsHomeHero | ComponentSectionsServices | ComponentSectionsSolutions | Error;
export type I18NLocale = { export type I18NLocale = {
__typename?: 'I18NLocale'; __typename?: 'I18NLocale';
@@ -1416,12 +1534,15 @@ export type CategoriesListQueryVariables = Exact<{ [key: string]: never; }>;
export type CategoriesListQuery = { __typename?: 'Query', categories: Array<{ __typename?: 'Category', documentId: string, slug: string, title?: string | null, sortOrder: number, group: Enum_Category_Group, badge?: string | null } | null> }; export type CategoriesListQuery = { __typename?: 'Query', categories: Array<{ __typename?: 'Category', documentId: string, slug: string, title?: string | null, sortOrder: number, group: Enum_Category_Group, badge?: string | null } | null> };
export type HomePageQueryVariables = Exact<{ [key: string]: never; }>; export type HomePageQueryQueryVariables = Exact<{ [key: string]: never; }>;
export type HomePageQuery = { __typename?: 'Query', homePage?: { __typename?: 'HomePage', sections?: Array< export type HomePageQueryQuery = { __typename?: 'Query', homePage?: { __typename?: 'HomePage', sections?: Array<
| { __typename?: 'ComponentSectionsHomeHero', title?: string | null, description?: string | null, badge?: string | null, stats?: Array<{ __typename?: 'ComponentSharedAttribute', id: string, key?: string | null, value?: string | null } | null> | null } | { __typename?: 'ComponentSectionsAbout', id: string, title?: string | null, description?: string | null, partners?: Array<{ __typename?: 'ComponentSharedString', id: string, value: string } | null> | null, cards?: Array<{ __typename?: 'ComponentCardsAdvantage', id: string, title?: string | null, description?: string | null, color?: { __typename?: 'ComponentSharedColor', value?: Enum_Componentsharedcolor_Value | null } | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null } | null> | null }
| { __typename?: 'ComponentSectionsServices', title?: string | null, description?: string | null, cards?: Array<{ __typename?: 'ComponentCardsService', id: string, title?: string | null, description?: string | null, color?: { __typename?: 'ComponentSharedColor', value?: Enum_Componentsharedcolor_Value | null } | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null, category?: { __typename?: 'Category', slug: string } | null } | null> | null } | { __typename?: 'ComponentSectionsCases', id: string, title?: string | null, description?: string | null, cards?: Array<{ __typename?: 'ComponentCardsCase', id: string, title?: string | null, description?: string | null, pretitle?: string | null, badge?: string | null, color?: { __typename?: 'ComponentSharedColor', value?: Enum_Componentsharedcolor_Value | null } | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null } | null> | null }
| { __typename?: 'ComponentSectionsHomeHero', id: string, title?: string | null, description?: string | null, badge?: string | null, stats?: Array<{ __typename?: 'ComponentSharedAttribute', id: string, key?: string | null, value?: string | null } | null> | null }
| { __typename?: 'ComponentSectionsServices', id: string, title?: string | null, description?: string | null, cards?: Array<{ __typename?: 'ComponentCardsService', id: string, title?: string | null, description?: string | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null, color?: { __typename?: 'ComponentSharedColor', value?: Enum_Componentsharedcolor_Value | null } | null, category?: { __typename?: 'Category', slug: string } | null } | null> | null }
| { __typename?: 'ComponentSectionsSolutions', id: string, title?: string | null, description?: string | null, cards?: Array<{ __typename?: 'ComponentCardsSolution', id: string, title?: string | null, description?: string | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null, category?: { __typename?: 'Category', slug: string } | null } | null> | null }
| { __typename?: 'Error' } | { __typename?: 'Error' }
| null> | null } | null }; | null> | null } | null };
@@ -1456,11 +1577,12 @@ export const CategoriesListDocument = new TypedDocumentString(`
} }
} }
`) as unknown as TypedDocumentString<CategoriesListQuery, CategoriesListQueryVariables>; `) as unknown as TypedDocumentString<CategoriesListQuery, CategoriesListQueryVariables>;
export const HomePageDocument = new TypedDocumentString(` export const HomePageQueryDocument = new TypedDocumentString(`
query HomePage { query HomePageQuery {
homePage { homePage {
sections { sections {
... on ComponentSectionsHomeHero { ... on ComponentSectionsHomeHero {
id
title title
description description
badge badge
@@ -1471,8 +1593,66 @@ export const HomePageDocument = new TypedDocumentString(`
} }
} }
... on ComponentSectionsServices { ... on ComponentSectionsServices {
id
title title
description description
cards {
id
title
description
icon {
value
}
color {
value
}
category {
slug
}
}
}
... on ComponentSectionsSolutions {
id
title
description
cards {
id
title
description
icon {
value
}
category {
slug
}
}
}
... on ComponentSectionsCases {
id
title
description
cards {
id
title
description
pretitle
badge
color {
value
}
icon {
value
}
}
}
... on ComponentSectionsAbout {
id
title
description
partners(pagination: {pageSize: 100}) {
id
value
}
cards { cards {
id id
title title
@@ -1483,12 +1663,9 @@ export const HomePageDocument = new TypedDocumentString(`
icon { icon {
value value
} }
category {
slug
}
} }
} }
} }
} }
} }
`) as unknown as TypedDocumentString<HomePageQuery, HomePageQueryVariables>; `) as unknown as TypedDocumentString<HomePageQueryQuery, HomePageQueryQueryVariables>;