@nuffieldtechnologies/rugged-schema-types 2.1.22 → 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.
@@ -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 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;
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.23",
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 \"./**/*\"",
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}`;
@@ -1,17 +1,17 @@
1
- export const _OrganisationInput = `
2
- input OrganisationInput {
3
- id: ID
4
- name: String
5
- logoUrl: String
6
- }
7
- `;
8
-
9
- export const _Organisation = `
10
- type Organisation {
11
- id: ID
12
- name: String
13
- logoUrl: String
14
- }
15
- `;
16
-
1
+ export const _OrganisationInput = `
2
+ input OrganisationInput {
3
+ id: ID
4
+ name: String
5
+ logoUrl: String
6
+ }
7
+ `;
8
+
9
+ export const _Organisation = `
10
+ type Organisation {
11
+ id: ID
12
+ name: String
13
+ logoUrl: String
14
+ }
15
+ `;
16
+
17
17
  export const _AllOrganisationFields = `{id, name, logoUrl}`;
package/schemas/roles.ts CHANGED
@@ -1,20 +1,20 @@
1
- export const _Roles = `
2
- type Roles {
3
- user: Boolean
4
- admin: Boolean
5
- api: Boolean
6
- uber: Boolean
7
- super: Boolean
8
- legacyPush: Boolean
9
- }
10
- `;
11
-
12
- export const _RolesInput = `
13
- input RolesInput {
14
- user: Boolean
15
- admin: Boolean
16
- api: Boolean
17
- }
18
- `;
19
-
1
+ export const _Roles = `
2
+ type Roles {
3
+ user: Boolean
4
+ admin: Boolean
5
+ api: Boolean
6
+ uber: Boolean
7
+ super: Boolean
8
+ legacyPush: Boolean
9
+ }
10
+ `;
11
+
12
+ export const _RolesInput = `
13
+ input RolesInput {
14
+ user: Boolean
15
+ admin: Boolean
16
+ api: Boolean
17
+ }
18
+ `;
19
+
20
20
  export const _AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
@@ -1,13 +1,13 @@
1
- export const _TaskIdentifiers = `
2
- type TaskIdentifiers {
3
- primary: String
4
- secondary: String
5
- }
6
- `;
7
-
8
- export const _TaskIdentifiersInput = `
9
- input TaskIdentifiersInput {
10
- primary: String
11
- secondary: String
12
- }
1
+ export const _TaskIdentifiers = `
2
+ type TaskIdentifiers {
3
+ primary: String
4
+ secondary: String
5
+ }
6
+ `;
7
+
8
+ export const _TaskIdentifiersInput = `
9
+ input TaskIdentifiersInput {
10
+ primary: String
11
+ secondary: String
12
+ }
13
13
  `;
@@ -1,20 +1,20 @@
1
- export const _TaskOld = `
2
- type TaskOld {
3
- id: ID,
4
- name: String
5
- definition: String
6
- user: ID
7
- userEmail: String
8
- form: ID
9
- organisation: ID
10
- timestamps: TimeStamps
11
- events: Events
12
- template: TemplateInfo
13
- identifiers: TaskIdentifiers
14
- status: String
15
- fails: [String]
16
- reportUrl: String
17
- data: String
18
- refNo: String
19
- }
1
+ export const _TaskOld = `
2
+ type TaskOld {
3
+ id: ID,
4
+ name: String
5
+ definition: String
6
+ user: ID
7
+ userEmail: String
8
+ form: ID
9
+ organisation: ID
10
+ timestamps: TimeStamps
11
+ events: Events
12
+ template: TemplateInfo
13
+ identifiers: TaskIdentifiers
14
+ status: String
15
+ fails: [String]
16
+ reportUrl: String
17
+ data: String
18
+ refNo: String
19
+ }
20
20
  `;