189 lines
16 KiB
TypeScript
189 lines
16 KiB
TypeScript
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; }
|
||
};
|
||
|
||
export type CreateTeamInput = {
|
||
name: Scalars['String']['input'];
|
||
teamType?: InputMaybe<Scalars['String']['input']>;
|
||
};
|
||
|
||
export type CreateTeamMutation = {
|
||
__typename?: 'CreateTeamMutation';
|
||
team?: Maybe<Team>;
|
||
};
|
||
|
||
export type SelectedLocation = {
|
||
__typename?: 'SelectedLocation';
|
||
latitude?: Maybe<Scalars['Float']['output']>;
|
||
longitude?: Maybe<Scalars['Float']['output']>;
|
||
name?: Maybe<Scalars['String']['output']>;
|
||
type?: Maybe<Scalars['String']['output']>;
|
||
uuid?: Maybe<Scalars['String']['output']>;
|
||
};
|
||
|
||
export type SwitchTeamMutation = {
|
||
__typename?: 'SwitchTeamMutation';
|
||
user?: Maybe<User>;
|
||
};
|
||
|
||
export type Team = {
|
||
__typename?: 'Team';
|
||
createdAt: Scalars['DateTime']['output'];
|
||
id?: Maybe<Scalars['String']['output']>;
|
||
logtoOrgId?: Maybe<Scalars['String']['output']>;
|
||
name: Scalars['String']['output'];
|
||
selectedLocation?: Maybe<SelectedLocation>;
|
||
teamType?: Maybe<Scalars['String']['output']>;
|
||
uuid: Scalars['String']['output'];
|
||
};
|
||
|
||
export type TeamInvitation = {
|
||
__typename?: 'TeamInvitation';
|
||
createdAt?: Maybe<Scalars['String']['output']>;
|
||
email?: Maybe<Scalars['String']['output']>;
|
||
expiresAt?: Maybe<Scalars['String']['output']>;
|
||
invitedBy?: Maybe<Scalars['String']['output']>;
|
||
role?: Maybe<Scalars['String']['output']>;
|
||
status?: Maybe<Scalars['String']['output']>;
|
||
uuid: Scalars['String']['output'];
|
||
};
|
||
|
||
export type TeamMember = {
|
||
__typename?: 'TeamMember';
|
||
joinedAt?: Maybe<Scalars['String']['output']>;
|
||
role?: Maybe<Scalars['String']['output']>;
|
||
user?: Maybe<User>;
|
||
uuid: Scalars['String']['output'];
|
||
};
|
||
|
||
export type TeamWithMembers = {
|
||
__typename?: 'TeamWithMembers';
|
||
createdAt: Scalars['DateTime']['output'];
|
||
id?: Maybe<Scalars['String']['output']>;
|
||
invitations?: Maybe<Array<Maybe<TeamInvitation>>>;
|
||
members?: Maybe<Array<Maybe<TeamMember>>>;
|
||
name: Scalars['String']['output'];
|
||
uuid: Scalars['String']['output'];
|
||
};
|
||
|
||
export type UpdateUserInput = {
|
||
avatarId?: InputMaybe<Scalars['String']['input']>;
|
||
firstName?: InputMaybe<Scalars['String']['input']>;
|
||
lastName?: InputMaybe<Scalars['String']['input']>;
|
||
phone?: InputMaybe<Scalars['String']['input']>;
|
||
};
|
||
|
||
export type UpdateUserMutation = {
|
||
__typename?: 'UpdateUserMutation';
|
||
user?: Maybe<User>;
|
||
};
|
||
|
||
export type User = {
|
||
__typename?: 'User';
|
||
activeTeam?: Maybe<Team>;
|
||
activeTeamId?: Maybe<Scalars['String']['output']>;
|
||
avatarId?: Maybe<Scalars['String']['output']>;
|
||
email: Scalars['String']['output'];
|
||
firstName?: Maybe<Scalars['String']['output']>;
|
||
id?: Maybe<Scalars['String']['output']>;
|
||
lastName?: Maybe<Scalars['String']['output']>;
|
||
phone?: Maybe<Scalars['String']['output']>;
|
||
teams?: Maybe<Array<Maybe<Team>>>;
|
||
/** Обязательное поле. Не более 150 символов. Только буквы, цифры и символы @/./+/-/_. */
|
||
username: Scalars['String']['output'];
|
||
};
|
||
|
||
export type UserMutation = {
|
||
__typename?: 'UserMutation';
|
||
createTeam?: Maybe<CreateTeamMutation>;
|
||
switchTeam?: Maybe<SwitchTeamMutation>;
|
||
updateUser?: Maybe<UpdateUserMutation>;
|
||
};
|
||
|
||
|
||
export type UserMutationCreateTeamArgs = {
|
||
input: CreateTeamInput;
|
||
};
|
||
|
||
|
||
export type UserMutationSwitchTeamArgs = {
|
||
teamId: Scalars['String']['input'];
|
||
};
|
||
|
||
|
||
export type UserMutationUpdateUserArgs = {
|
||
input: UpdateUserInput;
|
||
userId: Scalars['String']['input'];
|
||
};
|
||
|
||
export type UserQuery = {
|
||
__typename?: 'UserQuery';
|
||
getTeam?: Maybe<TeamWithMembers>;
|
||
me?: Maybe<User>;
|
||
};
|
||
|
||
|
||
export type UserQueryGetTeamArgs = {
|
||
teamId: Scalars['String']['input'];
|
||
};
|
||
|
||
export type CreateTeamMutationVariables = Exact<{
|
||
input: CreateTeamInput;
|
||
}>;
|
||
|
||
|
||
export type CreateTeamMutation = { __typename?: 'UserMutation', createTeam?: { __typename?: 'CreateTeamMutation', team?: { __typename?: 'Team', id?: string | null, name: string, teamType?: string | null } | null } | null };
|
||
|
||
export type GetMeQueryVariables = Exact<{ [key: string]: never; }>;
|
||
|
||
|
||
export type GetMeQuery = { __typename?: 'UserQuery', me?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null, activeTeamId?: string | null, activeTeam?: { __typename?: 'Team', id?: string | null, name: string, logtoOrgId?: string | null, teamType?: string | null, selectedLocation?: { __typename?: 'SelectedLocation', type?: string | null, uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null } | null } | null, teams?: Array<{ __typename?: 'Team', id?: string | null, name: string, logtoOrgId?: string | null, teamType?: string | null } | null> | null } | null };
|
||
|
||
export type GetMeProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
||
|
||
|
||
export type GetMeProfileQuery = { __typename?: 'UserQuery', me?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null, phone?: string | null, avatarId?: string | null, activeTeamId?: string | null, activeTeam?: { __typename?: 'Team', id?: string | null, name: string } | null } | null };
|
||
|
||
export type GetTeamQueryVariables = Exact<{
|
||
teamId: Scalars['String']['input'];
|
||
}>;
|
||
|
||
|
||
export type GetTeamQuery = { __typename?: 'UserQuery', getTeam?: { __typename?: 'TeamWithMembers', id?: string | null, name: string, members?: Array<{ __typename?: 'TeamMember', role?: string | null, joinedAt?: string | null, user?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null } | null } | null> | null, invitations?: Array<{ __typename?: 'TeamInvitation', uuid: string, email?: string | null, role?: string | null, status?: string | null, createdAt?: string | null } | null> | null } | null };
|
||
|
||
export type SwitchTeamMutationVariables = Exact<{
|
||
teamId: Scalars['String']['input'];
|
||
}>;
|
||
|
||
|
||
export type SwitchTeamMutation = { __typename?: 'UserMutation', switchTeam?: { __typename?: 'SwitchTeamMutation', user?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null, activeTeamId?: string | null, activeTeam?: { __typename?: 'Team', id?: string | null, name: string } | null } | null } | null };
|
||
|
||
export type UpdateUserMutationVariables = Exact<{
|
||
userId: Scalars['String']['input'];
|
||
input: UpdateUserInput;
|
||
}>;
|
||
|
||
|
||
export type UpdateUserMutation = { __typename?: 'UserMutation', updateUser?: { __typename?: 'UpdateUserMutation', user?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null, phone?: string | null, avatarId?: string | null, activeTeamId?: string | null, activeTeam?: { __typename?: 'Team', id?: string | null, name: string } | null } | null } | null };
|
||
|
||
|
||
export const CreateTeamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateTeam"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateTeamInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createTeam"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"team"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"teamType"}}]}}]}}]}}]} as unknown as DocumentNode<CreateTeamMutation, CreateTeamMutationVariables>;
|
||
export const GetMeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMe"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeamId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeam"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logtoOrgId"}},{"kind":"Field","name":{"kind":"Name","value":"teamType"}},{"kind":"Field","name":{"kind":"Name","value":"selectedLocation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"teams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"logtoOrgId"}},{"kind":"Field","name":{"kind":"Name","value":"teamType"}}]}}]}}]}}]} as unknown as DocumentNode<GetMeQuery, GetMeQueryVariables>;
|
||
export const GetMeProfileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMeProfile"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"avatarId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeamId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeam"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<GetMeProfileQuery, GetMeProfileQueryVariables>;
|
||
export const GetTeamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTeam"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getTeam"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"teamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"members"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invitations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]} as unknown as DocumentNode<GetTeamQuery, GetTeamQueryVariables>;
|
||
export const SwitchTeamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SwitchTeam"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"switchTeam"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"teamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"teamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeamId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeam"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<SwitchTeamMutation, SwitchTeamMutationVariables>;
|
||
export const UpdateUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateUser"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"userId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateUserInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateUser"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"userId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"userId"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"avatarId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeamId"}},{"kind":"Field","name":{"kind":"Name","value":"activeTeam"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<UpdateUserMutation, UpdateUserMutationVariables>; |