GraphQL: Add missing fields (#20646)
Went through the model and added all missing fields. Except user.Password/MfaSecret/AuthData and session.TeamMembers. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2aaf4cf0fb
Коммит
ae482e6214
@@ -38,6 +38,8 @@ scalar SidebarCategorySorting
|
||||
|
||||
scalar StringMap
|
||||
|
||||
scalar StringInterface
|
||||
|
||||
scalar Time
|
||||
|
||||
type Channel {
|
||||
@@ -61,6 +63,9 @@ type Channel {
|
||||
totalMsgCountRoot: Float!
|
||||
lastRootPostAt: Float!
|
||||
stats: ChannelStats
|
||||
extraUpdateAt: Float!
|
||||
props: StringInterface!
|
||||
policyId: String
|
||||
cursor: String
|
||||
}
|
||||
|
||||
@@ -82,6 +87,7 @@ type ChannelMember {
|
||||
cursor: String
|
||||
}
|
||||
|
||||
# Deliberately omitting password, authData, mfaSecret.
|
||||
type User {
|
||||
id: String!
|
||||
username: String!
|
||||
@@ -89,20 +95,33 @@ type User {
|
||||
firstName: String!
|
||||
lastName: String!
|
||||
nickname: String!
|
||||
emailVerified: Boolean!
|
||||
isBot: Boolean!
|
||||
isGuest: Boolean!
|
||||
isSystemAdmin: Boolean!
|
||||
createAt: Float!
|
||||
updateAt: Float!
|
||||
deleteAt: Float!
|
||||
authService: String!
|
||||
customStatus: CustomStatus
|
||||
status: Status
|
||||
props: StringMap!
|
||||
notifyProps: StringMap!
|
||||
lastPictureUpdateAt: Float!
|
||||
lastPictureUpdate: Float!
|
||||
lastPasswordUpdate: Float!
|
||||
failedAttempts: Float!
|
||||
locale: String!
|
||||
timezone: StringMap!
|
||||
position: String!
|
||||
mfaActive: Boolean!
|
||||
allowMarketing: Boolean!
|
||||
remoteId: String
|
||||
lastActivityAt: Float!
|
||||
botDescription: String!
|
||||
botLastIconUpdate: Float!
|
||||
termsOfServiceId: String!
|
||||
termsOfServiceCreateAt: Float!
|
||||
disableWelcomeEmail: Boolean!
|
||||
roles: [Role]!
|
||||
preferences: [Preference!]!
|
||||
sessions: [Session]!
|
||||
@@ -126,6 +145,11 @@ type Status {
|
||||
type Role {
|
||||
id: String!
|
||||
name: String!
|
||||
displayName: String!
|
||||
description: String!
|
||||
createAt: Float!
|
||||
updateAt: Float!
|
||||
deleteAt: Float!
|
||||
permissions: [String!]!
|
||||
schemeManaged: Boolean!
|
||||
builtIn: Boolean!
|
||||
@@ -167,6 +191,7 @@ type TeamMember {
|
||||
schemeGuest: Boolean!
|
||||
schemeUser: Boolean!
|
||||
schemeAdmin: Boolean!
|
||||
explicitRoles: String!
|
||||
}
|
||||
|
||||
type SidebarCategory {
|
||||
@@ -180,11 +205,19 @@ type SidebarCategory {
|
||||
channelIds: [String!]!
|
||||
}
|
||||
|
||||
# Deliberately leaving out teamMembers.
|
||||
type Session {
|
||||
id: String!
|
||||
token: String!
|
||||
createAt: Float!
|
||||
expiresAt: Float!
|
||||
lastActivityAt: Float!
|
||||
deviceId: String!
|
||||
roles: String!
|
||||
isOAuth: Boolean!
|
||||
expiredNotify: Boolean!
|
||||
props: StringMap!
|
||||
local: Boolean!
|
||||
}
|
||||
|
||||
type ChannelStats {
|
||||
|
||||
Ссылка в новой задаче
Block a user