fixes-api

This commit is contained in:
2022-11-21 11:13:57 +03:00
parent 4c4f18147e
commit 5ad8328c03
17 changed files with 187 additions and 170 deletions

View File

@@ -24,9 +24,11 @@ type AuthResult {
}
type ChatMember {
id: Int!
slug: String!
name: String!
userpic: String
lastSeen: DateTime
invitedAt: DateTime
invitedBy: String # user slug
# TODO: add more
@@ -261,8 +263,8 @@ type Query {
# inbox
loadChats( limit: Int, offset: Int): Result! # your chats
loadMessagesBy(by: MessagesBy!, limit: Int, offset: Int): Result!
searchUsers(query: String!, limit: Int, offset: Int): Result!
chatUsersAll: [ChatUser]!
loadRecipients(limit: Int, offset: Int): Result!
searchRecipients(query: String!, limit: Int, offset: Int): Result!
# auth
isEmailUsed(email: String!): Boolean!
@@ -369,14 +371,6 @@ type User {
oid: String
}
type ChatUser {
id: Int!
slug: String!
name: String!
userpic: String
lastSeen: DateTime
}
type Collab {
authors: [String]!
invites: [String]
@@ -482,7 +476,7 @@ type TopicStat {
shouts: Int!
followers: Int!
authors: Int!
viewed: Int
# viewed: Int
reacted: Int!
commented: Int
rating: Int