@clairejs/server 3.10.15 → 3.10.17
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/.prettierrc +8 -8
- package/README.md +750 -745
- package/dist/common/FileOperation.d.ts +5 -5
- package/dist/common/ServerModelMetadata.d.ts +10 -10
- package/dist/common/auth/AbstractPrincipalResolver.d.ts +4 -4
- package/dist/common/auth/IPrincipal.d.ts +4 -4
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/request/EndpointMetadata.d.ts +40 -40
- package/dist/common/request/HttpData.d.ts +1 -1
- package/dist/common/request/HttpEndpoint.d.ts +8 -8
- package/dist/common/request/JobData.d.ts +1 -1
- package/dist/common/request/MountedEndpointInfo.d.ts +6 -6
- package/dist/common/request/RequestOptions.d.ts +8 -8
- package/dist/common/request/SocketData.d.ts +1 -1
- package/dist/common/request/types.d.ts +1 -1
- package/dist/http/auth/AbstractHttpAuthorizationProvider.d.ts +9 -9
- package/dist/http/auth/AbstractRbacAuthProvider.d.ts +18 -18
- package/dist/http/auth/RedisRbacAuthProvider.d.ts +24 -24
- package/dist/http/auth/SocketRbacAuthProvider.d.ts +25 -25
- package/dist/http/auth/rbac.d.ts +34 -34
- package/dist/http/common/HttpRequest.d.ts +40 -40
- package/dist/http/common/HttpResponse.d.ts +34 -34
- package/dist/http/controller/AbstractHttpController.d.ts +9 -9
- package/dist/http/controller/AbstractHttpMiddleware.d.ts +10 -10
- package/dist/http/controller/AbstractHttpRequestHandler.d.ts +18 -16
- package/dist/http/controller/ControllerMetadata.d.ts +6 -6
- package/dist/http/controller/CrudHttpController.d.ts +41 -41
- package/dist/http/controller/DefaultHttpRequestHandler.d.ts +21 -21
- package/dist/http/decorators.d.ts +35 -35
- package/dist/http/file-upload/AbstractFileUploadHandler.d.ts +6 -6
- package/dist/http/file-upload/FileUploadHandler.d.ts +10 -10
- package/dist/http/file-upload/types.d.ts +3 -3
- package/dist/http/repository/AbstractRepository.d.ts +10 -10
- package/dist/http/repository/DtoRepository.d.ts +58 -58
- package/dist/http/repository/ICrudRepository.d.ts +27 -27
- package/dist/http/repository/ModelRepository.d.ts +37 -37
- package/dist/http/security/AbstractAccessCondition.d.ts +7 -7
- package/dist/http/security/access-conditions/DtoFieldValidation.d.ts +4 -4
- package/dist/http/security/access-conditions/FilterModelFieldAccessCondition.d.ts +4 -4
- package/dist/http/security/access-conditions/MaximumQueryLimit.d.ts +8 -8
- package/dist/http/security/cors.d.ts +6 -6
- package/dist/index.d.ts +58 -57
- package/dist/index.js +1 -1
- package/dist/job/AbstractJobController.d.ts +4 -4
- package/dist/job/AbstractJobRepository.d.ts +17 -17
- package/dist/job/AbstractJobScheduler.d.ts +38 -38
- package/dist/job/AwsJobScheduler.d.ts +48 -48
- package/dist/job/LocalJobScheduler.d.ts +88 -88
- package/dist/job/decorators.d.ts +5 -5
- package/dist/job/interfaces.d.ts +50 -50
- package/dist/logging/FileLogMedium.d.ts +13 -13
- package/dist/service/AbstractCacheService.d.ts +22 -22
- package/dist/service/AbstractFileService.d.ts +11 -11
- package/dist/service/AbstractService.d.ts +7 -7
- package/dist/socket/AbstractServerSocket.d.ts +18 -18
- package/dist/socket/AbstractServerSocketManager.d.ts +46 -46
- package/dist/socket/AbstractSocketConnectionHandler.d.ts +6 -6
- package/dist/socket/AbstractSocketController.d.ts +14 -14
- package/dist/socket/AwsSocketManager.d.ts +30 -30
- package/dist/socket/IServerSocket.d.ts +16 -16
- package/dist/socket/LocalSocketManager.d.ts +47 -47
- package/dist/system/ClaireServer.d.ts +13 -13
- package/dist/system/ExpressWrapper.d.ts +19 -21
- package/dist/system/LambdaWrapper.d.ts +25 -27
- package/dist/system/ServerGlobalStore.d.ts +8 -8
- package/dist/system/errors.d.ts +14 -14
- package/dist/system/lamba-request-mapper.d.ts +2 -2
- package/dist/system/locale/LocaleEntry.d.ts +3 -3
- package/dist/system/locale/LocaleTranslation.d.ts +6 -6
- package/dist/system/locale/decorators.d.ts +2 -2
- package/package.json +62 -62
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AccessConditionMetadata } from "@clairejs/core";
|
|
2
|
-
import { HttpRequest } from "../../common/HttpRequest";
|
|
3
|
-
import { AbstractAccessCondition } from "../AbstractAccessCondition";
|
|
4
|
-
export declare class MaximumQueryLimit extends AbstractAccessCondition {
|
|
5
|
-
resolveConditionValue(request: HttpRequest): Promise<any>;
|
|
6
|
-
validate(conditionValue: number, permittedConditionValue: number): Promise<boolean>;
|
|
7
|
-
getConditionMetadata(): AccessConditionMetadata;
|
|
8
|
-
}
|
|
1
|
+
import { AccessConditionMetadata } from "@clairejs/core";
|
|
2
|
+
import { HttpRequest } from "../../common/HttpRequest";
|
|
3
|
+
import { AbstractAccessCondition } from "../AbstractAccessCondition";
|
|
4
|
+
export declare class MaximumQueryLimit extends AbstractAccessCondition {
|
|
5
|
+
resolveConditionValue(request: HttpRequest): Promise<any>;
|
|
6
|
+
validate(conditionValue: number, permittedConditionValue: number): Promise<boolean>;
|
|
7
|
+
getConditionMetadata(): AccessConditionMetadata;
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface CorsConfig {
|
|
2
|
-
origins?: string | string[];
|
|
3
|
-
methods?: string | string[];
|
|
4
|
-
headers?: string | string[];
|
|
5
|
-
credentials?: boolean;
|
|
6
|
-
}
|
|
1
|
+
export interface CorsConfig {
|
|
2
|
+
origins?: string | string[];
|
|
3
|
+
methods?: string | string[];
|
|
4
|
+
headers?: string | string[];
|
|
5
|
+
credentials?: boolean;
|
|
6
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
export * from "./common/FileOperation";
|
|
2
|
-
export * from "./common/auth/AbstractPrincipalResolver";
|
|
3
|
-
export * from "./common/auth/IPrincipal";
|
|
4
|
-
export * from "./common/request/MountedEndpointInfo";
|
|
5
|
-
export * from "./common/request/HttpEndpoint";
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./http/common/
|
|
9
|
-
export * from "./http/
|
|
10
|
-
export * from "./http/
|
|
11
|
-
export * from "./http/controller/
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./http/controller/
|
|
14
|
-
export * from "./http/controller/
|
|
15
|
-
export * from "./http/
|
|
16
|
-
export * from "./http/security/
|
|
17
|
-
export * from "./http/security/
|
|
18
|
-
export * from "./http/security/access-conditions/
|
|
19
|
-
export * from "./http/security/access-conditions/
|
|
20
|
-
export * from "./http/
|
|
21
|
-
export * from "./http/auth/
|
|
22
|
-
export * from "./http/auth/
|
|
23
|
-
export * from "./http/auth/
|
|
24
|
-
export * from "./http/auth/
|
|
25
|
-
export * from "./http/
|
|
26
|
-
export * from "./http/repository/
|
|
27
|
-
export * from "./http/repository/
|
|
28
|
-
export * from "./http/repository/
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./socket/
|
|
31
|
-
export * from "./socket/
|
|
32
|
-
export * from "./socket/
|
|
33
|
-
export * from "./socket/
|
|
34
|
-
export * from "./socket/
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./http/file-upload/
|
|
37
|
-
export * from "./http/file-upload/
|
|
38
|
-
export * from "./
|
|
39
|
-
export * from "./
|
|
40
|
-
export * from "./system/locale/
|
|
41
|
-
export * from "./system/locale/
|
|
42
|
-
export * from "./system/
|
|
43
|
-
export * from "./system/
|
|
44
|
-
export * from "./system/
|
|
45
|
-
export * from "./system/
|
|
46
|
-
export * from "./system/
|
|
47
|
-
export * from "./system/
|
|
48
|
-
export * from "./
|
|
49
|
-
export * from "./service/
|
|
50
|
-
export * from "./service/
|
|
51
|
-
export * from "./
|
|
52
|
-
export * from "./job/
|
|
53
|
-
export * from "./job/
|
|
54
|
-
export * from "./job/
|
|
55
|
-
export * from "./job/
|
|
56
|
-
export * from "./job/
|
|
57
|
-
export * from "./job/
|
|
1
|
+
export * from "./common/FileOperation";
|
|
2
|
+
export * from "./common/auth/AbstractPrincipalResolver";
|
|
3
|
+
export * from "./common/auth/IPrincipal";
|
|
4
|
+
export * from "./common/request/MountedEndpointInfo";
|
|
5
|
+
export * from "./common/request/HttpEndpoint";
|
|
6
|
+
export * from "./common/request/EndpointMetadata";
|
|
7
|
+
export * from "./common/request/RequestOptions";
|
|
8
|
+
export * from "./http/common/HttpResponse";
|
|
9
|
+
export * from "./http/decorators";
|
|
10
|
+
export * from "./http/common/HttpRequest";
|
|
11
|
+
export * from "./http/controller/DefaultHttpRequestHandler";
|
|
12
|
+
export * from "./http/controller/AbstractHttpController";
|
|
13
|
+
export * from "./http/controller/CrudHttpController";
|
|
14
|
+
export * from "./http/controller/AbstractHttpRequestHandler";
|
|
15
|
+
export * from "./http/controller/AbstractHttpMiddleware";
|
|
16
|
+
export * from "./http/security/cors";
|
|
17
|
+
export * from "./http/security/AbstractAccessCondition";
|
|
18
|
+
export * from "./http/security/access-conditions/FilterModelFieldAccessCondition";
|
|
19
|
+
export * from "./http/security/access-conditions/MaximumQueryLimit";
|
|
20
|
+
export * from "./http/security/access-conditions/DtoFieldValidation";
|
|
21
|
+
export * from "./http/auth/AbstractHttpAuthorizationProvider";
|
|
22
|
+
export * from "./http/auth/AbstractRbacAuthProvider";
|
|
23
|
+
export * from "./http/auth/RedisRbacAuthProvider";
|
|
24
|
+
export * from "./http/auth/SocketRbacAuthProvider";
|
|
25
|
+
export * from "./http/auth/rbac";
|
|
26
|
+
export * from "./http/repository/ModelRepository";
|
|
27
|
+
export * from "./http/repository/DtoRepository";
|
|
28
|
+
export * from "./http/repository/ICrudRepository";
|
|
29
|
+
export * from "./http/repository/AbstractRepository";
|
|
30
|
+
export * from "./socket/AbstractServerSocketManager";
|
|
31
|
+
export * from "./socket/LocalSocketManager";
|
|
32
|
+
export * from "./socket/AwsSocketManager";
|
|
33
|
+
export * from "./socket/IServerSocket";
|
|
34
|
+
export * from "./socket/AbstractSocketController";
|
|
35
|
+
export * from "./socket/AbstractSocketConnectionHandler";
|
|
36
|
+
export * from "./http/file-upload/AbstractFileUploadHandler";
|
|
37
|
+
export * from "./http/file-upload/FileUploadHandler";
|
|
38
|
+
export * from "./http/file-upload/types";
|
|
39
|
+
export * from "./logging/FileLogMedium";
|
|
40
|
+
export * from "./system/locale/decorators";
|
|
41
|
+
export * from "./system/locale/LocaleEntry";
|
|
42
|
+
export * from "./system/locale/LocaleTranslation";
|
|
43
|
+
export * from "./system/lamba-request-mapper";
|
|
44
|
+
export * from "./system/ClaireServer";
|
|
45
|
+
export * from "./system/ExpressWrapper";
|
|
46
|
+
export * from "./system/LambdaWrapper";
|
|
47
|
+
export * from "./system/ServerGlobalStore";
|
|
48
|
+
export * from "./system/errors";
|
|
49
|
+
export * from "./service/AbstractService";
|
|
50
|
+
export * from "./service/AbstractCacheService";
|
|
51
|
+
export * from "./service/AbstractFileService";
|
|
52
|
+
export * from "./job/decorators";
|
|
53
|
+
export * from "./job/interfaces";
|
|
54
|
+
export * from "./job/AbstractJobController";
|
|
55
|
+
export * from "./job/AbstractJobScheduler";
|
|
56
|
+
export * from "./job/AwsJobScheduler";
|
|
57
|
+
export * from "./job/LocalJobScheduler";
|
|
58
|
+
export * from "./job/AbstractJobRepository";
|