@nuffieldtechnologies/rugged-schema-types 2.1.25 → 2.1.26

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
@@ -6,13 +6,13 @@ const Events = require("./schemas/events");
6
6
  const TemplateInfo = require("./schemas/template-info");
7
7
  const UserSchemas = require("./schemas/user");
8
8
  const Roles = require("./schemas/roles");
9
- const FormSchemas = require("./schemas/form");
9
+ const FormShemas = require("./schemas/form");
10
10
  const OrganisationSchemas = require("./schemas/organisation");
11
11
  const TaskIdentifiers = require("./schemas/task-identifiers");
12
12
  const TaskOldSchemas = require("./schemas/task-old");
13
13
  const TaskSchemas = require("./schemas/task");
14
- exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._WorkflowInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
- exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._WorkflowInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
14
+ exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
+ exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
16
16
  exports.TaskFilter = TaskSchemas._TaskFilter;
17
17
  exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
18
  exports.AllTaskFields = TaskSchemas._AllTaskFields;
@@ -21,11 +21,11 @@ exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
21
  exports.Users = exports.User + exports.UserInput;
22
22
  exports.AllUserFields = UserSchemas._AllUserFields;
23
23
  exports.AllRolesFields = Roles._AllRolesFields;
24
- exports.Form = FormSchemas._Form;
25
- exports.FormInput = FormSchemas._FormInput;
26
- exports.FormFilter = FormSchemas._FormFilter;
24
+ exports.Form = FormShemas._Form;
25
+ exports.FormInput = FormShemas._FormInput;
26
+ exports.FormFilter = FormShemas._FormFilter;
27
27
  exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
- exports.AllFormFields = FormSchemas._AllFormFields;
28
+ exports.AllFormFields = FormShemas._AllFormFields;
29
29
  exports.Organisation = OrganisationSchemas._Organisation;
30
30
  exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
31
  exports.Organisations = exports.Organisation + exports.OrganisationInput;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAClD,2CAA0C;AAC1C,wDAAuD;AACvD,8CAA6C;AAC7C,yCAAwC;AACxC,8CAA6C;AAC7C,8DAA6D;AAC7D,8DAA6D;AAC7D,qDAAoD;AACpD,8CAA6C;AAEhC,QAAA,IAAI,GAAG,UAAU,CAAC,WAAW,GAAI,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC,aAAa,GAAG,WAAW,CAAC,SAAS,GAAG,WAAW,CAAC,aAAa,GAAG,WAAW,CAAC,KAAK,GAAG,eAAe,CAAC,gBAAgB,CAAC;AACxM,QAAA,SAAS,GAAG,UAAU,CAAC,gBAAgB,GAAG,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC,kBAAkB,GAAG,WAAW,CAAC,cAAc,GAAG,WAAW,CAAC,kBAAkB,GAAG,WAAW,CAAC,UAAU,GAAG,eAAe,CAAC,qBAAqB,CAAC;AACpP,QAAA,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC;AACrC,QAAA,KAAK,G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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"}
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllTaskFields = exports._TaskFilter = exports._WorkflowInfoInput = exports._TaskInfoInput = exports._TaskInput = exports._WorkflowInfo = exports._TaskInfo = exports._Task = void 0;
3
+ exports._AllTaskFields = exports._TaskFilter = exports._TaskInfoInput = exports._TaskInput = exports._TaskInfo = exports._Task = void 0;
4
4
  const Events = require("./events");
5
5
  exports._Task = `
6
6
  type Task {
7
7
  collections: String
8
8
  fields: String
9
9
  info: TaskInfo
10
- workflow: WorkflowInfo
11
10
  sections: String
12
11
  }
13
12
  `;
@@ -33,19 +32,11 @@ exports._TaskInfo = `
33
32
  timestamps: TimeStamps
34
33
  }
35
34
  `;
36
- exports._WorkflowInfo = `
37
- type WorkflowInfo {
38
- step: String
39
- slug: String
40
- history: String
41
- }
42
- `;
43
35
  exports._TaskInput = `
44
36
  input TaskInput {
45
37
  collections: String
46
38
  fields: String
47
39
  info: TaskInfoInput
48
- workflow: WorkflowInfoInput
49
40
  sections: String
50
41
  }
51
42
  `;
@@ -70,13 +61,6 @@ exports._TaskInfoInput = `
70
61
  timestamps: TimeStampsInput
71
62
  }
72
63
  `;
73
- exports._WorkflowInfoInput = `
74
- input WorkflowInfoInput {
75
- step: String
76
- slug: String
77
- history: String
78
- }
79
- `;
80
64
  exports._TaskFilter = `
81
65
  input TaskFilter {
82
66
  users: [ID]
@@ -88,5 +72,5 @@ exports._TaskFilter = `
88
72
  before: String
89
73
  }
90
74
  `;
91
- exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowHistory, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded}, workflow {slug, step, history}, 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}}, sections}`;
75
+ exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowHistory, workflowStep, workflow, 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}}, sections}`;
92
76
  //# sourceMappingURL=task.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task.js","sourceRoot":"","sources":["../../schemas/task.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,KAAK,GAAG;;;;;;;;CAQpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AACW,QAAA,aAAa,GAAG;;;;;;CAM5B,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;;CAQzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;CAoB7B,CAAC;AACW,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AACW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,mSAAmS,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,kGAAkG,CAAC"}
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../schemas/task.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,KAAK,GAAG;;;;;;;CAOpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;CAOzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;CAoB7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,mQAAmQ,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,kGAAkG,CAAC"}
package/index.ts CHANGED
@@ -3,14 +3,14 @@ import * as Events from './schemas/events'
3
3
  import * as TemplateInfo from './schemas/template-info'
4
4
  import * as UserSchemas from './schemas/user'
5
5
  import * as Roles from './schemas/roles'
6
- import * as FormSchemas from './schemas/form'
6
+ import * as FormShemas from './schemas/form'
7
7
  import * as OrganisationSchemas from './schemas/organisation'
8
8
  import * as TaskIdentifiers from './schemas/task-identifiers'
9
9
  import * as TaskOldSchemas from './schemas/task-old'
10
10
  import * as TaskSchemas from './schemas/task'
11
11
 
12
- export const Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._WorkflowInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
13
- export const TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._WorkflowInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
12
+ export const Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
13
+ export const TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
14
14
  export const TaskFilter = TaskSchemas._TaskFilter;
15
15
  export const Tasks = Task + TaskInput + TaskFilter + TaskOldSchemas._TaskOld;
16
16
  export const AllTaskFields = TaskSchemas._AllTaskFields;
@@ -21,11 +21,11 @@ export const Users = User + UserInput;
21
21
  export const AllUserFields = UserSchemas._AllUserFields;
22
22
  export const AllRolesFields = Roles._AllRolesFields;
23
23
 
24
- export const Form = FormSchemas._Form;
25
- export const FormInput = FormSchemas._FormInput;
26
- export const FormFilter = FormSchemas._FormFilter;
24
+ export const Form = FormShemas._Form;
25
+ export const FormInput = FormShemas._FormInput;
26
+ export const FormFilter = FormShemas._FormFilter;
27
27
  export const Forms = Form + FormInput + FormFilter;
28
- export const AllFormFields = FormSchemas._AllFormFields;
28
+ export const AllFormFields = FormShemas._AllFormFields;
29
29
 
30
30
  export const Organisation = OrganisationSchemas._Organisation;
31
31
  export const OrganisationInput = OrganisationSchemas._OrganisationInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
package/schemas/task.ts CHANGED
@@ -5,7 +5,6 @@ export const _Task = `
5
5
  collections: String
6
6
  fields: String
7
7
  info: TaskInfo
8
- workflow: WorkflowInfo
9
8
  sections: String
10
9
  }
11
10
  `;
@@ -32,20 +31,12 @@ export const _TaskInfo = `
32
31
  timestamps: TimeStamps
33
32
  }
34
33
  `;
35
- export const _WorkflowInfo = `
36
- type WorkflowInfo {
37
- step: String
38
- slug: String
39
- history: String
40
- }
41
- `;
42
34
 
43
35
  export const _TaskInput = `
44
36
  input TaskInput {
45
37
  collections: String
46
38
  fields: String
47
39
  info: TaskInfoInput
48
- workflow: WorkflowInfoInput
49
40
  sections: String
50
41
  }
51
42
  `;
@@ -71,13 +62,7 @@ export const _TaskInfoInput = `
71
62
  timestamps: TimeStampsInput
72
63
  }
73
64
  `;
74
- export const _WorkflowInfoInput = `
75
- input WorkflowInfoInput {
76
- step: String
77
- slug: String
78
- history: String
79
- }
80
- `;
65
+
81
66
  export const _TaskFilter = `
82
67
  input TaskFilter {
83
68
  users: [ID]
@@ -90,4 +75,4 @@ export const _TaskFilter = `
90
75
  }
91
76
  `;
92
77
 
93
- export const _AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowHistory, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded}, workflow {slug, step, history}, 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}}, sections}`;
78
+ export const _AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowHistory, workflowStep, workflow, 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}}, sections}`;