@nuffieldtechnologies/rugged-schema-types 0.5.0 → 0.6.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/distribution/index.js +25 -4
- package/package.json +1 -1
package/distribution/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.All = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllUserFields = exports.Users = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
|
|
6
|
+
exports.default = exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllUserFields = exports.Users = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
|
|
7
7
|
const _TimeStamps = `
|
|
8
8
|
type TimeStamps {
|
|
9
9
|
started: String,
|
|
@@ -100,8 +100,6 @@ const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVe
|
|
|
100
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}`;
|
|
101
101
|
const _TaskInput = `
|
|
102
102
|
input TaskInput {
|
|
103
|
-
id : String,
|
|
104
|
-
|
|
105
103
|
# The name of the task. TODO does this actually exist?
|
|
106
104
|
name: String,
|
|
107
105
|
|
|
@@ -195,6 +193,21 @@ const _Form = `
|
|
|
195
193
|
}
|
|
196
194
|
`;
|
|
197
195
|
const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
|
|
196
|
+
const _OrganisationInput = `
|
|
197
|
+
input Organisation {
|
|
198
|
+
id: ID
|
|
199
|
+
name: String
|
|
200
|
+
logoUrl: String
|
|
201
|
+
}
|
|
202
|
+
`;
|
|
203
|
+
const _Organisation = `
|
|
204
|
+
type Organisation {
|
|
205
|
+
id: ID
|
|
206
|
+
name: String
|
|
207
|
+
logoUrl: String
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
const _AllOrganisationFields = `{id, name, logoUrl}`;
|
|
198
211
|
const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task;
|
|
199
212
|
exports.Task = Task;
|
|
200
213
|
const TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput;
|
|
@@ -221,7 +234,15 @@ const Forms = Form + FormInput + FormFilter;
|
|
|
221
234
|
exports.Forms = Forms;
|
|
222
235
|
const AllFormFields = _AllFormFields;
|
|
223
236
|
exports.AllFormFields = AllFormFields;
|
|
224
|
-
const
|
|
237
|
+
const Organisation = _Organisation;
|
|
238
|
+
exports.Organisation = Organisation;
|
|
239
|
+
const OrganisationInput = _OrganisationInput;
|
|
240
|
+
exports.OrganisationInput = OrganisationInput;
|
|
241
|
+
const Organisations = Organisation + OrganisationInput;
|
|
242
|
+
exports.Organisations = Organisations;
|
|
243
|
+
const AllOrganisationFields = _AllOrganisationFields;
|
|
244
|
+
exports.AllOrganisationFields = AllOrganisationFields;
|
|
245
|
+
const All = Tasks + Users + Forms + Organisations;
|
|
225
246
|
exports.All = All;
|
|
226
247
|
var _default = All;
|
|
227
248
|
exports.default = _default;
|