@fiado/type-kit 1.0.84 → 1.0.85

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 (143) 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/sonarlint/issuestore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  5. package/.idea/sonarlint/issuestore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  6. package/.idea/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +2 -0
  7. package/.idea/sonarlint/issuestore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  8. package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  9. package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  10. package/.idea/sonarlint/issuestore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  11. package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  12. package/.idea/sonarlint/issuestore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  13. package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  14. package/.idea/sonarlint/issuestore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  15. package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  16. package/.idea/sonarlint/issuestore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  17. package/.idea/sonarlint/issuestore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  18. package/.idea/sonarlint/issuestore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  19. package/.idea/sonarlint/issuestore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  20. package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  21. package/.idea/sonarlint/issuestore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  22. package/.idea/sonarlint/issuestore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  23. package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  24. package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  25. package/.idea/sonarlint/issuestore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  26. package/.idea/sonarlint/issuestore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  27. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  28. package/.idea/sonarlint/issuestore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  29. package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  30. package/.idea/sonarlint/issuestore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  31. package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  32. package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  33. package/.idea/sonarlint/issuestore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  34. package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  35. package/.idea/sonarlint/issuestore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  36. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  37. package/.idea/sonarlint/issuestore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  38. package/.idea/sonarlint/issuestore/9/8/98a520adeec585ead0013d974a18f679393b6997 +2 -0
  39. package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  40. package/.idea/sonarlint/issuestore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  41. package/.idea/sonarlint/issuestore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  42. package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  43. package/.idea/sonarlint/issuestore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  44. package/.idea/sonarlint/issuestore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  45. package/.idea/sonarlint/issuestore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  46. package/.idea/sonarlint/issuestore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  47. package/.idea/sonarlint/issuestore/index.pb +87 -0
  48. package/.idea/sonarlint/securityhotspotstore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  49. package/.idea/sonarlint/securityhotspotstore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  50. package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
  51. package/.idea/sonarlint/securityhotspotstore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  52. package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  53. package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  54. package/.idea/sonarlint/securityhotspotstore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  55. package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  56. package/.idea/sonarlint/securityhotspotstore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  57. package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  58. package/.idea/sonarlint/securityhotspotstore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  59. package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  60. package/.idea/sonarlint/securityhotspotstore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  61. package/.idea/sonarlint/securityhotspotstore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  62. package/.idea/sonarlint/securityhotspotstore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  63. package/.idea/sonarlint/securityhotspotstore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  64. package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  65. package/.idea/sonarlint/securityhotspotstore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  66. package/.idea/sonarlint/securityhotspotstore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  67. package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  68. package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  69. package/.idea/sonarlint/securityhotspotstore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  70. package/.idea/sonarlint/securityhotspotstore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  71. package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  72. package/.idea/sonarlint/securityhotspotstore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  73. package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  74. package/.idea/sonarlint/securityhotspotstore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  75. package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  76. package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  77. package/.idea/sonarlint/securityhotspotstore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  78. package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  79. package/.idea/sonarlint/securityhotspotstore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  80. package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  81. package/.idea/sonarlint/securityhotspotstore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  82. package/.idea/sonarlint/securityhotspotstore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  83. package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  84. package/.idea/sonarlint/securityhotspotstore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  85. package/.idea/sonarlint/securityhotspotstore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  86. package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  87. package/.idea/sonarlint/securityhotspotstore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  88. package/.idea/sonarlint/securityhotspotstore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  89. package/.idea/sonarlint/securityhotspotstore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  90. package/.idea/sonarlint/securityhotspotstore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  91. package/.idea/sonarlint/securityhotspotstore/index.pb +87 -0
  92. package/.idea/vcs.xml +6 -0
  93. package/bin/account/dtos/AccountInfo.d.ts +12 -0
  94. package/bin/{tern/dtos/TernAddress.js → account/dtos/AccountInfo.js} +29 -10
  95. package/bin/account/dtos/ExchangeInfo.d.ts +4 -0
  96. package/bin/{tern/dtos/TernGetUserRequest.js → account/dtos/ExchangeInfo.js} +7 -4
  97. package/bin/account/dtos/GetAccountBalanceResponse.d.ts +9 -0
  98. package/bin/account/dtos/GetAccountBalanceResponse.js +51 -0
  99. package/bin/account/dtos/GetPocketBalanceResponse.d.ts +10 -0
  100. package/bin/account/dtos/GetPocketBalanceResponse.js +61 -0
  101. package/bin/account/dtos/GetPocketResponse.d.ts +2 -0
  102. package/bin/account/dtos/GetPocketResponse.js +5 -0
  103. package/bin/account/dtos/PocketItem.d.ts +12 -0
  104. package/bin/{tern/dtos/TernCreateUserRequest.js → account/dtos/PocketItem.js} +29 -34
  105. package/bin/account/entities/AccountEntityBase.d.ts +2 -0
  106. package/bin/account/index.d.ts +7 -0
  107. package/bin/account/index.js +7 -0
  108. package/package.json +1 -1
  109. package/src/account/dtos/AccountInfo.ts +40 -0
  110. package/src/account/dtos/ExchangeInfo.ts +9 -0
  111. package/src/account/dtos/GetAccountBalanceResponse.ts +33 -0
  112. package/src/account/dtos/GetPocketBalanceResponse.ts +44 -0
  113. package/src/account/dtos/GetPocketResponse.ts +3 -0
  114. package/src/account/dtos/PocketItem.ts +46 -0
  115. package/src/account/entities/AccountEntityBase.ts +9 -7
  116. package/src/account/index.ts +8 -0
  117. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  118. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  119. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  120. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  121. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  122. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  123. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  124. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  125. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  126. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  127. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  128. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  129. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  130. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  131. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  132. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  133. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  134. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  135. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  136. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  137. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  138. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  139. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  140. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  141. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  142. package/bin/tern/index.d.ts +0 -11
  143. package/bin/tern/index.js +0 -29
@@ -0,0 +1,61 @@
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.GetPocketBalanceResponse = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const regex_1 = require("../../helpers/constans/regex");
15
+ class GetPocketBalanceResponse {
16
+ }
17
+ exports.GetPocketBalanceResponse = GetPocketBalanceResponse;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
21
+ message: 'directoryId must be a valid UUID v4',
22
+ }),
23
+ __metadata("design:type", String)
24
+ ], GetPocketBalanceResponse.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
28
+ message: 'directoryId must be a valid UUID v4',
29
+ }),
30
+ __metadata("design:type", String)
31
+ ], GetPocketBalanceResponse.prototype, "accountId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
35
+ message: 'directoryId must be a valid UUID v4',
36
+ }),
37
+ __metadata("design:type", String)
38
+ ], GetPocketBalanceResponse.prototype, "ownerDirectoryId", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
42
+ message: 'directoryId must be a valid UUID v4',
43
+ }),
44
+ __metadata("design:type", String)
45
+ ], GetPocketBalanceResponse.prototype, "beneficiaryDirectoryId", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], GetPocketBalanceResponse.prototype, "currencyId", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsNumber)(),
52
+ __metadata("design:type", Number)
53
+ ], GetPocketBalanceResponse.prototype, "currentBalance", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsNumber)(),
56
+ __metadata("design:type", Number)
57
+ ], GetPocketBalanceResponse.prototype, "availableBalance", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsNumber)(),
60
+ __metadata("design:type", Number)
61
+ ], GetPocketBalanceResponse.prototype, "lockedBalance", void 0);
@@ -0,0 +1,2 @@
1
+ export default class GetPocketResponse {
2
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GetPocketResponse {
4
+ }
5
+ exports.default = GetPocketResponse;
@@ -0,0 +1,12 @@
1
+ export default class PocketItem {
2
+ id: string;
3
+ ownerDirectoryId: string;
4
+ beneficiaryDirectoryId: string;
5
+ isOwnerPocket: boolean;
6
+ phoneNumber: string;
7
+ name: string;
8
+ lastName: string;
9
+ availableBalance: number;
10
+ lockedBalance: number;
11
+ unsettledBalance: number;
12
+ }
@@ -9,62 +9,57 @@ 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.TernCreateUserRequest = void 0;
13
- const identity_1 = require("../../identity");
14
12
  const class_validator_1 = require("class-validator");
15
13
  const regex_1 = require("../../helpers/constans/regex");
16
- const directory_1 = require("../../directory");
17
- const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
18
- const address_1 = require("../../address");
19
- class TernCreateUserRequest {
14
+ class PocketItem {
20
15
  }
21
- exports.TernCreateUserRequest = TernCreateUserRequest;
16
+ exports.default = PocketItem;
22
17
  __decorate([
23
18
  (0, class_validator_1.IsString)(),
24
19
  (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
25
20
  message: 'directoryId must be a valid UUID v4',
26
21
  }),
27
22
  __metadata("design:type", String)
28
- ], TernCreateUserRequest.prototype, "directoryId", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
31
- __metadata("design:type", String)
32
- ], TernCreateUserRequest.prototype, "typeOfDirectoryId", void 0);
23
+ ], PocketItem.prototype, "id", void 0);
33
24
  __decorate([
34
25
  (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
27
+ message: 'directoryId must be a valid UUID v4',
28
+ }),
35
29
  __metadata("design:type", String)
36
- ], TernCreateUserRequest.prototype, "firstName", void 0);
30
+ ], PocketItem.prototype, "ownerDirectoryId", void 0);
37
31
  __decorate([
38
32
  (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
34
+ message: 'directoryId must be a valid UUID v4',
35
+ }),
39
36
  __metadata("design:type", String)
40
- ], TernCreateUserRequest.prototype, "lastName", void 0);
41
- __decorate([
42
- (0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
43
- __metadata("design:type", String)
44
- ], TernCreateUserRequest.prototype, "phoneNumber", void 0);
37
+ ], PocketItem.prototype, "beneficiaryDirectoryId", void 0);
45
38
  __decorate([
46
- (0, class_validator_1.ValidateNested)(),
47
- __metadata("design:type", address_1.AddressResponse)
48
- ], TernCreateUserRequest.prototype, "address", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsEmail)(),
51
- __metadata("design:type", String)
52
- ], TernCreateUserRequest.prototype, "email", void 0);
39
+ (0, class_validator_1.IsBoolean)(),
40
+ __metadata("design:type", Boolean)
41
+ ], PocketItem.prototype, "isOwnerPocket", void 0);
53
42
  __decorate([
54
- (0, class_validator_1.IsDateString)(),
43
+ (0, class_validator_1.IsString)(),
55
44
  __metadata("design:type", String)
56
- ], TernCreateUserRequest.prototype, "dob", void 0);
45
+ ], PocketItem.prototype, "phoneNumber", void 0);
57
46
  __decorate([
58
47
  (0, class_validator_1.IsString)(),
59
- (0, class_validator_1.Length)(1, 30),
60
48
  __metadata("design:type", String)
61
- ], TernCreateUserRequest.prototype, "documentNumber", void 0);
49
+ ], PocketItem.prototype, "name", void 0);
62
50
  __decorate([
63
51
  (0, class_validator_1.IsString)(),
64
- (0, class_validator_1.Length)(1, 30),
65
52
  __metadata("design:type", String)
66
- ], TernCreateUserRequest.prototype, "documentType", void 0);
53
+ ], PocketItem.prototype, "lastName", void 0);
67
54
  __decorate([
68
- (0, class_validator_1.IsEnum)(identity_1.SexDocument),
69
- __metadata("design:type", String)
70
- ], TernCreateUserRequest.prototype, "gender", void 0);
55
+ (0, class_validator_1.IsNumber)(),
56
+ __metadata("design:type", Number)
57
+ ], PocketItem.prototype, "availableBalance", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsNumber)(),
60
+ __metadata("design:type", Number)
61
+ ], PocketItem.prototype, "lockedBalance", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsNumber)(),
64
+ __metadata("design:type", Number)
65
+ ], PocketItem.prototype, "unsettledBalance", void 0);
@@ -1,4 +1,5 @@
1
1
  import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
2
+ import { AccountLevelEnum } from "../enums/AccountLevelEnum";
2
3
  export declare class AccountEntityBase {
3
4
  id: string;
4
5
  directoryId: string;
@@ -7,4 +8,5 @@ export declare class AccountEntityBase {
7
8
  currencyId: string;
8
9
  status: AccountEntityStatusEnum;
9
10
  tenantId: string;
11
+ accountLevel: AccountLevelEnum;
10
12
  }
@@ -13,8 +13,15 @@ export * from './dtos/UpdateBankAccountUserRequest';
13
13
  export * from './dtos/UpdateBankAccountUserResponse';
14
14
  export * from './dtos/GetBankAccountSensitiveInformationRequest';
15
15
  export * from './dtos/GetBankAccountSensitiveInformationResponse';
16
+ export * from './dtos/AccountInfo';
17
+ export * from './dtos/ExchangeInfo';
18
+ export * from './dtos/GetAccountBalanceResponse';
19
+ export * from './dtos/GetPocketBalanceResponse';
20
+ export * from './dtos/GetPocketResponse';
21
+ export * from './dtos/PocketItem';
16
22
  export * from './entities/AccountEntityBase';
17
23
  export * from './enums/AccountEntityStatusEnum';
18
24
  export * from './enums/BankAccountTypeEnum';
25
+ export * from './enums/BankAccountUserStatusEnum';
19
26
  export * from './enums/UserEntityStatusEnum';
20
27
  export * from './enums/AccountLevelEnum';
@@ -30,10 +30,17 @@ __exportStar(require("./dtos/UpdateBankAccountUserRequest"), exports);
30
30
  __exportStar(require("./dtos/UpdateBankAccountUserResponse"), exports);
31
31
  __exportStar(require("./dtos/GetBankAccountSensitiveInformationRequest"), exports);
32
32
  __exportStar(require("./dtos/GetBankAccountSensitiveInformationResponse"), exports);
33
+ __exportStar(require("./dtos/AccountInfo"), exports);
34
+ __exportStar(require("./dtos/ExchangeInfo"), exports);
35
+ __exportStar(require("./dtos/GetAccountBalanceResponse"), exports);
36
+ __exportStar(require("./dtos/GetPocketBalanceResponse"), exports);
37
+ __exportStar(require("./dtos/GetPocketResponse"), exports);
38
+ __exportStar(require("./dtos/PocketItem"), exports);
33
39
  //Entities
34
40
  __exportStar(require("./entities/AccountEntityBase"), exports);
35
41
  //Enums
36
42
  __exportStar(require("./enums/AccountEntityStatusEnum"), exports);
37
43
  __exportStar(require("./enums/BankAccountTypeEnum"), exports);
44
+ __exportStar(require("./enums/BankAccountUserStatusEnum"), exports);
38
45
  __exportStar(require("./enums/UserEntityStatusEnum"), exports);
39
46
  __exportStar(require("./enums/AccountLevelEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +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;
40
+ }
@@ -0,0 +1,9 @@
1
+ import {IsNumber, IsString} from "class-validator";
2
+
3
+ export default class ExchangeInfo {
4
+ @IsString()
5
+ currencyId: string;
6
+
7
+ @IsNumber()
8
+ rate: number;
9
+ }
@@ -0,0 +1,33 @@
1
+ import {IsNumber, IsString, Matches} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+
4
+ export class GetAccountBalanceResponse {
5
+ @IsString()
6
+ @Matches(regexUuidV4,
7
+ {
8
+ message: 'directoryId must be a valid UUID v4',
9
+ })
10
+ id: string;
11
+
12
+ @IsString()
13
+ @Matches(regexUuidV4,
14
+ {
15
+ message: 'directoryId must be a valid UUID v4',
16
+ })
17
+ directoryId: string;
18
+
19
+ @IsString()
20
+ currencyId: string;
21
+
22
+ @IsNumber()
23
+ currentBalance: number;
24
+
25
+ @IsNumber()
26
+ availableBalance: number;
27
+
28
+ @IsNumber()
29
+ lockedBalance: number;
30
+
31
+ @IsNumber()
32
+ unsettledBalance: number;
33
+ }
@@ -0,0 +1,44 @@
1
+ import {IsNumber, IsString, Matches} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+
4
+ export class GetPocketBalanceResponse {
5
+ @IsString()
6
+ @Matches(regexUuidV4,
7
+ {
8
+ message: 'directoryId must be a valid UUID v4',
9
+ })
10
+ id: string;
11
+
12
+ @IsString()
13
+ @Matches(regexUuidV4,
14
+ {
15
+ message: 'directoryId must be a valid UUID v4',
16
+ })
17
+ accountId: string;
18
+
19
+ @IsString()
20
+ @Matches(regexUuidV4,
21
+ {
22
+ message: 'directoryId must be a valid UUID v4',
23
+ })
24
+ ownerDirectoryId: string;
25
+
26
+ @IsString()
27
+ @Matches(regexUuidV4,
28
+ {
29
+ message: 'directoryId must be a valid UUID v4',
30
+ })
31
+ beneficiaryDirectoryId: string;
32
+
33
+ @IsString()
34
+ currencyId: string;
35
+
36
+ @IsNumber()
37
+ currentBalance: number;
38
+
39
+ @IsNumber()
40
+ availableBalance: number;
41
+
42
+ @IsNumber()
43
+ lockedBalance: number;
44
+ }
@@ -0,0 +1,3 @@
1
+ export default class GetPocketResponse {
2
+
3
+ }
@@ -0,0 +1,46 @@
1
+ import {IsBoolean, IsNumber, IsString, Matches} from "class-validator";
2
+ import {regexUuidV4} from "../../helpers/constans/regex";
3
+
4
+ export default class PocketItem {
5
+ @IsString()
6
+ @Matches(regexUuidV4,
7
+ {
8
+ message: 'directoryId must be a valid UUID v4',
9
+ })
10
+ id: string;
11
+
12
+ @IsString()
13
+ @Matches(regexUuidV4,
14
+ {
15
+ message: 'directoryId must be a valid UUID v4',
16
+ })
17
+ ownerDirectoryId: string;
18
+
19
+ @IsString()
20
+ @Matches(regexUuidV4,
21
+ {
22
+ message: 'directoryId must be a valid UUID v4',
23
+ })
24
+ beneficiaryDirectoryId: string;
25
+
26
+ @IsBoolean()
27
+ isOwnerPocket: boolean;
28
+
29
+ @IsString()
30
+ phoneNumber: string;
31
+
32
+ @IsString()
33
+ name: string;
34
+
35
+ @IsString()
36
+ lastName: string;
37
+
38
+ @IsNumber()
39
+ availableBalance: number;
40
+
41
+ @IsNumber()
42
+ lockedBalance: number;
43
+
44
+ @IsNumber()
45
+ unsettledBalance: number;
46
+ }
@@ -1,11 +1,13 @@
1
1
  import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum"
2
+ import {AccountLevelEnum} from "../enums/AccountLevelEnum";
2
3
 
3
4
  export class AccountEntityBase {
4
- id: string
5
- directoryId: string
6
- typeOfDirectoryId: string
7
- peopleId: string
8
- currencyId: string
9
- status: AccountEntityStatusEnum
10
- tenantId: string
5
+ id: string;
6
+ directoryId: string;
7
+ typeOfDirectoryId: string;
8
+ peopleId: string;
9
+ currencyId: string;
10
+ status: AccountEntityStatusEnum;
11
+ tenantId: string;
12
+ accountLevel: AccountLevelEnum;
11
13
  }
@@ -14,11 +14,19 @@ export * from './dtos/UpdateBankAccountUserRequest';
14
14
  export * from './dtos/UpdateBankAccountUserResponse';
15
15
  export * from './dtos/GetBankAccountSensitiveInformationRequest';
16
16
  export * from './dtos/GetBankAccountSensitiveInformationResponse';
17
+ export * from './dtos/AccountInfo';
18
+ export * from './dtos/ExchangeInfo';
19
+ export * from './dtos/GetAccountBalanceResponse';
20
+ export * from './dtos/GetPocketBalanceResponse';
21
+ export * from './dtos/GetPocketResponse';
22
+ export * from './dtos/PocketItem';
23
+
17
24
  //Entities
18
25
  export * from './entities/AccountEntityBase';
19
26
 
20
27
  //Enums
21
28
  export * from './enums/AccountEntityStatusEnum';
22
29
  export * from './enums/BankAccountTypeEnum';
30
+ export * from './enums/BankAccountUserStatusEnum';
23
31
  export * from './enums/UserEntityStatusEnum';
24
32
  export * from './enums/AccountLevelEnum';
@@ -1,8 +0,0 @@
1
- import { BankAccountTypeEnum } from "../enums/BankAccountTypeEnum";
2
- export declare class CreateBankAccountInput {
3
- externalClientId?: string;
4
- externalUserId?: string;
5
- name: string;
6
- lastName: string;
7
- type: BankAccountTypeEnum;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountInput = void 0;
4
- class CreateBankAccountInput {
5
- }
6
- exports.CreateBankAccountInput = CreateBankAccountInput;
@@ -1,14 +0,0 @@
1
- import { AddressBase } from "../../address/dtos/AddressBase";
2
- export declare class CreateBankAccountUserInput {
3
- directoryId: string;
4
- typeOfDirectoryId: string;
5
- firstName: string;
6
- lastName: string;
7
- phoneNumber: string;
8
- address: AddressBase;
9
- email: string;
10
- dob: string;
11
- documentNumber: string;
12
- documentType?: string;
13
- gender?: "M" | "F";
14
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountUserInput = void 0;
4
- class CreateBankAccountUserInput {
5
- }
6
- exports.CreateBankAccountUserInput = CreateBankAccountUserInput;
@@ -1,3 +0,0 @@
1
- export declare class GroupDirectoryRetationsUpdateRequest {
2
- agent: string;
3
- }
@@ -1,22 +0,0 @@
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.GroupDirectoryRetationsUpdateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GroupDirectoryRetationsUpdateRequest {
15
- }
16
- exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
- __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(1, 20),
21
- __metadata("design:type", String)
22
- ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
@@ -1,8 +0,0 @@
1
- export declare class TernAddress {
2
- address1?: string;
3
- address2?: string;
4
- city?: string;
5
- province?: string;
6
- postalCode?: string;
7
- country?: string;
8
- }
@@ -1,7 +0,0 @@
1
- import { TernAccountTypeEnum } from "../enums/TernAccountTypeEnum";
2
- export declare class TernCreateAccountRequest {
3
- externalUserId?: string;
4
- name: string;
5
- lastName: string;
6
- type: TernAccountTypeEnum;
7
- }
@@ -1,33 +0,0 @@
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.TernCreateAccountRequest = void 0;
13
- const TernAccountTypeEnum_1 = require("../enums/TernAccountTypeEnum");
14
- const class_validator_1 = require("class-validator");
15
- class TernCreateAccountRequest {
16
- }
17
- exports.TernCreateAccountRequest = TernCreateAccountRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], TernCreateAccountRequest.prototype, "externalUserId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- __metadata("design:type", String)
25
- ], TernCreateAccountRequest.prototype, "name", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsString)(),
28
- __metadata("design:type", String)
29
- ], TernCreateAccountRequest.prototype, "lastName", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsEnum)(TernAccountTypeEnum_1.TernAccountTypeEnum),
32
- __metadata("design:type", String)
33
- ], TernCreateAccountRequest.prototype, "type", void 0);
@@ -1,5 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class TernCreateAccountResponse {
3
- externalAccountId: string;
4
- provider: Provider;
5
- }
@@ -1,25 +0,0 @@
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.TernCreateAccountResponse = void 0;
13
- const provider_1 = require("../../provider");
14
- const class_validator_1 = require("class-validator");
15
- class TernCreateAccountResponse {
16
- }
17
- exports.TernCreateAccountResponse = TernCreateAccountResponse;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- __metadata("design:type", String)
21
- ], TernCreateAccountResponse.prototype, "externalAccountId", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsEnum)(provider_1.Provider),
24
- __metadata("design:type", String)
25
- ], TernCreateAccountResponse.prototype, "provider", void 0);
@@ -1,15 +0,0 @@
1
- import { SexDocument } from "../../identity";
2
- import { AddressResponse } from "../../address";
3
- export declare class TernCreateUserRequest {
4
- directoryId: string;
5
- typeOfDirectoryId: string;
6
- firstName: string;
7
- lastName: string;
8
- phoneNumber: string;
9
- address: AddressResponse;
10
- email: string;
11
- dob: string;
12
- documentNumber: string;
13
- documentType?: string;
14
- gender?: SexDocument;
15
- }
@@ -1,8 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class TernCreateUserResponse {
3
- externalUserId: string;
4
- externalAccountId?: string;
5
- provider: Provider;
6
- accountNumber?: string;
7
- routingNumber?: string;
8
- }