Skip to content

feat(api): add new apis - #327

Open
JustKemForFun wants to merge 17 commits into
RFS-ADRENO:mainfrom
JustKemForFun:dev
Open

feat(api): add new apis#327
JustKemForFun wants to merge 17 commits into
RFS-ADRENO:mainfrom
JustKemForFun:dev

Conversation

@JustKemForFun

Copy link
Copy Markdown
Contributor

feat and fix, refactor

- Introduced `getBankAccounts` and `getSupportedBanks` APIs to manage bank account information.
- Added corresponding types `BankAccount` and `BankInfo` in the models.
- Updated `apis.ts` and `index.ts` to include new API methods and types.
- Bumped API version in `context.ts` to reflect new features.
…t APIs

- Consolidated type exports in `index.ts` for improved readability.
- Updated `GetBankAccountsResponse` and `GetSupportedBanksResponse` to utilize new `BankAccount` and `BankInfo` types, enhancing type safety and maintainability.
- Removed redundant type definitions in favor of imported types from models.
- Streamlined type imports in `sendBankCard.ts` for better organization.
- Updated `sendBankCardFactory` to use a more concise parameter naming convention.
- Introduced `createBankAccount` API in `createBankAccount.ts` to facilitate bank account creation.
- Added corresponding types `CreateBankAccountPayload` and `CreateBankAccountResponse`.
- Updated `apis.ts` and `index.ts` to include the new API method and types.
- Implemented a utility function `normalizeHolderName` in `utils.ts` for holder name normalization.
- Enhanced `BankAccount` model to accommodate optional fields for better flexibility.
- Enhanced the `BinBankCard` enum in `Bank.ts` by adding new bank codes for BNP Paribas, Cathay United, Citibank, Liobank, and MoMo.
- Updated existing bank code for TNEX and improved documentation comments for clarity and completeness.
- Updated the `normalizeHolderName` function in `utils.ts` to return undefined for names shorter than 5 characters, ensuring better validation of holder names.
- Introduced `getListBank` and `getListBankCard` APIs to retrieve bank and bank card information.
- Updated `apis.ts` and `index.ts` to include new API methods and corresponding types.
- Removed deprecated `getBankAccounts` and `getSupportedBanks` references for cleaner code.
- Introduced `deleteBankAccount` and `updateBankAccount` APIs in their respective files to manage bank account deletion and updates.
- Updated `apis.ts` and `index.ts` to include new API methods and their types.
- Enhanced the `createBankAccount` API to use POST method for requests.
- Introduced `getListDevice` API in `getListDevice.ts` to retrieve linked devices.
- Updated `apis.ts` and `index.ts` to include the new API method and its type `GetListDeviceResponse`.
- Introduced `lostFocus` API in `lostFocus.ts` to handle focus loss events.
- Updated `apis.ts` and `index.ts` to include the new API method and its type `LostFocusResponse`.
- Introduced `registerCatalog` API in `registerCatalog.ts` to manage catalog registration.
- Updated `apis.ts` and `index.ts` to include the new API method and its type `RegisterCatalogResponse`.
- Introduced `scanURL` API in `scanURL.ts` to check the safety of URLs.
- Updated `apis.ts` to include the new API method and its type `ScanURLResponse`.
- Enhanced `index.ts` to export the new type for broader accessibility.
- Added `UnchangedProfileInfo` type to the `User` model for better structure.
- Updated `UserInfoResponse` in `getUserInfo.ts` to use `Partial<UnchangedProfileInfo>` for `unchanged_profiles`, enhancing type safety and clarity.
- Updated the `createContext` function to use a new API version (685).
- Modified `GetGroupLinkInfoResponse` to use `GroupType` instead of a numeric type for better clarity.
- Added new `Medium` and `ExtraLarge` sizes to the `AvatarSize` enum for expanded options.
@JustKemForFun
JustKemForFun force-pushed the dev branch 4 times, most recently from 8657db6 to 98c8ae2 Compare June 4, 2026 06:06

@buigiaanfb1 buigiaanfb1 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!!! Cảm ơn bạn đã maintain project này

Comment thread src/apis/createCatalog.ts Outdated
Comment thread src/apis/sendBankCard.ts
@JustKemForFun
JustKemForFun requested a review from RFS-ADRENO June 16, 2026 14:26
+ revert createCatalog change
+ revert sendBankCard and change _ctx to _ to match project conventions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants