UNPKG

988 BTypeScriptView Raw
1export interface PrismaDefinition {
2 datamodel?: string | string[];
3 subscriptions?: SubscriptionMap;
4 custom?: any;
5 secret?: string;
6 disableAuth?: boolean;
7 seed?: Seed;
8 endpoint?: string;
9 hooks?: any;
10 generate?: Generate[];
11 databaseType?: DatabaseType;
12}
13export declare type DatabaseType = 'relational' | 'document';
14export interface Generate {
15 generator: string;
16 output: string;
17}
18export interface Seed {
19 import?: string;
20 run?: string;
21}
22export interface SubscriptionMap {
23 [subscriptionName: string]: SubscriptionDefinition;
24}
25export interface SubscriptionDefinition {
26 query: string;
27 webhook: FunctionHandlerWebhookSource;
28}
29export declare type FunctionHandlerWebhookSource = string | FunctionHandlerWebhookWithHeaders;
30export interface FunctionHandlerWebhookWithHeaders {
31 url: string;
32 headers?: Headers;
33}
34export interface Headers {
35 [key: string]: string;
36}
37declare const schema: any;
38export default schema;