@atlantjs/arch 9.1.2 → 10.0.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.
- package/@tool-box/tests/{entity-builder.util.d.ts → builder.abstract.util.d.ts} +1 -1
- package/@tool-box/tests/{entity-builder.util.js → builder.abstract.util.js} +3 -6
- package/@tool-box/tests/builders/failures/dummies/failure.edge.dummy.d.ts +3 -0
- package/@tool-box/tests/builders/failures/dummies/failure.edge.dummy.js +3 -0
- package/@tool-box/tests/builders/failures/failure.edge.builder.d.ts +6 -0
- package/@tool-box/tests/builders/failures/failure.edge.builder.js +18 -0
- package/@tool-box/tests/builders/user/email.edge.builder.d.ts +6 -0
- package/@tool-box/tests/builders/user/email.edge.builder.js +11 -0
- package/@tool-box/tests/builders/user/person-name.edge.builder.d.ts +6 -0
- package/@tool-box/tests/builders/user/person-name.edge.builder.js +11 -0
- package/@tool-box/tests/builders/user/username.edge.builder.d.ts +6 -0
- package/@tool-box/tests/builders/user/username.edge.builder.js +11 -0
- package/@tool-box/tests/create-fake-command.d.ts +9 -0
- package/@tool-box/tests/create-fake-command.js +23 -0
- package/@tool-box/tests/faker/faker.js +7 -10
- package/@tool-box/utils/datatypes/boolean-utils.d.ts +1 -0
- package/@tool-box/utils/datatypes/boolean-utils.js +5 -2
- package/@tool-box/utils/datatypes/generic-types.d.ts +1 -1
- package/@tool-box/utils/datatypes/generic-types.js +1 -2
- package/@tool-box/utils/datatypes/string-utils.d.ts +1 -3
- package/@tool-box/utils/datatypes/string-utils.js +1 -10
- package/@tool-box/utils/ducts/common.js +7 -11
- package/@tool-box/utils/ducts/optional-type.d.ts +0 -1
- package/@tool-box/utils/ducts/optional-type.js +19 -22
- package/@tool-box/utils/ducts/return-type.d.ts +2 -2
- package/@tool-box/utils/ducts/return-type.js +21 -26
- package/@tool-box/utils/{arrays/extended-map.d.ts → map/map.abstract.d.ts} +1 -2
- package/@tool-box/utils/map/map.abstract.js +13 -0
- package/@tool-box/utils/random/random.d.ts +5 -0
- package/@tool-box/utils/{randoms/random-value.js → random/random.js} +4 -8
- package/@tool-box/utils/type-guard/guardian-exception.js +1 -5
- package/@tool-box/utils/type-guard/guardian.d.ts +11 -13
- package/@tool-box/utils/type-guard/guardian.js +19 -51
- package/@tool-box/utils/type-guard/guardian.type.js +1 -2
- package/README.md +0 -8
- package/index.d.ts +28 -37
- package/index.js +30 -81
- package/objects/@common/edges/email.edge.d.ts +6 -0
- package/{arch/modules/domain/entities/user/value-objects/email.js → objects/@common/edges/email.edge.js} +3 -6
- package/objects/@common/edges/person-name.edge.d.ts +7 -0
- package/objects/@common/edges/person-name.edge.js +14 -0
- package/objects/@common/edges/url.edge.d.ts +6 -0
- package/objects/@common/edges/url.edge.js +17 -0
- package/objects/@common/edges/username.edge.d.ts +3 -0
- package/objects/@common/edges/username.edge.js +3 -0
- package/{arch/modules/domain/entities/uuid.abstract.d.ts → objects/@common/edges/uuid.sketch.edge.d.ts} +2 -2
- package/objects/@common/edges/uuid.sketch.edge.js +18 -0
- package/{arch/modules/domain/enums → objects/@common/points}/header-token-name.enum.js +2 -5
- package/{arch/modules/domain/enums → objects/@common/points}/http-status-codes.enum.js +2 -5
- package/{arch/modules/domain/enums → objects/@common/points}/node-envs.enum.js +2 -5
- package/objects/datetime/edges/datetime.edge.d.ts +27 -0
- package/objects/datetime/edges/datetime.edge.js +133 -0
- package/objects/datetime/points/month-name.enum.d.ts +14 -0
- package/objects/datetime/points/month-name.enum.js +15 -0
- package/objects/datetime/points/week-day.enum.d.ts +9 -0
- package/objects/datetime/points/week-day.enum.js +10 -0
- package/objects/failure/edges/failure.sketch.edge.d.ts +8 -0
- package/objects/failure/edges/failure.sketch.edge.js +23 -0
- package/objects/failure/edges/failure.sketch.polygon.d.ts +9 -0
- package/objects/failure/edges/failure.sketch.polygon.js +1 -0
- package/objects/password/password.edge.d.ts +8 -0
- package/objects/password/password.edge.js +38 -0
- package/{arch/modules/domain/entities/user/password/password.abstract.type.d.ts → objects/password/password.polygon.d.ts} +1 -1
- package/objects/password/password.polygon.js +1 -0
- package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-consecutive-chars-step.js +3 -6
- package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-date-step.js +3 -6
- package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-phone-step.js +3 -6
- package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-repeated-chars-step.js +3 -6
- package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-string-step.js +3 -6
- package/objects/password/steps/not-allowing-these-chars-step.js +14 -0
- package/objects/password/steps/numeric-step.js +9 -0
- package/objects/password/steps/with-at-least-one-letter-step.js +10 -0
- package/objects/password/steps/with-at-least-one-number-digit-step.js +10 -0
- package/objects/password/steps/with-at-least-one-special-char-step.js +10 -0
- package/{arch/modules/domain/entities/user → objects}/password/steps/with-length-step.js +3 -6
- package/objects/password/validation-step.js +5 -0
- package/objects/password/validation-step.type.js +1 -0
- package/objects/primitives/boolean.edge.sketch.d.ts +7 -0
- package/objects/primitives/boolean.edge.sketch.js +18 -0
- package/objects/primitives/datetime.edge.sketch.d.ts +3 -0
- package/objects/primitives/datetime.edge.sketch.js +3 -0
- package/objects/primitives/number.edge.sketch.d.ts +13 -0
- package/{arch/modules/domain/entities/$number.abstract.js → objects/primitives/number.edge.sketch.js} +12 -15
- package/{arch/modules/domain/entities/$string.abstract.d.ts → objects/primitives/string.edge.sketch.d.ts} +1 -1
- package/{arch/modules/domain/entities/$string.abstract.js → objects/primitives/string.edge.sketch.js} +2 -5
- package/package.json +6 -11
- package/tsconfig.tsbuildinfo +1 -1
- package/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts +0 -3
- package/@tool-box/tests/builders/failures/dummies/failure.dummy.js +0 -7
- package/@tool-box/tests/builders/failures/failure.builder.d.ts +0 -6
- package/@tool-box/tests/builders/failures/failure.builder.js +0 -21
- package/@tool-box/tests/builders/generic/dummies/uuid.dummy.d.ts +0 -3
- package/@tool-box/tests/builders/generic/dummies/uuid.dummy.js +0 -7
- package/@tool-box/tests/builders/generic/uuid.builder.d.ts +0 -6
- package/@tool-box/tests/builders/generic/uuid.builder.js +0 -14
- package/@tool-box/tests/builders/user/email.builder.d.ts +0 -6
- package/@tool-box/tests/builders/user/email.builder.js +0 -15
- package/@tool-box/tests/builders/user/person-name.builder.d.ts +0 -6
- package/@tool-box/tests/builders/user/person-name.builder.js +0 -15
- package/@tool-box/tests/builders/user/user-id.builder.d.ts +0 -6
- package/@tool-box/tests/builders/user/user-id.builder.js +0 -14
- package/@tool-box/tests/builders/user/username.builder.d.ts +0 -6
- package/@tool-box/tests/builders/user/username.builder.js +0 -15
- package/@tool-box/tests/create-fake-usecase.d.ts +0 -9
- package/@tool-box/tests/create-fake-usecase.js +0 -26
- package/@tool-box/utils/arrays/extended-map.js +0 -22
- package/@tool-box/utils/http-client/http-client-exception.d.ts +0 -3
- package/@tool-box/utils/http-client/http-client-exception.js +0 -12
- package/@tool-box/utils/http-client/http-client-request.d.ts +0 -9
- package/@tool-box/utils/http-client/http-client-request.js +0 -2
- package/@tool-box/utils/http-client/http-client-response.d.ts +0 -18
- package/@tool-box/utils/http-client/http-client-response.get-header.failure.d.ts +0 -4
- package/@tool-box/utils/http-client/http-client-response.get-header.failure.js +0 -14
- package/@tool-box/utils/http-client/http-client-response.js +0 -39
- package/@tool-box/utils/http-client/http-client.d.ts +0 -9
- package/@tool-box/utils/http-client/http-client.js +0 -21
- package/@tool-box/utils/randoms/random-value.d.ts +0 -5
- package/arch/@atlantjs.json +0 -3
- package/arch/biome.json +0 -47
- package/arch/modules/application/failures/failure.abstract.d.ts +0 -9
- package/arch/modules/application/failures/failure.abstract.js +0 -24
- package/arch/modules/application/failures/failure.abstract.type.d.ts +0 -9
- package/arch/modules/application/failures/failure.abstract.type.js +0 -2
- package/arch/modules/application/failures/unknown-failure.d.ts +0 -15
- package/arch/modules/application/failures/unknown-failure.js +0 -16
- package/arch/modules/domain/entities/$array.abstract.d.ts +0 -2
- package/arch/modules/domain/entities/$array.abstract.js +0 -6
- package/arch/modules/domain/entities/$boolean.abstract.d.ts +0 -7
- package/arch/modules/domain/entities/$boolean.abstract.js +0 -21
- package/arch/modules/domain/entities/$date.abstract.d.ts +0 -2
- package/arch/modules/domain/entities/$date.abstract.js +0 -6
- package/arch/modules/domain/entities/$number.abstract.d.ts +0 -13
- package/arch/modules/domain/entities/$object.abstract.d.ts +0 -2
- package/arch/modules/domain/entities/$object.abstract.js +0 -6
- package/arch/modules/domain/entities/entity-frontend.abstract.d.ts +0 -6
- package/arch/modules/domain/entities/entity-frontend.abstract.js +0 -11
- package/arch/modules/domain/entities/solid.abstract.d.ts +0 -4
- package/arch/modules/domain/entities/solid.abstract.js +0 -6
- package/arch/modules/domain/entities/url.abstract.d.ts +0 -3
- package/arch/modules/domain/entities/url.abstract.js +0 -7
- package/arch/modules/domain/entities/user/password/password.abstract.d.ts +0 -8
- package/arch/modules/domain/entities/user/password/password.abstract.js +0 -41
- package/arch/modules/domain/entities/user/password/password.abstract.type.js +0 -2
- package/arch/modules/domain/entities/user/password/steps/not-allowing-these-chars-step.js +0 -17
- package/arch/modules/domain/entities/user/password/steps/numeric-step.js +0 -13
- package/arch/modules/domain/entities/user/password/steps/with-at-least-one-letter-step.js +0 -14
- package/arch/modules/domain/entities/user/password/steps/with-at-least-one-number-digit-step.js +0 -14
- package/arch/modules/domain/entities/user/password/steps/with-at-least-one-special-char-step.js +0 -14
- package/arch/modules/domain/entities/user/password/validation-step.js +0 -9
- package/arch/modules/domain/entities/user/password/validation-step.type.js +0 -2
- package/arch/modules/domain/entities/user/value-objects/email.d.ts +0 -6
- package/arch/modules/domain/entities/user/value-objects/person-name.d.ts +0 -7
- package/arch/modules/domain/entities/user/value-objects/person-name.js +0 -17
- package/arch/modules/domain/entities/user/value-objects/user-id.d.ts +0 -3
- package/arch/modules/domain/entities/user/value-objects/user-id.js +0 -7
- package/arch/modules/domain/entities/user/value-objects/username.d.ts +0 -3
- package/arch/modules/domain/entities/user/value-objects/username.js +0 -7
- package/arch/modules/domain/entities/uuid.abstract.js +0 -23
- package/arch/modules/domain/entities/value-object.abstract.d.ts +0 -3
- package/arch/modules/domain/entities/value-object.abstract.js +0 -7
- package/arch/modules/infrastructure/services/http-client.abstract.d.ts +0 -0
- package/arch/modules/infrastructure/services/http-client.abstract.js +0 -1
- package/arch/modules/infrastructure/services/payloads/service.payload.abstract.d.ts +0 -0
- package/arch/modules/infrastructure/services/payloads/service.payload.abstract.js +0 -1
- package/arch/modules/infrastructure/services/responses/service.response.abstract.d.ts +0 -0
- package/arch/modules/infrastructure/services/responses/service.response.abstract.js +0 -1
- package/arch/tsconfig-backend.json +0 -3
- package/arch/tsconfig-default.json +0 -45
- package/arch/tsconfig-frontend.json +0 -3
- package/arch/tsconfig-lib.json +0 -6
- package/arch/tsconfig-mobile.json +0 -3
- /package/{arch/modules/domain/enums → objects/@common/points}/header-token-name.enum.d.ts +0 -0
- /package/{arch/modules/domain/enums → objects/@common/points}/http-status-codes.enum.d.ts +0 -0
- /package/{arch/modules/domain/enums → objects/@common/points}/node-envs.enum.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-consecutive-chars-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-date-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-phone-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-repeated-chars-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-string-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-these-chars-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/numeric-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/with-at-least-one-letter-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/with-at-least-one-number-digit-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/with-at-least-one-special-char-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/steps/with-length-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/validation-step.d.ts +0 -0
- /package/{arch/modules/domain/entities/user → objects}/password/validation-step.type.d.ts +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PersonName = void 0;
|
|
4
|
-
const _string_abstract_1 = require("../../$string.abstract");
|
|
5
|
-
class PersonName extends _string_abstract_1.$string {
|
|
6
|
-
constructor(name) {
|
|
7
|
-
super(name);
|
|
8
|
-
this.name = name;
|
|
9
|
-
}
|
|
10
|
-
get firstName() {
|
|
11
|
-
return this.name.split(" ")[0];
|
|
12
|
-
}
|
|
13
|
-
get lastName() {
|
|
14
|
-
return this.name.split(" ").slice(1).join(" ");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.PersonName = PersonName;
|
|
@@ -1,23 +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.UuidAbstract = void 0;
|
|
7
|
-
const react_native_uuid_1 = __importDefault(require("react-native-uuid"));
|
|
8
|
-
class UuidAbstract {
|
|
9
|
-
constructor(value = react_native_uuid_1.default.v4()) {
|
|
10
|
-
this.value = value;
|
|
11
|
-
if (!UuidAbstract.pattern.test(value)) {
|
|
12
|
-
throw new TypeError("The provided UUID is invalid. Please ensure it is in the correct format");
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
equals(uuid) {
|
|
16
|
-
return this.toString() === uuid.toString();
|
|
17
|
-
}
|
|
18
|
-
toString() {
|
|
19
|
-
return this.value;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.UuidAbstract = UuidAbstract;
|
|
23
|
-
UuidAbstract.pattern = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValueObjectAbstract = void 0;
|
|
4
|
-
const solid_abstract_1 = require("./solid.abstract");
|
|
5
|
-
class ValueObjectAbstract extends solid_abstract_1.SolidAbstract {
|
|
6
|
-
}
|
|
7
|
-
exports.ValueObjectAbstract = ValueObjectAbstract;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"ts-node": {
|
|
4
|
-
"require": [
|
|
5
|
-
"tsconfig-paths/register"
|
|
6
|
-
]
|
|
7
|
-
},
|
|
8
|
-
"compilerOptions": {
|
|
9
|
-
"strictPropertyInitialization": true,
|
|
10
|
-
"incremental": true,
|
|
11
|
-
"baseUrl": "../../../../",
|
|
12
|
-
"strict": true,
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"rootDirs": [
|
|
16
|
-
"../../../../src",
|
|
17
|
-
"../../../../tests"
|
|
18
|
-
],
|
|
19
|
-
"paths": {
|
|
20
|
-
"#/*": [
|
|
21
|
-
"../../../../src/*"
|
|
22
|
-
],
|
|
23
|
-
"!tests/*": [
|
|
24
|
-
"../../../../tests/*"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"esModuleInterop": true,
|
|
28
|
-
"experimentalDecorators": true,
|
|
29
|
-
"emitDecoratorMetadata": true,
|
|
30
|
-
"allowJs": true,
|
|
31
|
-
"target": "es2021",
|
|
32
|
-
"module": "commonjs",
|
|
33
|
-
"skipLibCheck": true,
|
|
34
|
-
"declaration": true,
|
|
35
|
-
"forceConsistentCasingInFileNames": true,
|
|
36
|
-
"outDir": "../../../../dist"
|
|
37
|
-
},
|
|
38
|
-
"include": [
|
|
39
|
-
"../../../../src/**/*"
|
|
40
|
-
],
|
|
41
|
-
"exclude": [
|
|
42
|
-
"../../../../node_modules",
|
|
43
|
-
"../../../../dist"
|
|
44
|
-
]
|
|
45
|
-
}
|
package/arch/tsconfig-lib.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-date-step.d.ts
RENAMED
|
File without changes
|
/package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-phone-step.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{arch/modules/domain/entities/user → objects}/password/steps/not-allowing-string-step.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|