@fiado/type-kit 1.0.82 → 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 (47) hide show
  1. package/.idea/sonarlint/issuestore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  2. package/.idea/sonarlint/issuestore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  3. package/.idea/sonarlint/issuestore/9/8/98a520adeec585ead0013d974a18f679393b6997 +2 -0
  4. package/.idea/sonarlint/issuestore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  5. package/.idea/sonarlint/issuestore/index.pb +15 -5
  6. package/.idea/sonarlint/securityhotspotstore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  7. package/.idea/sonarlint/securityhotspotstore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  8. package/.idea/sonarlint/securityhotspotstore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  9. package/.idea/sonarlint/securityhotspotstore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  10. package/.idea/sonarlint/securityhotspotstore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  11. package/.idea/sonarlint/securityhotspotstore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  12. package/.idea/sonarlint/securityhotspotstore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  13. package/.idea/sonarlint/securityhotspotstore/index.pb +15 -5
  14. package/bin/account/dtos/AccountInfo.d.ts +12 -0
  15. package/bin/account/dtos/AccountInfo.js +59 -0
  16. package/bin/account/dtos/ExchangeInfo.d.ts +4 -0
  17. package/bin/account/dtos/ExchangeInfo.js +23 -0
  18. package/bin/account/dtos/GetAccountBalanceResponse.d.ts +9 -0
  19. package/bin/account/dtos/GetAccountBalanceResponse.js +51 -0
  20. package/bin/account/dtos/GetBankAccountSensitiveInformationRequest.d.ts +1 -1
  21. package/bin/account/dtos/GetBankAccountSensitiveInformationRequest.js +3 -3
  22. package/bin/account/dtos/GetBankAccountSensitiveInformationResponse.d.ts +1 -1
  23. package/bin/account/dtos/GetBankAccountSensitiveInformationResponse.js +3 -3
  24. package/bin/account/dtos/GetPocketBalanceResponse.d.ts +10 -0
  25. package/bin/account/dtos/GetPocketBalanceResponse.js +61 -0
  26. package/bin/account/dtos/GetPocketResponse.d.ts +2 -0
  27. package/bin/account/dtos/GetPocketResponse.js +5 -0
  28. package/bin/account/dtos/PocketItem.d.ts +12 -0
  29. package/bin/account/dtos/PocketItem.js +65 -0
  30. package/bin/account/entities/AccountEntityBase.d.ts +2 -0
  31. package/bin/account/index.d.ts +7 -0
  32. package/bin/account/index.js +7 -0
  33. package/package.json +1 -1
  34. package/src/account/dtos/AccountInfo.ts +40 -0
  35. package/src/account/dtos/ExchangeInfo.ts +9 -0
  36. package/src/account/dtos/GetAccountBalanceResponse.ts +33 -0
  37. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +1 -1
  38. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +1 -1
  39. package/src/account/dtos/GetPocketBalanceResponse.ts +44 -0
  40. package/src/account/dtos/GetPocketResponse.ts +3 -0
  41. package/src/account/dtos/PocketItem.ts +46 -0
  42. package/src/account/entities/AccountEntityBase.ts +9 -7
  43. package/src/account/index.ts +8 -0
  44. package/.idea/sonarlint/issuestore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 +0 -2
  45. /package/.idea/sonarlint/issuestore/{d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 → 1/0/10612661d76edd5c482b60e71edd3a7f74505d5e} +0 -0
  46. /package/.idea/sonarlint/{securityhotspotstore/3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756 → issuestore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde} +0 -0
  47. /package/.idea/sonarlint/{securityhotspotstore/d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5 → issuestore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602} +0 -0
@@ -0,0 +1,2 @@
1
+
2
+ etypescript:S2094"Unexpected empty class.(���������8���1J$59fb3fae-5fc2-4bb3-97f9-726ef975b447
@@ -23,16 +23,12 @@ T
23
23
  $src/group/dtos/GroupCreateRequest.ts,7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401
24
24
  T
25
25
  $src/group/dtos/GroupUpdateRequest.ts,7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99
26
- Y
27
- )src/tern/dtos/TernCreateAccountRequest.ts,d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5
28
26
  X
29
27
  (src/account/dtos/AccountCreateRequest.ts,6/4/646b88aafc1ca8453d1a111ea33d258c52e07851
30
28
  Y
31
29
  )src/account/entities/AccountEntityBase.ts,3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1
32
30
  Y
33
31
  )src/account/dtos/AccountCreateResponse.ts,9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430
34
- ^
35
- .src/account/dtos/CreateBankAccountUserInput.ts,3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756
36
32
  `
37
33
  0src/account/dtos/CreateBankAccountUserRequest.ts,4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6
38
34
  D
@@ -74,4 +70,18 @@ _
74
70
  M
75
71
  src/helpers/constans/regex.ts,0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e
76
72
  U
77
- %src/account/enums/AccountLevelEnum.ts,c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5
73
+ %src/account/enums/AccountLevelEnum.ts,c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5
74
+ ]
75
+ -src/account/dtos/GetAccountBalanceResponse.ts,1/0/10612661d76edd5c482b60e71edd3a7f74505d5e
76
+ \
77
+ ,src/account/dtos/GetPocketBalanceResponse.ts,2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde
78
+ U
79
+ %src/account/dtos/GetPocketResponse.ts,9/8/98a520adeec585ead0013d974a18f679393b6997
80
+ S
81
+ #src/account/entities/AccountInfo.ts,8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c
82
+ R
83
+ "src/account/entities/PocketItem.ts,5/9/59861d131fb0f6508d57801b470735455669e76f
84
+ T
85
+ $src/account/entities/ExchangeInfo.ts,a/5/a545ebf840220599f323a01614431575a770e319
86
+ `
87
+ 0src/account/dtos/UpdateBankAccountUserRequest.ts,4/1/4110de41994be7f0e890b6711ba86bb4fb50f602
@@ -23,16 +23,12 @@ T
23
23
  $src/group/dtos/GroupCreateRequest.ts,7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401
24
24
  T
25
25
  $src/group/dtos/GroupUpdateRequest.ts,7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99
26
- Y
27
- )src/tern/dtos/TernCreateAccountRequest.ts,d/3/d3d6982c02d9d56dc2122ebca0b84b00a90b67e5
28
26
  X
29
27
  (src/account/dtos/AccountCreateRequest.ts,6/4/646b88aafc1ca8453d1a111ea33d258c52e07851
30
28
  Y
31
29
  )src/account/entities/AccountEntityBase.ts,3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1
32
30
  Y
33
31
  )src/account/dtos/AccountCreateResponse.ts,9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430
34
- ^
35
- .src/account/dtos/CreateBankAccountUserInput.ts,3/7/37a0f1ea15e5f94c2fc86540cc529be06a155756
36
32
  `
37
33
  0src/account/dtos/CreateBankAccountUserRequest.ts,4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6
38
34
  D
@@ -74,4 +70,18 @@ _
74
70
  M
75
71
  src/helpers/constans/regex.ts,0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e
76
72
  U
77
- %src/account/enums/AccountLevelEnum.ts,c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5
73
+ %src/account/enums/AccountLevelEnum.ts,c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5
74
+ ]
75
+ -src/account/dtos/GetAccountBalanceResponse.ts,1/0/10612661d76edd5c482b60e71edd3a7f74505d5e
76
+ \
77
+ ,src/account/dtos/GetPocketBalanceResponse.ts,2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde
78
+ U
79
+ %src/account/dtos/GetPocketResponse.ts,9/8/98a520adeec585ead0013d974a18f679393b6997
80
+ S
81
+ #src/account/entities/AccountInfo.ts,8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c
82
+ R
83
+ "src/account/entities/PocketItem.ts,5/9/59861d131fb0f6508d57801b470735455669e76f
84
+ T
85
+ $src/account/entities/ExchangeInfo.ts,a/5/a545ebf840220599f323a01614431575a770e319
86
+ `
87
+ 0src/account/dtos/UpdateBankAccountUserRequest.ts,4/1/4110de41994be7f0e890b6711ba86bb4fb50f602
@@ -0,0 +1,12 @@
1
+ import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
2
+ export default class AccountInfo {
3
+ id: string;
4
+ directoryId: string;
5
+ currencyId: string;
6
+ currentBalance: number;
7
+ availableBalance: number;
8
+ lockedBalance: number;
9
+ accountNumber: string;
10
+ routingNumber: string;
11
+ status: AccountEntityStatusEnum;
12
+ }
@@ -0,0 +1,59 @@
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
+ const class_validator_1 = require("class-validator");
13
+ const regex_1 = require("../../helpers/constans/regex");
14
+ const AccountEntityStatusEnum_1 = require("../enums/AccountEntityStatusEnum");
15
+ class AccountInfo {
16
+ }
17
+ exports.default = AccountInfo;
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
+ ], AccountInfo.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
+ ], AccountInfo.prototype, "directoryId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], AccountInfo.prototype, "currencyId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsNumber)(),
38
+ __metadata("design:type", Number)
39
+ ], AccountInfo.prototype, "currentBalance", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsNumber)(),
42
+ __metadata("design:type", Number)
43
+ ], AccountInfo.prototype, "availableBalance", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsNumber)(),
46
+ __metadata("design:type", Number)
47
+ ], AccountInfo.prototype, "lockedBalance", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsString)(),
50
+ __metadata("design:type", String)
51
+ ], AccountInfo.prototype, "accountNumber", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], AccountInfo.prototype, "routingNumber", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsEnum)(AccountEntityStatusEnum_1.AccountEntityStatusEnum),
58
+ __metadata("design:type", String)
59
+ ], AccountInfo.prototype, "status", void 0);
@@ -0,0 +1,4 @@
1
+ export default class ExchangeInfo {
2
+ currencyId: string;
3
+ rate: number;
4
+ }
@@ -0,0 +1,23 @@
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
+ const class_validator_1 = require("class-validator");
13
+ class ExchangeInfo {
14
+ }
15
+ exports.default = ExchangeInfo;
16
+ __decorate([
17
+ (0, class_validator_1.IsString)(),
18
+ __metadata("design:type", String)
19
+ ], ExchangeInfo.prototype, "currencyId", void 0);
20
+ __decorate([
21
+ (0, class_validator_1.IsNumber)(),
22
+ __metadata("design:type", Number)
23
+ ], ExchangeInfo.prototype, "rate", void 0);
@@ -0,0 +1,9 @@
1
+ export declare class GetAccountBalanceResponse {
2
+ id: string;
3
+ directoryId: string;
4
+ currencyId: string;
5
+ currentBalance: number;
6
+ availableBalance: number;
7
+ lockedBalance: number;
8
+ unsettledBalance: number;
9
+ }
@@ -0,0 +1,51 @@
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.GetAccountBalanceResponse = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const regex_1 = require("../../helpers/constans/regex");
15
+ class GetAccountBalanceResponse {
16
+ }
17
+ exports.GetAccountBalanceResponse = GetAccountBalanceResponse;
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
+ ], GetAccountBalanceResponse.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
+ ], GetAccountBalanceResponse.prototype, "directoryId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ __metadata("design:type", String)
35
+ ], GetAccountBalanceResponse.prototype, "currencyId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsNumber)(),
38
+ __metadata("design:type", Number)
39
+ ], GetAccountBalanceResponse.prototype, "currentBalance", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsNumber)(),
42
+ __metadata("design:type", Number)
43
+ ], GetAccountBalanceResponse.prototype, "availableBalance", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsNumber)(),
46
+ __metadata("design:type", Number)
47
+ ], GetAccountBalanceResponse.prototype, "lockedBalance", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsNumber)(),
50
+ __metadata("design:type", Number)
51
+ ], GetAccountBalanceResponse.prototype, "unsettledBalance", void 0);
@@ -1,4 +1,4 @@
1
- export declare class GetBankAccountSensitiveInformationInput {
1
+ export declare class GetBankAccountSensitiveInformationRequest {
2
2
  externalCardId: string;
3
3
  externalAccountId?: string;
4
4
  externalUserId?: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBankAccountSensitiveInformationInput = void 0;
4
- class GetBankAccountSensitiveInformationInput {
3
+ exports.GetBankAccountSensitiveInformationRequest = void 0;
4
+ class GetBankAccountSensitiveInformationRequest {
5
5
  }
6
- exports.GetBankAccountSensitiveInformationInput = GetBankAccountSensitiveInformationInput;
6
+ exports.GetBankAccountSensitiveInformationRequest = GetBankAccountSensitiveInformationRequest;
@@ -1,4 +1,4 @@
1
- export declare class GetBankAccountSensitiveInformationOutput {
1
+ export declare class GetBankAccountSensitiveInformationResponse {
2
2
  name: string;
3
3
  cvv: string;
4
4
  expirationYear: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBankAccountSensitiveInformationOutput = void 0;
4
- class GetBankAccountSensitiveInformationOutput {
3
+ exports.GetBankAccountSensitiveInformationResponse = void 0;
4
+ class GetBankAccountSensitiveInformationResponse {
5
5
  }
6
- exports.GetBankAccountSensitiveInformationOutput = GetBankAccountSensitiveInformationOutput;
6
+ exports.GetBankAccountSensitiveInformationResponse = GetBankAccountSensitiveInformationResponse;
@@ -0,0 +1,10 @@
1
+ export declare class GetPocketBalanceResponse {
2
+ id: string;
3
+ accountId: string;
4
+ ownerDirectoryId: string;
5
+ beneficiaryDirectoryId: string;
6
+ currencyId: string;
7
+ currentBalance: number;
8
+ availableBalance: number;
9
+ lockedBalance: number;
10
+ }
@@ -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
+ }
@@ -0,0 +1,65 @@
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
+ const class_validator_1 = require("class-validator");
13
+ const regex_1 = require("../../helpers/constans/regex");
14
+ class PocketItem {
15
+ }
16
+ exports.default = PocketItem;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
20
+ message: 'directoryId must be a valid UUID v4',
21
+ }),
22
+ __metadata("design:type", String)
23
+ ], PocketItem.prototype, "id", void 0);
24
+ __decorate([
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
+ }),
29
+ __metadata("design:type", String)
30
+ ], PocketItem.prototype, "ownerDirectoryId", void 0);
31
+ __decorate([
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
+ }),
36
+ __metadata("design:type", String)
37
+ ], PocketItem.prototype, "beneficiaryDirectoryId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsBoolean)(),
40
+ __metadata("design:type", Boolean)
41
+ ], PocketItem.prototype, "isOwnerPocket", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", String)
45
+ ], PocketItem.prototype, "phoneNumber", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], PocketItem.prototype, "name", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], PocketItem.prototype, "lastName", void 0);
54
+ __decorate([
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.82",
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
+ }
@@ -1,5 +1,5 @@
1
1
 
2
- export class GetBankAccountSensitiveInformationInput {
2
+ export class GetBankAccountSensitiveInformationRequest {
3
3
  externalCardId: string;
4
4
  externalAccountId?: string;
5
5
  externalUserId?: string;
@@ -1,5 +1,5 @@
1
1
 
2
- export class GetBankAccountSensitiveInformationOutput {
2
+ export class GetBankAccountSensitiveInformationResponse {
3
3
  name:string
4
4
  cvv :string
5
5
  expirationYear:string
@@ -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,2 +0,0 @@
1
-
2
- Otypescript:S1128"3Remove this unused import of 'BankAccountTypeEnum'.(����