@fiado/type-kit 1.0.41 → 1.0.43

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.
Files changed (105) hide show
  1. package/README.md +70 -70
  2. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  3. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  4. package/bin/header/TokenPayload.d.ts +1 -0
  5. package/bin/notificationMessages/enums/NotificationId.d.ts +4 -0
  6. package/bin/notificationMessages/enums/NotificationId.js +8 -0
  7. package/bin/notificationMessages/index.d.ts +1 -0
  8. package/bin/notificationMessages/index.js +1 -0
  9. package/package.json +23 -23
  10. package/src/account/dtos/AccountCreateRequest.ts +44 -44
  11. package/src/account/dtos/AccountCreateResponse.ts +5 -5
  12. package/src/account/dtos/AccountResponse.ts +26 -26
  13. package/src/account/dtos/PocketCreateRequest.ts +18 -18
  14. package/src/account/dtos/PocketCreateResponse.ts +4 -4
  15. package/src/account/enums/AccountStatus.ts +6 -6
  16. package/src/account/index.ts +16 -16
  17. package/src/address/dtos/AddressBase.ts +130 -130
  18. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  19. package/src/address/dtos/AddressResponse.ts +41 -41
  20. package/src/address/dtos/Geometry.ts +4 -4
  21. package/src/address/dtos/Place.ts +83 -83
  22. package/src/address/dtos/Shipping.ts +36 -36
  23. package/src/address/dtos/Timezone.ts +5 -5
  24. package/src/address/enums/AddressProvider.ts +10 -10
  25. package/src/address/enums/AddressStatus.ts +9 -9
  26. package/src/address/index.ts +12 -12
  27. package/src/app/enums/App.ts +10 -10
  28. package/src/app/index.ts +3 -3
  29. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  30. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  31. package/src/authentication/index.ts +3 -3
  32. package/src/card/dtos/CardActivateRequest.ts +12 -12
  33. package/src/card/dtos/CardApplicationRequest.ts +20 -20
  34. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  35. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -41
  36. package/src/card/dtos/CardCreateRequest.ts +141 -141
  37. package/src/card/dtos/CardResponse.ts +4 -4
  38. package/src/card/dtos/CardUpdateRequest.ts +13 -13
  39. package/src/card/enums/Brand.ts +7 -7
  40. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  41. package/src/card/enums/CardType.ts +4 -4
  42. package/src/card/enums/CardUpdateKey.ts +4 -4
  43. package/src/card/enums/IssuanceType.ts +5 -5
  44. package/src/card/enums/OwnershipType.ts +3 -3
  45. package/src/card/enums/Status.ts +5 -5
  46. package/src/card/enums/UpdateKey.ts +5 -5
  47. package/src/card/index.ts +19 -19
  48. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  49. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  50. package/src/country/enums/Country.ts +6 -6
  51. package/src/country/enums/CountryId.ts +6 -6
  52. package/src/country/index.ts +5 -5
  53. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  54. package/src/currency/index.ts +2 -2
  55. package/src/directory/dtos/DirectoryResponse.ts +17 -17
  56. package/src/directory/dtos/External.ts +6 -6
  57. package/src/directory/enums/Profile.ts +6 -6
  58. package/src/directory/enums/Scope.ts +7 -7
  59. package/src/directory/enums/Status.ts +8 -8
  60. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  61. package/src/directory/index.ts +7 -7
  62. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  63. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  64. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  65. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  66. package/src/exchangeRate/index.ts +8 -8
  67. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  68. package/src/group/dtos/GroupCreateRequest.ts +48 -48
  69. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  70. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  71. package/src/group/dtos/GroupResponse.ts +17 -17
  72. package/src/group/dtos/GroupUpdateRequest.ts +27 -27
  73. package/src/group/enums/GroupAction.ts +8 -8
  74. package/src/group/enums/GroupStatus.ts +6 -6
  75. package/src/group/enums/RelationStatus.ts +8 -8
  76. package/src/group/enums/RelationType.ts +9 -9
  77. package/src/group/index.ts +18 -18
  78. package/src/header/TokenPayload.ts +17 -16
  79. package/src/header/index.ts +3 -3
  80. package/src/helpers/ValidationUtils.ts +32 -32
  81. package/src/helpers/constans/regex.ts +12 -12
  82. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  83. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  84. package/src/identity/dtos/PeopleResponse.ts +80 -80
  85. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  86. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  87. package/src/identity/enums/SexDocument.ts +6 -6
  88. package/src/identity/index.ts +11 -11
  89. package/src/index.ts +20 -20
  90. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  91. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  92. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  93. package/src/notificationMessages/enums/NotificationId.ts +11 -0
  94. package/src/notificationMessages/index.ts +6 -3
  95. package/src/provider/enums/Provider.ts +5 -5
  96. package/src/provider/index.ts +1 -1
  97. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  98. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  99. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  100. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  101. package/src/sessionActivity/index.ts +2 -2
  102. package/.idea/aws.xml +0 -11
  103. package/.idea/fiado-type-kit.iml +0 -12
  104. package/.idea/modules.xml +0 -8
  105. package/.idea/vcs.xml +0 -6
@@ -1,27 +1,27 @@
1
- import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
2
- import { RelationType } from "../enums/RelationType";
3
- import { RelationStatus } from "../enums/RelationStatus";
4
- import { GroupAction } from "../enums/GroupAction";
5
-
6
- export class GroupAddDirectoryRequest {
7
- @IsNotEmpty()
8
- @IsString()
9
- @Length(3, 50)
10
- groupId: string;
11
-
12
- @ArrayNotEmpty()
13
- @IsUUID(4, { each: true })
14
- directoryIds: string[];
15
-
16
- @IsEnum(RelationType)
17
- @IsNotEmpty()
18
- relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
19
-
20
- @IsEnum(RelationStatus)
21
- @IsNotEmpty()
22
- status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
23
-
24
- @IsEnum(GroupAction)
25
- action: GroupAction;
26
-
27
- }
1
+ import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
2
+ import { RelationType } from "../enums/RelationType";
3
+ import { RelationStatus } from "../enums/RelationStatus";
4
+ import { GroupAction } from "../enums/GroupAction";
5
+
6
+ export class GroupAddDirectoryRequest {
7
+ @IsNotEmpty()
8
+ @IsString()
9
+ @Length(3, 50)
10
+ groupId: string;
11
+
12
+ @ArrayNotEmpty()
13
+ @IsUUID(4, { each: true })
14
+ directoryIds: string[];
15
+
16
+ @IsEnum(RelationType)
17
+ @IsNotEmpty()
18
+ relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
19
+
20
+ @IsEnum(RelationStatus)
21
+ @IsNotEmpty()
22
+ status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
23
+
24
+ @IsEnum(GroupAction)
25
+ action: GroupAction;
26
+
27
+ }
@@ -1,48 +1,48 @@
1
- import { IsEmail, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, Length } from "class-validator";
2
- import { Transform } from "class-transformer";
3
- import { GroupStatus } from "../enums/GroupStatus";
4
-
5
- export class GroupCreateRequest {
6
- @IsNotEmpty()
7
- @IsString()
8
- @Length(3, 50)
9
- id: string;
10
-
11
- @IsNotEmpty()
12
- @IsString()
13
- @Length(1, 50)
14
- name: string;
15
-
16
- @IsOptional()
17
- @IsString()
18
- @Length(0, 200)
19
- description: string;
20
-
21
- @IsOptional()
22
- @Transform(({ value }) => value ?? null)
23
- leaderEmail?: string | null;
24
-
25
- @IsOptional()
26
- @Transform(({ value }) => value ?? null)
27
- leaderDirectoryId?: string | null;
28
-
29
- @IsEnum(GroupStatus)
30
- status: GroupStatus;
31
-
32
- @IsOptional()
33
- @Length(0, 20)
34
- @Transform(({ value }) => value ?? null)
35
- codeToRefer: string | null;
36
-
37
- @IsOptional()
38
- @IsString()
39
- @Length(0, 100)
40
- @Transform(({ value }) => value ?? null)
41
- leaderNames?: string | null;
42
-
43
- @IsOptional()
44
- @IsString()
45
- @Length(0, 15)
46
- @Transform(({ value }) => value ?? null)
47
- phoneNumber?: string | null;
48
- }
1
+ import { IsEmail, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, Length } from "class-validator";
2
+ import { Transform } from "class-transformer";
3
+ import { GroupStatus } from "../enums/GroupStatus";
4
+
5
+ export class GroupCreateRequest {
6
+ @IsNotEmpty()
7
+ @IsString()
8
+ @Length(3, 50)
9
+ id: string;
10
+
11
+ @IsNotEmpty()
12
+ @IsString()
13
+ @Length(1, 50)
14
+ name: string;
15
+
16
+ @IsOptional()
17
+ @IsString()
18
+ @Length(0, 200)
19
+ description: string;
20
+
21
+ @IsOptional()
22
+ @Transform(({ value }) => value ?? null)
23
+ leaderEmail?: string | null;
24
+
25
+ @IsOptional()
26
+ @Transform(({ value }) => value ?? null)
27
+ leaderDirectoryId?: string | null;
28
+
29
+ @IsEnum(GroupStatus)
30
+ status: GroupStatus;
31
+
32
+ @IsOptional()
33
+ @Length(0, 20)
34
+ @Transform(({ value }) => value ?? null)
35
+ codeToRefer: string | null;
36
+
37
+ @IsOptional()
38
+ @IsString()
39
+ @Length(0, 100)
40
+ @Transform(({ value }) => value ?? null)
41
+ leaderNames?: string | null;
42
+
43
+ @IsOptional()
44
+ @IsString()
45
+ @Length(0, 15)
46
+ @Transform(({ value }) => value ?? null)
47
+ phoneNumber?: string | null;
48
+ }
@@ -1,21 +1,21 @@
1
- import { RelationStatus } from "../enums/RelationStatus"
2
- import { RelationType } from "../enums/RelationType"
3
-
4
-
5
-
6
- export class GroupDirectoryRelationsResponse {
7
-
8
- PK: string
9
- SK: string
10
- directoryId: string
11
- groupId: string
12
- relationType: RelationType
13
- status: RelationStatus
14
- agent: string
15
- createdAt: string
16
- updatedAt: string
17
- phoneNumber: string
18
- operationId: string
19
- indexName: string
20
-
1
+ import { RelationStatus } from "../enums/RelationStatus"
2
+ import { RelationType } from "../enums/RelationType"
3
+
4
+
5
+
6
+ export class GroupDirectoryRelationsResponse {
7
+
8
+ PK: string
9
+ SK: string
10
+ directoryId: string
11
+ groupId: string
12
+ relationType: RelationType
13
+ status: RelationStatus
14
+ agent: string
15
+ createdAt: string
16
+ updatedAt: string
17
+ phoneNumber: string
18
+ operationId: string
19
+ indexName: string
20
+
21
21
  }
@@ -1,11 +1,11 @@
1
- import { IsOptional, IsString, Length } from "class-validator";
2
-
3
-
4
- export class GroupDirectoryRelationsUpdateRequest {
5
-
6
- @IsOptional()
7
- @IsString()
8
- @Length(1, 20)
9
- agent: string
10
-
1
+ import { IsOptional, IsString, Length } from "class-validator";
2
+
3
+
4
+ export class GroupDirectoryRelationsUpdateRequest {
5
+
6
+ @IsOptional()
7
+ @IsString()
8
+ @Length(1, 20)
9
+ agent: string
10
+
11
11
  }
@@ -1,17 +1,17 @@
1
- import { GroupStatus } from "../enums/GroupStatus"
2
-
3
-
4
- export class GroupResponse {
5
-
6
- id: string
7
- name: string
8
- description: string
9
- status: GroupStatus
10
- leaderNames: string | null
11
- phoneNumber: string | null
12
- leaderEmail: string | null
13
- leaderDirectoryId: string | null
14
- codesToRefer: string
15
- }
16
-
17
-
1
+ import { GroupStatus } from "../enums/GroupStatus"
2
+
3
+
4
+ export class GroupResponse {
5
+
6
+ id: string
7
+ name: string
8
+ description: string
9
+ status: GroupStatus
10
+ leaderNames: string | null
11
+ phoneNumber: string | null
12
+ leaderEmail: string | null
13
+ leaderDirectoryId: string | null
14
+ codesToRefer: string
15
+ }
16
+
17
+
@@ -1,27 +1,27 @@
1
- import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
2
- import { GroupStatus } from "../enums/GroupStatus";
3
-
4
- export class GroupUpdateRequest {
5
-
6
- @IsOptional()
7
- @IsString()
8
- @Length(1, 50)
9
- name: string;
10
-
11
- @IsOptional()
12
- @IsString()
13
- @Length(1, 200)
14
- description: string;
15
-
16
- @IsOptional()
17
- @IsEmail()
18
- leader: string
19
-
20
- @IsOptional()
21
- @IsEnum(GroupStatus)
22
- status: GroupStatus
23
-
24
- @IsOptional()
25
- @Length(3, 20)
26
- codeToRefer: string;
27
- }
1
+ import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
2
+ import { GroupStatus } from "../enums/GroupStatus";
3
+
4
+ export class GroupUpdateRequest {
5
+
6
+ @IsOptional()
7
+ @IsString()
8
+ @Length(1, 50)
9
+ name: string;
10
+
11
+ @IsOptional()
12
+ @IsString()
13
+ @Length(1, 200)
14
+ description: string;
15
+
16
+ @IsOptional()
17
+ @IsEmail()
18
+ leader: string
19
+
20
+ @IsOptional()
21
+ @IsEnum(GroupStatus)
22
+ status: GroupStatus
23
+
24
+ @IsOptional()
25
+ @Length(3, 20)
26
+ codeToRefer: string;
27
+ }
@@ -1,8 +1,8 @@
1
-
2
-
3
-
4
- export enum GroupAction {
5
-
6
- ADD='ADD',
7
- REMOVE='REMOVE'
8
- }
1
+
2
+
3
+
4
+ export enum GroupAction {
5
+
6
+ ADD='ADD',
7
+ REMOVE='REMOVE'
8
+ }
@@ -1,7 +1,7 @@
1
-
2
-
3
-
4
- export enum GroupStatus {
5
- ACTIVE = 'ACTIVE',
6
- INACTIVE = 'INACTIVE',
1
+
2
+
3
+
4
+ export enum GroupStatus {
5
+ ACTIVE = 'ACTIVE',
6
+ INACTIVE = 'INACTIVE',
7
7
  }
@@ -1,9 +1,9 @@
1
-
2
-
3
-
4
- export enum RelationStatus {
5
-
6
- ACTIVE = 'ACTIVE',
7
- INACTIVE = 'INACTIVE',
8
- PENDING = 'PENDING',
1
+
2
+
3
+
4
+ export enum RelationStatus {
5
+
6
+ ACTIVE = 'ACTIVE',
7
+ INACTIVE = 'INACTIVE',
8
+ PENDING = 'PENDING',
9
9
  }
@@ -1,10 +1,10 @@
1
-
2
-
3
-
4
- export enum RelationType {
5
-
6
- MEMBER = 'MEMBER',
7
- OWNER = 'OWNER',
8
- AFFILIATE = 'AFFILIATE',
9
-
1
+
2
+
3
+
4
+ export enum RelationType {
5
+
6
+ MEMBER = 'MEMBER',
7
+ OWNER = 'OWNER',
8
+ AFFILIATE = 'AFFILIATE',
9
+
10
10
  }
@@ -1,18 +1,18 @@
1
-
2
-
3
- //dtos
4
- export * from './dtos/GroupResponse';
5
- export * from './dtos/GroupCreateRequest';
6
- export * from './dtos/GroupDirectoryRelationsResponse';
7
- export * from './dtos/GroupUpdateRequest';
8
- export * from './dtos/GroupAddDirectoryRequest';
9
- export * from './dtos/GroupDirectoryRelationsUpdateRequest';
10
-
11
-
12
- //enums
13
- export * from './enums/GroupStatus';
14
- export * from './enums/RelationType';
15
- export * from './enums/RelationStatus';
16
- export * from './enums/GroupAction';
17
-
18
-
1
+
2
+
3
+ //dtos
4
+ export * from './dtos/GroupResponse';
5
+ export * from './dtos/GroupCreateRequest';
6
+ export * from './dtos/GroupDirectoryRelationsResponse';
7
+ export * from './dtos/GroupUpdateRequest';
8
+ export * from './dtos/GroupAddDirectoryRequest';
9
+ export * from './dtos/GroupDirectoryRelationsUpdateRequest';
10
+
11
+
12
+ //enums
13
+ export * from './enums/GroupStatus';
14
+ export * from './enums/RelationType';
15
+ export * from './enums/RelationStatus';
16
+ export * from './enums/GroupAction';
17
+
18
+
@@ -1,16 +1,17 @@
1
- import { TypeOfDirectoryId } from "../directory";
2
- import { Status } from "../directory/enums/Status";
3
-
4
- export interface TokenPayload {
5
- directoryId: string;
6
- typeOfDirectoryId: TypeOfDirectoryId;
7
- sub: string;
8
- app: string;
9
- issuer: string;
10
- scope: string;
11
- phoneNumber?: string | null;
12
- status: Status | null;
13
- id: string;
14
- profileId?: string | null;
15
- email?: string | null;
16
- }
1
+ import { TypeOfDirectoryId } from "../directory";
2
+ import { Status } from "../directory/enums/Status";
3
+
4
+ export interface TokenPayload {
5
+ directoryId: string;
6
+ typeOfDirectoryId: TypeOfDirectoryId;
7
+ sub: string;
8
+ app: string;
9
+ issuer: string;
10
+ scope: string;
11
+ phoneNumber?: string | null;
12
+ status: Status | null;
13
+ id: string;
14
+ profileId?: string | null;
15
+ email?: string | null;
16
+ event_id?: string
17
+ }
@@ -1,3 +1,3 @@
1
-
2
-
3
- export * from './TokenPayload'
1
+
2
+
3
+ export * from './TokenPayload'
@@ -1,32 +1,32 @@
1
- import { regexIso8601, regexUuidV4 } from "./constans/regex";
2
-
3
-
4
- export class ValidationUtils {
5
-
6
- // Método estático para validar UUID v4
7
- public static validateUuidV4(value: any) {
8
- if (value === null) return true;
9
- return regexUuidV4.test(value);
10
- }
11
-
12
- // Método estático para validar la longitud de una cadena
13
- public static validateStringLength(minLength: number, maxLength: number) {
14
- return (value: string) => {
15
- if (value === null) return true;
16
- return value.length >= minLength && value.length <= maxLength;
17
- };
18
- }
19
-
20
- // Método estático para validar el formato de fecha ISO 8601
21
- public static validateIso8601(value: string) {
22
- if (value === null) return true;
23
- return regexIso8601.test(value);
24
- }
25
-
26
- public static validateNumberRange(minValue: number, maxValue: number) {
27
- return (value: number | null): boolean => {
28
- if (value === null) return true;
29
- return value >= minValue && value <= maxValue;
30
- };
31
- }
32
- }
1
+ import { regexIso8601, regexUuidV4 } from "./constans/regex";
2
+
3
+
4
+ export class ValidationUtils {
5
+
6
+ // Método estático para validar UUID v4
7
+ public static validateUuidV4(value: any) {
8
+ if (value === null) return true;
9
+ return regexUuidV4.test(value);
10
+ }
11
+
12
+ // Método estático para validar la longitud de una cadena
13
+ public static validateStringLength(minLength: number, maxLength: number) {
14
+ return (value: string) => {
15
+ if (value === null) return true;
16
+ return value.length >= minLength && value.length <= maxLength;
17
+ };
18
+ }
19
+
20
+ // Método estático para validar el formato de fecha ISO 8601
21
+ public static validateIso8601(value: string) {
22
+ if (value === null) return true;
23
+ return regexIso8601.test(value);
24
+ }
25
+
26
+ public static validateNumberRange(minValue: number, maxValue: number) {
27
+ return (value: number | null): boolean => {
28
+ if (value === null) return true;
29
+ return value >= minValue && value <= maxValue;
30
+ };
31
+ }
32
+ }
@@ -1,12 +1,12 @@
1
-
2
-
3
- // Expresión regular para validar UUID v4
4
- export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
5
- // Expresión regular para validar fecha ISO 8601
6
- export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
7
- // Expresión regular para validar un número de teléfono
8
- export const regexPhoneNumber = /^\+\d{12}$/;
9
-
10
-
11
-
12
-
1
+
2
+
3
+ // Expresión regular para validar UUID v4
4
+ export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
5
+ // Expresión regular para validar fecha ISO 8601
6
+ export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
7
+ // Expresión regular para validar un número de teléfono
8
+ export const regexPhoneNumber = /^\+\d{12}$/;
9
+
10
+
11
+
12
+
@@ -1,25 +1,25 @@
1
- import { Country } from "../../country/enums/Country";
2
- import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
- import { SexDocument } from "../enums/SexDocument";
4
-
5
-
6
- export class IdentificationDocument {
7
-
8
- frontImageName: string | null;
9
- backImageName: string | null;
10
- countryId: Country | null;
11
- expirationDate: string | null;
12
- issueDate: string | null;
13
- lastNameFirst: string | null;
14
- lastNameSecond: string | null;
15
- names: string | null;
16
- fullName: string | null;
17
- countryOfBirth: string | null;
18
- dateOfBirth: string | null;
19
- documentNumber: string | null;
20
- typeOfDocument: string;
21
- sex: SexDocument | null;
22
- verificationId: string | null;
23
- curp: string | null;
24
- status: IdentificationDocumentStatus;
1
+ import { Country } from "../../country/enums/Country";
2
+ import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
+ import { SexDocument } from "../enums/SexDocument";
4
+
5
+
6
+ export class IdentificationDocument {
7
+
8
+ frontImageName: string | null;
9
+ backImageName: string | null;
10
+ countryId: Country | null;
11
+ expirationDate: string | null;
12
+ issueDate: string | null;
13
+ lastNameFirst: string | null;
14
+ lastNameSecond: string | null;
15
+ names: string | null;
16
+ fullName: string | null;
17
+ countryOfBirth: string | null;
18
+ dateOfBirth: string | null;
19
+ documentNumber: string | null;
20
+ typeOfDocument: string;
21
+ sex: SexDocument | null;
22
+ verificationId: string | null;
23
+ curp: string | null;
24
+ status: IdentificationDocumentStatus;
25
25
  }
@@ -1,5 +1,5 @@
1
-
2
-
3
- export class PeopleCreateRequest {
4
-
1
+
2
+
3
+ export class PeopleCreateRequest {
4
+
5
5
  }