@fiado/type-kit 1.0.5 → 1.0.7

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 (107) hide show
  1. package/README.md +36 -1
  2. package/bin/account/dtos/AccountCreateRequest.d.ts +14 -0
  3. package/bin/account/dtos/AccountCreateRequest.js +65 -0
  4. package/bin/account/dtos/AccountResponse.js +0 -79
  5. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  6. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  7. package/bin/account/index.d.ts +4 -0
  8. package/bin/account/index.js +22 -0
  9. package/bin/address/dtos/AddressCreateRequest.d.ts +3 -0
  10. package/bin/address/dtos/AddressCreateRequest.js +7 -0
  11. package/bin/address/index.d.ts +7 -0
  12. package/bin/address/index.js +9 -0
  13. package/bin/app/enums/App.d.ts +9 -0
  14. package/bin/app/enums/App.js +13 -0
  15. package/bin/authentication/dtos/SignUpAdditionalRequest.d.ts +7 -0
  16. package/bin/authentication/dtos/SignUpAdditionalRequest.js +46 -0
  17. package/bin/authentication/dtos/SignUpAdditionalResponse.d.ts +4 -0
  18. package/bin/authentication/dtos/SignUpAdditionalResponse.js +6 -0
  19. package/bin/authentication/index.d.ts +1 -0
  20. package/bin/authentication/index.js +28 -0
  21. package/bin/card/dtos/CardBalanceResponse.d.ts +9 -0
  22. package/bin/card/dtos/CardBalanceResponse.js +6 -0
  23. package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +10 -0
  24. package/bin/card/dtos/CardCreateAdditionalRequest.js +59 -0
  25. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  26. package/bin/card/dtos/CardCreateRequest.js +176 -0
  27. package/bin/card/dtos/CardResponse.js +0 -0
  28. package/bin/card/index.d.ts +13 -0
  29. package/bin/card/index.js +10 -4
  30. package/bin/country/index.d.ts +1 -0
  31. package/bin/country/index.js +3 -0
  32. package/bin/currency/dtos/CurrencyResponse.d.ts +6 -0
  33. package/bin/currency/dtos/CurrencyResponse.js +6 -0
  34. package/bin/directory/dtos/DirectoryResponse.d.ts +16 -0
  35. package/bin/directory/dtos/DirectoryResponse.js +2 -0
  36. package/bin/directory/dtos/External.d.ts +5 -0
  37. package/bin/directory/dtos/External.js +2 -0
  38. package/bin/directory/enums/Profile.d.ts +5 -0
  39. package/bin/directory/enums/Profile.js +9 -0
  40. package/bin/directory/enums/Scope.d.ts +6 -0
  41. package/bin/directory/enums/Scope.js +10 -0
  42. package/bin/directory/enums/Status.d.ts +6 -0
  43. package/bin/directory/enums/Status.js +10 -0
  44. package/bin/directory/index.d.ts +1 -0
  45. package/bin/directory/index.js +19 -0
  46. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.d.ts +17 -0
  47. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.js +74 -0
  48. package/bin/exchangeRate/dtos/ExchangeRateResponse.d.ts +18 -0
  49. package/bin/exchangeRate/dtos/ExchangeRateResponse.js +6 -0
  50. package/bin/exchangeRate/enums/ExchangeRateStatus.d.ts +4 -0
  51. package/bin/exchangeRate/enums/ExchangeRateStatus.js +8 -0
  52. package/bin/exchangeRate/index.d.ts +2 -0
  53. package/bin/exchangeRate/index.js +20 -0
  54. package/bin/identity/dtos/IdentificationDocument.d.ts +22 -0
  55. package/bin/identity/dtos/IdentificationDocument.js +6 -0
  56. package/bin/identity/dtos/PeopleCreateRequest.d.ts +0 -0
  57. package/bin/identity/dtos/PeopleCreateRequest.js +0 -0
  58. package/bin/identity/dtos/PeopleResponse.d.ts +75 -0
  59. package/bin/identity/dtos/PeopleResponse.js +6 -0
  60. package/bin/identity/dtos/TypeOfDocument.d.ts +10 -0
  61. package/bin/identity/dtos/TypeOfDocument.js +6 -0
  62. package/bin/identity/enums/IdentificationDocumentStatus.d.ts +5 -0
  63. package/bin/identity/enums/IdentificationDocumentStatus.js +9 -0
  64. package/bin/identity/enums/SexDocument.d.ts +4 -0
  65. package/bin/identity/enums/SexDocument.js +8 -0
  66. package/bin/identity/index.d.ts +0 -0
  67. package/bin/identity/index.js +0 -0
  68. package/bin/index.d.ts +6 -15
  69. package/bin/index.js +18 -17
  70. package/package.json +1 -1
  71. package/src/account/dtos/{CreateAccountRequest.ts → AccountCreateRequest.ts} +1 -1
  72. package/src/account/dtos/AccountResponse.ts +2 -36
  73. package/src/account/dtos/{CreatePockeRequest.ts → PocketCreateRequest.ts} +1 -1
  74. package/src/account/index.ts +11 -0
  75. package/src/address/dtos/AddressCreateRequest.ts +7 -0
  76. package/src/address/index.ts +11 -0
  77. package/src/app/enums/App.ts +11 -0
  78. package/src/authentication/dtos/SignUpAdditionalRequest.ts +34 -0
  79. package/src/authentication/dtos/SignUpAdditionalResponse.ts +6 -0
  80. package/src/authentication/index.ts +3 -0
  81. package/src/card/dtos/CardBalanceResponse.ts +12 -0
  82. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -0
  83. package/src/card/dtos/{CreateCardRequest.ts → CardCreateRequest.ts} +1 -1
  84. package/src/card/dtos/CardResponse.ts +0 -0
  85. package/src/card/index.ts +17 -0
  86. package/src/country/index.ts +6 -1
  87. package/src/currency/dtos/CurrencyResponse.ts +10 -0
  88. package/src/directory/dtos/DirectoryResponse.ts +18 -0
  89. package/src/directory/dtos/External.ts +7 -0
  90. package/src/directory/enums/Profile.ts +7 -0
  91. package/src/directory/enums/Scope.ts +8 -0
  92. package/src/directory/enums/Status.ts +8 -0
  93. package/src/directory/index.ts +7 -0
  94. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +51 -0
  95. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +22 -0
  96. package/src/exchangeRate/enums/ExchangeRateStatus.ts +6 -0
  97. package/src/exchangeRate/index.ts +7 -0
  98. package/src/identity/dtos/IdentificationDocument.ts +25 -0
  99. package/src/identity/dtos/PeopleCreateRequest.ts +0 -0
  100. package/src/identity/dtos/PeopleResponse.ts +80 -0
  101. package/src/identity/dtos/TypeOfDocument.ts +12 -0
  102. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -0
  103. package/src/identity/enums/SexDocument.ts +6 -0
  104. package/src/identity/index.ts +0 -0
  105. package/src/index.ts +6 -18
  106. package/src/address/dtos/CreateAddressRequest.ts +0 -7
  107. /package/{src/account/dtos/PocketResponse.ts → bin/card/dtos/CardResponse.d.ts} +0 -0
@@ -0,0 +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
+ }
@@ -0,0 +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;
12
+ }
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export enum IdentificationDocumentStatus {
4
+ VERIFIED = "VERIFIED",
5
+ REJECTED = "REJECTED",
6
+ UNVERIFIED = "UNVERIFIED"
7
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export enum SexDocument {
4
+ M = "M",
5
+ F = "F"
6
+ }
File without changes
package/src/index.ts CHANGED
@@ -1,23 +1,11 @@
1
- export * from './card/dtos/CardActivateRequest';
2
- export * from './card/dtos/CardApplicationRequest';
3
- export * from './card/dtos/CreateCardRequest';
4
- export * from './card/dtos/CardUpdateRequest';
5
1
 
6
2
 
7
-
8
-
9
- export * from './card/enums/CardType';
10
- export * from './card/enums/CardUpdateKey';
11
- export * from './card/enums/IssuanceType';
12
- export * from './card/enums/Status';
13
- export * from './card/enums/IssuanceType';
14
- export * from './card/enums/OwnershipType';
15
- export * from './card/enums/Brand';
16
- export * from './card/enums/UpdateKey';
17
- export * from './card/enums/Status';
18
- export * from './card/enums/CardType';
19
- export * from './card/enums/OwnershipType';
20
-
3
+ export * as Account from './account';
4
+ export * as Address from './address';
5
+ export * as Authentication from './authentication';
6
+ export * as Card from './card';
7
+ export * as Country from './country';
8
+ export * as Directory from './directory';
21
9
 
22
10
 
23
11
 
@@ -1,7 +0,0 @@
1
- import { AddressBase } from "./AddressBase";
2
-
3
-
4
- export class CreateAddressRequest extends AddressBase {
5
-
6
-
7
- }