Add bank.ts file - complete bank selector implementation

This commit is contained in:
defiQUG
2026-01-23 17:05:01 -08:00
parent 12427713ff
commit 98f12249e2
5 changed files with 48 additions and 0 deletions

20
packages/types/src/bank.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
/**
* Bank and SWIFT/BIC code types
*/
export interface Bank {
swiftCode: string;
institutionName: string;
city: string;
country: string;
branchCode?: string;
address?: string;
postalCode?: string;
phone?: string;
active: boolean;
}
export interface BankRegistry {
banks: Bank[];
lastUpdated: Date;
version: string;
}
//# sourceMappingURL=bank.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"bank.d.ts","sourceRoot":"","sources":["bank.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,IAAI;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,EAAE,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB"}

View File

@@ -0,0 +1,5 @@
/**
* Bank and SWIFT/BIC code types
*/
export {};
//# sourceMappingURL=bank.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"bank.js","sourceRoot":"","sources":["bank.ts"],"names":[],"mappings":"AAAA;;GAEG"}

View File

@@ -0,0 +1,21 @@
/**
* Bank and SWIFT/BIC code types
*/
export interface Bank {
swiftCode: string; // BIC/SWIFT code (e.g., ESTRBRRJ)
institutionName: string; // Full institution name
city: string; // City where the bank is located
country: string; // ISO country code (e.g., BR)
branchCode?: string; // Optional branch code
address?: string; // Optional physical address
postalCode?: string; // Optional postal code
phone?: string; // Optional phone number
active: boolean; // Whether this bank is currently active
}
export interface BankRegistry {
banks: Bank[];
lastUpdated: Date;
version: string;
}