chyz 2.0.1-rc.3 → 2.0.1-rc.36
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.ts +623 -0
- package/README.md +518 -518
- package/base/ActionFilter.ts +88 -0
- package/base/BadRequestHttpException.ts +14 -0
- package/base/{BaseError.js → BaseError.ts} +26 -18
- package/base/Behavior.ts +6 -0
- package/base/CBaseObject.ts +17 -0
- package/base/CEvents.ts +24 -0
- package/base/{CRequest.js → CRequest.ts} +6 -2
- package/base/CWebController.ts +90 -0
- package/base/Component.ts +66 -0
- package/{model/RouteDefinition.js → base/Configurable.ts} +4 -2
- package/base/DataErrorDbException.ts +16 -0
- package/base/DbConnection.ts +55 -0
- package/base/ForbiddenHttpException.ts +15 -0
- package/base/InvalidArgumentException.ts +16 -0
- package/base/InvalidConfigException.ts +16 -0
- package/base/{Logs.js → Logs.ts} +41 -24
- package/base/{Model.js → Model.ts} +225 -158
- package/base/{ModelManager.js → ModelManager.ts} +7 -7
- package/base/NotFoundHttpException.ts +14 -0
- package/base/RestClient.ts +26 -0
- package/base/UnauthorizedHttpException.ts +17 -0
- package/base/ValidationHttpException.ts +14 -0
- package/base/db/Exception.ts +14 -0
- package/base/index.ts +19 -0
- package/decorator/Middleware.ts +9 -0
- package/decorator/{controller.js → controller.ts} +7 -9
- package/decorator/{delete.js → delete.ts} +9 -9
- package/decorator/enums/ControllerDecoratorParams.ts +5 -0
- package/decorator/{get.js → get.ts} +11 -10
- package/decorator/index.ts +5 -0
- package/decorator/{post.js → post.ts} +10 -10
- package/decorator/{put.js → put.ts} +9 -9
- package/filters/AccessControl.ts +74 -0
- package/filters/AccessRule.ts +182 -0
- package/filters/auth/{AuthInterface.d.ts → AuthInterface.ts} +15 -7
- package/filters/auth/AuthMethod.ts +100 -0
- package/filters/auth/HttpBasicAuth.ts +79 -0
- package/filters/auth/HttpBearerAuth.ts +34 -0
- package/filters/auth/HttpHeaderAuth.ts +61 -0
- package/filters/auth/JwtHttpBearerAuth.ts +83 -0
- package/filters/auth/KeyCloakHttpBearerAuth.ts +114 -0
- package/filters/auth/index.ts +4 -0
- package/filters/index.ts +2 -0
- package/index.ts +80 -0
- package/log/config/log4js.json +55 -55
- package/model/RouteDefinition.ts +18 -0
- package/package.json +63 -61
- package/rbac/AuthAssignment.ts +50 -0
- package/rbac/{AuthItem.js → AuthItem.ts} +22 -16
- package/rbac/{AuthItemChild.js → AuthItemChild.ts} +21 -14
- package/rbac/AuthManager.ts +399 -0
- package/rbac/index.ts +12 -0
- package/{web/IdentityInterface.js → requiments/Glob.ts} +3 -2
- package/requiments/{ReflectUtil.js → ReflectUtil.ts} +6 -4
- package/requiments/{Utils.js → Utils.ts} +40 -34
- package/validators/BooleanValidator.ts +0 -0
- package/validators/CompareValidator.ts +0 -0
- package/validators/DateValidator.ts +0 -0
- package/validators/EmailValidator.ts +0 -0
- package/validators/Validator.ts +27 -0
- package/web/{IdentityInterface.d.ts → IdentityInterface.ts} +15 -2
- package/web/WebUser.ts +187 -0
- package/BaseChyz.d.ts +0 -74
- package/BaseChyz.d.ts.map +0 -1
- package/BaseChyz.js +0 -569
- package/base/ActionFilter.d.ts +0 -33
- package/base/ActionFilter.d.ts.map +0 -1
- package/base/ActionFilter.js +0 -90
- package/base/BadRequestHttpException.d.ts +0 -6
- package/base/BadRequestHttpException.d.ts.map +0 -1
- package/base/BadRequestHttpException.js +0 -17
- package/base/BaseError.d.ts +0 -44
- package/base/BaseError.d.ts.map +0 -1
- package/base/Behavior.d.ts +0 -4
- package/base/Behavior.d.ts.map +0 -1
- package/base/Behavior.js +0 -7
- package/base/CBaseObject.d.ts +0 -5
- package/base/CBaseObject.d.ts.map +0 -1
- package/base/CBaseObject.js +0 -16
- package/base/CEvents.d.ts +0 -13
- package/base/CEvents.d.ts.map +0 -1
- package/base/CEvents.js +0 -24
- package/base/CRequest.d.ts +0 -2
- package/base/CRequest.d.ts.map +0 -1
- package/base/CWebController.d.ts +0 -44
- package/base/CWebController.d.ts.map +0 -1
- package/base/CWebController.js +0 -81
- package/base/Component.d.ts +0 -21
- package/base/Component.d.ts.map +0 -1
- package/base/Component.js +0 -57
- package/base/Configurable.d.ts +0 -3
- package/base/Configurable.d.ts.map +0 -1
- package/base/Configurable.js +0 -8
- package/base/DataErrorDbException.d.ts +0 -6
- package/base/DataErrorDbException.d.ts.map +0 -1
- package/base/DataErrorDbException.js +0 -17
- package/base/DbConnection.d.ts +0 -13
- package/base/DbConnection.d.ts.map +0 -1
- package/base/DbConnection.js +0 -53
- package/base/ForbiddenHttpException.d.ts +0 -5
- package/base/ForbiddenHttpException.d.ts.map +0 -1
- package/base/ForbiddenHttpException.js +0 -16
- package/base/InvalidArgumentException.d.ts +0 -6
- package/base/InvalidArgumentException.d.ts.map +0 -1
- package/base/InvalidArgumentException.js +0 -17
- package/base/InvalidConfigException.d.ts +0 -6
- package/base/InvalidConfigException.d.ts.map +0 -1
- package/base/InvalidConfigException.js +0 -17
- package/base/Logs.d.ts +0 -22
- package/base/Logs.d.ts.map +0 -1
- package/base/Model.d.ts +0 -302
- package/base/Model.d.ts.map +0 -1
- package/base/ModelManager.d.ts +0 -2
- package/base/ModelManager.d.ts.map +0 -1
- package/base/NotFoundHttpException.d.ts +0 -6
- package/base/NotFoundHttpException.d.ts.map +0 -1
- package/base/NotFoundHttpException.js +0 -17
- package/base/RestClient.d.ts +0 -7
- package/base/RestClient.d.ts.map +0 -1
- package/base/RestClient.js +0 -25
- package/base/UnauthorizedHttpException.d.ts +0 -6
- package/base/UnauthorizedHttpException.d.ts.map +0 -1
- package/base/UnauthorizedHttpException.js +0 -17
- package/base/ValidationHttpException.d.ts +0 -6
- package/base/ValidationHttpException.d.ts.map +0 -1
- package/base/ValidationHttpException.js +0 -17
- package/base/db/Exception.d.ts +0 -7
- package/base/db/Exception.d.ts.map +0 -1
- package/base/db/Exception.js +0 -15
- package/base/index.d.ts +0 -20
- package/base/index.d.ts.map +0 -1
- package/base/index.js +0 -41
- package/decorator/Middleware.d.ts +0 -4
- package/decorator/Middleware.d.ts.map +0 -1
- package/decorator/Middleware.js +0 -11
- package/decorator/controller.d.ts +0 -3
- package/decorator/controller.d.ts.map +0 -1
- package/decorator/delete.d.ts +0 -3
- package/decorator/delete.d.ts.map +0 -1
- package/decorator/enums/ControllerDecoratorParams.d.ts +0 -6
- package/decorator/enums/ControllerDecoratorParams.d.ts.map +0 -1
- package/decorator/enums/ControllerDecoratorParams.js +0 -9
- package/decorator/get.d.ts +0 -3
- package/decorator/get.d.ts.map +0 -1
- package/decorator/index.d.ts +0 -6
- package/decorator/index.d.ts.map +0 -1
- package/decorator/index.js +0 -13
- package/decorator/post.d.ts +0 -3
- package/decorator/post.d.ts.map +0 -1
- package/decorator/put.d.ts +0 -3
- package/decorator/put.d.ts.map +0 -1
- package/filters/AccessControl.d.ts +0 -13
- package/filters/AccessControl.d.ts.map +0 -1
- package/filters/AccessControl.js +0 -83
- package/filters/AccessRule.d.ts +0 -83
- package/filters/AccessRule.d.ts.map +0 -1
- package/filters/AccessRule.js +0 -136
- package/filters/auth/AuthInterface.d.ts.map +0 -1
- package/filters/auth/AuthInterface.js +0 -2
- package/filters/auth/AuthMethod.d.ts +0 -38
- package/filters/auth/AuthMethod.d.ts.map +0 -1
- package/filters/auth/AuthMethod.js +0 -82
- package/filters/auth/HttpBasicAuth.d.ts +0 -24
- package/filters/auth/HttpBasicAuth.d.ts.map +0 -1
- package/filters/auth/HttpBasicAuth.js +0 -78
- package/filters/auth/HttpBearerAuth.d.ts +0 -18
- package/filters/auth/HttpBearerAuth.d.ts.map +0 -1
- package/filters/auth/HttpBearerAuth.js +0 -33
- package/filters/auth/HttpHeaderAuth.d.ts +0 -19
- package/filters/auth/HttpHeaderAuth.d.ts.map +0 -1
- package/filters/auth/HttpHeaderAuth.js +0 -64
- package/filters/auth/JwtHttpBearerAuth.d.ts +0 -21
- package/filters/auth/JwtHttpBearerAuth.d.ts.map +0 -1
- package/filters/auth/JwtHttpBearerAuth.js +0 -87
- package/filters/auth/KeyCloakHttpBearerAuth.d.ts +0 -23
- package/filters/auth/KeyCloakHttpBearerAuth.d.ts.map +0 -1
- package/filters/auth/KeyCloakHttpBearerAuth.js +0 -116
- package/filters/auth/index.d.ts +0 -5
- package/filters/auth/index.d.ts.map +0 -1
- package/filters/auth/index.js +0 -11
- package/filters/index.d.ts +0 -3
- package/filters/index.d.ts.map +0 -1
- package/filters/index.js +0 -7
- package/index.d.ts +0 -26
- package/index.d.ts.map +0 -1
- package/index.js +0 -72
- package/model/RouteDefinition.d.ts +0 -7
- package/model/RouteDefinition.d.ts.map +0 -1
- package/rbac/AuthAssignment.d.ts +0 -19
- package/rbac/AuthAssignment.d.ts.map +0 -1
- package/rbac/AuthAssignment.js +0 -44
- package/rbac/AuthItem.d.ts +0 -27
- package/rbac/AuthItem.d.ts.map +0 -1
- package/rbac/AuthItemChild.d.ts +0 -19
- package/rbac/AuthItemChild.d.ts.map +0 -1
- package/rbac/AuthManager.d.ts +0 -112
- package/rbac/AuthManager.d.ts.map +0 -1
- package/rbac/AuthManager.js +0 -356
- package/rbac/index.d.ts +0 -5
- package/rbac/index.d.ts.map +0 -1
- package/rbac/index.js +0 -28
- package/requiments/Glob.d.ts +0 -3
- package/requiments/Glob.d.ts.map +0 -1
- package/requiments/Glob.js +0 -10
- package/requiments/ReflectUtil.d.ts +0 -1
- package/requiments/ReflectUtil.d.ts.map +0 -1
- package/requiments/Utils.d.ts +0 -2
- package/requiments/Utils.d.ts.map +0 -1
- package/validators/BooleanValidator.d.ts +0 -1
- package/validators/BooleanValidator.d.ts.map +0 -1
- package/validators/BooleanValidator.js +0 -1
- package/validators/CompareValidator.d.ts +0 -1
- package/validators/CompareValidator.d.ts.map +0 -1
- package/validators/CompareValidator.js +0 -1
- package/validators/DateValidator.d.ts +0 -1
- package/validators/DateValidator.d.ts.map +0 -1
- package/validators/DateValidator.js +0 -1
- package/validators/EmailValidator.d.ts +0 -1
- package/validators/EmailValidator.d.ts.map +0 -1
- package/validators/EmailValidator.js +0 -1
- package/validators/Validator.d.ts +0 -18
- package/validators/Validator.d.ts.map +0 -1
- package/validators/Validator.js +0 -27
- package/web/IdentityInterface.d.ts.map +0 -1
- package/web/WebUser.d.ts +0 -72
- package/web/WebUser.d.ts.map +0 -1
- package/web/WebUser.js +0 -165
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BadRequestHttpException.d.ts","sourceRoot":"","sources":["../../src/base/BadRequestHttpException.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,uBAAwB,SAAQ,SAAS;IAC7B,OAAO,EAAE,MAAM;gBAAf,OAAO,EAAE,MAAM;CAGvC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.BadRequestHttpException = void 0;
|
|
10
|
-
const BaseError_1 = require("./BaseError");
|
|
11
|
-
class BadRequestHttpException extends BaseError_1.BaseError {
|
|
12
|
-
constructor(message) {
|
|
13
|
-
super(message, 400);
|
|
14
|
-
this.message = message;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.BadRequestHttpException = BadRequestHttpException;
|
package/base/BaseError.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 10.4 Client Error 4xx ............................................65
|
|
3
|
-
* 10.4.1 400 Bad Request .........................................65
|
|
4
|
-
* 10.4.2 401 Unauthorized ........................................66
|
|
5
|
-
* 10.4.3 402 Payment Required ....................................66
|
|
6
|
-
* 10.4.4 403 Forbidden ...........................................66
|
|
7
|
-
* 10.4.5 404 Not Found ...........................................66
|
|
8
|
-
* 10.4.6 405 Method Not Allowed ..................................66
|
|
9
|
-
* 10.4.7 406 Not Acceptable ......................................67
|
|
10
|
-
* 10.4.8 407 Proxy Authentication Required .......................67
|
|
11
|
-
* 10.4.9 408 Request Timeout .....................................67
|
|
12
|
-
* 10.4.10 409 Conflict ............................................67
|
|
13
|
-
* 10.4.11 410 Gone ................................................68
|
|
14
|
-
* 10.4.12 411 Length Required .....................................68
|
|
15
|
-
* 10.4.13 412 Precondition Failed .................................68
|
|
16
|
-
* 10.4.14 413 Request Entity Too Large ............................69
|
|
17
|
-
* 10.4.15 414 Request-URI Too Long ................................69
|
|
18
|
-
* 10.4.16 415 Unsupported Media Type ..............................69
|
|
19
|
-
* 10.4.17 416 Requested Range Not Satisfiable .....................69
|
|
20
|
-
* 10.4.18 417 Expectation Failed ..................................70
|
|
21
|
-
*/
|
|
22
|
-
export declare class BaseError extends Error {
|
|
23
|
-
statusCode: number;
|
|
24
|
-
orginal: any;
|
|
25
|
-
private readonly success;
|
|
26
|
-
constructor(message: any, statusCode?: number);
|
|
27
|
-
toString(): string;
|
|
28
|
-
toJSON(): {
|
|
29
|
-
success: boolean;
|
|
30
|
-
code: number;
|
|
31
|
-
name: string;
|
|
32
|
-
message: string;
|
|
33
|
-
stack: string | undefined;
|
|
34
|
-
orginal: any;
|
|
35
|
-
} | {
|
|
36
|
-
success: boolean;
|
|
37
|
-
code: number;
|
|
38
|
-
name: string;
|
|
39
|
-
message: string;
|
|
40
|
-
stack?: undefined;
|
|
41
|
-
orginal?: undefined;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=BaseError.d.ts.map
|
package/base/BaseError.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../src/base/BaseError.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;gBAEtB,OAAO,EAAE,GAAG,EAAE,UAAU,SAAM;IAW1C,QAAQ;IAIR,MAAM;;;;;;;;;;;;;;;CAcT"}
|
package/base/Behavior.d.ts
DELETED
package/base/Behavior.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Behavior.d.ts","sourceRoot":"","sources":["../../src/base/Behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,qBAAa,QAAS,SAAQ,WAAW;CAGxC"}
|
package/base/Behavior.js
DELETED
package/base/CBaseObject.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CBaseObject.d.ts","sourceRoot":"","sources":["../../src/base/CBaseObject.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAG5C,qBAAa,WAAY,YAAW,YAAY;IAErC,IAAI;CAGd"}
|
package/base/CBaseObject.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CBaseObject = void 0;
|
|
10
|
-
const index_1 = require("../index");
|
|
11
|
-
class CBaseObject {
|
|
12
|
-
init() {
|
|
13
|
-
index_1.BaseChyz.debug("BaseObject init.....");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.CBaseObject = CBaseObject;
|
package/base/CEvents.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum CEvents {
|
|
2
|
-
ON_INIT_BEFORE = "oninitbefore",
|
|
3
|
-
ON_INIT_AFTER = "oninitafter",
|
|
4
|
-
ON_MIDDLEWARE = "onmiddleware",
|
|
5
|
-
ON_BEFORE_START = "onbeforestart",
|
|
6
|
-
ON_AFTER_START = "onafterestart",
|
|
7
|
-
ON_START = "onstart",
|
|
8
|
-
ON_BEFORE_ACTION = "onbeferoaction",
|
|
9
|
-
ON_AFTER_ACTION = "onafteraction",
|
|
10
|
-
ON_DB_CONNECTION = "ondbconnection",
|
|
11
|
-
ON_DB_DISCONNECT = "ondbdisconnect"
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=CEvents.d.ts.map
|
package/base/CEvents.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CEvents.d.ts","sourceRoot":"","sources":["../../src/base/CEvents.ts"],"names":[],"mappings":"AAQA,oBAAY,OAAO;IACf,cAAc,iBAAe;IAC7B,aAAa,gBAAc;IAC3B,aAAa,iBAAe;IAC5B,eAAe,kBAAkB;IACjC,cAAc,kBAAkB;IAChC,QAAQ,YAAY;IAEpB,gBAAgB,mBAAmB;IACnC,eAAe,kBAAkB;IAEjC,gBAAgB,mBAAiB;IACjC,gBAAgB,mBAAiB;CAGpC"}
|
package/base/CEvents.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CEvents = void 0;
|
|
4
|
-
/*
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2023.. Chy Bilgisayar Bilisim
|
|
7
|
-
* Author: Cihan Ozturk
|
|
8
|
-
* E-mail: cihan@chy.com.tr
|
|
9
|
-
* Github:https://github.com/cihan53/
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
var CEvents;
|
|
13
|
-
(function (CEvents) {
|
|
14
|
-
CEvents["ON_INIT_BEFORE"] = "oninitbefore";
|
|
15
|
-
CEvents["ON_INIT_AFTER"] = "oninitafter";
|
|
16
|
-
CEvents["ON_MIDDLEWARE"] = "onmiddleware";
|
|
17
|
-
CEvents["ON_BEFORE_START"] = "onbeforestart";
|
|
18
|
-
CEvents["ON_AFTER_START"] = "onafterestart";
|
|
19
|
-
CEvents["ON_START"] = "onstart";
|
|
20
|
-
CEvents["ON_BEFORE_ACTION"] = "onbeferoaction";
|
|
21
|
-
CEvents["ON_AFTER_ACTION"] = "onafteraction";
|
|
22
|
-
CEvents["ON_DB_CONNECTION"] = "ondbconnection";
|
|
23
|
-
CEvents["ON_DB_DISCONNECT"] = "ondbdisconnect";
|
|
24
|
-
})(CEvents = exports.CEvents || (exports.CEvents = {}));
|
package/base/CRequest.d.ts
DELETED
package/base/CRequest.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CRequest.d.ts","sourceRoot":"","sources":["../../src/base/CRequest.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC"}
|
package/base/CWebController.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Component } from "./Component";
|
|
2
|
-
import { RouteDefinition } from "../model/RouteDefinition";
|
|
3
|
-
import { Request, Response } from "express";
|
|
4
|
-
export declare class CWebController extends Component {
|
|
5
|
-
/**
|
|
6
|
-
* @var string the ID of this controller.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
defaultAction: string;
|
|
10
|
-
constructor(config: any);
|
|
11
|
-
init(): void;
|
|
12
|
-
/**
|
|
13
|
-
* This method is invoked right before an action is executed.
|
|
14
|
-
* @param $action
|
|
15
|
-
*/
|
|
16
|
-
beforeAction(route: RouteDefinition, req: Request, res: Response): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* This method is invoked right after an action is executed.
|
|
19
|
-
* @param action
|
|
20
|
-
*/
|
|
21
|
-
afterAction(action: any, req: Request, res: Response): void;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
Checks the privilege of the current user.
|
|
26
|
-
|
|
27
|
-
This method should be overridden to check whether the current user has the privilege to run the specified action against the specified data model. If the user does not have access, a yii\web\ForbiddenHttpException should be thrown.
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
checkAccess(action: any, model?: null, params?: any): void;
|
|
31
|
-
/**
|
|
32
|
-
* Send data formatted as JSON.
|
|
33
|
-
|
|
34
|
-
This method is a shortcut for sending data formatted as JSON. It will return the response application component after configuring the format and setting the data that should be formatted. A common usage will b
|
|
35
|
-
*/
|
|
36
|
-
asJson(data: any): void;
|
|
37
|
-
/**
|
|
38
|
-
* Send data formatted as XML.
|
|
39
|
-
|
|
40
|
-
This method is a shortcut for sending data formatted as XML. It will return the response application component after configuring the format and setting the data that should be formatted. A common usage will be:
|
|
41
|
-
*/
|
|
42
|
-
asXml(data: any): void;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=CWebController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CWebController.d.ts","sourceRoot":"","sources":["../../src/base/CWebController.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AAI1C,qBAAa,cAAe,SAAQ,SAAS;IAGzC;;OAEG;IACI,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,SAAW;gBAEnB,MAAM,EAAE,GAAG;IAKhB,IAAI;IAKX;;;OAGG;IACU,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ;IAc7E;;;OAGG;IACI,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ;IAK3D;;;;;;;OAOG;IACI,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,OAAO,EAAE,MAAM,GAAE,GAAQ;IAI9D;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,GAAG;IAIhB;;;;OAIG;IACH,KAAK,CAAC,IAAI,EAAE,GAAG;CAIlB"}
|
package/base/CWebController.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.CWebController = void 0;
|
|
22
|
-
const Component_1 = require("./Component");
|
|
23
|
-
const BaseChyz_1 = __importDefault(require("../BaseChyz"));
|
|
24
|
-
const CEvents_1 = require("./CEvents");
|
|
25
|
-
class CWebController extends Component_1.Component {
|
|
26
|
-
constructor(config) {
|
|
27
|
-
super();
|
|
28
|
-
this.defaultAction = 'index';
|
|
29
|
-
this.id = this.constructor.name.replace("Controller", "").toLowerCase();
|
|
30
|
-
}
|
|
31
|
-
init() {
|
|
32
|
-
super.init();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* This method is invoked right before an action is executed.
|
|
36
|
-
* @param $action
|
|
37
|
-
*/
|
|
38
|
-
beforeAction(route, req, res) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (route.id == "" || route.id == "/")
|
|
41
|
-
this.id = this.defaultAction;
|
|
42
|
-
this.ensureBehaviors();
|
|
43
|
-
for (const name of Object.keys(this.getBehaviors)) {
|
|
44
|
-
yield this.getBehaviors[name].beforeFilter(route, req, res);
|
|
45
|
-
}
|
|
46
|
-
BaseChyz_1.default.EventEmitter.emit(CEvents_1.CEvents.ON_BEFORE_ACTION, this, req, res);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* This method is invoked right after an action is executed.
|
|
51
|
-
* @param action
|
|
52
|
-
*/
|
|
53
|
-
afterAction(action, req, res) {
|
|
54
|
-
BaseChyz_1.default.EventEmitter.emit(CEvents_1.CEvents.ON_AFTER_ACTION, this, req, res);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
Checks the privilege of the current user.
|
|
60
|
-
|
|
61
|
-
This method should be overridden to check whether the current user has the privilege to run the specified action against the specified data model. If the user does not have access, a yii\web\ForbiddenHttpException should be thrown.
|
|
62
|
-
|
|
63
|
-
*/
|
|
64
|
-
checkAccess(action, model = null, params = []) {
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Send data formatted as JSON.
|
|
68
|
-
|
|
69
|
-
This method is a shortcut for sending data formatted as JSON. It will return the response application component after configuring the format and setting the data that should be formatted. A common usage will b
|
|
70
|
-
*/
|
|
71
|
-
asJson(data) {
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Send data formatted as XML.
|
|
75
|
-
|
|
76
|
-
This method is a shortcut for sending data formatted as XML. It will return the response application component after configuring the format and setting the data that should be formatted. A common usage will be:
|
|
77
|
-
*/
|
|
78
|
-
asXml(data) {
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.CWebController = CWebController;
|
package/base/Component.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CBaseObject } from "./CBaseObject";
|
|
2
|
-
export declare class Component extends CBaseObject {
|
|
3
|
-
/**
|
|
4
|
-
* @var array the attached event handlers (event name => handlers)
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @var Behavior[]|null the attached behaviors (behavior name => behavior). This is `null` when not initialized.
|
|
8
|
-
*/
|
|
9
|
-
private _behaviors;
|
|
10
|
-
/**
|
|
11
|
-
* Returns a list of behaviors that this component should behave as.
|
|
12
|
-
*/
|
|
13
|
-
behaviors(): any;
|
|
14
|
-
get getBehaviors(): any;
|
|
15
|
-
/**
|
|
16
|
-
* Makes sure that the behaviors declared in [[behaviors()]] are attached to this component.
|
|
17
|
-
*/
|
|
18
|
-
ensureBehaviors(): void;
|
|
19
|
-
private attachBehaviorInternal;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=Component.d.ts.map
|
package/base/Component.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../src/base/Component.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAIzC,qBAAa,SAAU,SAAQ,WAAW;IAEtC;;OAEG;IAIH;;OAEG;IAEH,OAAO,CAAC,UAAU,CAA2B;IAG7C;;OAEG;IACI,SAAS,IAAI,GAAG;IAKvB,IAAI,YAAY,IAAI,GAAG,CAEtB;IAED;;OAEG;IACI,eAAe;IAetB,OAAO,CAAC,sBAAsB;CASjC"}
|
package/base/Component.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.Component = void 0;
|
|
10
|
-
const CBaseObject_1 = require("./CBaseObject");
|
|
11
|
-
const Utils_1 = require("../requiments/Utils");
|
|
12
|
-
class Component extends CBaseObject_1.CBaseObject {
|
|
13
|
-
constructor() {
|
|
14
|
-
/**
|
|
15
|
-
* @var array the attached event handlers (event name => handlers)
|
|
16
|
-
*/
|
|
17
|
-
// private _events = [];
|
|
18
|
-
super(...arguments);
|
|
19
|
-
/**
|
|
20
|
-
* @var Behavior[]|null the attached behaviors (behavior name => behavior). This is `null` when not initialized.
|
|
21
|
-
*/
|
|
22
|
-
this._behaviors = [];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns a list of behaviors that this component should behave as.
|
|
26
|
-
*/
|
|
27
|
-
behaviors() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
get getBehaviors() {
|
|
31
|
-
return this._behaviors;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Makes sure that the behaviors declared in [[behaviors()]] are attached to this component.
|
|
35
|
-
*/
|
|
36
|
-
ensureBehaviors() {
|
|
37
|
-
if (this._behaviors.length == 0) {
|
|
38
|
-
this._behaviors = [];
|
|
39
|
-
if (this.behaviors().length > 0) {
|
|
40
|
-
this.behaviors().forEach((behavior) => {
|
|
41
|
-
Object.keys(behavior).forEach((name) => {
|
|
42
|
-
this.attachBehaviorInternal(name, behavior);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
attachBehaviorInternal(name, behavior) {
|
|
49
|
-
if (!this._behaviors.hasOwnProperty(name)) {
|
|
50
|
-
let beh = Utils_1.Utils.createObject(new behavior[name].class, behavior[name]);
|
|
51
|
-
beh.init();
|
|
52
|
-
this._behaviors[name] = beh;
|
|
53
|
-
}
|
|
54
|
-
return behavior;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.Component = Component;
|
package/base/Configurable.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Configurable.d.ts","sourceRoot":"","sources":["../../src/base/Configurable.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,YAAY;CAE5B"}
|
package/base/Configurable.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataErrorDbException.d.ts","sourceRoot":"","sources":["../../src/base/DataErrorDbException.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,oBAAqB,SAAQ,SAAS;IAC1B,OAAO,EAAE,GAAG;gBAAZ,OAAO,EAAE,GAAG;CAGpC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DataErrorDbException = void 0;
|
|
10
|
-
const BaseError_1 = require("./BaseError");
|
|
11
|
-
class DataErrorDbException extends BaseError_1.BaseError {
|
|
12
|
-
constructor(message) {
|
|
13
|
-
super(message, 502);
|
|
14
|
-
this.message = message;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.DataErrorDbException = DataErrorDbException;
|
package/base/DbConnection.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component } from "./Component";
|
|
2
|
-
export declare class DbConnection extends Component {
|
|
3
|
-
database: string;
|
|
4
|
-
username: string;
|
|
5
|
-
password: string;
|
|
6
|
-
options?: object;
|
|
7
|
-
private _db;
|
|
8
|
-
init(): Promise<void>;
|
|
9
|
-
get db(): any;
|
|
10
|
-
set db(value: any);
|
|
11
|
-
transaction(): any;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=DbConnection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DbConnection.d.ts","sourceRoot":"","sources":["../../src/base/DbConnection.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAKtC,qBAAa,YAAa,SAAQ,SAAS;IAEhC,QAAQ,EAAG,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,CAAC;IAClB,QAAQ,EAAG,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGxB,OAAO,CAAC,GAAG,CAAK;IAEV,IAAI;IAmBV,IAAI,EAAE,IAAI,GAAG,CAEZ;IAED,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,EAEhB;IAEM,WAAW;CAIrB"}
|
package/base/DbConnection.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.DbConnection = void 0;
|
|
16
|
-
/*
|
|
17
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
18
|
-
* Author: Cihan Ozturk
|
|
19
|
-
* E-mail: cihan@chy.com.tr
|
|
20
|
-
* Github:https://github.com/cihan53/
|
|
21
|
-
*/
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
const { Sequelize } = require("sequelize");
|
|
24
|
-
const Component_1 = require("./Component");
|
|
25
|
-
const BaseChyz_1 = __importDefault(require("../BaseChyz"));
|
|
26
|
-
// const sequelizeCache = require('sequelize-transparent-cache')
|
|
27
|
-
class DbConnection extends Component_1.Component {
|
|
28
|
-
init() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
const sequelize = new Sequelize(this.database, this.username, this.password, this.options);
|
|
31
|
-
this._db = sequelize;
|
|
32
|
-
sequelize
|
|
33
|
-
.authenticate()
|
|
34
|
-
.then(() => {
|
|
35
|
-
BaseChyz_1.default.info('Connection has been established successfully.');
|
|
36
|
-
})
|
|
37
|
-
.catch((err) => {
|
|
38
|
-
BaseChyz_1.default.error('Unable to connect to the database:', err);
|
|
39
|
-
});
|
|
40
|
-
// await this.connect();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
get db() {
|
|
44
|
-
return this._db;
|
|
45
|
-
}
|
|
46
|
-
set db(value) {
|
|
47
|
-
this._db = value;
|
|
48
|
-
}
|
|
49
|
-
transaction() {
|
|
50
|
-
return this.db.transaction();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.DbConnection = DbConnection;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenHttpException.d.ts","sourceRoot":"","sources":["../../src/base/ForbiddenHttpException.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,qBAAa,sBAAuB,SAAQ,SAAS;gBACnC,OAAO,EAAE,GAAG;CAG7B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ForbiddenHttpException = void 0;
|
|
10
|
-
const BaseError_1 = require("./BaseError");
|
|
11
|
-
class ForbiddenHttpException extends BaseError_1.BaseError {
|
|
12
|
-
constructor(message) {
|
|
13
|
-
super(message, 403);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.ForbiddenHttpException = ForbiddenHttpException;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InvalidArgumentException.d.ts","sourceRoot":"","sources":["../../src/base/InvalidArgumentException.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,wBAAyB,SAAQ,SAAS;IAC9B,OAAO,EAAE,GAAG;gBAAZ,OAAO,EAAE,GAAG;CAGpC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.InvalidArgumentException = void 0;
|
|
10
|
-
const BaseError_1 = require("./BaseError");
|
|
11
|
-
class InvalidArgumentException extends BaseError_1.BaseError {
|
|
12
|
-
constructor(message) {
|
|
13
|
-
super(message, 500);
|
|
14
|
-
this.message = message;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.InvalidArgumentException = InvalidArgumentException;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InvalidConfigException.d.ts","sourceRoot":"","sources":["../../src/base/InvalidConfigException.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,sBAAuB,SAAQ,SAAS;IAC5B,OAAO,EAAE,GAAG;gBAAZ,OAAO,EAAE,GAAG;CAGpC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
4
|
-
* Author: Cihan Ozturk
|
|
5
|
-
* E-mail: cihan@chy.com.tr
|
|
6
|
-
* Github:https://github.com/cihan53/
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.InvalidConfigException = void 0;
|
|
10
|
-
const BaseError_1 = require("./BaseError");
|
|
11
|
-
class InvalidConfigException extends BaseError_1.BaseError {
|
|
12
|
-
constructor(message) {
|
|
13
|
-
super(message, 500);
|
|
14
|
-
this.message = message;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.InvalidConfigException = InvalidConfigException;
|
package/base/Logs.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Configurable } from "./Configurable";
|
|
2
|
-
export declare class Logs implements Configurable {
|
|
3
|
-
name: string;
|
|
4
|
-
configs: any;
|
|
5
|
-
constructor(name?: string, configs?: any);
|
|
6
|
-
init(): void;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @constructor
|
|
10
|
-
*/
|
|
11
|
-
Provider(): any;
|
|
12
|
-
logs(...args: any[]): any;
|
|
13
|
-
debug(...args: any[]): void;
|
|
14
|
-
info(...args: any[]): void;
|
|
15
|
-
warn(...args: any[]): void;
|
|
16
|
-
error(...args: any[]): void;
|
|
17
|
-
fatal(...args: any[]): void;
|
|
18
|
-
warning(...args: any[]): void;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: Logs;
|
|
21
|
-
export default _default;
|
|
22
|
-
//# sourceMappingURL=Logs.d.ts.map
|
package/base/Logs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logs.d.ts","sourceRoot":"","sources":["../../src/base/Logs.ts"],"names":[],"mappings":"AASA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAK5C,qBAAa,IAAK,YAAW,YAAY;IAE9B,IAAI,SAAyB;IAC7B,OAAO,EAAE,GAAG,CAA6C;gBAGpD,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;IA6BxC,IAAI;IAIJ;;;OAGG;IACI,QAAQ;IAIR,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAInB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAIpB,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAInB,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAInB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAIpB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAKpB,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;CAIhC;;AAED,wBAA0B"}
|