import { Ops } from './const.js'; import fetch from 'node-fetch'; import WebSocket from 'ws'; export declare const HOST = "http://localhost:8080/"; export declare const HEADERS: {}; export declare const apiSubscription: (options: chainOptions) => (query: string) => { ws: WebSocket; on: (e: (args: any) => void) => void; off: (e: (args: any) => void) => void; error: (e: (args: any) => void) => void; open: (e: () => void) => void; }; export declare const apiFetch: (options: [url: URL | import("node-fetch").RequestInfo, init?: import("node-fetch").RequestInit | undefined]) => (query: string, variables?: Record) => Promise | undefined>; export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; options?: OperationOptions | undefined; scalars?: ScalarDefinition | undefined; }) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{ name: string; graphQLType: string; }>) => string; export declare const Thunder: (fn: FetchFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const Chain: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const SubscriptionThunder: (fn: SubscriptionFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Subscription: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Zeus: >(operation: O, o: Z | ValueTypes[R], ops?: { operationOptions?: OperationOptions; scalars?: ScalarDefinition; }) => string; export declare const ZeusSelect: () => SelectionFunction; export declare const Selector: (key: T) => SelectionFunction; export declare const TypeFromSelector: (key: T) => SelectionFunction; export declare const Gql: >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const ZeusScalars: SelectionFunction; export declare const decodeScalarsInResponse: ({ response, scalars, returns, ops, initialZeusQuery, initialOp, }: { ops: O; response: any; returns: ReturnTypesType; scalars?: Record | undefined; initialOp: keyof O; initialZeusQuery: InputValueType | VType; }) => any; export declare const traverseResponse: ({ resolvers, scalarPaths, }: { scalarPaths: { [x: string]: `scalar.${string}`; }; resolvers: { [x: string]: ScalarResolver | undefined; }; }) => (k: string, o: InputValueType | VType, p?: string[]) => unknown; export type AllTypesPropsType = { [x: string]: undefined | `scalar.${string}` | 'enum' | { [x: string]: undefined | string | { [x: string]: string | undefined; }; }; }; export type ReturnTypesType = { [x: string]: { [x: string]: string | undefined; } | `scalar.${string}` | undefined; }; export type InputValueType = { [x: string]: undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; }; export type VType = undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; export type PlainType = boolean | number | string | null | undefined; export type ZeusArgsType = PlainType | { [x: string]: ZeusArgsType; } | Array; export type Operations = Record; export type VariableDefinition = { [x: string]: unknown; }; export declare const SEPARATOR = "|"; export type fetchOptions = Parameters; type websocketOptions = typeof WebSocket extends new (...args: infer R) => WebSocket ? R : never; export type chainOptions = [fetchOptions[0], fetchOptions[1] & { websocket?: websocketOptions; }] | [fetchOptions[0]]; export type FetchFunction = (query: string, variables?: Record) => Promise; export type SubscriptionFunction = (query: string) => any; type NotUndefined = T extends undefined ? never : T; export type ResolverType = NotUndefined; export type OperationOptions = { operationName?: string; }; export type ScalarCoder = Record string>; export interface GraphQLResponse { data?: Record; errors?: Array<{ message: string; }>; } export declare class GraphQLError extends Error { response: GraphQLResponse; constructor(response: GraphQLResponse); toString(): string; } export type GenericOperation = O extends keyof typeof Ops ? typeof Ops[O] : never; export type ThunderGraphQLOptions = { scalars?: SCLR | ScalarCoders; }; export declare const PrepareScalarPaths: ({ ops, returns }: { returns: ReturnTypesType; ops: Operations; }) => (k: string, originalKey: string, o: InputValueType | VType, p?: string[], pOriginals?: string[], root?: boolean) => { [x: string]: `scalar.${string}`; } | undefined; export declare const purifyGraphQLKey: (k: string) => string; export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => 'enum' | 'not' | `scalar.${string}`; export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; scalars?: ScalarDefinition | undefined; vars: Array<{ name: string; graphQLType: string; }>; }) => (a: ZeusArgsType, p?: string, root?: boolean) => string; export declare const resolverFor: (type: T, field: Z, fn: (args: Required[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never) => (args?: any, source?: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never; export type UnwrapPromise = T extends Promise ? R : T; export type ZeusState Promise> = NonNullable>>; export type ZeusHook Record Promise>, N extends keyof ReturnType> = ZeusState[N]>; export type WithTypeNameValue = T & { __typename?: boolean; __directives?: string; }; export type AliasType = WithTypeNameValue & { __alias?: Record>; }; type DeepAnify = { [P in keyof T]?: any; }; type IsPayLoad = T extends [any, infer PayLoad] ? PayLoad : T; export type ScalarDefinition = Record; type IsScalar = S extends 'scalar' & { name: infer T; } ? T extends keyof SCLR ? SCLR[T]['decode'] extends (s: unknown) => unknown ? ReturnType : unknown : unknown : S; type IsArray = T extends Array ? InputType[] : InputType; type FlattenArray = T extends Array ? R : T; type BaseZeusResolver = boolean | 1 | string | Variable; type IsInterfaced, DST, SCLR extends ScalarDefinition> = FlattenArray extends ZEUS_INTERFACES | ZEUS_UNIONS ? { [P in keyof SRC]: SRC[P] extends '__union' & infer R ? P extends keyof DST ? IsArray : IsArray : never; }[keyof SRC] & { [P in keyof Omit, '__typename'>]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; } : { [P in keyof Pick]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; }; export type MapType = SRC extends DeepAnify ? IsInterfaced : never; export type InputType = IsPayLoad extends { __alias: infer R; } ? { [P in keyof R]: MapType[keyof MapType]; } & MapType, '__alias'>, SCLR> : MapType, SCLR>; export type SubscriptionToGraphQL = { ws: WebSocket; on: (fn: (args: InputType) => void) => void; off: (fn: (e: { data?: InputType; code?: number; reason?: string; message?: string; }) => void) => void; error: (fn: (e: { data?: InputType; errors?: string[]; }) => void) => void; open: () => void; }; export type FromSelector = InputType; export type ScalarResolver = { encode?: (s: unknown) => string; decode?: (s: unknown) => unknown; }; export type SelectionFunction = (t: T | V) => T; type BuiltInVariableTypes = { ['String']: string; ['Int']: number; ['Float']: number; ['ID']: unknown; ['Boolean']: boolean; }; type AllVariableTypes = keyof BuiltInVariableTypes | keyof ZEUS_VARIABLES; type VariableRequired = `${T}!` | T | `[${T}]` | `[${T}]!` | `[${T}!]` | `[${T}!]!`; type VR = VariableRequired>; export type GraphQLVariableType = VR; type ExtractVariableTypeString = T extends VR ? R1 extends VR ? R2 extends VR ? R3 extends VR ? R4 extends VR ? R5 : R4 : R3 : R2 : R1 : T; type DecomposeType = T extends `[${infer R}]` ? Array> | undefined : T extends `${infer R}!` ? NonNullable> : Type | undefined; type ExtractTypeFromGraphQLType = T extends keyof ZEUS_VARIABLES ? ZEUS_VARIABLES[T] : T extends keyof BuiltInVariableTypes ? BuiltInVariableTypes[T] : any; export type GetVariableType = DecomposeType>>; type UndefinedKeys = { [K in keyof T]-?: T[K] extends NonNullable ? never : K; }[keyof T]; type WithNullableKeys = Pick>; type WithNonNullableKeys = Omit>; type OptionalKeys = { [P in keyof T]?: T[P]; }; export type WithOptionalNullables = OptionalKeys> & WithNonNullableKeys; export type Variable = { ' __zeus_name': Name; ' __zeus_type': T; }; export type ExtractVariables = Query extends Variable ? { [key in VName]: GetVariableType; } : Query extends [infer Inputs, infer Outputs] ? ExtractVariables & ExtractVariables : Query extends string | number | boolean ? {} : UnionToIntersection<{ [K in keyof Query]: WithOptionalNullables>; }[keyof Query]>; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export declare const START_VAR_NAME = "$ZEUS_VAR"; export declare const GRAPHQL_TYPE_SEPARATOR = "__$GRAPHQL__"; export declare const $: (name: Name, graphqlType: Type) => Variable; type ZEUS_INTERFACES = GraphQLTypes["dbEssentials"]; export type ScalarCoders = { Date?: ScalarResolver; }; type ZEUS_UNIONS = never; export type ValueTypes = { ["Query"]: AliasType<{ /** if used user query endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserQuery will throw error about malformed source */ user?: ValueTypes["UserQuery"]; public?: ValueTypes["PublicQuery"]; __typename?: boolean | `@${string}`; }>; ["UserQuery"]: AliasType<{ getSelfBooks?: [{ input?: ValueTypes["GetBooksInput"] | undefined | null | Variable; }, ValueTypes["GetBooksRepsond"]]; getBookingsForService?: [{ input?: ValueTypes["GetBookingsForServiceInput"] | undefined | null | Variable; }, ValueTypes["GetBookingsForServiceRespond"]]; getSelfServices?: [{ input?: ValueTypes["GetSelfServicesInput"] | undefined | null | Variable; }, ValueTypes["GetSelfServicesRespond"]]; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ /** if used user mutation endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserMutation will throw error about malformed source */ user?: ValueTypes["UserMutation"]; __typename?: boolean | `@${string}`; }>; ["PublicQuery"]: AliasType<{ listServices?: [{ input?: ValueTypes["ListServicesInput"] | undefined | null | Variable; }, ValueTypes["ListServicesRespond"]]; getService?: [{ serviceId: string | Variable; }, ValueTypes["GetServiceRespond"]]; __typename?: boolean | `@${string}`; }>; ["UserMutation"]: AliasType<{ registerService?: [{ input: ValueTypes["RegisterServiceInput"] | Variable; }, ValueTypes["RegisterServiceRespond"]]; updateService?: [{ input: Array | Variable; }, ValueTypes["UpdateServiceRespond"]]; removeService?: [{ serviceId: string | Variable; }, ValueTypes["RemoveServiceRespond"]]; bookService?: [{ input: ValueTypes["BookServiceInput"] | Variable; }, ValueTypes["BookServiceRespond"]]; updateBooking?: [{ input: ValueTypes["UpdateBookingInput"] | Variable; }, ValueTypes["BookServiceRespond"]]; removeBooking?: [{ _id: string | Variable; }, ValueTypes["RemoveServiceRespond"]]; send?: [{ mailgunData: ValueTypes["MailgunData"] | Variable; }, boolean | `@${string}`]; respondOnServiceRequest?: [{ input: ValueTypes["RespondOnServiceRequestInput"] | Variable; }, ValueTypes["RespondOnServiceRequestRespond"]]; __typename?: boolean | `@${string}`; }>; ["UpdateBookingInput"]: { _id: string | Variable; addServiceIds?: Array | undefined | null | Variable; removeServiceIds?: Array | undefined | null | Variable; comments?: ValueTypes["UpdateReservationInfoInput"] | undefined | null | Variable; }; ["UserInput"]: { name: string | Variable; secondName?: string | undefined | null | Variable; phone?: string | undefined | null | Variable; email?: string | undefined | null | Variable; }; ["UpdateUserInput"]: { name?: string | undefined | null | Variable; bookerId?: string | undefined | null | Variable; secondName?: string | undefined | null | Variable; phone?: string | undefined | null | Variable; email?: string | undefined | null | Variable; }; ["MailgunData"]: { to: string | Variable; subject: string | Variable; message: string | Variable; from?: string | undefined | null | Variable; }; ["GetBookingsForServiceInput"]: { page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable; filters?: ValueTypes["GetBookingsForServiceFiltersInput"] | undefined | null | Variable; }; ["GetBookingsForServiceFiltersInput"]: { fromDate?: ValueTypes["Date"] | undefined | null | Variable; toDate?: ValueTypes["Date"] | undefined | null | Variable; bookerId?: string | undefined | null | Variable; status?: ValueTypes["BookStatus"] | undefined | null | Variable; }; ["GetBookingsForServiceRespond"]: AliasType<{ books?: ValueTypes["BookingRecord"]; error?: ValueTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RespondOnServiceRequestInput"]: { bookIds: Array | Variable; /** answer field cannot be PENDING, otherwise it will throw error */ answer: ValueTypes["BookStatus"] | Variable; }; ["GetSelfServicesInput"]: { page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable; filters?: ValueTypes["GetSelfServicesFiltersInput"] | undefined | null | Variable; }; ["GetSelfServicesFiltersInput"]: { /** name is regex */ name?: string | undefined | null | Variable; /** description is regex */ description?: string | undefined | null | Variable; fromDate?: ValueTypes["Date"] | undefined | null | Variable; toDate?: ValueTypes["Date"] | undefined | null | Variable; }; ["GetSelfServicesRespond"]: AliasType<{ service?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RespondOnServiceRequestRespond"]: AliasType<{ status?: boolean | `@${string}`; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["GetBooksInput"]: { page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable; filters?: ValueTypes["GetBooksFiltersInput"] | undefined | null | Variable; }; ["GetBooksFiltersInput"]: { fromDate?: ValueTypes["Date"] | undefined | null | Variable; toDate?: ValueTypes["Date"] | undefined | null | Variable; status?: ValueTypes["BookStatus"] | undefined | null | Variable; }; ["ListServicesInput"]: { page?: ValueTypes["PageOptionsInput"] | undefined | null | Variable; filters?: ValueTypes["ListServicesFiltersInput"] | undefined | null | Variable; }; ["GetBooksRepsond"]: AliasType<{ books?: ValueTypes["BookingRecord"]; error?: ValueTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ListServicesRespond"]: AliasType<{ services?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["GetServiceRespond"]: AliasType<{ service?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RegisterUserInput"]: { username: string | Variable; email: string | Variable; phone?: string | undefined | null | Variable; }; ["RegisterServiceInput"]: { name: string | Variable; description?: string | undefined | null | Variable; startDates: Array | Variable; time?: number | undefined | null | Variable; neededAccept?: boolean | undefined | null | Variable; active?: boolean | undefined | null | Variable; }; ["UpdateReservationInfoInput"]: { user?: ValueTypes["UpdateUserInput"] | undefined | null | Variable; comments?: string | undefined | null | Variable; numberOfGuests?: number | undefined | null | Variable; numberOfKids?: number | undefined | null | Variable; animals?: boolean | undefined | null | Variable; lateCheckIn?: boolean | undefined | null | Variable; from?: ValueTypes["Date"] | undefined | null | Variable; to?: ValueTypes["Date"] | undefined | null | Variable; price?: number | undefined | null | Variable; }; ["ReservationInfoInput"]: { user: ValueTypes["UserInput"] | Variable; comments?: string | undefined | null | Variable; numberOfGuests?: number | undefined | null | Variable; numberOfKids?: number | undefined | null | Variable; animals?: boolean | undefined | null | Variable; lateCheckIn?: boolean | undefined | null | Variable; from?: ValueTypes["Date"] | undefined | null | Variable; to?: ValueTypes["Date"] | undefined | null | Variable; price?: number | undefined | null | Variable; }; ["Comments"]: AliasType<{ user?: ValueTypes["User"]; comments?: boolean | `@${string}`; numberOfGuests?: boolean | `@${string}`; numberOfKids?: boolean | `@${string}`; animals?: boolean | `@${string}`; lateCheckIn?: boolean | `@${string}`; from?: boolean | `@${string}`; to?: boolean | `@${string}`; price?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["User"]: AliasType<{ name?: boolean | `@${string}`; secondName?: boolean | `@${string}`; phone?: boolean | `@${string}`; email?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RegisterServiceRespond"]: AliasType<{ service?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["UpdateServiceInput"]: { serviceId: string | Variable; name?: string | undefined | null | Variable; description?: string | undefined | null | Variable; startDate?: ValueTypes["Date"] | undefined | null | Variable; time?: number | undefined | null | Variable; active?: boolean | undefined | null | Variable; neededAccept?: boolean | undefined | null | Variable; }; ["UpdateServiceRespond"]: AliasType<{ service?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RemoveServiceRespond"]: AliasType<{ removed?: boolean | `@${string}`; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RemoveBookingRespond"]: AliasType<{ removed?: boolean | `@${string}`; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["BookServiceInput"]: { serviceIds: Array | Variable; comments?: ValueTypes["ReservationInfoInput"] | undefined | null | Variable; }; ["BookServiceRespond"]: AliasType<{ book?: ValueTypes["BookingRecord"]; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["UserServiceRespond"]: AliasType<{ service?: ValueTypes["Service"]; error?: ValueTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["Service"]: AliasType<{ name?: boolean | `@${string}`; description?: boolean | `@${string}`; ownerId?: boolean | `@${string}`; /** this field capture time, system does not recognize units, so be consent with your behavior */ time?: boolean | `@${string}`; startDate?: boolean | `@${string}`; _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; updatedAt?: boolean | `@${string}`; active?: boolean | `@${string}`; taken?: boolean | `@${string}`; neededAccept?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["BookingRecord"]: AliasType<{ bookerId?: boolean | `@${string}`; services?: ValueTypes["Service"]; comments?: ValueTypes["Comments"]; _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; status?: boolean | `@${string}`; answeredAt?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["GlobalError"]: AliasType<{ /** custom message of error */ message?: boolean | `@${string}`; /** path is name of resolver on which we got error */ path?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["dbEssentials"]: AliasType<{ _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; ['...on Service']?: Omit; ['...on BookingRecord']?: Omit; __typename?: boolean | `@${string}`; }>; ["PageOptionsInput"]: { /** default limit is 10 */ limit?: number | undefined | null | Variable; /** count stating from 0 */ page?: number | undefined | null | Variable; }; ["ListServicesFiltersInput"]: { /** name is regex */ name?: string | undefined | null | Variable; /** description is regex */ description?: string | undefined | null | Variable; fromDate?: ValueTypes["Date"] | undefined | null | Variable; toDate?: ValueTypes["Date"] | undefined | null | Variable; ownerId?: string | undefined | null | Variable; }; ["Date"]: unknown; ["BookStatus"]: BookStatus; ["ServiceType"]: ServiceType; }; export type ResolverInputTypes = { ["Query"]: AliasType<{ /** if used user query endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserQuery will throw error about malformed source */ user?: ResolverInputTypes["UserQuery"]; public?: ResolverInputTypes["PublicQuery"]; __typename?: boolean | `@${string}`; }>; ["UserQuery"]: AliasType<{ getSelfBooks?: [{ input?: ResolverInputTypes["GetBooksInput"] | undefined | null; }, ResolverInputTypes["GetBooksRepsond"]]; getBookingsForService?: [{ input?: ResolverInputTypes["GetBookingsForServiceInput"] | undefined | null; }, ResolverInputTypes["GetBookingsForServiceRespond"]]; getSelfServices?: [{ input?: ResolverInputTypes["GetSelfServicesInput"] | undefined | null; }, ResolverInputTypes["GetSelfServicesRespond"]]; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ /** if used user mutation endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserMutation will throw error about malformed source */ user?: ResolverInputTypes["UserMutation"]; __typename?: boolean | `@${string}`; }>; ["PublicQuery"]: AliasType<{ listServices?: [{ input?: ResolverInputTypes["ListServicesInput"] | undefined | null; }, ResolverInputTypes["ListServicesRespond"]]; getService?: [{ serviceId: string; }, ResolverInputTypes["GetServiceRespond"]]; __typename?: boolean | `@${string}`; }>; ["UserMutation"]: AliasType<{ registerService?: [{ input: ResolverInputTypes["RegisterServiceInput"]; }, ResolverInputTypes["RegisterServiceRespond"]]; updateService?: [{ input: Array; }, ResolverInputTypes["UpdateServiceRespond"]]; removeService?: [{ serviceId: string; }, ResolverInputTypes["RemoveServiceRespond"]]; bookService?: [{ input: ResolverInputTypes["BookServiceInput"]; }, ResolverInputTypes["BookServiceRespond"]]; updateBooking?: [{ input: ResolverInputTypes["UpdateBookingInput"]; }, ResolverInputTypes["BookServiceRespond"]]; removeBooking?: [{ _id: string; }, ResolverInputTypes["RemoveServiceRespond"]]; send?: [{ mailgunData: ResolverInputTypes["MailgunData"]; }, boolean | `@${string}`]; respondOnServiceRequest?: [{ input: ResolverInputTypes["RespondOnServiceRequestInput"]; }, ResolverInputTypes["RespondOnServiceRequestRespond"]]; __typename?: boolean | `@${string}`; }>; ["UpdateBookingInput"]: { _id: string; addServiceIds?: Array | undefined | null; removeServiceIds?: Array | undefined | null; comments?: ResolverInputTypes["UpdateReservationInfoInput"] | undefined | null; }; ["UserInput"]: { name: string; secondName?: string | undefined | null; phone?: string | undefined | null; email?: string | undefined | null; }; ["UpdateUserInput"]: { name?: string | undefined | null; bookerId?: string | undefined | null; secondName?: string | undefined | null; phone?: string | undefined | null; email?: string | undefined | null; }; ["MailgunData"]: { to: string; subject: string; message: string; from?: string | undefined | null; }; ["GetBookingsForServiceInput"]: { page?: ResolverInputTypes["PageOptionsInput"] | undefined | null; filters?: ResolverInputTypes["GetBookingsForServiceFiltersInput"] | undefined | null; }; ["GetBookingsForServiceFiltersInput"]: { fromDate?: ResolverInputTypes["Date"] | undefined | null; toDate?: ResolverInputTypes["Date"] | undefined | null; bookerId?: string | undefined | null; status?: ResolverInputTypes["BookStatus"] | undefined | null; }; ["GetBookingsForServiceRespond"]: AliasType<{ books?: ResolverInputTypes["BookingRecord"]; error?: ResolverInputTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RespondOnServiceRequestInput"]: { bookIds: Array; /** answer field cannot be PENDING, otherwise it will throw error */ answer: ResolverInputTypes["BookStatus"]; }; ["GetSelfServicesInput"]: { page?: ResolverInputTypes["PageOptionsInput"] | undefined | null; filters?: ResolverInputTypes["GetSelfServicesFiltersInput"] | undefined | null; }; ["GetSelfServicesFiltersInput"]: { /** name is regex */ name?: string | undefined | null; /** description is regex */ description?: string | undefined | null; fromDate?: ResolverInputTypes["Date"] | undefined | null; toDate?: ResolverInputTypes["Date"] | undefined | null; }; ["GetSelfServicesRespond"]: AliasType<{ service?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RespondOnServiceRequestRespond"]: AliasType<{ status?: boolean | `@${string}`; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["GetBooksInput"]: { page?: ResolverInputTypes["PageOptionsInput"] | undefined | null; filters?: ResolverInputTypes["GetBooksFiltersInput"] | undefined | null; }; ["GetBooksFiltersInput"]: { fromDate?: ResolverInputTypes["Date"] | undefined | null; toDate?: ResolverInputTypes["Date"] | undefined | null; status?: ResolverInputTypes["BookStatus"] | undefined | null; }; ["ListServicesInput"]: { page?: ResolverInputTypes["PageOptionsInput"] | undefined | null; filters?: ResolverInputTypes["ListServicesFiltersInput"] | undefined | null; }; ["GetBooksRepsond"]: AliasType<{ books?: ResolverInputTypes["BookingRecord"]; error?: ResolverInputTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ListServicesRespond"]: AliasType<{ services?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; hasNextPage?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["GetServiceRespond"]: AliasType<{ service?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RegisterUserInput"]: { username: string; email: string; phone?: string | undefined | null; }; ["RegisterServiceInput"]: { name: string; description?: string | undefined | null; startDates: Array; time?: number | undefined | null; neededAccept?: boolean | undefined | null; active?: boolean | undefined | null; }; ["UpdateReservationInfoInput"]: { user?: ResolverInputTypes["UpdateUserInput"] | undefined | null; comments?: string | undefined | null; numberOfGuests?: number | undefined | null; numberOfKids?: number | undefined | null; animals?: boolean | undefined | null; lateCheckIn?: boolean | undefined | null; from?: ResolverInputTypes["Date"] | undefined | null; to?: ResolverInputTypes["Date"] | undefined | null; price?: number | undefined | null; }; ["ReservationInfoInput"]: { user: ResolverInputTypes["UserInput"]; comments?: string | undefined | null; numberOfGuests?: number | undefined | null; numberOfKids?: number | undefined | null; animals?: boolean | undefined | null; lateCheckIn?: boolean | undefined | null; from?: ResolverInputTypes["Date"] | undefined | null; to?: ResolverInputTypes["Date"] | undefined | null; price?: number | undefined | null; }; ["Comments"]: AliasType<{ user?: ResolverInputTypes["User"]; comments?: boolean | `@${string}`; numberOfGuests?: boolean | `@${string}`; numberOfKids?: boolean | `@${string}`; animals?: boolean | `@${string}`; lateCheckIn?: boolean | `@${string}`; from?: boolean | `@${string}`; to?: boolean | `@${string}`; price?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["User"]: AliasType<{ name?: boolean | `@${string}`; secondName?: boolean | `@${string}`; phone?: boolean | `@${string}`; email?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["RegisterServiceRespond"]: AliasType<{ service?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["UpdateServiceInput"]: { serviceId: string; name?: string | undefined | null; description?: string | undefined | null; startDate?: ResolverInputTypes["Date"] | undefined | null; time?: number | undefined | null; active?: boolean | undefined | null; neededAccept?: boolean | undefined | null; }; ["UpdateServiceRespond"]: AliasType<{ service?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RemoveServiceRespond"]: AliasType<{ removed?: boolean | `@${string}`; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["RemoveBookingRespond"]: AliasType<{ removed?: boolean | `@${string}`; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["BookServiceInput"]: { serviceIds: Array; comments?: ResolverInputTypes["ReservationInfoInput"] | undefined | null; }; ["BookServiceRespond"]: AliasType<{ book?: ResolverInputTypes["BookingRecord"]; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["UserServiceRespond"]: AliasType<{ service?: ResolverInputTypes["Service"]; error?: ResolverInputTypes["GlobalError"]; __typename?: boolean | `@${string}`; }>; ["Service"]: AliasType<{ name?: boolean | `@${string}`; description?: boolean | `@${string}`; ownerId?: boolean | `@${string}`; /** this field capture time, system does not recognize units, so be consent with your behavior */ time?: boolean | `@${string}`; startDate?: boolean | `@${string}`; _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; updatedAt?: boolean | `@${string}`; active?: boolean | `@${string}`; taken?: boolean | `@${string}`; neededAccept?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["BookingRecord"]: AliasType<{ bookerId?: boolean | `@${string}`; services?: ResolverInputTypes["Service"]; comments?: ResolverInputTypes["Comments"]; _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; status?: boolean | `@${string}`; answeredAt?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["GlobalError"]: AliasType<{ /** custom message of error */ message?: boolean | `@${string}`; /** path is name of resolver on which we got error */ path?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["dbEssentials"]: AliasType<{ _id?: boolean | `@${string}`; createdAt?: boolean | `@${string}`; ['...on Service']?: Omit; ['...on BookingRecord']?: Omit; __typename?: boolean | `@${string}`; }>; ["PageOptionsInput"]: { /** default limit is 10 */ limit?: number | undefined | null; /** count stating from 0 */ page?: number | undefined | null; }; ["ListServicesFiltersInput"]: { /** name is regex */ name?: string | undefined | null; /** description is regex */ description?: string | undefined | null; fromDate?: ResolverInputTypes["Date"] | undefined | null; toDate?: ResolverInputTypes["Date"] | undefined | null; ownerId?: string | undefined | null; }; ["Date"]: unknown; ["BookStatus"]: BookStatus; ["ServiceType"]: ServiceType; ["schema"]: AliasType<{ query?: ResolverInputTypes["Query"]; mutation?: ResolverInputTypes["Mutation"]; __typename?: boolean | `@${string}`; }>; }; export type ModelTypes = { ["Query"]: { /** if used user query endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserQuery will throw error about malformed source */ user?: ModelTypes["UserQuery"] | undefined; public?: ModelTypes["PublicQuery"] | undefined; }; ["UserQuery"]: { /** This endpoint returns books owned by the user and sorted by the date of creation. */ getSelfBooks: ModelTypes["GetBooksRepsond"]; /** This endpoint returns bookings for a specific service and sorted by the date of creation. */ getBookingsForService: ModelTypes["GetBookingsForServiceRespond"]; /** This endpoint returns services owned by the user and sorted by the date of creation. */ getSelfServices: ModelTypes["GetSelfServicesRespond"]; }; ["Mutation"]: { /** if used user mutation endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserMutation will throw error about malformed source */ user?: ModelTypes["UserMutation"] | undefined; }; ["PublicQuery"]: { listServices: ModelTypes["ListServicesRespond"]; getService: ModelTypes["GetServiceRespond"]; }; ["UserMutation"]: { registerService?: ModelTypes["RegisterServiceRespond"] | undefined; updateService: ModelTypes["UpdateServiceRespond"]; removeService: ModelTypes["RemoveServiceRespond"]; bookService: ModelTypes["BookServiceRespond"]; updateBooking: ModelTypes["BookServiceRespond"]; removeBooking: ModelTypes["RemoveServiceRespond"]; send?: string | undefined; respondOnServiceRequest: ModelTypes["RespondOnServiceRequestRespond"]; }; ["UpdateBookingInput"]: { _id: string; addServiceIds?: Array | undefined; removeServiceIds?: Array | undefined; comments?: ModelTypes["UpdateReservationInfoInput"] | undefined; }; ["UserInput"]: { name: string; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["UpdateUserInput"]: { name?: string | undefined; bookerId?: string | undefined; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["MailgunData"]: { to: string; subject: string; message: string; from?: string | undefined; }; ["GetBookingsForServiceInput"]: { page?: ModelTypes["PageOptionsInput"] | undefined; filters?: ModelTypes["GetBookingsForServiceFiltersInput"] | undefined; }; ["GetBookingsForServiceFiltersInput"]: { fromDate?: ModelTypes["Date"] | undefined; toDate?: ModelTypes["Date"] | undefined; bookerId?: string | undefined; status?: ModelTypes["BookStatus"] | undefined; }; ["GetBookingsForServiceRespond"]: { books?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["RespondOnServiceRequestInput"]: { bookIds: Array; /** answer field cannot be PENDING, otherwise it will throw error */ answer: ModelTypes["BookStatus"]; }; ["GetSelfServicesInput"]: { page?: ModelTypes["PageOptionsInput"] | undefined; filters?: ModelTypes["GetSelfServicesFiltersInput"] | undefined; }; ["GetSelfServicesFiltersInput"]: { /** name is regex */ name?: string | undefined; /** description is regex */ description?: string | undefined; fromDate?: ModelTypes["Date"] | undefined; toDate?: ModelTypes["Date"] | undefined; }; ["GetSelfServicesRespond"]: { service?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["RespondOnServiceRequestRespond"]: { status: boolean; error?: ModelTypes["GlobalError"] | undefined; }; ["GetBooksInput"]: { page?: ModelTypes["PageOptionsInput"] | undefined; filters?: ModelTypes["GetBooksFiltersInput"] | undefined; }; ["GetBooksFiltersInput"]: { fromDate?: ModelTypes["Date"] | undefined; toDate?: ModelTypes["Date"] | undefined; status?: ModelTypes["BookStatus"] | undefined; }; ["ListServicesInput"]: { page?: ModelTypes["PageOptionsInput"] | undefined; filters?: ModelTypes["ListServicesFiltersInput"] | undefined; }; ["GetBooksRepsond"]: { books?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["ListServicesRespond"]: { services?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["GetServiceRespond"]: { service?: ModelTypes["Service"] | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["RegisterUserInput"]: { username: string; email: string; phone?: string | undefined; }; ["RegisterServiceInput"]: { name: string; description?: string | undefined; startDates: Array; time?: number | undefined; neededAccept?: boolean | undefined; active?: boolean | undefined; }; ["UpdateReservationInfoInput"]: { user?: ModelTypes["UpdateUserInput"] | undefined; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: ModelTypes["Date"] | undefined; to?: ModelTypes["Date"] | undefined; price?: number | undefined; }; ["ReservationInfoInput"]: { user: ModelTypes["UserInput"]; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: ModelTypes["Date"] | undefined; to?: ModelTypes["Date"] | undefined; price?: number | undefined; }; ["Comments"]: { user?: ModelTypes["User"] | undefined; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: ModelTypes["Date"] | undefined; to?: ModelTypes["Date"] | undefined; price?: number | undefined; }; ["User"]: { name: string; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["RegisterServiceRespond"]: { service?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["UpdateServiceInput"]: { serviceId: string; name?: string | undefined; description?: string | undefined; startDate?: ModelTypes["Date"] | undefined; time?: number | undefined; active?: boolean | undefined; neededAccept?: boolean | undefined; }; ["UpdateServiceRespond"]: { service?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["RemoveServiceRespond"]: { removed?: boolean | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["RemoveBookingRespond"]: { removed?: boolean | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["BookServiceInput"]: { serviceIds: Array; comments?: ModelTypes["ReservationInfoInput"] | undefined; }; ["BookServiceRespond"]: { book?: ModelTypes["BookingRecord"] | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["UserServiceRespond"]: { service?: Array | undefined; error?: ModelTypes["GlobalError"] | undefined; }; ["Service"]: { name: string; description?: string | undefined; ownerId: string; /** this field capture time, system does not recognize units, so be consent with your behavior */ time?: number | undefined; startDate: ModelTypes["Date"]; _id: string; createdAt: ModelTypes["Date"]; updatedAt?: ModelTypes["Date"] | undefined; active?: boolean | undefined; taken?: boolean | undefined; neededAccept?: boolean | undefined; }; ["BookingRecord"]: { bookerId: string; services?: Array | undefined; comments?: ModelTypes["Comments"] | undefined; _id: string; createdAt: ModelTypes["Date"]; status: ModelTypes["BookStatus"]; answeredAt?: ModelTypes["Date"] | undefined; }; ["GlobalError"]: { /** custom message of error */ message?: string | undefined; /** path is name of resolver on which we got error */ path?: string | undefined; }; ["dbEssentials"]: ModelTypes["Service"] | ModelTypes["BookingRecord"]; ["PageOptionsInput"]: { /** default limit is 10 */ limit?: number | undefined; /** count stating from 0 */ page?: number | undefined; }; ["ListServicesFiltersInput"]: { /** name is regex */ name?: string | undefined; /** description is regex */ description?: string | undefined; fromDate?: ModelTypes["Date"] | undefined; toDate?: ModelTypes["Date"] | undefined; ownerId?: string | undefined; }; ["Date"]: any; ["BookStatus"]: BookStatus; ["ServiceType"]: ServiceType; ["schema"]: { query?: ModelTypes["Query"] | undefined; mutation?: ModelTypes["Mutation"] | undefined; }; }; export type GraphQLTypes = { ["Query"]: { __typename: "Query"; /** if used user query endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserQuery will throw error about malformed source */ user?: GraphQLTypes["UserQuery"] | undefined; public?: GraphQLTypes["PublicQuery"] | undefined; }; ["UserQuery"]: { __typename: "UserQuery"; /** This endpoint returns books owned by the user and sorted by the date of creation. */ getSelfBooks: GraphQLTypes["GetBooksRepsond"]; /** This endpoint returns bookings for a specific service and sorted by the date of creation. */ getBookingsForService: GraphQLTypes["GetBookingsForServiceRespond"]; /** This endpoint returns services owned by the user and sorted by the date of creation. */ getSelfServices: GraphQLTypes["GetSelfServicesRespond"]; }; ["Mutation"]: { __typename: "Mutation"; /** if used user mutation endpoint, it should contain in source: userId: String! which will be unique identifier for every user in system in otherwise any endpoint in UserMutation will throw error about malformed source */ user?: GraphQLTypes["UserMutation"] | undefined; }; ["PublicQuery"]: { __typename: "PublicQuery"; listServices: GraphQLTypes["ListServicesRespond"]; getService: GraphQLTypes["GetServiceRespond"]; }; ["UserMutation"]: { __typename: "UserMutation"; registerService?: GraphQLTypes["RegisterServiceRespond"] | undefined; updateService: GraphQLTypes["UpdateServiceRespond"]; removeService: GraphQLTypes["RemoveServiceRespond"]; bookService: GraphQLTypes["BookServiceRespond"]; updateBooking: GraphQLTypes["BookServiceRespond"]; removeBooking: GraphQLTypes["RemoveServiceRespond"]; send?: string | undefined; respondOnServiceRequest: GraphQLTypes["RespondOnServiceRequestRespond"]; }; ["UpdateBookingInput"]: { _id: string; addServiceIds?: Array | undefined; removeServiceIds?: Array | undefined; comments?: GraphQLTypes["UpdateReservationInfoInput"] | undefined; }; ["UserInput"]: { name: string; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["UpdateUserInput"]: { name?: string | undefined; bookerId?: string | undefined; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["MailgunData"]: { to: string; subject: string; message: string; from?: string | undefined; }; ["GetBookingsForServiceInput"]: { page?: GraphQLTypes["PageOptionsInput"] | undefined; filters?: GraphQLTypes["GetBookingsForServiceFiltersInput"] | undefined; }; ["GetBookingsForServiceFiltersInput"]: { fromDate?: GraphQLTypes["Date"] | undefined; toDate?: GraphQLTypes["Date"] | undefined; bookerId?: string | undefined; status?: GraphQLTypes["BookStatus"] | undefined; }; ["GetBookingsForServiceRespond"]: { __typename: "GetBookingsForServiceRespond"; books?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["RespondOnServiceRequestInput"]: { bookIds: Array; /** answer field cannot be PENDING, otherwise it will throw error */ answer: GraphQLTypes["BookStatus"]; }; ["GetSelfServicesInput"]: { page?: GraphQLTypes["PageOptionsInput"] | undefined; filters?: GraphQLTypes["GetSelfServicesFiltersInput"] | undefined; }; ["GetSelfServicesFiltersInput"]: { /** name is regex */ name?: string | undefined; /** description is regex */ description?: string | undefined; fromDate?: GraphQLTypes["Date"] | undefined; toDate?: GraphQLTypes["Date"] | undefined; }; ["GetSelfServicesRespond"]: { __typename: "GetSelfServicesRespond"; service?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["RespondOnServiceRequestRespond"]: { __typename: "RespondOnServiceRequestRespond"; status: boolean; error?: GraphQLTypes["GlobalError"] | undefined; }; ["GetBooksInput"]: { page?: GraphQLTypes["PageOptionsInput"] | undefined; filters?: GraphQLTypes["GetBooksFiltersInput"] | undefined; }; ["GetBooksFiltersInput"]: { fromDate?: GraphQLTypes["Date"] | undefined; toDate?: GraphQLTypes["Date"] | undefined; status?: GraphQLTypes["BookStatus"] | undefined; }; ["ListServicesInput"]: { page?: GraphQLTypes["PageOptionsInput"] | undefined; filters?: GraphQLTypes["ListServicesFiltersInput"] | undefined; }; ["GetBooksRepsond"]: { __typename: "GetBooksRepsond"; books?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["ListServicesRespond"]: { __typename: "ListServicesRespond"; services?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; hasNextPage?: boolean | undefined; }; ["GetServiceRespond"]: { __typename: "GetServiceRespond"; service?: GraphQLTypes["Service"] | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["RegisterUserInput"]: { username: string; email: string; phone?: string | undefined; }; ["RegisterServiceInput"]: { name: string; description?: string | undefined; startDates: Array; time?: number | undefined; neededAccept?: boolean | undefined; active?: boolean | undefined; }; ["UpdateReservationInfoInput"]: { user?: GraphQLTypes["UpdateUserInput"] | undefined; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: GraphQLTypes["Date"] | undefined; to?: GraphQLTypes["Date"] | undefined; price?: number | undefined; }; ["ReservationInfoInput"]: { user: GraphQLTypes["UserInput"]; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: GraphQLTypes["Date"] | undefined; to?: GraphQLTypes["Date"] | undefined; price?: number | undefined; }; ["Comments"]: { __typename: "Comments"; user?: GraphQLTypes["User"] | undefined; comments?: string | undefined; numberOfGuests?: number | undefined; numberOfKids?: number | undefined; animals?: boolean | undefined; lateCheckIn?: boolean | undefined; from?: GraphQLTypes["Date"] | undefined; to?: GraphQLTypes["Date"] | undefined; price?: number | undefined; }; ["User"]: { __typename: "User"; name: string; secondName?: string | undefined; phone?: string | undefined; email?: string | undefined; }; ["RegisterServiceRespond"]: { __typename: "RegisterServiceRespond"; service?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["UpdateServiceInput"]: { serviceId: string; name?: string | undefined; description?: string | undefined; startDate?: GraphQLTypes["Date"] | undefined; time?: number | undefined; active?: boolean | undefined; neededAccept?: boolean | undefined; }; ["UpdateServiceRespond"]: { __typename: "UpdateServiceRespond"; service?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["RemoveServiceRespond"]: { __typename: "RemoveServiceRespond"; removed?: boolean | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["RemoveBookingRespond"]: { __typename: "RemoveBookingRespond"; removed?: boolean | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["BookServiceInput"]: { serviceIds: Array; comments?: GraphQLTypes["ReservationInfoInput"] | undefined; }; ["BookServiceRespond"]: { __typename: "BookServiceRespond"; book?: GraphQLTypes["BookingRecord"] | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["UserServiceRespond"]: { __typename: "UserServiceRespond"; service?: Array | undefined; error?: GraphQLTypes["GlobalError"] | undefined; }; ["Service"]: { __typename: "Service"; name: string; description?: string | undefined; ownerId: string; /** this field capture time, system does not recognize units, so be consent with your behavior */ time?: number | undefined; startDate: GraphQLTypes["Date"]; _id: string; createdAt: GraphQLTypes["Date"]; updatedAt?: GraphQLTypes["Date"] | undefined; active?: boolean | undefined; taken?: boolean | undefined; neededAccept?: boolean | undefined; }; ["BookingRecord"]: { __typename: "BookingRecord"; bookerId: string; services?: Array | undefined; comments?: GraphQLTypes["Comments"] | undefined; _id: string; createdAt: GraphQLTypes["Date"]; status: GraphQLTypes["BookStatus"]; answeredAt?: GraphQLTypes["Date"] | undefined; }; ["GlobalError"]: { __typename: "GlobalError"; /** custom message of error */ message?: string | undefined; /** path is name of resolver on which we got error */ path?: string | undefined; }; ["dbEssentials"]: { __typename: "Service" | "BookingRecord"; _id: string; createdAt: GraphQLTypes["Date"]; ['...on Service']: '__union' & GraphQLTypes["Service"]; ['...on BookingRecord']: '__union' & GraphQLTypes["BookingRecord"]; }; ["PageOptionsInput"]: { /** default limit is 10 */ limit?: number | undefined; /** count stating from 0 */ page?: number | undefined; }; ["ListServicesFiltersInput"]: { /** name is regex */ name?: string | undefined; /** description is regex */ description?: string | undefined; fromDate?: GraphQLTypes["Date"] | undefined; toDate?: GraphQLTypes["Date"] | undefined; ownerId?: string | undefined; }; ["Date"]: "scalar" & { name: "Date"; }; ["BookStatus"]: BookStatus; ["ServiceType"]: ServiceType; }; export declare const enum BookStatus { PENDING = "PENDING", ACCEPTED = "ACCEPTED", DECLINED = "DECLINED" } export declare const enum ServiceType { TIME = "TIME", EXPIRATION = "EXPIRATION" } type ZEUS_VARIABLES = { ["UpdateBookingInput"]: ValueTypes["UpdateBookingInput"]; ["UserInput"]: ValueTypes["UserInput"]; ["UpdateUserInput"]: ValueTypes["UpdateUserInput"]; ["MailgunData"]: ValueTypes["MailgunData"]; ["GetBookingsForServiceInput"]: ValueTypes["GetBookingsForServiceInput"]; ["GetBookingsForServiceFiltersInput"]: ValueTypes["GetBookingsForServiceFiltersInput"]; ["RespondOnServiceRequestInput"]: ValueTypes["RespondOnServiceRequestInput"]; ["GetSelfServicesInput"]: ValueTypes["GetSelfServicesInput"]; ["GetSelfServicesFiltersInput"]: ValueTypes["GetSelfServicesFiltersInput"]; ["GetBooksInput"]: ValueTypes["GetBooksInput"]; ["GetBooksFiltersInput"]: ValueTypes["GetBooksFiltersInput"]; ["ListServicesInput"]: ValueTypes["ListServicesInput"]; ["RegisterUserInput"]: ValueTypes["RegisterUserInput"]; ["RegisterServiceInput"]: ValueTypes["RegisterServiceInput"]; ["UpdateReservationInfoInput"]: ValueTypes["UpdateReservationInfoInput"]; ["ReservationInfoInput"]: ValueTypes["ReservationInfoInput"]; ["UpdateServiceInput"]: ValueTypes["UpdateServiceInput"]; ["BookServiceInput"]: ValueTypes["BookServiceInput"]; ["PageOptionsInput"]: ValueTypes["PageOptionsInput"]; ["ListServicesFiltersInput"]: ValueTypes["ListServicesFiltersInput"]; ["Date"]: ValueTypes["Date"]; ["BookStatus"]: ValueTypes["BookStatus"]; ["ServiceType"]: ValueTypes["ServiceType"]; }; export {};