@nuffieldtechnologies/rugged-schema-types 0.2.0 → 0.2.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.
@@ -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 TemplateInfoInput {
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,
@@ -63,6 +78,7 @@ const _TaskInput = `
63
78
  fails: [String],
64
79
  reportUrl: String,
65
80
  timestamps: TimeStampsInput,
81
+ template: TemplateInfoInput
66
82
  data: String
67
83
  }
68
84
  `;
@@ -84,9 +100,9 @@ const _User = `
84
100
  }
85
101
  `;
86
102
  const _AllUserFields = `{id, organisation, name, email}`;
87
- const Task = _TimeStamps + _Task;
103
+ const Task = _TimeStamps + _TemplateInfo + _Task;
88
104
  exports.Task = Task;
89
- const TaskInput = _TimeStampsInput + _TaskInput;
105
+ const TaskInput = _TimeStampsInput + _TemplateInfoInput + _TaskInput;
90
106
  exports.TaskInput = TaskInput;
91
107
  const TaskFilter = _TaskFilter;
92
108
  exports.TaskFilter = TaskFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [