@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 CHANGED
@@ -1,19 +1,19 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- extends: [
4
- 'plugin:@typescript-eslint/recommended',
5
- ],
6
- parserOptions: {
7
- ecmaVersion: 2018,
8
- sourceType: 'module',
9
- },
10
- rules: {
11
- "@typescript-eslint/no-this-alias": 0,
12
- "@typescript-eslint/no-explicit-any": 0,
13
- "@typescript-eslint/explicit-function-return-type": 0,
14
- '@typescript-eslint/array-type': [
15
- 'error',
16
- { default: 'generic' }
17
- ],
18
- },
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ extends: [
4
+ 'plugin:@typescript-eslint/recommended',
5
+ ],
6
+ parserOptions: {
7
+ ecmaVersion: 2018,
8
+ sourceType: 'module',
9
+ },
10
+ rules: {
11
+ "@typescript-eslint/no-this-alias": 0,
12
+ "@typescript-eslint/no-explicit-any": 0,
13
+ "@typescript-eslint/explicit-function-return-type": 0,
14
+ '@typescript-eslint/array-type': [
15
+ 'error',
16
+ { default: 'generic' }
17
+ ],
18
+ },
19
19
  }
package/README.md CHANGED
File without changes
package/dist/index.js CHANGED
@@ -1,35 +1,35 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
4
- const TimeStamps = require("./schemas/timestamps");
5
- const Events = require("./schemas/events");
6
- const TemplateInfo = require("./schemas/template-info");
7
- const UserSchemas = require("./schemas/user");
8
- const Roles = require("./schemas/roles");
9
- const FormShemas = require("./schemas/form");
10
- const OrganisationSchemas = require("./schemas/organisation");
11
- const TaskIdentifiers = require("./schemas/task-identifiers");
12
- const TaskOldSchemas = require("./schemas/task-old");
13
- const TaskSchemas = require("./schemas/task");
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
- exports.TaskFilter = TaskSchemas._TaskFilter;
17
- exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
- exports.AllTaskFields = TaskSchemas._AllTaskFields;
19
- exports.User = Roles._Roles + UserSchemas._User;
20
- exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
- exports.Users = exports.User + exports.UserInput;
22
- exports.AllUserFields = UserSchemas._AllUserFields;
23
- exports.AllRolesFields = Roles._AllRolesFields;
24
- exports.Form = FormShemas._Form;
25
- exports.FormInput = FormShemas._FormInput;
26
- exports.FormFilter = FormShemas._FormFilter;
27
- exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
- exports.AllFormFields = FormShemas._AllFormFields;
29
- exports.Organisation = OrganisationSchemas._Organisation;
30
- exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
- exports.Organisations = exports.Organisation + exports.OrganisationInput;
32
- exports.AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
33
- exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
34
- exports.default = exports.All;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
4
+ const TimeStamps = require("./schemas/timestamps");
5
+ const Events = require("./schemas/events");
6
+ const TemplateInfo = require("./schemas/template-info");
7
+ const UserSchemas = require("./schemas/user");
8
+ const Roles = require("./schemas/roles");
9
+ const FormShemas = require("./schemas/form");
10
+ const OrganisationSchemas = require("./schemas/organisation");
11
+ const TaskIdentifiers = require("./schemas/task-identifiers");
12
+ const TaskOldSchemas = require("./schemas/task-old");
13
+ const TaskSchemas = require("./schemas/task");
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
+ exports.TaskFilter = TaskSchemas._TaskFilter;
17
+ exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
+ exports.AllTaskFields = TaskSchemas._AllTaskFields;
19
+ exports.User = Roles._Roles + UserSchemas._User;
20
+ exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
+ exports.Users = exports.User + exports.UserInput;
22
+ exports.AllUserFields = UserSchemas._AllUserFields;
23
+ exports.AllRolesFields = Roles._AllRolesFields;
24
+ exports.Form = FormShemas._Form;
25
+ exports.FormInput = FormShemas._FormInput;
26
+ exports.FormFilter = FormShemas._FormFilter;
27
+ exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
+ exports.AllFormFields = FormShemas._AllFormFields;
29
+ exports.Organisation = OrganisationSchemas._Organisation;
30
+ exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
+ exports.Organisations = exports.Organisation + exports.OrganisationInput;
32
+ exports.AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
33
+ exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
34
+ exports.default = exports.All;
35
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
File without changes
@@ -1,49 +1,49 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
4
- exports._Event = `
5
- type Event {
6
- appVersion: String,
7
- at: Float,
8
- atForHumans: String,
9
- device: String,
10
- deviceModel: String,
11
- osVersion: String,
12
- user: String,
13
- userEmail: String
14
- }
15
- `;
16
- exports._EventInput = `
17
- input EventInput {
18
- appVersion: String,
19
- at: Float,
20
- atForHumans: String,
21
- device: String,
22
- deviceModel: String,
23
- osVersion: String,
24
- user: String,
25
- userEmail: String
26
- }
27
- `;
28
- exports._Events = `
29
- type Events {
30
- started: Event,
31
- updated: Event,
32
- upgraded: Event,
33
- processed: Event,
34
- submitted: Event,
35
- discarded: Event,
36
- }
37
- `;
38
- exports._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
- exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
4
+ exports._Event = `
5
+ type Event {
6
+ appVersion: String,
7
+ at: Float,
8
+ atForHumans: String,
9
+ device: String,
10
+ deviceModel: String,
11
+ osVersion: String,
12
+ user: String,
13
+ userEmail: String
14
+ }
15
+ `;
16
+ exports._EventInput = `
17
+ input EventInput {
18
+ appVersion: String,
19
+ at: Float,
20
+ atForHumans: String,
21
+ device: String,
22
+ deviceModel: String,
23
+ osVersion: String,
24
+ user: String,
25
+ userEmail: String
26
+ }
27
+ `;
28
+ exports._Events = `
29
+ type Events {
30
+ started: Event,
31
+ updated: Event,
32
+ upgraded: Event,
33
+ processed: Event,
34
+ submitted: Event,
35
+ discarded: Event,
36
+ }
37
+ `;
38
+ exports._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
+ exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
49
49
  //# sourceMappingURL=events.js.map
File without changes
@@ -1,50 +1,50 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
4
- exports._FormInput = `
5
-
6
- input ParamInput {
7
- name: String
8
- value: String
9
- }
10
-
11
- input FormInput {
12
- id: ID
13
- name: String
14
- key: String
15
- definition: String
16
- version: String
17
- status: String
18
- updated: String
19
- params: [ParamInput]
20
- resources: String
21
- body: String
22
- }
23
- `;
24
- exports._Form = `
25
-
26
- type Param {
27
- name: String
28
- value: String
29
- }
30
-
31
- type Form {
32
- id: ID
33
- name: String
34
- key: String
35
- definition: String
36
- version: String
37
- status: String
38
- updated: String
39
- params: [Param]
40
- resources: String
41
- body: String
42
- }
43
- `;
44
- exports._FormFilter = `
45
- input FormFilter {
46
- status: String
47
- }
48
- `;
49
- exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
4
+ exports._FormInput = `
5
+
6
+ input ParamInput {
7
+ name: String
8
+ value: String
9
+ }
10
+
11
+ input FormInput {
12
+ id: ID
13
+ name: String
14
+ key: String
15
+ definition: String
16
+ version: String
17
+ status: String
18
+ updated: String
19
+ params: [ParamInput]
20
+ resources: String
21
+ body: String
22
+ }
23
+ `;
24
+ exports._Form = `
25
+
26
+ type Param {
27
+ name: String
28
+ value: String
29
+ }
30
+
31
+ type Form {
32
+ id: ID
33
+ name: String
34
+ key: String
35
+ definition: String
36
+ version: String
37
+ status: String
38
+ updated: String
39
+ params: [Param]
40
+ resources: String
41
+ body: String
42
+ }
43
+ `;
44
+ exports._FormFilter = `
45
+ input FormFilter {
46
+ status: String
47
+ }
48
+ `;
49
+ exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
50
50
  //# sourceMappingURL=form.js.map
File without changes
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
4
- exports._OrganisationInput = `
5
- input OrganisationInput {
6
- id: ID
7
- name: String
8
- logoUrl: String
9
- }
10
- `;
11
- exports._Organisation = `
12
- type Organisation {
13
- id: ID
14
- name: String
15
- logoUrl: String
16
- }
17
- `;
18
- exports._AllOrganisationFields = `{id, name, logoUrl}`;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
4
+ exports._OrganisationInput = `
5
+ input OrganisationInput {
6
+ id: ID
7
+ name: String
8
+ logoUrl: String
9
+ }
10
+ `;
11
+ exports._Organisation = `
12
+ type Organisation {
13
+ id: ID
14
+ name: String
15
+ logoUrl: String
16
+ }
17
+ `;
18
+ exports._AllOrganisationFields = `{id, name, logoUrl}`;
19
19
  //# sourceMappingURL=organisation.js.map
File without changes
@@ -1,22 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
4
- exports._Roles = `
5
- type Roles {
6
- user: Boolean
7
- admin: Boolean
8
- api: Boolean
9
- uber: Boolean
10
- super: Boolean
11
- legacyPush: Boolean
12
- }
13
- `;
14
- exports._RolesInput = `
15
- input RolesInput {
16
- user: Boolean
17
- admin: Boolean
18
- api: Boolean
19
- }
20
- `;
21
- exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
4
+ exports._Roles = `
5
+ type Roles {
6
+ user: Boolean
7
+ admin: Boolean
8
+ api: Boolean
9
+ uber: Boolean
10
+ super: Boolean
11
+ legacyPush: Boolean
12
+ }
13
+ `;
14
+ exports._RolesInput = `
15
+ input RolesInput {
16
+ user: Boolean
17
+ admin: Boolean
18
+ api: Boolean
19
+ }
20
+ `;
21
+ exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
22
22
  //# sourceMappingURL=roles.js.map
File without changes
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
- exports._TaskIdentifiers = `
5
- type TaskIdentifiers {
6
- primary: String
7
- secondary: String
8
- }
9
- `;
10
- exports._TaskIdentifiersInput = `
11
- input TaskIdentifiersInput {
12
- primary: String
13
- secondary: String
14
- }
15
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
+ exports._TaskIdentifiers = `
5
+ type TaskIdentifiers {
6
+ primary: String
7
+ secondary: String
8
+ }
9
+ `;
10
+ exports._TaskIdentifiersInput = `
11
+ input TaskIdentifiersInput {
12
+ primary: String
13
+ secondary: String
14
+ }
15
+ `;
16
16
  //# sourceMappingURL=task-identifiers.js.map
File without changes
@@ -1,24 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TaskOld = void 0;
4
- exports._TaskOld = `
5
- type TaskOld {
6
- id: ID,
7
- name: String
8
- definition: String
9
- user: ID
10
- userEmail: String
11
- form: ID
12
- organisation: ID
13
- timestamps: TimeStamps
14
- events: Events
15
- template: TemplateInfo
16
- identifiers: TaskIdentifiers
17
- status: String
18
- fails: [String]
19
- reportUrl: String
20
- data: String
21
- refNo: String
22
- }
23
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskOld = void 0;
4
+ exports._TaskOld = `
5
+ type TaskOld {
6
+ id: ID,
7
+ name: String
8
+ definition: String
9
+ user: ID
10
+ userEmail: String
11
+ form: ID
12
+ organisation: ID
13
+ timestamps: TimeStamps
14
+ events: Events
15
+ template: TemplateInfo
16
+ identifiers: TaskIdentifiers
17
+ status: String
18
+ fails: [String]
19
+ reportUrl: String
20
+ data: String
21
+ refNo: String
22
+ }
23
+ `;
24
24
  //# sourceMappingURL=task-old.js.map
File without changes
@@ -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, 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