Current section

Files

Jump to
common_graphql_client priv npm node_modules graphql-tools test fixtures schemas.d.ts
Raw

priv/npm/node_modules/graphql-tools/test/fixtures/schemas.d.ts

import { PubSub } from 'graphql-subscriptions';
import { GraphQLSchema } from 'graphql';
import { SubschemaConfig } from '../../Interfaces';
export declare type Location = {
name: string;
coordinates: string;
};
export declare type Property = {
id: string;
name: string;
location: Location;
};
export declare type Product = {
id: string;
price?: number;
url?: string;
type: string;
};
export declare type Booking = {
id: string;
propertyId: string;
customerId: string;
startTime: string;
endTime: string;
};
export declare type Customer = {
id: string;
email: string;
name: string;
address?: string;
vehicleId?: string;
};
export declare type Vehicle = {
id: string;
licensePlate?: string;
bikeType?: 'MOUNTAIN' | 'ROAD';
};
export declare const sampleData: {
Property: {
[key: string]: Property;
};
Product: {
[key: string]: Product;
};
Booking: {
[key: string]: Booking;
};
Customer: {
[key: string]: Customer;
};
Vehicle: {
[key: string]: Vehicle;
};
};
export declare const subscriptionPubSub: PubSub;
export declare const subscriptionPubSubTrigger = "pubSubTrigger";
export declare const propertySchema: GraphQLSchema;
export declare const productSchema: GraphQLSchema;
export declare const bookingSchema: GraphQLSchema;
export declare const subscriptionSchema: GraphQLSchema;
export declare function makeSchemaRemoteFromLink(schema: GraphQLSchema): Promise<SubschemaConfig>;
export declare function makeSchemaRemoteFromDispatchedLink(schema: GraphQLSchema): Promise<SubschemaConfig>;
export declare const remotePropertySchema: Promise<SubschemaConfig>;
export declare const remoteProductSchema: Promise<SubschemaConfig>;
export declare const remoteBookingSchema: Promise<SubschemaConfig>;