@nuffieldtechnologies/rugged-schema-types 1.0.0 → 1.0.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.
package/README.md ADDED
File without changes
package/index.ts CHANGED
@@ -110,6 +110,7 @@ const _Task = `
110
110
  fails: [String]
111
111
  reportUrl: String
112
112
  data: String
113
+ refNo: String
113
114
  }
114
115
  `;
115
116
 
@@ -145,6 +146,9 @@ const _TaskInput = `
145
146
  template: TemplateInfoInput
146
147
  identifiers: TaskIdentifiersInput
147
148
  data: String
149
+
150
+ #A unique identifier for the task that is intended to be human-readable.
151
+ refNo: String
148
152
  }
149
153
  `;
150
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
package/dist/index.js DELETED
@@ -1,271 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const _TimeStamps = `
4
- type TimeStamps {
5
- started: String,
6
- updated: String,
7
- submitted: String,
8
- processed: String,
9
- upgraded: String
10
- }
11
- `;
12
- const _TimeStampsInput = `
13
- input TimeStampsInput {
14
- started: String,
15
- updated: String,
16
- submitted: String,
17
- processed: String,
18
- upgraded: String
19
- }
20
- `;
21
- const _Event = `
22
- type Event {
23
- appVersion: String,
24
- at: Float,
25
- atForHumans: String,
26
- device: String,
27
- deviceModel: String,
28
- osVersion: String,
29
- user: String,
30
- userEmail: String
31
- }
32
- `;
33
- const _EventInput = `
34
- input EventInput {
35
- appVersion: String,
36
- at: Float,
37
- atForHumans: String,
38
- device: String,
39
- deviceModel: String,
40
- osVersion: String,
41
- user: String,
42
- userEmail: String
43
- }
44
- `;
45
- const _Events = `
46
- type Events {
47
- started: Event,
48
- updated: Event,
49
- submitted: Event,
50
- discarded: Event,
51
- }
52
- `;
53
- const _EventsInput = `
54
- input EventsInput {
55
- started: EventInput,
56
- updated: EventInput,
57
- submitted: EventInput,
58
- discarded: EventInput,
59
- }
60
- `;
61
- const _TemplateInfo = `
62
- type TemplateInfo {
63
- name: String,
64
- type: String,
65
- id: String
66
- version: String
67
- }
68
- `;
69
- const _TemplateInfoInput = `
70
- input TemplateInfoInput {
71
- name: String,
72
- type: String,
73
- id: String
74
- version: String
75
- }
76
- `;
77
- const _TaskIdentifiers = `
78
- type TaskIdentifiers {
79
- primary: String
80
- secondary: String
81
- }
82
- `;
83
- const _TaskIdentifiersInput = `
84
- input TaskIdentifiersInput {
85
- primary: String
86
- secondary: String
87
- }
88
- `;
89
- const _Task = `
90
- type Task {
91
- id: ID,
92
- name: String
93
- definition: String
94
- user: ID
95
- userEmail: String
96
- form: ID
97
- organisation: ID
98
- timestamps: TimeStamps
99
- events: Events
100
- template: TemplateInfo
101
- identifiers: TaskIdentifiers
102
- status: String
103
- fails: [String]
104
- reportUrl: String
105
- data: String
106
- }
107
- `;
108
- const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
109
- 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}`;
110
- const _TaskInput = `
111
- input TaskInput {
112
- # The name of the task. TODO does this actually exist?
113
- name: String,
114
-
115
- # A short description of the task
116
- description: String
117
-
118
- # The definition of the task
119
- definition: String!,
120
-
121
- # The id of the user who submitted the task TODO is this right?
122
- user: ID
123
-
124
- # The email of the user who submitted the task
125
- userEmail: String,
126
-
127
- form: ID
128
- id: ID
129
- organisation: ID
130
- status: String
131
- fails: [String]
132
- reportUrl: String
133
- timestamps: TimeStampsInput
134
- events: EventsInput
135
- template: TemplateInfoInput
136
- identifiers: TaskIdentifiersInput
137
- data: String
138
- }
139
- `;
140
- const _TaskFilter = `
141
- input TaskFilter {
142
- users: [ID]
143
- userEmails: [String]
144
- forms: [ID]
145
- after: String
146
- before: String
147
- },
148
- `;
149
- const _Roles = `
150
- type Roles {
151
- user: Boolean
152
- admin: Boolean
153
- api: Boolean
154
- uber: Boolean
155
- super: Boolean
156
- legacyPush: Boolean
157
- }
158
- `;
159
- const _RolesInput = `
160
- input RolesInput {
161
- user: Boolean
162
- admin: Boolean
163
- api: Boolean
164
- }
165
- `;
166
- const _User = `
167
- type User {
168
- id: ID
169
- organisation: ID
170
- firebaseId: ID
171
- name: String
172
- email: String
173
- roles: Roles
174
- permissions: String
175
- }
176
- `;
177
- const _UserInput = `
178
- input UserInput {
179
- id: ID
180
- organisation: ID
181
- firebaseId: ID
182
- name: String
183
- email: String
184
- roles: RolesInput
185
- }
186
- `;
187
- const _AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
188
- const _AllUserFields = `{id, organisation, name, email, roles ${_AllRolesFields}, permissions}`;
189
- const _FormInput = `
190
-
191
- input ParamInput {
192
- name: String
193
- value: String
194
- }
195
-
196
- input FormInput {
197
- id: ID
198
- name: String
199
- key: String
200
- definition: String
201
- version: String
202
- status: String
203
- updated: String
204
- params: [ParamInput]
205
- resources: String
206
- body: String
207
- }
208
- `;
209
- const _FormFilter = `
210
- input FormFilter {
211
- status: String
212
- }
213
- `;
214
- const _Form = `
215
-
216
- type Param {
217
- name: String
218
- value: String
219
- }
220
-
221
- type Form {
222
- id: ID
223
- name: String
224
- key: String
225
- definition: String
226
- version: String
227
- status: String
228
- updated: String
229
- params: [Param]
230
- resources: String
231
- body: String
232
- }
233
- `;
234
- const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
235
- const _OrganisationInput = `
236
- input OrganisationInput {
237
- id: ID
238
- name: String
239
- logoUrl: String
240
- }
241
- `;
242
- const _Organisation = `
243
- type Organisation {
244
- id: ID
245
- name: String
246
- logoUrl: String
247
- }
248
- `;
249
- const _AllOrganisationFields = `{id, name, logoUrl}`;
250
- exports.Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task + _TaskIdentifiers;
251
- exports.TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput + _TaskIdentifiersInput;
252
- exports.TaskFilter = _TaskFilter;
253
- exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter;
254
- exports.AllTaskFields = _AllTaskFields;
255
- exports.User = _Roles + _User;
256
- exports.UserInput = _RolesInput + _UserInput;
257
- exports.Users = exports.User + exports.UserInput;
258
- exports.AllUserFields = _AllUserFields;
259
- exports.AllRolesFields = _AllRolesFields;
260
- exports.Form = _Form;
261
- exports.FormInput = _FormInput;
262
- exports.FormFilter = _FormFilter;
263
- exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
264
- exports.AllFormFields = _AllFormFields;
265
- exports.Organisation = _Organisation;
266
- exports.OrganisationInput = _OrganisationInput;
267
- exports.Organisations = exports.Organisation + exports.OrganisationInput;
268
- exports.AllOrganisationFields = _AllOrganisationFields;
269
- exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
270
- exports.default = exports.All;
271
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG;;;;;;;;CAQnB,CAAC;AACF,MAAM,gBAAgB,GAAG;;;;;;;;CAQxB,CAAC;AAEF,MAAM,MAAM,GAAG;;;;;;;;;;;CAWd,CAAA;AAED,MAAM,WAAW,GAAG;;;;;;;;;;;CAWnB,CAAC;AAEF,MAAM,OAAO,GAAG;;;;;;;CAOf,CAAC;AAEF,MAAM,YAAY,GAAG;;;;;;;CAOpB,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;CAOrB,CAAC;AAEF,MAAM,kBAAkB,GAAG;;;;;;;CAO1B,CAAC;AAEF,MAAM,gBAAgB,G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