@nuffieldtechnologies/rugged-schema-types 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +70 -0
- package/src/rugged-schema-types.ts +0 -0
package/package.json
CHANGED
package/src/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const _TimeStamps = `
|
|
2
|
+
type TimeStamps {
|
|
3
|
+
updated: String,
|
|
4
|
+
submitted: String,
|
|
5
|
+
processed: String,
|
|
6
|
+
upgraded: String
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
const _TimeStampsInput = `
|
|
10
|
+
input TimeStampsInput {
|
|
11
|
+
updated: String,
|
|
12
|
+
submitted: String,
|
|
13
|
+
processed: String,
|
|
14
|
+
upgraded: String
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
const _Task = `
|
|
18
|
+
type Task {
|
|
19
|
+
id: String,
|
|
20
|
+
name: String,
|
|
21
|
+
definition: String,
|
|
22
|
+
user: ID
|
|
23
|
+
userEmail: String,
|
|
24
|
+
form: ID
|
|
25
|
+
key: String
|
|
26
|
+
organisation: ID
|
|
27
|
+
timestamps: TimeStamps
|
|
28
|
+
status: String
|
|
29
|
+
fails: [String],
|
|
30
|
+
reportUrl: String,
|
|
31
|
+
data: String
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
const _TaskInput = `
|
|
36
|
+
input TaskInput {
|
|
37
|
+
id : String,
|
|
38
|
+
|
|
39
|
+
# The name of the task. TODO does this actually exist?
|
|
40
|
+
name: String,
|
|
41
|
+
|
|
42
|
+
# A short description of the task
|
|
43
|
+
description: String
|
|
44
|
+
|
|
45
|
+
# The definition of the task
|
|
46
|
+
definition: String!,
|
|
47
|
+
|
|
48
|
+
# The id of the user who submitted the task TODO is this right?
|
|
49
|
+
user: ID
|
|
50
|
+
|
|
51
|
+
# The email of the user who submitted the task
|
|
52
|
+
userEmail: String,
|
|
53
|
+
|
|
54
|
+
form: ID
|
|
55
|
+
key: String
|
|
56
|
+
organisation: ID
|
|
57
|
+
status: String
|
|
58
|
+
fails: [String],
|
|
59
|
+
reportUrl: String,
|
|
60
|
+
timestamps: TimeStampsInput,
|
|
61
|
+
data: String
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
export const Task = _TimeStamps + _Task;
|
|
66
|
+
export const TaskInput = _TimeStampsInput + _TaskInput;
|
|
67
|
+
export const Tasks = Task + TaskInput;
|
|
68
|
+
export const All = Tasks;
|
|
69
|
+
export default All;
|
|
70
|
+
|
|
File without changes
|