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

frontend: show pagination total count in more lists

This commit is contained in:
Quentin Gliech
2023-07-21 19:14:59 +02:00
parent bbc50edb60
commit c454f5604b
7 changed files with 40 additions and 7 deletions

View File

@@ -636,6 +636,8 @@ export type UpstreamOAuth2LinkConnection = {
nodes: Array<UpstreamOAuth2Link>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
/** Identifies the total count of items in the connection. */
totalCount: Scalars["Int"]["output"];
};
/** An edge in a connection. */
@@ -1000,6 +1002,7 @@ export type CompatSessionListQuery = {
id: string;
compatSessions: {
__typename?: "CompatSessionConnection";
totalCount: number;
edges: Array<{
__typename?: "CompatSessionEdge";
node: { __typename?: "CompatSession"; id: string } & {
@@ -1068,6 +1071,7 @@ export type OAuth2SessionListQueryQuery = {
id: string;
oauth2Sessions: {
__typename?: "Oauth2SessionConnection";
totalCount: number;
edges: Array<{
__typename?: "Oauth2SessionEdge";
cursor: string;
@@ -2174,6 +2178,10 @@ export const CompatSessionListDocument = {
],
},
},
{
kind: "Field",
name: { kind: "Name", value: "totalCount" },
},
{
kind: "Field",
name: { kind: "Name", value: "pageInfo" },
@@ -2502,6 +2510,10 @@ export const OAuth2SessionListQueryDocument = {
],
},
},
{
kind: "Field",
name: { kind: "Name", value: "totalCount" },
},
{
kind: "Field",
name: { kind: "Name", value: "pageInfo" },