@fiado/type-kit 1.1.6 → 1.1.8
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/contactInfo/dtos/GetAllContactInfoResponse.d.ts +13 -0
- package/bin/contactInfo/dtos/GetAllContactInfoResponse.js +6 -0
- package/bin/contactInfo/enums/TypeOfContactIdEnum.d.ts +4 -0
- package/bin/contactInfo/enums/TypeOfContactIdEnum.js +8 -0
- package/bin/contactInfo/index.d.ts +2 -0
- package/bin/contactInfo/index.js +18 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +1 -0
- package/bin/identity/dtos/PeopleUpdateRequest.d.ts +1 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -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/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 +43 -43
- 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/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 +35 -35
- 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/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardAdditionalRequest.ts +25 -25
- 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 +4 -4
- package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
- package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
- 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 +47 -47
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +14 -0
- package/src/contactInfo/enums/TypeOfContactIdEnum.ts +4 -0
- package/src/contactInfo/index.ts +2 -0
- 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 +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 -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 +72 -71
- package/src/identity/dtos/PeopleUpdateRequest.ts +70 -69
- 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 +25 -24
- 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/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/TransactionCreateRequest.ts +4 -4
- 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/index.ts +7 -7
- package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
- package/bin/account/dtos/CreateBankAccountInput.js +0 -6
- package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
- package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum Status {
|
|
4
|
-
ACTIVE = "ACTIVE",
|
|
5
|
-
PAUSED = "PAUSED",
|
|
6
|
-
PROHIBITED = "PROHIBITED",
|
|
7
|
-
SIGN_UP = "SIGN_UP"
|
|
8
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum Status {
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
PAUSED = "PAUSED",
|
|
6
|
+
PROHIBITED = "PROHIBITED",
|
|
7
|
+
SIGN_UP = "SIGN_UP"
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum TypeOfDirectoryId {
|
|
4
|
-
USER = "USER",
|
|
5
|
-
BACKOFFICE = "BACKOFFICE",
|
|
6
|
-
AGENT = "AGENT"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum TypeOfDirectoryId {
|
|
4
|
+
USER = "USER",
|
|
5
|
+
BACKOFFICE = "BACKOFFICE",
|
|
6
|
+
AGENT = "AGENT"
|
|
7
7
|
}
|
package/src/directory/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/DirectoryResponse';
|
|
4
|
-
export * from './dtos/External';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//enums
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/DirectoryResponse';
|
|
4
|
+
export * from './dtos/External';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
//enums
|
|
8
8
|
export * from './enums/TypeOfDirectoryId';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
|
|
2
|
-
|
|
3
|
-
export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
|
|
4
|
-
|
|
1
|
+
import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
|
|
2
|
+
|
|
3
|
+
export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
|
|
4
|
+
|
|
5
5
|
}
|
package/src/eventBridge/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
//dto
|
|
1
|
+
//dto
|
|
2
2
|
export * from './dto/EventBridgeMessageRequest';
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
3
|
-
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
4
|
-
import { Type } from "class-transformer";
|
|
5
|
-
import { CountryId } from "../../country";
|
|
6
|
-
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
7
|
-
|
|
8
|
-
export class ExchangeRateCreateRequest {
|
|
9
|
-
|
|
10
|
-
@IsUUID()
|
|
11
|
-
id: string;
|
|
12
|
-
|
|
13
|
-
@IsNumber()
|
|
14
|
-
adjustmentExchangeRate: number;
|
|
15
|
-
|
|
16
|
-
@IsNumber()
|
|
17
|
-
adjustmentPercentage: number;
|
|
18
|
-
|
|
19
|
-
@ValidateNested()
|
|
20
|
-
@Type(() => CurrencyResponse)
|
|
21
|
-
destinationCurrency: CurrencyResponse;
|
|
22
|
-
|
|
23
|
-
@IsString()
|
|
24
|
-
destinationCurrencyId: CountryId;
|
|
25
|
-
|
|
26
|
-
@IsNumber()
|
|
27
|
-
exchangeRate: number;
|
|
28
|
-
|
|
29
|
-
@IsNumber()
|
|
30
|
-
fxFactor: number;
|
|
31
|
-
|
|
32
|
-
@IsNumber()
|
|
33
|
-
@Max(50000)
|
|
34
|
-
@Min(10)
|
|
35
|
-
maxRequestAmount: number;
|
|
36
|
-
|
|
37
|
-
@IsNumber()
|
|
38
|
-
@Max(50000)
|
|
39
|
-
@Min(10)
|
|
40
|
-
minRequestAmount: number;
|
|
41
|
-
|
|
42
|
-
@ValidateNested()
|
|
43
|
-
@Type(() => CurrencyResponse)
|
|
44
|
-
originCurrency: CurrencyResponse;
|
|
45
|
-
|
|
46
|
-
@IsString()
|
|
47
|
-
originCurrencyId: string;
|
|
48
|
-
|
|
49
|
-
@IsEnum(ExchangeRateStatus)
|
|
50
|
-
status: ExchangeRateStatus;
|
|
1
|
+
|
|
2
|
+
import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
|
|
3
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
4
|
+
import { Type } from "class-transformer";
|
|
5
|
+
import { CountryId } from "../../country";
|
|
6
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
7
|
+
|
|
8
|
+
export class ExchangeRateCreateRequest {
|
|
9
|
+
|
|
10
|
+
@IsUUID()
|
|
11
|
+
id: string;
|
|
12
|
+
|
|
13
|
+
@IsNumber()
|
|
14
|
+
adjustmentExchangeRate: number;
|
|
15
|
+
|
|
16
|
+
@IsNumber()
|
|
17
|
+
adjustmentPercentage: number;
|
|
18
|
+
|
|
19
|
+
@ValidateNested()
|
|
20
|
+
@Type(() => CurrencyResponse)
|
|
21
|
+
destinationCurrency: CurrencyResponse;
|
|
22
|
+
|
|
23
|
+
@IsString()
|
|
24
|
+
destinationCurrencyId: CountryId;
|
|
25
|
+
|
|
26
|
+
@IsNumber()
|
|
27
|
+
exchangeRate: number;
|
|
28
|
+
|
|
29
|
+
@IsNumber()
|
|
30
|
+
fxFactor: number;
|
|
31
|
+
|
|
32
|
+
@IsNumber()
|
|
33
|
+
@Max(50000)
|
|
34
|
+
@Min(10)
|
|
35
|
+
maxRequestAmount: number;
|
|
36
|
+
|
|
37
|
+
@IsNumber()
|
|
38
|
+
@Max(50000)
|
|
39
|
+
@Min(10)
|
|
40
|
+
minRequestAmount: number;
|
|
41
|
+
|
|
42
|
+
@ValidateNested()
|
|
43
|
+
@Type(() => CurrencyResponse)
|
|
44
|
+
originCurrency: CurrencyResponse;
|
|
45
|
+
|
|
46
|
+
@IsString()
|
|
47
|
+
originCurrencyId: string;
|
|
48
|
+
|
|
49
|
+
@IsEnum(ExchangeRateStatus)
|
|
50
|
+
status: ExchangeRateStatus;
|
|
51
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExchangeRateResponse } from "./ExchangeRateResponse";
|
|
2
|
-
|
|
3
|
-
export class ExchangeRateCreateResponse extends ExchangeRateResponse {
|
|
4
|
-
|
|
1
|
+
import { ExchangeRateResponse } from "./ExchangeRateResponse";
|
|
2
|
+
|
|
3
|
+
export class ExchangeRateCreateResponse extends ExchangeRateResponse {
|
|
4
|
+
|
|
5
5
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
2
|
-
import { CountryId } from "../../country";
|
|
3
|
-
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
4
|
-
|
|
5
|
-
export class ExchangeRateResponse {
|
|
6
|
-
|
|
7
|
-
id: string;
|
|
8
|
-
adjustmentExchangeRate: number;
|
|
9
|
-
adjustmentPercentage: number;
|
|
10
|
-
createDate: string;
|
|
11
|
-
destinationCurrency: CurrencyResponse;
|
|
12
|
-
destinationCurrencyId: CountryId;
|
|
13
|
-
exchangeRate: number;
|
|
14
|
-
fxFactor: number;
|
|
15
|
-
maxRequestAmount: number;
|
|
16
|
-
minRequestAmount: number;
|
|
17
|
-
originCurrency: CurrencyResponse;
|
|
18
|
-
originCurrencyId: string;
|
|
19
|
-
status: ExchangeRateStatus;
|
|
1
|
+
import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
|
|
2
|
+
import { CountryId } from "../../country";
|
|
3
|
+
import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
|
|
4
|
+
|
|
5
|
+
export class ExchangeRateResponse {
|
|
6
|
+
|
|
7
|
+
id: string;
|
|
8
|
+
adjustmentExchangeRate: number;
|
|
9
|
+
adjustmentPercentage: number;
|
|
10
|
+
createDate: string;
|
|
11
|
+
destinationCurrency: CurrencyResponse;
|
|
12
|
+
destinationCurrencyId: CountryId;
|
|
13
|
+
exchangeRate: number;
|
|
14
|
+
fxFactor: number;
|
|
15
|
+
maxRequestAmount: number;
|
|
16
|
+
minRequestAmount: number;
|
|
17
|
+
originCurrency: CurrencyResponse;
|
|
18
|
+
originCurrencyId: string;
|
|
19
|
+
status: ExchangeRateStatus;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default class GetExchangeRatesRequest {
|
|
2
|
-
originCurrencyId: string;
|
|
3
|
-
destinationCurrencyId: string;
|
|
1
|
+
export default class GetExchangeRatesRequest {
|
|
2
|
+
originCurrencyId: string;
|
|
3
|
+
destinationCurrencyId: string;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum ExchangeRateStatus {
|
|
4
|
-
ENABLED = 'ENABLED',
|
|
5
|
-
DISABLED = 'DISABLED'
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum ExchangeRateStatus {
|
|
4
|
+
ENABLED = 'ENABLED',
|
|
5
|
+
DISABLED = 'DISABLED'
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//dtos
|
|
2
|
-
export * from './dtos/ExchangeRateResponse';
|
|
3
|
-
export * from './dtos/ExchangeRateCreateRequest';
|
|
4
|
-
export * from './dtos/ExchangeRateCreateResponse';
|
|
5
|
-
export * from './dtos/GetExchangeRatesRequest';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//enums
|
|
1
|
+
//dtos
|
|
2
|
+
export * from './dtos/ExchangeRateResponse';
|
|
3
|
+
export * from './dtos/ExchangeRateCreateRequest';
|
|
4
|
+
export * from './dtos/ExchangeRateCreateResponse';
|
|
5
|
+
export * from './dtos/GetExchangeRatesRequest';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
//enums
|
|
10
10
|
export * from './enums/ExchangeRateStatus';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IsString, IsUUID, IsEnum } from "class-validator";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export class GenericMessageRequest<T> {
|
|
8
|
-
|
|
9
|
-
@IsUUID()
|
|
10
|
-
id?: string;
|
|
11
|
-
@IsEnum(GenericMessageSourceEnum)
|
|
12
|
-
source: GenericMessageSourceEnum;
|
|
13
|
-
@IsString()
|
|
14
|
-
process:string
|
|
15
|
-
|
|
16
|
-
payload(input:T){ return input}
|
|
17
|
-
}
|
|
1
|
+
import { IsString, IsUUID, IsEnum } from "class-validator";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class GenericMessageRequest<T> {
|
|
8
|
+
|
|
9
|
+
@IsUUID()
|
|
10
|
+
id?: string;
|
|
11
|
+
@IsEnum(GenericMessageSourceEnum)
|
|
12
|
+
source: GenericMessageSourceEnum;
|
|
13
|
+
@IsString()
|
|
14
|
+
process:string
|
|
15
|
+
|
|
16
|
+
payload(input:T){ return input}
|
|
17
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export enum GenericMessageSourceEnum {
|
|
2
|
-
EVENT_BRIDGE='EVENT_BRIDGE'
|
|
3
|
-
}
|
|
1
|
+
export enum GenericMessageSourceEnum {
|
|
2
|
+
EVENT_BRIDGE='EVENT_BRIDGE'
|
|
3
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
//enums
|
|
1
|
+
//enums
|
|
2
2
|
export * from './enums/GenericMessageSourceEnum';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
|
|
2
|
-
import { RelationType } from "../enums/RelationType";
|
|
3
|
-
import { RelationStatus } from "../enums/RelationStatus";
|
|
4
|
-
import { GroupAction } from "../enums/GroupAction";
|
|
5
|
-
|
|
6
|
-
export class GroupAddDirectoryRequest {
|
|
7
|
-
@IsNotEmpty()
|
|
8
|
-
@IsString()
|
|
9
|
-
@Length(3, 50)
|
|
10
|
-
groupId: string;
|
|
11
|
-
|
|
12
|
-
@ArrayNotEmpty()
|
|
13
|
-
@IsUUID(4, { each: true })
|
|
14
|
-
directoryIds: string[];
|
|
15
|
-
|
|
16
|
-
@IsEnum(RelationType)
|
|
17
|
-
@IsNotEmpty()
|
|
18
|
-
relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
|
|
19
|
-
|
|
20
|
-
@IsEnum(RelationStatus)
|
|
21
|
-
@IsNotEmpty()
|
|
22
|
-
status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
|
|
23
|
-
|
|
24
|
-
@IsEnum(GroupAction)
|
|
25
|
-
action: GroupAction;
|
|
26
|
-
|
|
27
|
-
}
|
|
1
|
+
import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
|
|
2
|
+
import { RelationType } from "../enums/RelationType";
|
|
3
|
+
import { RelationStatus } from "../enums/RelationStatus";
|
|
4
|
+
import { GroupAction } from "../enums/GroupAction";
|
|
5
|
+
|
|
6
|
+
export class GroupAddDirectoryRequest {
|
|
7
|
+
@IsNotEmpty()
|
|
8
|
+
@IsString()
|
|
9
|
+
@Length(3, 50)
|
|
10
|
+
groupId: string;
|
|
11
|
+
|
|
12
|
+
@ArrayNotEmpty()
|
|
13
|
+
@IsUUID(4, { each: true })
|
|
14
|
+
directoryIds: string[];
|
|
15
|
+
|
|
16
|
+
@IsEnum(RelationType)
|
|
17
|
+
@IsNotEmpty()
|
|
18
|
+
relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
|
|
19
|
+
|
|
20
|
+
@IsEnum(RelationStatus)
|
|
21
|
+
@IsNotEmpty()
|
|
22
|
+
status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
|
|
23
|
+
|
|
24
|
+
@IsEnum(GroupAction)
|
|
25
|
+
action: GroupAction;
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import {IsEnum, IsNotEmpty, IsOptional, IsString, Length} from "class-validator";
|
|
2
|
-
import {Transform} from "class-transformer";
|
|
3
|
-
import {GroupStatus} from "../enums/GroupStatus";
|
|
4
|
-
|
|
5
|
-
export class GroupCreateRequest {
|
|
6
|
-
@IsNotEmpty()
|
|
7
|
-
@IsString()
|
|
8
|
-
@Length(3, 50)
|
|
9
|
-
id: string;
|
|
10
|
-
|
|
11
|
-
@IsNotEmpty()
|
|
12
|
-
@IsString()
|
|
13
|
-
@Length(1, 50)
|
|
14
|
-
name: string;
|
|
15
|
-
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsString()
|
|
18
|
-
@Length(0, 200)
|
|
19
|
-
description: string;
|
|
20
|
-
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@Transform(({value}) => value ?? null)
|
|
23
|
-
leaderEmail?: string | null;
|
|
24
|
-
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@Transform(({value}) => value ?? null)
|
|
27
|
-
leaderDirectoryId?: string | null;
|
|
28
|
-
|
|
29
|
-
@IsEnum(GroupStatus)
|
|
30
|
-
status: GroupStatus;
|
|
31
|
-
|
|
32
|
-
@IsOptional()
|
|
33
|
-
@Length(0, 20)
|
|
34
|
-
@Transform(({value}) => value ?? null)
|
|
35
|
-
codeToRefer: string | null;
|
|
36
|
-
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@IsString()
|
|
39
|
-
@Length(0, 100)
|
|
40
|
-
@Transform(({value}) => value ?? null)
|
|
41
|
-
leaderNames?: string | null;
|
|
42
|
-
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@IsString()
|
|
45
|
-
@Length(0, 15)
|
|
46
|
-
@Transform(({value}) => value ?? null)
|
|
47
|
-
phoneNumber?: string | null;
|
|
48
|
-
|
|
49
|
-
@IsOptional()
|
|
50
|
-
@IsString()
|
|
51
|
-
@Length(0, 100)
|
|
52
|
-
@Transform(({value}) => value ?? null)
|
|
53
|
-
category?: string | null;
|
|
54
|
-
}
|
|
1
|
+
import {IsEnum, IsNotEmpty, IsOptional, IsString, Length} from "class-validator";
|
|
2
|
+
import {Transform} from "class-transformer";
|
|
3
|
+
import {GroupStatus} from "../enums/GroupStatus";
|
|
4
|
+
|
|
5
|
+
export class GroupCreateRequest {
|
|
6
|
+
@IsNotEmpty()
|
|
7
|
+
@IsString()
|
|
8
|
+
@Length(3, 50)
|
|
9
|
+
id: string;
|
|
10
|
+
|
|
11
|
+
@IsNotEmpty()
|
|
12
|
+
@IsString()
|
|
13
|
+
@Length(1, 50)
|
|
14
|
+
name: string;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
@Length(0, 200)
|
|
19
|
+
description: string;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@Transform(({value}) => value ?? null)
|
|
23
|
+
leaderEmail?: string | null;
|
|
24
|
+
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@Transform(({value}) => value ?? null)
|
|
27
|
+
leaderDirectoryId?: string | null;
|
|
28
|
+
|
|
29
|
+
@IsEnum(GroupStatus)
|
|
30
|
+
status: GroupStatus;
|
|
31
|
+
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@Length(0, 20)
|
|
34
|
+
@Transform(({value}) => value ?? null)
|
|
35
|
+
codeToRefer: string | null;
|
|
36
|
+
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
@Length(0, 100)
|
|
40
|
+
@Transform(({value}) => value ?? null)
|
|
41
|
+
leaderNames?: string | null;
|
|
42
|
+
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsString()
|
|
45
|
+
@Length(0, 15)
|
|
46
|
+
@Transform(({value}) => value ?? null)
|
|
47
|
+
phoneNumber?: string | null;
|
|
48
|
+
|
|
49
|
+
@IsOptional()
|
|
50
|
+
@IsString()
|
|
51
|
+
@Length(0, 100)
|
|
52
|
+
@Transform(({value}) => value ?? null)
|
|
53
|
+
category?: string | null;
|
|
54
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { RelationStatus } from "../enums/RelationStatus"
|
|
2
|
-
import { RelationType } from "../enums/RelationType"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export class GroupDirectoryRelationsResponse {
|
|
7
|
-
|
|
8
|
-
PK: string
|
|
9
|
-
SK: string
|
|
10
|
-
directoryId: string
|
|
11
|
-
groupId: string
|
|
12
|
-
relationType: RelationType
|
|
13
|
-
status: RelationStatus
|
|
14
|
-
agent: string
|
|
15
|
-
createdAt: string
|
|
16
|
-
updatedAt: string
|
|
17
|
-
phoneNumber: string
|
|
18
|
-
operationId: string
|
|
19
|
-
indexName: string
|
|
20
|
-
|
|
1
|
+
import { RelationStatus } from "../enums/RelationStatus"
|
|
2
|
+
import { RelationType } from "../enums/RelationType"
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GroupDirectoryRelationsResponse {
|
|
7
|
+
|
|
8
|
+
PK: string
|
|
9
|
+
SK: string
|
|
10
|
+
directoryId: string
|
|
11
|
+
groupId: string
|
|
12
|
+
relationType: RelationType
|
|
13
|
+
status: RelationStatus
|
|
14
|
+
agent: string
|
|
15
|
+
createdAt: string
|
|
16
|
+
updatedAt: string
|
|
17
|
+
phoneNumber: string
|
|
18
|
+
operationId: string
|
|
19
|
+
indexName: string
|
|
20
|
+
|
|
21
21
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IsOptional, IsString, Length } from "class-validator";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export class GroupDirectoryRelationsUpdateRequest {
|
|
5
|
-
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsString()
|
|
8
|
-
@Length(1, 20)
|
|
9
|
-
agent: string
|
|
10
|
-
|
|
1
|
+
import { IsOptional, IsString, Length } from "class-validator";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class GroupDirectoryRelationsUpdateRequest {
|
|
5
|
+
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsString()
|
|
8
|
+
@Length(1, 20)
|
|
9
|
+
agent: string
|
|
10
|
+
|
|
11
11
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { GroupStatus } from "../enums/GroupStatus"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export class GroupResponse {
|
|
5
|
-
|
|
6
|
-
id: string
|
|
7
|
-
name: string
|
|
8
|
-
description: string
|
|
9
|
-
status: GroupStatus
|
|
10
|
-
leaderNames: string | null
|
|
11
|
-
phoneNumber: string | null
|
|
12
|
-
leaderEmail: string | null
|
|
13
|
-
leaderDirectoryId: string | null
|
|
14
|
-
codesToRefer: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { GroupStatus } from "../enums/GroupStatus"
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class GroupResponse {
|
|
5
|
+
|
|
6
|
+
id: string
|
|
7
|
+
name: string
|
|
8
|
+
description: string
|
|
9
|
+
status: GroupStatus
|
|
10
|
+
leaderNames: string | null
|
|
11
|
+
phoneNumber: string | null
|
|
12
|
+
leaderEmail: string | null
|
|
13
|
+
leaderDirectoryId: string | null
|
|
14
|
+
codesToRefer: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
|
|
2
|
-
import { GroupStatus } from "../enums/GroupStatus";
|
|
3
|
-
|
|
4
|
-
export class GroupUpdateRequest {
|
|
5
|
-
|
|
6
|
-
@IsOptional()
|
|
7
|
-
@IsString()
|
|
8
|
-
@Length(1, 50)
|
|
9
|
-
name: string;
|
|
10
|
-
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsString()
|
|
13
|
-
@Length(1, 200)
|
|
14
|
-
description: string;
|
|
15
|
-
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsEmail()
|
|
18
|
-
leader: string
|
|
19
|
-
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsEnum(GroupStatus)
|
|
22
|
-
status: GroupStatus
|
|
23
|
-
|
|
24
|
-
@IsOptional()
|
|
25
|
-
@Length(3, 20)
|
|
26
|
-
codeToRefer: string;
|
|
27
|
-
|
|
28
|
-
@IsOptional()
|
|
29
|
-
@Length(3, 20)
|
|
30
|
-
category: string;
|
|
31
|
-
}
|
|
1
|
+
import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
|
|
2
|
+
import { GroupStatus } from "../enums/GroupStatus";
|
|
3
|
+
|
|
4
|
+
export class GroupUpdateRequest {
|
|
5
|
+
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsString()
|
|
8
|
+
@Length(1, 50)
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
@Length(1, 200)
|
|
14
|
+
description: string;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsEmail()
|
|
18
|
+
leader: string
|
|
19
|
+
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsEnum(GroupStatus)
|
|
22
|
+
status: GroupStatus
|
|
23
|
+
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@Length(3, 20)
|
|
26
|
+
codeToRefer: string;
|
|
27
|
+
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@Length(3, 20)
|
|
30
|
+
category: string;
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum GroupAction {
|
|
5
|
-
|
|
6
|
-
ADD='ADD',
|
|
7
|
-
REMOVE='REMOVE'
|
|
8
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum GroupAction {
|
|
5
|
+
|
|
6
|
+
ADD='ADD',
|
|
7
|
+
REMOVE='REMOVE'
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export enum GroupStatus {
|
|
5
|
-
ACTIVE = 'ACTIVE',
|
|
6
|
-
INACTIVE = 'INACTIVE',
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export enum GroupStatus {
|
|
5
|
+
ACTIVE = 'ACTIVE',
|
|
6
|
+
INACTIVE = 'INACTIVE',
|
|
7
7
|
}
|