Fix geo GraphQL schema mismatch: camelCase → snake_case
All checks were successful
Build Docker Image / build (push) Successful in 5m46s
All checks were successful
Build Docker Image / build (push) Successful in 5m46s
All geo .graphql operations and consuming code updated to match server schema which uses snake_case field/argument names. Removed non-existent QuoteCalculations query, using NearestOffers instead.
This commit is contained in:
@@ -13,12 +13,10 @@ export type Scalars = {
|
||||
Boolean: { input: boolean; output: boolean; }
|
||||
Int: { input: number; output: number; }
|
||||
Float: { input: number; output: number; }
|
||||
DateTime: { input: string; output: string; }
|
||||
};
|
||||
|
||||
/** Full company data (requires auth). */
|
||||
export type CompanyFullType = {
|
||||
__typename?: 'CompanyFullType';
|
||||
export type CompanyFull = {
|
||||
__typename?: 'CompanyFull';
|
||||
activities?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
||||
address?: Maybe<Scalars['String']['output']>;
|
||||
capital?: Maybe<Scalars['String']['output']>;
|
||||
@@ -26,45 +24,35 @@ export type CompanyFullType = {
|
||||
director?: Maybe<Scalars['String']['output']>;
|
||||
inn?: Maybe<Scalars['String']['output']>;
|
||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||
lastUpdated?: Maybe<Scalars['DateTime']['output']>;
|
||||
lastUpdated?: Maybe<Scalars['String']['output']>;
|
||||
name?: Maybe<Scalars['String']['output']>;
|
||||
ogrn?: Maybe<Scalars['String']['output']>;
|
||||
registrationYear?: Maybe<Scalars['Int']['output']>;
|
||||
sources?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
||||
};
|
||||
|
||||
/** Public company data (teaser). */
|
||||
export type CompanyTeaserType = {
|
||||
__typename?: 'CompanyTeaserType';
|
||||
/** Company type: ООО, АО, ИП, etc. */
|
||||
export type CompanyTeaser = {
|
||||
__typename?: 'CompanyTeaser';
|
||||
companyType?: Maybe<Scalars['String']['output']>;
|
||||
/** Is company active */
|
||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||
/** Year of registration */
|
||||
registrationYear?: Maybe<Scalars['Int']['output']>;
|
||||
/** Number of data sources */
|
||||
sourcesCount?: Maybe<Scalars['Int']['output']>;
|
||||
};
|
||||
|
||||
/** Public queries - no authentication required. */
|
||||
export type PublicQuery = {
|
||||
__typename?: 'PublicQuery';
|
||||
health?: Maybe<Scalars['String']['output']>;
|
||||
/** Get full KYC profile data by UUID (requires auth) */
|
||||
kycProfileFull?: Maybe<CompanyFullType>;
|
||||
/** Get public KYC profile teaser data by UUID */
|
||||
kycProfileTeaser?: Maybe<CompanyTeaserType>;
|
||||
export type Query = {
|
||||
__typename?: 'Query';
|
||||
health: Scalars['String']['output'];
|
||||
kycProfileFull?: Maybe<CompanyFull>;
|
||||
kycProfileTeaser?: Maybe<CompanyTeaser>;
|
||||
};
|
||||
|
||||
|
||||
/** Public queries - no authentication required. */
|
||||
export type PublicQueryKycProfileFullArgs = {
|
||||
export type QueryKycProfileFullArgs = {
|
||||
profileUuid: Scalars['String']['input'];
|
||||
};
|
||||
|
||||
|
||||
/** Public queries - no authentication required. */
|
||||
export type PublicQueryKycProfileTeaserArgs = {
|
||||
export type QueryKycProfileTeaserArgs = {
|
||||
profileUuid: Scalars['String']['input'];
|
||||
};
|
||||
|
||||
@@ -73,14 +61,14 @@ export type GetKycProfileFullQueryVariables = Exact<{
|
||||
}>;
|
||||
|
||||
|
||||
export type GetKycProfileFullQueryResult = { __typename?: 'PublicQuery', kycProfileFull?: { __typename?: 'CompanyFullType', inn?: string | null, ogrn?: string | null, name?: string | null, companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, address?: string | null, director?: string | null, capital?: string | null, activities?: Array<string | null> | null, sources?: Array<string | null> | null, lastUpdated?: string | null } | null };
|
||||
export type GetKycProfileFullQueryResult = { __typename?: 'Query', kycProfileFull?: { __typename?: 'CompanyFull', inn?: string | null, ogrn?: string | null, name?: string | null, companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, address?: string | null, director?: string | null, capital?: string | null, activities?: Array<string | null> | null, sources?: Array<string | null> | null, lastUpdated?: string | null } | null };
|
||||
|
||||
export type GetKycProfileTeaserQueryVariables = Exact<{
|
||||
profileUuid: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
|
||||
export type GetKycProfileTeaserQueryResult = { __typename?: 'PublicQuery', kycProfileTeaser?: { __typename?: 'CompanyTeaserType', companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, sourcesCount?: number | null } | null };
|
||||
export type GetKycProfileTeaserQueryResult = { __typename?: 'Query', kycProfileTeaser?: { __typename?: 'CompanyTeaser', companyType?: string | null, registrationYear?: number | null, isActive?: boolean | null, sourcesCount?: number | null } | null };
|
||||
|
||||
|
||||
export const GetKycProfileFullDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetKycProfileFull"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kycProfileFull"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"profileUuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"profileUuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inn"}},{"kind":"Field","name":{"kind":"Name","value":"ogrn"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"companyType"}},{"kind":"Field","name":{"kind":"Name","value":"registrationYear"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"director"}},{"kind":"Field","name":{"kind":"Name","value":"capital"}},{"kind":"Field","name":{"kind":"Name","value":"activities"}},{"kind":"Field","name":{"kind":"Name","value":"sources"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdated"}}]}}]}}]} as unknown as DocumentNode<GetKycProfileFullQueryResult, GetKycProfileFullQueryVariables>;
|
||||
|
||||
Reference in New Issue
Block a user