@nuffieldtechnologies/rugged-schema-types 0.5.1 → 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.
@@ -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,
@@ -193,6 +193,21 @@ const _Form = `
193
193
  }
194
194
  `;
195
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}`;
196
211
  const Task = _TimeStamps + _Event + _Events + _TemplateInfo + _Task;
197
212
  exports.Task = Task;
198
213
  const TaskInput = _TimeStampsInput + _EventInput + _EventsInput + _TemplateInfoInput + _TaskInput;
@@ -219,7 +234,15 @@ const Forms = Form + FormInput + FormFilter;
219
234
  exports.Forms = Forms;
220
235
  const AllFormFields = _AllFormFields;
221
236
  exports.AllFormFields = AllFormFields;
222
- const All = Tasks + Users + Forms;
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;
223
246
  exports.All = All;
224
247
  var _default = All;
225
248
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "./distribution/index.js",
6
6
  "keywords": [