chyz 2.0.0-rc.22 → 2.0.0-rc.24
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 +1 -2
- package/BaseChyz.d.ts.map +1 -1
- package/BaseChyz.js +62 -54
- package/base/CEvents.d.ts +3 -0
- package/base/CEvents.d.ts.map +1 -1
- package/base/CEvents.js +3 -0
- package/base/index.d.ts +1 -0
- package/base/index.d.ts.map +1 -1
- package/base/index.js +3 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/BaseChyz.d.ts
CHANGED
package/BaseChyz.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChyz.d.ts","sourceRoot":"","sources":["../src/BaseChyz.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseChyz.d.ts","sourceRoot":"","sources":["../src/BaseChyz.ts"],"names":[],"mappings":"AAcA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAC;AAsGjC,MAAM,CAAC,OAAO,OAAO,QAAQ;IACzB,OAAO,CAAC,MAAM,CAAuB;IACrC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC;IACvB,MAAM,CAAC,SAAS,EAAE,GAAG,CAAS;IAC9B,OAAO,CAAC,KAAK,CAAgB;IAC7B,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACnB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAc;IAC/B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiB;IACzC,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,MAAM,CAAC,WAAW,CAA4B;IACtD,OAAc,UAAU,EAAE,GAAG,CAAK;IAClC,OAAc,WAAW,EAAE,GAAG,CAAK;IACnC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAU;IAGtC,MA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EAAE,GAAG;IAIrC;;OAEG;IACG,UAAU;IAyBhB;;OAEG;IACG,cAAc;IA4Eb,UAAU;IAwDV,KAAK;CA2Bf"}
|
package/BaseChyz.js
CHANGED
|
@@ -31,22 +31,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
-
};
|
|
37
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
const express = require("express");
|
|
36
|
+
const https = require("https");
|
|
37
|
+
const http = require("http");
|
|
38
|
+
const fs = require("fs");
|
|
39
|
+
/**
|
|
40
|
+
* Freamwork
|
|
41
|
+
*/
|
|
38
42
|
const base_1 = require("./base");
|
|
39
43
|
const Utils_1 = __importStar(require("./requiments/Utils"));
|
|
40
44
|
const Logs_1 = require("./base/Logs");
|
|
41
|
-
const dayjs_1 = __importDefault(require("dayjs"));
|
|
42
|
-
const utc_1 = __importDefault(require("dayjs/plugin/utc"));
|
|
43
45
|
const CEvents_1 = require("./base/CEvents");
|
|
44
|
-
const https = require('https');
|
|
45
|
-
const express = require("express");
|
|
46
46
|
const compression = require('compression');
|
|
47
|
-
const fs = require('fs');
|
|
48
|
-
const validate = require('validate.js');
|
|
49
|
-
dayjs_1.default.extend(utc_1.default);
|
|
47
|
+
// const fs = require('fs');
|
|
50
48
|
/**
|
|
51
49
|
* Use
|
|
52
50
|
* selectedBox: {
|
|
@@ -62,6 +60,37 @@ dayjs_1.default.extend(utc_1.default);
|
|
|
62
60
|
* @param arrayItems
|
|
63
61
|
* @param itemConstraints
|
|
64
62
|
*/
|
|
63
|
+
const ip = require('ip');
|
|
64
|
+
const bodyParser = require('body-parser');
|
|
65
|
+
const methodOverride = require('method-override');
|
|
66
|
+
const Server = express();
|
|
67
|
+
const cors = require('cors');
|
|
68
|
+
const emitter = require('events').EventEmitter;
|
|
69
|
+
const em = new emitter();
|
|
70
|
+
/**
|
|
71
|
+
* set request id
|
|
72
|
+
*/
|
|
73
|
+
Object.defineProperty(Server.request, 'reqId', {
|
|
74
|
+
configurable: true,
|
|
75
|
+
enumerable: true,
|
|
76
|
+
writable: true
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(Server.request, 'user', {
|
|
79
|
+
configurable: true,
|
|
80
|
+
enumerable: true,
|
|
81
|
+
writable: true
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(Server.request, 'identity', {
|
|
84
|
+
configurable: true,
|
|
85
|
+
enumerable: true,
|
|
86
|
+
writable: true
|
|
87
|
+
});
|
|
88
|
+
const validate = require('validate.js');
|
|
89
|
+
const dayjs = require('dayjs');
|
|
90
|
+
const utc = require('dayjs/plugin/utc');
|
|
91
|
+
const relative = require('dayjs/plugin/relativeTime');
|
|
92
|
+
dayjs.extend(utc);
|
|
93
|
+
dayjs.extend(relative);
|
|
65
94
|
validate.validators.array = (arrayItems, itemConstraints) => {
|
|
66
95
|
const arrayItemErrors = arrayItems.reduce((errors, item, index) => {
|
|
67
96
|
const error = validate(item, itemConstraints);
|
|
@@ -85,39 +114,14 @@ validate.extend(validate.validators.datetime, {
|
|
|
85
114
|
// The value is guaranteed not to be null or undefined but otherwise it
|
|
86
115
|
// could be anything.
|
|
87
116
|
parse: function (value, options) {
|
|
88
|
-
return +(
|
|
117
|
+
return +dayjs().utc(value);
|
|
89
118
|
},
|
|
90
119
|
// Input is a unix timestamp
|
|
91
120
|
format: function (value, options) {
|
|
92
121
|
var format = options.dateOnly ? "YYYY-MM-DD" : "YYYY-MM-DD hh:mm:ss";
|
|
93
|
-
return (
|
|
122
|
+
return dayjs().utc(value).format(format);
|
|
94
123
|
}
|
|
95
124
|
});
|
|
96
|
-
const ip = require('ip');
|
|
97
|
-
const bodyParser = require('body-parser');
|
|
98
|
-
const methodOverride = require('method-override');
|
|
99
|
-
const Server = express();
|
|
100
|
-
const cors = require('cors');
|
|
101
|
-
const emitter = require('events').EventEmitter;
|
|
102
|
-
const em = new emitter();
|
|
103
|
-
/**
|
|
104
|
-
* set request id
|
|
105
|
-
*/
|
|
106
|
-
Object.defineProperty(Server.request, 'reqId', {
|
|
107
|
-
configurable: true,
|
|
108
|
-
enumerable: true,
|
|
109
|
-
writable: true
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(Server.request, 'user', {
|
|
112
|
-
configurable: true,
|
|
113
|
-
enumerable: true,
|
|
114
|
-
writable: true
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(Server.request, 'identity', {
|
|
117
|
-
configurable: true,
|
|
118
|
-
enumerable: true,
|
|
119
|
-
writable: true
|
|
120
|
-
});
|
|
121
125
|
class BaseChyz {
|
|
122
126
|
constructor() {
|
|
123
127
|
this._port = 3001;
|
|
@@ -186,6 +190,7 @@ class BaseChyz {
|
|
|
186
190
|
}
|
|
187
191
|
app(config = {}) {
|
|
188
192
|
var _a;
|
|
193
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_INIT_BEFORE, this, config);
|
|
189
194
|
/**
|
|
190
195
|
* Config set
|
|
191
196
|
*/
|
|
@@ -220,6 +225,7 @@ class BaseChyz {
|
|
|
220
225
|
}
|
|
221
226
|
}
|
|
222
227
|
this.init();
|
|
228
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_INIT_AFTER, this, config);
|
|
223
229
|
return this;
|
|
224
230
|
}
|
|
225
231
|
static trace(...args) {
|
|
@@ -333,7 +339,7 @@ class BaseChyz {
|
|
|
333
339
|
let actionId = route.path == "/" || route.path == "" ? instance.defaultAction : route.path;
|
|
334
340
|
route.id = actionId;
|
|
335
341
|
BaseChyz.debug("Controller route Path", prefix + (route.path.startsWith("/") ? route.path : `/${route.path}`));
|
|
336
|
-
BaseChyz.
|
|
342
|
+
BaseChyz.propvider[route.requestMethod](prefix + (route.path.startsWith("/") ? route.path : `/${route.path}`), (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
337
343
|
try {
|
|
338
344
|
BaseChyz.debug(`Call Request id ${instance.id}`);
|
|
339
345
|
yield instance.beforeAction(route, req, res);
|
|
@@ -372,10 +378,10 @@ class BaseChyz {
|
|
|
372
378
|
});
|
|
373
379
|
}
|
|
374
380
|
middleware() {
|
|
375
|
-
BaseChyz.
|
|
376
|
-
BaseChyz.
|
|
377
|
-
BaseChyz.
|
|
378
|
-
BaseChyz.
|
|
381
|
+
BaseChyz.propvider.use(bodyParser.json({ limit: '1mb' }));
|
|
382
|
+
BaseChyz.propvider.use(bodyParser.urlencoded({ limit: '1mb', extended: true })); // support encoded bodies
|
|
383
|
+
BaseChyz.propvider.use(methodOverride());
|
|
384
|
+
BaseChyz.propvider.use(cors());
|
|
379
385
|
//
|
|
380
386
|
// // CORS
|
|
381
387
|
// BaseChyz.express.use(function (req: any, res: Response, next: any) {
|
|
@@ -398,54 +404,56 @@ class BaseChyz {
|
|
|
398
404
|
// use compression filter function
|
|
399
405
|
return compression.filter(req, res);
|
|
400
406
|
};
|
|
401
|
-
BaseChyz.
|
|
407
|
+
BaseChyz.propvider.use(compression({ filter: shouldCompress }));
|
|
402
408
|
//
|
|
403
409
|
// //static file path
|
|
404
410
|
if (this.config.staticFilePath) {
|
|
405
411
|
BaseChyz.info('Static file path', this.config.staticFilePath);
|
|
406
|
-
BaseChyz.
|
|
412
|
+
BaseChyz.propvider.use(express.static(this.config.staticFilePath));
|
|
407
413
|
}
|
|
408
414
|
//Middlewares
|
|
409
415
|
for (const middleware1 of Object.keys(BaseChyz.middlewares)) {
|
|
410
416
|
if (!Utils_1.Utils.isFunction(middleware1)) {
|
|
411
417
|
let keycloak = BaseChyz.middlewares[middleware1].keycloak;
|
|
412
|
-
BaseChyz.
|
|
418
|
+
BaseChyz.propvider.use(keycloak.middleware(BaseChyz.middlewares[middleware1].config));
|
|
413
419
|
}
|
|
414
420
|
else {
|
|
415
|
-
BaseChyz.
|
|
421
|
+
BaseChyz.propvider.use(BaseChyz.middlewares[middleware1]);
|
|
416
422
|
}
|
|
417
423
|
}
|
|
418
|
-
BaseChyz.
|
|
419
|
-
BaseChyz.
|
|
424
|
+
BaseChyz.propvider.use(this.errorResponder);
|
|
425
|
+
BaseChyz.propvider.use(this.errorHandler);
|
|
426
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_MIDDLEWARE, this);
|
|
420
427
|
}
|
|
421
428
|
Start() {
|
|
422
429
|
var _a, _b;
|
|
423
430
|
BaseChyz.info("Express Server Starting");
|
|
424
|
-
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_BEFORE_START);
|
|
431
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_BEFORE_START, this);
|
|
425
432
|
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.ssl) {
|
|
426
|
-
BaseChyz.httpServer = https.createServer((_b = this.config) === null || _b === void 0 ? void 0 : _b.ssl, BaseChyz.
|
|
433
|
+
BaseChyz.httpServer = https.createServer((_b = this.config) === null || _b === void 0 ? void 0 : _b.ssl, BaseChyz.propvider);
|
|
427
434
|
BaseChyz.httpServer.listen(this._port, () => {
|
|
428
435
|
BaseChyz.info("Express Server Start ");
|
|
429
436
|
BaseChyz.info(`Liten Port ${this._port}`);
|
|
430
437
|
BaseChyz.info(`https://localhost:${this._port}`);
|
|
431
438
|
BaseChyz.info(`https://${ip.address()}:${this._port}`);
|
|
432
|
-
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_START);
|
|
439
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_START, this);
|
|
433
440
|
});
|
|
434
441
|
}
|
|
435
442
|
else {
|
|
436
|
-
BaseChyz.httpServer =
|
|
443
|
+
BaseChyz.httpServer = http.createServer(BaseChyz.propvider);
|
|
444
|
+
BaseChyz.propvider.listen(this._port, () => {
|
|
437
445
|
BaseChyz.info("Express Server Start ");
|
|
438
446
|
BaseChyz.info(`Liten Port ${this._port}`);
|
|
439
447
|
BaseChyz.info(`http://localhost:${this._port}`);
|
|
440
448
|
BaseChyz.info(`http://${ip.address()}:${this._port}`);
|
|
441
|
-
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_START);
|
|
449
|
+
BaseChyz.EventEmitter.emit(CEvents_1.CEvents.ON_START, this);
|
|
442
450
|
});
|
|
443
451
|
}
|
|
444
452
|
return this;
|
|
445
453
|
}
|
|
446
454
|
}
|
|
447
455
|
exports.default = BaseChyz;
|
|
448
|
-
BaseChyz.
|
|
456
|
+
BaseChyz.propvider = Server;
|
|
449
457
|
BaseChyz.logs = new Logs_1.Logs();
|
|
450
458
|
BaseChyz._validate = validate;
|
|
451
459
|
BaseChyz.controllers = [];
|
package/base/CEvents.d.ts
CHANGED
package/base/CEvents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CEvents.d.ts","sourceRoot":"","sources":["../../src/base/CEvents.ts"],"names":[],"mappings":"AAQA,oBAAY,OAAO;IACf,eAAe,kBAAkB;IACjC,cAAc,kBAAkB;IAChC,QAAQ,YAAY;IAEpB,gBAAgB,mBAAmB;IACnC,eAAe,kBAAkB;IAEjC,gBAAgB,mBAAiB;IACjC,gBAAgB,mBAAiB;CAGpC"}
|
|
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
CHANGED
|
@@ -11,6 +11,9 @@ exports.CEvents = void 0;
|
|
|
11
11
|
*/
|
|
12
12
|
var CEvents;
|
|
13
13
|
(function (CEvents) {
|
|
14
|
+
CEvents["ON_INIT_BEFORE"] = "oninitbefore";
|
|
15
|
+
CEvents["ON_INIT_AFTER"] = "oninitafter";
|
|
16
|
+
CEvents["ON_MIDDLEWARE"] = "onmiddleware";
|
|
14
17
|
CEvents["ON_BEFORE_START"] = "onbeforestart";
|
|
15
18
|
CEvents["ON_AFTER_START"] = "onafterestart";
|
|
16
19
|
CEvents["ON_START"] = "onstart";
|
package/base/index.d.ts
CHANGED
|
@@ -16,4 +16,5 @@ export { ValidationHttpException } from "./ValidationHttpException";
|
|
|
16
16
|
export { Model, Relation, DataTypes, NOW } from "./Model";
|
|
17
17
|
export { RestClient } from "./RestClient";
|
|
18
18
|
export { ModelManager } from "./ModelManager";
|
|
19
|
+
export { CEvents } from "./CEvents";
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
package/base/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACnC,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAC,wBAAwB,EAAC,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAC,qB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AAC,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA"}
|
package/base/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelManager = exports.RestClient = exports.NOW = exports.DataTypes = exports.Model = exports.ValidationHttpException = exports.DataErrorDbException = exports.UnauthorizedHttpException = exports.NotFoundHttpException = exports.InvalidArgumentException = exports.InvalidConfigException = exports.ForbiddenHttpException = exports.DbConnection = exports.CWebController = exports.Component = exports.Behavior = exports.ActionFilter = exports.BaseError = exports.Logs = void 0;
|
|
3
|
+
exports.CEvents = exports.ModelManager = exports.RestClient = exports.NOW = exports.DataTypes = exports.Model = exports.ValidationHttpException = exports.DataErrorDbException = exports.UnauthorizedHttpException = exports.NotFoundHttpException = exports.InvalidArgumentException = exports.InvalidConfigException = exports.ForbiddenHttpException = exports.DbConnection = exports.CWebController = exports.Component = exports.Behavior = exports.ActionFilter = exports.BaseError = exports.Logs = void 0;
|
|
4
4
|
var Logs_1 = require("./Logs");
|
|
5
5
|
Object.defineProperty(exports, "Logs", { enumerable: true, get: function () { return Logs_1.Logs; } });
|
|
6
6
|
var BaseError_1 = require("./BaseError");
|
|
@@ -37,3 +37,5 @@ var RestClient_1 = require("./RestClient");
|
|
|
37
37
|
Object.defineProperty(exports, "RestClient", { enumerable: true, get: function () { return RestClient_1.RestClient; } });
|
|
38
38
|
var ModelManager_1 = require("./ModelManager");
|
|
39
39
|
Object.defineProperty(exports, "ModelManager", { enumerable: true, get: function () { return ModelManager_1.ModelManager; } });
|
|
40
|
+
var CEvents_1 = require("./CEvents");
|
|
41
|
+
Object.defineProperty(exports, "CEvents", { enumerable: true, get: function () { return CEvents_1.CEvents; } });
|
package/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { Request, Response, NextFunction } from "./base/CRequest";
|
|
|
13
13
|
export { RouteDefinition } from "./model/RouteDefinition";
|
|
14
14
|
export { WebUser } from "./web/WebUser";
|
|
15
15
|
export { BaseChyz, RestClient };
|
|
16
|
-
export { Logs, ActionFilter, BaseError, Behavior, Component, Configurable, CWebController, DbConnection, ForbiddenHttpException, InvalidConfigException, InvalidArgumentException, NotFoundHttpException, UnauthorizedHttpException, DataErrorDbException, ValidationHttpException, Model, ModelManager, } from "./base";
|
|
16
|
+
export { Logs, ActionFilter, BaseError, Behavior, Component, Configurable, CWebController, DbConnection, ForbiddenHttpException, InvalidConfigException, InvalidArgumentException, NotFoundHttpException, UnauthorizedHttpException, DataErrorDbException, ValidationHttpException, Model, ModelManager, CEvents } from "./base";
|
|
17
17
|
export * from "./filters";
|
|
18
18
|
export * from "./filters/auth";
|
|
19
19
|
export * from "./decorator";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb,QAAQ,EAAE,GAAG,CAAC;KACjB;CACJ;AAGD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,QAAA,MAAM,IAAI,UAAiB,CAAC;AAC5B,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,CAAA;AAC7B,OAAO,EACH,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,QAAQ,2BAA2B,CAAC;IACvC,UAAU,OAAO;QACb,QAAQ,EAAE,GAAG,CAAC;KACjB;CACJ;AAGD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC;;GAEG;AACH,QAAA,MAAM,IAAI,UAAiB,CAAC;AAC5B,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,CAAA;AAC7B,OAAO,EACH,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,EACL,YAAY,EACZ,OAAO,EACV,MAAM,QAAQ,CAAC;AAChB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,eAAe,IAAI,CAAC"}
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.ModelManager = exports.Model = exports.ValidationHttpException = exports.DataErrorDbException = exports.UnauthorizedHttpException = exports.NotFoundHttpException = exports.InvalidArgumentException = exports.InvalidConfigException = exports.ForbiddenHttpException = exports.DbConnection = exports.CWebController = exports.Component = exports.Behavior = exports.BaseError = exports.ActionFilter = exports.Logs = exports.RestClient = exports.BaseChyz = exports.WebUser = void 0;
|
|
28
|
+
exports.CEvents = exports.ModelManager = exports.Model = exports.ValidationHttpException = exports.DataErrorDbException = exports.UnauthorizedHttpException = exports.NotFoundHttpException = exports.InvalidArgumentException = exports.InvalidConfigException = exports.ForbiddenHttpException = exports.DbConnection = exports.CWebController = exports.Component = exports.Behavior = exports.BaseError = exports.ActionFilter = exports.Logs = exports.RestClient = exports.BaseChyz = exports.WebUser = void 0;
|
|
29
29
|
const RestClient_1 = require("./base/RestClient");
|
|
30
30
|
Object.defineProperty(exports, "RestClient", { enumerable: true, get: function () { return RestClient_1.RestClient; } });
|
|
31
31
|
const BaseChyz_1 = __importDefault(require("./BaseChyz"));
|
|
@@ -53,6 +53,7 @@ Object.defineProperty(exports, "DataErrorDbException", { enumerable: true, get:
|
|
|
53
53
|
Object.defineProperty(exports, "ValidationHttpException", { enumerable: true, get: function () { return base_1.ValidationHttpException; } });
|
|
54
54
|
Object.defineProperty(exports, "Model", { enumerable: true, get: function () { return base_1.Model; } });
|
|
55
55
|
Object.defineProperty(exports, "ModelManager", { enumerable: true, get: function () { return base_1.ModelManager; } });
|
|
56
|
+
Object.defineProperty(exports, "CEvents", { enumerable: true, get: function () { return base_1.CEvents; } });
|
|
56
57
|
__exportStar(require("./filters"), exports);
|
|
57
58
|
__exportStar(require("./filters/auth"), exports);
|
|
58
59
|
__exportStar(require("./decorator"), exports);
|