import type * as Types from '../schema'; import gql from 'graphql-tag'; import * as Urql from '@urql/vue'; export type Omit = Pick>; export type GetPiceForProfileQueryVariables = Types.Exact<{ profileUid: Types.Scalars['String']['input']; }>; export type GetPiceForProfileQuery = ( { __typename?: 'Query' } & { priceForProfile?: Types.Maybe<( { __typename?: 'ProfilePriceType' } & Pick )> } ); export type GetPiceForAnalysisQueryVariables = Types.Exact<{ analysisUid: Types.Scalars['String']['input']; }>; export type GetPiceForAnalysisQuery = ( { __typename?: 'Query' } & { priceForAnalysis?: Types.Maybe<( { __typename?: 'AnalysisPriceType' } & Pick )> } ); export type GetDiscountForProfileQueryVariables = Types.Exact<{ profileUid: Types.Scalars['String']['input']; }>; export type GetDiscountForProfileQuery = ( { __typename?: 'Query' } & { discountForProfile?: Types.Maybe<( { __typename?: 'ProfileDiscountType' } & Pick & { voucher?: Types.Maybe<( { __typename?: 'VoucherType' } & Pick )> } )> } ); export type GetDiscountForAnalysisQueryVariables = Types.Exact<{ analysisUid: Types.Scalars['String']['input']; }>; export type GetDiscountForAnalysisQuery = ( { __typename?: 'Query' } & { discountForAnalysis?: Types.Maybe<( { __typename?: 'AnalysisDiscountType' } & Pick & { voucher?: Types.Maybe<( { __typename?: 'VoucherType' } & Pick )> } )> } ); export type GetAllVouchersQueryVariables = Types.Exact<{ [key: string]: never; }>; export type GetAllVouchersQuery = ( { __typename?: 'Query' } & { voucherAll?: Types.Maybe & { codes?: Types.Maybe )>> } )>> } ); export type GetVoucherByUidQueryVariables = Types.Exact<{ uid: Types.Scalars['String']['input']; }>; export type GetVoucherByUidQuery = ( { __typename?: 'Query' } & { voucherByUid?: Types.Maybe<( { __typename?: 'VoucherType' } & Pick & { codes?: Types.Maybe )>> } )> } ); export type GetVoucherCodesQueryVariables = Types.Exact<{ voucherUid: Types.Scalars['String']['input']; }>; export type GetVoucherCodesQuery = ( { __typename?: 'Query' } & { voucherCodes?: Types.Maybe )>> } ); export type GetBillsForPatientQueryVariables = Types.Exact<{ patientUid: Types.Scalars['String']['input']; }>; export type GetBillsForPatientQuery = ( { __typename?: 'Query' } & { billsForPatient?: Types.Maybe & { client: ( { __typename?: 'ClientType' } & Pick ), orders?: Types.Maybe )>> } )>> } ); export type GetBillTransactionsQueryVariables = Types.Exact<{ billUid: Types.Scalars['String']['input']; }>; export type GetBillTransactionsQuery = ( { __typename?: 'Query' } & { billTransactions?: Types.Maybe )>> } ); export type ImpressBillingReportQueryVariables = Types.Exact<{ billUid: Types.Scalars['String']['input']; }>; export type ImpressBillingReportQuery = ( { __typename?: 'Query' } & Pick ); export const GetPiceForProfileDocument = gql` query GetPiceForProfile($profileUid: String!) { priceForProfile(profileUid: $profileUid) { uid profileUid isActive amount } } `; export function useGetPiceForProfileQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetPiceForProfileDocument, ...options }); }; export const GetPiceForAnalysisDocument = gql` query GetPiceForAnalysis($analysisUid: String!) { priceForAnalysis(analysisUid: $analysisUid) { uid analysisUid isActive amount } } `; export function useGetPiceForAnalysisQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetPiceForAnalysisDocument, ...options }); }; export const GetDiscountForProfileDocument = gql` query GetDiscountForProfile($profileUid: String!) { discountForProfile(profileUid: $profileUid) { uid profileUid name discountType valueType startDate endDate voucherUid voucher { uid name usageLimit used startDate endDate } valuePercent valueAmount isActive } } `; export function useGetDiscountForProfileQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetDiscountForProfileDocument, ...options }); }; export const GetDiscountForAnalysisDocument = gql` query GetDiscountForAnalysis($analysisUid: String!) { discountForAnalysis(analysisUid: $analysisUid) { uid analysisUid name discountType valueType startDate endDate voucherUid voucher { uid name usageLimit used startDate endDate } valuePercent valueAmount isActive } } `; export function useGetDiscountForAnalysisQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetDiscountForAnalysisDocument, ...options }); }; export const GetAllVouchersDocument = gql` query getAllVouchers { voucherAll { uid name usageLimit used startDate endDate oncePerCustomer oncePerOrder codes { uid code usageLimit used isActive createdAt createdByUid updatedAt updatedByUid } createdAt createdByUid updatedAt updatedByUid } } `; export function useGetAllVouchersQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetAllVouchersDocument, ...options }); }; export const GetVoucherByUidDocument = gql` query getVoucherByUid($uid: String!) { voucherByUid(uid: $uid) { uid name usageLimit used startDate endDate oncePerCustomer oncePerOrder codes { uid code usageLimit used isActive createdAt createdByUid updatedAt updatedByUid } createdAt createdByUid updatedAt updatedByUid } } `; export function useGetVoucherByUidQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetVoucherByUidDocument, ...options }); }; export const GetVoucherCodesDocument = gql` query getVoucherCodes($voucherUid: String!) { voucherCodes(voucherUid: $voucherUid) { uid voucherUid code usageLimit used isActive createdAt createdByUid updatedAt updatedByUid } } `; export function useGetVoucherCodesQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetVoucherCodesDocument, ...options }); }; export const GetBillsForPatientDocument = gql` query getBillsForPatient($patientUid: String!) { billsForPatient(patientUid: $patientUid) { uid billId patientUid clientUid client { name } isActive toConfirm partial totalCharged totalPaid orders { uid requestId clientRequestId } createdAt updatedAt } } `; export function useGetBillsForPatientQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetBillsForPatientDocument, ...options }); }; export const GetBillTransactionsDocument = gql` query getBillTransactions($billUid: String!) { billTransactions(billUid: $billUid) { uid testBillUid kind amount isSuccess actionRequired processed notes createdAt createdByUid } } `; export function useGetBillTransactionsQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: GetBillTransactionsDocument, ...options }); }; export const ImpressBillingReportDocument = gql` query impressBillingReport($billUid: String!) { billInvoiceCreate(billUid: $billUid) } `; export function useImpressBillingReportQuery(options: Omit, 'query'> = {}) { return Urql.useQuery({ query: ImpressBillingReportDocument, ...options }); };