mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
refactor(server): rename settings to user-settings (#11161)
This commit is contained in:
@@ -1018,7 +1018,7 @@ type Mutation {
|
||||
updateRuntimeConfigs(updates: JSONObject!): [ServerRuntimeConfigType!]!
|
||||
|
||||
"""Update user settings"""
|
||||
updateSettings(input: UpdateSettingsInput!): Boolean!
|
||||
updateSettings(input: UpdateUserSettingsInput!): Boolean!
|
||||
updateSubscriptionRecurring(idempotencyKey: String @deprecated(reason: "use header `Idempotency-Key`"), plan: SubscriptionPlan = Pro, recurring: SubscriptionRecurring!, workspaceId: String): SubscriptionType!
|
||||
|
||||
"""Update an user"""
|
||||
@@ -1363,14 +1363,6 @@ type ServerServiceConfig {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type SettingsType {
|
||||
"""Receive invitation email"""
|
||||
receiveInvitationEmail: Boolean!
|
||||
|
||||
"""Receive mention email"""
|
||||
receiveMentionEmail: Boolean!
|
||||
}
|
||||
|
||||
type SpaceAccessDeniedDataType {
|
||||
spaceId: String!
|
||||
}
|
||||
@@ -1510,7 +1502,12 @@ input UpdateDocUserRoleInput {
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
input UpdateSettingsInput {
|
||||
input UpdateUserInput {
|
||||
"""User name"""
|
||||
name: String
|
||||
}
|
||||
|
||||
input UpdateUserSettingsInput {
|
||||
"""Receive invitation email"""
|
||||
receiveInvitationEmail: Boolean
|
||||
|
||||
@@ -1518,11 +1515,6 @@ input UpdateSettingsInput {
|
||||
receiveMentionEmail: Boolean
|
||||
}
|
||||
|
||||
input UpdateUserInput {
|
||||
"""User name"""
|
||||
name: String
|
||||
}
|
||||
|
||||
input UpdateWorkspaceInput {
|
||||
"""Enable AI"""
|
||||
enableAi: Boolean
|
||||
@@ -1572,6 +1564,14 @@ type UserQuotaUsageType {
|
||||
storageQuota: SafeInt! @deprecated(reason: "use `UserQuotaType['usedStorageQuota']` instead")
|
||||
}
|
||||
|
||||
type UserSettingsType {
|
||||
"""Receive invitation email"""
|
||||
receiveInvitationEmail: Boolean!
|
||||
|
||||
"""Receive mention email"""
|
||||
receiveMentionEmail: Boolean!
|
||||
}
|
||||
|
||||
type UserType {
|
||||
"""User avatar url"""
|
||||
avatarUrl: String
|
||||
@@ -1612,7 +1612,7 @@ type UserType {
|
||||
quotaUsage: UserQuotaUsageType!
|
||||
|
||||
"""Get user settings"""
|
||||
settings: SettingsType!
|
||||
settings: UserSettingsType!
|
||||
subscriptions: [SubscriptionType!]!
|
||||
token: tokenType! @deprecated(reason: "use [/api/auth/sign-in?native=true] instead")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user