@fiado/type-kit 1.2.10 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. package/README.md +70 -70
  2. package/bin/account/dtos/AccountResponse.d.ts +21 -0
  3. package/bin/account/dtos/AccountResponse.js +6 -0
  4. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  5. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  6. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  7. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  8. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  9. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  10. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  11. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  12. package/bin/account/enums/AccountStatus.d.ts +5 -0
  13. package/bin/account/enums/AccountStatus.js +9 -0
  14. package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +4 -0
  15. package/bin/card/dtos/CardCreateAdditionalRequest.js +13 -0
  16. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  17. package/bin/card/dtos/CardCreateRequest.js +176 -0
  18. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  19. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  20. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  21. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  22. package/bin/identity/dtos/PeopleResponse.d.ts +3 -0
  23. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  24. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  25. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  26. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  27. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  28. package/bin/pomelo/enums/CountryEnum.js +12 -0
  29. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  30. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  31. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  32. package/bin/pomelo/enums/SexEnum.js +8 -0
  33. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  34. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  35. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  36. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  37. package/bin/pomelo/index.d.ts +7 -0
  38. package/bin/pomelo/index.js +25 -0
  39. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  40. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  41. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  42. package/bin/tern/dtos/TernAddress.js +40 -0
  43. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  44. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  45. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  46. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  47. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  48. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  49. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  50. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  51. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  52. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  53. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  54. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  55. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  56. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  57. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  58. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  59. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  60. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  61. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  62. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  63. package/bin/tern/index.d.ts +11 -0
  64. package/bin/tern/index.js +29 -0
  65. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  66. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  67. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  68. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  69. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  70. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  71. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  72. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  73. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  74. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  75. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  76. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  77. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  78. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  79. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  80. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  81. package/package.json +23 -23
  82. package/src/account/dtos/AccountCreateRequest.ts +79 -79
  83. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  84. package/src/account/dtos/AccountInfo.ts +39 -39
  85. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  86. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  87. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  88. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  89. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  90. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  91. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  92. package/src/account/dtos/ExchangeInfo.ts +8 -8
  93. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  94. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  95. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  96. package/src/account/dtos/GetAccountResponse.ts +62 -62
  97. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  98. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  99. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  100. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  101. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  102. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  103. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  104. package/src/account/dtos/GetPocketResponse.ts +8 -8
  105. package/src/account/dtos/PocketBalanceItem.ts +17 -17
  106. package/src/account/dtos/PocketItem.ts +43 -43
  107. package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
  108. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  109. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  110. package/src/account/entities/AccountEntityBase.ts +12 -12
  111. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  112. package/src/account/enums/AccountLevelEnum.ts +5 -5
  113. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  114. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  115. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  116. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  117. package/src/account/index.ts +41 -41
  118. package/src/address/dtos/AddressBase.ts +130 -130
  119. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  120. package/src/address/dtos/AddressResponse.ts +41 -41
  121. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  122. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  123. package/src/address/dtos/Geometry.ts +4 -4
  124. package/src/address/dtos/OfficeDetails.ts +30 -30
  125. package/src/address/dtos/OperationSchedule.ts +8 -8
  126. package/src/address/dtos/Place.ts +83 -83
  127. package/src/address/dtos/Shipping.ts +36 -36
  128. package/src/address/dtos/Timezone.ts +5 -5
  129. package/src/address/enums/AddressProvider.ts +10 -10
  130. package/src/address/enums/AddressStatus.ts +9 -9
  131. package/src/address/index.ts +16 -16
  132. package/src/app/enums/App.ts +10 -10
  133. package/src/app/index.ts +3 -3
  134. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  135. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  136. package/src/authentication/index.ts +3 -3
  137. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  138. package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
  139. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  140. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
  141. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  142. package/src/bankAccount/index.ts +4 -4
  143. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  144. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  145. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  146. package/src/bbvaRst/index.ts +2 -2
  147. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  148. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  149. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  150. package/src/beneficiary/enums/AccountType.ts +6 -6
  151. package/src/beneficiary/index.ts +7 -7
  152. package/src/card/dtos/CardActivateRequest.ts +12 -12
  153. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  154. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  155. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  156. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  157. package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -65
  158. package/src/card/dtos/CardResponse.ts +34 -34
  159. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  160. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  161. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  162. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  163. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  164. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  165. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  166. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  167. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  168. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  169. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  170. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  171. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  172. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  173. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  174. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  175. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  176. package/src/card/enums/Brand.ts +7 -7
  177. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  178. package/src/card/enums/CardIssuing.ts +6 -6
  179. package/src/card/enums/CardType.ts +4 -4
  180. package/src/card/enums/CardUpdateKey.ts +4 -4
  181. package/src/card/enums/CreditOrDebit.ts +5 -5
  182. package/src/card/enums/DeliveryChannel.ts +7 -7
  183. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  184. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  185. package/src/card/enums/IssuanceType.ts +5 -5
  186. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  187. package/src/card/enums/OwnershipType.ts +3 -3
  188. package/src/card/enums/ShippingStatus.ts +8 -8
  189. package/src/card/enums/Status.ts +6 -6
  190. package/src/card/enums/UpdateKey.ts +5 -5
  191. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  192. package/src/card/index.ts +50 -50
  193. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  194. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  195. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +47 -47
  196. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  197. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  198. package/src/contactInfo/index.ts +2 -2
  199. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  200. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  201. package/src/contract/index.ts +4 -4
  202. package/src/country/enums/Country.ts +6 -6
  203. package/src/country/enums/CountryId.ts +6 -6
  204. package/src/country/index.ts +5 -5
  205. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  206. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  207. package/src/creditContract/index.ts +5 -5
  208. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  209. package/src/currency/index.ts +2 -2
  210. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  211. package/src/directory/dtos/External.ts +6 -6
  212. package/src/directory/enums/Profile.ts +6 -6
  213. package/src/directory/enums/Scope.ts +7 -7
  214. package/src/directory/enums/Status.ts +8 -8
  215. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  216. package/src/directory/index.ts +7 -7
  217. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  218. package/src/eventBridge/index.ts +1 -1
  219. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  220. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  221. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  222. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  223. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  224. package/src/exchangeRate/index.ts +9 -9
  225. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  226. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  227. package/src/genericMessage/index.ts +1 -1
  228. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  229. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  230. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  231. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  232. package/src/group/dtos/GroupResponse.ts +17 -17
  233. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  234. package/src/group/enums/GroupAction.ts +8 -8
  235. package/src/group/enums/GroupStatus.ts +6 -6
  236. package/src/group/enums/RelationStatus.ts +8 -8
  237. package/src/group/enums/RelationType.ts +9 -9
  238. package/src/group/index.ts +18 -18
  239. package/src/header/TokenPayload.ts +18 -18
  240. package/src/header/index.ts +3 -3
  241. package/src/helpers/ValidationUtils.ts +32 -32
  242. package/src/helpers/constans/regex.ts +12 -12
  243. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  244. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  245. package/src/identity/dtos/PeopleResponse.ts +74 -72
  246. package/src/identity/dtos/PeopleUpdateRequest.ts +71 -71
  247. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  248. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  249. package/src/identity/enums/SexDocument.ts +6 -6
  250. package/src/identity/enums/TypeOfDocument.ts +5 -5
  251. package/src/identity/index.ts +12 -12
  252. package/src/index.ts +32 -32
  253. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  254. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  255. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  256. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  257. package/src/notificationMessages/index.ts +5 -5
  258. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  259. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  260. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  261. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  262. package/src/productCatalog/enums/ProductTypeEnum.ts +11 -11
  263. package/src/productCatalog/index.ts +4 -4
  264. package/src/provider/enums/Provider.ts +4 -4
  265. package/src/provider/index.ts +1 -1
  266. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  267. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  268. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  269. package/src/servicePayment/index.ts +1 -1
  270. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  271. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  272. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  273. package/src/sessionActivity/index.ts +2 -2
  274. package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
  275. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
  276. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
  277. package/src/stpSpei/index.ts +3 -3
  278. package/src/transaction/dtos/Credit.ts +24 -24
  279. package/src/transaction/dtos/Debit.ts +20 -20
  280. package/src/transaction/dtos/Notional.ts +20 -20
  281. package/src/transaction/dtos/Product.ts +22 -22
  282. package/src/transaction/dtos/Total.ts +20 -20
  283. package/src/transaction/dtos/TransactionCreateRequest.ts +99 -99
  284. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  285. package/src/transaction/dtos/TransactionGetResponse.ts +17 -17
  286. package/src/transaction/enums/OperationEnum.ts +3 -3
  287. package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
  288. package/src/transaction/index.ts +8 -8
  289. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  290. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  291. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +17 -17
  292. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  293. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
  294. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  295. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  296. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  297. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
  298. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  299. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  300. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  301. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  302. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  303. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  304. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  305. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  306. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +13 -13
  307. package/src/transactionProcessor/index.ts +19 -19
@@ -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
  }
@@ -1,9 +1,9 @@
1
-
2
-
3
-
4
- export enum RelationStatus {
5
-
6
- ACTIVE = 'ACTIVE',
7
- INACTIVE = 'INACTIVE',
8
- PENDING = 'PENDING',
1
+
2
+
3
+
4
+ export enum RelationStatus {
5
+
6
+ ACTIVE = 'ACTIVE',
7
+ INACTIVE = 'INACTIVE',
8
+ PENDING = 'PENDING',
9
9
  }
@@ -1,10 +1,10 @@
1
-
2
-
3
-
4
- export enum RelationType {
5
-
6
- MEMBER = 'MEMBER',
7
- OWNER = 'OWNER',
8
- AFFILIATE = 'AFFILIATE',
9
-
1
+
2
+
3
+
4
+ export enum RelationType {
5
+
6
+ MEMBER = 'MEMBER',
7
+ OWNER = 'OWNER',
8
+ AFFILIATE = 'AFFILIATE',
9
+
10
10
  }