@fiado/type-kit 1.0.58 → 1.0.60
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/bin/account/dtos/AccountCreateRequest.d.ts +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- package/bin/card/enums/DeliveryChannel.d.ts +5 -0
- package/bin/card/enums/DeliveryChannel.js +9 -0
- package/bin/card/enums/ExternalShippingStatus.d.ts +14 -0
- package/bin/card/enums/ExternalShippingStatus.js +18 -0
- package/bin/card/enums/ExternalShippingStatusDetails.d.ts +54 -0
- package/bin/card/enums/ExternalShippingStatusDetails.js +58 -0
- package/bin/card/index.d.ts +3 -0
- package/bin/card/index.js +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/tern/dtos/TernAddress.d.ts +8 -0
- package/bin/tern/dtos/TernAddress.js +40 -0
- package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
- package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
- package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
- package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
- package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
- package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
- package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
- package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
- package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
- package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
- package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
- package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
- package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
- package/bin/tern/dtos/TernGetUserRequest.js +20 -0
- package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
- package/bin/tern/dtos/TernGetUserResponse.js +96 -0
- package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
- package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
- package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
- package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
- package/bin/tern/index.d.ts +11 -0
- package/bin/tern/index.js +29 -0
- package/package.json +1 -1
- package/src/account/dtos/AccountCreateRequest.ts +7 -7
- package/src/card/enums/DeliveryChannel.ts +7 -0
- package/src/card/enums/ExternalShippingStatus.ts +15 -0
- package/src/card/enums/ExternalShippingStatusDetails.ts +54 -0
- package/src/card/index.ts +5 -0
- package/src/index.ts +1 -0
- package/src/tern/dtos/TernAddress.ts +21 -0
- package/src/tern/dtos/TernCreateAccountRequest.ts +16 -0
- package/src/tern/dtos/TernCreateAccountResponse.ts +10 -0
- package/src/tern/dtos/TernCreateUserRequest.ts +47 -0
- package/src/tern/dtos/TernCreateUserResponse.ts +19 -0
- package/src/tern/dtos/TernGetAccountRequest.ts +10 -0
- package/src/tern/dtos/TernGetAccountResponse.ts +57 -0
- package/src/tern/dtos/TernGetUserRequest.ts +6 -0
- package/src/tern/dtos/TernGetUserResponse.ts +64 -0
- package/src/tern/enums/TernAccountStatusEnum.ts +4 -0
- package/src/tern/enums/TernAccountTypeEnum.ts +5 -0
- package/src/tern/index.ts +14 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {SexDocument} from "../../identity";
|
|
2
|
+
import {TernAccountStatusEnum} from "../enums/TernAccountStatusEnum";
|
|
3
|
+
import {TernAddress} from "./TernAddress";
|
|
4
|
+
import {IsArray, IsEmail, IsEnum, IsString, ValidateNested} from "class-validator";
|
|
5
|
+
import {IsPhoneNumberFiado} from "../../card/validations/IsPhoneNumberConstraint";
|
|
6
|
+
|
|
7
|
+
export class TernGetUserResponse {
|
|
8
|
+
@IsString()
|
|
9
|
+
id: string;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
typeOfUserId: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
dob: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
name: string;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
lastName: string;
|
|
22
|
+
|
|
23
|
+
@IsPhoneNumberFiado()
|
|
24
|
+
phoneNumber: string;
|
|
25
|
+
|
|
26
|
+
@IsEmail()
|
|
27
|
+
email: string;
|
|
28
|
+
|
|
29
|
+
@ValidateNested()
|
|
30
|
+
address?: TernAddress;
|
|
31
|
+
|
|
32
|
+
@IsEnum(TernAccountStatusEnum)
|
|
33
|
+
status: TernAccountStatusEnum;
|
|
34
|
+
|
|
35
|
+
@IsEnum(SexDocument)
|
|
36
|
+
sex?: SexDocument;
|
|
37
|
+
|
|
38
|
+
@IsString()
|
|
39
|
+
documentNumber: string;
|
|
40
|
+
|
|
41
|
+
@IsString()
|
|
42
|
+
typeOfDocumentId?: string;
|
|
43
|
+
|
|
44
|
+
@IsString()
|
|
45
|
+
countryId: string;
|
|
46
|
+
|
|
47
|
+
@IsArray()
|
|
48
|
+
userAccountIds?: string[];
|
|
49
|
+
|
|
50
|
+
@IsString()
|
|
51
|
+
createdDate?: string;
|
|
52
|
+
|
|
53
|
+
@IsString()
|
|
54
|
+
updatedDate?: string;
|
|
55
|
+
|
|
56
|
+
@IsString()
|
|
57
|
+
deletedDate?: string;
|
|
58
|
+
|
|
59
|
+
@IsString()
|
|
60
|
+
updatedBy?: string;
|
|
61
|
+
|
|
62
|
+
@IsArray()
|
|
63
|
+
accountIds?: number[];
|
|
64
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// DTOs
|
|
2
|
+
export * from './dtos/TernCreateUserRequest';
|
|
3
|
+
export * from './dtos/TernCreateUserResponse';
|
|
4
|
+
export * from './dtos/TernCreateAccountRequest';
|
|
5
|
+
export * from './dtos/TernCreateAccountResponse';
|
|
6
|
+
export * from './dtos/TernGetAccountRequest';
|
|
7
|
+
export * from './dtos/TernGetAccountResponse';
|
|
8
|
+
export * from './dtos/TernGetUserRequest';
|
|
9
|
+
export * from './dtos/TernGetUserResponse';
|
|
10
|
+
export * from './dtos/TernAddress';
|
|
11
|
+
|
|
12
|
+
// ENUMS
|
|
13
|
+
export * from './enums/TernAccountTypeEnum';
|
|
14
|
+
export * from './enums/TernAccountStatusEnum';
|