listpage-next-nest 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -3
- package/dist/esm/index.d.ts +0 -108
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "listpage-next-nest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A React component library for creating filter forms with Ant Design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -37,5 +37,14 @@
|
|
|
37
37
|
"typescript": "^5.9.2",
|
|
38
38
|
"@microsoft/api-extractor": "~7.52.13"
|
|
39
39
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
40
|
+
"peerDependencies": {},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"class-transformer": "~0.5.1",
|
|
43
|
+
"class-validator": "~0.14.2",
|
|
44
|
+
"@nestjs/common": "~11.1.6",
|
|
45
|
+
"uuid": "9.0.1",
|
|
46
|
+
"express": "~5.1.0",
|
|
47
|
+
"@types/express": "~5.0.3",
|
|
48
|
+
"rxjs": "~7.8.2"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { ArgumentsHost } from '@nestjs/common';
|
|
2
|
-
import { CallHandler } from '@nestjs/common';
|
|
3
|
-
import { ExceptionFilter } from '@nestjs/common';
|
|
4
|
-
import { ExecutionContext } from '@nestjs/common';
|
|
5
|
-
import { INestApplication } from '@nestjs/common';
|
|
6
|
-
import { NestInterceptor } from '@nestjs/common';
|
|
7
|
-
import { NestMiddleware } from '@nestjs/common';
|
|
8
|
-
import { NextFunction } from 'express';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { Request as Request_2 } from 'express';
|
|
11
|
-
import { Response as Response_2 } from 'express';
|
|
12
|
-
|
|
13
|
-
export declare class ApiResponse<T = any> {
|
|
14
|
-
code: number;
|
|
15
|
-
message: string;
|
|
16
|
-
data?: T;
|
|
17
|
-
constructor(code: number, message: string, data?: T);
|
|
18
|
-
static success<T>(data?: T, message?: string): ApiResponse<T>;
|
|
19
|
-
static error(message: string, code?: number): ApiResponse;
|
|
20
|
-
static created<T>(data?: T, message?: string): ApiResponse<T>;
|
|
21
|
-
static badRequest(message?: string): ApiResponse;
|
|
22
|
-
static unauthorized(message?: string): ApiResponse;
|
|
23
|
-
static forbidden(message?: string): ApiResponse;
|
|
24
|
-
static notFound(message?: string): ApiResponse;
|
|
25
|
-
static conflict(message?: string): ApiResponse;
|
|
26
|
-
static validationError(message?: string): ApiResponse;
|
|
27
|
-
static internalError(message?: string): ApiResponse;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export declare class BaseQueryDto {
|
|
31
|
-
current?: number;
|
|
32
|
-
pageSize?: number;
|
|
33
|
-
sort?: string;
|
|
34
|
-
get sortField(): string;
|
|
35
|
-
get sortOrder(): 'asc' | 'desc';
|
|
36
|
-
get skip(): number;
|
|
37
|
-
get take(): number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export declare class CorsInterceptor implements NestInterceptor {
|
|
41
|
-
intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare class HttpExceptionFilter implements ExceptionFilter {
|
|
45
|
-
private readonly logger;
|
|
46
|
-
catch(exception: unknown, host: ArgumentsHost): void;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export declare class LoggingInterceptor implements NestInterceptor {
|
|
50
|
-
private readonly logger;
|
|
51
|
-
intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export declare class PaginatedResponse<T> extends ApiResponse<PaginationData<T>> {
|
|
55
|
-
constructor(list: T[], current: number, pageSize: number, total: number, message?: string);
|
|
56
|
-
static create<T>(list: T[], current: number, pageSize: number, total: number, message?: string): PaginatedResponse<T>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export declare class PaginationData<T> {
|
|
60
|
-
total: number;
|
|
61
|
-
pageSize: number;
|
|
62
|
-
current: number;
|
|
63
|
-
list: T[];
|
|
64
|
-
constructor(list: T[], current: number, pageSize: number, total: number);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare interface RequestContext {
|
|
68
|
-
requestId: string;
|
|
69
|
-
startTime: number;
|
|
70
|
-
method: string;
|
|
71
|
-
url: string;
|
|
72
|
-
ip: string;
|
|
73
|
-
userAgent: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export declare class RequestContextMiddleware implements NestMiddleware {
|
|
77
|
-
use(req: RequestWithId, res: Response_2, next: NextFunction): void;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export declare class RequestContextService {
|
|
81
|
-
private static asyncLocalStorage;
|
|
82
|
-
static run<T>(context: RequestContext, callback: () => T): T;
|
|
83
|
-
static getContext(): RequestContext | undefined;
|
|
84
|
-
static getRequestId(): string | undefined;
|
|
85
|
-
static setRequestId(requestId: string): void;
|
|
86
|
-
getRequestId(): string | undefined;
|
|
87
|
-
getContext(): RequestContext | undefined;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export declare class RequestIdMiddleware implements NestMiddleware {
|
|
91
|
-
use(req: RequestWithId_2, res: Response_2, next: NextFunction): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
declare interface RequestWithId extends Request_2 {
|
|
95
|
-
requestId: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
declare interface RequestWithId_2 extends Request_2 {
|
|
99
|
-
requestId: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export declare class ResponseInterceptor<T> implements NestInterceptor<T, any> {
|
|
103
|
-
intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export declare function setup(app: INestApplication): void;
|
|
107
|
-
|
|
108
|
-
export { }
|