mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 13:29:02 +08:00
feat(admin): init project (#7197)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# for the admin panel only, do not use it in the app
|
||||
query getCurrentUserFeatures {
|
||||
currentUser {
|
||||
id
|
||||
name
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
features
|
||||
}
|
||||
}
|
||||
@@ -283,6 +283,24 @@ query getCopilotSessions($workspaceId: String!) {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCurrentUserFeaturesQuery = {
|
||||
id: 'getCurrentUserFeaturesQuery' as const,
|
||||
operationName: 'getCurrentUserFeatures',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCurrentUserFeatures {
|
||||
currentUser {
|
||||
id
|
||||
name
|
||||
email
|
||||
emailVerified
|
||||
avatarUrl
|
||||
features
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCurrentUserQuery = {
|
||||
id: 'getCurrentUserQuery' as const,
|
||||
operationName: 'getCurrentUser',
|
||||
@@ -597,6 +615,34 @@ mutation leaveWorkspace($workspaceId: String!, $workspaceName: String!, $sendLea
|
||||
}`,
|
||||
};
|
||||
|
||||
export const listUsersQuery = {
|
||||
id: 'listUsersQuery' as const,
|
||||
operationName: 'listUsers',
|
||||
definitionName: 'users',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query listUsers($filter: ListUserInput!) {
|
||||
users(filter: $filter) {
|
||||
id
|
||||
name
|
||||
email
|
||||
features
|
||||
hasPassword
|
||||
emailVerified
|
||||
avatarUrl
|
||||
quota {
|
||||
humanReadable {
|
||||
blobLimit
|
||||
historyPeriod
|
||||
memberLimit
|
||||
name
|
||||
storageQuota
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const pricesQuery = {
|
||||
id: 'pricesQuery' as const,
|
||||
operationName: 'prices',
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
query listUsers($filter: ListUserInput!) {
|
||||
users(filter: $filter) {
|
||||
id
|
||||
name
|
||||
email
|
||||
features
|
||||
hasPassword
|
||||
emailVerified
|
||||
avatarUrl
|
||||
quota {
|
||||
humanReadable {
|
||||
blobLimit
|
||||
historyPeriod
|
||||
memberLimit
|
||||
name
|
||||
storageQuota
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user