@nuffieldtechnologies/rugged-schema-types 2.1.22 → 2.1.25

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,76 +1,92 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllTaskFields = exports._TaskFilter = exports._TaskInfoInput = exports._TaskInput = exports._TaskInfo = exports._Task = void 0;
4
- const Events = require("./events");
5
- exports._Task = `
6
- type Task {
7
- collections: String
8
- fields: String
9
- info: TaskInfo
10
- sections: String
11
- }
12
- `;
13
- exports._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
- exports._TaskInput = `
36
- input TaskInput {
37
- collections: String
38
- fields: String
39
- info: TaskInfoInput
40
- sections: String
41
- }
42
- `;
43
- exports._TaskInfoInput = `
44
- input TaskInfoInput {
45
- status: String
46
- statusBeforeEdit: String
47
- rootEntityId: String
48
- rootEntityAncestry: String
49
- id: String
50
- refNo: String
51
- tags: String
52
- workflowStep: String
53
- workflow: String
54
- workflowHistory: String
55
- name: String
56
- events: EventsInput
57
- identifiers: TaskIdentifiersInput
58
- template: TemplateInfoInput
59
- userIds: String
60
- users: String
61
- timestamps: TimeStampsInput
62
- }
63
- `;
64
- exports._TaskFilter = `
65
- input TaskFilter {
66
- users: [ID]
67
- userEmails: [String]
68
- rootEntityIds: [String]
69
- entityIds: [String]
70
- forms: [ID]
71
- after: String
72
- before: String
73
- }
74
- `;
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}`;
1
+ "use strict";
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;
4
+ const Events = require("./events");
5
+ exports._Task = `
6
+ type Task {
7
+ collections: String
8
+ fields: String
9
+ info: TaskInfo
10
+ workflow: WorkflowInfo
11
+ sections: String
12
+ }
13
+ `;
14
+ exports._TaskInfo = `
15
+ type TaskInfo {
16
+ status: String
17
+ statusBeforeEdit: String
18
+ rootEntityId: String
19
+ rootEntityName: String
20
+ rootEntityAncestry: String
21
+ id: String
22
+ refNo: String
23
+ tags: String
24
+ workflowStep: String
25
+ workflow: String
26
+ workflowHistory: String
27
+ name: String
28
+ events: Events
29
+ identifiers: TaskIdentifiers
30
+ template: TemplateInfo
31
+ userIds: String
32
+ users: String
33
+ timestamps: TimeStamps
34
+ }
35
+ `;
36
+ exports._WorkflowInfo = `
37
+ type WorkflowInfo {
38
+ step: String
39
+ slug: String
40
+ history: String
41
+ }
42
+ `;
43
+ exports._TaskInput = `
44
+ input TaskInput {
45
+ collections: String
46
+ fields: String
47
+ info: TaskInfoInput
48
+ workflow: WorkflowInfoInput
49
+ sections: String
50
+ }
51
+ `;
52
+ exports._TaskInfoInput = `
53
+ input TaskInfoInput {
54
+ status: String
55
+ statusBeforeEdit: String
56
+ rootEntityId: String
57
+ rootEntityAncestry: String
58
+ id: String
59
+ refNo: String
60
+ tags: String
61
+ workflowStep: String
62
+ workflow: String
63
+ workflowHistory: String
64
+ name: String
65
+ events: EventsInput
66
+ identifiers: TaskIdentifiersInput
67
+ template: TemplateInfoInput
68
+ userIds: String
69
+ users: String
70
+ timestamps: TimeStampsInput
71
+ }
72
+ `;
73
+ exports._WorkflowInfoInput = `
74
+ input WorkflowInfoInput {
75
+ step: String
76
+ slug: String
77
+ history: String
78
+ }
79
+ `;
80
+ exports._TaskFilter = `
81
+ input TaskFilter {
82
+ users: [ID]
83
+ userEmails: [String]
84
+ rootEntityIds: [String]
85
+ entityIds: [String]
86
+ forms: [ID]
87
+ after: String
88
+ before: String
89
+ }
90
+ `;
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}`;
76
92
  //# 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;;;;;;;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"}
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,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TemplateInfoInput = exports._TemplateInfo = void 0;
4
- exports._TemplateInfo = `
5
- type TemplateInfo {
6
- name: String,
7
- shortName: String,
8
- type: String,
9
- id: String
10
- version: String
11
- }
12
- `;
13
- exports._TemplateInfoInput = `
14
- input TemplateInfoInput {
15
- name: String,
16
- shortName: String,
17
- type: String,
18
- id: String
19
- version: String
20
- }
21
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TemplateInfoInput = exports._TemplateInfo = void 0;
4
+ exports._TemplateInfo = `
5
+ type TemplateInfo {
6
+ name: String,
7
+ shortName: String,
8
+ type: String,
9
+ id: String
10
+ version: String
11
+ }
12
+ `;
13
+ exports._TemplateInfoInput = `
14
+ input TemplateInfoInput {
15
+ name: String,
16
+ shortName: String,
17
+ type: String,
18
+ id: String
19
+ version: String
20
+ }
21
+ `;
22
22
  //# sourceMappingURL=template-info.js.map
File without changes
@@ -1,24 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TimeStampsInput = exports._TimeStamps = void 0;
4
- exports._TimeStamps = `
5
- type TimeStamps {
6
- started: String,
7
- updated: String,
8
- discarded: String,
9
- submitted: String,
10
- processed: String,
11
- upgraded: String
12
- }
13
- `;
14
- exports._TimeStampsInput = `
15
- input TimeStampsInput {
16
- started: String,
17
- updated: String,
18
- discarded: String,
19
- submitted: String,
20
- processed: String,
21
- upgraded: String
22
- }
23
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TimeStampsInput = exports._TimeStamps = void 0;
4
+ exports._TimeStamps = `
5
+ type TimeStamps {
6
+ started: String,
7
+ updated: String,
8
+ discarded: String,
9
+ submitted: String,
10
+ processed: String,
11
+ upgraded: String
12
+ }
13
+ `;
14
+ exports._TimeStampsInput = `
15
+ input TimeStampsInput {
16
+ started: String,
17
+ updated: String,
18
+ discarded: String,
19
+ submitted: String,
20
+ processed: String,
21
+ upgraded: String
22
+ }
23
+ `;
24
24
  //# sourceMappingURL=timestamps.js.map
File without changes
@@ -1,27 +1,27 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
- const Roles = require("./roles");
5
- exports._User = `
6
- type User {
7
- id: ID
8
- organisation: ID
9
- firebaseId: ID
10
- name: String
11
- email: String
12
- roles: Roles
13
- permissions: String
14
- }
15
- `;
16
- exports._UserInput = `
17
- input UserInput {
18
- id: ID
19
- organisation: ID
20
- firebaseId: ID
21
- name: String
22
- email: String
23
- roles: RolesInput
24
- }
25
- `;
26
- exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
+ const Roles = require("./roles");
5
+ exports._User = `
6
+ type User {
7
+ id: ID
8
+ organisation: ID
9
+ firebaseId: ID
10
+ name: String
11
+ email: String
12
+ roles: Roles
13
+ permissions: String
14
+ }
15
+ `;
16
+ exports._UserInput = `
17
+ input UserInput {
18
+ id: ID
19
+ organisation: ID
20
+ firebaseId: ID
21
+ name: String
22
+ email: String
23
+ roles: RolesInput
24
+ }
25
+ `;
26
+ exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
27
27
  //# sourceMappingURL=user.js.map
File without changes
package/index.ts CHANGED
@@ -1,36 +1,36 @@
1
- import * as TimeStamps from './schemas/timestamps'
2
- import * as Events from './schemas/events'
3
- import * as TemplateInfo from './schemas/template-info'
4
- import * as UserSchemas from './schemas/user'
5
- import * as Roles from './schemas/roles'
6
- import * as FormShemas from './schemas/form'
7
- import * as OrganisationSchemas from './schemas/organisation'
8
- import * as TaskIdentifiers from './schemas/task-identifiers'
9
- import * as TaskOldSchemas from './schemas/task-old'
10
- import * as TaskSchemas from './schemas/task'
11
-
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
- export const TaskFilter = TaskSchemas._TaskFilter;
15
- export const Tasks = Task + TaskInput + TaskFilter + TaskOldSchemas._TaskOld;
16
- export const AllTaskFields = TaskSchemas._AllTaskFields;
17
-
18
- export const User = Roles._Roles + UserSchemas._User;
19
- export const UserInput = Roles._RolesInput + UserSchemas._UserInput;
20
- export const Users = User + UserInput;
21
- export const AllUserFields = UserSchemas._AllUserFields;
22
- export const AllRolesFields = Roles._AllRolesFields;
23
-
24
- export const Form = FormShemas._Form;
25
- export const FormInput = FormShemas._FormInput;
26
- export const FormFilter = FormShemas._FormFilter;
27
- export const Forms = Form + FormInput + FormFilter;
28
- export const AllFormFields = FormShemas._AllFormFields;
29
-
30
- export const Organisation = OrganisationSchemas._Organisation;
31
- export const OrganisationInput = OrganisationSchemas._OrganisationInput;
32
- export const Organisations = Organisation + OrganisationInput;
33
- export const AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
34
-
35
- export const All = Tasks + Users + Forms + Organisations;
36
- export default All;
1
+ import * as TimeStamps from './schemas/timestamps'
2
+ import * as Events from './schemas/events'
3
+ import * as TemplateInfo from './schemas/template-info'
4
+ import * as UserSchemas from './schemas/user'
5
+ import * as Roles from './schemas/roles'
6
+ import * as FormSchemas from './schemas/form'
7
+ import * as OrganisationSchemas from './schemas/organisation'
8
+ import * as TaskIdentifiers from './schemas/task-identifiers'
9
+ import * as TaskOldSchemas from './schemas/task-old'
10
+ import * as TaskSchemas from './schemas/task'
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;
14
+ export const TaskFilter = TaskSchemas._TaskFilter;
15
+ export const Tasks = Task + TaskInput + TaskFilter + TaskOldSchemas._TaskOld;
16
+ export const AllTaskFields = TaskSchemas._AllTaskFields;
17
+
18
+ export const User = Roles._Roles + UserSchemas._User;
19
+ export const UserInput = Roles._RolesInput + UserSchemas._UserInput;
20
+ export const Users = User + UserInput;
21
+ export const AllUserFields = UserSchemas._AllUserFields;
22
+ export const AllRolesFields = Roles._AllRolesFields;
23
+
24
+ export const Form = FormSchemas._Form;
25
+ export const FormInput = FormSchemas._FormInput;
26
+ export const FormFilter = FormSchemas._FormFilter;
27
+ export const Forms = Form + FormInput + FormFilter;
28
+ export const AllFormFields = FormSchemas._AllFormFields;
29
+
30
+ export const Organisation = OrganisationSchemas._Organisation;
31
+ export const OrganisationInput = OrganisationSchemas._OrganisationInput;
32
+ export const Organisations = Organisation + OrganisationInput;
33
+ export const AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
34
+
35
+ export const All = Tasks + Users + Forms + Organisations;
36
+ export default All;
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "2.1.22",
4
- "description": "Graphql schema for rugged data",
5
- "main": "dist/index.js",
6
- "keywords": [
7
- "graphql",
8
- "schema"
9
- ],
10
- "devDependencies": {
11
- "@types/chai": "^4.3.4",
12
- "@types/mocha": "^10.0.1",
13
- "chai": "^4.3.7",
14
- "mocha": "^10.2.0",
15
- "ts-node": "^10.9.1",
16
- "@typescript-eslint/eslint-plugin": "^5.48.2",
17
- "@typescript-eslint/parser": "^5.48.2",
18
- "eslint": "^8.32.0",
19
- "typescript": "^4.9.4"
20
- },
21
- "author": "Tom Edge",
22
- "license": "UNLICENSED",
23
- "scripts": {
24
- "test": "echo \"Error: no test specified\" && exit 1",
25
- "lint": "eslint --fix './**/*.ts'",
26
- "prebuild": "npm run lint",
27
- "build": "tsc",
28
- "push": "npm run build && npm publish"
29
- }
30
- }
1
+ {
2
+ "name": "@nuffieldtechnologies/rugged-schema-types",
3
+ "version": "2.1.25",
4
+ "description": "Graphql schema for rugged data",
5
+ "main": "dist/index.js",
6
+ "keywords": [
7
+ "graphql",
8
+ "schema"
9
+ ],
10
+ "devDependencies": {
11
+ "@types/chai": "^4.3.4",
12
+ "@types/mocha": "^10.0.1",
13
+ "chai": "^4.3.7",
14
+ "mocha": "^10.2.0",
15
+ "ts-node": "^10.9.1",
16
+ "@typescript-eslint/eslint-plugin": "^5.48.2",
17
+ "@typescript-eslint/parser": "^5.48.2",
18
+ "eslint": "^8.32.0",
19
+ "typescript": "^4.9.4"
20
+ },
21
+ "author": "Tom Edge",
22
+ "license": "UNLICENSED",
23
+ "scripts": {
24
+ "test": "echo \"Error: no test specified\" && exit 1",
25
+ "lint": "eslint \"./**/*.ts\"",
26
+ "prebuild": "npm run lint",
27
+ "build": "tsc",
28
+ "push": "npm run build && npm publish"
29
+ }
30
+ }
package/schemas/events.ts CHANGED
@@ -1,49 +1,49 @@
1
- export const _Event = `
2
- type Event {
3
- appVersion: String,
4
- at: Float,
5
- atForHumans: String,
6
- device: String,
7
- deviceModel: String,
8
- osVersion: String,
9
- user: String,
10
- userEmail: String
11
- }
12
- `
13
-
14
- export const _EventInput = `
15
- input EventInput {
16
- appVersion: String,
17
- at: Float,
18
- atForHumans: String,
19
- device: String,
20
- deviceModel: String,
21
- osVersion: String,
22
- user: String,
23
- userEmail: String
24
- }
25
- `;
26
-
27
- export const _Events = `
28
- type Events {
29
- started: Event,
30
- updated: Event,
31
- upgraded: Event,
32
- processed: Event,
33
- submitted: Event,
34
- discarded: Event,
35
- }
36
- `;
37
-
38
- export const _EventsInput = `
39
- input EventsInput {
40
- started: EventInput,
41
- updated: EventInput,
42
- upgraded: EventInput,
43
- processed: EventInput,
44
- submitted: EventInput,
45
- discarded: EventInput,
46
- }
47
- `;
48
-
1
+ export const _Event = `
2
+ type Event {
3
+ appVersion: String,
4
+ at: Float,
5
+ atForHumans: String,
6
+ device: String,
7
+ deviceModel: String,
8
+ osVersion: String,
9
+ user: String,
10
+ userEmail: String
11
+ }
12
+ `
13
+
14
+ export const _EventInput = `
15
+ input EventInput {
16
+ appVersion: String,
17
+ at: Float,
18
+ atForHumans: String,
19
+ device: String,
20
+ deviceModel: String,
21
+ osVersion: String,
22
+ user: String,
23
+ userEmail: String
24
+ }
25
+ `;
26
+
27
+ export const _Events = `
28
+ type Events {
29
+ started: Event,
30
+ updated: Event,
31
+ upgraded: Event,
32
+ processed: Event,
33
+ submitted: Event,
34
+ discarded: Event,
35
+ }
36
+ `;
37
+
38
+ export const _EventsInput = `
39
+ input EventsInput {
40
+ started: EventInput,
41
+ updated: EventInput,
42
+ upgraded: EventInput,
43
+ processed: EventInput,
44
+ submitted: EventInput,
45
+ discarded: EventInput,
46
+ }
47
+ `;
48
+
49
49
  export const _AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
package/schemas/form.ts CHANGED
@@ -1,49 +1,49 @@
1
- export const _FormInput = `
2
-
3
- input ParamInput {
4
- name: String
5
- value: String
6
- }
7
-
8
- input FormInput {
9
- id: ID
10
- name: String
11
- key: String
12
- definition: String
13
- version: String
14
- status: String
15
- updated: String
16
- params: [ParamInput]
17
- resources: String
18
- body: String
19
- }
20
- `;
21
-
22
- export const _Form = `
23
-
24
- type Param {
25
- name: String
26
- value: String
27
- }
28
-
29
- type Form {
30
- id: ID
31
- name: String
32
- key: String
33
- definition: String
34
- version: String
35
- status: String
36
- updated: String
37
- params: [Param]
38
- resources: String
39
- body: String
40
- }
41
- `;
42
-
43
- export const _FormFilter = `
44
- input FormFilter {
45
- status: String
46
- }
47
- `;
48
-
1
+ export const _FormInput = `
2
+
3
+ input ParamInput {
4
+ name: String
5
+ value: String
6
+ }
7
+
8
+ input FormInput {
9
+ id: ID
10
+ name: String
11
+ key: String
12
+ definition: String
13
+ version: String
14
+ status: String
15
+ updated: String
16
+ params: [ParamInput]
17
+ resources: String
18
+ body: String
19
+ }
20
+ `;
21
+
22
+ export const _Form = `
23
+
24
+ type Param {
25
+ name: String
26
+ value: String
27
+ }
28
+
29
+ type Form {
30
+ id: ID
31
+ name: String
32
+ key: String
33
+ definition: String
34
+ version: String
35
+ status: String
36
+ updated: String
37
+ params: [Param]
38
+ resources: String
39
+ body: String
40
+ }
41
+ `;
42
+
43
+ export const _FormFilter = `
44
+ input FormFilter {
45
+ status: String
46
+ }
47
+ `;
48
+
49
49
  export const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;