1- import { getClient , graphql } from '$lib/gql' ;
1+ import type { $OpResult , SendFwLiteBetaRequestEmailMutation } from '$lib/gql/types' ;
2+ import { getClient , graphql } from '$lib/gql' ;
23
3- // import type {PageLoadEvent} from './$types';
4- // import {type LexAuthUser} from '$lib/user';
5- // import {redirect} from '@sveltejs/kit';
6- // import {getBoolSearchParam, getSearchParam} from '$lib/util/query-params';
7- // import {isGuid} from '$lib/util/guid';
8- import type {
9- $OpResult ,
10- SendFwLiteBetaRequestEmailPayload ,
11- // SendFwLiteBetaRequestEmailMutation, // TODO Why isn't this one being created?
12- } from '$lib/gql/types' ;
13- // import type {LoadAdminDashboardProjectsQuery, LoadAdminDashboardUsersQuery} from '$lib/gql/types';
14- // import type {ProjectFilters} from '$lib/components/Projects';
15- // import {DEFAULT_PAGE_SIZE} from '$lib/components/Paging';
16- // import type {AdminTabId} from './AdminTabs.svelte';
17- // import {derived, readable} from 'svelte/store';
18- // import type {UserType} from '$lib/components/Users/UserFilter.svelte';
19- import type { UUID } from 'crypto' ;
4+ import type { UUID } from 'crypto' ;
205
21- export async function _sendFWLiteBetaRequestEmail ( userId : UUID , name : string ) : $OpResult < unknown > { // SendFwLiteBetaRequestEmailPayload
6+ export async function _sendFWLiteBetaRequestEmail ( userId : UUID , name : string ) : $OpResult < SendFwLiteBetaRequestEmailMutation > { // SendFwLiteBetaRequestEmailPayload
227 //language=GraphQL
238 const result = await getClient ( )
249 . mutation (
2510 graphql ( `
2611 mutation SendFWLiteBetaRequestEmail($input: SendFWLiteBetaRequestEmailInput!) {
27- sendFWLiteBetaRequestEmail(input: $input)
28- user {
12+ sendFWLiteBetaRequestEmail(input: $input) {
13+ meDto {
2914 id
3015 email
3116 }
@@ -38,7 +23,7 @@ export async function _sendFWLiteBetaRequestEmail(userId: UUID, name: string): $
3823 }
3924 }
4025 ` ) ,
41- { input : { userId, name } }
26+ { input : { userId, name} }
4227 )
4328 return result ;
4429}
0 commit comments