@nuffieldtechnologies/rugged-schema-types 2.1.17 → 2.1.19

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
File without changes
package/dist/index.js.map CHANGED
File without changes
@@ -1,49 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
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
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
- }
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
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
- }
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
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
- }
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
47
  `;
48
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
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
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
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
- }
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
43
  `;
44
- exports._FormFilter = `
45
- input FormFilter {
46
- status: String
47
- }
44
+ exports._FormFilter = `
45
+ input FormFilter {
46
+ status: String
47
+ }
48
48
  `;
49
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
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
4
+ exports._OrganisationInput = `
5
+ input OrganisationInput {
6
+ id: ID
7
+ name: String
8
+ logoUrl: String
9
+ }
10
10
  `;
11
- exports._Organisation = `
12
- type Organisation {
13
- id: ID
14
- name: String
15
- logoUrl: String
16
- }
11
+ exports._Organisation = `
12
+ type Organisation {
13
+ id: ID
14
+ name: String
15
+ logoUrl: String
16
+ }
17
17
  `;
18
18
  exports._AllOrganisationFields = `{id, name, logoUrl}`;
19
19
  //# sourceMappingURL=organisation.js.map
File without changes
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
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
13
  `;
14
- exports._RolesInput = `
15
- input RolesInput {
16
- user: Boolean
17
- admin: Boolean
18
- api: Boolean
19
- }
14
+ exports._RolesInput = `
15
+ input RolesInput {
16
+ user: Boolean
17
+ admin: Boolean
18
+ api: Boolean
19
+ }
20
20
  `;
21
21
  exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
22
22
  //# sourceMappingURL=roles.js.map
File without changes
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
- exports._TaskIdentifiers = `
5
- type TaskIdentifiers {
6
- primary: String
7
- secondary: String
8
- }
4
+ exports._TaskIdentifiers = `
5
+ type TaskIdentifiers {
6
+ primary: String
7
+ secondary: String
8
+ }
9
9
  `;
10
- exports._TaskIdentifiersInput = `
11
- input TaskIdentifiersInput {
12
- primary: String
13
- secondary: String
14
- }
10
+ exports._TaskIdentifiersInput = `
11
+ input TaskIdentifiersInput {
12
+ primary: String
13
+ secondary: String
14
+ }
15
15
  `;
16
16
  //# sourceMappingURL=task-identifiers.js.map
File without changes
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
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
23
  `;
24
24
  //# sourceMappingURL=task-old.js.map
File without changes
@@ -2,67 +2,73 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllTaskFields = exports._TaskFilter = exports._TaskInfoInput = exports._TaskInput = exports._TaskInfo = exports._Task = void 0;
4
4
  const Events = require("./events");
5
- exports._Task = `
6
- type Task {
7
- collections: String
8
- fields: String
9
- info: TaskInfo
10
- sections: String
11
- }
5
+ exports._Task = `
6
+ type Task {
7
+ collections: String
8
+ fields: String
9
+ info: TaskInfo
10
+ sections: String
11
+ }
12
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
- name: String
23
- events: Events
24
- identifiers: TaskIdentifiers
25
- template: TemplateInfo
26
- userIds: String
27
- users: String
28
- timestamps: TimeStamps
29
- }
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
+ name: String
26
+ events: Events
27
+ identifiers: TaskIdentifiers
28
+ template: TemplateInfo
29
+ userIds: String
30
+ users: String
31
+ timestamps: TimeStamps
32
+ }
30
33
  `;
31
- exports._TaskInput = `
32
- input TaskInput {
33
- collections: String
34
- fields: String
35
- info: TaskInfoInput
36
- sections: String
37
- }
34
+ exports._TaskInput = `
35
+ input TaskInput {
36
+ collections: String
37
+ fields: String
38
+ info: TaskInfoInput
39
+ sections: String
40
+ }
38
41
  `;
39
- exports._TaskInfoInput = `
40
- input TaskInfoInput {
41
- status: String
42
- statusBeforeEdit: String
43
- rootEntityId: String
44
- rootEntityAncestry: String
45
- id: String
46
- refNo: String
47
- name: String
48
- events: EventsInput
49
- identifiers: TaskIdentifiersInput
50
- template: TemplateInfoInput
51
- userIds: String
52
- users: String
53
- timestamps: TimeStampsInput
54
- }
42
+ exports._TaskInfoInput = `
43
+ input TaskInfoInput {
44
+ status: String
45
+ statusBeforeEdit: String
46
+ rootEntityId: String
47
+ rootEntityAncestry: String
48
+ id: String
49
+ refNo: String
50
+ tags: String[]
51
+ workflowStep: String
52
+ workflow: String
53
+ name: String
54
+ events: EventsInput
55
+ identifiers: TaskIdentifiersInput
56
+ template: TemplateInfoInput
57
+ userIds: String
58
+ users: String
59
+ timestamps: TimeStampsInput
60
+ }
55
61
  `;
56
- exports._TaskFilter = `
57
- input TaskFilter {
58
- users: [ID]
59
- userEmails: [String]
60
- rootEntityIds: [String]
61
- entityIds: [String]
62
- forms: [ID]
63
- after: String
64
- before: String
65
- }
62
+ exports._TaskFilter = `
63
+ input TaskFilter {
64
+ users: [ID]
65
+ userEmails: [String]
66
+ rootEntityIds: [String]
67
+ entityIds: [String]
68
+ forms: [ID]
69
+ after: String
70
+ before: String
71
+ }
66
72
  `;
67
- exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, 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}`;
73
+ 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}`;
68
74
  //# 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;;;;;;;;;;;;;;;;;CAiBxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;CAOzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;CAgB7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,oNAAoN,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;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;CAOzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;CAmB7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,kPAAkP,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
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
4
+ exports._TemplateInfo = `
5
+ type TemplateInfo {
6
+ name: String,
7
+ shortName: String,
8
+ type: String,
9
+ id: String
10
+ version: String
11
+ }
12
12
  `;
13
- exports._TemplateInfoInput = `
14
- input TemplateInfoInput {
15
- name: String,
16
- shortName: String,
17
- type: String,
18
- id: String
19
- version: String
20
- }
13
+ exports._TemplateInfoInput = `
14
+ input TemplateInfoInput {
15
+ name: String,
16
+ shortName: String,
17
+ type: String,
18
+ id: String
19
+ version: String
20
+ }
21
21
  `;
22
22
  //# sourceMappingURL=template-info.js.map
File without changes
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- }
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
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
- }
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
23
  `;
24
24
  //# sourceMappingURL=timestamps.js.map
File without changes
@@ -2,26 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
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
- }
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
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
- }
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
25
  `;
26
26
  exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
27
27
  //# sourceMappingURL=user.js.map
File without changes