-
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.
add support for account keys status filter (#1139)
* add support for account keys status filter * add sortNodesByStatus function * update specs * small fix * simpler sort function --------- Co-authored-by: tanghel <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 additions
and
6 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,13 @@ | ||
|
||
import { Field, ObjectType } from "@nestjs/graphql"; | ||
import { NodeStatusRaw } from "src/endpoints/nodes/entities/node.status"; | ||
|
||
@ObjectType("AccountKeyFilter", { description: "Account key filter object type." }) | ||
export class AccountKeyFilter { | ||
constructor(init?: Partial<AccountKeyFilter>) { | ||
Object.assign(this, init); | ||
} | ||
|
||
@Field(() => AccountKeyFilter, { description: "Account key status filter for the given keys.", nullable: true }) | ||
status: NodeStatusRaw[] = []; | ||
} |
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