refactor: rename gql documents

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-14 23:25:04 +03:00
parent 32ea9359ae
commit 31ee186d22
10 changed files with 39 additions and 39 deletions

View File

@@ -1554,15 +1554,17 @@ export type VendorRelationResponseCollection = {
nodes: Array<Vendor>;
};
export type CategoriesListQueryVariables = Exact<{ [key: string]: never; }>;
export type CategoriesListQueryVariables = Exact<{
group?: InputMaybe<Scalars['String']['input']>;
}>;
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 HomePageQueryQueryVariables = Exact<{ [key: string]: never; }>;
export type HomePageQueryVariables = Exact<{ [key: string]: never; }>;
export type HomePageQueryQuery = { __typename?: 'Query', homePage?: { __typename?: 'HomePage', sections?: Array<
export type HomePageQuery = { __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 }
@@ -1571,10 +1573,10 @@ export type HomePageQueryQuery = { __typename?: 'Query', homePage?: { __typename
| { __typename: 'Error' }
| null> | null } | null };
export type SiteConfigQueryQueryVariables = Exact<{ [key: string]: never; }>;
export type SiteConfigQueryVariables = 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 type SiteConfigQuery = { __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
@@ -1596,8 +1598,8 @@ export class TypedDocumentString<TResult, TVariables>
}
export const CategoriesListDocument = new TypedDocumentString(`
query CategoriesList {
categories {
query CategoriesList($group: String) {
categories(filters: {group: {eq: $group}}) {
documentId
slug
title
@@ -1607,8 +1609,8 @@ export const CategoriesListDocument = new TypedDocumentString(`
}
}
`) as unknown as TypedDocumentString<CategoriesListQuery, CategoriesListQueryVariables>;
export const HomePageQueryDocument = new TypedDocumentString(`
query HomePageQuery {
export const HomePageDocument = new TypedDocumentString(`
query HomePage {
homePage {
sections {
__typename
@@ -1701,9 +1703,9 @@ export const HomePageQueryDocument = new TypedDocumentString(`
}
}
}
`) as unknown as TypedDocumentString<HomePageQueryQuery, HomePageQueryQueryVariables>;
export const SiteConfigQueryDocument = new TypedDocumentString(`
query SiteConfigQuery {
`) as unknown as TypedDocumentString<HomePageQuery, HomePageQueryVariables>;
export const SiteConfigDocument = new TypedDocumentString(`
query SiteConfig {
siteConfig {
title
description
@@ -1715,4 +1717,4 @@ export const SiteConfigQueryDocument = new TypedDocumentString(`
}
}
}
`) as unknown as TypedDocumentString<SiteConfigQueryQuery, SiteConfigQueryQueryVariables>;
`) as unknown as TypedDocumentString<SiteConfigQuery, SiteConfigQueryVariables>;