2025-05-14 21:45:16 +02:00

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;
};
}