1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

frontend: simple "active only" list filtering

This commit is contained in:
Quentin Gliech
2023-08-07 17:54:22 +02:00
parent 6002a6b929
commit 4556332efb
6 changed files with 163 additions and 23 deletions

View File

@@ -947,6 +947,7 @@ export type EndBrowserSessionMutation = {
export type BrowserSessionListQueryVariables = Exact<{
userId: Scalars["ID"]["input"];
state?: InputMaybe<BrowserSessionState>;
first?: InputMaybe<Scalars["Int"]["input"]>;
after?: InputMaybe<Scalars["String"]["input"]>;
last?: InputMaybe<Scalars["Int"]["input"]>;
@@ -1021,6 +1022,7 @@ export type EndCompatSessionMutation = {
export type CompatSessionListQueryVariables = Exact<{
userId: Scalars["ID"]["input"];
state?: InputMaybe<CompatSessionState>;
first?: InputMaybe<Scalars["Int"]["input"]>;
after?: InputMaybe<Scalars["String"]["input"]>;
last?: InputMaybe<Scalars["Int"]["input"]>;
@@ -1090,6 +1092,7 @@ export type EndOAuth2SessionMutation = {
export type OAuth2SessionListQueryQueryVariables = Exact<{
userId: Scalars["ID"]["input"];
state?: InputMaybe<Oauth2SessionState>;
first?: InputMaybe<Scalars["Int"]["input"]>;
after?: InputMaybe<Scalars["String"]["input"]>;
last?: InputMaybe<Scalars["Int"]["input"]>;
@@ -1842,6 +1845,17 @@ export const BrowserSessionListDocument = {
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
type: {
kind: "NamedType",
name: { kind: "Name", value: "BrowserSessionState" },
},
},
{
kind: "VariableDefinition",
variable: {
@@ -1931,7 +1945,10 @@ export const BrowserSessionListDocument = {
{
kind: "Argument",
name: { kind: "Name", value: "state" },
value: { kind: "EnumValue", value: "ACTIVE" },
value: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
},
],
selectionSet: {
@@ -2129,6 +2146,17 @@ export const CompatSessionListDocument = {
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
type: {
kind: "NamedType",
name: { kind: "Name", value: "CompatSessionState" },
},
},
{
kind: "VariableDefinition",
variable: {
@@ -2215,6 +2243,14 @@ export const CompatSessionListDocument = {
name: { kind: "Name", value: "before" },
},
},
{
kind: "Argument",
name: { kind: "Name", value: "state" },
value: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
},
],
selectionSet: {
kind: "SelectionSet",
@@ -2457,6 +2493,17 @@ export const OAuth2SessionListQueryDocument = {
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
type: {
kind: "NamedType",
name: { kind: "Name", value: "Oauth2SessionState" },
},
},
{
kind: "VariableDefinition",
variable: {
@@ -2511,6 +2558,14 @@ export const OAuth2SessionListQueryDocument = {
kind: "Field",
name: { kind: "Name", value: "oauth2Sessions" },
arguments: [
{
kind: "Argument",
name: { kind: "Name", value: "state" },
value: {
kind: "Variable",
name: { kind: "Name", value: "state" },
},
},
{
kind: "Argument",
name: { kind: "Name", value: "first" },