@atlantjs/arch 3.1.10 → 3.1.14
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/arch/modules/domain/entities/entity.abstract.d.ts +1 -1
- package/arch/modules/domain/entities/entity.abstract.js +2 -2
- package/arch/modules/infrastructure/repositories/schemas/schema.abstract.d.ts +2 -2
- package/index.d.ts +1 -2
- package/index.js +2 -4
- package/package.json +1 -1
- package/setup/index.d.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { SolidAbstract } from "./solid.abstract";
|
|
1
2
|
import { UuidAbstract } from "./uuid.abstract";
|
|
2
|
-
import { SolidAbstract } from "../../../../index";
|
|
3
3
|
export declare abstract class EntityAbstract extends SolidAbstract {
|
|
4
4
|
protected _id?: UuidAbstract | undefined;
|
|
5
5
|
constructor(_id?: UuidAbstract | undefined);
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.EntityAbstract = void 0;
|
|
7
7
|
const guardian_1 = require("../../../../@tool-box/utils/type-guard/guardian");
|
|
8
8
|
const _atlantjs_json_1 = __importDefault(require("../../../@atlantjs.json"));
|
|
9
|
-
const
|
|
10
|
-
class EntityAbstract extends
|
|
9
|
+
const solid_abstract_1 = require("./solid.abstract");
|
|
10
|
+
class EntityAbstract extends solid_abstract_1.SolidAbstract {
|
|
11
11
|
constructor(_id) {
|
|
12
12
|
super();
|
|
13
13
|
this._id = _id;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EntityAbstract } from "../../../domain/entities/entity.abstract";
|
|
2
1
|
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { EntityAbstract } from "../../../domain/entities/entity.abstract";
|
|
3
3
|
export declare abstract class SchemaAbstract extends BaseEntity {
|
|
4
4
|
createdAt: Date;
|
|
5
5
|
updatedAt: Date;
|
|
6
|
-
abstract toEntity(): EntityAbstract;
|
|
6
|
+
abstract toEntity?(): EntityAbstract;
|
|
7
7
|
protected beforeInsert(): void;
|
|
8
8
|
protected beforeUpdate(): void;
|
|
9
9
|
}
|
package/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export { MiddlewareHandlerAbstract } from "./arch/modules/domain/middlewares/mid
|
|
|
29
29
|
export { ProviderAbstract } from "./arch/modules/domain/providers/provider.abstract";
|
|
30
30
|
export { RepositoryAbstract } from "./arch/modules/domain/repositories/repository.abstract";
|
|
31
31
|
export { ServiceAbstract } from "./arch/modules/domain/services/service.abstract";
|
|
32
|
-
export { SolidAbstract } from "./arch/modules/domain/entities/solid.abstract";
|
|
33
32
|
export { UsecaseAbstract } from "./arch/modules/domain/usecases/usecase.abstract";
|
|
34
33
|
export { ControllerAbstract } from "./arch/modules/infrastructure/controllers/controller.abstract";
|
|
35
34
|
export { PayloadAbstract } from "./arch/modules/infrastructure/controllers/payloads/payload.abstract";
|
|
@@ -38,5 +37,5 @@ export { ResponseAbstract } from "./arch/modules/infrastructure/controllers/resp
|
|
|
38
37
|
export { EntityAbstract } from "./arch/modules/domain/entities/entity.abstract";
|
|
39
38
|
export { SchemaAbstract } from "./arch/modules/infrastructure/repositories/schemas/schema.abstract";
|
|
40
39
|
export { ENVIRONMENT, IAM_MOVINGAPP_REALM_PUBLIC_KEY_RS256, APP_PORT, LOAD_MODULES, CORS_ALLOWED_ORIGINS, isProdOrHomolog, } from "./setup/env/env-vars";
|
|
41
|
-
export { initializeApi
|
|
40
|
+
export { initializeApi } from "./setup";
|
|
42
41
|
export { diContainer } from "./setup/dependency-injections";
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.diContainer = exports.
|
|
3
|
+
exports.diContainer = exports.initializeApi = exports.isProdOrHomolog = exports.CORS_ALLOWED_ORIGINS = exports.LOAD_MODULES = exports.APP_PORT = exports.IAM_MOVINGAPP_REALM_PUBLIC_KEY_RS256 = exports.ENVIRONMENT = exports.SchemaAbstract = exports.EntityAbstract = exports.ResponseAbstract = exports.ValidatorAbstract = exports.PayloadAbstract = exports.ControllerAbstract = exports.UsecaseAbstract = exports.ServiceAbstract = exports.RepositoryAbstract = exports.ProviderAbstract = exports.MiddlewareHandlerAbstract = exports.NodeEnvs = exports.HttpStatusCodes = exports.UuidAbstract = exports.$string = exports.$object = exports.$number = exports.$date = exports.$boolean = exports.$array = exports.InjectionsAbstract = exports.UnknownFailure = exports.FailureAbstract = exports.DatabaseHelperAbstract = exports.Guardian = exports.RandomValue = exports.HttpClient = exports.Return = exports.Failure = exports.Success = exports.Optional = exports.Nothing = exports.Something = exports.ExtendedMap = exports.EntityBuilder = exports.CreateFakeUsecase = exports.UuidBuilder = exports.FailureBuilder = void 0;
|
|
4
4
|
require("#/utils/datatypes/string-utils");
|
|
5
5
|
require("#/utils/datatypes/boolean-utils");
|
|
6
6
|
var failure_builder_1 = require("./@tool-box/tests/builders/failures/failure.builder");
|
|
@@ -61,8 +61,6 @@ var repository_abstract_1 = require("./arch/modules/domain/repositories/reposito
|
|
|
61
61
|
Object.defineProperty(exports, "RepositoryAbstract", { enumerable: true, get: function () { return repository_abstract_1.RepositoryAbstract; } });
|
|
62
62
|
var service_abstract_1 = require("./arch/modules/domain/services/service.abstract");
|
|
63
63
|
Object.defineProperty(exports, "ServiceAbstract", { enumerable: true, get: function () { return service_abstract_1.ServiceAbstract; } });
|
|
64
|
-
var solid_abstract_1 = require("./arch/modules/domain/entities/solid.abstract");
|
|
65
|
-
Object.defineProperty(exports, "SolidAbstract", { enumerable: true, get: function () { return solid_abstract_1.SolidAbstract; } });
|
|
66
64
|
var usecase_abstract_1 = require("./arch/modules/domain/usecases/usecase.abstract");
|
|
67
65
|
Object.defineProperty(exports, "UsecaseAbstract", { enumerable: true, get: function () { return usecase_abstract_1.UsecaseAbstract; } });
|
|
68
66
|
var controller_abstract_1 = require("./arch/modules/infrastructure/controllers/controller.abstract");
|
|
@@ -85,6 +83,6 @@ Object.defineProperty(exports, "LOAD_MODULES", { enumerable: true, get: function
|
|
|
85
83
|
Object.defineProperty(exports, "CORS_ALLOWED_ORIGINS", { enumerable: true, get: function () { return env_vars_1.CORS_ALLOWED_ORIGINS; } });
|
|
86
84
|
Object.defineProperty(exports, "isProdOrHomolog", { enumerable: true, get: function () { return env_vars_1.isProdOrHomolog; } });
|
|
87
85
|
var setup_1 = require("./setup");
|
|
88
|
-
Object.defineProperty(exports, "
|
|
86
|
+
Object.defineProperty(exports, "initializeApi", { enumerable: true, get: function () { return setup_1.initializeApi; } });
|
|
89
87
|
var dependency_injections_1 = require("./setup/dependency-injections");
|
|
90
88
|
Object.defineProperty(exports, "diContainer", { enumerable: true, get: function () { return dependency_injections_1.diContainer; } });
|
package/package.json
CHANGED
package/setup/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
2
|
import "./env/load-envs";
|
|
3
|
-
import {
|
|
3
|
+
import { interfaces } from "inversify";
|
|
4
4
|
import { DatabaseConfigAbstract } from "../arch/modules/application/databases/database.config";
|
|
5
5
|
import { DatabaseHelperAbstract } from "../arch/modules/application/databases/database.helper.abstract";
|
|
6
6
|
interface ServerProps {
|
|
7
7
|
databases?: [
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
target: DatabaseHelperAbstract
|
|
9
|
+
ref: interfaces.ServiceIdentifier<unknown>;
|
|
10
|
+
target: InstanceType<typeof DatabaseHelperAbstract>;
|
|
11
11
|
configs: DatabaseConfigAbstract;
|
|
12
12
|
}
|
|
13
13
|
];
|