@adaas/a-concept 0.0.29 → 0.0.31
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/dist/examples/fe-be/channels/Test.channel.d.ts +6 -0
- package/dist/examples/fe-be/channels/Test.channel.js +14 -0
- package/dist/examples/fe-be/channels/Test.channel.js.map +1 -0
- package/dist/examples/fe-be/components/BE-Controller.component.d.ts +4 -0
- package/dist/examples/fe-be/components/BE-Controller.component.js +24 -0
- package/dist/examples/fe-be/components/BE-Controller.component.js.map +1 -0
- package/dist/examples/fe-be/components/FE.component.d.ts +4 -0
- package/dist/examples/fe-be/components/FE.component.js +31 -0
- package/dist/examples/fe-be/components/FE.component.js.map +1 -0
- package/dist/examples/fe-be/components/UserActions.component.d.ts +5 -0
- package/dist/examples/fe-be/components/UserActions.component.js +25 -0
- package/dist/examples/fe-be/components/UserActions.component.js.map +1 -0
- package/dist/examples/fe-be/concept.d.ts +0 -0
- package/dist/examples/fe-be/concept.js +2 -0
- package/dist/examples/fe-be/concept.js.map +1 -0
- package/dist/examples/fe-be/containers/ServerApp.container.d.ts +3 -0
- package/dist/examples/fe-be/containers/ServerApp.container.js +8 -0
- package/dist/examples/fe-be/containers/ServerApp.container.js.map +1 -0
- package/dist/examples/fe-be/containers/WebApp.container.d.ts +3 -0
- package/dist/examples/fe-be/containers/WebApp.container.js +8 -0
- package/dist/examples/fe-be/containers/WebApp.container.js.map +1 -0
- package/dist/examples/multi-container/channels/Direct.channel.d.ts +9 -0
- package/dist/examples/multi-container/channels/Direct.channel.js +32 -0
- package/dist/examples/multi-container/channels/Direct.channel.js.map +1 -0
- package/dist/examples/multi-container/concept.d.ts +0 -0
- package/dist/examples/multi-container/concept.js +2 -0
- package/dist/examples/multi-container/concept.js.map +1 -0
- package/dist/examples/multi-container/containers/Command.container.d.ts +11 -0
- package/dist/examples/multi-container/containers/Command.container.js +51 -0
- package/dist/examples/multi-container/containers/Command.container.js.map +1 -0
- package/dist/examples/multi-container/containers/Schedule.container.d.ts +15 -0
- package/dist/examples/multi-container/containers/Schedule.container.js +67 -0
- package/dist/examples/multi-container/containers/Schedule.container.js.map +1 -0
- package/dist/examples/simple/components/A.component.js.map +1 -1
- package/dist/examples/simple/containers/Main.container.js +7 -3
- package/dist/examples/simple/containers/Main.container.js.map +1 -1
- package/dist/examples/simple/entities/EntityA.entity.d.ts +8 -0
- package/dist/examples/simple/entities/EntityA.entity.js +22 -0
- package/dist/examples/simple/entities/EntityA.entity.js.map +1 -0
- package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +0 -1
- package/dist/examples/simple-http-server/contexts/http-request.context.js +6 -8
- package/dist/examples/simple-http-server/contexts/http-request.context.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/src/base/A-Errors/A-Error.entity.d.ts +3 -0
- package/dist/src/base/A-Errors/A-Error.entity.js +8 -0
- package/dist/src/base/A-Errors/A-Error.entity.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.context.js +1 -1
- package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -1
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.d.ts +14 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js +53 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js.map +1 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +2 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js +3 -0
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.d.ts +19 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.js +31 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +1 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.d.ts +1 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js +3 -0
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.d.ts +1 -0
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js +8 -0
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js.map +1 -0
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +14 -0
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.js +3 -0
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +7 -5
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +9 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +1 -1
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +36 -0
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +2 -3
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +44 -0
- package/dist/src/global/A-Channel/A-Channel.class.d.ts +8 -10
- package/dist/src/global/A-Channel/A-Channel.class.js +12 -26
- package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -1
- package/dist/src/global/A-Channel/A-Channel.types.d.ts +32 -0
- package/dist/src/global/A-Component/A-Component.class.d.ts +2 -1
- package/dist/src/global/A-Component/A-Component.class.js +1 -0
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.meta.d.ts +16 -0
- package/dist/src/global/A-Component/A-Component.meta.js +37 -3
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.types.d.ts +26 -38
- package/dist/src/global/A-Component/A-Component.types.js +1 -7
- package/dist/src/global/A-Component/A-Component.types.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +7 -7
- package/dist/src/global/A-Concept/A_Concept.class.js +30 -30
- package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.types.d.ts +42 -2
- package/dist/src/global/A-Concept/A_Concept.types.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.class.d.ts +1 -8
- package/dist/src/global/A-Container/A-Container.class.js +1 -31
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.meta.d.ts +8 -0
- package/dist/src/global/A-Container/A-Container.meta.js +29 -0
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.types.d.ts +32 -8
- package/dist/src/global/A-Container/A-Container.types.js +2 -1
- package/dist/src/global/A-Container/A-Container.types.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.class.js +29 -36
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +1 -2
- package/dist/src/global/A-Entity/A-Entity.class.js +6 -7
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +12 -6
- package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.class.d.ts +30 -6
- package/dist/src/global/A-Feature/A-Feature.class.js +49 -40
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +2 -24
- package/dist/src/global/A-Feature/A-Feature.types.js +21 -0
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
- package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +8 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js +10 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +7 -5
- package/dist/src/global/A-Scope/A-Scope.class.js +33 -10
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.types.d.ts +2 -1
- package/dist/src/global/A-Stage/A-Stage.class.d.ts +69 -0
- package/dist/src/global/A-Stage/A-Stage.class.js +181 -0
- package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -0
- package/dist/src/global/A-Stage/A-Stage.types.d.ts +78 -0
- package/dist/src/global/A-Stage/A-Stage.types.js +59 -0
- package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -0
- package/dist/src/helpers/StepsManager.class.d.ts +15 -0
- package/dist/src/helpers/StepsManager.class.js +85 -0
- package/dist/src/helpers/StepsManager.class.js.map +1 -0
- package/examples/fe-be/channels/Test.channel.ts +24 -0
- package/examples/fe-be/components/BE-Controller.component.ts +20 -0
- package/examples/fe-be/components/FE.component.ts +13 -0
- package/examples/fe-be/concept.ts +0 -0
- package/examples/fe-be/containers/ServerApp.container.ts +8 -0
- package/examples/fe-be/containers/WebApp.container.ts +13 -0
- package/examples/multi-container/channels/Direct.channel.ts +39 -0
- package/examples/multi-container/concept.ts +0 -0
- package/examples/multi-container/containers/Command.container.ts +41 -0
- package/examples/multi-container/containers/Schedule.container.ts +57 -0
- package/examples/simple/components/A.component.ts +2 -1
- package/examples/simple/containers/Main.container.ts +11 -3
- package/examples/simple/entities/EntityA.entity.ts +16 -0
- package/examples/simple-http-server/contexts/http-request.context.ts +6 -6
- package/index.ts +12 -3
- package/package.json +1 -1
- package/src/base/A-Errors/A-Error.entity.ts +10 -0
- package/src/base/A-Errors/A-Errors.context.ts +2 -2
- package/src/decorators/A-Abstraction/A-Abstraction.decorator.ts +82 -0
- package/src/decorators/{A-Stage/A-Stage.decorator.types.ts → A-Abstraction/A-Abstraction.decorator.types.ts} +1 -3
- package/src/decorators/A-Connect/A-Connect.decorator.ts +71 -0
- package/src/decorators/A-Connect/A-Connect.decorator.types.ts +6 -0
- package/src/decorators/A-Entity/A-Entity-List.decorator.ts +12 -0
- package/src/decorators/A-Entity/A-Entity.decorator.types.ts +18 -0
- package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +16 -9
- package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +10 -2
- package/src/decorators/A-Feature/A-Feature.decorator.types.ts +46 -0
- package/src/decorators/A-Inject/A-Inject.decorator.ts +7 -7
- package/src/decorators/A-Inject/A-Inject.decorator.types.ts +47 -1
- package/src/global/A-Channel/A-Channel.class.ts +25 -28
- package/src/global/A-Channel/A-Channel.types.ts +53 -0
- package/src/global/A-Component/A-Component.class.ts +10 -2
- package/src/global/A-Component/A-Component.meta.ts +59 -6
- package/src/global/A-Component/A-Component.types.ts +28 -45
- package/src/global/A-Concept/A_Concept.class.ts +52 -31
- package/src/global/A-Concept/A_Concept.types.ts +48 -3
- package/src/global/A-Container/A-Container.class.ts +3 -39
- package/src/global/A-Container/A-Container.meta.ts +41 -4
- package/src/global/A-Container/A-Container.types.ts +36 -8
- package/src/global/A-Context/A-Context.class.ts +37 -50
- package/src/global/A-Entity/A-Entity.class.ts +8 -6
- package/src/global/A-Entity/A-Entity.types.ts +13 -6
- package/src/global/A-Feature/A-Feature.class.ts +73 -61
- package/src/global/A-Feature/A-Feature.types.ts +24 -23
- package/src/global/A-Fragment/A-Fragment.class.ts +15 -0
- package/src/global/A-Scope/A-Scope.class.ts +58 -25
- package/src/global/A-Scope/A-Scope.types.ts +2 -1
- package/src/global/A-Stage/A-Stage.class.ts +234 -0
- package/src/global/A-Stage/A-Stage.types.ts +101 -0
- package/src/helpers/StepsManager.class.ts +104 -0
- package/tests/channel.ts +213 -0
- package/tests/log.ts +88 -40
- package/src/decorators/A-Stage/A-Stage.decorator.ts +0 -84
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestChannel = void 0;
|
|
4
|
+
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
5
|
+
class TestChannel extends A_Channel_class_1.A_Channel {
|
|
6
|
+
getVersion(params) {
|
|
7
|
+
}
|
|
8
|
+
getUser() {
|
|
9
|
+
}
|
|
10
|
+
getPage() {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.TestChannel = TestChannel;
|
|
14
|
+
//# sourceMappingURL=Test.channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Test.channel.js","sourceRoot":"","sources":["../../../../examples/fe-be/channels/Test.channel.ts"],"names":[],"mappings":";;;AAAA,uFAA8E;AAG9E,MAAa,WAAY,SAAQ,2BAAc;IAG3C,UAAU,CACN,MAAM;IAGV,CAAC;IAGD,OAAO;IAEP,CAAC;IAGD,OAAO;IACP,CAAC;CAIJ;AApBD,kCAoBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.BEController = void 0;
|
|
10
|
+
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
11
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
12
|
+
class BEController extends A_Component_class_1.A_Component {
|
|
13
|
+
getOrdersCount() {
|
|
14
|
+
return 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.BEController = BEController;
|
|
18
|
+
__decorate([
|
|
19
|
+
A_Feature_class_1.A_Feature.Define({
|
|
20
|
+
name: 'getOrdersCount',
|
|
21
|
+
// channel
|
|
22
|
+
})
|
|
23
|
+
], BEController.prototype, "getOrdersCount", null);
|
|
24
|
+
//# sourceMappingURL=BE-Controller.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BE-Controller.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/BE-Controller.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,YAAa,SAAQ,+BAAW;IAQzC,cAAc;QAEV,OAAO,CAAC,CAAC;IACb,CAAC;CAGJ;AAdD,oCAcC;AANG;IAJC,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,gBAAgB;QACtB,UAAU;KACb,CAAC;kDAID"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 __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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.FEComponent = void 0;
|
|
19
|
+
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
20
|
+
const A_Concept_class_1 = require("../../../src/global/A-Concept/A_Concept.class");
|
|
21
|
+
class FEComponent extends A_Component_class_1.A_Component {
|
|
22
|
+
renderHomePage() {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.FEComponent = FEComponent;
|
|
28
|
+
__decorate([
|
|
29
|
+
A_Concept_class_1.A_Concept.Load()
|
|
30
|
+
], FEComponent.prototype, "renderHomePage", null);
|
|
31
|
+
//# sourceMappingURL=FE.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FE.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/FE.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAI9E,MAAa,WAAY,SAAQ,+BAAW;IAIlC,cAAc;;QAEpB,CAAC;KAAA;CACJ;AAPD,kCAOC;AAHS;IADL,2BAAS,CAAC,IAAI,EAAE;iDAGhB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserActions = void 0;
|
|
13
|
+
const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.decorator");
|
|
14
|
+
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
15
|
+
const A_Component_class_1 = require("../../../src/global/A-Component/A-Component.class");
|
|
16
|
+
class UserActions extends A_Component_class_1.A_Component {
|
|
17
|
+
getUserDetails(channel) {
|
|
18
|
+
channel.call('');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.UserActions = UserActions;
|
|
22
|
+
__decorate([
|
|
23
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Channel_class_1.A_Channel))
|
|
24
|
+
], UserActions.prototype, "getUserDetails", null);
|
|
25
|
+
//# sourceMappingURL=UserActions.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserActions.component.js","sourceRoot":"","sources":["../../../../examples/fe-be/components/UserActions.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAmF;AACnF,uFAA8E;AAC9E,6FAAoF;AAIpF,MAAa,WAAY,SAAQ,+BAAW;IAExC,cAAc,CACW,OAAuB;QAE5C,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACpB,CAAC;CACJ;AAPD,kCAOC;AALG;IACK,WAAA,IAAA,6BAAQ,EAAC,2BAAS,CAAC,CAAA;iDAGvB"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/fe-be/concept.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerApp = void 0;
|
|
4
|
+
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
5
|
+
class ServerApp extends A_Container_class_1.A_Container {
|
|
6
|
+
}
|
|
7
|
+
exports.ServerApp = ServerApp;
|
|
8
|
+
//# sourceMappingURL=ServerApp.container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/ServerApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAGpF,MAAa,SAAU,SAAQ,+BAAW;CAIzC;AAJD,8BAIC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebApp = void 0;
|
|
4
|
+
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
5
|
+
class WebApp extends A_Container_class_1.A_Container {
|
|
6
|
+
}
|
|
7
|
+
exports.WebApp = WebApp;
|
|
8
|
+
//# sourceMappingURL=WebApp.container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebApp.container.js","sourceRoot":"","sources":["../../../../examples/fe-be/containers/WebApp.container.ts"],"names":[],"mappings":";;;AAAA,6FAAoF;AAIpF,MAAa,MAAO,SAAQ,+BAAW;CAQtC;AARD,wBAQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
|
|
2
|
+
import { A_TYPES__A_ChannelAggregateMethods, A_TYPES__A_ChannelCallParams } from "../../../src/global/A-Channel/A-Channel.types";
|
|
3
|
+
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
4
|
+
export declare class DirectChannel<T extends A_Container<any>> extends A_Channel<[T]> {
|
|
5
|
+
container: T;
|
|
6
|
+
protected instance: T;
|
|
7
|
+
constructor(container: T);
|
|
8
|
+
call<_Resp extends unknown>(prop: A_TYPES__A_ChannelAggregateMethods<[T]>, params?: Partial<A_TYPES__A_ChannelCallParams>): Promise<_Resp>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DirectChannel = void 0;
|
|
13
|
+
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
14
|
+
class DirectChannel extends A_Channel_class_1.A_Channel {
|
|
15
|
+
constructor(container) {
|
|
16
|
+
super({
|
|
17
|
+
id: `direct-channel--${container.name}`
|
|
18
|
+
});
|
|
19
|
+
this.container = container;
|
|
20
|
+
this.instance = container;
|
|
21
|
+
}
|
|
22
|
+
call(prop, params) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
if (!this.instance[prop]) {
|
|
25
|
+
throw new Error(`Method ${prop} not found in ${this.instance.name}`);
|
|
26
|
+
}
|
|
27
|
+
return yield this.instance[prop](params);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DirectChannel = DirectChannel;
|
|
32
|
+
//# sourceMappingURL=Direct.channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Direct.channel.js","sourceRoot":"","sources":["../../../../examples/multi-container/channels/Direct.channel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uFAA8E;AAM9E,MAAa,aAEX,SAAQ,2BAAc;IAIpB,YACW,SAAY;QAEnB,KAAK,CAAC;YACF,EAAE,EAAE,mBAAmB,SAAS,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAC;QAJI,cAAS,GAAT,SAAS,CAAG;QAMnB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;IAGK,IAAI,CACN,IAA6C,EAC7C,MAA8C;;YAG9C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,UAAU,IAAI,iBAAiB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;YACzE,CAAC;YAED,OAAO,MAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAS,CAAC,MAAM,CAAmB,CAAC;QACxE,CAAC;KAAA;CAEJ;AA7BD,sCA6BC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concept.js","sourceRoot":"","sources":["../../../examples/multi-container/concept.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
|
|
2
|
+
import { A_TYPES__A_ChannelCallParams } from "../../../src/global/A-Channel/A-Channel.types";
|
|
3
|
+
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
4
|
+
import { ScheduleContainer } from "./Schedule.container";
|
|
5
|
+
export declare class CommandContainer extends A_Container<[
|
|
6
|
+
'execute'
|
|
7
|
+
]> {
|
|
8
|
+
constructor();
|
|
9
|
+
execute(arg: Partial<A_TYPES__A_ChannelCallParams>): Promise<void>;
|
|
10
|
+
doSomething(schedule: A_Channel<[ScheduleContainer]>): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.CommandContainer = void 0;
|
|
22
|
+
const A_Connect_decorator_1 = require("../../../src/decorators/A-Connect/A-Connect.decorator");
|
|
23
|
+
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
24
|
+
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
25
|
+
const A_Feature_class_1 = require("../../../src/global/A-Feature/A-Feature.class");
|
|
26
|
+
class CommandContainer extends A_Container_class_1.A_Container {
|
|
27
|
+
constructor() {
|
|
28
|
+
super({});
|
|
29
|
+
}
|
|
30
|
+
execute(arg) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
console.log('CommandContainer -> command()');
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
doSomething(schedule) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
schedule.call('schedule', {});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.CommandContainer = CommandContainer;
|
|
42
|
+
__decorate([
|
|
43
|
+
A_Feature_class_1.A_Feature.Define({
|
|
44
|
+
name: 'execute',
|
|
45
|
+
// channels: []
|
|
46
|
+
})
|
|
47
|
+
], CommandContainer.prototype, "execute", null);
|
|
48
|
+
__decorate([
|
|
49
|
+
__param(0, (0, A_Connect_decorator_1.A_Connect)(A_Channel_class_1.A_Channel, ''))
|
|
50
|
+
], CommandContainer.prototype, "doSomething", null);
|
|
51
|
+
//# sourceMappingURL=Command.container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Command.container.js","sourceRoot":"","sources":["../../../../examples/multi-container/containers/Command.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mGAAsF;AACtF,uFAA8E;AAE9E,6FAAoF;AACpF,uFAA8E;AAK9E,MAAa,gBAAiB,SAAQ,+BAEpC;IAEE;QACI,KAAK,CAAC,EAAE,CAAC,CAAC;IACd,CAAC;IAQK,OAAO,CACT,GAA0C;;YAE1C,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;QACjD,CAAC;KAAA;IAKK,WAAW,CACa,QAAwC;;YAGlE,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAElC,CAAC;KAAA;CAEJ;AA/BD,4CA+BC;AAjBS;IAJL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,SAAS;QACf,eAAe;KAClB,CAAC;+CAKD;AAKK;IACD,WAAA,IAAA,+BAAS,EAAC,2BAAS,EAAE,EAAE,CAAC,CAAA;mDAK5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { A_Channel } from "../../../src/global/A-Channel/A-Channel.class";
|
|
2
|
+
import { A_Container } from "../../../src/global/A-Container/A-Container.class";
|
|
3
|
+
import { CommandContainer } from "./Command.container";
|
|
4
|
+
export declare class ScheduleContainer extends A_Container<[
|
|
5
|
+
'schedule',
|
|
6
|
+
'start',
|
|
7
|
+
'stop',
|
|
8
|
+
'pause'
|
|
9
|
+
]> {
|
|
10
|
+
private tasks;
|
|
11
|
+
constructor();
|
|
12
|
+
schedule(): Promise<void>;
|
|
13
|
+
start(): Promise<void>;
|
|
14
|
+
onExecution(commands: A_Channel<[CommandContainer]>): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.ScheduleContainer = void 0;
|
|
22
|
+
const A_Connect_decorator_1 = require("../../../src/decorators/A-Connect/A-Connect.decorator");
|
|
23
|
+
const A_Feature_Define_decorator_1 = require("../../../src/decorators/A-Feature/A-Feature-Define.decorator");
|
|
24
|
+
const A_Channel_class_1 = require("../../../src/global/A-Channel/A-Channel.class");
|
|
25
|
+
const A_Container_class_1 = require("../../../src/global/A-Container/A-Container.class");
|
|
26
|
+
class ScheduleContainer extends A_Container_class_1.A_Container {
|
|
27
|
+
constructor() {
|
|
28
|
+
super({});
|
|
29
|
+
this.tasks = [];
|
|
30
|
+
}
|
|
31
|
+
schedule(
|
|
32
|
+
// @A_Inject('task') task: any
|
|
33
|
+
) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
console.log('ScheduleContainer -> schedule()');
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
start() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
console.log('ScheduleContainer -> start()');
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
onExecution(commands) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const result = yield commands.call('execute', {
|
|
46
|
+
fragments: []
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ScheduleContainer = ScheduleContainer;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, A_Feature_Define_decorator_1.A_Feature_Define)({
|
|
54
|
+
name: 'schedule',
|
|
55
|
+
// channels: []
|
|
56
|
+
})
|
|
57
|
+
], ScheduleContainer.prototype, "schedule", null);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, A_Feature_Define_decorator_1.A_Feature_Define)({
|
|
60
|
+
name: 'start',
|
|
61
|
+
// channels: []
|
|
62
|
+
})
|
|
63
|
+
], ScheduleContainer.prototype, "start", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
__param(0, (0, A_Connect_decorator_1.A_Connect)(A_Channel_class_1.A_Channel, ''))
|
|
66
|
+
], ScheduleContainer.prototype, "onExecution", null);
|
|
67
|
+
//# sourceMappingURL=Schedule.container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schedule.container.js","sourceRoot":"","sources":["../../../../examples/multi-container/containers/Schedule.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,mGAAsF;AACtF,iHAAoG;AAEpG,uFAA8E;AAC9E,6FAAoF;AAKpF,MAAa,iBAAkB,SAAQ,+BAKrC;IAKE;QACI,KAAK,CAAC,EAAE,CAAC,CAAC;QAJN,UAAK,GAAG,EAAE,CAAC;IAKnB,CAAC;IAQK,QAAQ;IACV,8BAA8B;;;YAE9B,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QACnD,CAAC;KAAA;IAQK,KAAK;;YACP,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;QAChD,CAAC;KAAA;IAIK,WAAW,CACa,QAAuC;;YAEjE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE;gBAC1C,SAAS,EAAE,EAAE;aAChB,CAAC,CAAC;QAEP,CAAC;KAAA;CAEJ;AA/CD,8CA+CC;AA3BS;IAJL,IAAA,6CAAgB,EAAC;QACd,IAAI,EAAE,UAAU;QAChB,eAAe;KAClB,CAAC;iDAKD;AAQK;IAJL,IAAA,6CAAgB,EAAC;QACd,IAAI,EAAE,OAAO;QACb,eAAe;KAClB,CAAC;8CAGD;AAIK;IACD,WAAA,IAAA,+BAAS,EAAC,2BAAS,EAAE,EAAE,CAAC,CAAA;oDAM5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A.component.js","sourceRoot":"","sources":["../../../../examples/simple/components/A.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,gGAAmF;AACnF,6FAAoF;AACpF,0FAA6E;AAE7E,MAAa,UAAW,SAAQ,+BAAW;IAIjC,IAAI;8DAAK,CAAC;KAAA;IAKV,QAAQ,CACkB,SAA2B,EACnC,MAAgB;;
|
|
1
|
+
{"version":3,"file":"A.component.js","sourceRoot":"","sources":["../../../../examples/simple/components/A.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,gGAAmF;AACnF,6FAAoF;AACpF,0FAA6E;AAE7E,MAAa,UAAW,SAAQ,+BAAW;IAIjC,IAAI;8DAAK,CAAC;KAAA;IAKV,QAAQ,CACkB,SAA2B,EACnC,MAAgB;;YAGpC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,4BAA4B,CAAC,CAAC;YAChD,SAAS,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAAA;IAOK,UAAU,CACgB,SAA2B;;YAEvD,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;YAE1D,SAAS,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;KAAA;CAEJ;AA/BD,gCA+BC;AA3BS;IADL,2BAAS,CAAC,MAAM,EAAE;sCACH;AAKV;IADL,2BAAS,CAAC,MAAM,EAAE;IAEd,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;IAC1B,WAAA,IAAA,6BAAQ,EAAC,6BAAQ,CAAC,CAAA;0CAKtB;AAOK;IAHL,2BAAS,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,UAAU;KACnB,CAAC;IAEG,WAAA,IAAA,6BAAQ,EAAC,qCAAgB,CAAC,CAAA;4CAK9B"}
|
|
@@ -28,6 +28,7 @@ const A_Inject_decorator_1 = require("../../../src/decorators/A-Inject/A-Inject.
|
|
|
28
28
|
const A_Context_class_1 = require("../../../src/global/A-Context/A-Context.class");
|
|
29
29
|
const A_Logger_component_1 = require("../../../src/base/A-Logger/A-Logger.component");
|
|
30
30
|
const A_Scope_class_1 = require("../../../src/global/A-Scope/A-Scope.class");
|
|
31
|
+
const EntityA_entity_1 = require("../entities/EntityA.entity");
|
|
31
32
|
class MainContainer extends A_Container_class_1.A_Container {
|
|
32
33
|
load() {
|
|
33
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -53,14 +54,17 @@ class MainContainer extends A_Container_class_1.A_Container {
|
|
|
53
54
|
method_B() {
|
|
54
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
56
|
console.log('Method B', A_Context_class_1.A_Context.root);
|
|
57
|
+
const entity = new EntityA_entity_1.EntityA('test@test:test:0000000001');
|
|
58
|
+
this.Scope.register(entity);
|
|
59
|
+
yield entity.doSomething();
|
|
56
60
|
const logger = this.Scope.resolve(A_Logger_component_1.A_Logger);
|
|
57
61
|
// or you can manually call the feature
|
|
58
62
|
const feature = A_Context_class_1.A_Context.feature(this.Scope, this, 'method_B', {
|
|
59
63
|
fragments: [new Fragment_A_context_1.ContextFragmentA(), new Fragment_B_context_1.ContextFragmentB()]
|
|
60
64
|
});
|
|
61
|
-
for (const
|
|
62
|
-
logger.log('Manual Loop Execution Step', feature.
|
|
63
|
-
yield
|
|
65
|
+
for (const stage of feature) {
|
|
66
|
+
logger.log('Manual Loop Execution Step', feature.stage);
|
|
67
|
+
yield stage.process();
|
|
64
68
|
}
|
|
65
69
|
});
|
|
66
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.container.js","sourceRoot":"","sources":["../../../../examples/simple/containers/Main.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,uFAA8E;AAC9E,gGAAmF;AACnF,uFAA8E;AAC9E,0FAA6E;AAC7E,iFAAwE;
|
|
1
|
+
{"version":3,"file":"Main.container.js","sourceRoot":"","sources":["../../../../examples/simple/containers/Main.container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,6FAAoF;AACpF,uFAA8E;AAC9E,sEAAiE;AACjE,sEAAiE;AACjE,uFAA8E;AAC9E,gGAAmF;AACnF,uFAA8E;AAC9E,0FAA6E;AAC7E,iFAAwE;AACxE,+DAAqD;AAIrD,MAAa,aAAc,SAAQ,+BAElC;IAGS,IAAI;;YACN,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACzC,CAAC;KAAA;IAGK,KAAK,CACY,KAAc;;YAGjC,2BAAS,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;QAC/C,CAAC;KAAA;IAMK,QAAQ;;YACV,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;gBACxB,SAAS,EAAE;oBACP,IAAI,qCAAgB,EAAE;oBACtB,IAAI,qCAAgB,EAAE;iBACzB;aACJ,CAAC,CAAC;QACP,CAAC;KAAA;IAMK,QAAQ;;YAEV,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,2BAAS,CAAC,IAAI,CAAC,CAAC;YAExC,MAAM,MAAM,GAAG,IAAI,wBAAO,CAAC,2BAA2B,CAAC,CAAC;YAExD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAE5B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;YAG3B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,6BAAQ,CAAC,CAAC;YAE5C,wCAAwC;YAExC,MAAM,OAAO,GAAG,2BAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE;gBAC5D,SAAS,EAAE,CAAC,IAAI,qCAAgB,EAAE,EAAE,IAAI,qCAAgB,EAAE,CAAC;aAC9D,CAAC,CAAC;YAEH,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;gBAC1B,MAAM,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;gBAExD,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC;YAC1B,CAAC;QACL,CAAC;KAAA;CACJ;AA5DD,sCA4DC;AAvDS;IADL,2BAAS,CAAC,IAAI,EAAE;yCAGhB;AAGK;IADL,2BAAS,CAAC,KAAK,EAAE;IAEb,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;0CAIrB;AAMK;IADL,2BAAS,CAAC,MAAM,EAAE;6CASlB;AAMK;IADL,2BAAS,CAAC,MAAM,EAAE;6CAyBlB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { A_Entity } from "../../../src/global/A-Entity/A-Entity.class";
|
|
2
|
+
import { A_TYPES__EntityBaseMethods } from "../../../src/global/A-Entity/A-Entity.types";
|
|
3
|
+
export declare class EntityA extends A_Entity<any, any, [
|
|
4
|
+
...A_TYPES__EntityBaseMethods,
|
|
5
|
+
'doSomething'
|
|
6
|
+
]> {
|
|
7
|
+
doSomething(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EntityA = void 0;
|
|
13
|
+
const A_Entity_class_1 = require("../../../src/global/A-Entity/A-Entity.class");
|
|
14
|
+
class EntityA extends A_Entity_class_1.A_Entity {
|
|
15
|
+
doSomething() {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
yield this.call('doSomething');
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.EntityA = EntityA;
|
|
22
|
+
//# sourceMappingURL=EntityA.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityA.entity.js","sourceRoot":"","sources":["../../../../examples/simple/entities/EntityA.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA2E;AAK3E,MAAa,OAAQ,SAAQ,yBAG3B;IAIQ,WAAW;;YACb,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACnC,CAAC;KAAA;CACJ;AAVD,0BAUC"}
|
|
@@ -7,7 +7,6 @@ export declare class HTTPRequest extends A_Fragment {
|
|
|
7
7
|
state: 'open' | 'end';
|
|
8
8
|
constructor(request: IncomingMessage, response: ServerResponse);
|
|
9
9
|
protected onInit(): Promise<void>;
|
|
10
|
-
toJSON<T extends any>(): Promise<T>;
|
|
11
10
|
private parseBody;
|
|
12
11
|
end(body: string): Promise<void>;
|
|
13
12
|
}
|
|
@@ -24,14 +24,12 @@ class HTTPRequest extends A_Fragment_class_1.A_Fragment {
|
|
|
24
24
|
this.response.setHeader('Content-Type', 'text/plain');
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
toJSON() {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
}
|
|
27
|
+
// async toJSON<T extends any>(): Promise<T> {
|
|
28
|
+
// if (!this._body) {
|
|
29
|
+
// this._body = await this.parseBody();
|
|
30
|
+
// }
|
|
31
|
+
// return this._body;
|
|
32
|
+
// }
|
|
35
33
|
parseBody() {
|
|
36
34
|
return new Promise((resolve, reject) => {
|
|
37
35
|
let body = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-request.context.js","sourceRoot":"","sources":["../../../../examples/simple-http-server/contexts/http-request.context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0FAAiF;AAMjF,MAAa,WAAY,SAAQ,6BAAU;IAWvC,YACI,OAAwB,EACxB,QAAwB;QAGxB,KAAK,EAAE,CAAC;QARZ,UAAK,GAAmB,MAAM,CAAA;QAU1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAGe,MAAM;;YAClB,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAC1D,CAAC;KAAA;
|
|
1
|
+
{"version":3,"file":"http-request.context.js","sourceRoot":"","sources":["../../../../examples/simple-http-server/contexts/http-request.context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0FAAiF;AAMjF,MAAa,WAAY,SAAQ,6BAAU;IAWvC,YACI,OAAwB,EACxB,QAAwB;QAGxB,KAAK,EAAE,CAAC;QARZ,UAAK,GAAmB,MAAM,CAAA;QAU1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAGe,MAAM;;YAClB,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAC1D,CAAC;KAAA;IAGD,8CAA8C;IAC9C,yBAAyB;IACzB,+CAA+C;IAC/C,QAAQ;IAER,yBAAyB;IACzB,IAAI;IAEI,SAAS;QACb,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,IAAI,IAAI,GAAG,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3D,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAGK,GAAG,CAAC,IAAY;;YAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;KAAA;CAEJ;AApDD,kCAoDC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,12 @@ export { A_ComponentMeta } from './src/global/A-Component/A-Component.meta';
|
|
|
10
10
|
export * from './src/global/A-Component/A-Component.types';
|
|
11
11
|
export { A_Entity } from './src/global/A-Entity/A-Entity.class';
|
|
12
12
|
export * from './src/global/A-Entity/A-Entity.types';
|
|
13
|
+
export { A_Channel } from './src/global/A-Channel/A-Channel.class';
|
|
14
|
+
export * from './src/global/A-Channel/A-Channel.types';
|
|
13
15
|
export { A_Feature } from './src/global/A-Feature/A-Feature.class';
|
|
14
16
|
export * from './src/global/A-Feature/A-Feature.types';
|
|
17
|
+
export { A_Stage } from './src/global/A-Stage/A-Stage.class';
|
|
18
|
+
export * from './src/global/A-Stage/A-Stage.types';
|
|
15
19
|
export { A_Scope } from './src/global/A-Scope/A-Scope.class';
|
|
16
20
|
export * from './src/global/A-Scope/A-Scope.types';
|
|
17
21
|
export { A_Meta } from './src/global/A-Meta/A-Meta.class';
|
|
@@ -22,8 +26,10 @@ export * from './src/decorators/A-Inject/A-Inject.decorator.types';
|
|
|
22
26
|
export { A_Feature_Define } from './src/decorators/A-Feature/A-Feature-Define.decorator';
|
|
23
27
|
export { A_Feature_Extend } from './src/decorators/A-Feature/A-Feature-Extend.decorator';
|
|
24
28
|
export * from './src/decorators/A-Feature/A-Feature.decorator.types';
|
|
25
|
-
export {
|
|
26
|
-
export * from './src/decorators/A-
|
|
29
|
+
export { A_Abstraction } from './src/decorators/A-Abstraction/A-Abstraction.decorator';
|
|
30
|
+
export * from './src/decorators/A-Abstraction/A-Abstraction.decorator.types';
|
|
31
|
+
export { A_Connect } from './src/decorators/A-Connect/A-Connect.decorator';
|
|
32
|
+
export * from './src/decorators/A-Connect/A-Connect.decorator.types';
|
|
27
33
|
export { A_ConfigLoader } from './src/base/A-Config/A-Config.container';
|
|
28
34
|
export { A_Config } from './src/base/A-Config/A-Config.context';
|
|
29
35
|
export { ConfigReader } from './src/base/A-Config/components/ConfigReader.component';
|