1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

WIP: use sea-query for dynamic paginated queries

This commit is contained in:
Quentin Gliech
2023-07-19 13:34:39 +02:00
parent 5f8cd98052
commit 7e82ae845c
15 changed files with 360 additions and 86 deletions

View File

@@ -117,6 +117,14 @@ export type BrowserSessionEdge = {
node: BrowserSession;
};
/** The state of a browser session. */
export enum BrowserSessionState {
/** The session is active. */
Active = "ACTIVE",
/** The session is no longer active. */
Finished = "FINISHED",
}
/**
* A compat session represents a client session which used the legacy Matrix
* login API.
@@ -670,6 +678,7 @@ export type UserBrowserSessionsArgs = {
before?: InputMaybe<Scalars["String"]["input"]>;
first?: InputMaybe<Scalars["Int"]["input"]>;
last?: InputMaybe<Scalars["Int"]["input"]>;
state?: InputMaybe<BrowserSessionState>;
};
/** A user is an individual's account. */
@@ -1797,6 +1806,11 @@ export const BrowserSessionListDocument = {
name: { kind: "Name", value: "before" },
},
},
{
kind: "Argument",
name: { kind: "Name", value: "state" },
value: { kind: "EnumValue", value: "ACTIVE" },
},
],
selectionSet: {
kind: "SelectionSet",