feat(api): add new apis - #327
Open
JustKemForFun wants to merge 17 commits into
Open
Conversation
- 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
force-pushed
the
dev
branch
4 times, most recently
from
June 4, 2026 06:06
8657db6 to
98c8ae2
Compare
buigiaanfb1
approved these changes
Jun 5, 2026
buigiaanfb1
left a comment
There was a problem hiding this comment.
Great!!! Cảm ơn bạn đã maintain project này
RFS-ADRENO
reviewed
Jun 14, 2026
RFS-ADRENO
reviewed
Jun 14, 2026
+ revert createCatalog change + revert sendBankCard and change _ctx to _ to match project conventions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat and fix, refactor