@nuffieldtechnologies/rugged-schema-types 2.2.0 → 3.1.0

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,7 +1,7 @@
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 = `
4
+ exports._FormInput = `#graphql
5
5
 
6
6
  input ParamInput {
7
7
  name: String
@@ -19,9 +19,10 @@ exports._FormInput = `
19
19
  params: [ParamInput]
20
20
  resources: String
21
21
  body: String
22
+ external: Boolean
22
23
  }
23
24
  `;
24
- exports._Form = `
25
+ exports._Form = `#graphql
25
26
 
26
27
  type Param {
27
28
  name: String
@@ -39,12 +40,13 @@ exports._Form = `
39
40
  params: [Param]
40
41
  resources: String
41
42
  body: String
43
+ external: Boolean
42
44
  }
43
45
  `;
44
- exports._FormFilter = `
46
+ exports._FormFilter = `#graphql
45
47
  input FormFilter {
46
48
  status: String
47
49
  }
48
50
  `;
49
- exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
51
+ exports._AllFormFields = `#graphql {id, name, key, definition, status, updated, params {name, value}, resources, body, external}`;
50
52
  //# sourceMappingURL=form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.js","sourceRoot":"","sources":["../../schemas/form.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAEW,QAAA,KAAK,GAAG;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEW,QAAA,WAAW,GAAG;;;;CAI1B,CAAC;AAEW,QAAA,cAAc,GAAG,sFAAsF,CAAC"}
1
+ {"version":3,"file":"form.js","sourceRoot":"","sources":["../../schemas/form.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;CAoBzB,CAAC;AAEW,QAAA,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;CAoBpB,CAAC;AAEW,QAAA,WAAW,GAAG;;;;CAI1B,CAAC;AAEW,QAAA,cAAc,GAAG,yGAAyG,CAAC"}
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "2.2.0",
3
+ "version": "3.1.0",
4
4
  "description": "Graphql schema for rugged data",
5
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
6
  "scripts": {
24
7
  "test": "echo \"Error: no test specified\" && exit 1",
25
8
  "lint": "eslint --fix \"./**/*.ts\"",
26
9
  "prebuild": "npm run lint",
27
10
  "build": "tsc",
28
11
  "push": "npm run build && npm publish"
29
- }
12
+ },
13
+ "devDependencies": {
14
+ "@types/chai": "^5.2.3",
15
+ "@types/mocha": "^10.0.10",
16
+ "@types/node": "^24.10.1",
17
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
18
+ "@typescript-eslint/parser": "^8.48.1",
19
+ "chai": "^6.2.1",
20
+ "eslint": "^8.57.0",
21
+ "mocha": "^11.7.5",
22
+ "ts-node": "^10.9.2",
23
+ "typescript": "^5.9.3"
24
+ },
25
+ "keywords": [
26
+ "graphql",
27
+ "schema"
28
+ ],
29
+ "author": "Tom Edge",
30
+ "license": "UNLICENSED"
30
31
  }
package/schemas/form.ts CHANGED
@@ -1,4 +1,4 @@
1
- export const _FormInput = `
1
+ export const _FormInput = `#graphql
2
2
 
3
3
  input ParamInput {
4
4
  name: String
@@ -16,10 +16,11 @@ export const _FormInput = `
16
16
  params: [ParamInput]
17
17
  resources: String
18
18
  body: String
19
+ external: Boolean
19
20
  }
20
21
  `;
21
22
 
22
- export const _Form = `
23
+ export const _Form = `#graphql
23
24
 
24
25
  type Param {
25
26
  name: String
@@ -37,13 +38,14 @@ export const _Form = `
37
38
  params: [Param]
38
39
  resources: String
39
40
  body: String
41
+ external: Boolean
40
42
  }
41
43
  `;
42
44
 
43
- export const _FormFilter = `
45
+ export const _FormFilter = `#graphql
44
46
  input FormFilter {
45
47
  status: String
46
48
  }
47
49
  `;
48
50
 
49
- export const _AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
51
+ export const _AllFormFields = `#graphql {id, name, key, definition, status, updated, params {name, value}, resources, body, external}`;