@nuffieldtechnologies/rugged-schema-types 0.3.21 → 0.4.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.
@@ -14,14 +14,56 @@ const _TimeStamps = `
14
14
  `;
15
15
  const _TimeStampsInput = `
16
16
  input TimeStampsInput {
17
+ started: String,
17
18
  updated: String,
18
19
  submitted: String,
19
20
  processed: String,
20
21
  upgraded: String
21
22
  }
22
23
  `;
24
+ const _Event = `
25
+ type Event {
26
+ appVersion: String,
27
+ at: Number,
28
+ atForHumans: String,
29
+ device: String,
30
+ deviceModel: String,
31
+ osVersion: String,
32
+ user: String,
33
+ userEmail: String
34
+ }
35
+ `;
36
+ const _EventInput = `
37
+ input EventInput {
38
+ appVersion: String,
39
+ at: Number,
40
+ atForHumans: String,
41
+ device: String,
42
+ deviceModel: String,
43
+ osVersion: String,
44
+ user: String,
45
+ userEmail: String
46
+ }
47
+ `;
48
+ const _Events = `
49
+ input Events {
50
+ started: Event,
51
+ updated: Event,
52
+ submitted: Event,
53
+ discarded: Event,
54
+ }
55
+ `;
56
+ const _EventsInput = `
57
+ input EventsInput {
58
+ started: EventInput,
59
+ updated: EventInput,
60
+ submitted: EventInput,
61
+ discarded: EventInput,
62
+ }
63
+ `;
23
64
  const _TemplateInfo = `
24
65
  type TemplateInfo {
66
+ name: String,
25
67
  type: String,
26
68
  id: String
27
69
  version: String
@@ -29,6 +71,7 @@ const _TemplateInfo = `
29
71
  `;
30
72
  const _TemplateInfoInput = `
31
73
  input TemplateInfoInput {
74
+ name: String,
32
75
  type: String,
33
76
  id: String
34
77
  version: String
@@ -43,7 +86,8 @@ const _Task = `
43
86
  userEmail: String
44
87
  form: ID
45
88
  organisation: ID
46
- timestamps: TimeStamps
89
+ timestamps: TimeStamps,
90
+ events: Events,
47
91
  template: TemplateInfo
48
92
  status: String
49
93
  fails: [String]
@@ -51,7 +95,8 @@ const _Task = `
51
95
  data: String
52
96
  }
53
97
  `;
54
- const _AllTaskFields = `{id, name, definition, user, userEmail, form, id, organisation, timestamps {updated, submitted, processed, upgraded} , template { type, id, version}, status, fails, reportUrl, data}`;
98
+ const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
99
+ 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}`;
55
100
  const _TaskInput = `
56
101
  input TaskInput {
57
102
  id : String,
@@ -78,6 +123,7 @@ const _TaskInput = `
78
123
  fails: [String],
79
124
  reportUrl: String,
80
125
  timestamps: TimeStampsInput,
126
+ events: EventsInput,
81
127
  template: TemplateInfoInput
82
128
  data: String
83
129
  }
@@ -148,9 +194,9 @@ const _Form = `
148
194
  }
149
195
  `;
150
196
  const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
151
- const Task = _TimeStamps + _TemplateInfo + _Task;
197
+ const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task;
152
198
  exports.Task = Task;
153
- const TaskInput = _TimeStampsInput + _TemplateInfoInput + _TaskInput;
199
+ const TaskInput = _TimeStampsInput + _EventInput + _Events + _TemplateInfoInput + _TaskInput;
154
200
  exports.TaskInput = TaskInput;
155
201
  const TaskFilter = _TaskFilter;
156
202
  exports.TaskFilter = TaskFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "0.3.21",
3
+ "version": "0.4.1",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [