feat(admin): init project (#7197)

This commit is contained in:
Brooooooklyn
2024-06-18 06:01:13 +00:00
parent d216606193
commit 0fe672efa5
92 changed files with 6392 additions and 175 deletions
@@ -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
}
}
}
}