1 | import { Authority, Credential } from "./model";
|
2 | import { GraphQLNamedType, GraphQLFieldConfig } from "graphql";
|
3 | import { Context } from "./Context";
|
4 | export interface Strategy {
|
5 | name: string;
|
6 | types: GraphQLNamedType[];
|
7 | queryFields: {
|
8 | [field: string]: GraphQLFieldConfig<any, Context, any>;
|
9 | };
|
10 | mutationFields: {
|
11 | [field: string]: GraphQLFieldConfig<any, Context, any>;
|
12 | };
|
13 | authorityModel: {
|
14 | new (data: any): Authority<any>;
|
15 | };
|
16 | credentialModel: {
|
17 | new (data: any): Credential<any>;
|
18 | };
|
19 | }
|