@fiado/type-kit 1.0.58 → 1.0.59
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/.idea/aws.xml +11 -0
- package/.idea/fiado-type-kit.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +70 -70
- package/bin/account/dtos/AccountCreateRequest.d.ts +2 -2
- package/bin/account/dtos/AccountCreateRequest.js +6 -6
- 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 +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +58 -58
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/index.ts +4 -4
- package/src/address/dtos/AddressBase.ts +130 -130
- package/src/address/dtos/AddressCreateRequest.ts +6 -6
- package/src/address/dtos/AddressResponse.ts +41 -41
- package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
- package/src/address/dtos/Geometry.ts +4 -4
- package/src/address/dtos/OfficeDetails.ts +30 -30
- package/src/address/dtos/OperationSchedule.ts +8 -8
- package/src/address/dtos/Place.ts +83 -83
- package/src/address/dtos/Shipping.ts +36 -36
- package/src/address/dtos/Timezone.ts +5 -5
- package/src/address/enums/AddressProvider.ts +10 -10
- package/src/address/enums/AddressStatus.ts +9 -9
- package/src/address/index.ts +15 -15
- package/src/app/enums/App.ts +10 -10
- package/src/app/index.ts +3 -3
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
- package/src/authentication/index.ts +3 -3
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardApplicationRequest.ts +20 -20
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- package/src/card/dtos/CardCreateRequest.ts +141 -141
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardUpdateRequest.ts +13 -13
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/CreditOrDebit.ts +5 -5
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/NominatedOrInnominated.ts +8 -8
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/ShippingStatus.ts +8 -8
- package/src/card/enums/Status.ts +5 -5
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/enums/VirtualOrPhysical.ts +6 -6
- package/src/card/index.ts +28 -28
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/country/enums/Country.ts +6 -6
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +5 -5
- package/src/currency/dtos/CurrencyResponse.ts +8 -8
- package/src/currency/index.ts +2 -2
- package/src/directory/dtos/DirectoryResponse.ts +17 -17
- package/src/directory/dtos/External.ts +6 -6
- package/src/directory/enums/Profile.ts +6 -6
- package/src/directory/enums/Scope.ts +7 -7
- package/src/directory/enums/Status.ts +8 -8
- package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
- package/src/directory/index.ts +7 -7
- package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
- package/src/eventBridge/index.ts +1 -1
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
- package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +8 -8
- package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
- package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
- package/src/genericMessage/index.ts +1 -1
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +54 -54
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +31 -31
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +17 -17
- package/src/header/index.ts +3 -3
- package/src/helpers/ValidationUtils.ts +32 -32
- package/src/helpers/constans/regex.ts +12 -12
- package/src/identity/dtos/IdentificationDocument.ts +24 -24
- package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
- package/src/identity/dtos/PeopleResponse.ts +80 -80
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/index.ts +11 -11
- package/src/index.ts +24 -23
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
- package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
- package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
- package/src/notificationMessages/enums/NotificationId.ts +13 -13
- package/src/notificationMessages/index.ts +5 -5
- package/src/pomelo/dtos/PomeloCreateUserRequest.ts +30 -30
- package/src/pomelo/dtos/PomeloCreateUserResponse.ts +35 -35
- package/src/pomelo/enums/CountryEnum.ts +8 -8
- package/src/pomelo/enums/IdentificationTypeEnum.ts +10 -10
- package/src/pomelo/enums/SexEnum.ts +3 -3
- package/src/pomelo/enums/TaxTypeEnum.ts +7 -7
- package/src/pomelo/enums/UserStatusEnum.ts +6 -6
- package/src/pomelo/index.ts +11 -11
- package/src/provider/enums/Provider.ts +5 -5
- package/src/provider/index.ts +1 -1
- package/src/queue/dtos/QueueMessageBase.ts +13 -13
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
- package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
- package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
- package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
- package/src/sessionActivity/index.ts +2 -2
- 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
|
@@ -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
|
+
}
|
package/src/identity/index.ts
CHANGED
|
@@ -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,23 +1,24 @@
|
|
|
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
|
-
export * as EventBridgeMessage from './eventBridge'
|
|
18
|
-
export * as GenericMessage from './genericMessage'
|
|
19
|
-
export * as Pomelo from './pomelo'
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
export * as EventBridgeMessage from './eventBridge'
|
|
18
|
+
export * as GenericMessage from './genericMessage'
|
|
19
|
+
export * as Pomelo from './pomelo'
|
|
20
|
+
export * as Tern from './tern'
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
-
|
|
3
|
-
export class NotificationQueueMessageRequest {
|
|
4
|
-
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
-
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
-
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
-
data?: any; // Informacion adicional a enviar al destino
|
|
1
|
+
import {QueueMessageDestination} from "./QueueMessageDestination";
|
|
2
|
+
|
|
3
|
+
export class NotificationQueueMessageRequest {
|
|
4
|
+
templateId: string; // Nombre de la plantilla de mensaje a enviar
|
|
5
|
+
broadcast?: boolean; // Si el mensaje es masivo o no (a todos los dispositivos registrados)
|
|
6
|
+
destinations: QueueMessageDestination[]; // Grupo de destinos (directory y variables)
|
|
7
|
+
data?: any; // Informacion adicional a enviar al destino
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
-
|
|
3
|
-
export class QueueMessageDestination {
|
|
4
|
-
directoryId: string;
|
|
5
|
-
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
-
data?: any;
|
|
1
|
+
import {QueueMessageVariableValues} from "./QueueMessageVariableValues";
|
|
2
|
+
|
|
3
|
+
export class QueueMessageDestination {
|
|
4
|
+
directoryId: string;
|
|
5
|
+
templateVariables?: QueueMessageVariableValues[];
|
|
6
|
+
data?: any;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class QueueMessageVariableValues {
|
|
2
|
-
key: string;
|
|
3
|
-
value: string;
|
|
1
|
+
export class QueueMessageVariableValues {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
4
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum NotificationId {
|
|
5
|
-
|
|
6
|
-
ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
|
|
7
|
-
ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
|
|
8
|
-
ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
|
|
9
|
-
ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum NotificationId {
|
|
5
|
+
|
|
6
|
+
ISSUED_ACCOUNT_USA = "ISSUED_ACCOUNT_USA", //Mesnaje de apertura de cuentas y tarjeta USA
|
|
7
|
+
ISSUED_ACCOUNT_MEX = "ISSUED_ACCOUNT_MEX", //Mesnaje de apertura de cuentas y tarjeta MEX
|
|
8
|
+
ONB_ERROR_VALID_DOCUMENT = "ONB_ERROR_VALID_DOCUMENT", // Mensaje cuando el resultado del onboarding es error en la validación del documento
|
|
9
|
+
ONB_ERROR_FACEMATCH = "ONB_ERROR_FACEMATCH", // Mensaje cuando el resultado del onboarding es error porque no hace match en video selfie con el documento
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
-
export * from './dtos/QueueMessageDestination';
|
|
3
|
-
export * from './dtos/QueueMessageVariableValues';
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export * from './dtos/NotificationQueueMessageRequest';
|
|
2
|
+
export * from './dtos/QueueMessageDestination';
|
|
3
|
+
export * from './dtos/QueueMessageVariableValues';
|
|
4
|
+
|
|
5
|
+
|
|
6
6
|
export * from "./enums/NotificationId";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
-
import { SexEnum } from "../enums/SexEnum"
|
|
3
|
-
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
4
|
-
|
|
5
|
-
export type PomeloCreateUserRequest =
|
|
6
|
-
{
|
|
7
|
-
name?: string,
|
|
8
|
-
surname?: string,
|
|
9
|
-
identification_type?: "INE",
|
|
10
|
-
identification_value?: string,
|
|
11
|
-
birthdate?:string,
|
|
12
|
-
gender?: SexEnum,
|
|
13
|
-
email: string,
|
|
14
|
-
phone?: string,
|
|
15
|
-
tax_identification_type?: TaxTypeEnum,
|
|
16
|
-
tax_identification_value?: string,
|
|
17
|
-
legal_address: {
|
|
18
|
-
street_name?: string,
|
|
19
|
-
street_number?: string,
|
|
20
|
-
floor?: string,
|
|
21
|
-
apartment?: string,
|
|
22
|
-
zip_code?: string,
|
|
23
|
-
neighborhood?: string,
|
|
24
|
-
city?: string,
|
|
25
|
-
region?:string,
|
|
26
|
-
additional_info?: string,
|
|
27
|
-
country?: CountryEnum
|
|
28
|
-
},
|
|
29
|
-
operation_country: CountryEnum,
|
|
30
|
-
|
|
1
|
+
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
+
import { SexEnum } from "../enums/SexEnum"
|
|
3
|
+
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
4
|
+
|
|
5
|
+
export type PomeloCreateUserRequest =
|
|
6
|
+
{
|
|
7
|
+
name?: string,
|
|
8
|
+
surname?: string,
|
|
9
|
+
identification_type?: "INE",
|
|
10
|
+
identification_value?: string,
|
|
11
|
+
birthdate?:string,
|
|
12
|
+
gender?: SexEnum,
|
|
13
|
+
email: string,
|
|
14
|
+
phone?: string,
|
|
15
|
+
tax_identification_type?: TaxTypeEnum,
|
|
16
|
+
tax_identification_value?: string,
|
|
17
|
+
legal_address: {
|
|
18
|
+
street_name?: string,
|
|
19
|
+
street_number?: string,
|
|
20
|
+
floor?: string,
|
|
21
|
+
apartment?: string,
|
|
22
|
+
zip_code?: string,
|
|
23
|
+
neighborhood?: string,
|
|
24
|
+
city?: string,
|
|
25
|
+
region?:string,
|
|
26
|
+
additional_info?: string,
|
|
27
|
+
country?: CountryEnum
|
|
28
|
+
},
|
|
29
|
+
operation_country: CountryEnum,
|
|
30
|
+
|
|
31
31
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
-
import { IdentificationTypeEnum } from "../enums/IdentificationTypeEnum"
|
|
3
|
-
import { SexEnum } from "../enums/SexEnum"
|
|
4
|
-
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
5
|
-
import { UserStatusEnum } from "../enums/UserStatusEnum"
|
|
6
|
-
|
|
7
|
-
export interface PomeloCreateUserResponse {
|
|
8
|
-
data:{
|
|
9
|
-
id:string
|
|
10
|
-
name:string
|
|
11
|
-
surname:string
|
|
12
|
-
identification_type:IdentificationTypeEnum
|
|
13
|
-
identification_value:string
|
|
14
|
-
birthdate:string
|
|
15
|
-
gender:SexEnum
|
|
16
|
-
email:string
|
|
17
|
-
phone:string
|
|
18
|
-
tax_identification_type:TaxTypeEnum
|
|
19
|
-
tax_identification_value:string
|
|
20
|
-
nationality:CountryEnum
|
|
21
|
-
status:UserStatusEnum
|
|
22
|
-
operation_country:CountryEnum
|
|
23
|
-
legal_address:{
|
|
24
|
-
street_name:string
|
|
25
|
-
street_number:string
|
|
26
|
-
floor:string
|
|
27
|
-
apartment:string
|
|
28
|
-
zip_code:string
|
|
29
|
-
neighborhood:string
|
|
30
|
-
city:string
|
|
31
|
-
region:string
|
|
32
|
-
additional_info:string
|
|
33
|
-
country:CountryEnum
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
import { CountryEnum } from "../enums/CountryEnum"
|
|
2
|
+
import { IdentificationTypeEnum } from "../enums/IdentificationTypeEnum"
|
|
3
|
+
import { SexEnum } from "../enums/SexEnum"
|
|
4
|
+
import { TaxTypeEnum } from "../enums/TaxTypeEnum"
|
|
5
|
+
import { UserStatusEnum } from "../enums/UserStatusEnum"
|
|
6
|
+
|
|
7
|
+
export interface PomeloCreateUserResponse {
|
|
8
|
+
data:{
|
|
9
|
+
id:string
|
|
10
|
+
name:string
|
|
11
|
+
surname:string
|
|
12
|
+
identification_type:IdentificationTypeEnum
|
|
13
|
+
identification_value:string
|
|
14
|
+
birthdate:string
|
|
15
|
+
gender:SexEnum
|
|
16
|
+
email:string
|
|
17
|
+
phone:string
|
|
18
|
+
tax_identification_type:TaxTypeEnum
|
|
19
|
+
tax_identification_value:string
|
|
20
|
+
nationality:CountryEnum
|
|
21
|
+
status:UserStatusEnum
|
|
22
|
+
operation_country:CountryEnum
|
|
23
|
+
legal_address:{
|
|
24
|
+
street_name:string
|
|
25
|
+
street_number:string
|
|
26
|
+
floor:string
|
|
27
|
+
apartment:string
|
|
28
|
+
zip_code:string
|
|
29
|
+
neighborhood:string
|
|
30
|
+
city:string
|
|
31
|
+
region:string
|
|
32
|
+
additional_info:string
|
|
33
|
+
country:CountryEnum
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export enum CountryEnum
|
|
2
|
-
{
|
|
3
|
-
MEX = "MEX",
|
|
4
|
-
ARG = "ARG",
|
|
5
|
-
BRA = "BRA",
|
|
6
|
-
PER = "PER",
|
|
7
|
-
COL = "COL",
|
|
8
|
-
CHL = "CHL",
|
|
1
|
+
export enum CountryEnum
|
|
2
|
+
{
|
|
3
|
+
MEX = "MEX",
|
|
4
|
+
ARG = "ARG",
|
|
5
|
+
BRA = "BRA",
|
|
6
|
+
PER = "PER",
|
|
7
|
+
COL = "COL",
|
|
8
|
+
CHL = "CHL",
|
|
9
9
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum IdentificationTypeEnum
|
|
5
|
-
{
|
|
6
|
-
MX_NATIONAL_ID = "INE",
|
|
7
|
-
MX_PASSPORT = "PASSPORT",
|
|
8
|
-
US_DRIVER_LICENSE = "INE",
|
|
9
|
-
FIADO_MX_NATIONAL_ID = "MX_NATIONAL_ID",
|
|
10
|
-
PASSPORT = "MX_PASSPORT",
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum IdentificationTypeEnum
|
|
5
|
+
{
|
|
6
|
+
MX_NATIONAL_ID = "INE",
|
|
7
|
+
MX_PASSPORT = "PASSPORT",
|
|
8
|
+
US_DRIVER_LICENSE = "INE",
|
|
9
|
+
FIADO_MX_NATIONAL_ID = "MX_NATIONAL_ID",
|
|
10
|
+
PASSPORT = "MX_PASSPORT",
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum SexEnum{
|
|
2
|
-
M = "MALE",
|
|
3
|
-
F = "FEMALE"
|
|
1
|
+
export enum SexEnum{
|
|
2
|
+
M = "MALE",
|
|
3
|
+
F = "FEMALE"
|
|
4
4
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export enum TaxTypeEnum
|
|
2
|
-
{
|
|
3
|
-
RFC = "RFC",
|
|
4
|
-
CUIL = "CUIL",
|
|
5
|
-
CPF = "CPF",
|
|
6
|
-
NIT = "NIT",
|
|
7
|
-
RUC = "RUC",
|
|
1
|
+
export enum TaxTypeEnum
|
|
2
|
+
{
|
|
3
|
+
RFC = "RFC",
|
|
4
|
+
CUIL = "CUIL",
|
|
5
|
+
CPF = "CPF",
|
|
6
|
+
NIT = "NIT",
|
|
7
|
+
RUC = "RUC",
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum UserStatusEnum
|
|
4
|
-
{
|
|
5
|
-
ACTIVE = "ACTIVE",
|
|
6
|
-
BLOCKED = "BLOCKED"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum UserStatusEnum
|
|
4
|
+
{
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
BLOCKED = "BLOCKED"
|
|
7
7
|
}
|
package/src/pomelo/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/PomeloCreateUserRequest'
|
|
4
|
-
export * from './dtos/PomeloCreateUserResponse';
|
|
5
|
-
|
|
6
|
-
//enums
|
|
7
|
-
export * from './enums/CountryEnum';
|
|
8
|
-
export * from './enums/IdentificationTypeEnum';
|
|
9
|
-
export * from './enums/SexEnum';
|
|
10
|
-
export * from './enums/TaxTypeEnum';
|
|
11
|
-
export * from './enums/UserStatusEnum';
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/PomeloCreateUserRequest'
|
|
4
|
+
export * from './dtos/PomeloCreateUserResponse';
|
|
5
|
+
|
|
6
|
+
//enums
|
|
7
|
+
export * from './enums/CountryEnum';
|
|
8
|
+
export * from './enums/IdentificationTypeEnum';
|
|
9
|
+
export * from './enums/SexEnum';
|
|
10
|
+
export * from './enums/TaxTypeEnum';
|
|
11
|
+
export * from './enums/UserStatusEnum';
|
|
@@ -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
|
}
|
package/src/provider/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
export * from './enums/Provider';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IsEnum, IsString } from "class-validator";
|
|
2
|
-
import { Provider } from "../../provider";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class QueueMessageBase<T> {
|
|
6
|
-
|
|
7
|
-
@IsEnum(Provider)
|
|
8
|
-
provider: string;
|
|
9
|
-
|
|
10
|
-
@IsString()
|
|
11
|
-
eventType: string;
|
|
12
|
-
|
|
13
|
-
message: T
|
|
1
|
+
import { IsEnum, IsString } from "class-validator";
|
|
2
|
+
import { Provider } from "../../provider";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class QueueMessageBase<T> {
|
|
6
|
+
|
|
7
|
+
@IsEnum(Provider)
|
|
8
|
+
provider: string;
|
|
9
|
+
|
|
10
|
+
@IsString()
|
|
11
|
+
eventType: string;
|
|
12
|
+
|
|
13
|
+
message: T
|
|
14
14
|
}
|