import gql from 'graphql-tag'; import * as VueApolloComposable from '@vue/apollo-composable'; import type * as VueCompositionApi from '@vue/composition-api'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; export type ReactiveFunction = () => TParam; /** 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: any; output: any; } JSON: { input: any; output: any; } }; export type AcceptInvitationInput = { fullName: Scalars['String']['input']; token: Scalars['String']['input']; }; export type AddBonusTransactionInput = { amount: Scalars['Float']['input']; orderId?: InputMaybe; reason: Scalars['String']['input']; userId: Scalars['ID']['input']; }; export type AuthCodeRequestResult = { __typename?: 'AuthCodeRequestResult'; challengeToken: Scalars['String']['output']; channel: LoginChannel; destination: Scalars['String']['output']; expiresAt: Scalars['DateTime']['output']; }; export type AuthSession = { __typename?: 'AuthSession'; accessToken: Scalars['String']['output']; expiresAt: Scalars['DateTime']['output']; user: User; }; export type BlockOrderInput = { orderId: Scalars['ID']['input']; reason: Scalars['String']['input']; }; export type BonusTransaction = { __typename?: 'BonusTransaction'; amount: Scalars['Float']['output']; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; orderId?: Maybe; reason: Scalars['String']['output']; userId: Scalars['ID']['output']; }; export type Company = { __typename?: 'Company'; id: Scalars['ID']['output']; inn?: Maybe; name: Scalars['String']['output']; }; export type ConnectMessengerInput = { channelId: Scalars['String']['input']; type: MessengerType; }; export type CounterpartyProfile = { __typename?: 'CounterpartyProfile'; bankName: Scalars['String']['output']; bik: Scalars['String']['output']; checkingAccount: Scalars['String']['output']; companyFullName: Scalars['String']['output']; companyName: Scalars['String']['output']; correspondentAccount: Scalars['String']['output']; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; inn: Scalars['String']['output']; isComplete: Scalars['Boolean']['output']; kpp?: Maybe; legalAddress: Scalars['String']['output']; ogrn?: Maybe; signerBasis: Scalars['String']['output']; signerFullName: Scalars['String']['output']; signerPosition: Scalars['String']['output']; updatedAt: Scalars['DateTime']['output']; userId: Scalars['ID']['output']; }; export type CreateInvitationInput = { companyName: Scalars['String']['input']; email: Scalars['String']['input']; expiresInDays?: InputMaybe; }; export type CreateReferralInput = { refereeUserId: Scalars['ID']['input']; }; export enum Decision { Approve = 'APPROVE', Reject = 'REJECT' } export type Invitation = { __typename?: 'Invitation'; acceptedAt?: Maybe; acceptedById?: Maybe; companyName: Scalars['String']['output']; createdAt: Scalars['DateTime']['output']; email: Scalars['String']['output']; expiresAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; managerId: Scalars['ID']['output']; token: Scalars['String']['output']; }; export enum LoginChannel { Email = 'EMAIL', Max = 'MAX', Telegram = 'TELEGRAM' } export type MessengerConnection = { __typename?: 'MessengerConnection'; channelId: Scalars['String']['output']; id: Scalars['ID']['output']; isActive: Scalars['Boolean']['output']; type: MessengerType; userId: Scalars['ID']['output']; }; export type MessengerDispatchResult = { __typename?: 'MessengerDispatchResult'; channelId: Scalars['String']['output']; detail: Scalars['String']['output']; sentAt: Scalars['DateTime']['output']; success: Scalars['Boolean']['output']; type: MessengerType; }; export enum MessengerType { Max = 'MAX', Telegram = 'TELEGRAM' } export type Mutation = { __typename?: 'Mutation'; acceptInvitation: User; addBonusTransaction: BonusTransaction; blockOrder: Order; clientReviewOrder: Order; completeOrder: Order; connectMessenger: MessengerConnection; consumeLoginToken: AuthSession; createInvitation: Invitation; createReferral: ReferralLink; managerFinalizeOrder: Order; managerSetOrderOffer: Order; registerSelf: RegistrationRequest; requestLoginCode: AuthCodeRequestResult; requestRewardWithdrawal: RewardWithdrawalRequest; reviewRegistrationRequest: RegistrationRequest; reviewRewardWithdrawal: RewardWithdrawalRequest; sendTestMessengerMessage: MessengerDispatchResult; startOrderWork: Order; submitCalculationOrder: Order; submitReadyOrder: Order; upsertMyCounterpartyProfile: CounterpartyProfile; verifyLoginCode: AuthSession; }; export type MutationAcceptInvitationArgs = { input: AcceptInvitationInput; }; export type MutationAddBonusTransactionArgs = { input: AddBonusTransactionInput; }; export type MutationBlockOrderArgs = { input: BlockOrderInput; }; export type MutationClientReviewOrderArgs = { decision: Decision; orderId: Scalars['ID']['input']; }; export type MutationCompleteOrderArgs = { orderId: Scalars['ID']['input']; }; export type MutationConnectMessengerArgs = { input: ConnectMessengerInput; }; export type MutationConsumeLoginTokenArgs = { token: Scalars['String']['input']; }; export type MutationCreateInvitationArgs = { input: CreateInvitationInput; }; export type MutationCreateReferralArgs = { input: CreateReferralInput; }; export type MutationManagerFinalizeOrderArgs = { decision: Decision; orderId: Scalars['ID']['input']; }; export type MutationManagerSetOrderOfferArgs = { input: SetOrderOfferInput; }; export type MutationRegisterSelfArgs = { input: RegisterSelfInput; }; export type MutationRequestLoginCodeArgs = { input: RequestLoginCodeInput; }; export type MutationRequestRewardWithdrawalArgs = { input: RequestRewardWithdrawalInput; }; export type MutationReviewRegistrationRequestArgs = { input: ReviewRegistrationRequestInput; }; export type MutationReviewRewardWithdrawalArgs = { input: ReviewRewardWithdrawalInput; }; export type MutationSendTestMessengerMessageArgs = { channelId?: InputMaybe; message?: InputMaybe; type: MessengerType; }; export type MutationStartOrderWorkArgs = { orderId: Scalars['ID']['input']; }; export type MutationSubmitCalculationOrderArgs = { input: SubmitCalculationOrderInput; }; export type MutationSubmitReadyOrderArgs = { input: SubmitReadyOrderInput; }; export type MutationUpsertMyCounterpartyProfileArgs = { input: UpsertMyCounterpartyProfileInput; }; export type MutationVerifyLoginCodeArgs = { input: VerifyLoginCodeInput; }; export type NotificationHistoryItem = { __typename?: 'NotificationHistoryItem'; channel: MessengerType; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; message: Scalars['String']['output']; orderId?: Maybe; title: Scalars['String']['output']; }; export type Order = { __typename?: 'Order'; blockReason?: Maybe; calculationPayload?: Maybe; clientApproved?: Maybe; code: Scalars['String']['output']; createdAt: Scalars['DateTime']['output']; customerId: Scalars['ID']['output']; deliveryFee?: Maybe; deliveryTerms?: Maybe; history: Array; id: Scalars['ID']['output']; items: Array; kind: OrderKind; managerApproved?: Maybe; managerId?: Maybe; status: OrderStatus; totalPrice?: Maybe; updatedAt: Scalars['DateTime']['output']; }; export type OrderItem = { __typename?: 'OrderItem'; id: Scalars['ID']['output']; productId?: Maybe; productName: Scalars['String']['output']; quantity: Scalars['Float']['output']; }; export enum OrderKind { Calculation = 'CALCULATION', Ready = 'READY' } export enum OrderStatus { ClientRejected = 'CLIENT_REJECTED', Completed = 'COMPLETED', Confirmed = 'CONFIRMED', InProgress = 'IN_PROGRESS', ManagerBlocked = 'MANAGER_BLOCKED', ManagerProcessing = 'MANAGER_PROCESSING', ManagerRejected = 'MANAGER_REJECTED', New = 'NEW', WaitingDoubleConfirm = 'WAITING_DOUBLE_CONFIRM' } export type OrderStatusEvent = { __typename?: 'OrderStatusEvent'; actorUserId: Scalars['ID']['output']; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; note?: Maybe; status: OrderStatus; }; export type Product = { __typename?: 'Product'; availableInWarehouses: Array; description?: Maybe; id: Scalars['ID']['output']; isActive: Scalars['Boolean']['output']; isCustomizable: Scalars['Boolean']['output']; name: Scalars['String']['output']; sku: Scalars['String']['output']; }; export type ProductWarehouseBalance = { __typename?: 'ProductWarehouseBalance'; availableQty: Scalars['Float']['output']; warehouse: Warehouse; }; export type Query = { __typename?: 'Query'; clientProducts: Array; healthcheck: Scalars['String']['output']; managerNotificationHistory: Array; managerOrders: Array; me?: Maybe; myCounterpartyProfile?: Maybe; myCurrentOrders: Array; myMessengerConnections: Array; myNotificationHistory: Array; myOrders: Array; referralStats: ReferralStats; registrationRequests: Array; }; export type QueryManagerNotificationHistoryArgs = { channel: MessengerType; limit?: InputMaybe; userId: Scalars['ID']['input']; }; export type QueryManagerOrdersArgs = { status?: InputMaybe; }; export type QueryMyNotificationHistoryArgs = { channel: MessengerType; limit?: InputMaybe; }; export type QueryRegistrationRequestsArgs = { status?: InputMaybe; }; export type ReadyOrderItemInput = { productId: Scalars['ID']['input']; quantity: Scalars['Float']['input']; }; export type ReferralLink = { __typename?: 'ReferralLink'; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; refereeId: Scalars['ID']['output']; referrerId: Scalars['ID']['output']; }; export type ReferralStats = { __typename?: 'ReferralStats'; availableBalance: Scalars['Float']['output']; pendingWithdrawals: Array; referralsCount: Scalars['Int']['output']; referrerId: Scalars['ID']['output']; transactions: Array; }; export type RegisterSelfInput = { companyName: Scalars['String']['input']; contactName: Scalars['String']['input']; email: Scalars['String']['input']; inn?: InputMaybe; }; export type RegistrationRequest = { __typename?: 'RegistrationRequest'; companyName: Scalars['String']['output']; contactName: Scalars['String']['output']; createdAt: Scalars['DateTime']['output']; email: Scalars['String']['output']; id: Scalars['ID']['output']; inn?: Maybe; rejectionReason?: Maybe; reviewedById?: Maybe; status: RegistrationStatus; updatedAt: Scalars['DateTime']['output']; }; export enum RegistrationStatus { Approved = 'APPROVED', Pending = 'PENDING', Rejected = 'REJECTED' } export type RequestLoginCodeInput = { channel: LoginChannel; destination: Scalars['String']['input']; }; export type RequestRewardWithdrawalInput = { amount: Scalars['Float']['input']; }; export type ReviewRegistrationRequestInput = { decision: Decision; rejectionReason?: InputMaybe; requestId: Scalars['ID']['input']; }; export type ReviewRewardWithdrawalInput = { decision: Decision; reviewComment?: InputMaybe; withdrawalId: Scalars['ID']['input']; }; export type RewardWithdrawalRequest = { __typename?: 'RewardWithdrawalRequest'; amount: Scalars['Float']['output']; createdAt: Scalars['DateTime']['output']; id: Scalars['ID']['output']; requesterId: Scalars['ID']['output']; reviewComment?: Maybe; reviewedById?: Maybe; status: WithdrawalStatus; updatedAt: Scalars['DateTime']['output']; }; export type SetOrderOfferInput = { deliveryFee: Scalars['Float']['input']; deliveryTerms: Scalars['String']['input']; orderId: Scalars['ID']['input']; totalPrice: Scalars['Float']['input']; }; export type SubmitCalculationOrderInput = { parameters: Scalars['JSON']['input']; productName: Scalars['String']['input']; quantity: Scalars['Float']['input']; }; export type SubmitReadyOrderInput = { items: Array; }; export type UpsertMyCounterpartyProfileInput = { bankName: Scalars['String']['input']; bik: Scalars['String']['input']; checkingAccount: Scalars['String']['input']; companyFullName: Scalars['String']['input']; companyName: Scalars['String']['input']; correspondentAccount: Scalars['String']['input']; inn: Scalars['String']['input']; kpp?: InputMaybe; legalAddress: Scalars['String']['input']; ogrn?: InputMaybe; signerBasis: Scalars['String']['input']; signerFullName: Scalars['String']['input']; signerPosition: Scalars['String']['input']; }; export type User = { __typename?: 'User'; company?: Maybe; email: Scalars['String']['output']; fullName: Scalars['String']['output']; id: Scalars['ID']['output']; role: UserRole; }; export enum UserRole { Client = 'CLIENT', Manager = 'MANAGER' } export type VerifyLoginCodeInput = { challengeToken: Scalars['String']['input']; code: Scalars['String']['input']; }; export type Warehouse = { __typename?: 'Warehouse'; code: Scalars['String']['output']; id: Scalars['ID']['output']; name: Scalars['String']['output']; }; export enum WithdrawalStatus { Approved = 'APPROVED', Pending = 'PENDING', Rejected = 'REJECTED' } export type ConsumeLoginTokenMutationVariables = Exact<{ token: Scalars['String']['input']; }>; export type ConsumeLoginTokenMutation = { __typename?: 'Mutation', consumeLoginToken: { __typename?: 'AuthSession', accessToken: string, expiresAt: any, user: { __typename?: 'User', id: string, email: string, fullName: string, role: UserRole, company?: { __typename?: 'Company', id: string } | null } } }; export type MeQueryVariables = Exact<{ [key: string]: never; }>; export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', id: string, email: string } | null }; export type RegisterSelfMutationVariables = Exact<{ input: RegisterSelfInput; }>; export type RegisterSelfMutation = { __typename?: 'Mutation', registerSelf: { __typename?: 'RegistrationRequest', id: string, companyName: string, contactName: string, email: string, status: RegistrationStatus, createdAt: any } }; export type RequestLoginCodeMutationVariables = Exact<{ input: RequestLoginCodeInput; }>; export type RequestLoginCodeMutation = { __typename?: 'Mutation', requestLoginCode: { __typename?: 'AuthCodeRequestResult', challengeToken: string, channel: LoginChannel, destination: string, expiresAt: any } }; export type VerifyLoginCodeMutationVariables = Exact<{ input: VerifyLoginCodeInput; }>; export type VerifyLoginCodeMutation = { __typename?: 'Mutation', verifyLoginCode: { __typename?: 'AuthSession', accessToken: string, expiresAt: any, user: { __typename?: 'User', id: string, email: string, fullName: string, role: UserRole, company?: { __typename?: 'Company', id: string } | null } } }; export type ClientProductsQueryVariables = Exact<{ [key: string]: never; }>; export type ClientProductsQuery = { __typename?: 'Query', clientProducts: Array<{ __typename?: 'Product', id: string, sku: string, name: string, description?: string | null, isCustomizable: boolean, availableInWarehouses: Array<{ __typename?: 'ProductWarehouseBalance', availableQty: number, warehouse: { __typename?: 'Warehouse', id: string, code: string, name: string } }> }> }; export type MyMessengerConnectionsQueryVariables = Exact<{ [key: string]: never; }>; export type MyMessengerConnectionsQuery = { __typename?: 'Query', myMessengerConnections: Array<{ __typename?: 'MessengerConnection', id: string, type: MessengerType, channelId: string, isActive: boolean }> }; export type MyNotificationHistoryQueryVariables = Exact<{ channel: MessengerType; limit?: InputMaybe; }>; export type MyNotificationHistoryQuery = { __typename?: 'Query', myNotificationHistory: Array<{ __typename?: 'NotificationHistoryItem', id: string, channel: MessengerType, title: string, message: string, createdAt: any, orderId?: string | null }> }; export type SendTestMessengerMessageMutationVariables = Exact<{ type: MessengerType; channelId?: InputMaybe; message?: InputMaybe; }>; export type SendTestMessengerMessageMutation = { __typename?: 'Mutation', sendTestMessengerMessage: { __typename?: 'MessengerDispatchResult', type: MessengerType, channelId: string, success: boolean, detail: string, sentAt: any } }; export type ClientReviewOrderMutationVariables = Exact<{ orderId: Scalars['ID']['input']; decision: Decision; }>; export type ClientReviewOrderMutation = { __typename?: 'Mutation', clientReviewOrder: { __typename?: 'Order', id: string, status: OrderStatus, clientApproved?: boolean | null, managerApproved?: boolean | null } }; export type MyCurrentOrdersQueryVariables = Exact<{ [key: string]: never; }>; export type MyCurrentOrdersQuery = { __typename?: 'Query', myCurrentOrders: Array<{ __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number }> }> }; export type MyOrdersQueryVariables = Exact<{ [key: string]: never; }>; export type MyOrdersQuery = { __typename?: 'Query', myOrders: Array<{ __typename?: 'Order', id: string, code: string, kind: OrderKind, status: OrderStatus, totalPrice?: number | null, deliveryTerms?: string | null, createdAt: any, items: Array<{ __typename?: 'OrderItem', id: string, productName: string, quantity: number }> }> }; export type SubmitCalculationOrderMutationVariables = Exact<{ input: SubmitCalculationOrderInput; }>; export type SubmitCalculationOrderMutation = { __typename?: 'Mutation', submitCalculationOrder: { __typename?: 'Order', id: string, code: string, status: OrderStatus, createdAt: any } }; export type SubmitReadyOrderMutationVariables = Exact<{ input: SubmitReadyOrderInput; }>; export type SubmitReadyOrderMutation = { __typename?: 'Mutation', submitReadyOrder: { __typename?: 'Order', id: string, code: string, status: OrderStatus, createdAt: any } }; export type ConnectMessengerMutationVariables = Exact<{ input: ConnectMessengerInput; }>; export type ConnectMessengerMutation = { __typename?: 'Mutation', connectMessenger: { __typename?: 'MessengerConnection', id: string, type: MessengerType, channelId: string, isActive: boolean } }; export type MyCounterpartyProfileQueryVariables = Exact<{ [key: string]: never; }>; export type MyCounterpartyProfileQuery = { __typename?: 'Query', myCounterpartyProfile?: { __typename?: 'CounterpartyProfile', id: string, companyName: string, companyFullName: string, inn: string, kpp?: string | null, ogrn?: string | null, legalAddress: string, bankName: string, bik: string, correspondentAccount: string, checkingAccount: string, signerFullName: string, signerPosition: string, signerBasis: string, isComplete: boolean, updatedAt: any } | null }; export type UpsertMyCounterpartyProfileMutationVariables = Exact<{ input: UpsertMyCounterpartyProfileInput; }>; export type UpsertMyCounterpartyProfileMutation = { __typename?: 'Mutation', upsertMyCounterpartyProfile: { __typename?: 'CounterpartyProfile', id: string, companyName: string, companyFullName: string, inn: string, kpp?: string | null, ogrn?: string | null, legalAddress: string, bankName: string, bik: string, correspondentAccount: string, checkingAccount: string, signerFullName: string, signerPosition: string, signerBasis: string, isComplete: boolean, updatedAt: any } }; export const ConsumeLoginTokenDocument = gql` mutation ConsumeLoginToken($token: String!) { consumeLoginToken(token: $token) { accessToken expiresAt user { id email fullName role company { id } } } } `; /** * __useConsumeLoginTokenMutation__ * * To run a mutation, you first call `useConsumeLoginTokenMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useConsumeLoginTokenMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useConsumeLoginTokenMutation({ * variables: { * token: // value for 'token' * }, * }); */ export function useConsumeLoginTokenMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ConsumeLoginTokenDocument, options); } export type ConsumeLoginTokenMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const MeDocument = gql` query Me { me { id email } } `; /** * __useMeQuery__ * * To run a query within a Vue component, call `useMeQuery` and pass it any options that fit your needs. * When your component renders, `useMeQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMeQuery(); */ export function useMeQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MeDocument, {}, options); } export function useMeLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MeDocument, {}, options); } export type MeQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const RegisterSelfDocument = gql` mutation RegisterSelf($input: RegisterSelfInput!) { registerSelf(input: $input) { id companyName contactName email status createdAt } } `; /** * __useRegisterSelfMutation__ * * To run a mutation, you first call `useRegisterSelfMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useRegisterSelfMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useRegisterSelfMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useRegisterSelfMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(RegisterSelfDocument, options); } export type RegisterSelfMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const RequestLoginCodeDocument = gql` mutation RequestLoginCode($input: RequestLoginCodeInput!) { requestLoginCode(input: $input) { challengeToken channel destination expiresAt } } `; /** * __useRequestLoginCodeMutation__ * * To run a mutation, you first call `useRequestLoginCodeMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useRequestLoginCodeMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useRequestLoginCodeMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useRequestLoginCodeMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(RequestLoginCodeDocument, options); } export type RequestLoginCodeMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const VerifyLoginCodeDocument = gql` mutation VerifyLoginCode($input: VerifyLoginCodeInput!) { verifyLoginCode(input: $input) { accessToken expiresAt user { id email fullName role company { id } } } } `; /** * __useVerifyLoginCodeMutation__ * * To run a mutation, you first call `useVerifyLoginCodeMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useVerifyLoginCodeMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useVerifyLoginCodeMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useVerifyLoginCodeMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(VerifyLoginCodeDocument, options); } export type VerifyLoginCodeMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const ClientProductsDocument = gql` query ClientProducts { clientProducts { id sku name description isCustomizable availableInWarehouses { availableQty warehouse { id code name } } } } `; /** * __useClientProductsQuery__ * * To run a query within a Vue component, call `useClientProductsQuery` and pass it any options that fit your needs. * When your component renders, `useClientProductsQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useClientProductsQuery(); */ export function useClientProductsQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(ClientProductsDocument, {}, options); } export function useClientProductsLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(ClientProductsDocument, {}, options); } export type ClientProductsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const MyMessengerConnectionsDocument = gql` query MyMessengerConnections { myMessengerConnections { id type channelId isActive } } `; /** * __useMyMessengerConnectionsQuery__ * * To run a query within a Vue component, call `useMyMessengerConnectionsQuery` and pass it any options that fit your needs. * When your component renders, `useMyMessengerConnectionsQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMyMessengerConnectionsQuery(); */ export function useMyMessengerConnectionsQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MyMessengerConnectionsDocument, {}, options); } export function useMyMessengerConnectionsLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MyMessengerConnectionsDocument, {}, options); } export type MyMessengerConnectionsQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const MyNotificationHistoryDocument = gql` query MyNotificationHistory($channel: MessengerType!, $limit: Int) { myNotificationHistory(channel: $channel, limit: $limit) { id channel title message createdAt orderId } } `; /** * __useMyNotificationHistoryQuery__ * * To run a query within a Vue component, call `useMyNotificationHistoryQuery` and pass it any options that fit your needs. * When your component renders, `useMyNotificationHistoryQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param variables that will be passed into the query * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMyNotificationHistoryQuery({ * channel: // value for 'channel' * limit: // value for 'limit' * }); */ export function useMyNotificationHistoryQuery(variables: MyNotificationHistoryQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MyNotificationHistoryDocument, variables, options); } export function useMyNotificationHistoryLazyQuery(variables?: MyNotificationHistoryQueryVariables | VueCompositionApi.Ref | ReactiveFunction, options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MyNotificationHistoryDocument, variables, options); } export type MyNotificationHistoryQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const SendTestMessengerMessageDocument = gql` mutation SendTestMessengerMessage($type: MessengerType!, $channelId: String, $message: String) { sendTestMessengerMessage(type: $type, channelId: $channelId, message: $message) { type channelId success detail sentAt } } `; /** * __useSendTestMessengerMessageMutation__ * * To run a mutation, you first call `useSendTestMessengerMessageMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useSendTestMessengerMessageMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useSendTestMessengerMessageMutation({ * variables: { * type: // value for 'type' * channelId: // value for 'channelId' * message: // value for 'message' * }, * }); */ export function useSendTestMessengerMessageMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(SendTestMessengerMessageDocument, options); } export type SendTestMessengerMessageMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const ClientReviewOrderDocument = gql` mutation ClientReviewOrder($orderId: ID!, $decision: Decision!) { clientReviewOrder(orderId: $orderId, decision: $decision) { id status clientApproved managerApproved } } `; /** * __useClientReviewOrderMutation__ * * To run a mutation, you first call `useClientReviewOrderMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useClientReviewOrderMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useClientReviewOrderMutation({ * variables: { * orderId: // value for 'orderId' * decision: // value for 'decision' * }, * }); */ export function useClientReviewOrderMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ClientReviewOrderDocument, options); } export type ClientReviewOrderMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const MyCurrentOrdersDocument = gql` query MyCurrentOrders { myCurrentOrders { id code kind status createdAt items { id productName quantity } } } `; /** * __useMyCurrentOrdersQuery__ * * To run a query within a Vue component, call `useMyCurrentOrdersQuery` and pass it any options that fit your needs. * When your component renders, `useMyCurrentOrdersQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMyCurrentOrdersQuery(); */ export function useMyCurrentOrdersQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MyCurrentOrdersDocument, {}, options); } export function useMyCurrentOrdersLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MyCurrentOrdersDocument, {}, options); } export type MyCurrentOrdersQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const MyOrdersDocument = gql` query MyOrders { myOrders { id code kind status totalPrice deliveryTerms createdAt items { id productName quantity } } } `; /** * __useMyOrdersQuery__ * * To run a query within a Vue component, call `useMyOrdersQuery` and pass it any options that fit your needs. * When your component renders, `useMyOrdersQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMyOrdersQuery(); */ export function useMyOrdersQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MyOrdersDocument, {}, options); } export function useMyOrdersLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MyOrdersDocument, {}, options); } export type MyOrdersQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const SubmitCalculationOrderDocument = gql` mutation SubmitCalculationOrder($input: SubmitCalculationOrderInput!) { submitCalculationOrder(input: $input) { id code status createdAt } } `; /** * __useSubmitCalculationOrderMutation__ * * To run a mutation, you first call `useSubmitCalculationOrderMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useSubmitCalculationOrderMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useSubmitCalculationOrderMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useSubmitCalculationOrderMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(SubmitCalculationOrderDocument, options); } export type SubmitCalculationOrderMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const SubmitReadyOrderDocument = gql` mutation SubmitReadyOrder($input: SubmitReadyOrderInput!) { submitReadyOrder(input: $input) { id code status createdAt } } `; /** * __useSubmitReadyOrderMutation__ * * To run a mutation, you first call `useSubmitReadyOrderMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useSubmitReadyOrderMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useSubmitReadyOrderMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useSubmitReadyOrderMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(SubmitReadyOrderDocument, options); } export type SubmitReadyOrderMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const ConnectMessengerDocument = gql` mutation ConnectMessenger($input: ConnectMessengerInput!) { connectMessenger(input: $input) { id type channelId isActive } } `; /** * __useConnectMessengerMutation__ * * To run a mutation, you first call `useConnectMessengerMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useConnectMessengerMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useConnectMessengerMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useConnectMessengerMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(ConnectMessengerDocument, options); } export type ConnectMessengerMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn; export const MyCounterpartyProfileDocument = gql` query MyCounterpartyProfile { myCounterpartyProfile { id companyName companyFullName inn kpp ogrn legalAddress bankName bik correspondentAccount checkingAccount signerFullName signerPosition signerBasis isComplete updatedAt } } `; /** * __useMyCounterpartyProfileQuery__ * * To run a query within a Vue component, call `useMyCounterpartyProfileQuery` and pass it any options that fit your needs. * When your component renders, `useMyCounterpartyProfileQuery` returns an object from Apollo Client that contains result, loading and error properties * you can use to render your UI. * * @param options that will be passed into the query, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/query.html#options; * * @example * const { result, loading, error } = useMyCounterpartyProfileQuery(); */ export function useMyCounterpartyProfileQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useQuery(MyCounterpartyProfileDocument, {}, options); } export function useMyCounterpartyProfileLazyQuery(options: VueApolloComposable.UseQueryOptions | VueCompositionApi.Ref> | ReactiveFunction> = {}) { return VueApolloComposable.useLazyQuery(MyCounterpartyProfileDocument, {}, options); } export type MyCounterpartyProfileQueryCompositionFunctionResult = VueApolloComposable.UseQueryReturn; export const UpsertMyCounterpartyProfileDocument = gql` mutation UpsertMyCounterpartyProfile($input: UpsertMyCounterpartyProfileInput!) { upsertMyCounterpartyProfile(input: $input) { id companyName companyFullName inn kpp ogrn legalAddress bankName bik correspondentAccount checkingAccount signerFullName signerPosition signerBasis isComplete updatedAt } } `; /** * __useUpsertMyCounterpartyProfileMutation__ * * To run a mutation, you first call `useUpsertMyCounterpartyProfileMutation` within a Vue component and pass it any options that fit your needs. * When your component renders, `useUpsertMyCounterpartyProfileMutation` returns an object that includes: * - A mutate function that you can call at any time to execute the mutation * - Several other properties: https://v4.apollo.vuejs.org/api/use-mutation.html#return * * @param options that will be passed into the mutation, supported options are listed on: https://v4.apollo.vuejs.org/guide-composable/mutation.html#options; * * @example * const { mutate, loading, error, onDone } = useUpsertMyCounterpartyProfileMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useUpsertMyCounterpartyProfileMutation(options: VueApolloComposable.UseMutationOptions | ReactiveFunction> = {}) { return VueApolloComposable.useMutation(UpsertMyCounterpartyProfileDocument, options); } export type UpsertMyCounterpartyProfileMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn;