@fiado/type-kit 1.0.74 → 1.0.76
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/.idea/sonarlint/issuestore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
- package/.idea/sonarlint/issuestore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
- package/.idea/sonarlint/issuestore/index.pb +5 -1
- package/.idea/sonarlint/securityhotspotstore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
- package/.idea/sonarlint/securityhotspotstore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +5 -1
- package/bin/account/dtos/AccountCreateRequest.d.ts +1 -0
- package/bin/account/dtos/AccountCreateRequest.js +7 -0
- package/bin/helpers/constans/regex.js +1 -1
- package/package.json +1 -1
- package/src/account/dtos/AccountCreateRequest.ts +8 -0
- package/src/helpers/constans/regex.ts +1 -1
|
File without changes
|
|
File without changes
|
|
@@ -68,4 +68,8 @@ U
|
|
|
68
68
|
]
|
|
69
69
|
-src/exchangeRate/dtos/ExchangeRateResponse.ts,5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8
|
|
70
70
|
N
|
|
71
|
-
src/country/enums/CountryId.ts,8/c/8ce69d617cb074433c15518eed688652cbc8c164
|
|
71
|
+
src/country/enums/CountryId.ts,8/c/8ce69d617cb074433c15518eed688652cbc8c164
|
|
72
|
+
_
|
|
73
|
+
/src/card/validations/IsPhoneNumberConstraint.ts,5/6/566db33aef0142b767c76568b2fca29caaa1b423
|
|
74
|
+
M
|
|
75
|
+
src/helpers/constans/regex.ts,0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e
|
|
File without changes
|
|
File without changes
|
|
@@ -68,4 +68,8 @@ U
|
|
|
68
68
|
]
|
|
69
69
|
-src/exchangeRate/dtos/ExchangeRateResponse.ts,5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8
|
|
70
70
|
N
|
|
71
|
-
src/country/enums/CountryId.ts,8/c/8ce69d617cb074433c15518eed688652cbc8c164
|
|
71
|
+
src/country/enums/CountryId.ts,8/c/8ce69d617cb074433c15518eed688652cbc8c164
|
|
72
|
+
_
|
|
73
|
+
/src/card/validations/IsPhoneNumberConstraint.ts,5/6/566db33aef0142b767c76568b2fca29caaa1b423
|
|
74
|
+
M
|
|
75
|
+
src/helpers/constans/regex.ts,0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e
|
|
@@ -35,6 +35,13 @@ __decorate([
|
|
|
35
35
|
}),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], AccountCreateRequest.prototype, "ownerDirectoryId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
41
|
+
message: 'peopleId must be a valid UUID v4',
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AccountCreateRequest.prototype, "peopleId", void 0);
|
|
38
45
|
__decorate([
|
|
39
46
|
(0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
|
|
40
47
|
__metadata("design:type", String)
|
|
@@ -6,4 +6,4 @@ exports.regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[
|
|
|
6
6
|
// Expresión regular para validar fecha ISO 8601
|
|
7
7
|
exports.regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
8
8
|
// Expresión regular para validar un número de teléfono
|
|
9
|
-
exports.regexPhoneNumber =
|
|
9
|
+
exports.regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export class AccountCreateRequest {
|
|
|
15
15
|
message: 'directoryId must be a valid UUID v4',
|
|
16
16
|
})
|
|
17
17
|
directoryId: string;
|
|
18
|
+
|
|
18
19
|
|
|
19
20
|
@IsString()
|
|
20
21
|
@Matches(regexUuidV4,
|
|
@@ -23,6 +24,13 @@ export class AccountCreateRequest {
|
|
|
23
24
|
})
|
|
24
25
|
ownerDirectoryId: string;
|
|
25
26
|
|
|
27
|
+
@IsString()
|
|
28
|
+
@Matches(regexUuidV4,
|
|
29
|
+
{
|
|
30
|
+
message: 'peopleId must be a valid UUID v4',
|
|
31
|
+
})
|
|
32
|
+
peopleId: string;
|
|
33
|
+
|
|
26
34
|
@IsEnum(TypeOfDirectoryId)
|
|
27
35
|
typeOfDirectoryId: string;
|
|
28
36
|
|
|
@@ -5,7 +5,7 @@ export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]
|
|
|
5
5
|
// Expresión regular para validar fecha ISO 8601
|
|
6
6
|
export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
7
7
|
// Expresión regular para validar un número de teléfono
|
|
8
|
-
export const regexPhoneNumber =
|
|
8
|
+
export const regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|