This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
requestor/lib/KnexCrudOptions.ts

26 lines
757 B
TypeScript
Raw Normal View History

2020-04-16 11:09:04 +02:00
import { Request, Response } from 'express';
type Authentication = {
(req: Request, res: Response, next: Function);
2020-04-17 08:31:14 +02:00
(req: Request, res: Response): Promise<boolean>;
2020-04-16 11:09:04 +02:00
}
type Authorization = {
(req: Request, res: Response, next: Function);
2020-04-17 08:31:14 +02:00
(req: Request, res: Response): Promise<boolean>;
2020-04-16 11:09:04 +02:00
}
export class KnexCrudOptions {
public create_authentication?: Authentication;
public read_authentication?: Authentication;
public update_authentication?: Authentication;
public delete_authentication?: Authentication;
public create_authorization?: Authorization;
public read_authorization?: Authorization;
public update_authorization?: Authorization;
public delete_authorization?: Authorization;
public optional_columns?: Array<string>;
}