@nuffieldtechnologies/rugged-schema-types 0.2.0 → 0.2.1
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/distribution/index.js +18 -3
- package/package.json +1 -1
package/distribution/index.js
CHANGED
|
@@ -20,6 +20,20 @@ const _TimeStampsInput = `
|
|
|
20
20
|
upgraded: String
|
|
21
21
|
}
|
|
22
22
|
`;
|
|
23
|
+
const _TemplateInfo = `
|
|
24
|
+
type TemplateInfo {
|
|
25
|
+
type: String,
|
|
26
|
+
id: String
|
|
27
|
+
version: String
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const _TemplateInfoInput = `
|
|
31
|
+
type TemplateInfo {
|
|
32
|
+
type: String,
|
|
33
|
+
id: String
|
|
34
|
+
version: String
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
23
37
|
const _Task = `
|
|
24
38
|
type Task {
|
|
25
39
|
id: ID,
|
|
@@ -30,13 +44,14 @@ const _Task = `
|
|
|
30
44
|
form: ID
|
|
31
45
|
organisation: ID
|
|
32
46
|
timestamps: TimeStamps
|
|
47
|
+
template: TemplateInfo
|
|
33
48
|
status: String
|
|
34
49
|
fails: [String]
|
|
35
50
|
reportUrl: String
|
|
36
51
|
data: String
|
|
37
52
|
}
|
|
38
53
|
`;
|
|
39
|
-
const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {updated, submitted, processed, upgraded} , status, fails, reportUrl, data}`;
|
|
54
|
+
const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {updated, submitted, processed, upgraded} , template { type, id, version}, status, fails, reportUrl, data}`;
|
|
40
55
|
const _TaskInput = `
|
|
41
56
|
input TaskInput {
|
|
42
57
|
id : String,
|
|
@@ -84,9 +99,9 @@ const _User = `
|
|
|
84
99
|
}
|
|
85
100
|
`;
|
|
86
101
|
const _AllUserFields = `{id, organisation, name, email}`;
|
|
87
|
-
const Task = _TimeStamps + _Task;
|
|
102
|
+
const Task = _TimeStamps + _TemplateInfo + _Task;
|
|
88
103
|
exports.Task = Task;
|
|
89
|
-
const TaskInput = _TimeStampsInput + _TaskInput;
|
|
104
|
+
const TaskInput = _TimeStampsInput + _TemplateInfoInput + _TaskInput;
|
|
90
105
|
exports.TaskInput = TaskInput;
|
|
91
106
|
const TaskFilter = _TaskFilter;
|
|
92
107
|
exports.TaskFilter = TaskFilter;
|