@nuffieldtechnologies/rugged-schema-types 0.7.2 → 0.8.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.
@@ -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
@@ -97,7 +110,7 @@ const _Task = `
97
110
  }
98
111
  `;
99
112
  const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
100
- const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {started, updated, submitted, processed, upgraded} events {started ${_AllEventFields}, updated ${_AllEventFields}, submitted ${_AllEventFields}, discarded ${_AllEventFields}} , template { type, id, version}, status, fails, reportUrl, data}`;
113
+ const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {started, updated, submitted, processed, upgraded} events {started ${_AllEventFields}, updated ${_AllEventFields}, submitted ${_AllEventFields}, discarded ${_AllEventFields}} , template { type, id, version}, identifiers { primary, secondary}, status, fails, reportUrl, data}`;
101
114
  const _TaskInput = `
102
115
  input TaskInput {
103
116
  # The name of the task. TODO does this actually exist?
@@ -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
  `;
@@ -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.2",
3
+ "version": "0.8.1",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [