Files
webapp/app/composables/graphql/team/teams-generated.ts
Ruslan Bakiev 8eb0766c2f
All checks were successful
Build Docker Image / build (push) Successful in 4m54s
chore: regenerate graphql types with UpdateTeamAddress
2026-01-07 16:21:00 +07:00

259 lines
17 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 CreateTeamAddressInput = {
address: Scalars['String']['input'];
countryCode?: InputMaybe<Scalars['String']['input']>;
isDefault?: InputMaybe<Scalars['Boolean']['input']>;
latitude?: InputMaybe<Scalars['Float']['input']>;
longitude?: InputMaybe<Scalars['Float']['input']>;
name: Scalars['String']['input'];
};
export type CreateTeamAddressMutation = {
__typename?: 'CreateTeamAddressMutation';
message?: Maybe<Scalars['String']['output']>;
success?: Maybe<Scalars['Boolean']['output']>;
workflowId?: Maybe<Scalars['String']['output']>;
};
export type DeleteTeamAddressMutation = {
__typename?: 'DeleteTeamAddressMutation';
message?: Maybe<Scalars['String']['output']>;
success?: Maybe<Scalars['Boolean']['output']>;
};
export type InviteMemberInput = {
email: Scalars['String']['input'];
role?: InputMaybe<Scalars['String']['input']>;
};
export type InviteMemberMutation = {
__typename?: 'InviteMemberMutation';
message?: Maybe<Scalars['String']['output']>;
success?: Maybe<Scalars['Boolean']['output']>;
};
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 SetSelectedLocationInput = {
latitude: Scalars['Float']['input'];
longitude: Scalars['Float']['input'];
name: Scalars['String']['input'];
type: Scalars['String']['input'];
uuid: Scalars['String']['input'];
};
export type SetSelectedLocationMutation = {
__typename?: 'SetSelectedLocationMutation';
message?: Maybe<Scalars['String']['output']>;
selectedLocation?: Maybe<SelectedLocation>;
success?: Maybe<Scalars['Boolean']['output']>;
};
export type Team = {
__typename?: 'Team';
addresses?: Maybe<Array<Maybe<TeamAddress>>>;
createdAt: Scalars['DateTime']['output'];
id?: Maybe<Scalars['String']['output']>;
logtoOrgId?: Maybe<Scalars['String']['output']>;
members?: Maybe<Array<Maybe<TeamMember>>>;
name: Scalars['String']['output'];
owner?: Maybe<User>;
ownerId?: Maybe<Scalars['String']['output']>;
selectedLocation?: Maybe<SelectedLocation>;
updatedAt: Scalars['DateTime']['output'];
uuid: Scalars['String']['output'];
};
export type TeamAddress = {
__typename?: 'TeamAddress';
address: Scalars['String']['output'];
countryCode?: Maybe<Scalars['String']['output']>;
createdAt?: Maybe<Scalars['String']['output']>;
graphNodeId?: Maybe<Scalars['String']['output']>;
isDefault?: Maybe<Scalars['Boolean']['output']>;
latitude?: Maybe<Scalars['Float']['output']>;
longitude?: Maybe<Scalars['Float']['output']>;
name: Scalars['String']['output'];
processedAt?: Maybe<Scalars['String']['output']>;
uuid: Scalars['String']['output'];
};
export type TeamMember = {
__typename?: 'TeamMember';
joinedAt?: Maybe<Scalars['String']['output']>;
role: TeamsAppTeamMemberRoleChoices;
user?: Maybe<User>;
};
export type TeamMutation = {
__typename?: 'TeamMutation';
createTeamAddress?: Maybe<CreateTeamAddressMutation>;
deleteTeamAddress?: Maybe<DeleteTeamAddressMutation>;
inviteMember?: Maybe<InviteMemberMutation>;
setSelectedLocation?: Maybe<SetSelectedLocationMutation>;
updateTeamAddress?: Maybe<UpdateTeamAddressMutation>;
};
export type TeamMutationCreateTeamAddressArgs = {
input: CreateTeamAddressInput;
};
export type TeamMutationDeleteTeamAddressArgs = {
uuid: Scalars['String']['input'];
};
export type TeamMutationInviteMemberArgs = {
input: InviteMemberInput;
};
export type TeamMutationSetSelectedLocationArgs = {
input: SetSelectedLocationInput;
};
export type TeamMutationUpdateTeamAddressArgs = {
input: UpdateTeamAddressInput;
};
export type TeamQuery = {
__typename?: 'TeamQuery';
getTeam?: Maybe<Team>;
team?: Maybe<Team>;
teamAddresses?: Maybe<Array<Maybe<TeamAddress>>>;
teamMembers?: Maybe<Array<Maybe<TeamMember>>>;
};
export type TeamQueryGetTeamArgs = {
teamId: Scalars['String']['input'];
};
/** An enumeration. */
export enum TeamsAppTeamMemberRoleChoices {
/** Администратор */
Admin = 'ADMIN',
/** Менеджер */
Manager = 'MANAGER',
/** Участник */
Member = 'MEMBER',
/** Владелец */
Owner = 'OWNER'
}
export type UpdateTeamAddressInput = {
address?: InputMaybe<Scalars['String']['input']>;
countryCode?: InputMaybe<Scalars['String']['input']>;
isDefault?: InputMaybe<Scalars['Boolean']['input']>;
latitude?: InputMaybe<Scalars['Float']['input']>;
longitude?: InputMaybe<Scalars['Float']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
uuid: Scalars['String']['input'];
};
export type UpdateTeamAddressMutation = {
__typename?: 'UpdateTeamAddressMutation';
address?: Maybe<TeamAddress>;
message?: Maybe<Scalars['String']['output']>;
success?: Maybe<Scalars['Boolean']['output']>;
};
export type User = {
__typename?: 'User';
avatarId?: Maybe<Scalars['String']['output']>;
createdAt?: 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']>;
/** Обязательное поле. Не более 150 символов. Только буквы, цифры и символы @/./+/-/_. */
username: Scalars['String']['output'];
};
export type CreateTeamAddressMutationVariables = Exact<{
input: CreateTeamAddressInput;
}>;
export type CreateTeamAddressMutation = { __typename?: 'TeamMutation', createTeamAddress?: { __typename?: 'CreateTeamAddressMutation', success?: boolean | null, message?: string | null, workflowId?: string | null } | null };
export type DeleteTeamAddressMutationVariables = Exact<{
uuid: Scalars['String']['input'];
}>;
export type DeleteTeamAddressMutation = { __typename?: 'TeamMutation', deleteTeamAddress?: { __typename?: 'DeleteTeamAddressMutation', success?: boolean | null, message?: string | null } | null };
export type GetTeamQueryVariables = Exact<{ [key: string]: never; }>;
export type GetTeamQuery = { __typename?: 'TeamQuery', team?: { __typename?: 'Team', uuid: string, name: string, selectedLocation?: { __typename?: 'SelectedLocation', type?: string | null, uuid?: string | null } | null } | null };
export type GetTeamAddressesQueryVariables = Exact<{ [key: string]: never; }>;
export type GetTeamAddressesQuery = { __typename?: 'TeamQuery', teamAddresses?: Array<{ __typename?: 'TeamAddress', uuid: string, name: string, address: string, latitude?: number | null, longitude?: number | null, countryCode?: string | null, isDefault?: boolean | null } | null> | null };
export type GetTeamMembersQueryVariables = Exact<{ [key: string]: never; }>;
export type GetTeamMembersQuery = { __typename?: 'TeamQuery', teamMembers?: Array<{ __typename?: 'TeamMember', role: TeamsAppTeamMemberRoleChoices, joinedAt?: string | null, user?: { __typename?: 'User', id?: string | null, firstName?: string | null, lastName?: string | null, phone?: string | null, avatarId?: string | null } | null } | null> | null };
export type InviteMemberMutationVariables = Exact<{
input: InviteMemberInput;
}>;
export type InviteMemberMutation = { __typename?: 'TeamMutation', inviteMember?: { __typename?: 'InviteMemberMutation', success?: boolean | null, message?: string | null } | null };
export type SetSelectedLocationMutationVariables = Exact<{
input: SetSelectedLocationInput;
}>;
export type SetSelectedLocationMutation = { __typename?: 'TeamMutation', setSelectedLocation?: { __typename?: 'SetSelectedLocationMutation', success?: boolean | null, message?: string | null, selectedLocation?: { __typename?: 'SelectedLocation', type?: string | null, uuid?: string | null, name?: string | null, latitude?: number | null, longitude?: number | null } | null } | null };
export type UpdateTeamAddressMutationVariables = Exact<{
input: UpdateTeamAddressInput;
}>;
export type UpdateTeamAddressMutation = { __typename?: 'TeamMutation', updateTeamAddress?: { __typename?: 'UpdateTeamAddressMutation', success?: boolean | null, message?: string | null, address?: { __typename?: 'TeamAddress', uuid: string, name: string, address: string, latitude?: number | null, longitude?: number | null, countryCode?: string | null, isDefault?: boolean | null } | null } | null };
export const CreateTeamAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateTeamAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateTeamAddressInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createTeamAddress"},"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":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"workflowId"}}]}}]}}]} as unknown as DocumentNode<CreateTeamAddressMutation, CreateTeamAddressMutationVariables>;
export const DeleteTeamAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteTeamAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteTeamAddress"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"uuid"},"value":{"kind":"Variable","name":{"kind":"Name","value":"uuid"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode<DeleteTeamAddressMutation, DeleteTeamAddressMutationVariables>;
export const GetTeamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTeam"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"team"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"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"}}]}}]}}]}}]} as unknown as DocumentNode<GetTeamQuery, GetTeamQueryVariables>;
export const GetTeamAddressesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTeamAddresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"teamAddresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"isDefault"}}]}}]}}]} as unknown as DocumentNode<GetTeamAddressesQuery, GetTeamAddressesQueryVariables>;
export const GetTeamMembersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTeamMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"teamMembers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"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"}}]}}]}}]}}]} as unknown as DocumentNode<GetTeamMembersQuery, GetTeamMembersQueryVariables>;
export const InviteMemberDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InviteMember"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InviteMemberInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inviteMember"},"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":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode<InviteMemberMutation, InviteMemberMutationVariables>;
export const SetSelectedLocationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetSelectedLocation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetSelectedLocationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setSelectedLocation"},"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":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"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"}}]}}]}}]}}]} as unknown as DocumentNode<SetSelectedLocationMutation, SetSelectedLocationMutationVariables>;
export const UpdateTeamAddressDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTeamAddress"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTeamAddressInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTeamAddress"},"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":"success"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"address"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"latitude"}},{"kind":"Field","name":{"kind":"Name","value":"longitude"}},{"kind":"Field","name":{"kind":"Name","value":"countryCode"}},{"kind":"Field","name":{"kind":"Name","value":"isDefault"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateTeamAddressMutation, UpdateTeamAddressMutationVariables>;