@fiado/type-kit 1.0.84 → 1.0.86

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 (170) hide show
  1. package/.idea/aws.xml +11 -0
  2. package/.idea/fiado-type-kit.iml +12 -0
  3. package/.idea/modules.xml +8 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/README.md +70 -70
  6. package/bin/account/dtos/AccountInfo.d.ts +12 -0
  7. package/bin/account/dtos/AccountInfo.js +59 -0
  8. package/bin/account/dtos/ExchangeInfo.d.ts +4 -0
  9. package/bin/{group/dtos/GroupDirectoryRetationsUpdateRequest.js → account/dtos/ExchangeInfo.js} +7 -6
  10. package/bin/account/dtos/GetAccountBalanceResponse.d.ts +9 -0
  11. package/bin/account/dtos/GetAccountBalanceResponse.js +51 -0
  12. package/bin/account/dtos/GetPocketBalanceResponse.d.ts +10 -0
  13. package/bin/account/dtos/GetPocketBalanceResponse.js +61 -0
  14. package/bin/account/dtos/GetPocketResponse.d.ts +8 -0
  15. package/bin/account/dtos/GetPocketResponse.js +5 -0
  16. package/bin/account/dtos/PocketItem.d.ts +12 -0
  17. package/bin/account/dtos/PocketItem.js +65 -0
  18. package/bin/account/entities/AccountEntityBase.d.ts +2 -0
  19. package/bin/account/index.d.ts +7 -0
  20. package/bin/account/index.js +7 -0
  21. package/package.json +23 -23
  22. package/src/account/dtos/AccountCreateRequest.ts +75 -75
  23. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  24. package/src/account/dtos/AccountInfo.ts +40 -0
  25. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  26. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  27. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  28. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  29. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  30. package/src/account/dtos/ExchangeInfo.ts +9 -0
  31. package/src/account/dtos/GetAccountBalanceResponse.ts +33 -0
  32. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  33. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  34. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  35. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  36. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  37. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  38. package/src/account/dtos/GetPocketBalanceResponse.ts +44 -0
  39. package/src/account/dtos/GetPocketResponse.ts +9 -0
  40. package/src/account/dtos/PocketItem.ts +46 -0
  41. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  42. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  43. package/src/account/entities/AccountEntityBase.ts +12 -10
  44. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  45. package/src/account/enums/AccountLevelEnum.ts +5 -5
  46. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  47. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  48. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  49. package/src/account/index.ts +32 -24
  50. package/src/address/dtos/AddressBase.ts +130 -130
  51. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  52. package/src/address/dtos/AddressResponse.ts +41 -41
  53. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  54. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  55. package/src/address/dtos/Geometry.ts +4 -4
  56. package/src/address/dtos/OfficeDetails.ts +30 -30
  57. package/src/address/dtos/OperationSchedule.ts +8 -8
  58. package/src/address/dtos/Place.ts +83 -83
  59. package/src/address/dtos/Shipping.ts +36 -36
  60. package/src/address/dtos/Timezone.ts +5 -5
  61. package/src/address/enums/AddressProvider.ts +10 -10
  62. package/src/address/enums/AddressStatus.ts +9 -9
  63. package/src/address/index.ts +16 -16
  64. package/src/app/enums/App.ts +10 -10
  65. package/src/app/index.ts +3 -3
  66. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  67. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  68. package/src/authentication/index.ts +3 -3
  69. package/src/card/dtos/CardActivateRequest.ts +12 -12
  70. package/src/card/dtos/CardApplicationRequest.ts +20 -20
  71. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  72. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  73. package/src/card/dtos/CardResponse.ts +4 -4
  74. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  75. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  76. package/src/card/dtos/CardUpdateRequest.ts +13 -13
  77. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  78. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  79. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  80. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  81. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  82. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  83. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  84. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  85. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  86. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  87. package/src/card/enums/Brand.ts +7 -7
  88. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  89. package/src/card/enums/CardIssuing.ts +6 -6
  90. package/src/card/enums/CardType.ts +4 -4
  91. package/src/card/enums/CardUpdateKey.ts +4 -4
  92. package/src/card/enums/CreditOrDebit.ts +5 -5
  93. package/src/card/enums/DeliveryChannel.ts +7 -7
  94. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  95. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  96. package/src/card/enums/IssuanceType.ts +5 -5
  97. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  98. package/src/card/enums/OwnershipType.ts +3 -3
  99. package/src/card/enums/ShippingStatus.ts +8 -8
  100. package/src/card/enums/Status.ts +6 -6
  101. package/src/card/enums/UpdateKey.ts +5 -5
  102. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  103. package/src/card/index.ts +44 -44
  104. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  105. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  106. package/src/country/enums/Country.ts +6 -6
  107. package/src/country/enums/CountryId.ts +6 -6
  108. package/src/country/index.ts +5 -5
  109. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  110. package/src/currency/index.ts +2 -2
  111. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  112. package/src/directory/dtos/External.ts +6 -6
  113. package/src/directory/enums/Profile.ts +6 -6
  114. package/src/directory/enums/Scope.ts +7 -7
  115. package/src/directory/enums/Status.ts +8 -8
  116. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  117. package/src/directory/index.ts +7 -7
  118. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  119. package/src/eventBridge/index.ts +1 -1
  120. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  121. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  122. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  123. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  124. package/src/exchangeRate/index.ts +8 -8
  125. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  126. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  127. package/src/genericMessage/index.ts +1 -1
  128. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  129. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  130. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  131. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  132. package/src/group/dtos/GroupResponse.ts +17 -17
  133. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  134. package/src/group/enums/GroupAction.ts +8 -8
  135. package/src/group/enums/GroupStatus.ts +6 -6
  136. package/src/group/enums/RelationStatus.ts +8 -8
  137. package/src/group/enums/RelationType.ts +9 -9
  138. package/src/group/index.ts +18 -18
  139. package/src/header/TokenPayload.ts +17 -17
  140. package/src/header/index.ts +3 -3
  141. package/src/helpers/ValidationUtils.ts +32 -32
  142. package/src/helpers/constans/regex.ts +12 -12
  143. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  144. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  145. package/src/identity/dtos/PeopleResponse.ts +80 -80
  146. package/src/identity/dtos/PeopleUpdateRequest.ts +75 -75
  147. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  148. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  149. package/src/identity/enums/SexDocument.ts +6 -6
  150. package/src/identity/enums/TypeOfDocument.ts +5 -5
  151. package/src/identity/index.ts +12 -12
  152. package/src/index.ts +22 -22
  153. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  154. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  155. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  156. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  157. package/src/notificationMessages/index.ts +5 -5
  158. package/src/provider/enums/Provider.ts +4 -4
  159. package/src/provider/index.ts +1 -1
  160. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  161. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  162. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  163. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  164. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  165. package/src/sessionActivity/index.ts +2 -2
  166. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  167. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  168. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  169. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  170. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
@@ -1,54 +1,54 @@
1
- export enum ExternalShippingStatusDetail {
2
- CREATED = "CREATED",
3
- PENDING = "PENDING",
4
- READY_FOR_DISTRIBUTION = "READY_FOR_DISTRIBUTION",
5
- ROAD_TO_PICKUP = "ROAD_TO_PICKUP",
6
- UNSUCCESSFUL_PICKUP = "UNSUCCESSFUL_PICKUP",
7
- ROAD_TO_RETURN = "ROAD_TO_RETURN",
8
- UNSUCCESSFUL_RETURN = "UNSUCCESSFUL_RETURN",
9
- REJECTED = "REJECTED",
10
- SHIPMENT_SENT = "SHIPMENT_SENT",
11
- SHIPMENT_CONFIRMED = "SHIPMENT_CONFIRMED",
12
- IN_TRANSIT = "IN_TRANSIT",
13
- RECEIVED_BY_CARRIER = "RECEIVED_BY_CARRIER",
14
- FAILED_DELIVERY_ATTEMPT = "FAILED_DELIVERY_ATTEMPT",
15
- WRONG_ADDRESS = "WRONG_ADDRESS",
16
- DELIVERED = "DELIVERED",
17
- NOT_DELIVERED = "NOT_DELIVERED",
18
- DESTRUCTION = "DESTRUCTION",
19
- ACCIDENT = "ACCIDENT",
20
- STOLEN = "STOLEN",
21
- VISIT_SCHEDULED = "VISIT_SCHEDULED",
22
- CALL_SCHEDULED = "CALL_SCHEDULED",
23
- VISIT_CONFIRMED = "VISIT_CONFIRMED",
24
- CALL_FAILED_UNKNOWN = "CALL_FAILED_UNKNOWN",
25
- NO_ACCESS = "NO_ACCESS",
26
- FAILED_VISIT_DEAD = "FAILED_VISIT_DEAD",
27
- WRONG_OPERATOR_ZONE = "WRONG_OPERATOR_ZONE",
28
- CALL_RESCHEDULED = "CALL_RESCHEDULED",
29
- CALL_FAILED_DEAD = "CALL_FAILED_DEAD",
30
- CALL_FAILED = "CALL_FAILED",
31
- WHATSAPP_FAILED = "WHATSAPP_FAILED",
32
- COURIER_FAILED = "COURIER_FAILED",
33
- MISSING_DOCUMENTS = "MISSING_DOCUMENTS",
34
- RETURNED_TO_WAREHOUSE = "RETURNED_TO_WAREHOUSE",
35
- CLIENT_NOT_PRESENT = "CLIENT_NOT_PRESENT",
36
- INCOMPLETE_ADDRESS = "INCOMPLETE_ADDRESS",
37
- COVERAGE = "COVERAGE",
38
- OPERATOR_REASSIGNED = "OPERATOR_REASSIGNED",
39
- CLIENT_UNKNOWN = "CLIENT_UNKNOWN",
40
- NO_CALL = "NO_CALL",
41
- ZONE_PROBLEMS = "ZONE_PROBLEMS",
42
- CLIENT_WORK = "CLIENT_WORK",
43
- FRAUD = "FRAUD",
44
- FRAUD_CLIENT = "FRAUD_CLIENT",
45
- MISSING_NUMBER = "MISSING_NUMBER",
46
- CLIENT_CANCELED = "CLIENT_CANCELED",
47
- DESTROYED_BY_CLIENT = "DESTROYED_BY_CLIENT",
48
- WEATHER = "WEATHER",
49
- LOST = "LOST",
50
- CLIENT_TRIP = "CLIENT_TRIP",
51
- FAILED_VISIT_UNKNOWN = "FAILED_VISIT_UNKNOWN",
52
- RETURNED = "RETURNED",
53
- OTHER = "OTHER",
1
+ export enum ExternalShippingStatusDetail {
2
+ CREATED = "CREATED",
3
+ PENDING = "PENDING",
4
+ READY_FOR_DISTRIBUTION = "READY_FOR_DISTRIBUTION",
5
+ ROAD_TO_PICKUP = "ROAD_TO_PICKUP",
6
+ UNSUCCESSFUL_PICKUP = "UNSUCCESSFUL_PICKUP",
7
+ ROAD_TO_RETURN = "ROAD_TO_RETURN",
8
+ UNSUCCESSFUL_RETURN = "UNSUCCESSFUL_RETURN",
9
+ REJECTED = "REJECTED",
10
+ SHIPMENT_SENT = "SHIPMENT_SENT",
11
+ SHIPMENT_CONFIRMED = "SHIPMENT_CONFIRMED",
12
+ IN_TRANSIT = "IN_TRANSIT",
13
+ RECEIVED_BY_CARRIER = "RECEIVED_BY_CARRIER",
14
+ FAILED_DELIVERY_ATTEMPT = "FAILED_DELIVERY_ATTEMPT",
15
+ WRONG_ADDRESS = "WRONG_ADDRESS",
16
+ DELIVERED = "DELIVERED",
17
+ NOT_DELIVERED = "NOT_DELIVERED",
18
+ DESTRUCTION = "DESTRUCTION",
19
+ ACCIDENT = "ACCIDENT",
20
+ STOLEN = "STOLEN",
21
+ VISIT_SCHEDULED = "VISIT_SCHEDULED",
22
+ CALL_SCHEDULED = "CALL_SCHEDULED",
23
+ VISIT_CONFIRMED = "VISIT_CONFIRMED",
24
+ CALL_FAILED_UNKNOWN = "CALL_FAILED_UNKNOWN",
25
+ NO_ACCESS = "NO_ACCESS",
26
+ FAILED_VISIT_DEAD = "FAILED_VISIT_DEAD",
27
+ WRONG_OPERATOR_ZONE = "WRONG_OPERATOR_ZONE",
28
+ CALL_RESCHEDULED = "CALL_RESCHEDULED",
29
+ CALL_FAILED_DEAD = "CALL_FAILED_DEAD",
30
+ CALL_FAILED = "CALL_FAILED",
31
+ WHATSAPP_FAILED = "WHATSAPP_FAILED",
32
+ COURIER_FAILED = "COURIER_FAILED",
33
+ MISSING_DOCUMENTS = "MISSING_DOCUMENTS",
34
+ RETURNED_TO_WAREHOUSE = "RETURNED_TO_WAREHOUSE",
35
+ CLIENT_NOT_PRESENT = "CLIENT_NOT_PRESENT",
36
+ INCOMPLETE_ADDRESS = "INCOMPLETE_ADDRESS",
37
+ COVERAGE = "COVERAGE",
38
+ OPERATOR_REASSIGNED = "OPERATOR_REASSIGNED",
39
+ CLIENT_UNKNOWN = "CLIENT_UNKNOWN",
40
+ NO_CALL = "NO_CALL",
41
+ ZONE_PROBLEMS = "ZONE_PROBLEMS",
42
+ CLIENT_WORK = "CLIENT_WORK",
43
+ FRAUD = "FRAUD",
44
+ FRAUD_CLIENT = "FRAUD_CLIENT",
45
+ MISSING_NUMBER = "MISSING_NUMBER",
46
+ CLIENT_CANCELED = "CLIENT_CANCELED",
47
+ DESTROYED_BY_CLIENT = "DESTROYED_BY_CLIENT",
48
+ WEATHER = "WEATHER",
49
+ LOST = "LOST",
50
+ CLIENT_TRIP = "CLIENT_TRIP",
51
+ FAILED_VISIT_UNKNOWN = "FAILED_VISIT_UNKNOWN",
52
+ RETURNED = "RETURNED",
53
+ OTHER = "OTHER",
54
54
  }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum IssuanceType {
4
- VIRTUAL = 'VIRTUAL',
5
- PHYSICAL = 'PHYSICAL'
1
+
2
+
3
+ export enum IssuanceType {
4
+ VIRTUAL = 'VIRTUAL',
5
+ PHYSICAL = 'PHYSICAL'
6
6
  }
@@ -1,9 +1,9 @@
1
-
2
-
3
-
4
-
5
- export enum NominatedOrInnominated {
6
-
7
- NOMINATED = "NOMINATED",
8
- INNOMINATED = "INNOMINATED"
1
+
2
+
3
+
4
+
5
+ export enum NominatedOrInnominated {
6
+
7
+ NOMINATED = "NOMINATED",
8
+ INNOMINATED = "INNOMINATED"
9
9
  }
@@ -1,4 +1,4 @@
1
- export enum OwnershipType {
2
- NOMINATE = 'NOMINATE',
3
- INNOMINATE = 'INNOMINATE',
1
+ export enum OwnershipType {
2
+ NOMINATE = 'NOMINATE',
3
+ INNOMINATE = 'INNOMINATE',
4
4
  }
@@ -1,9 +1,9 @@
1
-
2
-
3
-
4
- export enum ShippingStatus {
5
- REQUESTED = "REQUESTED",
6
- IN_TRANSIT = "IN_TRANSIT",
7
- DELIVERED = "DELIVERED",
8
- WITH_ISSUE = "WITH_ISSUE"
1
+
2
+
3
+
4
+ export enum ShippingStatus {
5
+ REQUESTED = "REQUESTED",
6
+ IN_TRANSIT = "IN_TRANSIT",
7
+ DELIVERED = "DELIVERED",
8
+ WITH_ISSUE = "WITH_ISSUE"
9
9
  }
@@ -1,7 +1,7 @@
1
-
2
- export enum Status {
3
- ACTIVE = 'ACTIVE',
4
- PENDING = 'PENDING',
5
- PAUSED = 'PAUSED',
6
- CANCELLED = 'CANCELLED'
1
+
2
+ export enum Status {
3
+ ACTIVE = 'ACTIVE',
4
+ PENDING = 'PENDING',
5
+ PAUSED = 'PAUSED',
6
+ CANCELLED = 'CANCELLED'
7
7
  }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum UpdateKey {
4
- CHANGE_STATUS = 'CHANGE_STATUS',
5
- CHANGE_PIN = 'CHANGE_PIN'
1
+
2
+
3
+ export enum UpdateKey {
4
+ CHANGE_STATUS = 'CHANGE_STATUS',
5
+ CHANGE_PIN = 'CHANGE_PIN'
6
6
  }
@@ -1,7 +1,7 @@
1
-
2
-
3
-
4
- export enum VirtualOrPhysical {
5
- VIRTUAL = "VIRTUAL",
6
- PHYSICAL = "PHYSICAL"
1
+
2
+
3
+
4
+ export enum VirtualOrPhysical {
5
+ VIRTUAL = "VIRTUAL",
6
+ PHYSICAL = "PHYSICAL"
7
7
  }
package/src/card/index.ts CHANGED
@@ -1,44 +1,44 @@
1
-
2
- //dtos/internal
3
- export * from './dtos/Internal/ActivateBankAccountCardRequest';
4
- export * from './dtos/Internal/ActivateBankAccountCardResponse';
5
- export * from './dtos/Internal/CreateBankAccountCardRequest';
6
- export * from './dtos/Internal/CreateBankAccountCardResponse';
7
- export * from './dtos/Internal/CreateBankAccountCardShippingRequest';
8
- export * from './dtos/Internal/CreateBankAccountCardShippingResponse';
9
- export * from './dtos/Internal/GetBankAccountShippingRequest';
10
- export * from './dtos/Internal/GetBankAccountShippingResponse';
11
- export * from './dtos/Internal/UpdateBankAccountCardRequest';
12
- export * from './dtos/Internal/UpdateBankAccountCardResponse';
13
-
14
- //dtos
15
- export * from './dtos/CardActivateRequest';
16
- export * from './dtos/CardApplicationRequest';
17
- export * from './dtos/CardUpdateRequest';
18
- export * from './dtos/CardCreateAdditionalRequest';
19
- export * from './dtos/CardBalanceResponse';
20
- export * from './dtos/CardResponse';
21
- export * from './dtos/CardShipmentQueueMessage'
22
- export * from './dtos/CardShipmentUpdateRequest'
23
-
24
- //enums
25
- export * from './enums/CardType';
26
- export * from './enums/CardUpdateKey';
27
- export * from './enums/IssuanceType';
28
- export * from './enums/Status';
29
- export * from './enums/OwnershipType';
30
- export * from './enums/Brand';
31
- export * from './enums/UpdateKey';
32
- export * from './enums/CardIssuanceStatus';
33
- export * from './enums/NominatedOrInnominated'
34
- export * from './enums/CreditOrDebit'
35
- export * from './enums/ShippingStatus'
36
- export * from './enums/Status'
37
- export * from './enums/VirtualOrPhysical'
38
- export * from './enums/DeliveryChannel'
39
- export * from './enums/ExternalShippingStatus'
40
- export * from './enums/ExternalShippingStatusDetails'
41
-
42
-
43
-
44
-
1
+
2
+ //dtos/internal
3
+ export * from './dtos/Internal/ActivateBankAccountCardRequest';
4
+ export * from './dtos/Internal/ActivateBankAccountCardResponse';
5
+ export * from './dtos/Internal/CreateBankAccountCardRequest';
6
+ export * from './dtos/Internal/CreateBankAccountCardResponse';
7
+ export * from './dtos/Internal/CreateBankAccountCardShippingRequest';
8
+ export * from './dtos/Internal/CreateBankAccountCardShippingResponse';
9
+ export * from './dtos/Internal/GetBankAccountShippingRequest';
10
+ export * from './dtos/Internal/GetBankAccountShippingResponse';
11
+ export * from './dtos/Internal/UpdateBankAccountCardRequest';
12
+ export * from './dtos/Internal/UpdateBankAccountCardResponse';
13
+
14
+ //dtos
15
+ export * from './dtos/CardActivateRequest';
16
+ export * from './dtos/CardApplicationRequest';
17
+ export * from './dtos/CardUpdateRequest';
18
+ export * from './dtos/CardCreateAdditionalRequest';
19
+ export * from './dtos/CardBalanceResponse';
20
+ export * from './dtos/CardResponse';
21
+ export * from './dtos/CardShipmentQueueMessage'
22
+ export * from './dtos/CardShipmentUpdateRequest'
23
+
24
+ //enums
25
+ export * from './enums/CardType';
26
+ export * from './enums/CardUpdateKey';
27
+ export * from './enums/IssuanceType';
28
+ export * from './enums/Status';
29
+ export * from './enums/OwnershipType';
30
+ export * from './enums/Brand';
31
+ export * from './enums/UpdateKey';
32
+ export * from './enums/CardIssuanceStatus';
33
+ export * from './enums/NominatedOrInnominated'
34
+ export * from './enums/CreditOrDebit'
35
+ export * from './enums/ShippingStatus'
36
+ export * from './enums/Status'
37
+ export * from './enums/VirtualOrPhysical'
38
+ export * from './enums/DeliveryChannel'
39
+ export * from './enums/ExternalShippingStatus'
40
+ export * from './enums/ExternalShippingStatusDetails'
41
+
42
+
43
+
44
+
@@ -1,54 +1,54 @@
1
- import { ValidationArguments, ValidationOptions, ValidatorConstraint, registerDecorator } from "class-validator";
2
- import { CardUpdateRequest } from "../dtos/CardUpdateRequest";
3
- import { Status } from "../enums/Status";
4
- import { UpdateKey } from "../enums/UpdateKey";
5
-
6
-
7
- @ValidatorConstraint({ async: true })
8
- export class CardUpdateKeyConstraint {
9
-
10
- public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
11
-
12
- const cardUpdateRequest = arg.object as CardUpdateRequest;
13
-
14
- // Validar si el valor es uno de los status válidos
15
- if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
16
- return Object.values(Status).includes(value as Status);
17
- }
18
-
19
- // Validar si el valor es un string de 4 dígitos no consecutivos
20
- if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
21
-
22
- if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
23
-
24
- // Verifica que no sean consecutivos asc o desc
25
- for (let i = 0; i < value.length - 1; i++) {
26
- if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
27
- continue;
28
- } else {
29
- return false;
30
- }
31
- }
32
- return true;
33
- }
34
-
35
- // En caso de que type no sea ninguno de los esperados
36
- return false;
37
- }
38
-
39
- defaultMessage(args: ValidationArguments) {
40
- return "The value is not valid for the update type.";
41
- }
42
- }
43
-
44
- export function IsValueValid(validationOptions?: ValidationOptions) {
45
- return function (object: Object, propertyName: string) {
46
- registerDecorator({
47
- target: object.constructor,
48
- propertyName: propertyName,
49
- options: validationOptions,
50
- constraints: [],
51
- validator: CardUpdateKeyConstraint,
52
- });
53
- };
1
+ import { ValidationArguments, ValidationOptions, ValidatorConstraint, registerDecorator } from "class-validator";
2
+ import { CardUpdateRequest } from "../dtos/CardUpdateRequest";
3
+ import { Status } from "../enums/Status";
4
+ import { UpdateKey } from "../enums/UpdateKey";
5
+
6
+
7
+ @ValidatorConstraint({ async: true })
8
+ export class CardUpdateKeyConstraint {
9
+
10
+ public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
11
+
12
+ const cardUpdateRequest = arg.object as CardUpdateRequest;
13
+
14
+ // Validar si el valor es uno de los status válidos
15
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
16
+ return Object.values(Status).includes(value as Status);
17
+ }
18
+
19
+ // Validar si el valor es un string de 4 dígitos no consecutivos
20
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
21
+
22
+ if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
23
+
24
+ // Verifica que no sean consecutivos asc o desc
25
+ for (let i = 0; i < value.length - 1; i++) {
26
+ if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
27
+ continue;
28
+ } else {
29
+ return false;
30
+ }
31
+ }
32
+ return true;
33
+ }
34
+
35
+ // En caso de que type no sea ninguno de los esperados
36
+ return false;
37
+ }
38
+
39
+ defaultMessage(args: ValidationArguments) {
40
+ return "The value is not valid for the update type.";
41
+ }
42
+ }
43
+
44
+ export function IsValueValid(validationOptions?: ValidationOptions) {
45
+ return function (object: Object, propertyName: string) {
46
+ registerDecorator({
47
+ target: object.constructor,
48
+ propertyName: propertyName,
49
+ options: validationOptions,
50
+ constraints: [],
51
+ validator: CardUpdateKeyConstraint,
52
+ });
53
+ };
54
54
  }
@@ -1,26 +1,26 @@
1
- import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments, registerDecorator, ValidationOptions } from 'class-validator';
2
- import { regexPhoneNumber } from '../../helpers/constans/regex';
3
-
4
- @ValidatorConstraint({ async: true })
5
- export class IsPhoneNumberConstraint implements ValidatorConstraintInterface {
6
- validate(phoneNumber: string, args: ValidationArguments) {
7
- return regexPhoneNumber.test(phoneNumber);
8
- }
9
-
10
- defaultMessage(args: ValidationArguments) {
11
- return "The phone number is not valid. The expected format is +############.";
12
- }
13
- }
14
-
15
- // Decorador que usaremos en nuestras clases DTO
16
- export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
17
- return function (object: Object, propertyName: string) {
18
- registerDecorator({
19
- target: object.constructor,
20
- propertyName: propertyName,
21
- options: validationOptions,
22
- constraints: [],
23
- validator: IsPhoneNumberConstraint,
24
- });
25
- };
26
- }
1
+ import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments, registerDecorator, ValidationOptions } from 'class-validator';
2
+ import { regexPhoneNumber } from '../../helpers/constans/regex';
3
+
4
+ @ValidatorConstraint({ async: true })
5
+ export class IsPhoneNumberConstraint implements ValidatorConstraintInterface {
6
+ validate(phoneNumber: string, args: ValidationArguments) {
7
+ return regexPhoneNumber.test(phoneNumber);
8
+ }
9
+
10
+ defaultMessage(args: ValidationArguments) {
11
+ return "The phone number is not valid. The expected format is +############.";
12
+ }
13
+ }
14
+
15
+ // Decorador que usaremos en nuestras clases DTO
16
+ export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
17
+ return function (object: Object, propertyName: string) {
18
+ registerDecorator({
19
+ target: object.constructor,
20
+ propertyName: propertyName,
21
+ options: validationOptions,
22
+ constraints: [],
23
+ validator: IsPhoneNumberConstraint,
24
+ });
25
+ };
26
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum Country {
4
- MEX = "MEX",
5
- USA = "USA"
6
- }
1
+
2
+
3
+ export enum Country {
4
+ MEX = "MEX",
5
+ USA = "USA"
6
+ }
@@ -1,7 +1,7 @@
1
-
2
- //*
3
-
4
- export enum CountryId {
5
- MEX = "484",
6
- USA = "840"
1
+
2
+ //*
3
+
4
+ export enum CountryId {
5
+ MEX = "484",
6
+ USA = "840"
7
7
  }
@@ -1,6 +1,6 @@
1
- //dto
2
-
3
-
4
- //enums
5
- export * from './enums/CountryId';
1
+ //dto
2
+
3
+
4
+ //enums
5
+ export * from './enums/CountryId';
6
6
  export * from './enums/Country';
@@ -1,9 +1,9 @@
1
-
2
- export class CurrencyResponse {
3
-
4
- currencyId: string;
5
- iso: string;
6
- name: string;
7
- symbol: string;
8
-
1
+
2
+ export class CurrencyResponse {
3
+
4
+ currencyId: string;
5
+ iso: string;
6
+ name: string;
7
+ symbol: string;
8
+
9
9
  }
@@ -1,3 +1,3 @@
1
-
2
-
1
+
2
+
3
3
  export * from './dtos/CurrencyResponse';
@@ -1,19 +1,19 @@
1
- import { Profile } from "../enums/Profile";
2
- import { Scope } from "../enums/Scope";
3
- import { Status } from "../enums/Status";
4
- import { External } from "./External";
5
-
6
-
7
- export interface DirectoryResponse {
8
- id: string;
9
- identityId: string | null;
10
- lastSession: string | null;
11
- ownerDirectoryId: string | null;
12
- password: string;
13
- peopleId: string;
14
- phoneNumber: string;
15
- scope: Array<Scope>;
16
- status: Status;
17
- userProfile: Profile;
18
- external: Array<External>;
1
+ import { Profile } from "../enums/Profile";
2
+ import { Scope } from "../enums/Scope";
3
+ import { Status } from "../enums/Status";
4
+ import { External } from "./External";
5
+
6
+
7
+ export interface DirectoryResponse {
8
+ id: string;
9
+ identityId: string | null;
10
+ lastSession: string | null;
11
+ ownerDirectoryId: string | null;
12
+ password: string;
13
+ peopleId: string;
14
+ phoneNumber: string;
15
+ scope: Array<Scope>;
16
+ status: Status;
17
+ userProfile: Profile;
18
+ external: Array<External>;
19
19
  }
@@ -1,7 +1,7 @@
1
- import { Provider } from "../../provider/enums/Provider";
2
-
3
-
4
- export type External = {
5
- provider: Provider;
6
- user: string;
1
+ import { Provider } from "../../provider/enums/Provider";
2
+
3
+
4
+ export type External = {
5
+ provider: Provider;
6
+ user: string;
7
7
  };
@@ -1,7 +1,7 @@
1
-
2
-
3
- export enum Profile {
4
- HOST = "HOST",
5
- GUEST = "GUEST",
6
- GUEST_MINOR = "GUEST_MINOR"
1
+
2
+
3
+ export enum Profile {
4
+ HOST = "HOST",
5
+ GUEST = "GUEST",
6
+ GUEST_MINOR = "GUEST_MINOR"
7
7
  }
@@ -1,8 +1,8 @@
1
-
2
-
3
- export enum Scope {
4
- FIADO_MX = "fiado.mx",
5
- FIADO_US = "fiado.us",
6
- US_ONBOARDING_PROFILE = "fiado.on_us",
7
- MX_ONBOARDING_PROFILE = "fiado.on_mx"
1
+
2
+
3
+ export enum Scope {
4
+ FIADO_MX = "fiado.mx",
5
+ FIADO_US = "fiado.us",
6
+ US_ONBOARDING_PROFILE = "fiado.on_us",
7
+ MX_ONBOARDING_PROFILE = "fiado.on_mx"
8
8
  }
@@ -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
  }