You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Use the same pagination primitives in the session lists
This commit is contained in:
@@ -626,6 +626,10 @@ export type BrowserSession_SessionFragment = {
|
||||
|
||||
export type BrowserSessionListQueryVariables = Exact<{
|
||||
userId: Scalars["ID"];
|
||||
first?: InputMaybe<Scalars["Int"]>;
|
||||
after?: InputMaybe<Scalars["String"]>;
|
||||
last?: InputMaybe<Scalars["Int"]>;
|
||||
before?: InputMaybe<Scalars["String"]>;
|
||||
}>;
|
||||
|
||||
export type BrowserSessionListQuery = {
|
||||
@@ -671,6 +675,10 @@ export type CompatSsoLogin_LoginFragment = {
|
||||
|
||||
export type CompatSsoLoginListQueryVariables = Exact<{
|
||||
userId: Scalars["ID"];
|
||||
first?: InputMaybe<Scalars["Int"]>;
|
||||
after?: InputMaybe<Scalars["String"]>;
|
||||
last?: InputMaybe<Scalars["Int"]>;
|
||||
before?: InputMaybe<Scalars["String"]>;
|
||||
}>;
|
||||
|
||||
export type CompatSsoLoginListQuery = {
|
||||
@@ -707,6 +715,10 @@ export type OAuth2Session_SessionFragment = {
|
||||
|
||||
export type OAuth2SessionListQueryQueryVariables = Exact<{
|
||||
userId: Scalars["ID"];
|
||||
first?: InputMaybe<Scalars["Int"]>;
|
||||
after?: InputMaybe<Scalars["String"]>;
|
||||
last?: InputMaybe<Scalars["Int"]>;
|
||||
before?: InputMaybe<Scalars["String"]>;
|
||||
}>;
|
||||
|
||||
export type OAuth2SessionListQueryQuery = {
|
||||
@@ -725,6 +737,13 @@ export type OAuth2SessionListQueryQuery = {
|
||||
};
|
||||
};
|
||||
}>;
|
||||
pageInfo: {
|
||||
__typename?: "PageInfo";
|
||||
hasNextPage: boolean;
|
||||
hasPreviousPage: boolean;
|
||||
startCursor?: string | null;
|
||||
endCursor?: string | null;
|
||||
};
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
@@ -1176,6 +1195,35 @@ export const BrowserSessionListDocument = {
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
kind: "SelectionSet",
|
||||
@@ -1204,7 +1252,34 @@ export const BrowserSessionListDocument = {
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "first" },
|
||||
value: { kind: "IntValue", value: "10" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "after" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "last" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "last" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "before" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
@@ -1327,6 +1402,35 @@ export const CompatSsoLoginListDocument = {
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
kind: "SelectionSet",
|
||||
@@ -1355,7 +1459,34 @@ export const CompatSsoLoginListDocument = {
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "first" },
|
||||
value: { kind: "IntValue", value: "10" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "after" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "last" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "last" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "before" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
@@ -1452,6 +1583,35 @@ export const OAuth2SessionListQueryDocument = {
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: { kind: "Variable", name: { kind: "Name", value: "last" } },
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
|
||||
},
|
||||
{
|
||||
kind: "VariableDefinition",
|
||||
variable: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
type: { kind: "NamedType", name: { kind: "Name", value: "String" } },
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
kind: "SelectionSet",
|
||||
@@ -1480,7 +1640,34 @@ export const OAuth2SessionListQueryDocument = {
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "first" },
|
||||
value: { kind: "IntValue", value: "10" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "first" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "after" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "after" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "last" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "last" },
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Argument",
|
||||
name: { kind: "Name", value: "before" },
|
||||
value: {
|
||||
kind: "Variable",
|
||||
name: { kind: "Name", value: "before" },
|
||||
},
|
||||
},
|
||||
],
|
||||
selectionSet: {
|
||||
@@ -1519,6 +1706,31 @@ export const OAuth2SessionListQueryDocument = {
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
kind: "Field",
|
||||
name: { kind: "Name", value: "pageInfo" },
|
||||
selectionSet: {
|
||||
kind: "SelectionSet",
|
||||
selections: [
|
||||
{
|
||||
kind: "Field",
|
||||
name: { kind: "Name", value: "hasNextPage" },
|
||||
},
|
||||
{
|
||||
kind: "Field",
|
||||
name: { kind: "Name", value: "hasPreviousPage" },
|
||||
},
|
||||
{
|
||||
kind: "Field",
|
||||
name: { kind: "Name", value: "startCursor" },
|
||||
},
|
||||
{
|
||||
kind: "Field",
|
||||
name: { kind: "Name", value: "endCursor" },
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user