23 lines
532 B
TypeScript
23 lines
532 B
TypeScript
import { APIGatewayProxyEvent, Context } from 'aws-lambda';
|
|
import AccountModel from '@src/accounts/account.model';
|
|
|
|
export interface ApolloContext {
|
|
event: APIGatewayProxyEvent;
|
|
context: Context;
|
|
ctx: {
|
|
organisationId: string | null;
|
|
user: AccountModel;
|
|
loaders: any;
|
|
noOrganisationCheck?: boolean;
|
|
noPermissionCheck?: boolean;
|
|
};
|
|
}
|
|
|
|
export interface ApolloContextLoadersOnly {
|
|
event: APIGatewayProxyEvent;
|
|
context: Context;
|
|
ctx: {
|
|
loaders: any;
|
|
};
|
|
}
|