@nuffieldtechnologies/rugged-schema-types 0.7.1 → 0.8.0

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.
@@ -78,6 +78,18 @@ const _TemplateInfoInput = `
78
78
  version: String
79
79
  }
80
80
  `;
81
+ const _TaskIdentifiers = `
82
+ type TaskIdentifiers {
83
+ primary: String
84
+ secondary: String
85
+ }
86
+ `;
87
+ const _TaskIdentifiersInput = `
88
+ input TaskIdentifiersInput {
89
+ primary: String
90
+ secondary: String
91
+ }
92
+ `;
81
93
  const _Task = `
82
94
  type Task {
83
95
  id: ID,
@@ -87,9 +99,10 @@ const _Task = `
87
99
  userEmail: String
88
100
  form: ID
89
101
  organisation: ID
90
- timestamps: TimeStamps,
91
- events: Events,
102
+ timestamps: TimeStamps
103
+ events: Events
92
104
  template: TemplateInfo
105
+ indentifiers: TaskIdentifiers
93
106
  status: String
94
107
  fails: [String]
95
108
  reportUrl: String
@@ -119,11 +132,12 @@ const _TaskInput = `
119
132
  id: ID
120
133
  organisation: ID
121
134
  status: String
122
- fails: [String],
123
- reportUrl: String,
124
- timestamps: TimeStampsInput,
125
- events: EventsInput,
135
+ fails: [String]
136
+ reportUrl: String
137
+ timestamps: TimeStampsInput
138
+ events: EventsInput
126
139
  template: TemplateInfoInput
140
+ identifiers: TaskIdentifiersInput
127
141
  data: String
128
142
  }
129
143
  `;
@@ -174,7 +188,7 @@ const _UserInput = `
174
188
  roles: RolesInput
175
189
  }
176
190
  `;
177
- const _AllRolesFields = `{user, admin, api}`;
191
+ const _AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
178
192
  const _AllUserFields = `{id, organisation, name, email, roles ${_AllRolesFields}, permissions}`;
179
193
  const _FormInput = `
180
194
 
@@ -237,9 +251,9 @@ const _Organisation = `
237
251
  }
238
252
  `;
239
253
  const _AllOrganisationFields = `{id, name, logoUrl}`;
240
- const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task;
254
+ const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task + _TaskIdentifiers;
241
255
  exports.Task = Task;
242
- const TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput;
256
+ const TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput + _TaskIdentifiersInput;
243
257
  exports.TaskInput = TaskInput;
244
258
  const TaskFilter = _TaskFilter;
245
259
  exports.TaskFilter = TaskFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [