@fiado/type-kit 1.1.68 → 1.1.70

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 (29) hide show
  1. package/bin/bankAccount/dtos/ExternalAccountCurrency.d.ts +4 -0
  2. package/bin/bankAccount/dtos/ExternalAccountCurrency.js +6 -0
  3. package/bin/bankAccount/dtos/ExternalAccountType.d.ts +4 -0
  4. package/bin/bankAccount/dtos/ExternalAccountType.js +6 -0
  5. package/bin/bankAccount/dtos/GetExternalBankAccountRequest.d.ts +12 -0
  6. package/bin/bankAccount/dtos/GetExternalBankAccountRequest.js +5 -0
  7. package/bin/bankAccount/dtos/GetExternalBankAccountResponse.d.ts +15 -0
  8. package/bin/bankAccount/dtos/GetExternalBankAccountResponse.js +5 -0
  9. package/bin/bankAccount/dtos/GetExternalBankResponse.d.ts +13 -0
  10. package/bin/bankAccount/dtos/GetExternalBankResponse.js +6 -0
  11. package/bin/bankAccount/index.d.ts +5 -0
  12. package/bin/bankAccount/index.js +21 -0
  13. package/bin/index.d.ts +1 -0
  14. package/bin/index.js +2 -1
  15. package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
  16. package/bin/transaction/dtos/TransactionCreateRequest.js +4 -0
  17. package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.d.ts +7 -0
  18. package/bin/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.js +5 -0
  19. package/package.json +1 -1
  20. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +4 -0
  21. package/src/bankAccount/dtos/ExternalAccountType.ts +4 -0
  22. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +12 -0
  23. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +16 -0
  24. package/src/bankAccount/dtos/GetExternalBankResponse.ts +14 -0
  25. package/src/bankAccount/index.ts +5 -0
  26. package/src/index.ts +1 -0
  27. package/src/transaction/dtos/Credit.ts +2 -3
  28. package/src/transaction/dtos/TransactionCreateRequest.ts +3 -0
  29. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +7 -0
@@ -0,0 +1,4 @@
1
+ export declare class ExternalAccountCurrency {
2
+ id?: number;
3
+ iso?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalAccountCurrency = void 0;
4
+ class ExternalAccountCurrency {
5
+ }
6
+ exports.ExternalAccountCurrency = ExternalAccountCurrency;
@@ -0,0 +1,4 @@
1
+ export declare class ExternalAccountType {
2
+ id?: number;
3
+ name?: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalAccountType = void 0;
4
+ class ExternalAccountType {
5
+ }
6
+ exports.ExternalAccountType = ExternalAccountType;
@@ -0,0 +1,12 @@
1
+ export default class GetExternalBankAccountRequest {
2
+ countryId?: string;
3
+ bankAccountId?: string;
4
+ accountNumber?: string;
5
+ directoryId?: string;
6
+ typeOfDirectoryId?: string;
7
+ alias?: string;
8
+ accountTypeId?: string;
9
+ accountHolderName?: string;
10
+ bankId?: string;
11
+ default?: boolean;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GetExternalBankAccountRequest {
4
+ }
5
+ exports.default = GetExternalBankAccountRequest;
@@ -0,0 +1,15 @@
1
+ import { ExternalAccountType } from "./ExternalAccountType";
2
+ export default class GetExternalBankAccountResponse {
3
+ id: string;
4
+ countryId: string;
5
+ accountNumber: string | null;
6
+ bankId: string;
7
+ alias: string | null;
8
+ directoryId: string;
9
+ typeOfDirectoryId: string;
10
+ accountHolderName: string;
11
+ email: string | null;
12
+ accountType: [ExternalAccountType];
13
+ bankName: string | null;
14
+ iconUrl: string | null;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class GetExternalBankAccountResponse {
4
+ }
5
+ exports.default = GetExternalBankAccountResponse;
@@ -0,0 +1,13 @@
1
+ import { ExternalAccountType } from "./ExternalAccountType";
2
+ import { ExternalAccountCurrency } from "./ExternalAccountCurrency";
3
+ export declare class GetExternalBankResponse {
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ accountNumberRegex: string;
8
+ sortNumber: number;
9
+ currency: ExternalAccountCurrency;
10
+ accountType: [ExternalAccountType];
11
+ iconUrl: string | null;
12
+ bankCode: string | null;
13
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetExternalBankResponse = void 0;
4
+ class GetExternalBankResponse {
5
+ }
6
+ exports.GetExternalBankResponse = GetExternalBankResponse;
@@ -0,0 +1,5 @@
1
+ export * from './dtos/ExternalAccountType';
2
+ export * from './dtos/ExternalAccountCurrency';
3
+ export * from './dtos/GetExternalBankAccountRequest';
4
+ export * from './dtos/GetExternalBankAccountResponse';
5
+ export * from './dtos/GetExternalBankResponse';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dtos/ExternalAccountType"), exports);
18
+ __exportStar(require("./dtos/ExternalAccountCurrency"), exports);
19
+ __exportStar(require("./dtos/GetExternalBankAccountRequest"), exports);
20
+ __exportStar(require("./dtos/GetExternalBankAccountResponse"), exports);
21
+ __exportStar(require("./dtos/GetExternalBankResponse"), exports);
package/bin/index.d.ts CHANGED
@@ -24,3 +24,4 @@ export * as ProductCatalog from './productCatalog';
24
24
  export * as Contract from './contract';
25
25
  export * as CreditContract from './creditContract';
26
26
  export * as P2pContact from './p2pContact';
27
+ export * as BankAccount from './bankAccount';
package/bin/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Account = void 0;
26
+ exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Beneficiary = __importStar(require("./beneficiary"));
29
29
  exports.Address = __importStar(require("./address"));
@@ -50,3 +50,4 @@ exports.ProductCatalog = __importStar(require("./productCatalog"));
50
50
  exports.Contract = __importStar(require("./contract"));
51
51
  exports.CreditContract = __importStar(require("./creditContract"));
52
52
  exports.P2pContact = __importStar(require("./p2pContact"));
53
+ exports.BankAccount = __importStar(require("./bankAccount"));
@@ -14,6 +14,7 @@ export declare class TransactionCreateRequest {
14
14
  pocketId: string;
15
15
  ownerDirectoryId: string;
16
16
  targetDirectoryId: string;
17
+ targetPeopleId: string;
17
18
  transactionDate: string;
18
19
  sessionId: string;
19
20
  currencyId: CountryId;
@@ -68,6 +68,10 @@ __decorate([
68
68
  (0, class_validator_1.IsString)(),
69
69
  __metadata("design:type", String)
70
70
  ], TransactionCreateRequest.prototype, "targetDirectoryId", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsString)(),
73
+ __metadata("design:type", String)
74
+ ], TransactionCreateRequest.prototype, "targetPeopleId", void 0);
71
75
  __decorate([
72
76
  (0, class_validator_1.IsNotEmpty)(),
73
77
  (0, class_validator_1.IsString)(),
@@ -0,0 +1,7 @@
1
+ export default class AuthorizeSpeiBankTransferRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetBankAccountId: string;
5
+ amount: number;
6
+ concept: string | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class AuthorizeSpeiBankTransferRequest {
4
+ }
5
+ exports.default = AuthorizeSpeiBankTransferRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.68",
3
+ "version": "1.1.70",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,4 @@
1
+ export class ExternalAccountCurrency {
2
+ id?: number;
3
+ iso?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export class ExternalAccountType {
2
+ id?: number;
3
+ name?: string;
4
+ }
@@ -0,0 +1,12 @@
1
+ export default class GetExternalBankAccountRequest {
2
+ countryId?: string;
3
+ bankAccountId?: string;
4
+ accountNumber?: string;
5
+ directoryId?: string;
6
+ typeOfDirectoryId?: string;
7
+ alias?: string;
8
+ accountTypeId?: string;
9
+ accountHolderName?: string;
10
+ bankId?: string;
11
+ default?: boolean;
12
+ }
@@ -0,0 +1,16 @@
1
+ import {ExternalAccountType} from "./ExternalAccountType";
2
+
3
+ export default class GetExternalBankAccountResponse {
4
+ id: string;
5
+ countryId: string;
6
+ accountNumber: string | null;
7
+ bankId: string;
8
+ alias: string | null;
9
+ directoryId: string;
10
+ typeOfDirectoryId: string;
11
+ accountHolderName: string;
12
+ email: string | null;
13
+ accountType: [ExternalAccountType];
14
+ bankName: string | null;
15
+ iconUrl: string | null
16
+ }
@@ -0,0 +1,14 @@
1
+ import {ExternalAccountType} from "./ExternalAccountType";
2
+ import {ExternalAccountCurrency} from "./ExternalAccountCurrency";
3
+
4
+ export class GetExternalBankResponse {
5
+ id: string;
6
+ name: string;
7
+ description: string;
8
+ accountNumberRegex: string;
9
+ sortNumber: number;
10
+ currency: ExternalAccountCurrency;
11
+ accountType: [ExternalAccountType];
12
+ iconUrl: string | null;
13
+ bankCode: string | null;
14
+ }
@@ -0,0 +1,5 @@
1
+ export * from './dtos/ExternalAccountType';
2
+ export * from './dtos/ExternalAccountCurrency';
3
+ export * from './dtos/GetExternalBankAccountRequest';
4
+ export * from './dtos/GetExternalBankAccountResponse';
5
+ export * from './dtos/GetExternalBankResponse';
package/src/index.ts CHANGED
@@ -24,6 +24,7 @@ export * as ProductCatalog from './productCatalog';
24
24
  export * as Contract from './contract';
25
25
  export * as CreditContract from './creditContract';
26
26
  export * as P2pContact from './p2pContact';
27
+ export * as BankAccount from './bankAccount';
27
28
 
28
29
 
29
30
 
@@ -1,8 +1,7 @@
1
- import {IsNotEmpty, IsNumber, IsString, Matches} from "class-validator";
2
- import { regexUuidV4 } from "../../helpers/constans/regex";
1
+ import {IsNotEmpty, IsNumber} from "class-validator";
3
2
 
4
3
  export class Credit {
5
-
4
+
6
5
  @IsNotEmpty()
7
6
  @IsNumber()
8
7
  creditNotional: number;
@@ -52,6 +52,9 @@ export class TransactionCreateRequest {
52
52
  @IsString()
53
53
  targetDirectoryId: string;
54
54
 
55
+ @IsString()
56
+ targetPeopleId: string;
57
+
55
58
  @IsNotEmpty()
56
59
  @IsString()
57
60
  transactionDate: string;
@@ -0,0 +1,7 @@
1
+ export default class AuthorizeSpeiBankTransferRequest {
2
+ idempotencyKey: string;
3
+ productCatalogId: string;
4
+ targetBankAccountId: string;
5
+ amount: number;
6
+ concept: string | null;
7
+ }