@adaas/a-server 0.0.13 → 0.0.15
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/.nvmrc +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/src/components/A-CommandController/A-CommandController.component.d.ts +8 -0
- package/dist/src/components/A-CommandController/A-CommandController.component.js +53 -0
- package/dist/src/components/A-CommandController/A-CommandController.component.js.map +1 -0
- package/dist/src/components/{A_Controller/A_Controller.component.js → A-Controller/A-Controller.component.js} +1 -1
- package/dist/src/components/{A_Controller/A_Controller.component.js.map → A-Controller/A-Controller.component.js.map} +1 -1
- package/dist/src/components/A-Controller/A-Controller.component.types.js +2 -0
- package/dist/src/components/A-Controller/A-Controller.component.types.js.map +1 -0
- package/dist/src/components/A-EntityController/A-EntityController.component.js +1 -2
- package/dist/src/components/A-EntityController/A-EntityController.component.js.map +1 -1
- package/dist/src/components/A-ListingController/A-ListingController.component.d.ts +1 -1
- package/dist/src/components/A-ListingController/A-ListingController.component.js.map +1 -1
- package/dist/src/components/A-Router/A-Router.component.js +13 -10
- package/dist/src/components/A-Router/A-Router.component.js.map +1 -1
- package/dist/src/components/A-Router/A-Router.component.types.d.ts +7 -2
- package/dist/src/components/A-Router/A-Router.component.types.js.map +1 -1
- package/dist/src/components/A-ServerCORS/A_ServerCORS.component.d.ts +1 -1
- package/dist/src/components/A-ServerCORS/A_ServerCORS.component.js +3 -3
- package/dist/src/components/A-ServerCORS/A_ServerCORS.component.js.map +1 -1
- package/dist/src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.d.ts +1 -1
- package/dist/src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.js +1 -1
- package/dist/src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.js.map +1 -1
- package/dist/src/components/A-ServerLogger/A-ServerLogger.constants.d.ts +22 -0
- package/dist/src/components/A-ServerLogger/A-ServerLogger.constants.js +31 -0
- package/dist/src/components/A-ServerLogger/A-ServerLogger.constants.js.map +1 -0
- package/dist/src/components/A-ServerLogger/A_ServerLogger.component.d.ts +2 -2
- package/dist/src/components/A-ServerLogger/A_ServerLogger.component.js +6 -6
- package/dist/src/components/A-ServerLogger/A_ServerLogger.component.js.map +1 -1
- package/dist/src/components/A-ServerLogger/A_ServerLogger.component.types.d.ts +2 -0
- package/dist/src/components/A-ServerProxy/A-ServerProxy.component.js +2 -2
- package/dist/src/components/A-ServerProxy/A-ServerProxy.component.js.map +1 -1
- package/dist/src/components/A-StaticLoader/A-StaticLoader.component.js +2 -2
- package/dist/src/components/A-StaticLoader/A-StaticLoader.component.js.map +1 -1
- package/dist/src/components/A-StaticLoader/A-StaticLoader.component.types.js +2 -2
- package/dist/src/components/A-StaticLoader/A-StaticLoader.component.types.js.map +1 -1
- package/dist/src/constants/env.constants.d.ts +10 -0
- package/dist/src/constants/env.constants.js +20 -0
- package/dist/src/constants/env.constants.js.map +1 -0
- package/dist/src/containers/{A-Server/A-Server.container.d.ts → A-Service/A-Service.container.d.ts} +6 -1
- package/dist/src/containers/{A-Server/A-Server.container.js → A-Service/A-Service.container.js} +40 -28
- package/dist/src/containers/A-Service/A-Service.container.js.map +1 -0
- package/dist/src/containers/{A-Server/A-Server.container.types.d.ts → A-Service/A-Service.container.types.d.ts} +3 -1
- package/dist/src/containers/{A-Server/A-Server.container.types.js → A-Service/A-Service.container.types.js} +3 -1
- package/dist/src/containers/A-Service/A-Service.container.types.js.map +1 -0
- package/dist/src/entities/A-Response/A-Response.entity.js.map +1 -1
- package/dist/src/entities/A_EntityList/A_EntityList.entity.d.ts +1 -0
- package/dist/src/entities/A_EntityList/A_EntityList.entity.js +3 -0
- package/dist/src/entities/A_EntityList/A_EntityList.entity.js.map +1 -1
- package/examples/microservices-server/components/repositories/Memory.repository.ts +2 -2
- package/examples/microservices-server/concept.ts +1 -1
- package/examples/simple-server/commands/SignIn.command.ts +10 -0
- package/examples/simple-server/concept.ts +10 -5
- package/index.ts +5 -4
- package/jest.config.ts +1 -1
- package/package.json +3 -3
- package/src/components/A-CommandController/A-CommandController.component.ts +40 -0
- package/src/components/A-EntityController/A-EntityController.component.ts +1 -6
- package/src/components/A-ListingController/A-ListingController.component.ts +1 -1
- package/src/components/A-Router/A-Router.component.ts +15 -11
- package/src/components/A-Router/A-Router.component.types.ts +9 -2
- package/src/components/A-ServerCORS/A_ServerCORS.component.ts +3 -3
- package/src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.ts +2 -2
- package/src/components/A-ServerLogger/A-ServerLogger.constants.ts +27 -0
- package/src/components/A-ServerLogger/A_ServerLogger.component.ts +7 -13
- package/src/components/A-ServerLogger/A_ServerLogger.component.types.ts +14 -1
- package/src/components/A-ServerProxy/A-ServerProxy.component.ts +1 -1
- package/src/components/A-StaticLoader/A-StaticLoader.component.ts +1 -1
- package/src/components/A-StaticLoader/A-StaticLoader.component.types.ts +1 -1
- package/src/constants/env.constants.ts +26 -0
- package/src/containers/{A-Server/A-Server.container.ts → A-Service/A-Service.container.ts} +31 -20
- package/src/containers/{A-Server/A-Server.container.types.ts → A-Service/A-Service.container.types.ts} +2 -0
- package/src/entities/A-Response/A-Response.entity.ts +0 -2
- package/src/entities/A_EntityList/A_EntityList.entity.ts +5 -0
- package/tests/A-Service.test.ts +20 -0
- package/dist/src/components/A_Controller/A_Controller.component.types.js +0 -2
- package/dist/src/components/A_Controller/A_Controller.component.types.js.map +0 -1
- package/dist/src/containers/A-Server/A-Server.container.js.map +0 -1
- package/dist/src/containers/A-Server/A-Server.container.types.js.map +0 -1
- package/tests/app.test.ts +0 -29
- package/tests/decorator.test.ts +0 -33
- package/tests/default.test.ts +0 -121
- /package/dist/src/components/{A_Controller/A_Controller.component.d.ts → A-Controller/A-Controller.component.d.ts} +0 -0
- /package/dist/src/components/{A_Controller/A_Controller.component.types.d.ts → A-Controller/A-Controller.component.types.d.ts} +0 -0
- /package/src/components/{A_Controller/A_Controller.component.ts → A-Controller/A-Controller.component.ts} +0 -0
- /package/src/components/{A_Controller/A_Controller.component.types.ts → A-Controller/A-Controller.component.types.ts} +0 -0
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v22.20.0
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A_Service } from './src/containers/A-Service/A-Service.container';
|
|
2
2
|
export { A_Server } from './src/context/A-Server/A_Server.context';
|
|
3
3
|
export { A_ProxyConfig } from './src/context/A_ProxyConfig/A_ProxyConfig.context';
|
|
4
4
|
export { A_StaticConfig } from './src/context/A-StaticConfig/A-StaticConfig.context';
|
|
@@ -14,11 +14,12 @@ export { A_ServerHealthMonitor } from './src/components/A-ServerHealthMonitor/A-
|
|
|
14
14
|
export { A_ServerProxy } from './src/components/A-ServerProxy/A-ServerProxy.component';
|
|
15
15
|
export { A_ServerCORS } from './src/components/A-ServerCORS/A_ServerCORS.component';
|
|
16
16
|
export { A_StaticLoader } from './src/components/A-StaticLoader/A-StaticLoader.component';
|
|
17
|
-
export { A_Controller } from './src/components/
|
|
17
|
+
export { A_Controller } from './src/components/A-Controller/A-Controller.component';
|
|
18
18
|
export { A_ListingController } from './src/components/A-ListingController/A-ListingController.component';
|
|
19
|
-
export * from './src/containers/A-
|
|
20
|
-
export * from './src/containers/A-
|
|
19
|
+
export * from './src/containers/A-Service/A-Service.container.types';
|
|
20
|
+
export * from './src/containers/A-Service/A-Service.container.types';
|
|
21
21
|
export * from './src/context/A_ProxyConfig/A_ProxyConfig.types';
|
|
22
22
|
export * from './src/entities/A-Request/A-Request.entity.types';
|
|
23
23
|
export * from './src/entities/A-Response/A-Response.entity.types';
|
|
24
24
|
export * from './src/components/A-ServerCORS/A_ServerCORS.component.types';
|
|
25
|
+
export * from "./src/components/A-Router/A-Router.component.types";
|
package/dist/index.js
CHANGED
|
@@ -14,11 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.A_ListingController = exports.A_Controller = exports.A_StaticLoader = exports.A_ServerCORS = exports.A_ServerProxy = exports.A_ServerHealthMonitor = exports.A_Router = exports.A_EntityController = exports.A_ServerLogger = exports.A_EntityList = exports.A_Route = exports.A_Response = exports.A_Request = exports.A_ListQueryFilter = exports.A_StaticConfig = exports.A_ProxyConfig = exports.A_Server = exports.
|
|
17
|
+
exports.A_ListingController = exports.A_Controller = exports.A_StaticLoader = exports.A_ServerCORS = exports.A_ServerProxy = exports.A_ServerHealthMonitor = exports.A_Router = exports.A_EntityController = exports.A_ServerLogger = exports.A_EntityList = exports.A_Route = exports.A_Response = exports.A_Request = exports.A_ListQueryFilter = exports.A_StaticConfig = exports.A_ProxyConfig = exports.A_Server = exports.A_Service = void 0;
|
|
18
18
|
// ================================================================
|
|
19
19
|
// Containers Export
|
|
20
|
-
var
|
|
21
|
-
Object.defineProperty(exports, "
|
|
20
|
+
var A_Service_container_1 = require("./src/containers/A-Service/A-Service.container");
|
|
21
|
+
Object.defineProperty(exports, "A_Service", { enumerable: true, get: function () { return A_Service_container_1.A_Service; } });
|
|
22
22
|
// Contexts Export
|
|
23
23
|
var A_Server_context_1 = require("./src/context/A-Server/A_Server.context");
|
|
24
24
|
Object.defineProperty(exports, "A_Server", { enumerable: true, get: function () { return A_Server_context_1.A_Server; } });
|
|
@@ -52,17 +52,18 @@ var A_ServerCORS_component_1 = require("./src/components/A-ServerCORS/A_ServerCO
|
|
|
52
52
|
Object.defineProperty(exports, "A_ServerCORS", { enumerable: true, get: function () { return A_ServerCORS_component_1.A_ServerCORS; } });
|
|
53
53
|
var A_StaticLoader_component_1 = require("./src/components/A-StaticLoader/A-StaticLoader.component");
|
|
54
54
|
Object.defineProperty(exports, "A_StaticLoader", { enumerable: true, get: function () { return A_StaticLoader_component_1.A_StaticLoader; } });
|
|
55
|
-
var A_Controller_component_1 = require("./src/components/
|
|
55
|
+
var A_Controller_component_1 = require("./src/components/A-Controller/A-Controller.component");
|
|
56
56
|
Object.defineProperty(exports, "A_Controller", { enumerable: true, get: function () { return A_Controller_component_1.A_Controller; } });
|
|
57
57
|
var A_ListingController_component_1 = require("./src/components/A-ListingController/A-ListingController.component");
|
|
58
58
|
Object.defineProperty(exports, "A_ListingController", { enumerable: true, get: function () { return A_ListingController_component_1.A_ListingController; } });
|
|
59
59
|
// Types Export
|
|
60
|
-
__exportStar(require("./src/containers/A-
|
|
61
|
-
__exportStar(require("./src/containers/A-
|
|
60
|
+
__exportStar(require("./src/containers/A-Service/A-Service.container.types"), exports);
|
|
61
|
+
__exportStar(require("./src/containers/A-Service/A-Service.container.types"), exports);
|
|
62
62
|
__exportStar(require("./src/context/A_ProxyConfig/A_ProxyConfig.types"), exports);
|
|
63
63
|
__exportStar(require("./src/entities/A-Request/A-Request.entity.types"), exports);
|
|
64
64
|
__exportStar(require("./src/entities/A-Response/A-Response.entity.types"), exports);
|
|
65
65
|
__exportStar(require("./src/components/A-ServerCORS/A_ServerCORS.component.types"), exports);
|
|
66
|
+
__exportStar(require("./src/components/A-Router/A-Router.component.types"), exports);
|
|
66
67
|
// export * from './src/entities/A-Route/A-Route.entity.types';
|
|
67
68
|
// export * from './src/components/A-ServerLogger/A_ServerLogger.component.types';
|
|
68
69
|
// export * from './src/components/A-EntityController/A-EntityController.component.types';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mEAAmE;AACnE,qBAAqB;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,mEAAmE;AACnE,qBAAqB;AACrB,sFAA2E;AAAlE,gHAAA,SAAS,OAAA;AAElB,mBAAmB;AACnB,4EAAmE;AAA1D,4GAAA,QAAQ,OAAA;AACjB,2FAAkF;AAAzE,sHAAA,aAAa,OAAA;AACtB,8FAAqF;AAA5E,wHAAA,cAAc,OAAA;AACvB,uGAA8F;AAArF,8HAAA,iBAAiB,OAAA;AAE1B,mBAAmB;AACnB,8EAAsE;AAA7D,6GAAA,SAAS,OAAA;AAClB,iFAAyE;AAAhE,+GAAA,UAAU,OAAA;AACnB,wEAAgE;AAAvD,yGAAA,OAAO,OAAA;AAChB,uFAA+E;AAAtE,mHAAA,YAAY,OAAA;AAErB,qBAAqB;AACrB,qGAA0F;AAAjF,0HAAA,cAAc,OAAA;AACvB,iHAAsG;AAA7F,kIAAA,kBAAkB,OAAA;AAC3B,mFAAwE;AAA/D,8GAAA,QAAQ,OAAA;AACjB,0HAA+G;AAAtG,wIAAA,qBAAqB,OAAA;AAC9B,kGAAuF;AAA9E,wHAAA,aAAa,OAAA;AACtB,+FAAoF;AAA3E,sHAAA,YAAY,OAAA;AACrB,qGAA0F;AAAjF,0HAAA,cAAc,OAAA;AACvB,+FAAoF;AAA3E,sHAAA,YAAY,OAAA;AACrB,oHAAyG;AAAhG,oIAAA,mBAAmB,OAAA;AAE5B,gBAAgB;AAChB,uFAAqE;AACrE,uFAAqE;AACrE,kFAAgE;AAChE,kFAAgE;AAChE,oFAAkE;AAClE,6FAA2E;AAC3E,qFAAmE;AAGnE,+DAA+D;AAC/D,kFAAkF;AAClF,0FAA0F;AAC1F,sEAAsE;AACtE,gGAAgG;AAChG,gFAAgF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { A_Component, A_Scope } from "@adaas/a-concept";
|
|
2
|
+
import { A_Request } from "../../entities/A-Request/A-Request.entity";
|
|
3
|
+
import { A_Response } from "../../entities/A-Response/A-Response.entity";
|
|
4
|
+
export declare class A_CommandController extends A_Component {
|
|
5
|
+
handleCommand(req: A_Request<any, any, {
|
|
6
|
+
command: string;
|
|
7
|
+
}>, res: A_Response, scope: A_Scope): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.A_CommandController = void 0;
|
|
22
|
+
const a_concept_1 = require("@adaas/a-concept");
|
|
23
|
+
const A_Router_component_1 = require("../A-Router/A-Router.component");
|
|
24
|
+
const A_Request_entity_1 = require("../../entities/A-Request/A-Request.entity");
|
|
25
|
+
const A_Response_entity_1 = require("../../entities/A-Response/A-Response.entity");
|
|
26
|
+
class A_CommandController extends a_concept_1.A_Component {
|
|
27
|
+
handleCommand(req, res, scope) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const commandName = req.params.command;
|
|
30
|
+
const CommandConstructor = scope.resolveConstructor(commandName);
|
|
31
|
+
if (!CommandConstructor) {
|
|
32
|
+
res.status(404);
|
|
33
|
+
throw new Error(`Command ${commandName} not found`);
|
|
34
|
+
}
|
|
35
|
+
const command = new CommandConstructor(req.body);
|
|
36
|
+
yield command.execute();
|
|
37
|
+
const serialized = command.toJSON();
|
|
38
|
+
return res.status(200).json(serialized);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.A_CommandController = A_CommandController;
|
|
43
|
+
__decorate([
|
|
44
|
+
A_Router_component_1.A_Router.Get({
|
|
45
|
+
path: "/:command/execute",
|
|
46
|
+
version: "v1",
|
|
47
|
+
prefix: "a-command"
|
|
48
|
+
}),
|
|
49
|
+
__param(0, (0, a_concept_1.A_Inject)(A_Request_entity_1.A_Request)),
|
|
50
|
+
__param(1, (0, a_concept_1.A_Inject)(A_Response_entity_1.A_Response)),
|
|
51
|
+
__param(2, (0, a_concept_1.A_Inject)(a_concept_1.A_Scope))
|
|
52
|
+
], A_CommandController.prototype, "handleCommand", null);
|
|
53
|
+
//# sourceMappingURL=A-CommandController.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-CommandController.component.js","sourceRoot":"","sources":["../../../../src/components/A-CommandController/A-CommandController.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAA6E;AAC7E,uEAA0D;AAC1D,0FAAgF;AAChF,6FAAmF;AAGnF,MAAa,mBAAoB,SAAQ,uBAAW;IAO1C,aAAa,CACM,GAA6C,EAC5C,GAAe,EAClB,KAAc;;YAGjC,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC;YAGvC,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAY,WAAW,CAAC,CAAC;YAE5E,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACtB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAEhB,MAAM,IAAI,KAAK,CAAC,WAAW,WAAW,YAAY,CAAC,CAAC;YACxD,CAAC;YAED,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAEjD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YAExB,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;YAEpC,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;KAAA;CAEJ;AAjCD,kDAiCC;AA1BS;IALL,6BAAQ,CAAC,GAAG,CAAC;QACV,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,WAAW;KACtB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;wDAqBrB"}
|
|
@@ -61,4 +61,4 @@ __decorate([
|
|
|
61
61
|
__param(1, (0, a_concept_1.A_Inject)(A_Response_entity_1.A_Response)),
|
|
62
62
|
__param(2, (0, a_concept_1.A_Inject)(a_concept_1.A_Scope))
|
|
63
63
|
], A_Controller.prototype, "callEntityMethod", null);
|
|
64
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=A-Controller.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"A-Controller.component.js","sourceRoot":"","sources":["../../../../src/components/A-Controller/A-Controller.component.ts"],"names":[],"mappings":";;;;;;;;;;;;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AI,CAAC;QACX,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,aAAa;KACxB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IAInB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;oDAiCrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Controller.component.types.js","sourceRoot":"","sources":["../../../../src/components/A-Controller/A-Controller.component.types.ts"],"names":[],"mappings":""}
|
|
@@ -40,8 +40,7 @@ class A_EntityController extends a_concept_1.A_Component {
|
|
|
40
40
|
const entity = new constructor(request.params.aseid);
|
|
41
41
|
scope.register(entity);
|
|
42
42
|
yield entity.load();
|
|
43
|
-
response.
|
|
44
|
-
response.add('type', entity.entity);
|
|
43
|
+
return response.status(200).json(entity.toJSON());
|
|
45
44
|
}
|
|
46
45
|
else
|
|
47
46
|
throw new Error('Entity is not available or invalid');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-EntityController.component.js","sourceRoot":"","sources":["../../../../src/components/A-EntityController/A-EntityController.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwF;AACxF,0FAAgF;AAChF,uEAA0D;AAC1D,6GAAkG;AAClG,6FAAmF;AACnF,4CAAuC;AAIvC,MAAa,kBAAmB,SAAQ,uBAAW;IAE/C,0DAA0D;IAC1D,0DAA0D;IAC1D,0DAA0D;
|
|
1
|
+
{"version":3,"file":"A-EntityController.component.js","sourceRoot":"","sources":["../../../../src/components/A-EntityController/A-EntityController.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwF;AACxF,0FAAgF;AAChF,uEAA0D;AAC1D,6GAAkG;AAClG,6FAAmF;AACnF,4CAAuC;AAIvC,MAAa,kBAAmB,SAAQ,uBAAW;IAE/C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AA,oBAAQ,EAAC,yCAAe,CAAC,CAAA;IACzB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;gDAgBrB;AAaK;IATL,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,KAAK;KAChB,CAAC;IACD,6BAAQ,CAAC,IAAI,CAAC;QACX,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,UAAU;KACrB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,yCAAe,CAAC,CAAA;IACzB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;oDAkCrB"}
|
|
@@ -5,5 +5,5 @@ import { A_Response } from "../../entities/A-Response/A-Response.entity";
|
|
|
5
5
|
export declare class A_ListingController extends A_Component {
|
|
6
6
|
list(request: A_Request<any, any, {
|
|
7
7
|
type: string;
|
|
8
|
-
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope, config: A_Config<'A_LIST_ITEMS_PER_PAGE'
|
|
8
|
+
}>, response: A_Response, factory: A_EntityFactory, scope: A_Scope, config: A_Config<['A_LIST_ITEMS_PER_PAGE', 'A_LIST_PAGE']>): Promise<void>;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-ListingController.component.js","sourceRoot":"","sources":["../../../../src/components/A-ListingController/A-ListingController.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAsF;AACtF,6GAAkG;AAClG,0FAAgF;AAChF,6FAAmF;AACnF,uEAA0D;AAC1D,mGAAyF;AACzF,mHAAwG;AAIxG,MAAa,mBAAoB,SAAQ,uBAAW;IAW1C,IAAI,CACe,OAA8C,EAC7C,QAAoB,EACf,OAAwB,EAChC,KAAc,EACb,
|
|
1
|
+
{"version":3,"file":"A-ListingController.component.js","sourceRoot":"","sources":["../../../../src/components/A-ListingController/A-ListingController.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAsF;AACtF,6GAAkG;AAClG,0FAAgF;AAChF,6FAAmF;AACnF,uEAA0D;AAC1D,mGAAyF;AACzF,mHAAwG;AAIxG,MAAa,mBAAoB,SAAQ,uBAAW;IAW1C,IAAI,CACe,OAA8C,EAC7C,QAAoB,EACf,OAAwB,EAChC,KAAc,EACb,MAA0D;;YAG9E,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAE/D,IAAI,WAAW,EAAE,CAAC;gBAEd,MAAM,UAAU,GAAG,IAAI,kCAAY,CAAC;oBAChC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI;oBACzB,KAAK,EAAE,KAAK,CAAC,IAAI;oBACjB,WAAW;iBACd,CAAC,CAAC;gBAEH,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;gBAE3B,MAAM,WAAW,GAAG,IAAI,6CAAiB,CAAC,OAAO,CAAC,KAAK,EAAE;oBACrD,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,IAAI,CAAC;oBACjE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC;iBACjD,CAAC,CAAC;gBAEH,MAAM,UAAU,GAAG,IAAI,mBAAO,CAAC;oBAC3B,SAAS,EAAE,CAAC,WAAW,CAAC;iBAC3B,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBAElB,MAAM,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAElC,QAAQ,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;gBACxC,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;YACtD,CAAC;QACL,CAAC;KAAA;CACJ;AA9CD,kDA8CC;AAnCS;IATL,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,KAAK;KAChB,CAAC;IACD,6BAAQ,CAAC,GAAG,CAAC;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,QAAQ;KACnB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,yCAAe,CAAC,CAAA;IACzB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;+CA6BtB"}
|
|
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.A_Router = void 0;
|
|
22
22
|
const a_concept_1 = require("@adaas/a-concept");
|
|
23
|
-
const
|
|
24
|
-
const
|
|
23
|
+
const A_Service_container_1 = require("../../containers/A-Service/A-Service.container");
|
|
24
|
+
const A_Service_container_types_1 = require("../../containers/A-Service/A-Service.container.types");
|
|
25
25
|
const A_Request_entity_1 = require("../../entities/A-Request/A-Request.entity");
|
|
26
26
|
const A_Router_component_types_1 = require("./A-Router.component.types");
|
|
27
27
|
const A_Route_entity_1 = require("../../entities/A-Route/A-Route.entity");
|
|
@@ -130,8 +130,12 @@ class A_Router extends a_concept_1.A_Component {
|
|
|
130
130
|
return function decorator(target, propertyKey, descriptor) {
|
|
131
131
|
const meta = a_concept_1.A_Context.meta(target);
|
|
132
132
|
const routes = meta.get(A_Router_component_types_1.A_SERVER_TYPES__ARouterComponentMetaKey.ROUTES) || new Map();
|
|
133
|
-
const searchKey = route.toAFeatureExtension(['A_Router', '
|
|
134
|
-
routes.set(searchKey.source,
|
|
133
|
+
const searchKey = route.toAFeatureExtension(['A_Router', 'A_Service']);
|
|
134
|
+
routes.set(searchKey.source, {
|
|
135
|
+
component: target,
|
|
136
|
+
handler: propertyKey,
|
|
137
|
+
route
|
|
138
|
+
});
|
|
135
139
|
meta.set(A_Router_component_types_1.A_SERVER_TYPES__ARouterComponentMetaKey.ROUTES, routes);
|
|
136
140
|
(0, a_concept_1.A_Feature_Define)({
|
|
137
141
|
name: searchKey.source,
|
|
@@ -153,9 +157,8 @@ class A_Router extends a_concept_1.A_Component {
|
|
|
153
157
|
// =======================================================
|
|
154
158
|
identifyRoute(request, response, scope, config, logger) {
|
|
155
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
if (config.get('DEV_MODE')) {
|
|
160
|
+
const route = request.route;
|
|
161
|
+
if (config.get('A_CONCEPT_ENVIRONMENT') === 'development') {
|
|
159
162
|
logger.log(`Incoming request: ${request.method} ${request.url}`);
|
|
160
163
|
logger.log(`Identified route: ${route.toString()}`);
|
|
161
164
|
}
|
|
@@ -175,7 +178,7 @@ class A_Router extends a_concept_1.A_Component {
|
|
|
175
178
|
if (routes) {
|
|
176
179
|
const currentRoute = routes.get(step.name || '');
|
|
177
180
|
if (currentRoute) {
|
|
178
|
-
request.params = Object.assign(Object.assign({}, request.params), currentRoute.extractParams(url));
|
|
181
|
+
request.params = Object.assign(Object.assign({}, request.params), currentRoute.route.extractParams(request.url));
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
}
|
|
@@ -199,8 +202,8 @@ __decorate([
|
|
|
199
202
|
invoke: false
|
|
200
203
|
}),
|
|
201
204
|
a_concept_1.A_Feature.Extend({
|
|
202
|
-
name:
|
|
203
|
-
scope: [
|
|
205
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.onRequest,
|
|
206
|
+
scope: [A_Service_container_1.A_Service],
|
|
204
207
|
}),
|
|
205
208
|
__param(0, (0, a_concept_1.A_Inject)(A_Request_entity_1.A_Request)),
|
|
206
209
|
__param(1, (0, a_concept_1.A_Inject)(A_Response_entity_1.A_Response)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Router.component.js","sourceRoot":"","sources":["../../../../src/components/A-Router/A-Router.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAY0B;AAC1B
|
|
1
|
+
{"version":3,"file":"A-Router.component.js","sourceRoot":"","sources":["../../../../src/components/A-Router/A-Router.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAY0B;AAC1B,kGAAqF;AACrF,8GAA+G;AAC/G,0FAAgF;AAChF,yEAMoC;AACpC,oFAA0E;AAC1E,6FAAmF;AACnF,yFAA4E;AAK5E,MAAa,QAAS,SAAQ,uBAAW;IAErC,0DAA0D;IAC1D,0DAA0D;IAC1D,0DAA0D;IAE1D;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,IAA0G;QAGlH,OAAO,IAAI,CAAC,WAAW,CAAC;YACpB,MAAM,EAAE,uDAA4B,CAAC,IAAI;YACzC,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;YACnE,OAAO,EAAE,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;YAC5F,MAAM,EAAE,OAAO,IAAI,KAAK,QAAQ,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;SAC5F,CAAC,CAAC;IACP,CAAC;IA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D,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,yDAA6B,CAAC,SAAS;QAC7C,KAAK,EAAE,CAAC,+BAAS,CAAC;KACrB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,mBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;IAClB,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;6CAgDtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_TYPES__ComponentMeta } from "@adaas/a-concept";
|
|
1
|
+
import { A_Component, A_TYPES__ComponentMeta } from "@adaas/a-concept";
|
|
2
2
|
import { A_Route } from "../../entities/A-Route/A-Route.entity";
|
|
3
3
|
export declare enum A_SERVER_TYPES__RouterMethod {
|
|
4
4
|
POST = "POST",
|
|
@@ -9,8 +9,13 @@ export declare enum A_SERVER_TYPES__RouterMethod {
|
|
|
9
9
|
DEFAULT = "DEFAULT"
|
|
10
10
|
}
|
|
11
11
|
export type A_TYPES__ARouterComponentMeta = {
|
|
12
|
-
[A_SERVER_TYPES__ARouterComponentMetaKey.ROUTES]: Map<string,
|
|
12
|
+
[A_SERVER_TYPES__ARouterComponentMetaKey.ROUTES]: Map<string, A_TYPES__ARouterDefineRoute>;
|
|
13
13
|
} & A_TYPES__ComponentMeta;
|
|
14
|
+
export type A_TYPES__ARouterDefineRoute = {
|
|
15
|
+
component: A_Component;
|
|
16
|
+
handler: string;
|
|
17
|
+
route: A_Route;
|
|
18
|
+
};
|
|
14
19
|
export declare enum A_SERVER_TYPES__ARouterComponentMetaKey {
|
|
15
20
|
ROUTES = "ROUTES"
|
|
16
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Router.component.types.js","sourceRoot":"","sources":["../../../../src/components/A-Router/A-Router.component.types.ts"],"names":[],"mappings":";;;AAIA,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACpC,6CAAa,CAAA;IACb,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,iDAAiB,CAAA;IACjB,+CAAe,CAAA;IACf,mDAAmB,CAAA;AACvB,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC;
|
|
1
|
+
{"version":3,"file":"A-Router.component.types.js","sourceRoot":"","sources":["../../../../src/components/A-Router/A-Router.component.types.ts"],"names":[],"mappings":";;;AAIA,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACpC,6CAAa,CAAA;IACb,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,iDAAiB,CAAA;IACjB,+CAAe,CAAA;IACf,mDAAmB,CAAA;AACvB,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC;AAeD,IAAY,uCAGX;AAHD,WAAY,uCAAuC;IAC/C,4DAAiB,CAAA;AAErB,CAAC,EAHW,uCAAuC,uDAAvC,uCAAuC,QAGlD"}
|
|
@@ -3,6 +3,6 @@ import { A_Request } from '../../entities/A-Request/A-Request.entity';
|
|
|
3
3
|
import { A_Response } from '../../entities/A-Response/A-Response.entity';
|
|
4
4
|
export declare class A_ServerCORS extends A_Component {
|
|
5
5
|
private config;
|
|
6
|
-
init(config: A_Config<'ORIGIN'
|
|
6
|
+
init(config: A_Config<['ORIGIN', 'METHODS', 'HEADERS', 'CREDENTIALS', 'MAX_AGE']>): Promise<void>;
|
|
7
7
|
apply(aReq: A_Request, aRes: A_Response): void;
|
|
8
8
|
}
|
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
exports.A_ServerCORS = void 0;
|
|
22
22
|
const a_concept_1 = require("@adaas/a-concept");
|
|
23
23
|
const A_ServerCORS_component_defaults_1 = require("./A_ServerCORS.component.defaults");
|
|
24
|
-
const
|
|
24
|
+
const A_Service_container_types_1 = require("../../containers/A-Service/A-Service.container.types");
|
|
25
25
|
const A_Request_entity_1 = require("../../entities/A-Request/A-Request.entity");
|
|
26
26
|
const A_Response_entity_1 = require("../../entities/A-Response/A-Response.entity");
|
|
27
27
|
class A_ServerCORS extends a_concept_1.A_Component {
|
|
@@ -55,13 +55,13 @@ class A_ServerCORS extends a_concept_1.A_Component {
|
|
|
55
55
|
exports.A_ServerCORS = A_ServerCORS;
|
|
56
56
|
__decorate([
|
|
57
57
|
a_concept_1.A_Feature.Extend({
|
|
58
|
-
name:
|
|
58
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.beforeStart
|
|
59
59
|
}),
|
|
60
60
|
__param(0, (0, a_concept_1.A_Inject)(a_concept_1.A_Config))
|
|
61
61
|
], A_ServerCORS.prototype, "init", null);
|
|
62
62
|
__decorate([
|
|
63
63
|
a_concept_1.A_Feature.Extend({
|
|
64
|
-
name:
|
|
64
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.beforeRequest
|
|
65
65
|
}),
|
|
66
66
|
__param(0, (0, a_concept_1.A_Inject)(A_Request_entity_1.A_Request)),
|
|
67
67
|
__param(1, (0, a_concept_1.A_Inject)(A_Response_entity_1.A_Response))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A_ServerCORS.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerCORS/A_ServerCORS.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAA8E;AAE9E,uFAAkF;AAClF,
|
|
1
|
+
{"version":3,"file":"A_ServerCORS.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerCORS/A_ServerCORS.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAA8E;AAE9E,uFAAkF;AAClF,8GAA+G;AAC/G,0FAAgF;AAChF,6FAAmF;AAGnF,MAAa,YAAa,SAAQ,uBAAW;IAOnC,IAAI,CACc,MAA4E;;YAEhG,IAAI,CAAC,MAAM,GA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AAI,EAAE,CAAC;QAC5B,CAAC;IACL,CAAC;CACJ;AA7CD,oCA6CC;AAtCS;IAHL,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,yDAA6B,CAAC,WAAW;KAClD,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;wCAStB;AAMM;IAHN,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,yDAA6B,CAAC,aAAa;KACpD,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;yCAmBxB"}
|
|
@@ -2,5 +2,5 @@ import { A_Component, A_Config, A_Logger } from "@adaas/a-concept";
|
|
|
2
2
|
import { A_Request } from "../../entities/A-Request/A-Request.entity";
|
|
3
3
|
import { A_Response } from "../../entities/A-Response/A-Response.entity";
|
|
4
4
|
export declare class A_ServerHealthMonitor extends A_Component {
|
|
5
|
-
get(config: A_Config<'VERSION_PATH'
|
|
5
|
+
get(config: A_Config<['VERSION_PATH', 'EXPOSED_PROPERTIES']>, request: A_Request, response: A_Response, logger: A_Logger): Promise<any>;
|
|
6
6
|
}
|
|
@@ -53,7 +53,7 @@ class A_ServerHealthMonitor extends a_concept_1.A_Component {
|
|
|
53
53
|
get(config, request, response, logger) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
55
|
var _a;
|
|
56
|
-
const packageJSON = yield Promise.resolve(`${`${config.get('
|
|
56
|
+
const packageJSON = yield Promise.resolve(`${`${config.get('A_CONCEPT_ROOT_FOLDER')}/package.json`}`).then(s => __importStar(require(s)));
|
|
57
57
|
const exposedProperties = ((_a = config.get('EXPOSED_PROPERTIES')) === null || _a === void 0 ? void 0 : _a.split(',')) || [
|
|
58
58
|
'name',
|
|
59
59
|
'version',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-ServerHealthMonitor.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA6E;AAC7E,uEAA0D;AAC1D,0FAAgF;AAChF,6FAAmF;AAInF,MAAa,qBAAsB,SAAQ,uBAAW;IAIlD,0DAA0D;IAC1D,0DAA0D;IAC1D,0DAA0D;IAMpD,GAAG,CACe,
|
|
1
|
+
{"version":3,"file":"A-ServerHealthMonitor.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerHealthMonitor/A-ServerHealthMonitor.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA6E;AAC7E,uEAA0D;AAC1D,0FAAgF;AAChF,6FAAmF;AAInF,MAAa,qBAAsB,SAAQ,uBAAW;IAIlD,0DAA0D;IAC1D,0DAA0D;IAC1D,0DAA0D;IAMpD,GAAG,CACe,MAAwD,EACvD,OAAkB,EACjB,QAAoB,EACtB,MAAgB;;;YAEpC,MAAM,WAAW,GAAG,yBAAa,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,eAAe,uCAAC,CAAC;YACxF,MAAM,iBAAiB,GAAkB,CAAA,MAAA,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,0CAAE,KAAK,CAAC,GAAG,CAAC,KAAI;gBACrF,MAAM;gBACN,SAAS;gBACT,aAAa;aAChB,CAAC;YAEF,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC7E,CAAC;KAAA;CACJ;AA3BD,sDA2BC;AAfS;IAJL,6BAAQ,CAAC,GAAG,CAAC;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KAChB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;IAClB,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;IACnB,WAAA,IAAA,oBAAQ,EAAC,8BAAU,CAAC,CAAA;IACpB,WAAA,IAAA,oBAAQ,EAAC,oBAAQ,CAAC,CAAA;gDAUtB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const A_SERVER__A_SERVER_LOGGER_ENV_VARIABLES: {
|
|
2
|
+
/**
|
|
3
|
+
* Enable logging of 200 responses
|
|
4
|
+
*/
|
|
5
|
+
readonly SERVER_IGNORE_LOG_200: "SERVER_IGNORE_LOG_200";
|
|
6
|
+
/**
|
|
7
|
+
* Enable logging of 404 responses
|
|
8
|
+
*/
|
|
9
|
+
readonly SERVER_IGNORE_LOG_404: "SERVER_IGNORE_LOG_404";
|
|
10
|
+
/**
|
|
11
|
+
* Enable logging of 500 responses
|
|
12
|
+
*/
|
|
13
|
+
readonly SERVER_IGNORE_LOG_500: "SERVER_IGNORE_LOG_500";
|
|
14
|
+
/**
|
|
15
|
+
* Enable logging of 400 responses
|
|
16
|
+
*/
|
|
17
|
+
readonly SERVER_IGNORE_LOG_400: "SERVER_IGNORE_LOG_400";
|
|
18
|
+
/**
|
|
19
|
+
* Enable logging of default responses
|
|
20
|
+
*/
|
|
21
|
+
readonly SERVER_IGNORE_LOG_DEFAULT: "SERVER_IGNORE_LOG_DEFAULT";
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.A_SERVER__A_SERVER_LOGGER_ENV_VARIABLES = void 0;
|
|
4
|
+
exports.A_SERVER__A_SERVER_LOGGER_ENV_VARIABLES = {
|
|
5
|
+
// ----------------------------------------------------------
|
|
6
|
+
// A-ServerLogger Environment Variables
|
|
7
|
+
// ----------------------------------------------------------
|
|
8
|
+
// These environment variables are used by A-Concept core to configure the application
|
|
9
|
+
// ----------------------------------------------------------
|
|
10
|
+
/**
|
|
11
|
+
* Enable logging of 200 responses
|
|
12
|
+
*/
|
|
13
|
+
SERVER_IGNORE_LOG_200: 'SERVER_IGNORE_LOG_200',
|
|
14
|
+
/**
|
|
15
|
+
* Enable logging of 404 responses
|
|
16
|
+
*/
|
|
17
|
+
SERVER_IGNORE_LOG_404: 'SERVER_IGNORE_LOG_404',
|
|
18
|
+
/**
|
|
19
|
+
* Enable logging of 500 responses
|
|
20
|
+
*/
|
|
21
|
+
SERVER_IGNORE_LOG_500: 'SERVER_IGNORE_LOG_500',
|
|
22
|
+
/**
|
|
23
|
+
* Enable logging of 400 responses
|
|
24
|
+
*/
|
|
25
|
+
SERVER_IGNORE_LOG_400: 'SERVER_IGNORE_LOG_400',
|
|
26
|
+
/**
|
|
27
|
+
* Enable logging of default responses
|
|
28
|
+
*/
|
|
29
|
+
SERVER_IGNORE_LOG_DEFAULT: 'SERVER_IGNORE_LOG_DEFAULT',
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=A-ServerLogger.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-ServerLogger.constants.js","sourceRoot":"","sources":["../../../../src/components/A-ServerLogger/A-ServerLogger.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,uCAAuC,GAAG;IACnD,6DAA6D;IAC7D,uCAAuC;IACvC,6DAA6D;IAC7D,sFAAsF;IACtF,6DAA6D;IAC7D;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;CAChD,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A_Config, A_Logger } from "@adaas/a-concept";
|
|
2
2
|
import { A_Server } from "../../context/A-Server/A_Server.context";
|
|
3
|
-
import { A_SERVER_TYPES__ServerLoggerRouteParams } from "./A_ServerLogger.component.types";
|
|
3
|
+
import { A_SERVER_TYPES__ServerLoggerEnvVariables, A_SERVER_TYPES__ServerLoggerRouteParams } from "./A_ServerLogger.component.types";
|
|
4
4
|
import { A_Request } from "../../entities/A-Request/A-Request.entity";
|
|
5
5
|
import { A_Response } from "../../entities/A-Response/A-Response.entity";
|
|
6
6
|
import { A_Route } from "../../entities/A-Route/A-Route.entity";
|
|
7
7
|
export declare class A_ServerLogger extends A_Logger {
|
|
8
|
-
protected config: A_Config<
|
|
8
|
+
protected config: A_Config<A_SERVER_TYPES__ServerLoggerEnvVariables>;
|
|
9
9
|
onRequestEnd(request: A_Request, response: A_Response): Promise<void>;
|
|
10
10
|
onRequestError(request: A_Request): Promise<void>;
|
|
11
11
|
logStart(server: A_Server): void;
|
|
@@ -20,9 +20,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.A_ServerLogger = void 0;
|
|
22
22
|
const a_concept_1 = require("@adaas/a-concept");
|
|
23
|
-
const
|
|
23
|
+
const A_Service_container_types_1 = require("../../containers/A-Service/A-Service.container.types");
|
|
24
24
|
const A_Server_context_1 = require("../../context/A-Server/A_Server.context");
|
|
25
|
-
const
|
|
25
|
+
const A_Service_container_1 = require("../../containers/A-Service/A-Service.container");
|
|
26
26
|
const A_Request_entity_1 = require("../../entities/A-Request/A-Request.entity");
|
|
27
27
|
const A_Response_entity_1 = require("../../entities/A-Response/A-Response.entity");
|
|
28
28
|
const A_Response_entity_types_1 = require("../../entities/A-Response/A-Response.entity.types");
|
|
@@ -153,15 +153,15 @@ __decorate([
|
|
|
153
153
|
__decorate([
|
|
154
154
|
a_concept_1.A_Feature.Define({ invoke: false }),
|
|
155
155
|
a_concept_1.A_Feature.Extend({
|
|
156
|
-
name:
|
|
157
|
-
scope: [
|
|
156
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.afterStart,
|
|
157
|
+
scope: [A_Service_container_1.A_Service]
|
|
158
158
|
}),
|
|
159
159
|
__param(0, (0, a_concept_1.A_Inject)(A_Server_context_1.A_Server))
|
|
160
160
|
], A_ServerLogger.prototype, "logStart", null);
|
|
161
161
|
__decorate([
|
|
162
162
|
a_concept_1.A_Feature.Extend({
|
|
163
|
-
name:
|
|
164
|
-
scope: [
|
|
163
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.afterStop,
|
|
164
|
+
scope: [A_Service_container_1.A_Service]
|
|
165
165
|
}),
|
|
166
166
|
__param(0, (0, a_concept_1.A_Inject)(A_Server_context_1.A_Server))
|
|
167
167
|
], A_ServerLogger.prototype, "logStop", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A_ServerLogger.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerLogger/A_ServerLogger.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAoF;AACpF,
|
|
1
|
+
{"version":3,"file":"A_ServerLogger.component.js","sourceRoot":"","sources":["../../../../src/components/A-ServerLogger/A_ServerLogger.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,gDAAoF;AACpF,8GAA+G;AAC/G,wFAA6E;AAE7E,kGAAqF;AACrF,0FAAgF;AAChF,6FAAmF;AACnF,yGAA4G;AAE5G,sGAAyG;AAIzG,MAAa,cAAe,SAAQ,oBAAQ;IAUlC,YAAY,CACO,OAAkB,EACjB,QAAoB;;YAG1C,IAAI,CAAC,KAAK,CAAC;gBACP,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,MAAM,EAAE,QAAQ,CAAC,UAAU;gBAC3B,YAAY,EAAE,QAAQ,CAAC,QAAQ;aAClC,CAAC,CAAC;QACP,CAAC;KAAA;IAMK,cAAc,CACK,OAAkB;;QAE3C,CAAC;KAAA;I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A,oBAAQ,EAAC,8BAAU,CAAC,CAAA;kDASxB;AAMK;IAHL,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,qDAA4B,CAAC,KAAK;KAC3C,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,4BAAS,CAAC,CAAA;oDAEvB;AAQD;IALC,qBAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACnC,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,yDAA6B,CAAC,UAAU;QAC9C,KAAK,EAAE,CAAC,+BAAS,CAAC;KACrB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,2BAAQ,CAAC,CAAA;8CAStB;AASD;IAJC,qBAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,yDAA6B,CAAC,SAAS;QAC7C,KAAK,EAAE,CAAC,+BAAS,CAAC;KACrB,CAAC;IAEG,WAAA,IAAA,oBAAQ,EAAC,2BAAQ,CAAC,CAAA;6CAGtB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { A_TYPES__ConceptENVVariables } from "@adaas/a-concept/dist/src/constants/env.constants";
|
|
1
2
|
export type A_SERVER_TYPES__ServerLoggerRouteParams = {
|
|
2
3
|
method: string;
|
|
3
4
|
url: string;
|
|
4
5
|
status: number;
|
|
5
6
|
responseTime: number;
|
|
6
7
|
};
|
|
8
|
+
export type A_SERVER_TYPES__ServerLoggerEnvVariables = Array<'SERVER_IGNORE_LOG_200' | 'SERVER_IGNORE_LOG_404' | 'SERVER_IGNORE_LOG_500' | 'SERVER_IGNORE_LOG_400' | 'SERVER_IGNORE_LOG_DEFAULT'> | A_TYPES__ConceptENVVariables;
|
|
@@ -23,7 +23,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.A_ServerProxy = void 0;
|
|
25
25
|
const a_concept_1 = require("@adaas/a-concept");
|
|
26
|
-
const
|
|
26
|
+
const A_Service_container_types_1 = require("../../containers/A-Service/A-Service.container.types");
|
|
27
27
|
const A_ProxyConfig_context_1 = require("../../context/A_ProxyConfig/A_ProxyConfig.context");
|
|
28
28
|
const A_Request_entity_1 = require("../../entities/A-Request/A-Request.entity");
|
|
29
29
|
const A_Response_entity_1 = require("../../entities/A-Response/A-Response.entity");
|
|
@@ -77,7 +77,7 @@ __decorate([
|
|
|
77
77
|
], A_ServerProxy.prototype, "load", null);
|
|
78
78
|
__decorate([
|
|
79
79
|
a_concept_1.A_Feature.Extend({
|
|
80
|
-
name:
|
|
80
|
+
name: A_Service_container_types_1.A_SERVER_TYPES__ServerFeature.onRequest,
|
|
81
81
|
}),
|
|
82
82
|
__param(0, (0, a_concept_1.A_Inject)(A_Request_entity_1.A_Request)),
|
|
83
83
|
__param(1, (0, a_concept_1.A_Inject)(A_Response_entity_1.A_Response)),
|