-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.gql
95 lines (85 loc) · 2.6 KB
/
schema.gql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type QuoteType {
id: ID!
guildID: String!
authorID: String!
quote: String!
deleted: Boolean!
indexNum: Int!
createdAt: DateTime!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type RemoveManyType {
ok: Int!
n: Int!
deletedCount: Int!
}
type CommandType {
id: ID!
guildID: String!
authorID: String!
commandName: String!
commandText: String!
deleted: Boolean!
createdAt: DateTime!
}
type ServerConfigType {
id: ID!
guildID: String!
nhenDisable: Boolean!
nhenTimer: Float!
}
type Query {
findQuotes(quoteText: String!, guildID: String): [QuoteType!]!
findQuoteByIndexNum(indexNum: Float!, guildID: String): QuoteType!
findAllQuotes(guildID: String): [QuoteType!]!
findDeletedQuotes(guildID: String): [QuoteType!]!
findCommand(commandName: String!, guildID: String): CommandType!
findAllCommands(guildID: String): [CommandType!]!
findDeletedCommmands(guildID: String): [CommandType!]!
findServerConfig(guildID: String!): ServerConfigType
findAllServerConfigs: [ServerConfigType!]!
}
type Mutation {
createQuote(quote: QuoteInput!): QuoteType!
createQuoteAtIndex(quote: QuoteInput!, indexNum: Float!): QuoteType!
deleteQuote(id: String!): QuoteType!
deleteByIndexNumQuote(indexNum: Float!, guildID: String!): QuoteType!
trueDeleteQuote(id: String!): QuoteType!
deleteAllQuotes(guildID: String): RemoveManyType!
createCommand(command: CreateCommandInput!): CommandType!
deleteCommand(id: String!): CommandType!
deleteByNameCommand(commandName: String!, guildID: String!): CommandType!
trueDeleteCommand(id: String!): CommandType!
deleteAllCommands(guildID: String): RemoveManyType!
createServerConfig(serverConfig: CreateServerConfigInput!): ServerConfigType!
toggleNh(guildID: String!, disabled: Boolean!): ServerConfigType!
updateNhTimer(guildID: String!, nhTimer: Float!): ServerConfigType!
deleteServerConfig(id: String!): ServerConfigType!
}
input QuoteInput {
guildID: String!
authorID: String!
quote: String!
deleted: Boolean = false
indexNum: Int = 0
createdAt: DateTime = "2022-06-24T06:24:47.351Z"
}
input CreateCommandInput {
guildID: String!
authorID: String!
commandName: String!
commandText: String!
deleted: Boolean = false
createdAt: DateTime = "2022-06-24T06:24:47.351Z"
}
input CreateServerConfigInput {
guildID: String!
nhenDisable: Boolean = false
nhenTimer: Float = 86400000
}