mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat: user usage gql & test case improve (#5076)
This commit is contained in:
@@ -223,6 +223,47 @@ export type DeleteWorkspaceMutation = {
|
||||
deleteWorkspace: boolean;
|
||||
};
|
||||
|
||||
export type AddToEarlyAccessMutationVariables = Exact<{
|
||||
email: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type AddToEarlyAccessMutation = {
|
||||
__typename?: 'Mutation';
|
||||
addToEarlyAccess: number;
|
||||
};
|
||||
|
||||
export type EarlyAccessUsersQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type EarlyAccessUsersQuery = {
|
||||
__typename?: 'Query';
|
||||
earlyAccessUsers: Array<{
|
||||
__typename?: 'UserType';
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
avatarUrl: string | null;
|
||||
emailVerified: string | null;
|
||||
createdAt: string | null;
|
||||
subscription: {
|
||||
__typename?: 'UserSubscription';
|
||||
plan: SubscriptionPlan;
|
||||
recurring: SubscriptionRecurring;
|
||||
status: SubscriptionStatus;
|
||||
start: string;
|
||||
end: string;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type RemoveEarlyAccessMutationVariables = Exact<{
|
||||
email: Scalars['String']['input'];
|
||||
}>;
|
||||
|
||||
export type RemoveEarlyAccessMutation = {
|
||||
__typename?: 'Mutation';
|
||||
removeEarlyAccess: number;
|
||||
};
|
||||
|
||||
export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never }>;
|
||||
|
||||
export type GetCurrentUserQuery = {
|
||||
@@ -698,6 +739,11 @@ export type Queries =
|
||||
variables: AllBlobSizesQueryVariables;
|
||||
response: AllBlobSizesQuery;
|
||||
}
|
||||
| {
|
||||
name: 'earlyAccessUsersQuery';
|
||||
variables: EarlyAccessUsersQueryVariables;
|
||||
response: EarlyAccessUsersQuery;
|
||||
}
|
||||
| {
|
||||
name: 'getCurrentUserQuery';
|
||||
variables: GetCurrentUserQueryVariables;
|
||||
@@ -835,6 +881,16 @@ export type Mutations =
|
||||
variables: DeleteWorkspaceMutationVariables;
|
||||
response: DeleteWorkspaceMutation;
|
||||
}
|
||||
| {
|
||||
name: 'addToEarlyAccessMutation';
|
||||
variables: AddToEarlyAccessMutationVariables;
|
||||
response: AddToEarlyAccessMutation;
|
||||
}
|
||||
| {
|
||||
name: 'removeEarlyAccessMutation';
|
||||
variables: RemoveEarlyAccessMutationVariables;
|
||||
response: RemoveEarlyAccessMutation;
|
||||
}
|
||||
| {
|
||||
name: 'leaveWorkspaceMutation';
|
||||
variables: LeaveWorkspaceMutationVariables;
|
||||
|
||||
Reference in New Issue
Block a user