@fiado/type-kit 1.1.54 → 1.1.56

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 (399) hide show
  1. package/.idea/aws.xml +10 -10
  2. package/.idea/fiado-type-kit.iml +11 -11
  3. package/.idea/modules.xml +7 -7
  4. package/.idea/vcs.xml +5 -5
  5. package/README.md +70 -70
  6. package/bin/account/dtos/GetAccountResponse.d.ts +1 -1
  7. package/bin/account/dtos/GetAccountResponse.js +1 -1
  8. package/bin/card/dtos/CardApplicationRequest.d.ts +1 -0
  9. package/bin/card/dtos/CardApplicationRequest.js +6 -0
  10. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  11. package/bin/tern/dtos/TernAddress.js +40 -0
  12. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  13. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  14. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  15. package/bin/{transactionProcessor/dtos/private/ExecutePocketOperationRequest.js → tern/dtos/TernCreateAccountResponse.js} +11 -6
  16. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  17. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  18. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  19. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  20. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  21. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  22. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  23. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  24. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  25. package/bin/{productCatalog/dtos/GetProductCatalogRequest.js → tern/dtos/TernGetUserRequest.js} +6 -5
  26. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  27. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  28. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  29. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  30. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  31. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  32. package/bin/tern/index.d.ts +11 -0
  33. package/bin/tern/index.js +29 -0
  34. package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
  35. package/bin/transaction/dtos/TransactionCreateRequest.js +8 -0
  36. package/package.json +23 -23
  37. package/src/account/dtos/AccountCreateRequest.ts +78 -78
  38. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  39. package/src/account/dtos/AccountInfo.ts +39 -39
  40. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  41. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  42. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  43. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  44. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  45. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  46. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  47. package/src/account/dtos/ExchangeInfo.ts +8 -8
  48. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  49. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  50. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  51. package/src/account/dtos/GetAccountResponse.ts +62 -62
  52. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  53. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  54. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  55. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  56. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  57. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  58. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  59. package/src/account/dtos/GetPocketResponse.ts +8 -8
  60. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  61. package/src/account/dtos/PocketItem.ts +43 -43
  62. package/src/account/dtos/UpdateBalanceOperation.ts +8 -8
  63. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  64. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  65. package/src/account/entities/AccountEntityBase.ts +12 -12
  66. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  67. package/src/account/enums/AccountLevelEnum.ts +5 -5
  68. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  69. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  70. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  71. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  72. package/src/account/index.ts +41 -41
  73. package/src/address/dtos/AddressBase.ts +130 -130
  74. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  75. package/src/address/dtos/AddressResponse.ts +41 -41
  76. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  77. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  78. package/src/address/dtos/Geometry.ts +4 -4
  79. package/src/address/dtos/OfficeDetails.ts +30 -30
  80. package/src/address/dtos/OperationSchedule.ts +8 -8
  81. package/src/address/dtos/Place.ts +83 -83
  82. package/src/address/dtos/Shipping.ts +36 -36
  83. package/src/address/dtos/Timezone.ts +5 -5
  84. package/src/address/enums/AddressProvider.ts +10 -10
  85. package/src/address/enums/AddressStatus.ts +9 -9
  86. package/src/address/index.ts +16 -16
  87. package/src/app/enums/App.ts +10 -10
  88. package/src/app/index.ts +3 -3
  89. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  90. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  91. package/src/authentication/index.ts +3 -3
  92. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  93. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  94. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  95. package/src/beneficiary/enums/AccountType.ts +6 -6
  96. package/src/beneficiary/index.ts +7 -7
  97. package/src/card/dtos/CardActivateRequest.ts +12 -12
  98. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  99. package/src/card/dtos/CardAdditionalResponse.ts +12 -12
  100. package/src/card/dtos/CardApplicationRequest.ts +27 -22
  101. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  102. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  103. package/src/card/dtos/CardResponse.ts +34 -34
  104. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  105. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  106. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  107. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  108. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  109. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  110. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  111. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  112. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  113. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  114. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  115. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  116. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  117. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  118. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  119. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  120. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  121. package/src/card/enums/Brand.ts +7 -7
  122. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  123. package/src/card/enums/CardIssuing.ts +6 -6
  124. package/src/card/enums/CardType.ts +4 -4
  125. package/src/card/enums/CardUpdateKey.ts +4 -4
  126. package/src/card/enums/CreditOrDebit.ts +5 -5
  127. package/src/card/enums/DeliveryChannel.ts +7 -7
  128. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  129. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  130. package/src/card/enums/IssuanceType.ts +5 -5
  131. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  132. package/src/card/enums/OwnershipType.ts +3 -3
  133. package/src/card/enums/ShippingStatus.ts +8 -8
  134. package/src/card/enums/Status.ts +6 -6
  135. package/src/card/enums/UpdateKey.ts +5 -5
  136. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  137. package/src/card/index.ts +50 -50
  138. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  139. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  140. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  141. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  142. package/src/contactInfo/index.ts +1 -1
  143. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  144. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  145. package/src/contract/index.ts +4 -4
  146. package/src/country/enums/Country.ts +6 -6
  147. package/src/country/enums/CountryId.ts +6 -6
  148. package/src/country/index.ts +5 -5
  149. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  150. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  151. package/src/creditContract/index.ts +5 -5
  152. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  153. package/src/currency/index.ts +2 -2
  154. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  155. package/src/directory/dtos/External.ts +6 -6
  156. package/src/directory/enums/Profile.ts +6 -6
  157. package/src/directory/enums/Scope.ts +7 -7
  158. package/src/directory/enums/Status.ts +8 -8
  159. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  160. package/src/directory/index.ts +7 -7
  161. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  162. package/src/eventBridge/index.ts +1 -1
  163. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  164. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  165. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  166. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  167. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  168. package/src/exchangeRate/index.ts +9 -9
  169. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  170. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  171. package/src/genericMessage/index.ts +1 -1
  172. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  173. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  174. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  175. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  176. package/src/group/dtos/GroupResponse.ts +17 -17
  177. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  178. package/src/group/enums/GroupAction.ts +8 -8
  179. package/src/group/enums/GroupStatus.ts +6 -6
  180. package/src/group/enums/RelationStatus.ts +8 -8
  181. package/src/group/enums/RelationType.ts +9 -9
  182. package/src/group/index.ts +18 -18
  183. package/src/header/TokenPayload.ts +18 -18
  184. package/src/header/index.ts +3 -3
  185. package/src/helpers/ValidationUtils.ts +32 -32
  186. package/src/helpers/constans/regex.ts +12 -12
  187. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  188. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  189. package/src/identity/dtos/PeopleResponse.ts +72 -72
  190. package/src/identity/dtos/PeopleUpdateRequest.ts +71 -71
  191. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  192. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  193. package/src/identity/enums/SexDocument.ts +6 -6
  194. package/src/identity/enums/TypeOfDocument.ts +5 -5
  195. package/src/identity/index.ts +12 -12
  196. package/src/index.ts +28 -28
  197. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  198. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  199. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  200. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  201. package/src/notificationMessages/index.ts +5 -5
  202. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  203. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  204. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  205. package/src/productCatalog/enums/ProductTypeEnum.ts +8 -8
  206. package/src/productCatalog/index.ts +4 -4
  207. package/src/provider/enums/Provider.ts +4 -4
  208. package/src/provider/index.ts +1 -1
  209. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  210. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  211. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  212. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  213. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  214. package/src/sessionActivity/index.ts +2 -2
  215. package/src/transaction/dtos/Credit.ts +21 -21
  216. package/src/transaction/dtos/Debit.ts +20 -20
  217. package/src/transaction/dtos/Notional.ts +20 -20
  218. package/src/transaction/dtos/Product.ts +21 -21
  219. package/src/transaction/dtos/Total.ts +20 -20
  220. package/src/transaction/dtos/TransactionCreateRequest.ts +101 -93
  221. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  222. package/src/transaction/enums/OperationEnum.ts +3 -3
  223. package/src/transaction/index.ts +5 -5
  224. package/src/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.ts +4 -4
  225. package/src/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.ts +7 -7
  226. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
  227. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
  228. package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
  229. package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
  230. package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
  231. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
  232. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +12 -12
  233. package/src/transactionProcessor/index.ts +11 -11
  234. package/.idea/sonarlint/issuestore/0/2/02175ba1c7b82f17c1f95edd897711cf21fc8b55 +0 -0
  235. package/.idea/sonarlint/issuestore/0/3/0382ec9d8bd1d671b35f3cce2e83a60a6f0d4e92 +0 -0
  236. package/.idea/sonarlint/issuestore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  237. package/.idea/sonarlint/issuestore/0/f/0f534ce38f745b6707998aa6c868a729b909bf4d +0 -0
  238. package/.idea/sonarlint/issuestore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  239. package/.idea/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -2
  240. package/.idea/sonarlint/issuestore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  241. package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  242. package/.idea/sonarlint/issuestore/2/4/244f232939a7014966ac2eff9cd795d12c5ddc21 +0 -0
  243. package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  244. package/.idea/sonarlint/issuestore/2/9/2983524a17882775f03310e18fd052a958d44d3b +0 -0
  245. package/.idea/sonarlint/issuestore/2/c/2cf73169675e38d4411f50e8ac8e5c5186a3616e +0 -0
  246. package/.idea/sonarlint/issuestore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  247. package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  248. package/.idea/sonarlint/issuestore/3/8/38c41cacebf63514689973e01014e89db38448d7 +0 -0
  249. package/.idea/sonarlint/issuestore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  250. package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  251. package/.idea/sonarlint/issuestore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  252. package/.idea/sonarlint/issuestore/4/d/4d722d4f799d0dcaf4f273105d16ce2d9761ceb2 +0 -0
  253. package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  254. package/.idea/sonarlint/issuestore/5/2/52124373285180cc9fc913380c1cf02a160f9e62 +0 -0
  255. package/.idea/sonarlint/issuestore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  256. package/.idea/sonarlint/issuestore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  257. package/.idea/sonarlint/issuestore/5/7/57d8ecb1bda7803e970cddbcb9d96ec682fbce50 +0 -0
  258. package/.idea/sonarlint/issuestore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  259. package/.idea/sonarlint/issuestore/5/9/5993b7cd868ca0f67fff0860484d2de906467a5c +0 -0
  260. package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  261. package/.idea/sonarlint/issuestore/5/b/5b4cf966e749bb0515dfad5d0c51e5fa59e969e5 +0 -0
  262. package/.idea/sonarlint/issuestore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  263. package/.idea/sonarlint/issuestore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  264. package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  265. package/.idea/sonarlint/issuestore/6/5/65e727e2ee3468d20e4bf7cb3800385cb2c7a983 +0 -0
  266. package/.idea/sonarlint/issuestore/6/6/6627ec0b7b336db9c2a70382b2ee1e69ba3163ac +0 -0
  267. package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  268. package/.idea/sonarlint/issuestore/6/9/69d58b0b6323e7e777c435dbaefe94a64394e255 +0 -0
  269. package/.idea/sonarlint/issuestore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  270. package/.idea/sonarlint/issuestore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  271. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  272. package/.idea/sonarlint/issuestore/7/0/70c663239858c68590cdba7e904366fe59855b0b +0 -0
  273. package/.idea/sonarlint/issuestore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  274. package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  275. package/.idea/sonarlint/issuestore/7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd +0 -0
  276. package/.idea/sonarlint/issuestore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  277. package/.idea/sonarlint/issuestore/7/8/782e1a44f35a71927df243d92a4eede126f437ac +0 -0
  278. package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  279. package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  280. package/.idea/sonarlint/issuestore/8/1/81c76302465b6fb29ef101681712a023c52c8f00 +0 -0
  281. package/.idea/sonarlint/issuestore/8/2/823bafbef2d005b52054bb6ba237d26a93a69289 +0 -0
  282. package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  283. package/.idea/sonarlint/issuestore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  284. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  285. package/.idea/sonarlint/issuestore/9/2/9252baf9a1ff6cf967c8f83c4a62c40264b122d7 +0 -0
  286. package/.idea/sonarlint/issuestore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  287. package/.idea/sonarlint/issuestore/9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f +0 -0
  288. package/.idea/sonarlint/issuestore/9/5/95966b4a91847f490e094dfa87f80c2c5c59fbb9 +0 -0
  289. package/.idea/sonarlint/issuestore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  290. package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  291. package/.idea/sonarlint/issuestore/a/0/a06a99270cf7808dda3a6025cf813ae52720b475 +0 -0
  292. package/.idea/sonarlint/issuestore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +0 -0
  293. package/.idea/sonarlint/issuestore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  294. package/.idea/sonarlint/issuestore/a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871 +0 -0
  295. package/.idea/sonarlint/issuestore/b/2/b2186424e9f368610bda357e95a38d1b7b11ba53 +0 -0
  296. package/.idea/sonarlint/issuestore/b/c/bc5b896ed63da1497d081036364d9f2384f2ea37 +0 -0
  297. package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  298. package/.idea/sonarlint/issuestore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  299. package/.idea/sonarlint/issuestore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  300. package/.idea/sonarlint/issuestore/c/d/cdd687c2228066cdac5910ebcd0a5584e5c50985 +0 -0
  301. package/.idea/sonarlint/issuestore/d/2/d24fe332e92475452d840d36f81c9af7b70887e7 +0 -0
  302. package/.idea/sonarlint/issuestore/d/2/d2b43e6a30699faba4dff61341b06c7e17e7f400 +0 -0
  303. package/.idea/sonarlint/issuestore/d/d/dd375f957eb150c2f7fb1d4edba07501286db515 +0 -0
  304. package/.idea/sonarlint/issuestore/d/f/df083cf457b627bc4ada3c11eee92cc83e6c4c80 +0 -0
  305. package/.idea/sonarlint/issuestore/e/0/e05f58bae396006667e2ac1103d301e443e1f856 +0 -0
  306. package/.idea/sonarlint/issuestore/e/7/e7248564a8f7fdc020eba78ea0c58c98603880a4 +0 -0
  307. package/.idea/sonarlint/issuestore/e/d/ed43355775e0bbf3987e4526d4d8dd779773eb91 +0 -0
  308. package/.idea/sonarlint/issuestore/f/2/f2d1f4712d58f68a238d7df4f455d3cc45882594 +0 -0
  309. package/.idea/sonarlint/issuestore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  310. package/.idea/sonarlint/issuestore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  311. package/.idea/sonarlint/issuestore/f/a/fa9452abeeb6e134b984ce22f0ff271a774c9093 +0 -0
  312. package/.idea/sonarlint/issuestore/f/a/fa9dce145b13c5aaff8e84813e79f94dcd4c0860 +0 -0
  313. package/.idea/sonarlint/issuestore/f/b/fb74f3edc49c374fcb38034841d290680603b9cb +0 -0
  314. package/.idea/sonarlint/issuestore/f/d/fdd4872693720f9140008b46069639fb2801114d +0 -0
  315. package/.idea/sonarlint/issuestore/index.pb +0 -164
  316. package/.idea/sonarlint/securityhotspotstore/0/2/02175ba1c7b82f17c1f95edd897711cf21fc8b55 +0 -0
  317. package/.idea/sonarlint/securityhotspotstore/0/3/0382ec9d8bd1d671b35f3cce2e83a60a6f0d4e92 +0 -0
  318. package/.idea/sonarlint/securityhotspotstore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  319. package/.idea/sonarlint/securityhotspotstore/0/f/0f534ce38f745b6707998aa6c868a729b909bf4d +0 -0
  320. package/.idea/sonarlint/securityhotspotstore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  321. package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
  322. package/.idea/sonarlint/securityhotspotstore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  323. package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  324. package/.idea/sonarlint/securityhotspotstore/2/4/244f232939a7014966ac2eff9cd795d12c5ddc21 +0 -0
  325. package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  326. package/.idea/sonarlint/securityhotspotstore/2/9/2983524a17882775f03310e18fd052a958d44d3b +0 -0
  327. package/.idea/sonarlint/securityhotspotstore/2/c/2cf73169675e38d4411f50e8ac8e5c5186a3616e +0 -0
  328. package/.idea/sonarlint/securityhotspotstore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  329. package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  330. package/.idea/sonarlint/securityhotspotstore/3/8/38c41cacebf63514689973e01014e89db38448d7 +0 -0
  331. package/.idea/sonarlint/securityhotspotstore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  332. package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  333. package/.idea/sonarlint/securityhotspotstore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  334. package/.idea/sonarlint/securityhotspotstore/4/d/4d722d4f799d0dcaf4f273105d16ce2d9761ceb2 +0 -0
  335. package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  336. package/.idea/sonarlint/securityhotspotstore/5/2/52124373285180cc9fc913380c1cf02a160f9e62 +0 -0
  337. package/.idea/sonarlint/securityhotspotstore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  338. package/.idea/sonarlint/securityhotspotstore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  339. package/.idea/sonarlint/securityhotspotstore/5/7/57d8ecb1bda7803e970cddbcb9d96ec682fbce50 +0 -0
  340. package/.idea/sonarlint/securityhotspotstore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  341. package/.idea/sonarlint/securityhotspotstore/5/9/5993b7cd868ca0f67fff0860484d2de906467a5c +0 -0
  342. package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  343. package/.idea/sonarlint/securityhotspotstore/5/b/5b4cf966e749bb0515dfad5d0c51e5fa59e969e5 +0 -0
  344. package/.idea/sonarlint/securityhotspotstore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  345. package/.idea/sonarlint/securityhotspotstore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  346. package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  347. package/.idea/sonarlint/securityhotspotstore/6/5/65e727e2ee3468d20e4bf7cb3800385cb2c7a983 +0 -0
  348. package/.idea/sonarlint/securityhotspotstore/6/6/6627ec0b7b336db9c2a70382b2ee1e69ba3163ac +0 -0
  349. package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  350. package/.idea/sonarlint/securityhotspotstore/6/9/69d58b0b6323e7e777c435dbaefe94a64394e255 +0 -0
  351. package/.idea/sonarlint/securityhotspotstore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  352. package/.idea/sonarlint/securityhotspotstore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  353. package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  354. package/.idea/sonarlint/securityhotspotstore/7/0/70c663239858c68590cdba7e904366fe59855b0b +0 -0
  355. package/.idea/sonarlint/securityhotspotstore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  356. package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  357. package/.idea/sonarlint/securityhotspotstore/7/4/7489a99709fa9ca44fa1a085c02ee8502e21a9fd +0 -0
  358. package/.idea/sonarlint/securityhotspotstore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  359. package/.idea/sonarlint/securityhotspotstore/7/8/782e1a44f35a71927df243d92a4eede126f437ac +0 -0
  360. package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  361. package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  362. package/.idea/sonarlint/securityhotspotstore/8/1/81c76302465b6fb29ef101681712a023c52c8f00 +0 -0
  363. package/.idea/sonarlint/securityhotspotstore/8/2/823bafbef2d005b52054bb6ba237d26a93a69289 +0 -0
  364. package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  365. package/.idea/sonarlint/securityhotspotstore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  366. package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  367. package/.idea/sonarlint/securityhotspotstore/9/2/9252baf9a1ff6cf967c8f83c4a62c40264b122d7 +0 -0
  368. package/.idea/sonarlint/securityhotspotstore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  369. package/.idea/sonarlint/securityhotspotstore/9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f +0 -0
  370. package/.idea/sonarlint/securityhotspotstore/9/5/95966b4a91847f490e094dfa87f80c2c5c59fbb9 +0 -0
  371. package/.idea/sonarlint/securityhotspotstore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  372. package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  373. package/.idea/sonarlint/securityhotspotstore/a/0/a06a99270cf7808dda3a6025cf813ae52720b475 +0 -0
  374. package/.idea/sonarlint/securityhotspotstore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +0 -0
  375. package/.idea/sonarlint/securityhotspotstore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  376. package/.idea/sonarlint/securityhotspotstore/a/b/abfb24bd8d0e3cdfbf3ff4c7e80603bf1cdf7871 +0 -0
  377. package/.idea/sonarlint/securityhotspotstore/b/2/b2186424e9f368610bda357e95a38d1b7b11ba53 +0 -0
  378. package/.idea/sonarlint/securityhotspotstore/b/c/bc5b896ed63da1497d081036364d9f2384f2ea37 +0 -0
  379. package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  380. package/.idea/sonarlint/securityhotspotstore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  381. package/.idea/sonarlint/securityhotspotstore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  382. package/.idea/sonarlint/securityhotspotstore/c/d/cdd687c2228066cdac5910ebcd0a5584e5c50985 +0 -0
  383. package/.idea/sonarlint/securityhotspotstore/d/2/d24fe332e92475452d840d36f81c9af7b70887e7 +0 -0
  384. package/.idea/sonarlint/securityhotspotstore/d/2/d2b43e6a30699faba4dff61341b06c7e17e7f400 +0 -0
  385. package/.idea/sonarlint/securityhotspotstore/d/d/dd375f957eb150c2f7fb1d4edba07501286db515 +0 -0
  386. package/.idea/sonarlint/securityhotspotstore/d/f/df083cf457b627bc4ada3c11eee92cc83e6c4c80 +0 -0
  387. package/.idea/sonarlint/securityhotspotstore/e/0/e05f58bae396006667e2ac1103d301e443e1f856 +0 -0
  388. package/.idea/sonarlint/securityhotspotstore/e/7/e7248564a8f7fdc020eba78ea0c58c98603880a4 +0 -0
  389. package/.idea/sonarlint/securityhotspotstore/e/d/ed43355775e0bbf3987e4526d4d8dd779773eb91 +0 -0
  390. package/.idea/sonarlint/securityhotspotstore/f/2/f2d1f4712d58f68a238d7df4f455d3cc45882594 +0 -0
  391. package/.idea/sonarlint/securityhotspotstore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  392. package/.idea/sonarlint/securityhotspotstore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  393. package/.idea/sonarlint/securityhotspotstore/f/a/fa9452abeeb6e134b984ce22f0ff271a774c9093 +0 -0
  394. package/.idea/sonarlint/securityhotspotstore/f/a/fa9dce145b13c5aaff8e84813e79f94dcd4c0860 +0 -0
  395. package/.idea/sonarlint/securityhotspotstore/f/b/fb74f3edc49c374fcb38034841d290680603b9cb +0 -0
  396. package/.idea/sonarlint/securityhotspotstore/f/d/fdd4872693720f9140008b46069639fb2801114d +0 -0
  397. package/.idea/sonarlint/securityhotspotstore/index.pb +0 -164
  398. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +0 -3
  399. package/bin/transactionProcessor/dtos/private/ExecutePocketOperationRequest.d.ts +0 -3
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TernGetAccountResponse = void 0;
13
+ const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
14
+ const TernAddress_1 = require("./TernAddress");
15
+ const TernAccountStatusEnum_1 = require("../enums/TernAccountStatusEnum");
16
+ const class_validator_1 = require("class-validator");
17
+ class TernGetAccountResponse {
18
+ }
19
+ exports.TernGetAccountResponse = TernGetAccountResponse;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], TernGetAccountResponse.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], TernGetAccountResponse.prototype, "businessId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], TernGetAccountResponse.prototype, "userId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], TernGetAccountResponse.prototype, "name", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], TernGetAccountResponse.prototype, "accountNumber", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsString)(),
42
+ __metadata("design:type", String)
43
+ ], TernGetAccountResponse.prototype, "routingNumber", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
46
+ __metadata("design:type", String)
47
+ ], TernGetAccountResponse.prototype, "accountType", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsBoolean)(),
50
+ __metadata("design:type", Boolean)
51
+ ], TernGetAccountResponse.prototype, "active", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsBoolean)(),
54
+ __metadata("design:type", Boolean)
55
+ ], TernGetAccountResponse.prototype, "isPrimary", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsString)(),
58
+ __metadata("design:type", String)
59
+ ], TernGetAccountResponse.prototype, "createdDate", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsString)(),
62
+ __metadata("design:type", String)
63
+ ], TernGetAccountResponse.prototype, "updatedDate", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsString)(),
66
+ __metadata("design:type", String)
67
+ ], TernGetAccountResponse.prototype, "deletedDate", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsString)(),
70
+ __metadata("design:type", String)
71
+ ], TernGetAccountResponse.prototype, "updatedBy", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsNumber)(),
74
+ __metadata("design:type", Number)
75
+ ], TernGetAccountResponse.prototype, "balance", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.ValidateNested)(),
78
+ __metadata("design:type", TernAddress_1.TernAddress)
79
+ ], TernGetAccountResponse.prototype, "address", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsString)(),
82
+ __metadata("design:type", String)
83
+ ], TernGetAccountResponse.prototype, "kybStatus", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsEnum)(TernAccountStatusEnum_1.TernAccountStatusEnum),
86
+ __metadata("design:type", String)
87
+ ], TernGetAccountResponse.prototype, "statusName", void 0);
@@ -0,0 +1,3 @@
1
+ export declare class TernGetUserRequest {
2
+ externalUserId: string;
3
+ }
@@ -9,11 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TernGetUserRequest = void 0;
12
13
  const class_validator_1 = require("class-validator");
13
- class GetProductCatalogRequest {
14
+ class TernGetUserRequest {
14
15
  }
15
- exports.default = GetProductCatalogRequest;
16
+ exports.TernGetUserRequest = TernGetUserRequest;
16
17
  __decorate([
17
- (0, class_validator_1.IsArray)(),
18
- __metadata("design:type", Array)
19
- ], GetProductCatalogRequest.prototype, "ids", void 0);
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], TernGetUserRequest.prototype, "externalUserId", void 0);
@@ -0,0 +1,24 @@
1
+ import { SexDocument } from "../../identity";
2
+ import { TernAccountStatusEnum } from "../enums/TernAccountStatusEnum";
3
+ import { TernAddress } from "./TernAddress";
4
+ export declare class TernGetUserResponse {
5
+ id: string;
6
+ typeOfUserId: string;
7
+ dob: string;
8
+ name: string;
9
+ lastName: string;
10
+ phoneNumber: string;
11
+ email: string;
12
+ address?: TernAddress;
13
+ status: TernAccountStatusEnum;
14
+ sex?: SexDocument;
15
+ documentNumber: string;
16
+ typeOfDocumentId?: string;
17
+ countryId: string;
18
+ userAccountIds?: string[];
19
+ createdDate?: string;
20
+ updatedDate?: string;
21
+ deletedDate?: string;
22
+ updatedBy?: string;
23
+ accountIds?: number[];
24
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TernGetUserResponse = void 0;
13
+ const identity_1 = require("../../identity");
14
+ const TernAccountStatusEnum_1 = require("../enums/TernAccountStatusEnum");
15
+ const TernAddress_1 = require("./TernAddress");
16
+ const class_validator_1 = require("class-validator");
17
+ const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
18
+ class TernGetUserResponse {
19
+ }
20
+ exports.TernGetUserResponse = TernGetUserResponse;
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], TernGetUserResponse.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], TernGetUserResponse.prototype, "typeOfUserId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], TernGetUserResponse.prototype, "dob", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], TernGetUserResponse.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], TernGetUserResponse.prototype, "lastName", void 0);
41
+ __decorate([
42
+ (0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
43
+ __metadata("design:type", String)
44
+ ], TernGetUserResponse.prototype, "phoneNumber", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsEmail)(),
47
+ __metadata("design:type", String)
48
+ ], TernGetUserResponse.prototype, "email", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.ValidateNested)(),
51
+ __metadata("design:type", TernAddress_1.TernAddress)
52
+ ], TernGetUserResponse.prototype, "address", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsEnum)(TernAccountStatusEnum_1.TernAccountStatusEnum),
55
+ __metadata("design:type", String)
56
+ ], TernGetUserResponse.prototype, "status", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsEnum)(identity_1.SexDocument),
59
+ __metadata("design:type", String)
60
+ ], TernGetUserResponse.prototype, "sex", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsString)(),
63
+ __metadata("design:type", String)
64
+ ], TernGetUserResponse.prototype, "documentNumber", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsString)(),
67
+ __metadata("design:type", String)
68
+ ], TernGetUserResponse.prototype, "typeOfDocumentId", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsString)(),
71
+ __metadata("design:type", String)
72
+ ], TernGetUserResponse.prototype, "countryId", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsArray)(),
75
+ __metadata("design:type", Array)
76
+ ], TernGetUserResponse.prototype, "userAccountIds", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsString)(),
79
+ __metadata("design:type", String)
80
+ ], TernGetUserResponse.prototype, "createdDate", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsString)(),
83
+ __metadata("design:type", String)
84
+ ], TernGetUserResponse.prototype, "updatedDate", void 0);
85
+ __decorate([
86
+ (0, class_validator_1.IsString)(),
87
+ __metadata("design:type", String)
88
+ ], TernGetUserResponse.prototype, "deletedDate", void 0);
89
+ __decorate([
90
+ (0, class_validator_1.IsString)(),
91
+ __metadata("design:type", String)
92
+ ], TernGetUserResponse.prototype, "updatedBy", void 0);
93
+ __decorate([
94
+ (0, class_validator_1.IsArray)(),
95
+ __metadata("design:type", Array)
96
+ ], TernGetUserResponse.prototype, "accountIds", void 0);
@@ -0,0 +1,4 @@
1
+ export declare enum TernAccountStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TernAccountStatusEnum = void 0;
4
+ var TernAccountStatusEnum;
5
+ (function (TernAccountStatusEnum) {
6
+ TernAccountStatusEnum["ACTIVE"] = "ACTIVE";
7
+ TernAccountStatusEnum["INACTIVE"] = "INACTIVE";
8
+ })(TernAccountStatusEnum || (exports.TernAccountStatusEnum = TernAccountStatusEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum TernAccountTypeEnum {
2
+ CARD_ISSUING = "Card Issuing",
3
+ USER = "USER",
4
+ BUSINESS = "BUSINESS"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TernAccountTypeEnum = void 0;
4
+ var TernAccountTypeEnum;
5
+ (function (TernAccountTypeEnum) {
6
+ TernAccountTypeEnum["CARD_ISSUING"] = "Card Issuing";
7
+ TernAccountTypeEnum["USER"] = "USER";
8
+ TernAccountTypeEnum["BUSINESS"] = "BUSINESS";
9
+ })(TernAccountTypeEnum || (exports.TernAccountTypeEnum = TernAccountTypeEnum = {}));
@@ -0,0 +1,11 @@
1
+ export * from './dtos/TernCreateUserRequest';
2
+ export * from './dtos/TernCreateUserResponse';
3
+ export * from './dtos/TernCreateAccountRequest';
4
+ export * from './dtos/TernCreateAccountResponse';
5
+ export * from './dtos/TernGetAccountRequest';
6
+ export * from './dtos/TernGetAccountResponse';
7
+ export * from './dtos/TernGetUserRequest';
8
+ export * from './dtos/TernGetUserResponse';
9
+ export * from './dtos/TernAddress';
10
+ export * from './enums/TernAccountTypeEnum';
11
+ export * from './enums/TernAccountStatusEnum';
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // DTOs
18
+ __exportStar(require("./dtos/TernCreateUserRequest"), exports);
19
+ __exportStar(require("./dtos/TernCreateUserResponse"), exports);
20
+ __exportStar(require("./dtos/TernCreateAccountRequest"), exports);
21
+ __exportStar(require("./dtos/TernCreateAccountResponse"), exports);
22
+ __exportStar(require("./dtos/TernGetAccountRequest"), exports);
23
+ __exportStar(require("./dtos/TernGetAccountResponse"), exports);
24
+ __exportStar(require("./dtos/TernGetUserRequest"), exports);
25
+ __exportStar(require("./dtos/TernGetUserResponse"), exports);
26
+ __exportStar(require("./dtos/TernAddress"), exports);
27
+ // ENUMS
28
+ __exportStar(require("./enums/TernAccountTypeEnum"), exports);
29
+ __exportStar(require("./enums/TernAccountStatusEnum"), exports);
@@ -13,6 +13,7 @@ export declare class TransactionCreateRequest {
13
13
  accountId: string;
14
14
  pocketId: string;
15
15
  ownerDirectoryId: string;
16
+ targetDirectoryId: string | null;
16
17
  transactionDate: string;
17
18
  sessionId: string;
18
19
  currencyId: CountryId;
@@ -64,6 +64,14 @@ __decorate([
64
64
  }),
65
65
  __metadata("design:type", String)
66
66
  ], TransactionCreateRequest.prototype, "ownerDirectoryId", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsEmpty)(),
69
+ (0, class_validator_1.IsString)(),
70
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
71
+ message: 'ownerDirectoryId must be a valid UUID v4',
72
+ }),
73
+ __metadata("design:type", String)
74
+ ], TransactionCreateRequest.prototype, "targetDirectoryId", void 0);
67
75
  __decorate([
68
76
  (0, class_validator_1.IsNotEmpty)(),
69
77
  (0, class_validator_1.IsString)(),
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@fiado/type-kit",
3
- "version": "1.1.54",
4
- "description": "",
5
- "main": "bin/index.js",
6
- "types": "bin/index.d.ts",
7
- "scripts": {
8
- "test": "jest",
9
- "build": "tsc"
10
- },
11
- "keywords": [],
12
- "author": "Fiado Inc",
13
- "license": "ISC",
14
- "devDependencies": {
15
- "@types/node": "^20.11.20",
16
- "install": "^0.13.0",
17
- "npm": "^10.4.0",
18
- "typescript": "^5.3.3"
19
- },
20
- "dependencies": {
21
- "class-transformer": "^0.5.1",
22
- "class-validator": "^0.14.1"
23
- }
1
+ {
2
+ "name": "@fiado/type-kit",
3
+ "version": "1.1.56",
4
+ "description": "",
5
+ "main": "bin/index.js",
6
+ "types": "bin/index.d.ts",
7
+ "scripts": {
8
+ "test": "jest",
9
+ "build": "tsc"
10
+ },
11
+ "keywords": [],
12
+ "author": "Fiado Inc",
13
+ "license": "ISC",
14
+ "devDependencies": {
15
+ "@types/node": "^20.11.20",
16
+ "install": "^0.13.0",
17
+ "npm": "^10.4.0",
18
+ "typescript": "^5.3.3"
19
+ },
20
+ "dependencies": {
21
+ "class-transformer": "^0.5.1",
22
+ "class-validator": "^0.14.1"
23
+ }
24
24
  }
@@ -1,78 +1,78 @@
1
- import { IsBoolean, IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested } from 'class-validator';
2
- import { AddressResponse } from "../../address";
3
- import { CountryId } from "../../country";
4
- import { regexUuidV4 } from '../../helpers/constans/regex';
5
- import { TypeOfDirectoryId } from '../../directory';
6
- import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
7
- import { SexDocument } from '../../identity';
8
- import { Profile } from "../../directory/enums/Profile";
9
- import {AccountLevelEnum} from "../enums/AccountLevelEnum";
10
-
11
- export class AccountCreateRequest {
12
-
13
- @IsString()
14
- @Matches(regexUuidV4,
15
- {
16
- message: 'directoryId must be a valid UUID v4',
17
- })
18
- directoryId: string;
19
-
20
-
21
- @IsString()
22
- @Matches(regexUuidV4,
23
- {
24
- message: 'directoryId must be a valid UUID v4',
25
- })
26
- ownerDirectoryId: string;
27
-
28
- @IsString()
29
- @Matches(regexUuidV4,
30
- {
31
- message: 'peopleId must be a valid UUID v4',
32
- })
33
- peopleId: string;
34
-
35
- @IsEnum(AccountLevelEnum)
36
- accountLevel: AccountLevelEnum;
37
-
38
- @IsEnum(TypeOfDirectoryId)
39
- typeOfDirectoryId: string;
40
-
41
- @IsString()
42
- firstName: string;
43
-
44
- @IsString()
45
- lastName: string;
46
-
47
- @IsPhoneNumberFiado()
48
- phoneNumber: string;
49
-
50
- @ValidateNested()
51
- address: AddressResponse;
52
-
53
- @IsEmail()
54
- email: string;
55
-
56
- @IsDateString()
57
- dob: string;
58
-
59
- @IsBoolean()
60
- isHost?: boolean;
61
-
62
- @IsString()
63
- @Length(1, 30)
64
- documentNumber: string;
65
-
66
- @IsString()
67
- @Length(1, 30)
68
- documentType: string;
69
-
70
- @IsEnum(SexDocument)
71
- gender: SexDocument;
72
-
73
- @IsEnum(CountryId)
74
- countryId: CountryId;
75
-
76
- @IsEnum(Profile)
77
- userProfile: Profile;
78
- }
1
+ import { IsBoolean, IsDateString, IsEmail, IsEnum, IsString, Length, Matches, ValidateNested } from 'class-validator';
2
+ import { AddressResponse } from "../../address";
3
+ import { CountryId } from "../../country";
4
+ import { regexUuidV4 } from '../../helpers/constans/regex';
5
+ import { TypeOfDirectoryId } from '../../directory';
6
+ import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
7
+ import { SexDocument } from '../../identity';
8
+ import { Profile } from "../../directory/enums/Profile";
9
+ import {AccountLevelEnum} from "../enums/AccountLevelEnum";
10
+
11
+ export class AccountCreateRequest {
12
+
13
+ @IsString()
14
+ @Matches(regexUuidV4,
15
+ {
16
+ message: 'directoryId must be a valid UUID v4',
17
+ })
18
+ directoryId: string;
19
+
20
+
21
+ @IsString()
22
+ @Matches(regexUuidV4,
23
+ {
24
+ message: 'directoryId must be a valid UUID v4',
25
+ })
26
+ ownerDirectoryId: string;
27
+
28
+ @IsString()
29
+ @Matches(regexUuidV4,
30
+ {
31
+ message: 'peopleId must be a valid UUID v4',
32
+ })
33
+ peopleId: string;
34
+
35
+ @IsEnum(AccountLevelEnum)
36
+ accountLevel: AccountLevelEnum;
37
+
38
+ @IsEnum(TypeOfDirectoryId)
39
+ typeOfDirectoryId: string;
40
+
41
+ @IsString()
42
+ firstName: string;
43
+
44
+ @IsString()
45
+ lastName: string;
46
+
47
+ @IsPhoneNumberFiado()
48
+ phoneNumber: string;
49
+
50
+ @ValidateNested()
51
+ address: AddressResponse;
52
+
53
+ @IsEmail()
54
+ email: string;
55
+
56
+ @IsDateString()
57
+ dob: string;
58
+
59
+ @IsBoolean()
60
+ isHost?: boolean;
61
+
62
+ @IsString()
63
+ @Length(1, 30)
64
+ documentNumber: string;
65
+
66
+ @IsString()
67
+ @Length(1, 30)
68
+ documentType: string;
69
+
70
+ @IsEnum(SexDocument)
71
+ gender: SexDocument;
72
+
73
+ @IsEnum(CountryId)
74
+ countryId: CountryId;
75
+
76
+ @IsEnum(Profile)
77
+ userProfile: Profile;
78
+ }
@@ -1,8 +1,8 @@
1
- export class AccountCreateResponse{
2
- id: string;
3
- externalId: string;
4
- externalUserId: string;
5
- directoryId:string;
6
- typeOfDirectoryId:string
7
- countryId:string
1
+ export class AccountCreateResponse{
2
+ id: string;
3
+ externalId: string;
4
+ externalUserId: string;
5
+ directoryId:string;
6
+ typeOfDirectoryId:string
7
+ countryId:string
8
8
  }
@@ -1,40 +1,40 @@
1
- import {IsEnum, IsNumber, IsString, Matches} from "class-validator";
2
- import {regexUuidV4} from "../../helpers/constans/regex";
3
- import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
4
-
5
- export default class AccountInfo {
6
- @IsString()
7
- @Matches(regexUuidV4,
8
- {
9
- message: 'directoryId must be a valid UUID v4',
10
- })
11
- id: string;
12
-
13
- @IsString()
14
- @Matches(regexUuidV4,
15
- {
16
- message: 'directoryId must be a valid UUID v4',
17
- })
18
- directoryId: string;
19
-
20
- @IsString()
21
- currencyId: string;
22
-
23
- @IsNumber()
24
- currentBalance: number;
25
-
26
- @IsNumber()
27
- availableBalance: number;
28
-
29
- @IsNumber()
30
- lockedBalance: number;
31
-
32
- @IsString()
33
- accountNumber: string;
34
-
35
- @IsString()
36
- routingNumber: string;
37
-
38
- @IsEnum(AccountEntityStatusEnum)
39
- status: AccountEntityStatusEnum;
1
+ import {IsEnum, IsNumber, IsString, Matches} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+ import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
4
+
5
+ export default class AccountInfo {
6
+ @IsString()
7
+ @Matches(regexUuidV4,
8
+ {
9
+ message: 'directoryId must be a valid UUID v4',
10
+ })
11
+ id: string;
12
+
13
+ @IsString()
14
+ @Matches(regexUuidV4,
15
+ {
16
+ message: 'directoryId must be a valid UUID v4',
17
+ })
18
+ directoryId: string;
19
+
20
+ @IsString()
21
+ currencyId: string;
22
+
23
+ @IsNumber()
24
+ currentBalance: number;
25
+
26
+ @IsNumber()
27
+ availableBalance: number;
28
+
29
+ @IsNumber()
30
+ lockedBalance: number;
31
+
32
+ @IsString()
33
+ accountNumber: string;
34
+
35
+ @IsString()
36
+ routingNumber: string;
37
+
38
+ @IsEnum(AccountEntityStatusEnum)
39
+ status: AccountEntityStatusEnum;
40
40
  }
@@ -1,7 +1,7 @@
1
- import {UpdateBalanceOperation} from "./UpdateBalanceOperation";
2
- import {IsArray} from "class-validator";
3
-
4
- export class AccountUpdateBalanceRequest {
5
- @IsArray()
6
- operations: UpdateBalanceOperation[];
1
+ import {UpdateBalanceOperation} from "./UpdateBalanceOperation";
2
+ import {IsArray} from "class-validator";
3
+
4
+ export class AccountUpdateBalanceRequest {
5
+ @IsArray()
6
+ operations: UpdateBalanceOperation[];
7
7
  }