core/schema/input.graphql

168 lines
2.5 KiB
GraphQL
Raw Permalink Normal View History

2025-02-11 09:00:35 +00:00
input MediaItemInput {
2025-07-01 09:18:24 +00:00
url: String
title: String
body: String
source: String
pic: String
date: String
genre: String
artist: String
lyrics: String
2025-02-11 09:00:35 +00:00
}
input AuthorInput {
2025-07-01 09:18:24 +00:00
id: Int!
slug: String
2025-02-11 09:00:35 +00:00
}
input TopicInput {
2025-07-01 09:18:24 +00:00
id: Int
slug: String!
title: String
body: String
pic: String
community: Int
parent_ids: [Int]
2025-02-11 09:00:35 +00:00
}
2025-07-03 09:15:10 +00:00
input AdminTopicInput {
id: Int!
slug: String
title: String
body: String
pic: String
community: Int
parent_ids: [Int]
}
2025-06-30 22:20:48 +00:00
input TopicMergeInput {
2025-07-01 09:18:24 +00:00
target_topic_id: Int!
source_topic_ids: [Int!]!
preserve_target_properties: Boolean
2025-06-30 22:20:48 +00:00
}
2025-02-11 09:00:35 +00:00
input DraftInput {
2025-07-01 09:18:24 +00:00
id: Int
# no created_at, updated_at, deleted_at, updated_by, deleted_by
layout: String
shout_id: Int # Changed from shout: Shout
author_ids: [Int!] # Changed from authors: [Author]
topic_ids: [Int!] # Changed from topics: [Topic]
main_topic_id: Int # Changed from main_topic: Topic
media: [MediaItemInput] # Changed to use MediaItemInput
lead: String
subtitle: String
lang: String
seo: String
body: String
title: String
slug: String
cover: String
cover_caption: String
2024-02-02 12:03:44 +00:00
}
input ProfileInput {
2025-07-01 09:18:24 +00:00
slug: String
name: String
pic: String
links: [String]
bio: String
about: String
2024-02-02 12:03:44 +00:00
}
input ReactionInput {
2025-07-01 09:18:24 +00:00
id: Int
kind: ReactionKind!
shout: Int!
quote: String
body: String
reply_to: Int
2024-02-02 12:03:44 +00:00
}
input AuthorsBy {
2025-07-01 09:18:24 +00:00
last_seen: Int
created_at: Int
slug: String
name: String
topic: String
order: String
after: Int
stat: String
2024-02-02 12:03:44 +00:00
}
input LoadShoutsFilters {
2025-07-01 09:18:24 +00:00
topic: String
author: String
layouts: [String]
featured: Boolean
reacted: Boolean # requires auth, used in load_shouts_feed
after: Int
community: Int
2024-02-02 12:03:44 +00:00
}
input LoadShoutsOptions {
2025-07-01 09:18:24 +00:00
filters: LoadShoutsFilters
limit: Int!
random_limit: Int
offset: Int
order_by: ShoutsOrderBy
order_by_desc: Boolean
2024-02-02 12:03:44 +00:00
}
input ReactionBy {
2025-07-01 09:18:24 +00:00
shout: String
shout_id: Int
shouts: [String]
search: String
kinds: [ReactionKind]
reply_to: Int # filter
topic: String
created_by: Int
author_id: Int
author: String
after: Int
sort: ReactionSort # sort
2024-02-02 12:03:44 +00:00
}
2024-03-04 07:35:33 +00:00
input NotificationSeenInput {
2025-07-01 09:18:24 +00:00
notifications: [Int]
thread: Int
2024-03-04 07:35:33 +00:00
}
2024-10-21 13:42:30 +00:00
input CommunityInput {
2025-07-01 09:18:24 +00:00
slug: String
name: String
desc: String
pic: String
2024-10-21 13:42:30 +00:00
}
2025-05-16 06:23:48 +00:00
2025-06-30 18:46:53 +00:00
input CollectionInput {
2025-07-01 09:18:24 +00:00
id: Int
slug: String!
title: String!
desc: String
pic: String
2025-06-30 18:46:53 +00:00
}
2025-05-16 06:23:48 +00:00
# Auth inputs
input LoginCredentials {
2025-07-01 09:18:24 +00:00
email: String!
password: String!
2025-05-16 06:23:48 +00:00
}
input RegisterInput {
2025-07-01 09:18:24 +00:00
email: String!
password: String
name: String
2025-05-16 06:23:48 +00:00
}
input ChangePasswordInput {
2025-07-01 09:18:24 +00:00
oldPassword: String!
newPassword: String!
2025-05-16 06:23:48 +00:00
}
input ResetPasswordInput {
2025-07-01 09:18:24 +00:00
token: String!
newPassword: String!
2025-05-16 06:23:48 +00:00
}