@fiado/type-kit 2.0.28 → 2.0.30
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,7 +1,6 @@
|
|
|
1
1
|
import { TypeOfDirectoryId } from "../../directory/enums/TypeOfDirectoryId";
|
|
2
2
|
import { AddressProvider } from "../enums/AddressProvider";
|
|
3
3
|
import { AddressStatus } from "../enums/AddressStatus";
|
|
4
|
-
import { Place } from "./Place";
|
|
5
4
|
import { CountryId } from '../../country/enums/CountryId';
|
|
6
5
|
export declare class AddressBase {
|
|
7
6
|
id?: string;
|
|
@@ -14,7 +13,7 @@ export declare class AddressBase {
|
|
|
14
13
|
typeOfAddressId: string;
|
|
15
14
|
typeOfDirectoryId: TypeOfDirectoryId;
|
|
16
15
|
provider: AddressProvider;
|
|
17
|
-
place
|
|
16
|
+
place?: any;
|
|
18
17
|
validFrom: string;
|
|
19
18
|
validUntil?: string;
|
|
20
19
|
addressStatus: AddressStatus;
|
|
@@ -14,9 +14,9 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
|
|
15
15
|
const AddressProvider_1 = require("../enums/AddressProvider");
|
|
16
16
|
const AddressStatus_1 = require("../enums/AddressStatus");
|
|
17
|
-
const Place_1 = require("./Place");
|
|
18
17
|
const CountryId_1 = require("../../country/enums/CountryId");
|
|
19
18
|
const regex_1 = require("../../helpers/constans/regex");
|
|
19
|
+
const country_1 = require("../../country");
|
|
20
20
|
class AddressBase {
|
|
21
21
|
}
|
|
22
22
|
exports.AddressBase = AddressBase;
|
|
@@ -71,10 +71,6 @@ __decorate([
|
|
|
71
71
|
(0, class_validator_1.IsEnum)(AddressProvider_1.AddressProvider),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
73
|
], AddressBase.prototype, "provider", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_validator_1.ValidateNested)(),
|
|
76
|
-
__metadata("design:type", Place_1.Place)
|
|
77
|
-
], AddressBase.prototype, "place", void 0);
|
|
78
74
|
__decorate([
|
|
79
75
|
(0, class_validator_1.IsString)(),
|
|
80
76
|
(0, class_validator_1.Matches)(regex_1.regexIso8601, {
|
|
@@ -158,6 +154,6 @@ __decorate([
|
|
|
158
154
|
__metadata("design:type", String)
|
|
159
155
|
], AddressBase.prototype, "postalCode", void 0);
|
|
160
156
|
__decorate([
|
|
161
|
-
(0, class_validator_1.IsEnum)(
|
|
157
|
+
(0, class_validator_1.IsEnum)(country_1.CountryISO2ToISO3),
|
|
162
158
|
__metadata("design:type", String)
|
|
163
159
|
], AddressBase.prototype, "country", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^20.11.20",
|
|
16
16
|
"install": "^0.13.0",
|
|
17
|
-
"npm": "^10.4.0",
|
|
18
17
|
"typescript": "^5.3.3"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
@@ -8,6 +8,7 @@ import { AddressStatus } from "../enums/AddressStatus";
|
|
|
8
8
|
import { Place } from "./Place";
|
|
9
9
|
import { CountryId } from '../../country/enums/CountryId';
|
|
10
10
|
import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
|
|
11
|
+
import { CountryISO2ToISO3 } from '../../country';
|
|
11
12
|
|
|
12
13
|
export class AddressBase {
|
|
13
14
|
|
|
@@ -54,8 +55,7 @@ export class AddressBase {
|
|
|
54
55
|
@IsEnum(AddressProvider)
|
|
55
56
|
provider: AddressProvider;
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
place: Place;
|
|
58
|
+
place?: any;
|
|
59
59
|
|
|
60
60
|
@IsString()
|
|
61
61
|
@Matches(regexIso8601,
|
|
@@ -126,6 +126,6 @@ export class AddressBase {
|
|
|
126
126
|
@Length(5, 10)
|
|
127
127
|
postalCode?: string;
|
|
128
128
|
|
|
129
|
-
@IsEnum(
|
|
129
|
+
@IsEnum(CountryISO2ToISO3)
|
|
130
130
|
country: string;
|
|
131
131
|
}
|