@nuffieldtechnologies/rugged-schema-types 2.1.21 → 2.1.23

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/schemas/task.ts CHANGED
@@ -1,78 +1,93 @@
1
- import * as Events from './events'
2
-
3
- export const _Task = `
4
- type Task {
5
- collections: String
6
- fields: String
7
- info: TaskInfo
8
- sections: String
9
- }
10
- `;
11
-
12
- export const _TaskInfo = `
13
- type TaskInfo {
14
- status: String
15
- statusBeforeEdit: String
16
- rootEntityId: String
17
- rootEntityName: String
18
- rootEntityAncestry: String
19
- id: String
20
- refNo: String
21
- tags: String
22
- workflowStep: String
23
- workflow: String
24
- workflowHistory: String
25
- name: String
26
- events: Events
27
- identifiers: TaskIdentifiers
28
- template: TemplateInfo
29
- userIds: String
30
- users: String
31
- timestamps: TimeStamps
32
- }
33
- `;
34
-
35
- export const _TaskInput = `
36
- input TaskInput {
37
- collections: String
38
- fields: String
39
- info: TaskInfoInput
40
- sections: String
41
- }
42
- `;
43
-
44
- export const _TaskInfoInput = `
45
- input TaskInfoInput {
46
- status: String
47
- statusBeforeEdit: String
48
- rootEntityId: String
49
- rootEntityAncestry: String
50
- id: String
51
- refNo: String
52
- tags: String
53
- workflowStep: String
54
- workflow: String
55
- workflowHistory: String
56
- name: String
57
- events: EventsInput
58
- identifiers: TaskIdentifiersInput
59
- template: TemplateInfoInput
60
- userIds: String
61
- users: String
62
- timestamps: TimeStampsInput
63
- }
64
- `;
65
-
66
- export const _TaskFilter = `
67
- input TaskFilter {
68
- users: [ID]
69
- userEmails: [String]
70
- rootEntityIds: [String]
71
- entityIds: [String]
72
- forms: [ID]
73
- after: String
74
- before: String
75
- }
76
- `;
77
-
78
- export const _AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, 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}`;
1
+ import * as Events from './events'
2
+
3
+ export const _Task = `
4
+ type Task {
5
+ collections: String
6
+ fields: String
7
+ info: TaskInfo
8
+ workflow: WorkflowInfo
9
+ sections: String
10
+ }
11
+ `;
12
+
13
+ export const _TaskInfo = `
14
+ type TaskInfo {
15
+ status: String
16
+ statusBeforeEdit: String
17
+ rootEntityId: String
18
+ rootEntityName: String
19
+ rootEntityAncestry: String
20
+ id: String
21
+ refNo: String
22
+ tags: String
23
+ workflowStep: String
24
+ workflow: String
25
+ workflowHistory: String
26
+ name: String
27
+ events: Events
28
+ identifiers: TaskIdentifiers
29
+ template: TemplateInfo
30
+ userIds: String
31
+ users: String
32
+ timestamps: TimeStamps
33
+ }
34
+ `;
35
+ export const _WorkflowInfo = `
36
+ type WorkflowInfo {
37
+ step: String
38
+ slug: String
39
+ history: String
40
+ }
41
+ `;
42
+
43
+ export const _TaskInput = `
44
+ input TaskInput {
45
+ collections: String
46
+ fields: String
47
+ info: TaskInfoInput
48
+ workflow: WorkflowInfoInput
49
+ sections: String
50
+ }
51
+ `;
52
+
53
+ export const _TaskInfoInput = `
54
+ input TaskInfoInput {
55
+ status: String
56
+ statusBeforeEdit: String
57
+ rootEntityId: String
58
+ rootEntityAncestry: String
59
+ id: String
60
+ refNo: String
61
+ tags: String
62
+ workflowStep: String
63
+ workflow: String
64
+ workflowHistory: String
65
+ name: String
66
+ events: EventsInput
67
+ identifiers: TaskIdentifiersInput
68
+ template: TemplateInfoInput
69
+ userIds: String
70
+ users: String
71
+ timestamps: TimeStampsInput
72
+ }
73
+ `;
74
+ export const _WorkflowInfoInput = `
75
+ input WorkflowInfoInput {
76
+ step: String
77
+ slug: String
78
+ history: String
79
+ }
80
+ `;
81
+ export const _TaskFilter = `
82
+ input TaskFilter {
83
+ users: [ID]
84
+ userEmails: [String]
85
+ rootEntityIds: [String]
86
+ entityIds: [String]
87
+ forms: [ID]
88
+ after: String
89
+ before: String
90
+ }
91
+ `;
92
+
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}`;
@@ -1,19 +1,19 @@
1
- export const _TemplateInfo = `
2
- type TemplateInfo {
3
- name: String,
4
- shortName: String,
5
- type: String,
6
- id: String
7
- version: String
8
- }
9
- `;
10
-
11
- export const _TemplateInfoInput = `
12
- input TemplateInfoInput {
13
- name: String,
14
- shortName: String,
15
- type: String,
16
- id: String
17
- version: String
18
- }
1
+ export const _TemplateInfo = `
2
+ type TemplateInfo {
3
+ name: String,
4
+ shortName: String,
5
+ type: String,
6
+ id: String
7
+ version: String
8
+ }
9
+ `;
10
+
11
+ export const _TemplateInfoInput = `
12
+ input TemplateInfoInput {
13
+ name: String,
14
+ shortName: String,
15
+ type: String,
16
+ id: String
17
+ version: String
18
+ }
19
19
  `;
@@ -1,20 +1,20 @@
1
- export const _TimeStamps = `
2
- type TimeStamps {
3
- started: String,
4
- updated: String,
5
- discarded: String,
6
- submitted: String,
7
- processed: String,
8
- upgraded: String
9
- }
10
- `;
11
- export const _TimeStampsInput = `
12
- input TimeStampsInput {
13
- started: String,
14
- updated: String,
15
- discarded: String,
16
- submitted: String,
17
- processed: String,
18
- upgraded: String
19
- }
1
+ export const _TimeStamps = `
2
+ type TimeStamps {
3
+ started: String,
4
+ updated: String,
5
+ discarded: String,
6
+ submitted: String,
7
+ processed: String,
8
+ upgraded: String
9
+ }
10
+ `;
11
+ export const _TimeStampsInput = `
12
+ input TimeStampsInput {
13
+ started: String,
14
+ updated: String,
15
+ discarded: String,
16
+ submitted: String,
17
+ processed: String,
18
+ upgraded: String
19
+ }
20
20
  `;
package/schemas/user.ts CHANGED
@@ -1,26 +1,26 @@
1
- import * as Roles from './roles'
2
-
3
- export const _User = `
4
- type User {
5
- id: ID
6
- organisation: ID
7
- firebaseId: ID
8
- name: String
9
- email: String
10
- roles: Roles
11
- permissions: String
12
- }
13
- `;
14
-
15
- export const _UserInput = `
16
- input UserInput {
17
- id: ID
18
- organisation: ID
19
- firebaseId: ID
20
- name: String
21
- email: String
22
- roles: RolesInput
23
- }
24
- `;
25
-
1
+ import * as Roles from './roles'
2
+
3
+ export const _User = `
4
+ type User {
5
+ id: ID
6
+ organisation: ID
7
+ firebaseId: ID
8
+ name: String
9
+ email: String
10
+ roles: Roles
11
+ permissions: String
12
+ }
13
+ `;
14
+
15
+ export const _UserInput = `
16
+ input UserInput {
17
+ id: ID
18
+ organisation: ID
19
+ firebaseId: ID
20
+ name: String
21
+ email: String
22
+ roles: RolesInput
23
+ }
24
+ `;
25
+
26
26
  export const _AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
package/tsconfig.json CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["es6","esnext.asynciterable"],
4
- "module": "commonjs",
5
- "noImplicitReturns": true,
6
- "outDir": "dist",
7
- "sourceMap": true,
8
- "target": "es6"
9
- },
10
- "compileOnSave": true
11
- }
1
+ {
2
+ "compilerOptions": {
3
+ "lib": ["es6","esnext.asynciterable"],
4
+ "module": "commonjs",
5
+ "noImplicitReturns": true,
6
+ "outDir": "dist",
7
+ "sourceMap": true,
8
+ "target": "es6"
9
+ },
10
+ "compileOnSave": true
11
+ }