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