@fiado/type-kit 1.0.37 → 1.0.39

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 (116) hide show
  1. package/.idea/aws.xml +11 -0
  2. package/.idea/fiado-type-kit.iml +12 -0
  3. package/.idea/modules.xml +8 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/README.md +70 -70
  6. package/bin/card/dtos/CardUpdateRequest.js +1 -2
  7. package/bin/index.d.ts +2 -0
  8. package/bin/index.js +3 -1
  9. package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.d.ts +6 -0
  10. package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.js +6 -0
  11. package/bin/notificationMessages/dtos/QueueMessageDestination.d.ts +6 -0
  12. package/bin/notificationMessages/dtos/QueueMessageDestination.js +6 -0
  13. package/bin/notificationMessages/dtos/QueueMessageVariableValues.d.ts +4 -0
  14. package/bin/notificationMessages/dtos/QueueMessageVariableValues.js +6 -0
  15. package/bin/notificationMessages/index.d.ts +3 -0
  16. package/bin/notificationMessages/index.js +19 -0
  17. package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.d.ts +10 -0
  18. package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.js +6 -0
  19. package/bin/sessionActivity/enums/SessionActivityActionEnum.d.ts +7 -0
  20. package/bin/sessionActivity/enums/SessionActivityActionEnum.js +11 -0
  21. package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.d.ts +4 -0
  22. package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.js +8 -0
  23. package/bin/sessionActivity/index.d.ts +3 -0
  24. package/bin/sessionActivity/index.js +19 -0
  25. package/package.json +23 -23
  26. package/src/account/dtos/AccountCreateRequest.ts +44 -44
  27. package/src/account/dtos/AccountCreateResponse.ts +5 -5
  28. package/src/account/dtos/AccountResponse.ts +26 -26
  29. package/src/account/dtos/PocketCreateRequest.ts +18 -18
  30. package/src/account/dtos/PocketCreateResponse.ts +4 -4
  31. package/src/account/enums/AccountStatus.ts +6 -6
  32. package/src/account/index.ts +16 -16
  33. package/src/address/dtos/AddressBase.ts +130 -130
  34. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  35. package/src/address/dtos/AddressResponse.ts +41 -41
  36. package/src/address/dtos/Geometry.ts +4 -4
  37. package/src/address/dtos/Place.ts +83 -83
  38. package/src/address/dtos/Shipping.ts +36 -36
  39. package/src/address/dtos/Timezone.ts +5 -5
  40. package/src/address/enums/AddressProvider.ts +10 -10
  41. package/src/address/enums/AddressStatus.ts +9 -9
  42. package/src/address/index.ts +12 -12
  43. package/src/app/enums/App.ts +10 -10
  44. package/src/app/index.ts +3 -3
  45. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  46. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  47. package/src/authentication/index.ts +3 -3
  48. package/src/card/dtos/CardActivateRequest.ts +12 -12
  49. package/src/card/dtos/CardApplicationRequest.ts +20 -20
  50. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  51. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -41
  52. package/src/card/dtos/CardCreateRequest.ts +141 -141
  53. package/src/card/dtos/CardResponse.ts +4 -4
  54. package/src/card/dtos/CardUpdateRequest.ts +13 -15
  55. package/src/card/enums/Brand.ts +7 -7
  56. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  57. package/src/card/enums/CardType.ts +4 -4
  58. package/src/card/enums/CardUpdateKey.ts +4 -4
  59. package/src/card/enums/IssuanceType.ts +5 -5
  60. package/src/card/enums/OwnershipType.ts +3 -3
  61. package/src/card/enums/Status.ts +5 -5
  62. package/src/card/enums/UpdateKey.ts +5 -5
  63. package/src/card/index.ts +19 -19
  64. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  65. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  66. package/src/country/enums/Country.ts +6 -6
  67. package/src/country/enums/CountryId.ts +6 -6
  68. package/src/country/index.ts +5 -5
  69. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  70. package/src/currency/index.ts +2 -2
  71. package/src/directory/dtos/DirectoryResponse.ts +17 -17
  72. package/src/directory/dtos/External.ts +6 -6
  73. package/src/directory/enums/Profile.ts +6 -6
  74. package/src/directory/enums/Scope.ts +7 -7
  75. package/src/directory/enums/Status.ts +8 -8
  76. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  77. package/src/directory/index.ts +7 -7
  78. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  79. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  80. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  81. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  82. package/src/exchangeRate/index.ts +8 -8
  83. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  84. package/src/group/dtos/GroupCreateRequest.ts +48 -48
  85. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  86. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  87. package/src/group/dtos/GroupResponse.ts +17 -17
  88. package/src/group/dtos/GroupUpdateRequest.ts +27 -27
  89. package/src/group/enums/GroupAction.ts +8 -8
  90. package/src/group/enums/GroupStatus.ts +6 -6
  91. package/src/group/enums/RelationStatus.ts +8 -8
  92. package/src/group/enums/RelationType.ts +9 -9
  93. package/src/group/index.ts +18 -18
  94. package/src/header/TokenPayload.ts +16 -16
  95. package/src/header/index.ts +3 -3
  96. package/src/helpers/ValidationUtils.ts +32 -32
  97. package/src/helpers/constans/regex.ts +12 -12
  98. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  99. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  100. package/src/identity/dtos/PeopleResponse.ts +80 -80
  101. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  102. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  103. package/src/identity/enums/SexDocument.ts +6 -6
  104. package/src/identity/index.ts +11 -11
  105. package/src/index.ts +20 -20
  106. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -0
  107. package/src/notificationMessages/dtos/QueueMessageDestination.ts +7 -0
  108. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +4 -0
  109. package/src/notificationMessages/index.ts +3 -0
  110. package/src/provider/enums/Provider.ts +5 -5
  111. package/src/provider/index.ts +1 -1
  112. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  113. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +11 -0
  114. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -0
  115. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -0
  116. package/src/sessionActivity/index.ts +3 -0
@@ -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
  }
@@ -1,80 +1,80 @@
1
-
2
- import { App } from '../../app/enums/App';
3
- import { SexDocument } from '../enums/SexDocument';
4
- import { IdentificationDocument } from './IdentificationDocument';
5
-
6
-
7
- export class PeopleResponse {
8
-
9
- id: string;
10
- createDate: string;
11
- lastUpdateDate: string;
12
- creationMethod: App;
13
- indexName: string;
14
- preferredName: string;
15
- usSuffix: string | null;
16
- usLastNames: string | null;
17
- usNames: string | null;
18
- latNames: string | null;
19
- latLastNamePaternal: string | null;
20
- latLastNameMaternal: string | null;
21
- aliasNames: string[] | null;
22
- preferredPronoun: string | null;
23
- SSN_ITIN: string | null;
24
- rfc: string | null;
25
- curp: string | null;
26
- passportNumber: string | null;
27
- countryOfPassport: string | null;
28
- documents: IdentificationDocument[] | null;
29
- countryOfBirth: string | null;
30
- dateOfBirth: string | null;
31
- stateOfBirth: string | null;
32
- nationalities: string[] | null;
33
- docSex: SexDocument | null;
34
- internalEmail: string | null;
35
- occupation: string | null;
36
- incomeSource: string | null;
37
- operationId: string | null;
38
- tenantId: string | null;
39
- photoOfpersonImageName: string | null;
40
- videoOfPersonImageName: string | null;
41
- USA_DebitAccount: boolean;
42
- MEX_DebitAccount: boolean;
43
- MEX_CreditClient: boolean;
44
- MEX_CreditAdditional: boolean;
45
- magicNumber: boolean;
46
- USA_UploadDocument: boolean;
47
- MEX_UploadDocument: boolean;
48
- videoSelfieVerified: boolean;
49
- MEX_ValidDocument: string;
50
- USA_ValidDocument: string;
51
- USA_FacematchVerified: boolean | null;
52
- MEX_FacematchVerified: boolean | null;
53
- fiadoListApproved: boolean | null;
54
- ofacListApproved: boolean | null;
55
- cnbvListApproved: boolean | null;
56
- blackListApproved: boolean | null;
57
- whiteList: boolean | null;
58
- hasOwner: boolean;
59
- older18: boolean | null;
60
- USA_Address: boolean;
61
- MEX_Address: boolean;
62
- COL_Address: boolean;
63
- GTM_Address: boolean;
64
- HND_Address: boolean;
65
- CRI_Address: boolean;
66
- PER_Address: boolean;
67
- MEX_ProofAddress: boolean;
68
- MEX_SendWish: boolean;
69
- COL_SendWish: boolean;
70
- GTM_SendWish: boolean;
71
- HND_SendWish: boolean;
72
- CRI_SendWish: boolean;
73
- PER_SendWish: boolean;
74
- USA_DebitAccountWish: boolean;
75
- MEX_DebitAccountWish: boolean;
76
- MEX_CreditAdditionalWish: boolean;
77
- MEX_CreditClientWish: boolean;
78
- SSN_ITINRequired: boolean | null;
79
-
80
- }
1
+
2
+ import { App } from '../../app/enums/App';
3
+ import { SexDocument } from '../enums/SexDocument';
4
+ import { IdentificationDocument } from './IdentificationDocument';
5
+
6
+
7
+ export class PeopleResponse {
8
+
9
+ id: string;
10
+ createDate: string;
11
+ lastUpdateDate: string;
12
+ creationMethod: App;
13
+ indexName: string;
14
+ preferredName: string;
15
+ usSuffix: string | null;
16
+ usLastNames: string | null;
17
+ usNames: string | null;
18
+ latNames: string | null;
19
+ latLastNamePaternal: string | null;
20
+ latLastNameMaternal: string | null;
21
+ aliasNames: string[] | null;
22
+ preferredPronoun: string | null;
23
+ SSN_ITIN: string | null;
24
+ rfc: string | null;
25
+ curp: string | null;
26
+ passportNumber: string | null;
27
+ countryOfPassport: string | null;
28
+ documents: IdentificationDocument[] | null;
29
+ countryOfBirth: string | null;
30
+ dateOfBirth: string | null;
31
+ stateOfBirth: string | null;
32
+ nationalities: string[] | null;
33
+ docSex: SexDocument | null;
34
+ internalEmail: string | null;
35
+ occupation: string | null;
36
+ incomeSource: string | null;
37
+ operationId: string | null;
38
+ tenantId: string | null;
39
+ photoOfpersonImageName: string | null;
40
+ videoOfPersonImageName: string | null;
41
+ USA_DebitAccount: boolean;
42
+ MEX_DebitAccount: boolean;
43
+ MEX_CreditClient: boolean;
44
+ MEX_CreditAdditional: boolean;
45
+ magicNumber: boolean;
46
+ USA_UploadDocument: boolean;
47
+ MEX_UploadDocument: boolean;
48
+ videoSelfieVerified: boolean;
49
+ MEX_ValidDocument: string;
50
+ USA_ValidDocument: string;
51
+ USA_FacematchVerified: boolean | null;
52
+ MEX_FacematchVerified: boolean | null;
53
+ fiadoListApproved: boolean | null;
54
+ ofacListApproved: boolean | null;
55
+ cnbvListApproved: boolean | null;
56
+ blackListApproved: boolean | null;
57
+ whiteList: boolean | null;
58
+ hasOwner: boolean;
59
+ older18: boolean | null;
60
+ USA_Address: boolean;
61
+ MEX_Address: boolean;
62
+ COL_Address: boolean;
63
+ GTM_Address: boolean;
64
+ HND_Address: boolean;
65
+ CRI_Address: boolean;
66
+ PER_Address: boolean;
67
+ MEX_ProofAddress: boolean;
68
+ MEX_SendWish: boolean;
69
+ COL_SendWish: boolean;
70
+ GTM_SendWish: boolean;
71
+ HND_SendWish: boolean;
72
+ CRI_SendWish: boolean;
73
+ PER_SendWish: boolean;
74
+ USA_DebitAccountWish: boolean;
75
+ MEX_DebitAccountWish: boolean;
76
+ MEX_CreditAdditionalWish: boolean;
77
+ MEX_CreditClientWish: boolean;
78
+ SSN_ITINRequired: boolean | null;
79
+
80
+ }
@@ -1,12 +1,12 @@
1
-
2
-
3
- export class TypeOfDocument {
4
- id: string;
5
- countryId: string;
6
- isEnabled: boolean;
7
- name: string;
8
- side: number;
9
- order: number;
10
- subtype: string;
11
- type: string;
1
+
2
+
3
+ export class TypeOfDocument {
4
+ id: string;
5
+ countryId: string;
6
+ isEnabled: boolean;
7
+ name: string;
8
+ side: number;
9
+ order: number;
10
+ subtype: string;
11
+ type: string;
12
12
  }
@@ -1,7 +1,7 @@
1
-
2
-
3
- export enum IdentificationDocumentStatus {
4
- VERIFIED = "VERIFIED",
5
- REJECTED = "REJECTED",
6
- UNVERIFIED = "UNVERIFIED"
7
- }
1
+
2
+
3
+ export enum IdentificationDocumentStatus {
4
+ VERIFIED = "VERIFIED",
5
+ REJECTED = "REJECTED",
6
+ UNVERIFIED = "UNVERIFIED"
7
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum SexDocument {
4
- M = "M",
5
- F = "F"
6
- }
1
+
2
+
3
+ export enum SexDocument {
4
+ M = "M",
5
+ F = "F"
6
+ }
@@ -1,11 +1,11 @@
1
-
2
- //dtos
3
- export * from './dtos/IdentificationDocument'
4
- export * from './dtos/PeopleCreateRequest';
5
- export * from './dtos/PeopleResponse';
6
- export * from './dtos/TypeOfDocument';
7
-
8
- //enums
9
- export * from './enums/IdentificationDocumentStatus';
10
- export * from './enums/SexDocument';
11
-
1
+
2
+ //dtos
3
+ export * from './dtos/IdentificationDocument'
4
+ export * from './dtos/PeopleCreateRequest';
5
+ export * from './dtos/PeopleResponse';
6
+ export * from './dtos/TypeOfDocument';
7
+
8
+ //enums
9
+ export * from './enums/IdentificationDocumentStatus';
10
+ export * from './enums/SexDocument';
11
+
package/src/index.ts CHANGED
@@ -1,20 +1,20 @@
1
-
2
-
3
- export * as Account from './account';
4
- export * as Address from './address';
5
- export * as App from './app';
6
- export * as Authentication from './authentication';
7
- export * as Card from './card';
8
- export * as Country from './country';
9
- export * as Currency from './currency';
10
- export * as Directory from './directory';
11
- export * as ExchangeRate from './exchangeRate';
12
- export * as File from './identity';
13
- export * as Group from './group';
14
- export * as Identity from './provider';
15
- export * as Header from './header';
16
- export * as ServicePayment from './servicePayment';
17
-
18
-
19
-
20
-
1
+ export * as Account from './account';
2
+ export * as Address from './address';
3
+ export * as App from './app';
4
+ export * as Authentication from './authentication';
5
+ export * as Card from './card';
6
+ export * as Country from './country';
7
+ export * as Currency from './currency';
8
+ export * as Directory from './directory';
9
+ export * as ExchangeRate from './exchangeRate';
10
+ export * as File from './identity';
11
+ export * as Group from './group';
12
+ export * as Identity from './provider';
13
+ export * as Header from './header';
14
+ export * as ServicePayment from './servicePayment';
15
+ export * as NotificationMessages from './notificationMessages';
16
+ export * as SessionActivity from './sessionActivity';
17
+
18
+
19
+
20
+
@@ -0,0 +1,7 @@
1
+ import {QueueMessageDestination} from "./QueueMessageDestination";
2
+
3
+ export class NotificationQueueMessageRequest {
4
+ templateId: string;
5
+ destinations: QueueMessageDestination[];
6
+ data?: any;
7
+ }
@@ -0,0 +1,7 @@
1
+ import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
2
+
3
+ export class QueueMessageDestination {
4
+ directoryId: string;
5
+ templateVariables?: QueueMessageVariableValues[];
6
+ data?: any;
7
+ }
@@ -0,0 +1,4 @@
1
+ export class QueueMessageVariableValues {
2
+ key: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export * from './dtos/NotificationQueueMessageRequest';
2
+ export * from './dtos/QueueMessageDestination';
3
+ export * from './dtos/QueueMessageVariableValues';
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum Provider {
4
- TERN = 'TERN',
5
- POMELO = 'POMELO'
1
+
2
+
3
+ export enum Provider {
4
+ TERN = 'TERN',
5
+ POMELO = 'POMELO'
6
6
  }
@@ -1,2 +1,2 @@
1
-
1
+
2
2
  export * from './enums/Provider';
@@ -1,33 +1,33 @@
1
-
2
-
3
- import { IsNotEmpty, Length, Min } from 'class-validator';
4
-
5
-
6
- export class ServicePaymentRequest {
7
-
8
- @IsNotEmpty()
9
- @Length(1, 50)
10
- serviceId: string;
11
-
12
- @IsNotEmpty()
13
- @Length(1, 100)
14
- directoryId: string;
15
-
16
- @IsNotEmpty()
17
- @Length(1, 100)
18
- reference: string;
19
-
20
- @IsNotEmpty()
21
- @Length(1, 50)
22
- productId: string;
23
-
24
- @IsNotEmpty()
25
- @Min(0.01)
26
- amount: number;
27
-
28
- @IsNotEmpty()
29
- @Length(1, 50)
30
- transactionNumber: string;
31
- }
32
-
33
-
1
+
2
+
3
+ import { IsNotEmpty, Length, Min } from 'class-validator';
4
+
5
+
6
+ export class ServicePaymentRequest {
7
+
8
+ @IsNotEmpty()
9
+ @Length(1, 50)
10
+ serviceId: string;
11
+
12
+ @IsNotEmpty()
13
+ @Length(1, 100)
14
+ directoryId: string;
15
+
16
+ @IsNotEmpty()
17
+ @Length(1, 100)
18
+ reference: string;
19
+
20
+ @IsNotEmpty()
21
+ @Length(1, 50)
22
+ productId: string;
23
+
24
+ @IsNotEmpty()
25
+ @Min(0.01)
26
+ amount: number;
27
+
28
+ @IsNotEmpty()
29
+ @Length(1, 50)
30
+ transactionNumber: string;
31
+ }
32
+
33
+
@@ -0,0 +1,11 @@
1
+ import {SessionActivityActionEnum} from "../enums/SessionActivityActionEnum";
2
+ import {SessionActivityActionOriginEnum} from "../enums/SessionActivityActionOriginEnum";
3
+
4
+ export class SessionActivityQueueMessageRequest {
5
+ id: string; // requestId de la peticion
6
+ sessionId: string; // Id de la sesion que realizo el request
7
+ operationName: string; // nombre de la operacion asociada al request
8
+ source: string; // Tabla|lambda|componente desde donde vino el mensaje
9
+ action: SessionActivityActionEnum; // Accion realizada
10
+ actionOrigin: SessionActivityActionOriginEnum; // Si la peticion fue realizada desde la APP o backoffice
11
+ }
@@ -0,0 +1,7 @@
1
+ export enum SessionActivityActionEnum {
2
+ "QUERY" = "QUERY",
3
+ "CREATE" = "CREATE",
4
+ "UPDATE" = "UPDATE",
5
+ "LOGIC_DELETE" = "LOGIC_DELETE",
6
+ "DELETE" = "DELETE"
7
+ }
@@ -0,0 +1,4 @@
1
+ export enum SessionActivityActionOriginEnum {
2
+ MOBILE_APP = "MOBILE_APP",
3
+ BACKOFFICE = "BACKOFFICE"
4
+ }
@@ -0,0 +1,3 @@
1
+ export * from './dtos/SessionActivityQueueMessageRequest';
2
+ export * from './enums/SessionActivityActionEnum';
3
+ export * from './enums/SessionActivityActionOriginEnum';