Update KYC operations and run codegen
Some checks failed
Build Docker Image / build (push) Failing after 1m30s

This commit is contained in:
Ruslan Bakiev
2026-01-21 09:31:02 +07:00
parent 253ad024f6
commit dac73a49c7
5 changed files with 171 additions and 29 deletions

View File

@@ -0,0 +1,103 @@
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
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';
activities?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
address?: Maybe<Scalars['String']['output']>;
capital?: Maybe<Scalars['String']['output']>;
companyType?: Maybe<Scalars['String']['output']>;
director?: Maybe<Scalars['String']['output']>;
inn?: Maybe<Scalars['String']['output']>;
isActive?: Maybe<Scalars['Boolean']['output']>;
lastUpdated?: Maybe<Scalars['DateTime']['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. */
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';
/** Get full company data by INN (requires auth) */
companyFull?: Maybe<CompanyFullType>;
/** Get full company data by KYC Profile UUID (requires auth) */
companyFullByProfile?: Maybe<CompanyFullType>;
/** Get public company teaser data by INN */
companyTeaser?: Maybe<CompanyTeaserType>;
/** Get public company teaser data by KYC Profile UUID */
companyTeaserByProfile?: Maybe<CompanyTeaserType>;
health?: Maybe<Scalars['String']['output']>;
};
/** Public queries - no authentication required. */
export type PublicQueryCompanyFullArgs = {
inn: Scalars['String']['input'];
};
/** Public queries - no authentication required. */
export type PublicQueryCompanyFullByProfileArgs = {
profileUuid: Scalars['String']['input'];
};
/** Public queries - no authentication required. */
export type PublicQueryCompanyTeaserArgs = {
inn: Scalars['String']['input'];
};
/** Public queries - no authentication required. */
export type PublicQueryCompanyTeaserByProfileArgs = {
profileUuid: Scalars['String']['input'];
};
export type GetKycProfileFullQueryVariables = Exact<{
profileUuid: Scalars['String']['input'];
}>;
export type GetKycProfileFullQuery = { __typename?: 'PublicQuery', companyFullByProfile?: { __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 GetKycProfileTeaserQueryVariables = Exact<{
profileUuid: Scalars['String']['input'];
}>;
export type GetKycProfileTeaserQuery = { __typename?: 'PublicQuery', companyTeaserByProfile?: { __typename?: 'CompanyTeaserType', 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":"companyFullByProfile"},"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<GetKycProfileFullQuery, GetKycProfileFullQueryVariables>;
export const GetKycProfileTeaserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetKycProfileTeaser"},"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":"companyTeaserByProfile"},"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":"companyType"}},{"kind":"Field","name":{"kind":"Name","value":"registrationYear"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"sourcesCount"}}]}}]}}]} as unknown as DocumentNode<GetKycProfileTeaserQuery, GetKycProfileTeaserQueryVariables>;