1 | export 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 | }
|
13 | export declare type DatabaseType = 'relational' | 'document';
|
14 | export interface Generate {
|
15 | generator: string;
|
16 | output: string;
|
17 | }
|
18 | export interface Seed {
|
19 | import?: string;
|
20 | run?: string;
|
21 | }
|
22 | export interface SubscriptionMap {
|
23 | [subscriptionName: string]: SubscriptionDefinition;
|
24 | }
|
25 | export interface SubscriptionDefinition {
|
26 | query: string;
|
27 | webhook: FunctionHandlerWebhookSource;
|
28 | }
|
29 | export declare type FunctionHandlerWebhookSource = string | FunctionHandlerWebhookWithHeaders;
|
30 | export interface FunctionHandlerWebhookWithHeaders {
|
31 | url: string;
|
32 | headers?: Headers;
|
33 | }
|
34 | export interface Headers {
|
35 | [key: string]: string;
|
36 | }
|
37 | declare const schema: any;
|
38 | export default schema;
|