chyz 2.0.0-rc.29 → 2.0.0-rc.30
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/BaseChyz.d.ts +62 -62
- package/BaseChyz.js +488 -489
- package/base/ActionFilter.d.ts +32 -32
- package/base/ActionFilter.js +82 -82
- package/base/BadRequestHttpException.d.ts +5 -5
- package/base/BadRequestHttpException.js +17 -17
- package/base/BaseError.d.ts +31 -31
- package/base/BaseError.js +47 -47
- package/base/Behavior.d.ts +3 -3
- package/base/Behavior.js +7 -7
- package/base/CBaseObject.d.ts +4 -4
- package/base/CBaseObject.js +16 -16
- package/base/CEvents.d.ts +12 -12
- package/base/CEvents.js +24 -24
- package/base/CRequest.d.ts +1 -1
- package/base/CRequest.js +10 -10
- package/base/CWebController.d.ts +43 -43
- package/base/CWebController.js +81 -81
- package/base/Component.d.ts +20 -20
- package/base/Component.js +57 -57
- package/base/Configurable.d.ts +2 -2
- package/base/Configurable.js +8 -8
- package/base/DataErrorDbException.d.ts +5 -5
- package/base/DataErrorDbException.js +17 -17
- package/base/DbConnection.d.ts +12 -12
- package/base/DbConnection.js +53 -53
- package/base/ForbiddenHttpException.d.ts +4 -4
- package/base/ForbiddenHttpException.js +16 -16
- package/base/InvalidArgumentException.d.ts +5 -5
- package/base/InvalidArgumentException.js +17 -17
- package/base/InvalidConfigException.d.ts +5 -5
- package/base/InvalidConfigException.js +17 -17
- package/base/Logs.d.ts +21 -21
- package/base/Logs.js +57 -57
- package/base/Model.d.ts +298 -298
- package/base/Model.js +509 -509
- package/base/ModelManager.d.ts +1 -1
- package/base/ModelManager.js +19 -19
- package/base/NotFoundHttpException.d.ts +5 -5
- package/base/NotFoundHttpException.js +17 -17
- package/base/RestClient.d.ts +6 -6
- package/base/RestClient.js +25 -25
- package/base/UnauthorizedHttpException.d.ts +5 -5
- package/base/UnauthorizedHttpException.js +17 -17
- package/base/ValidationHttpException.d.ts +5 -5
- package/base/ValidationHttpException.js +17 -17
- package/base/db/Exception.d.ts +6 -6
- package/base/db/Exception.js +15 -15
- package/base/index.d.ts +19 -19
- package/base/index.js +41 -41
- package/decorator/Middleware.d.ts +3 -3
- package/decorator/Middleware.js +11 -11
- package/decorator/controller.d.ts +2 -2
- package/decorator/controller.js +24 -24
- package/decorator/delete.d.ts +2 -2
- package/decorator/delete.js +36 -36
- package/decorator/enums/ControllerDecoratorParams.d.ts +5 -5
- package/decorator/enums/ControllerDecoratorParams.js +9 -9
- package/decorator/get.d.ts +2 -2
- package/decorator/get.js +36 -36
- package/decorator/index.d.ts +5 -5
- package/decorator/index.js +13 -13
- package/decorator/post.d.ts +2 -2
- package/decorator/post.js +36 -36
- package/decorator/put.d.ts +2 -2
- package/decorator/put.js +36 -36
- package/filters/AccessControl.d.ts +12 -12
- package/filters/AccessControl.js +83 -83
- package/filters/AccessRule.d.ts +82 -82
- package/filters/AccessRule.js +136 -136
- package/filters/auth/AuthInterface.d.ts +25 -25
- package/filters/auth/AuthInterface.js +2 -2
- package/filters/auth/AuthMethod.d.ts +37 -37
- package/filters/auth/AuthMethod.js +82 -82
- package/filters/auth/HttpBasicAuth.d.ts +22 -22
- package/filters/auth/HttpBasicAuth.js +72 -72
- package/filters/auth/HttpBearerAuth.d.ts +17 -17
- package/filters/auth/HttpBearerAuth.js +32 -32
- package/filters/auth/HttpHeaderAuth.d.ts +14 -14
- package/filters/auth/HttpHeaderAuth.js +57 -57
- package/filters/auth/JwtHttpBearerAuth.d.ts +20 -20
- package/filters/auth/JwtHttpBearerAuth.js +87 -87
- package/filters/auth/KeyCloakHttpBearerAuth.d.ts +22 -22
- package/filters/auth/KeyCloakHttpBearerAuth.js +116 -116
- package/filters/auth/index.d.ts +4 -4
- package/filters/auth/index.js +11 -11
- package/filters/index.d.ts +2 -2
- package/filters/index.js +7 -7
- package/index.d.ts +21 -21
- package/index.js +61 -61
- package/model/RouteDefinition.d.ts +6 -6
- package/model/RouteDefinition.js +8 -8
- package/package.json +9 -11
- package/rbac/AuthAssignment.d.ts +18 -18
- package/rbac/AuthAssignment.js +44 -44
- package/rbac/AuthItem.d.ts +26 -26
- package/rbac/AuthItem.js +51 -51
- package/rbac/AuthItemChild.d.ts +18 -18
- package/rbac/AuthItemChild.js +43 -43
- package/rbac/AuthManager.d.ts +111 -111
- package/rbac/AuthManager.js +357 -357
- package/requiments/Glob.d.ts +2 -2
- package/requiments/Glob.js +10 -10
- package/requiments/ReflectUtil.js +24 -24
- package/requiments/Utils.d.ts +8 -8
- package/requiments/Utils.js +125 -125
- package/validators/BooleanValidator.js +1 -1
- package/validators/CompareValidator.js +1 -1
- package/validators/DateValidator.js +1 -1
- package/validators/EmailValidator.js +1 -1
- package/validators/Validator.d.ts +17 -17
- package/validators/Validator.js +27 -27
- package/web/IdentityInterface.d.ts +54 -54
- package/web/IdentityInterface.js +8 -8
- package/web/WebUser.d.ts +71 -71
- package/web/WebUser.js +165 -165
package/BaseChyz.d.ts
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { Logs } from "./base/Logs";
|
|
2
|
-
export default class BaseChyz {
|
|
3
|
-
private config;
|
|
4
|
-
static httpServer: any;
|
|
5
|
-
static propvider: any;
|
|
6
|
-
private _port;
|
|
7
|
-
static db: any;
|
|
8
|
-
static date: any;
|
|
9
|
-
static routes: any;
|
|
10
|
-
static logs: Logs;
|
|
11
|
-
private static _validate;
|
|
12
|
-
private _controllerpath;
|
|
13
|
-
private static controllers;
|
|
14
|
-
static components: any;
|
|
15
|
-
static middlewares: any;
|
|
16
|
-
private static _EventEmitter;
|
|
17
|
-
static get EventEmitter(): any;
|
|
18
|
-
static set EventEmitter(value: any);
|
|
19
|
-
get controllerpath(): string;
|
|
20
|
-
set controllerpath(value: string);
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
init(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Listen port number
|
|
27
|
-
* Server port number get
|
|
28
|
-
*/
|
|
29
|
-
get port(): number;
|
|
30
|
-
/**
|
|
31
|
-
* Listen port number
|
|
32
|
-
* Server port number setting
|
|
33
|
-
* @param value
|
|
34
|
-
*/
|
|
35
|
-
set port(value: number);
|
|
36
|
-
static get validate(): any;
|
|
37
|
-
static set validate(value: any);
|
|
38
|
-
app(config?: any): BaseChyz;
|
|
39
|
-
static trace(...args: any[]): void;
|
|
40
|
-
static debug(...args: any[]): void;
|
|
41
|
-
static info(...args: any[]): void;
|
|
42
|
-
static warn(...args: any[]): void;
|
|
43
|
-
static error(...args: any[]): void;
|
|
44
|
-
static fatal(...args: any[]): void;
|
|
45
|
-
static warning(...args: any[]): void;
|
|
46
|
-
static t(text: string): string;
|
|
47
|
-
errorLogger(error: any, req: any, res: any, next: any): void;
|
|
48
|
-
errorResponder(error: any, req: any, res: any, next: any): void;
|
|
49
|
-
errorHandler(err: any, req: any, res: any, next: any): any;
|
|
50
|
-
static getComponent(key: any): any;
|
|
51
|
-
static getMiddlewares(key: any): any;
|
|
52
|
-
/**
|
|
53
|
-
* load model
|
|
54
|
-
*/
|
|
55
|
-
loadModels(): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* load contoller
|
|
58
|
-
*/
|
|
59
|
-
loadController(): Promise<void>;
|
|
60
|
-
middleware(): void;
|
|
61
|
-
Start(): this;
|
|
62
|
-
}
|
|
1
|
+
import { Logs } from "./base/Logs";
|
|
2
|
+
export default class BaseChyz {
|
|
3
|
+
private config;
|
|
4
|
+
static httpServer: any;
|
|
5
|
+
static propvider: any;
|
|
6
|
+
private _port;
|
|
7
|
+
static db: any;
|
|
8
|
+
static date: any;
|
|
9
|
+
static routes: any;
|
|
10
|
+
static logs: Logs;
|
|
11
|
+
private static _validate;
|
|
12
|
+
private _controllerpath;
|
|
13
|
+
private static controllers;
|
|
14
|
+
static components: any;
|
|
15
|
+
static middlewares: any;
|
|
16
|
+
private static _EventEmitter;
|
|
17
|
+
static get EventEmitter(): any;
|
|
18
|
+
static set EventEmitter(value: any);
|
|
19
|
+
get controllerpath(): string;
|
|
20
|
+
set controllerpath(value: string);
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
init(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Listen port number
|
|
27
|
+
* Server port number get
|
|
28
|
+
*/
|
|
29
|
+
get port(): number;
|
|
30
|
+
/**
|
|
31
|
+
* Listen port number
|
|
32
|
+
* Server port number setting
|
|
33
|
+
* @param value
|
|
34
|
+
*/
|
|
35
|
+
set port(value: number);
|
|
36
|
+
static get validate(): any;
|
|
37
|
+
static set validate(value: any);
|
|
38
|
+
app(config?: any): BaseChyz;
|
|
39
|
+
static trace(...args: any[]): void;
|
|
40
|
+
static debug(...args: any[]): void;
|
|
41
|
+
static info(...args: any[]): void;
|
|
42
|
+
static warn(...args: any[]): void;
|
|
43
|
+
static error(...args: any[]): void;
|
|
44
|
+
static fatal(...args: any[]): void;
|
|
45
|
+
static warning(...args: any[]): void;
|
|
46
|
+
static t(text: string): string;
|
|
47
|
+
errorLogger(error: any, req: any, res: any, next: any): void;
|
|
48
|
+
errorResponder(error: any, req: any, res: any, next: any): void;
|
|
49
|
+
errorHandler(err: any, req: any, res: any, next: any): any;
|
|
50
|
+
static getComponent(key: any): any;
|
|
51
|
+
static getMiddlewares(key: any): any;
|
|
52
|
+
/**
|
|
53
|
+
* load model
|
|
54
|
+
*/
|
|
55
|
+
loadModels(): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* load contoller
|
|
58
|
+
*/
|
|
59
|
+
loadController(): Promise<void>;
|
|
60
|
+
middleware(): void;
|
|
61
|
+
Start(): this;
|
|
62
|
+
}
|
|
63
63
|
//# sourceMappingURL=BaseChyz.d.ts.map
|