@atlantjs/arch 3.1.17 → 3.2.0

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.
@@ -1,9 +0,0 @@
1
- import { SolidAbstract } from "./solid.abstract";
2
- import { UuidAbstract } from "./uuid.abstract";
3
- export declare abstract class EntityAbstract extends SolidAbstract {
4
- protected _id: UuidAbstract;
5
- constructor(_id: UuidAbstract);
6
- abstract get id(): UuidAbstract;
7
- private requireToPersist;
8
- abstract toPersist?(): EntityAbstract;
9
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.EntityAbstract = void 0;
7
- const guardian_1 = require("../../../../@tool-box/utils/type-guard/guardian");
8
- const _atlantjs_json_1 = __importDefault(require("../../../@atlantjs.json"));
9
- const solid_abstract_1 = require("./solid.abstract");
10
- class EntityAbstract extends solid_abstract_1.SolidAbstract {
11
- constructor(_id) {
12
- super();
13
- this._id = _id;
14
- if (guardian_1.Guardian.isEqual(_atlantjs_json_1.default.projectType, "backend")) {
15
- this.requireToPersist();
16
- }
17
- }
18
- requireToPersist() {
19
- throw new Error("toPersist method must be implemented");
20
- }
21
- }
22
- exports.EntityAbstract = EntityAbstract;