This repository was archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI.graphql
More file actions
83 lines (69 loc) · 1.34 KB
/
API.graphql
File metadata and controls
83 lines (69 loc) · 1.34 KB
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type AuthResponse {
token: String!
currentUser: CurrentUser!
}
type Configuration {
id: ID!
}
input CreateUtilityInput {
name: String!
}
type CurrentUser {
id: ID!
username: String!
email: String!
roles: [UserRole!]!
}
input LoginInput {
username: String!
password: String!
}
type Mutation {
login(input: LoginInput!): AuthResponse!
register(input: UserInput!): RegisterResponse!
resetPasswordReset(input: RequestPasswordResetInput!): Boolean!
initialConfiguration(user: UserInput!): Configuration!
createUtility(input: CreateUtilityInput!): Utility!
}
type Query {
currentUser: CurrentUser
hasSetup: Boolean!
users: [User!]!
user(userId: String!): User!
utilities: [Utility!]!
helloWorld: String!
}
type RegisterResponse {
success: Boolean!
token: String!
currentUser: CurrentUser!
}
input RequestPasswordResetInput {
email: String!
}
input ResetPasswordInput {
token: String!
password: String!
}
type User {
id: ID!
username: String!
}
input UserInput {
username: String!
email: String!
password: String!
}
enum UserRole {
GUEST
USER
ADMIN
}
type Utility {
id: ID!
name: String!
}