@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/.eslintrc.js +18 -18
- package/README.md +0 -0
- package/dist/index.js +34 -34
- package/dist/index.js.map +0 -0
- package/dist/schemas/events.js +48 -48
- package/dist/schemas/events.js.map +0 -0
- package/dist/schemas/form.js +49 -49
- package/dist/schemas/form.js.map +0 -0
- package/dist/schemas/organisation.js +18 -18
- package/dist/schemas/organisation.js.map +0 -0
- package/dist/schemas/roles.js +21 -21
- package/dist/schemas/roles.js.map +0 -0
- package/dist/schemas/task-identifiers.js +15 -15
- package/dist/schemas/task-identifiers.js.map +0 -0
- package/dist/schemas/task-old.js +23 -23
- package/dist/schemas/task-old.js.map +0 -0
- package/dist/schemas/task.js +91 -75
- package/dist/schemas/task.js.map +1 -1
- package/dist/schemas/template-info.js +21 -21
- package/dist/schemas/template-info.js.map +0 -0
- package/dist/schemas/timestamps.js +23 -23
- package/dist/schemas/timestamps.js.map +0 -0
- package/dist/schemas/user.js +26 -26
- package/dist/schemas/user.js.map +0 -0
- package/index.ts +36 -36
- package/package.json +30 -30
- package/schemas/events.ts +48 -48
- package/schemas/form.ts +48 -48
- package/schemas/organisation.ts +16 -16
- package/schemas/roles.ts +19 -19
- package/schemas/task-identifiers.ts +12 -12
- package/schemas/task-old.ts +19 -19
- package/schemas/task.ts +93 -78
- package/schemas/template-info.ts +18 -18
- package/schemas/timestamps.ts +19 -19
- package/schemas/user.ts +25 -25
- package/tsconfig.json +11 -11
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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}`;
|
package/schemas/template-info.ts
CHANGED
|
@@ -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
|
`;
|
package/schemas/timestamps.ts
CHANGED
|
@@ -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
|
+
}
|