1 | import { IConfigurable } from 'pip-services3-commons-node';
|
2 | import { ConfigParams } from 'pip-services3-commons-node';
|
3 | import { IReferences } from 'pip-services3-commons-node';
|
4 | import { IReferenceable } from 'pip-services3-commons-node';
|
5 | import { FilterParams } from 'pip-services3-commons-node';
|
6 | import { PagingParams } from 'pip-services3-commons-node';
|
7 | import { CompositeLogger } from 'pip-services3-components-node';
|
8 | import { CompositeCounters } from 'pip-services3-components-node';
|
9 | import { DependencyResolver } from 'pip-services3-commons-node';
|
10 | export declare abstract class RestOperations implements IConfigurable, IReferenceable {
|
11 | protected _logger: CompositeLogger;
|
12 | protected _counters: CompositeCounters;
|
13 | protected _dependencyResolver: DependencyResolver;
|
14 | constructor();
|
15 | configure(config: ConfigParams): void;
|
16 | setReferences(references: IReferences): void;
|
17 | protected getCorrelationId(req: any): any;
|
18 | protected getFilterParams(req: any): FilterParams;
|
19 | protected getPagingParams(req: any): PagingParams;
|
20 | protected sendResult(req: any, res: any): (err: any, result: any) => void;
|
21 | protected sendEmptyResult(req: any, res: any): (err: any) => void;
|
22 | protected sendCreatedResult(req: any, res: any): (err: any, result: any) => void;
|
23 | protected sendDeletedResult(req: any, res: any): (err: any, result: any) => void;
|
24 | protected sendError(req: any, res: any, error: any): void;
|
25 | protected sendBadRequest(req: any, res: any, message: string): void;
|
26 | protected sendUnauthorized(req: any, res: any, message: string): void;
|
27 | protected sendNotFound(req: any, res: any, message: string): void;
|
28 | protected sendConflict(req: any, res: any, message: string): void;
|
29 | protected sendSessionExpired(req: any, res: any, message: string): void;
|
30 | protected sendInternalError(req: any, res: any, message: string): void;
|
31 | protected sendServerUnavailable(req: any, res: any, message: string): void;
|
32 | invoke(operation: string): (req: any, res: any) => void;
|
33 | }
|