Skip to content

Commit 0eac024

Browse files
committed
Fix the type errors
Signed-off-by: MTRNord <[email protected]>
1 parent 5eb5b9e commit 0eac024

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

frontend/src/components/UserProfile/UpstreamProviderList.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ const QUERY = graphql(/* GraphQL */ `
3030
cursor
3131
node {
3232
id
33+
upstreamOauth2LinksForUser {
34+
id
35+
provider {
36+
id
37+
}
38+
}
3339
...UpstreamProvider_provider
3440
}
3541
}

frontend/src/gql/gql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const documents = {
3737
"\n fragment UserGreeting_siteConfig on SiteConfig {\n id\n displayNameChangeAllowed\n }\n": types.UserGreeting_SiteConfigFragmentDoc,
3838
"\n mutation SetDisplayName($userId: ID!, $displayName: String) {\n setDisplayName(input: { userId: $userId, displayName: $displayName }) {\n status\n user {\n id\n matrix {\n displayName\n }\n }\n }\n }\n": types.SetDisplayNameDocument,
3939
"\n mutation AddEmail($userId: ID!, $email: String!) {\n addEmail(input: { userId: $userId, email: $email }) {\n status\n violations\n email {\n id\n ...UserEmail_email\n }\n }\n }\n": types.AddEmailDocument,
40-
"\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.UpstreamProviderListQueryDocument,
40+
"\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n upstreamOauth2LinksForUser {\n id\n provider {\n id\n }\n }\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.UpstreamProviderListQueryDocument,
4141
"\n query UserEmailListQuery(\n $userId: ID!\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n user(id: $userId) {\n id\n\n emails(first: $first, after: $after, last: $last, before: $before) {\n edges {\n cursor\n node {\n id\n ...UserEmail_email\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n": types.UserEmailListQueryDocument,
4242
"\n fragment UserEmailList_user on User {\n id\n primaryEmail {\n id\n }\n }\n": types.UserEmailList_UserFragmentDoc,
4343
"\n fragment UserEmailList_siteConfig on SiteConfig {\n id\n ...UserEmail_siteConfig\n }\n": types.UserEmailList_SiteConfigFragmentDoc,
@@ -175,7 +175,7 @@ export function graphql(source: "\n mutation AddEmail($userId: ID!, $email: Str
175175
/**
176176
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
177177
*/
178-
export function graphql(source: "\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"];
178+
export function graphql(source: "\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n upstreamOauth2LinksForUser {\n id\n provider {\n id\n }\n }\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query UpstreamProviderListQuery(\n $first: Int\n $after: String\n $last: Int\n $before: String\n ) {\n upstreamOauth2Providers(\n first: $first\n after: $after\n last: $last\n before: $before\n ) {\n edges {\n cursor\n node {\n id\n upstreamOauth2LinksForUser {\n id\n provider {\n id\n }\n }\n ...UpstreamProvider_provider\n }\n }\n totalCount\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"];
179179
/**
180180
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
181181
*/

0 commit comments

Comments
 (0)