@nuffieldtechnologies/rugged-schema-types 2.1.18 → 2.1.20

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,71 +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
- workflowStep: String
23
- workflow: String
24
- name: String
25
- events: Events
26
- identifiers: TaskIdentifiers
27
- template: TemplateInfo
28
- userIds: String
29
- users: String
30
- timestamps: TimeStamps
31
- }
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
+ }
32
33
  `;
33
- exports._TaskInput = `
34
- input TaskInput {
35
- collections: String
36
- fields: String
37
- info: TaskInfoInput
38
- sections: String
39
- }
34
+ exports._TaskInput = `
35
+ input TaskInput {
36
+ collections: String
37
+ fields: String
38
+ info: TaskInfoInput
39
+ sections: String
40
+ }
40
41
  `;
41
- exports._TaskInfoInput = `
42
- input TaskInfoInput {
43
- status: String
44
- statusBeforeEdit: String
45
- rootEntityId: String
46
- rootEntityAncestry: String
47
- id: String
48
- refNo: String
49
- workflowStep: String
50
- workflow: String
51
- name: String
52
- events: EventsInput
53
- identifiers: TaskIdentifiersInput
54
- template: TemplateInfoInput
55
- userIds: String
56
- users: String
57
- timestamps: TimeStampsInput
58
- }
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
+ }
59
61
  `;
60
- exports._TaskFilter = `
61
- input TaskFilter {
62
- users: [ID]
63
- userEmails: [String]
64
- rootEntityIds: [String]
65
- entityIds: [String]
66
- forms: [ID]
67
- after: String
68
- before: String
69
- }
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
+ }
70
72
  `;
71
- exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, 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}`;
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}`;
72
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;;;;;;;;;;;;;;;;;;;CAmBxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;CAOzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;CAkB7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,4OAA4O,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