-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accounts endpoint make es heavy fiealds optional (#1426)
* accounts endpoint make es heavy fiealds optional * optimize provider query for simple accounts * early return for null account * use AccountFetchOptions * fixes after review * fixes after review * Enhance AccountController tests to validate optional parameters in account retrieval. Added tests for withTxCount, withScrCount, withTimestamp, and withAssets parameters, ensuring correct behavior and response structure. Updated existing tests to reflect changes in expected account details when optional parameters are used. Improved overall test coverage for account details retrieval. --------- Co-authored-by: bogdan-rosianu <bogdan.rosianu@yahoo.com> Co-authored-by: cfaur09 <catalinfaurpaul@gmail.com>
- Loading branch information
1 parent
1f340f7
commit 4ac6654
Showing
5 changed files
with
279 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export class AccountFetchOptions { | ||
constructor(init?: Partial<AccountFetchOptions>) { | ||
Object.assign(this, init); | ||
} | ||
|
||
withGuardianInfo?: boolean; | ||
withTxCount?: boolean; | ||
withScrCount?: boolean; | ||
withTimestamp?: boolean; | ||
withAssets?: boolean; | ||
} |
4 changes: 0 additions & 4 deletions
4
src/endpoints/accounts/entities/account.optional.field.options.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.