mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
refactor(infra): directory structure (#4615)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
query checkBlobSizes($workspaceId: String!, $size: Float!) {
|
||||
checkBlobSize(workspaceId: $workspaceId, size: $size) {
|
||||
size
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation deleteBlob($workspaceId: String!, $hash: String!) {
|
||||
deleteBlob(workspaceId: $workspaceId, hash: $hash)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
query listBlobs($workspaceId: String!) {
|
||||
listBlobs(workspaceId: $workspaceId)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation setBlob($workspaceId: String!, $blob: Upload!) {
|
||||
setBlob(workspaceId: $workspaceId, blob: $blob)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query blobSizes($workspaceId: String!) {
|
||||
collectBlobSizes(workspaceId: $workspaceId) {
|
||||
size
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query allBlobSizes {
|
||||
collectAllBlobSizes {
|
||||
size
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
mutation changeEmail($token: String!) {
|
||||
changeEmail(token: $token) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
mutation changePassword($token: String!, $newPassword: String!) {
|
||||
changePassword(token: $token, newPassword: $newPassword) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation createWorkspace($init: Upload!) {
|
||||
createWorkspace(init: $init) {
|
||||
id
|
||||
public
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation deleteAccount {
|
||||
deleteAccount {
|
||||
success
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation deleteWorkspace($id: String!) {
|
||||
deleteWorkspace(id: $id)
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
query getCurrentUser {
|
||||
currentUser {
|
||||
id
|
||||
name
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
createdAt
|
||||
token {
|
||||
sessionToken
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
query getInviteInfo($inviteId: String!) {
|
||||
getInviteInfo(inviteId: $inviteId) {
|
||||
workspace {
|
||||
id
|
||||
name
|
||||
avatar
|
||||
}
|
||||
user {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
query getIsOwner($workspaceId: String!) {
|
||||
isOwner(workspaceId: $workspaceId)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getMemberCountByWorkspaceId($workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
memberCount
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
query getMembersByWorkspaceId($workspaceId: String!, $skip: Int!, $take: Int!) {
|
||||
workspace(id: $workspaceId) {
|
||||
members(skip: $skip, take: $take) {
|
||||
id
|
||||
name
|
||||
email
|
||||
avatarUrl
|
||||
permission
|
||||
inviteId
|
||||
accepted
|
||||
emailVerified
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getPublicWorkspace($id: String!) {
|
||||
publicWorkspace(id: $id) {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
query getUser($email: String!) {
|
||||
user(email: $email) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
hasPassword
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getWorkspacePublicById($id: String!) {
|
||||
workspace(id: $id) {
|
||||
public
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getWorkspaceSharedPages($workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
sharedPages
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getWorkspace($id: String!) {
|
||||
workspace(id: $id) {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
query getWorkspaces {
|
||||
workspaces {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,528 @@
|
||||
/* do not manipulate this file manually. */
|
||||
export interface GraphQLQuery {
|
||||
id: string;
|
||||
operationName: string;
|
||||
definitionName: string;
|
||||
query: string;
|
||||
containsFile?: boolean;
|
||||
}
|
||||
|
||||
export const checkBlobSizesQuery = {
|
||||
id: 'checkBlobSizesQuery' as const,
|
||||
operationName: 'checkBlobSizes',
|
||||
definitionName: 'checkBlobSize',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query checkBlobSizes($workspaceId: String!, $size: Float!) {
|
||||
checkBlobSize(workspaceId: $workspaceId, size: $size) {
|
||||
size
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const deleteBlobMutation = {
|
||||
id: 'deleteBlobMutation' as const,
|
||||
operationName: 'deleteBlob',
|
||||
definitionName: 'deleteBlob',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation deleteBlob($workspaceId: String!, $hash: String!) {
|
||||
deleteBlob(workspaceId: $workspaceId, hash: $hash)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const listBlobsQuery = {
|
||||
id: 'listBlobsQuery' as const,
|
||||
operationName: 'listBlobs',
|
||||
definitionName: 'listBlobs',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query listBlobs($workspaceId: String!) {
|
||||
listBlobs(workspaceId: $workspaceId)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const setBlobMutation = {
|
||||
id: 'setBlobMutation' as const,
|
||||
operationName: 'setBlob',
|
||||
definitionName: 'setBlob',
|
||||
containsFile: true,
|
||||
query: `
|
||||
mutation setBlob($workspaceId: String!, $blob: Upload!) {
|
||||
setBlob(workspaceId: $workspaceId, blob: $blob)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const blobSizesQuery = {
|
||||
id: 'blobSizesQuery' as const,
|
||||
operationName: 'blobSizes',
|
||||
definitionName: 'collectBlobSizes',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query blobSizes($workspaceId: String!) {
|
||||
collectBlobSizes(workspaceId: $workspaceId) {
|
||||
size
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const allBlobSizesQuery = {
|
||||
id: 'allBlobSizesQuery' as const,
|
||||
operationName: 'allBlobSizes',
|
||||
definitionName: 'collectAllBlobSizes',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query allBlobSizes {
|
||||
collectAllBlobSizes {
|
||||
size
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const changeEmailMutation = {
|
||||
id: 'changeEmailMutation' as const,
|
||||
operationName: 'changeEmail',
|
||||
definitionName: 'changeEmail',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation changeEmail($token: String!) {
|
||||
changeEmail(token: $token) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const changePasswordMutation = {
|
||||
id: 'changePasswordMutation' as const,
|
||||
operationName: 'changePassword',
|
||||
definitionName: 'changePassword',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation changePassword($token: String!, $newPassword: String!) {
|
||||
changePassword(token: $token, newPassword: $newPassword) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createWorkspaceMutation = {
|
||||
id: 'createWorkspaceMutation' as const,
|
||||
operationName: 'createWorkspace',
|
||||
definitionName: 'createWorkspace',
|
||||
containsFile: true,
|
||||
query: `
|
||||
mutation createWorkspace($init: Upload!) {
|
||||
createWorkspace(init: $init) {
|
||||
id
|
||||
public
|
||||
createdAt
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const deleteAccountMutation = {
|
||||
id: 'deleteAccountMutation' as const,
|
||||
operationName: 'deleteAccount',
|
||||
definitionName: 'deleteAccount',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation deleteAccount {
|
||||
deleteAccount {
|
||||
success
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const deleteWorkspaceMutation = {
|
||||
id: 'deleteWorkspaceMutation' as const,
|
||||
operationName: 'deleteWorkspace',
|
||||
definitionName: 'deleteWorkspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation deleteWorkspace($id: String!) {
|
||||
deleteWorkspace(id: $id)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCurrentUserQuery = {
|
||||
id: 'getCurrentUserQuery' as const,
|
||||
operationName: 'getCurrentUser',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCurrentUser {
|
||||
currentUser {
|
||||
id
|
||||
name
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
createdAt
|
||||
token {
|
||||
sessionToken
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getInviteInfoQuery = {
|
||||
id: 'getInviteInfoQuery' as const,
|
||||
operationName: 'getInviteInfo',
|
||||
definitionName: 'getInviteInfo',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getInviteInfo($inviteId: String!) {
|
||||
getInviteInfo(inviteId: $inviteId) {
|
||||
workspace {
|
||||
id
|
||||
name
|
||||
avatar
|
||||
}
|
||||
user {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getIsOwnerQuery = {
|
||||
id: 'getIsOwnerQuery' as const,
|
||||
operationName: 'getIsOwner',
|
||||
definitionName: 'isOwner',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getIsOwner($workspaceId: String!) {
|
||||
isOwner(workspaceId: $workspaceId)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getMemberCountByWorkspaceIdQuery = {
|
||||
id: 'getMemberCountByWorkspaceIdQuery' as const,
|
||||
operationName: 'getMemberCountByWorkspaceId',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getMemberCountByWorkspaceId($workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
memberCount
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getMembersByWorkspaceIdQuery = {
|
||||
id: 'getMembersByWorkspaceIdQuery' as const,
|
||||
operationName: 'getMembersByWorkspaceId',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getMembersByWorkspaceId($workspaceId: String!, $skip: Int!, $take: Int!) {
|
||||
workspace(id: $workspaceId) {
|
||||
members(skip: $skip, take: $take) {
|
||||
id
|
||||
name
|
||||
email
|
||||
avatarUrl
|
||||
permission
|
||||
inviteId
|
||||
accepted
|
||||
emailVerified
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getPublicWorkspaceQuery = {
|
||||
id: 'getPublicWorkspaceQuery' as const,
|
||||
operationName: 'getPublicWorkspace',
|
||||
definitionName: 'publicWorkspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getPublicWorkspace($id: String!) {
|
||||
publicWorkspace(id: $id) {
|
||||
id
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getUserQuery = {
|
||||
id: 'getUserQuery' as const,
|
||||
operationName: 'getUser',
|
||||
definitionName: 'user',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getUser($email: String!) {
|
||||
user(email: $email) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
hasPassword
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspacePublicByIdQuery = {
|
||||
id: 'getWorkspacePublicByIdQuery' as const,
|
||||
operationName: 'getWorkspacePublicById',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getWorkspacePublicById($id: String!) {
|
||||
workspace(id: $id) {
|
||||
public
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspaceSharedPagesQuery = {
|
||||
id: 'getWorkspaceSharedPagesQuery' as const,
|
||||
operationName: 'getWorkspaceSharedPages',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getWorkspaceSharedPages($workspaceId: String!) {
|
||||
workspace(id: $workspaceId) {
|
||||
sharedPages
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspaceQuery = {
|
||||
id: 'getWorkspaceQuery' as const,
|
||||
operationName: 'getWorkspace',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getWorkspace($id: String!) {
|
||||
workspace(id: $id) {
|
||||
id
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getWorkspacesQuery = {
|
||||
id: 'getWorkspacesQuery' as const,
|
||||
operationName: 'getWorkspaces',
|
||||
definitionName: 'workspaces',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getWorkspaces {
|
||||
workspaces {
|
||||
id
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const leaveWorkspaceMutation = {
|
||||
id: 'leaveWorkspaceMutation' as const,
|
||||
operationName: 'leaveWorkspace',
|
||||
definitionName: 'leaveWorkspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation leaveWorkspace($workspaceId: String!, $workspaceName: String!, $sendLeaveMail: Boolean) {
|
||||
leaveWorkspace(
|
||||
workspaceId: $workspaceId
|
||||
workspaceName: $workspaceName
|
||||
sendLeaveMail: $sendLeaveMail
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const removeAvatarMutation = {
|
||||
id: 'removeAvatarMutation' as const,
|
||||
operationName: 'removeAvatar',
|
||||
definitionName: 'removeAvatar',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation removeAvatar {
|
||||
removeAvatar {
|
||||
success
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const revokeMemberPermissionMutation = {
|
||||
id: 'revokeMemberPermissionMutation' as const,
|
||||
operationName: 'revokeMemberPermission',
|
||||
definitionName: 'revoke',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation revokeMemberPermission($workspaceId: String!, $userId: String!) {
|
||||
revoke(workspaceId: $workspaceId, userId: $userId)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const revokePageMutation = {
|
||||
id: 'revokePageMutation' as const,
|
||||
operationName: 'revokePage',
|
||||
definitionName: 'revokePage',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation revokePage($workspaceId: String!, $pageId: String!) {
|
||||
revokePage(workspaceId: $workspaceId, pageId: $pageId)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const sendChangeEmailMutation = {
|
||||
id: 'sendChangeEmailMutation' as const,
|
||||
operationName: 'sendChangeEmail',
|
||||
definitionName: 'sendChangeEmail',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation sendChangeEmail($email: String!, $callbackUrl: String!) {
|
||||
sendChangeEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const sendChangePasswordEmailMutation = {
|
||||
id: 'sendChangePasswordEmailMutation' as const,
|
||||
operationName: 'sendChangePasswordEmail',
|
||||
definitionName: 'sendChangePasswordEmail',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation sendChangePasswordEmail($email: String!, $callbackUrl: String!) {
|
||||
sendChangePasswordEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const sendSetPasswordEmailMutation = {
|
||||
id: 'sendSetPasswordEmailMutation' as const,
|
||||
operationName: 'sendSetPasswordEmail',
|
||||
definitionName: 'sendSetPasswordEmail',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation sendSetPasswordEmail($email: String!, $callbackUrl: String!) {
|
||||
sendSetPasswordEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const sendVerifyChangeEmailMutation = {
|
||||
id: 'sendVerifyChangeEmailMutation' as const,
|
||||
operationName: 'sendVerifyChangeEmail',
|
||||
definitionName: 'sendVerifyChangeEmail',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation sendVerifyChangeEmail($token: String!, $email: String!, $callbackUrl: String!) {
|
||||
sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const setWorkspacePublicByIdMutation = {
|
||||
id: 'setWorkspacePublicByIdMutation' as const,
|
||||
operationName: 'setWorkspacePublicById',
|
||||
definitionName: 'updateWorkspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation setWorkspacePublicById($id: ID!, $public: Boolean!) {
|
||||
updateWorkspace(input: {id: $id, public: $public}) {
|
||||
id
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const sharePageMutation = {
|
||||
id: 'sharePageMutation' as const,
|
||||
operationName: 'sharePage',
|
||||
definitionName: 'sharePage',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation sharePage($workspaceId: String!, $pageId: String!) {
|
||||
sharePage(workspaceId: $workspaceId, pageId: $pageId)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const signInMutation = {
|
||||
id: 'signInMutation' as const,
|
||||
operationName: 'signIn',
|
||||
definitionName: 'signIn',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation signIn($email: String!, $password: String!) {
|
||||
signIn(email: $email, password: $password) {
|
||||
token {
|
||||
token
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const signUpMutation = {
|
||||
id: 'signUpMutation' as const,
|
||||
operationName: 'signUp',
|
||||
definitionName: 'signUp',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation signUp($name: String!, $email: String!, $password: String!) {
|
||||
signUp(name: $name, email: $email, password: $password) {
|
||||
token {
|
||||
token
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const uploadAvatarMutation = {
|
||||
id: 'uploadAvatarMutation' as const,
|
||||
operationName: 'uploadAvatar',
|
||||
definitionName: 'uploadAvatar',
|
||||
containsFile: true,
|
||||
query: `
|
||||
mutation uploadAvatar($avatar: Upload!) {
|
||||
uploadAvatar(avatar: $avatar) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const inviteByEmailMutation = {
|
||||
id: 'inviteByEmailMutation' as const,
|
||||
operationName: 'inviteByEmail',
|
||||
definitionName: 'invite',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation inviteByEmail($workspaceId: String!, $email: String!, $permission: Permission!, $sendInviteMail: Boolean) {
|
||||
invite(
|
||||
workspaceId: $workspaceId
|
||||
email: $email
|
||||
permission: $permission
|
||||
sendInviteMail: $sendInviteMail
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const acceptInviteByInviteIdMutation = {
|
||||
id: 'acceptInviteByInviteIdMutation' as const,
|
||||
operationName: 'acceptInviteByInviteId',
|
||||
definitionName: 'acceptInviteById',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!, $sendAcceptMail: Boolean) {
|
||||
acceptInviteById(
|
||||
workspaceId: $workspaceId
|
||||
inviteId: $inviteId
|
||||
sendAcceptMail: $sendAcceptMail
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const acceptInviteByWorkspaceIdMutation = {
|
||||
id: 'acceptInviteByWorkspaceIdMutation' as const,
|
||||
operationName: 'acceptInviteByWorkspaceId',
|
||||
definitionName: 'acceptInvite',
|
||||
containsFile: false,
|
||||
query: `
|
||||
mutation acceptInviteByWorkspaceId($workspaceId: String!) {
|
||||
acceptInvite(workspaceId: $workspaceId)
|
||||
}`,
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
mutation leaveWorkspace(
|
||||
$workspaceId: String!
|
||||
$workspaceName: String!
|
||||
$sendLeaveMail: Boolean
|
||||
) {
|
||||
leaveWorkspace(
|
||||
workspaceId: $workspaceId
|
||||
workspaceName: $workspaceName
|
||||
sendLeaveMail: $sendLeaveMail
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation removeAvatar {
|
||||
removeAvatar {
|
||||
success
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation revokeMemberPermission($workspaceId: String!, $userId: String!) {
|
||||
revoke(workspaceId: $workspaceId, userId: $userId)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation revokePage($workspaceId: String!, $pageId: String!) {
|
||||
revokePage(workspaceId: $workspaceId, pageId: $pageId)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation sendChangeEmail($email: String!, $callbackUrl: String!) {
|
||||
sendChangeEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation sendChangePasswordEmail($email: String!, $callbackUrl: String!) {
|
||||
sendChangePasswordEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation sendSetPasswordEmail($email: String!, $callbackUrl: String!) {
|
||||
sendSetPasswordEmail(email: $email, callbackUrl: $callbackUrl)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation sendVerifyChangeEmail(
|
||||
$token: String!
|
||||
$email: String!
|
||||
$callbackUrl: String!
|
||||
) {
|
||||
sendVerifyChangeEmail(token: $token, email: $email, callbackUrl: $callbackUrl)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation setWorkspacePublicById($id: ID!, $public: Boolean!) {
|
||||
updateWorkspace(input: { id: $id, public: $public }) {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation sharePage($workspaceId: String!, $pageId: String!) {
|
||||
sharePage(workspaceId: $workspaceId, pageId: $pageId)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation signIn($email: String!, $password: String!) {
|
||||
signIn(email: $email, password: $password) {
|
||||
token {
|
||||
token
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mutation signUp($name: String!, $email: String!, $password: String!) {
|
||||
signUp(name: $name, email: $email, password: $password) {
|
||||
token {
|
||||
token
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
mutation uploadAvatar($avatar: Upload!) {
|
||||
uploadAvatar(avatar: $avatar) {
|
||||
id
|
||||
name
|
||||
avatarUrl
|
||||
email
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
mutation inviteByEmail(
|
||||
$workspaceId: String!
|
||||
$email: String!
|
||||
$permission: Permission!
|
||||
$sendInviteMail: Boolean
|
||||
) {
|
||||
invite(
|
||||
workspaceId: $workspaceId
|
||||
email: $email
|
||||
permission: $permission
|
||||
sendInviteMail: $sendInviteMail
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
mutation acceptInviteByInviteId(
|
||||
$workspaceId: String!
|
||||
$inviteId: String!
|
||||
$sendAcceptMail: Boolean
|
||||
) {
|
||||
acceptInviteById(
|
||||
workspaceId: $workspaceId
|
||||
inviteId: $inviteId
|
||||
sendAcceptMail: $sendAcceptMail
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation acceptInviteByWorkspaceId($workspaceId: String!) {
|
||||
acceptInvite(workspaceId: $workspaceId)
|
||||
}
|
||||
Reference in New Issue
Block a user