@nuffieldtechnologies/rugged-schema-types 2.1.23 → 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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "2.1.23",
3
+ "version": "2.1.26",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
@@ -22,7 +22,7 @@
22
22
  "license": "UNLICENSED",
23
23
  "scripts": {
24
24
  "test": "echo \"Error: no test specified\" && exit 1",
25
- "lint": "eslint \"./**/*\"",
25
+ "lint": "eslint \"./**/*.ts\"",
26
26
  "prebuild": "npm run lint",
27
27
  "build": "tsc",
28
28
  "push": "npm run build && npm publish"
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}`;