@fiado/type-kit 1.1.39 → 1.1.41
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/card/dtos/CardAdditionalResponse.d.ts +1 -0
- package/bin/group/dtos/GroupDirectoryRelationsResponse.d.ts +0 -1
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +75 -75
- package/src/account/dtos/AccountCreateResponse.ts +7 -7
- package/src/account/dtos/AccountInfo.ts +39 -39
- package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
- package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
- package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
- package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
- package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
- package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
- package/src/account/dtos/ExchangeInfo.ts +8 -8
- package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
- package/src/account/dtos/GetAccountResponse.ts +62 -62
- package/src/account/dtos/GetBankAccountRequest.ts +3 -3
- package/src/account/dtos/GetBankAccountResponse.ts +22 -22
- package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
- package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
- package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
- package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
- package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
- package/src/account/dtos/GetPocketResponse.ts +8 -8
- package/src/account/dtos/PocketBalanceItem.ts +14 -14
- package/src/account/dtos/PocketItem.ts +43 -43
- package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
- package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
- package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
- package/src/account/entities/AccountEntityBase.ts +12 -12
- package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
- package/src/account/enums/AccountLevelEnum.ts +5 -5
- package/src/account/enums/BankAccountTypeEnum.ts +2 -2
- package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
- package/src/account/enums/UserEntityStatusEnum.ts +4 -4
- package/src/account/index.ts +37 -37
- 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/AddressShippingCardRequest.ts +12 -12
- 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 +16 -16
- 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/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
- package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
- package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
- package/src/beneficiary/enums/AccountType.ts +6 -6
- package/src/beneficiary/index.ts +7 -7
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardAdditionalRequest.ts +25 -25
- package/src/card/dtos/CardAdditionalResponse.ts +12 -11
- package/src/card/dtos/CardApplicationRequest.ts +22 -22
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
- package/src/card/dtos/CardResponse.ts +34 -34
- package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- package/src/card/dtos/CardSummaryResponse.ts +10 -10
- package/src/card/dtos/CardUpdateRequest.ts +11 -11
- package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
- package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
- package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
- package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
- package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
- package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
- package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
- package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
- package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
- package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
- package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
- package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardIssuing.ts +6 -6
- 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/DeliveryChannel.ts +7 -7
- package/src/card/enums/ExternalShippingStatus.ts +14 -14
- package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
- 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 +6 -6
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/enums/VirtualOrPhysical.ts +6 -6
- package/src/card/index.ts +50 -50
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
- package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
- package/src/contactInfo/index.ts +1 -1
- package/src/contract/dtos/ContractCreateRequest.ts +29 -29
- package/src/contract/dtos/ContractCreateResponse.ts +2 -2
- package/src/contract/index.ts +4 -4
- 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/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
- package/src/creditContract/enums/InstrumentEnum.ts +5 -5
- package/src/creditContract/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 +18 -18
- 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/dtos/GetExchangeRatesRequest.ts +3 -3
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +9 -9
- 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 -21
- 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 +18 -18
- 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 +72 -72
- package/src/identity/dtos/PeopleUpdateRequest.ts +70 -70
- 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/enums/TypeOfDocument.ts +5 -5
- package/src/identity/index.ts +12 -12
- package/src/index.ts +28 -28
- 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/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
- package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
- package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
- package/src/productCatalog/enums/ProductTypeEnum.ts +8 -8
- package/src/productCatalog/index.ts +4 -4
- package/src/provider/enums/Provider.ts +4 -4
- 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/transaction/dtos/Credit.ts +21 -21
- package/src/transaction/dtos/Debit.ts +20 -20
- package/src/transaction/dtos/Notional.ts +20 -20
- package/src/transaction/dtos/Product.ts +21 -21
- package/src/transaction/dtos/Total.ts +20 -20
- package/src/transaction/dtos/TransactionCreateRequest.ts +93 -93
- package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
- package/src/transaction/enums/OperationEnum.ts +3 -3
- package/src/transaction/index.ts +5 -5
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
- package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
- package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
- package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
- package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
- package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
- package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +12 -12
- package/src/transactionProcessor/index.ts +9 -9
- package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
- package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
- package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +0 -15
- package/bin/creditContract/dto/CreditContractCreateRequest.js +0 -72
- package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
- package/bin/productCatalog/dtos/GetProductCatalogRequest.js +0 -19
- package/bin/transaction/TransactionCreateRequest.d.ts +0 -2
- package/bin/transaction/TransactionCreateRequest.js +0 -6
- package/bin/transaction/TransactionCreateResponse.d.ts +0 -2
- package/bin/transaction/TransactionCreateResponse.js +0 -6
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
|
|
2
|
-
import { Geometry } from "./Geometry";
|
|
3
|
-
import { Timezone } from "./Timezone";
|
|
4
|
-
import { Country } from '../../country/enums/Country';
|
|
5
|
-
|
|
6
|
-
export class Place {
|
|
7
|
-
@ValidateNested()
|
|
8
|
-
geometry: Geometry;
|
|
9
|
-
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsString()
|
|
12
|
-
addressNumber?: string;
|
|
13
|
-
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsArray()
|
|
16
|
-
@IsString({ each: true })
|
|
17
|
-
categories?: string[];
|
|
18
|
-
|
|
19
|
-
@IsOptional()
|
|
20
|
-
@IsEnum(Country)
|
|
21
|
-
country?: string;
|
|
22
|
-
|
|
23
|
-
@IsBoolean()
|
|
24
|
-
interpolated: boolean;
|
|
25
|
-
|
|
26
|
-
@IsOptional()
|
|
27
|
-
@IsString()
|
|
28
|
-
@Length(1, 300)
|
|
29
|
-
label?: string;
|
|
30
|
-
|
|
31
|
-
@IsOptional()
|
|
32
|
-
@IsString()
|
|
33
|
-
@Length(1, 60)
|
|
34
|
-
municipality?: string;
|
|
35
|
-
|
|
36
|
-
@IsOptional()
|
|
37
|
-
@IsString()
|
|
38
|
-
@Length(2, 60)
|
|
39
|
-
neighborhood?: string;
|
|
40
|
-
|
|
41
|
-
@IsOptional()
|
|
42
|
-
@IsString()
|
|
43
|
-
@Length(5, 10)
|
|
44
|
-
postalCode?: string;
|
|
45
|
-
|
|
46
|
-
@IsOptional()
|
|
47
|
-
@IsString()
|
|
48
|
-
@Length(5, 10)
|
|
49
|
-
region?: string;
|
|
50
|
-
|
|
51
|
-
@IsOptional()
|
|
52
|
-
@IsString()
|
|
53
|
-
@Length(1, 100)
|
|
54
|
-
street?: string;
|
|
55
|
-
|
|
56
|
-
@IsOptional()
|
|
57
|
-
@IsString()
|
|
58
|
-
@Length(2, 60)
|
|
59
|
-
subMunicipality?: string;
|
|
60
|
-
|
|
61
|
-
@IsOptional()
|
|
62
|
-
@IsString()
|
|
63
|
-
@Length(2, 60)
|
|
64
|
-
subRegion?: string;
|
|
65
|
-
|
|
66
|
-
@IsOptional()
|
|
67
|
-
@IsArray()
|
|
68
|
-
@IsString({ each: true })
|
|
69
|
-
supplementalCategories?: string[];
|
|
70
|
-
|
|
71
|
-
@IsOptional()
|
|
72
|
-
@ValidateNested()
|
|
73
|
-
timezone?: Timezone;
|
|
74
|
-
|
|
75
|
-
@IsOptional()
|
|
76
|
-
@IsString()
|
|
77
|
-
@Length(1, 10)
|
|
78
|
-
unitNumber?: string;
|
|
79
|
-
|
|
80
|
-
@IsOptional()
|
|
81
|
-
@IsString()
|
|
82
|
-
@Length(1, 10)
|
|
83
|
-
unitType?: string;
|
|
1
|
+
import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
|
|
2
|
+
import { Geometry } from "./Geometry";
|
|
3
|
+
import { Timezone } from "./Timezone";
|
|
4
|
+
import { Country } from '../../country/enums/Country';
|
|
5
|
+
|
|
6
|
+
export class Place {
|
|
7
|
+
@ValidateNested()
|
|
8
|
+
geometry: Geometry;
|
|
9
|
+
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsString()
|
|
12
|
+
addressNumber?: string;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsArray()
|
|
16
|
+
@IsString({ each: true })
|
|
17
|
+
categories?: string[];
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsEnum(Country)
|
|
21
|
+
country?: string;
|
|
22
|
+
|
|
23
|
+
@IsBoolean()
|
|
24
|
+
interpolated: boolean;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
@Length(1, 300)
|
|
29
|
+
label?: string;
|
|
30
|
+
|
|
31
|
+
@IsOptional()
|
|
32
|
+
@IsString()
|
|
33
|
+
@Length(1, 60)
|
|
34
|
+
municipality?: string;
|
|
35
|
+
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
@Length(2, 60)
|
|
39
|
+
neighborhood?: string;
|
|
40
|
+
|
|
41
|
+
@IsOptional()
|
|
42
|
+
@IsString()
|
|
43
|
+
@Length(5, 10)
|
|
44
|
+
postalCode?: string;
|
|
45
|
+
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsString()
|
|
48
|
+
@Length(5, 10)
|
|
49
|
+
region?: string;
|
|
50
|
+
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsString()
|
|
53
|
+
@Length(1, 100)
|
|
54
|
+
street?: string;
|
|
55
|
+
|
|
56
|
+
@IsOptional()
|
|
57
|
+
@IsString()
|
|
58
|
+
@Length(2, 60)
|
|
59
|
+
subMunicipality?: string;
|
|
60
|
+
|
|
61
|
+
@IsOptional()
|
|
62
|
+
@IsString()
|
|
63
|
+
@Length(2, 60)
|
|
64
|
+
subRegion?: string;
|
|
65
|
+
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsArray()
|
|
68
|
+
@IsString({ each: true })
|
|
69
|
+
supplementalCategories?: string[];
|
|
70
|
+
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@ValidateNested()
|
|
73
|
+
timezone?: Timezone;
|
|
74
|
+
|
|
75
|
+
@IsOptional()
|
|
76
|
+
@IsString()
|
|
77
|
+
@Length(1, 10)
|
|
78
|
+
unitNumber?: string;
|
|
79
|
+
|
|
80
|
+
@IsOptional()
|
|
81
|
+
@IsString()
|
|
82
|
+
@Length(1, 10)
|
|
83
|
+
unitType?: string;
|
|
84
84
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { IsString, Length, IsOptional } from 'class-validator';
|
|
2
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
-
|
|
4
|
-
export class Shipping {
|
|
5
|
-
@IsString()
|
|
6
|
-
@Length(2, 60)
|
|
7
|
-
municipality: string;
|
|
8
|
-
|
|
9
|
-
@IsString()
|
|
10
|
-
@Length(2, 60)
|
|
11
|
-
neighborhood: string;
|
|
12
|
-
|
|
13
|
-
@IsString()
|
|
14
|
-
@Length(5, 10)
|
|
15
|
-
postalCode: string;
|
|
16
|
-
|
|
17
|
-
@IsString()
|
|
18
|
-
@Length(2, 100)
|
|
19
|
-
street: string;
|
|
20
|
-
|
|
21
|
-
@IsString()
|
|
22
|
-
@Length(2, 60)
|
|
23
|
-
subRegion: string;
|
|
24
|
-
|
|
25
|
-
@IsString()
|
|
26
|
-
@Length(1, 10)
|
|
27
|
-
addressNumber: string;
|
|
28
|
-
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
@Length(1, 200)
|
|
32
|
-
internalNumber?: string;
|
|
33
|
-
|
|
34
|
-
@IsString()
|
|
35
|
-
countryId: CountryId;
|
|
36
|
-
}
|
|
1
|
+
import { IsString, Length, IsOptional } from 'class-validator';
|
|
2
|
+
import { CountryId } from '../../country/enums/CountryId';
|
|
3
|
+
|
|
4
|
+
export class Shipping {
|
|
5
|
+
@IsString()
|
|
6
|
+
@Length(2, 60)
|
|
7
|
+
municipality: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@Length(2, 60)
|
|
11
|
+
neighborhood: string;
|
|
12
|
+
|
|
13
|
+
@IsString()
|
|
14
|
+
@Length(5, 10)
|
|
15
|
+
postalCode: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
@Length(2, 100)
|
|
19
|
+
street: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
@Length(2, 60)
|
|
23
|
+
subRegion: string;
|
|
24
|
+
|
|
25
|
+
@IsString()
|
|
26
|
+
@Length(1, 10)
|
|
27
|
+
addressNumber: string;
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
@Length(1, 200)
|
|
32
|
+
internalNumber?: string;
|
|
33
|
+
|
|
34
|
+
@IsString()
|
|
35
|
+
countryId: CountryId;
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type Timezone = {
|
|
4
|
-
name: string;
|
|
5
|
-
offset: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export type Timezone = {
|
|
4
|
+
name: string;
|
|
5
|
+
offset: string;
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* AddressProvider enum
|
|
4
|
-
* @description AddressProvider enum is used to define the address provider
|
|
5
|
-
* @enum {string} AddressProvider
|
|
6
|
-
*/
|
|
7
|
-
export enum AddressProvider {
|
|
8
|
-
AWS = "AWS",
|
|
9
|
-
MANUAL = "MANUAL"
|
|
10
|
-
}
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* AddressProvider enum
|
|
4
|
+
* @description AddressProvider enum is used to define the address provider
|
|
5
|
+
* @enum {string} AddressProvider
|
|
6
|
+
*/
|
|
7
|
+
export enum AddressProvider {
|
|
8
|
+
AWS = "AWS",
|
|
9
|
+
MANUAL = "MANUAL"
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* AddressProvider Status
|
|
4
|
-
* @description AddressProvider Status is used to define the address provider status
|
|
5
|
-
* @enum {string} AddressStatus
|
|
6
|
-
*/
|
|
7
|
-
export enum AddressStatus {
|
|
8
|
-
VISIBLE = "VISIBLE",
|
|
9
|
-
NOT_VISIBLE = "NOT_VISIBLE"
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* AddressProvider Status
|
|
4
|
+
* @description AddressProvider Status is used to define the address provider status
|
|
5
|
+
* @enum {string} AddressStatus
|
|
6
|
+
*/
|
|
7
|
+
export enum AddressStatus {
|
|
8
|
+
VISIBLE = "VISIBLE",
|
|
9
|
+
NOT_VISIBLE = "NOT_VISIBLE"
|
|
10
10
|
}
|
package/src/address/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
//dtos
|
|
2
|
-
export * from './dtos/Shipping';
|
|
3
|
-
export * from './dtos/AddressCreateRequest';
|
|
4
|
-
export * from './dtos/AddressResponse';
|
|
5
|
-
export * from './dtos/Geometry';
|
|
6
|
-
export * from './dtos/Place';
|
|
7
|
-
export * from './dtos/Timezone';
|
|
8
|
-
export * from './dtos/OfficeDetails'
|
|
9
|
-
export * from './dtos/OperationSchedule'
|
|
10
|
-
export * from './dtos/AddressShippingCardResponse'
|
|
11
|
-
export * from './dtos/AddressShippingCardRequest'
|
|
12
|
-
|
|
13
|
-
//enums
|
|
14
|
-
export * from './enums/AddressStatus';
|
|
15
|
-
export * from './enums/AddressProvider';
|
|
16
|
-
|
|
1
|
+
//dtos
|
|
2
|
+
export * from './dtos/Shipping';
|
|
3
|
+
export * from './dtos/AddressCreateRequest';
|
|
4
|
+
export * from './dtos/AddressResponse';
|
|
5
|
+
export * from './dtos/Geometry';
|
|
6
|
+
export * from './dtos/Place';
|
|
7
|
+
export * from './dtos/Timezone';
|
|
8
|
+
export * from './dtos/OfficeDetails'
|
|
9
|
+
export * from './dtos/OperationSchedule'
|
|
10
|
+
export * from './dtos/AddressShippingCardResponse'
|
|
11
|
+
export * from './dtos/AddressShippingCardRequest'
|
|
12
|
+
|
|
13
|
+
//enums
|
|
14
|
+
export * from './enums/AddressStatus';
|
|
15
|
+
export * from './enums/AddressProvider';
|
|
16
|
+
|
package/src/app/enums/App.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum App {
|
|
4
|
-
USER = "USER",
|
|
5
|
-
MERCHANT = "MERCHANT",
|
|
6
|
-
BACKOFFICE = "BACKOFFICE",
|
|
7
|
-
AGENT = "AGENT",
|
|
8
|
-
USER_APP = "APP",
|
|
9
|
-
USER_WEB = "WEB",
|
|
10
|
-
HYBRID = "HYBRID"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum App {
|
|
4
|
+
USER = "USER",
|
|
5
|
+
MERCHANT = "MERCHANT",
|
|
6
|
+
BACKOFFICE = "BACKOFFICE",
|
|
7
|
+
AGENT = "AGENT",
|
|
8
|
+
USER_APP = "APP",
|
|
9
|
+
USER_WEB = "WEB",
|
|
10
|
+
HYBRID = "HYBRID"
|
|
11
11
|
}
|
package/src/app/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//enums
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
//enums
|
|
4
4
|
export * from './enums/App';
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
|
|
2
|
-
import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
|
|
3
|
-
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export class SignUpAdditionalRequest {
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsString()
|
|
11
|
-
@Length(3, 70)
|
|
12
|
-
name: string;
|
|
13
|
-
|
|
14
|
-
@IsNotEmpty()
|
|
15
|
-
@IsString()
|
|
16
|
-
@IsPhoneNumberFiado()
|
|
17
|
-
phoneNumber: string;
|
|
18
|
-
|
|
19
|
-
@IsBoolean()
|
|
20
|
-
mexCreditAdditionalWish: boolean;
|
|
21
|
-
|
|
22
|
-
@IsString()
|
|
23
|
-
@Matches(regexUuidV4,
|
|
24
|
-
{
|
|
25
|
-
message: 'ownerDirectoryId must be a valid UUID v4',
|
|
26
|
-
})
|
|
27
|
-
ownerDirectoryId?: string;
|
|
28
|
-
|
|
29
|
-
@IsOptional()
|
|
30
|
-
@IsString()
|
|
31
|
-
ownerRelation: string
|
|
32
|
-
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
|
|
2
|
+
import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
|
|
3
|
+
import { regexUuidV4 } from "../../helpers/constans/regex";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class SignUpAdditionalRequest {
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsString()
|
|
11
|
+
@Length(3, 70)
|
|
12
|
+
name: string;
|
|
13
|
+
|
|
14
|
+
@IsNotEmpty()
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsPhoneNumberFiado()
|
|
17
|
+
phoneNumber: string;
|
|
18
|
+
|
|
19
|
+
@IsBoolean()
|
|
20
|
+
mexCreditAdditionalWish: boolean;
|
|
21
|
+
|
|
22
|
+
@IsString()
|
|
23
|
+
@Matches(regexUuidV4,
|
|
24
|
+
{
|
|
25
|
+
message: 'ownerDirectoryId must be a valid UUID v4',
|
|
26
|
+
})
|
|
27
|
+
ownerDirectoryId?: string;
|
|
28
|
+
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsString()
|
|
31
|
+
ownerRelation: string
|
|
32
|
+
|
|
33
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export class SignUpAdditionalResponse {
|
|
4
|
-
direcrtoryId: string;
|
|
5
|
-
peopleId: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class SignUpAdditionalResponse {
|
|
4
|
+
direcrtoryId: string;
|
|
5
|
+
peopleId: string;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/SignUpAdditionalRequest';
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/SignUpAdditionalRequest';
|
|
4
4
|
export * from './dtos/SignUpAdditionalResponse';
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsString, IsNotEmpty, IsOptional, IsNumber, Min, Max, IsEnum, IsDateString } from 'class-validator';
|
|
4
|
-
import { CountryId } from '../../country';
|
|
5
|
-
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
6
|
-
|
|
7
|
-
export class AccountBeneficiaryCreateRequest {
|
|
8
|
-
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
@IsEnum(CountryId)
|
|
11
|
-
countryId: CountryId;
|
|
12
|
-
|
|
13
|
-
@IsOptional()
|
|
14
|
-
@IsPhoneNumberFiado()
|
|
15
|
-
phoneNumber?: string;
|
|
16
|
-
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
@IsString()
|
|
19
|
-
fullName: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsDateString()
|
|
23
|
-
dateOfBirth?: string;
|
|
24
|
-
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsString()
|
|
27
|
-
stateOfBirth?: string;
|
|
28
|
-
|
|
29
|
-
@IsNotEmpty()
|
|
30
|
-
@IsString()
|
|
31
|
-
relationType: string;
|
|
32
|
-
|
|
33
|
-
@IsNotEmpty()
|
|
34
|
-
@IsNumber()
|
|
35
|
-
@Min(0)
|
|
36
|
-
@Max(100)
|
|
37
|
-
percentage: number;
|
|
38
|
-
|
|
39
|
-
@IsOptional()
|
|
40
|
-
@IsString()
|
|
41
|
-
countryOfResidence?: string;
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsString, IsNotEmpty, IsOptional, IsNumber, Min, Max, IsEnum, IsDateString } from 'class-validator';
|
|
4
|
+
import { CountryId } from '../../country';
|
|
5
|
+
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
6
|
+
|
|
7
|
+
export class AccountBeneficiaryCreateRequest {
|
|
8
|
+
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
@IsEnum(CountryId)
|
|
11
|
+
countryId: CountryId;
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsPhoneNumberFiado()
|
|
15
|
+
phoneNumber?: string;
|
|
16
|
+
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
@IsString()
|
|
19
|
+
fullName: string;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsDateString()
|
|
23
|
+
dateOfBirth?: string;
|
|
24
|
+
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsString()
|
|
27
|
+
stateOfBirth?: string;
|
|
28
|
+
|
|
29
|
+
@IsNotEmpty()
|
|
30
|
+
@IsString()
|
|
31
|
+
relationType: string;
|
|
32
|
+
|
|
33
|
+
@IsNotEmpty()
|
|
34
|
+
@IsNumber()
|
|
35
|
+
@Min(0)
|
|
36
|
+
@Max(100)
|
|
37
|
+
percentage: number;
|
|
38
|
+
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsString()
|
|
41
|
+
countryOfResidence?: string;
|
|
42
42
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class AccountBeneficiaryResponse {
|
|
7
|
-
id: string;
|
|
8
|
-
accountId: string;
|
|
9
|
-
countryId: CountryId;
|
|
10
|
-
accountType: string;
|
|
11
|
-
directoryId: string;
|
|
12
|
-
peopleId: string;
|
|
13
|
-
|
|
14
|
-
beneficiaryDirectorId?: string;
|
|
15
|
-
beneficiaryPeopleId?: string;
|
|
16
|
-
phoneNumber?: string | null;
|
|
17
|
-
|
|
18
|
-
fullName: string;
|
|
19
|
-
dateOfBirth?: string | null;
|
|
20
|
-
stateOfBirth?: string;
|
|
21
|
-
relationType: string;
|
|
22
|
-
percentage: number;
|
|
23
|
-
countryOfResidence?: string;
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AccountBeneficiaryResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
accountId: string;
|
|
9
|
+
countryId: CountryId;
|
|
10
|
+
accountType: string;
|
|
11
|
+
directoryId: string;
|
|
12
|
+
peopleId: string;
|
|
13
|
+
|
|
14
|
+
beneficiaryDirectorId?: string;
|
|
15
|
+
beneficiaryPeopleId?: string;
|
|
16
|
+
phoneNumber?: string | null;
|
|
17
|
+
|
|
18
|
+
fullName: string;
|
|
19
|
+
dateOfBirth?: string | null;
|
|
20
|
+
stateOfBirth?: string;
|
|
21
|
+
relationType: string;
|
|
22
|
+
percentage: number;
|
|
23
|
+
countryOfResidence?: string;
|
|
24
24
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { IsString, IsOptional, IsNumber, Min, Max, IsDateString, IsUUID } from 'class-validator';
|
|
2
|
-
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
3
|
-
|
|
4
|
-
export class AccountBeneficiaryUpdateRequest {
|
|
5
|
-
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsUUID()
|
|
8
|
-
accountId?: string;
|
|
9
|
-
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsPhoneNumberFiado()
|
|
12
|
-
phoneNumber?: string;
|
|
13
|
-
|
|
14
|
-
@IsOptional()
|
|
15
|
-
@IsString()
|
|
16
|
-
fullName?: string;
|
|
17
|
-
|
|
18
|
-
@IsOptional()
|
|
19
|
-
@IsDateString()
|
|
20
|
-
dateOfBirth?: string;
|
|
21
|
-
|
|
22
|
-
@IsOptional()
|
|
23
|
-
@IsString()
|
|
24
|
-
stateOfBirth?: string;
|
|
25
|
-
|
|
26
|
-
@IsOptional()
|
|
27
|
-
@IsString()
|
|
28
|
-
relationType?: string;
|
|
29
|
-
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsNumber()
|
|
32
|
-
@Min(0)
|
|
33
|
-
@Max(100)
|
|
34
|
-
percentage?: number;
|
|
35
|
-
|
|
36
|
-
@IsOptional()
|
|
37
|
-
@IsString()
|
|
38
|
-
countryOfResidence?: string;
|
|
39
|
-
}
|
|
1
|
+
import { IsString, IsOptional, IsNumber, Min, Max, IsDateString, IsUUID } from 'class-validator';
|
|
2
|
+
import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
|
|
3
|
+
|
|
4
|
+
export class AccountBeneficiaryUpdateRequest {
|
|
5
|
+
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsUUID()
|
|
8
|
+
accountId?: string;
|
|
9
|
+
|
|
10
|
+
@IsOptional()
|
|
11
|
+
@IsPhoneNumberFiado()
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
fullName?: string;
|
|
17
|
+
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsDateString()
|
|
20
|
+
dateOfBirth?: string;
|
|
21
|
+
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
stateOfBirth?: string;
|
|
25
|
+
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
relationType?: string;
|
|
29
|
+
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsNumber()
|
|
32
|
+
@Min(0)
|
|
33
|
+
@Max(100)
|
|
34
|
+
percentage?: number;
|
|
35
|
+
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
countryOfResidence?: string;
|
|
39
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum AccountType {
|
|
5
|
-
PAGOCONFIADO = 'PAGOCONFIADO',
|
|
6
|
-
FIADO_INC = 'FIADO_INC',
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum AccountType {
|
|
5
|
+
PAGOCONFIADO = 'PAGOCONFIADO',
|
|
6
|
+
FIADO_INC = 'FIADO_INC',
|
|
7
7
|
}
|