-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
104 lines (101 loc) · 1.97 KB
/
schema.graphql
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
96
97
98
99
100
101
102
103
104
type Query {
getFile(id: ID!): File
getFiles(authorId: String, createdBetween:DateRank, generatedBetween:DateRank, downloadedBetween:DateRank): [File]
getUser(id: ID!): User
getUsers(name:String, lastname:String, email:String, createdBetween:DateRank, modifiedBetween:DateRank): [User]
getNotification(id:ID!):Notification
getNotifications(read:Boolean):[Notification]
}
type Mutation {
createUser(
name: String!,
lastname: String!,
lastname2: String,
email: String!,
permissions: [[String]],
avatar: String
):User
askForFile(
title: String!,
requesterID: String!,
description: String
):File
pushNotification(
name:String!,
title:String!,
description:String!,
icon:String,
link:String
):Notification
}
type Date {
getDay:Int!
getMonth:Int!
getFullYear:Int!
getHours:Int!
getMinutes:Int!
getSeconds:Int!
getTime:Int!
toString:String!
}
input DateRank{
iDay:Int!
iMonth:Int!
iYear:Int!
iHour:Int!
iMinute:Int!
iSecond:Int!
fDay:Int!
fMonth:Int!
fYear:Int!
fHour:Int!
fMinute:Int!
fSecond:Int!
seconds:Int!
}
type File {
id: ID!
title: String!
author: User!
description: String
url: String
status:FileStatus
asked:Date!
generated:Date
downloaded:[Date]
}
enum FileStatus {
REQUESTED
GENERATING
GENERATED
DELETED
ERROR
}
type User {
id: ID!
name: String!
lastname: String!
lastname2: String
email: String!
permissions: [[String]]!
avatar: String
created:Date!
modified:Date!
}
type Notification {
id:ID!
name:String!
title:String!
description:String!
icon:String
link:String
read:Date
}
input FileSettings{
sanPablo:Boolean!
fragua:Boolean!
farmaListo:Boolean!
delAhorro:Boolean!
withDescription:Boolean!
getSugestedPrice:Boolean!
}