mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
58 lines
920 B
GraphQL
58 lines
920 B
GraphQL
enum VIEW {
|
|
SIGN_UP
|
|
SIGN_IN
|
|
FORGOT_PASSWORD
|
|
}
|
|
|
|
enum TAB {
|
|
COMMENTS
|
|
PROFILE
|
|
}
|
|
|
|
enum PROFILE_TAB {
|
|
MY_COMMENTS
|
|
SETTINGS
|
|
}
|
|
|
|
enum COMMENT_VIEWER_ACTION {
|
|
EDIT
|
|
APPROVE
|
|
REJECT
|
|
}
|
|
|
|
type AuthPopup {
|
|
open: Boolean!
|
|
focus: Boolean!
|
|
view: VIEW
|
|
}
|
|
|
|
extend type Comment {
|
|
# pending is true during the optimistic response.
|
|
pending: Boolean
|
|
# localReplies contains only comments created by the user
|
|
# on the ultimate threading level.
|
|
localReplies: [Comment!]
|
|
|
|
# Remember last viewer action that could have caused a status change.
|
|
lastViewerAction: COMMENT_VIEWER_ACTION
|
|
}
|
|
|
|
type Local {
|
|
accessToken: String
|
|
accessTokenExp: Int
|
|
accessTokenJTI: String
|
|
loggedIn: Boolean!
|
|
activeTab: TAB!
|
|
authPopup: AuthPopup!
|
|
storyID: String
|
|
storyURL: String
|
|
commentID: String
|
|
defaultStreamOrderBy: COMMENT_SORT!
|
|
profileTab: PROFILE_TAB!
|
|
bla: [String]
|
|
}
|
|
|
|
extend type Query {
|
|
local: Local!
|
|
}
|