add contacts to icon hepler

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-11 18:56:39 +03:00
parent 6973e8baea
commit 79896b4a52
5 changed files with 120 additions and 7 deletions

View File

@@ -321,6 +321,22 @@ export type ComponentSharedContact = {
value: Scalars['String']['output'];
};
export type ComponentSharedContactFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentSharedContactFiltersInput>>>;
displayValue?: InputMaybe<StringFilterInput>;
not?: InputMaybe<ComponentSharedContactFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentSharedContactFiltersInput>>>;
type?: InputMaybe<StringFilterInput>;
value?: InputMaybe<StringFilterInput>;
};
export type ComponentSharedContactInput = {
displayValue?: InputMaybe<Scalars['String']['input']>;
id?: InputMaybe<Scalars['ID']['input']>;
type?: InputMaybe<Enum_Componentsharedcontact_Type>;
value?: InputMaybe<Scalars['String']['input']>;
};
export type ComponentSharedIcon = {
__typename?: 'ComponentSharedIcon';
id: Scalars['ID']['output'];
@@ -1151,6 +1167,7 @@ export type ReviewWorkflowsWorkflowStageRelationResponseCollection = {
export type SiteConfig = {
__typename?: 'SiteConfig';
contacts?: Maybe<Array<Maybe<ComponentSharedContact>>>;
createdAt?: Maybe<Scalars['DateTime']['output']>;
description?: Maybe<Scalars['String']['output']>;
documentId: Scalars['ID']['output'];
@@ -1159,7 +1176,15 @@ export type SiteConfig = {
updatedAt?: Maybe<Scalars['DateTime']['output']>;
};
export type SiteConfigContactsArgs = {
filters?: InputMaybe<ComponentSharedContactFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};
export type SiteConfigInput = {
contacts?: InputMaybe<Array<InputMaybe<ComponentSharedContactInput>>>;
description?: InputMaybe<Scalars['String']['input']>;
publishedAt?: InputMaybe<Scalars['DateTime']['input']>;
title?: InputMaybe<Scalars['String']['input']>;
@@ -1538,14 +1563,19 @@ export type HomePageQueryQueryVariables = Exact<{ [key: string]: never; }>;
export type HomePageQueryQuery = { __typename?: 'Query', homePage?: { __typename?: 'HomePage', sections?: Array<
| { __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?: '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, footnote?: 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, footnote?: string | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null, category?: { __typename?: 'Category', slug: string } | null } | null> | null }
| { __typename?: 'Error' }
| { __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: '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, footnote?: 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, footnote?: string | null, icon?: { __typename?: 'ComponentSharedIcon', value?: Enum_Componentsharedicon_Value | null } | null, category?: { __typename?: 'Category', slug: string } | null } | null> | null }
| { __typename: 'Error' }
| null> | null } | null };
export type SiteConfigQueryQueryVariables = Exact<{ [key: string]: never; }>;
export type SiteConfigQueryQuery = { __typename?: 'Query', siteConfig?: { __typename?: 'SiteConfig', title: string, description?: string | null, contacts?: Array<{ __typename?: 'ComponentSharedContact', id: string, type: Enum_Componentsharedcontact_Type, value: string, displayValue?: string | null } | null> | null } | null };
export class TypedDocumentString<TResult, TVariables>
extends String
implements DocumentTypeDecoration<TResult, TVariables>
@@ -1581,6 +1611,7 @@ export const HomePageQueryDocument = new TypedDocumentString(`
query HomePageQuery {
homePage {
sections {
__typename
... on ComponentSectionsHomeHero {
id
title
@@ -1670,4 +1701,18 @@ export const HomePageQueryDocument = new TypedDocumentString(`
}
}
}
`) as unknown as TypedDocumentString<HomePageQueryQuery, HomePageQueryQueryVariables>;
`) as unknown as TypedDocumentString<HomePageQueryQuery, HomePageQueryQueryVariables>;
export const SiteConfigQueryDocument = new TypedDocumentString(`
query SiteConfigQuery {
siteConfig {
title
description
contacts {
id
type
value
displayValue
}
}
}
`) as unknown as TypedDocumentString<SiteConfigQueryQuery, SiteConfigQueryQueryVariables>;