@fiado/type-kit 1.6.10 → 1.6.11
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,6 +1,6 @@
|
|
|
1
1
|
import { AddressResponse } from "../../address";
|
|
2
2
|
import { CountryId } from "../../country";
|
|
3
|
-
import { SexDocument } from '../../identity';
|
|
3
|
+
import { IdentificationDocument, SexDocument } from '../../identity';
|
|
4
4
|
import { Profile } from "../../directory/enums/Profile";
|
|
5
5
|
import { AccountLevelEnum } from "../enums/AccountLevelEnum";
|
|
6
6
|
export declare class AccountCreateRequest {
|
|
@@ -20,9 +20,7 @@ export declare class AccountCreateRequest {
|
|
|
20
20
|
email: string;
|
|
21
21
|
dob: string;
|
|
22
22
|
isHost?: boolean;
|
|
23
|
-
|
|
24
|
-
documentType: string;
|
|
25
|
-
documentCountry?: string;
|
|
23
|
+
documentInfo?: IdentificationDocument;
|
|
26
24
|
gender: SexDocument;
|
|
27
25
|
countryId: CountryId;
|
|
28
26
|
userProfile: Profile;
|
|
@@ -96,20 +96,9 @@ __decorate([
|
|
|
96
96
|
__metadata("design:type", Boolean)
|
|
97
97
|
], AccountCreateRequest.prototype, "isHost", void 0);
|
|
98
98
|
__decorate([
|
|
99
|
-
(0, class_validator_1.IsString)(),
|
|
100
|
-
(0, class_validator_1.Length)(1, 30),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], AccountCreateRequest.prototype, "documentNumber", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, class_validator_1.IsString)(),
|
|
105
|
-
(0, class_validator_1.Length)(1, 30),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], AccountCreateRequest.prototype, "documentType", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, class_validator_1.IsString)(),
|
|
110
99
|
(0, class_validator_1.IsOptional)(),
|
|
111
|
-
__metadata("design:type",
|
|
112
|
-
], AccountCreateRequest.prototype, "
|
|
100
|
+
__metadata("design:type", identity_1.IdentificationDocument)
|
|
101
|
+
], AccountCreateRequest.prototype, "documentInfo", void 0);
|
|
113
102
|
__decorate([
|
|
114
103
|
(0, class_validator_1.IsOptional)(),
|
|
115
104
|
(0, class_validator_1.IsEnum)(identity_1.SexDocument),
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { CountryId } from "../../country";
|
|
|
4
4
|
import { regexUuidV4 } from '../../helpers/constans/regex';
|
|
5
5
|
import { TypeOfDirectoryId } from '../../directory';
|
|
6
6
|
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
7
|
-
import { SexDocument
|
|
7
|
+
import {IdentificationDocument, SexDocument} from '../../identity';
|
|
8
8
|
import { Profile } from "../../directory/enums/Profile";
|
|
9
9
|
import {AccountLevelEnum} from "../enums/AccountLevelEnum";
|
|
10
10
|
|
|
@@ -69,19 +69,10 @@ export class AccountCreateRequest {
|
|
|
69
69
|
dob: string;
|
|
70
70
|
|
|
71
71
|
@IsBoolean()
|
|
72
|
-
isHost?: boolean;
|
|
72
|
+
isHost?: boolean;
|
|
73
73
|
|
|
74
|
-
@IsString()
|
|
75
|
-
@Length(1, 30)
|
|
76
|
-
documentNumber: string;
|
|
77
|
-
|
|
78
|
-
@IsString()
|
|
79
|
-
@Length(1, 30)
|
|
80
|
-
documentType: string;
|
|
81
|
-
|
|
82
|
-
@IsString()
|
|
83
74
|
@IsOptional()
|
|
84
|
-
|
|
75
|
+
documentInfo?: IdentificationDocument;
|
|
85
76
|
|
|
86
77
|
@IsOptional()
|
|
87
78
|
@IsEnum(SexDocument)
|