@nuffieldtechnologies/rugged-schema-types 0.1.3 → 0.1.5

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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.All = exports.Tasks = exports.TaskInput = exports.Task = void 0;
6
+ exports.default = exports.All = exports.Tasks = exports.AllTaskFields = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
7
7
  const _TimeStamps = `
8
8
  type TimeStamps {
9
9
  updated: String,
@@ -37,6 +37,7 @@ const _Task = `
37
37
  data: String
38
38
  }
39
39
  `;
40
+ const _AllTaskFields = `{id, name, definition, user, userEmail, form, key, organisation, timestamps, status, fails, reportUrl, data`;
40
41
  const _TaskInput = `
41
42
  input TaskInput {
42
43
  id : String,
@@ -66,11 +67,24 @@ const _TaskInput = `
66
67
  data: String
67
68
  }
68
69
  `;
70
+ const _TaskFilter = `
71
+ input TaskFilter {
72
+ users: [ID]
73
+ userEmails: [String]
74
+ forms: [ID]
75
+ after: String
76
+ before: String
77
+ },
78
+ `;
69
79
  const Task = _TimeStamps + _Task;
70
80
  exports.Task = Task;
71
81
  const TaskInput = _TimeStampsInput + _TaskInput;
72
82
  exports.TaskInput = TaskInput;
73
- const Tasks = Task + TaskInput;
83
+ const TaskFilter = _TaskFilter;
84
+ exports.TaskFilter = TaskFilter;
85
+ const AllTaskFields = _AllTaskFields;
86
+ exports.AllTaskFields = AllTaskFields;
87
+ const Tasks = Task + TaskInput + TaskFilter;
74
88
  exports.Tasks = Tasks;
75
89
  const All = Tasks;
76
90
  exports.All = All;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [