@nuffieldtechnologies/rugged-schema-types 2.0.0 → 2.1.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.
package/dist/index.js CHANGED
@@ -1,280 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
4
- const _TimeStamps = `
5
- type TimeStamps {
6
- started: String,
7
- updated: String,
8
- discarded: String,
9
- submitted: String,
10
- processed: String,
11
- upgraded: String
12
- }
13
- `;
14
- const _TimeStampsInput = `
15
- input TimeStampsInput {
16
- started: String,
17
- updated: String,
18
- discarded: String,
19
- submitted: String,
20
- processed: String,
21
- upgraded: String
22
- }
23
- `;
24
- const _Event = `
25
- type Event {
26
- appVersion: String,
27
- at: Float,
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: Float,
40
- atForHumans: String,
41
- device: String,
42
- deviceModel: String,
43
- osVersion: String,
44
- user: String,
45
- userEmail: String
46
- }
47
- `;
48
- const _Events = `
49
- type 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
- `;
64
- const _TemplateInfo = `
65
- type TemplateInfo {
66
- name: String,
67
- shortName: String,
68
- type: String,
69
- id: String
70
- version: String
71
- }
72
- `;
73
- const _TemplateInfoInput = `
74
- input TemplateInfoInput {
75
- name: String,
76
- shortName: String,
77
- type: String,
78
- id: String
79
- version: String
80
- }
81
- `;
82
- const _TaskIdentifiers = `
83
- type TaskIdentifiers {
84
- primary: String
85
- secondary: String
86
- }
87
- `;
88
- const _TaskIdentifiersInput = `
89
- input TaskIdentifiersInput {
90
- primary: String
91
- secondary: String
92
- }
93
- `;
94
- const _Task = `
95
- type Task {
96
- id: ID,
97
- name: String
98
- definition: String
99
- user: ID
100
- userEmail: String
101
- form: ID
102
- organisation: ID
103
- timestamps: TimeStamps
104
- events: Events
105
- template: TemplateInfo
106
- identifiers: TaskIdentifiers
107
- status: String
108
- fails: [String]
109
- reportUrl: String
110
- data: String
111
- refNo: String
112
- }
113
- `;
114
- const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
115
- 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 { name, shortName, type, id, version}, identifiers { primary, secondary}, status, fails, reportUrl, data, refNo}`;
116
- const _TaskInput = `
117
- input TaskInput {
118
- # The name of the task. TODO does this actually exist?
119
- name: String,
120
-
121
- # A short description of the task
122
- description: String
123
-
124
- # The definition of the task
125
- definition: String!,
126
-
127
- # The id of the user who submitted the task TODO is this right?
128
- user: ID
129
-
130
- # The email of the user who submitted the task
131
- userEmail: String,
132
-
133
- form: ID
134
- id: ID
135
- organisation: ID
136
- status: String
137
- fails: [String]
138
- reportUrl: String
139
- timestamps: TimeStampsInput
140
- events: EventsInput
141
- template: TemplateInfoInput
142
- identifiers: TaskIdentifiersInput
143
- data: String
144
-
145
- #A unique identifier for the task that is intended to be human-readable.
146
- refNo: String
147
- }
148
- `;
149
- const _TaskFilter = `
150
- input TaskFilter {
151
- users: [ID]
152
- userEmails: [String]
153
- forms: [ID]
154
- after: String
155
- before: String
156
- },
157
- `;
158
- const _Roles = `
159
- type Roles {
160
- user: Boolean
161
- admin: Boolean
162
- api: Boolean
163
- uber: Boolean
164
- super: Boolean
165
- legacyPush: Boolean
166
- }
167
- `;
168
- const _RolesInput = `
169
- input RolesInput {
170
- user: Boolean
171
- admin: Boolean
172
- api: Boolean
173
- }
174
- `;
175
- const _User = `
176
- type User {
177
- id: ID
178
- organisation: ID
179
- firebaseId: ID
180
- name: String
181
- email: String
182
- roles: Roles
183
- permissions: String
184
- }
185
- `;
186
- const _UserInput = `
187
- input UserInput {
188
- id: ID
189
- organisation: ID
190
- firebaseId: ID
191
- name: String
192
- email: String
193
- roles: RolesInput
194
- }
195
- `;
196
- const _AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
197
- const _AllUserFields = `{id, organisation, name, email, roles ${_AllRolesFields}, permissions}`;
198
- const _FormInput = `
199
-
200
- input ParamInput {
201
- name: String
202
- value: String
203
- }
204
-
205
- input FormInput {
206
- id: ID
207
- name: String
208
- key: String
209
- definition: String
210
- version: String
211
- status: String
212
- updated: String
213
- params: [ParamInput]
214
- resources: String
215
- body: String
216
- }
217
- `;
218
- const _FormFilter = `
219
- input FormFilter {
220
- status: String
221
- }
222
- `;
223
- const _Form = `
224
-
225
- type Param {
226
- name: String
227
- value: String
228
- }
229
-
230
- type Form {
231
- id: ID
232
- name: String
233
- key: String
234
- definition: String
235
- version: String
236
- status: String
237
- updated: String
238
- params: [Param]
239
- resources: String
240
- body: String
241
- }
242
- `;
243
- const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
244
- const _OrganisationInput = `
245
- input OrganisationInput {
246
- id: ID
247
- name: String
248
- logoUrl: String
249
- }
250
- `;
251
- const _Organisation = `
252
- type Organisation {
253
- id: ID
254
- name: String
255
- logoUrl: String
256
- }
257
- `;
258
- const _AllOrganisationFields = `{id, name, logoUrl}`;
259
- exports.Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task + _TaskIdentifiers;
260
- exports.TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput + _TaskIdentifiersInput;
261
- exports.TaskFilter = _TaskFilter;
262
- exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter;
263
- exports.AllTaskFields = _AllTaskFields;
264
- exports.User = _Roles + _User;
265
- exports.UserInput = _RolesInput + _UserInput;
4
+ const TimeStamps = require("./schemas/timestamps");
5
+ const Events = require("./schemas/events");
6
+ const TemplateInfo = require("./schemas/template-info");
7
+ const UserSchemas = require("./schemas/user");
8
+ const Roles = require("./schemas/roles");
9
+ const FormShemas = require("./schemas/form");
10
+ const OrganisationSchemas = require("./schemas/organisation");
11
+ const TaskIdentifiers = require("./schemas/task-identifiers");
12
+ const TaskOldSchemas = require("./schemas/task-old");
13
+ const TaskSchemas = require("./schemas/task");
14
+ exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
+ exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
16
+ exports.TaskFilter = TaskSchemas._TaskFilter;
17
+ exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld + TaskSchemas._TaskInfo + TaskSchemas._TaskInfoInput;
18
+ exports.AllTaskFields = TaskSchemas._AllTaskFields;
19
+ exports.User = Roles._Roles + UserSchemas._User;
20
+ exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
266
21
  exports.Users = exports.User + exports.UserInput;
267
- exports.AllUserFields = _AllUserFields;
268
- exports.AllRolesFields = _AllRolesFields;
269
- exports.Form = _Form;
270
- exports.FormInput = _FormInput;
271
- exports.FormFilter = _FormFilter;
22
+ exports.AllUserFields = UserSchemas._AllUserFields;
23
+ exports.AllRolesFields = Roles._AllRolesFields;
24
+ exports.Form = FormShemas._Form;
25
+ exports.FormInput = FormShemas._FormInput;
26
+ exports.FormFilter = FormShemas._FormFilter;
272
27
  exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
273
- exports.AllFormFields = _AllFormFields;
274
- exports.Organisation = _Organisation;
275
- exports.OrganisationInput = _OrganisationInput;
28
+ exports.AllFormFields = FormShemas._AllFormFields;
29
+ exports.Organisation = OrganisationSchemas._Organisation;
30
+ exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
276
31
  exports.Organisations = exports.Organisation + exports.OrganisationInput;
277
- exports.AllOrganisationFields = _AllOrganisationFields;
32
+ exports.AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
278
33
  exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
279
34
  exports.default = exports.All;
280
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,MAAM,WAAW,GAAG;;;;;;;;;CASnB,CAAC;AACF,MAAM,gBAAgB,GAAG;;;;;;;;;CASxB,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;;;;;;;;CAQrB,CAAC;AAEF,MAAM,kBAAkB,GAAG;;;;;;;;CAQ1B,CAAC;AAEF,MAAM,gBAAgB,GAAG;;;;;CAKxB,CAAC;AAEF,MAAM,qBAAqB,GAAG;;;;;CAK7B,CAAC;AAEF,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;CAmBb,CAAC;AAEF,MAAM,eAAe,GAAG,gFAAgF,CAAC;AAEzG,MAAM,cAAc,GAAG,iJAAiJ,eAAe,aAAa,eAAe,eAAe,eAAe,eAAe,eAAe,+HAA+H,CAAC;AAE/Y,MAAM,UAAU,GAAG;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AAC,cAAc,CAAC;AACrH,QAAA,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC;AAE3C,QAAA,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC;AACxC,QAAA,SAAS,GAAG,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC;AACvD,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,CAAC;AACzB,QAAA,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC;AAC3C,QAAA,cAAc,GAAG,KAAK,CAAC,eAAe,CAAC;AAEvC,QAAA,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC;AACxB,QAAA,SAAS,GAAG,UAAU,CAAC,UAAU,CAAC;AAClC,QAAA,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC;AACpC,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,GAAG,kBAAU,CAAC;AACtC,QAAA,aAAa,GAAG,UAAU,CAAC,cAAc,CAAC;AAE1C,QAAA,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC;AACjD,QAAA,iBAAiB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC3D,QAAA,aAAa,GAAG,oBAAY,GAAG,yBAAiB,CAAC;AACjD,QAAA,qBAAqB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC;AAEnE,QAAA,GAAG,GAAG,aAAK,GAAG,aAAK,GAAG,aAAK,GAAG,qBAAa,CAAC;AACzD,kBAAe,WAAG,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
4
+ exports._Event = `
5
+ type Event {
6
+ appVersion: String,
7
+ at: Float,
8
+ atForHumans: String,
9
+ device: String,
10
+ deviceModel: String,
11
+ osVersion: String,
12
+ user: String,
13
+ userEmail: String
14
+ }
15
+ `;
16
+ exports._EventInput = `
17
+ input EventInput {
18
+ appVersion: String,
19
+ at: Float,
20
+ atForHumans: String,
21
+ device: String,
22
+ deviceModel: String,
23
+ osVersion: String,
24
+ user: String,
25
+ userEmail: String
26
+ }
27
+ `;
28
+ exports._Events = `
29
+ type Events {
30
+ started: Event,
31
+ updated: Event,
32
+ upgraded: Event,
33
+ processed: Event,
34
+ submitted: Event,
35
+ discarded: Event,
36
+ }
37
+ `;
38
+ exports._EventsInput = `
39
+ input EventsInput {
40
+ started: EventInput,
41
+ updated: EventInput,
42
+ upgraded: EventInput,
43
+ processed: EventInput,
44
+ submitted: EventInput,
45
+ discarded: EventInput,
46
+ }
47
+ `;
48
+ exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
49
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../schemas/events.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;;;;;;;;;;;CAWrB,CAAA;AAEY,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,OAAO,GAAG;;;;;;;;;CAStB,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;CAS3B,CAAC;AAEW,QAAA,eAAe,GAAG,gFAAgF,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
4
+ exports._FormInput = `
5
+
6
+ input ParamInput {
7
+ name: String
8
+ value: String
9
+ }
10
+
11
+ input FormInput {
12
+ id: ID
13
+ name: String
14
+ key: String
15
+ definition: String
16
+ version: String
17
+ status: String
18
+ updated: String
19
+ params: [ParamInput]
20
+ resources: String
21
+ body: String
22
+ }
23
+ `;
24
+ exports._Form = `
25
+
26
+ type Param {
27
+ name: String
28
+ value: String
29
+ }
30
+
31
+ type Form {
32
+ id: ID
33
+ name: String
34
+ key: String
35
+ definition: String
36
+ version: String
37
+ status: String
38
+ updated: String
39
+ params: [Param]
40
+ resources: String
41
+ body: String
42
+ }
43
+ `;
44
+ exports._FormFilter = `
45
+ input FormFilter {
46
+ status: String
47
+ }
48
+ `;
49
+ exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
50
+ //# sourceMappingURL=form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.js","sourceRoot":"","sources":["../../schemas/form.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAEW,QAAA,KAAK,GAAG;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEW,QAAA,WAAW,GAAG;;;;CAI1B,CAAC;AAEW,QAAA,cAAc,GAAG,sFAAsF,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
4
+ exports._OrganisationInput = `
5
+ input OrganisationInput {
6
+ id: ID
7
+ name: String
8
+ logoUrl: String
9
+ }
10
+ `;
11
+ exports._Organisation = `
12
+ type Organisation {
13
+ id: ID
14
+ name: String
15
+ logoUrl: String
16
+ }
17
+ `;
18
+ exports._AllOrganisationFields = `{id, name, logoUrl}`;
19
+ //# sourceMappingURL=organisation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organisation.js","sourceRoot":"","sources":["../../schemas/organisation.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;CAM5B,CAAC;AAEW,QAAA,sBAAsB,GAAG,qBAAqB,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
4
+ exports._Roles = `
5
+ type Roles {
6
+ user: Boolean
7
+ admin: Boolean
8
+ api: Boolean
9
+ uber: Boolean
10
+ super: Boolean
11
+ legacyPush: Boolean
12
+ }
13
+ `;
14
+ exports._RolesInput = `
15
+ input RolesInput {
16
+ user: Boolean
17
+ admin: Boolean
18
+ api: Boolean
19
+ }
20
+ `;
21
+ exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
22
+ //# sourceMappingURL=roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../schemas/roles.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;;;;;;;;;CASrB,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;CAM1B,CAAC;AAEW,QAAA,eAAe,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
+ exports._TaskIdentifiers = `
5
+ type TaskIdentifiers {
6
+ primary: String
7
+ secondary: String
8
+ }
9
+ `;
10
+ exports._TaskIdentifiersInput = `
11
+ input TaskIdentifiersInput {
12
+ primary: String
13
+ secondary: String
14
+ }
15
+ `;
16
+ //# sourceMappingURL=task-identifiers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-identifiers.js","sourceRoot":"","sources":["../../schemas/task-identifiers.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;CAK/B,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;;CAKpC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskOld = void 0;
4
+ exports._TaskOld = `
5
+ type Task {
6
+ id: ID,
7
+ name: String
8
+ definition: String
9
+ user: ID
10
+ userEmail: String
11
+ form: ID
12
+ organisation: ID
13
+ timestamps: TimeStamps
14
+ events: Events
15
+ template: TemplateInfo
16
+ identifiers: TaskIdentifiers
17
+ status: String
18
+ fails: [String]
19
+ reportUrl: String
20
+ data: String
21
+ refNo: String
22
+ }
23
+ `;
24
+ //# sourceMappingURL=task-old.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-old.js","sourceRoot":"","sources":["../../schemas/task-old.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;CAmBvB,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllTaskFields = exports._TaskFilter = exports._TaskInfoInput = exports._TaskInput = exports._TaskInfo = exports._Task = void 0;
4
+ const Events = require("./events");
5
+ exports._Task = `
6
+ type Task {
7
+ collections: String
8
+ fields: String
9
+ info: TaskInfo
10
+ }
11
+ `;
12
+ exports._TaskInfo = `
13
+ type TaskInfo {
14
+ status: string
15
+ rootEntityId: string
16
+ id: string
17
+ refNo: number
18
+ name: string
19
+ events: Events
20
+ identifiers: TaskIdentifiers
21
+ template: TemplateInfo
22
+ userIds: String
23
+ users: String
24
+ timestamps: TimeStamps
25
+ }
26
+ `;
27
+ exports._TaskInput = `
28
+ input TaskInput {
29
+ collections: String
30
+ fields: String
31
+ info: TaskInfoInput
32
+ }
33
+ `;
34
+ exports._TaskInfoInput = `
35
+ input TaskInfoInput {
36
+ status: string
37
+ rootEntityId: string
38
+ id: string
39
+ refNo: number
40
+ name: string
41
+ events: EventInput
42
+ identifiers: TaskIdentifiersInput
43
+ template: TemplateInfoInput
44
+ userIds: String
45
+ users: String
46
+ timestamps: TimeStampsInput
47
+ }
48
+ `;
49
+ exports._TaskFilter = `
50
+ input TaskFilter {
51
+ users: [ID]
52
+ userEmails: [String]
53
+ forms: [ID]
54
+ after: String
55
+ before: String
56
+ },
57
+ `;
58
+ exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, refNo, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}}`;
59
+ //# sourceMappingURL=task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../schemas/task.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,KAAK,GAAG;;;;;;CAMpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;CAcxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;CAMzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;CAc7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;CAQ1B,CAAC;AAEW,QAAA,cAAc,GAAG,0KAA0K,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,wFAAwF,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TemplateInfoInput = exports._TemplateInfo = void 0;
4
+ exports._TemplateInfo = `
5
+ type TemplateInfo {
6
+ name: String,
7
+ shortName: String,
8
+ type: String,
9
+ id: String
10
+ version: String
11
+ }
12
+ `;
13
+ exports._TemplateInfoInput = `
14
+ input TemplateInfoInput {
15
+ name: String,
16
+ shortName: String,
17
+ type: String,
18
+ id: String
19
+ version: String
20
+ }
21
+ `;
22
+ //# sourceMappingURL=template-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-info.js","sourceRoot":"","sources":["../../schemas/template-info.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;;;;;;;;CAQ5B,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;;;CAQjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TimeStampsInput = exports._TimeStamps = void 0;
4
+ exports._TimeStamps = `
5
+ type TimeStamps {
6
+ started: String,
7
+ updated: String,
8
+ discarded: String,
9
+ submitted: String,
10
+ processed: String,
11
+ upgraded: String
12
+ }
13
+ `;
14
+ exports._TimeStampsInput = `
15
+ input TimeStampsInput {
16
+ started: String,
17
+ updated: String,
18
+ discarded: String,
19
+ submitted: String,
20
+ processed: String,
21
+ upgraded: String
22
+ }
23
+ `;
24
+ //# sourceMappingURL=timestamps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamps.js","sourceRoot":"","sources":["../../schemas/timestamps.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;;;;;;;;;CAS1B,CAAC;AACW,QAAA,gBAAgB,GAAG;;;;;;;;;CAS/B,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
+ const Roles = require("./roles");
5
+ exports._User = `
6
+ type User {
7
+ id: ID
8
+ organisation: ID
9
+ firebaseId: ID
10
+ name: String
11
+ email: String
12
+ roles: Roles
13
+ permissions: String
14
+ }
15
+ `;
16
+ exports._UserInput = `
17
+ input UserInput {
18
+ id: ID
19
+ organisation: ID
20
+ firebaseId: ID
21
+ name: String
22
+ email: String
23
+ roles: RolesInput
24
+ }
25
+ `;
26
+ exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
27
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../schemas/user.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAEnB,QAAA,KAAK,GAAG;;;;;;;;;;CAUpB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;;;CASzB,CAAC;AAEW,QAAA,cAAc,GAAG,yCAAyC,KAAK,CAAC,eAAe,gBAAgB,CAAC"}