This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/@graphql-tools/prisma-loader/prisma-yml/prisma-json-schema.d.ts

39 lines
988 B
TypeScript

export interface PrismaDefinition {
datamodel?: string | string[];
subscriptions?: SubscriptionMap;
custom?: any;
secret?: string;
disableAuth?: boolean;
seed?: Seed;
endpoint?: string;
hooks?: any;
generate?: Generate[];
databaseType?: DatabaseType;
}
export declare type DatabaseType = 'relational' | 'document';
export interface Generate {
generator: string;
output: string;
}
export interface Seed {
import?: string;
run?: string;
}
export interface SubscriptionMap {
[subscriptionName: string]: SubscriptionDefinition;
}
export interface SubscriptionDefinition {
query: string;
webhook: FunctionHandlerWebhookSource;
}
export declare type FunctionHandlerWebhookSource = string | FunctionHandlerWebhookWithHeaders;
export interface FunctionHandlerWebhookWithHeaders {
url: string;
headers?: Headers;
}
export interface Headers {
[key: string]: string;
}
declare const schema: any;
export default schema;