@takeshape/schema 9.1.6 → 9.1.9

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.
@@ -11,7 +11,10 @@
11
11
  "type": "object",
12
12
  "patternProperties": {
13
13
  ".+": {
14
- "type": ["number", "array"],
14
+ "type": [
15
+ "number",
16
+ "array"
17
+ ],
15
18
  "items": {
16
19
  "type": "number"
17
20
  }
@@ -22,10 +25,17 @@
22
25
  "type": "object",
23
26
  "patternProperties": {
24
27
  ".+": {
25
- "type": ["array", "string", "number"],
28
+ "type": [
29
+ "array",
30
+ "string",
31
+ "number"
32
+ ],
26
33
  "format": "date-time",
27
34
  "items": {
28
- "type": ["string", "number"],
35
+ "type": [
36
+ "string",
37
+ "number"
38
+ ],
29
39
  "format": "date-time"
30
40
  }
31
41
  }
@@ -35,7 +45,10 @@
35
45
  "type": "object",
36
46
  "patternProperties": {
37
47
  ".+": {
38
- "type": ["boolean", "array"],
48
+ "type": [
49
+ "boolean",
50
+ "array"
51
+ ],
39
52
  "items": {
40
53
  "type": "boolean"
41
54
  }
@@ -46,7 +59,10 @@
46
59
  "type": "object",
47
60
  "patternProperties": {
48
61
  ".+": {
49
- "type": ["string", "array"],
62
+ "type": [
63
+ "string",
64
+ "array"
65
+ ],
50
66
  "format": "ipv4",
51
67
  "items": {
52
68
  "type": "string",
@@ -59,7 +75,10 @@
59
75
  "type": "object",
60
76
  "patternProperties": {
61
77
  ".+": {
62
- "type": ["string", "array"],
78
+ "type": [
79
+ "string",
80
+ "array"
81
+ ],
63
82
  "format": "ipv4",
64
83
  "items": {
65
84
  "type": "string",
@@ -72,7 +91,10 @@
72
91
  "type": "object",
73
92
  "patternProperties": {
74
93
  ".+": {
75
- "type": ["string", "array"],
94
+ "type": [
95
+ "string",
96
+ "array"
97
+ ],
76
98
  "items": {
77
99
  "type": "string"
78
100
  }
@@ -83,11 +105,28 @@
83
105
  "type": "object",
84
106
  "patternProperties": {
85
107
  ".+": {
86
- "type": ["string", "boolean", "array"],
87
- "enum": ["true", "false", true, false],
108
+ "type": [
109
+ "string",
110
+ "boolean",
111
+ "array"
112
+ ],
113
+ "enum": [
114
+ "true",
115
+ "false",
116
+ true,
117
+ false
118
+ ],
88
119
  "items": {
89
- "type": ["string", "boolean"],
90
- "enum": ["true", "false", true, false]
120
+ "type": [
121
+ "string",
122
+ "boolean"
123
+ ],
124
+ "enum": [
125
+ "true",
126
+ "false",
127
+ true,
128
+ false
129
+ ]
91
130
  }
92
131
  }
93
132
  }
@@ -99,7 +138,10 @@
99
138
  "properties": {
100
139
  "Effect": {
101
140
  "type": "string",
102
- "enum": ["Allow", "Deny"]
141
+ "enum": [
142
+ "Allow",
143
+ "Deny"
144
+ ]
103
145
  },
104
146
  "Sid": {
105
147
  "type": "string"
@@ -169,7 +211,10 @@
169
211
  }
170
212
  }
171
213
  },
172
- "required": ["Version", "Statement"],
214
+ "required": [
215
+ "Version",
216
+ "Statement"
217
+ ],
173
218
  "additionalProperties": false
174
219
  },
175
220
  "ApiKey": {
@@ -207,7 +252,11 @@
207
252
  "type": "number"
208
253
  }
209
254
  },
210
- "required": ["projectId", "name", "id"],
255
+ "required": [
256
+ "projectId",
257
+ "name",
258
+ "id"
259
+ ],
211
260
  "additionalProperties": false
212
261
  },
213
262
  "UserPermission": {
@@ -238,7 +287,11 @@
238
287
  "type": "boolean"
239
288
  }
240
289
  },
241
- "required": ["projectId", "userId", "role"],
290
+ "required": [
291
+ "projectId",
292
+ "userId",
293
+ "role"
294
+ ],
242
295
  "additionalProperties": false
243
296
  },
244
297
  "Role": {
@@ -267,7 +320,11 @@
267
320
  "type": "number"
268
321
  }
269
322
  },
270
- "required": ["projectId", "name", "permissions"],
323
+ "required": [
324
+ "projectId",
325
+ "name",
326
+ "permissions"
327
+ ],
271
328
  "additionalProperties": false
272
329
  },
273
330
  "RoleInput": {
@@ -297,7 +354,10 @@
297
354
  "type": "number"
298
355
  }
299
356
  },
300
- "required": ["name", "permissions"],
357
+ "required": [
358
+ "name",
359
+ "permissions"
360
+ ],
301
361
  "additionalProperties": false
302
362
  },
303
363
  "RoleImport": {
@@ -310,4 +370,4 @@
310
370
  "additionalProperties": false
311
371
  }
312
372
  }
313
- }
373
+ }
@@ -2098,10 +2098,14 @@
2098
2098
  "properties": {
2099
2099
  "list": {
2100
2100
  "oneOf": [
2101
- {"$ref": "#/definitions/storedIndexedShapeListQueryConfig"},
2101
+ {
2102
+ "$ref": "#/definitions/storedIndexedShapeListQueryConfig"
2103
+ },
2102
2104
  {
2103
2105
  "type": "array",
2104
- "items": {"$ref": "#/definitions/storedIndexedShapeListQueryConfig"}
2106
+ "items": {
2107
+ "$ref": "#/definitions/storedIndexedShapeListQueryConfig"
2108
+ }
2105
2109
  }
2106
2110
  ]
2107
2111
  },
@@ -3025,4 +3029,4 @@
3025
3029
  "mutations",
3026
3030
  "workflows"
3027
3031
  ]
3028
- }
3032
+ }
@@ -121,4 +121,4 @@
121
121
  "$ref": "https://schema.takeshape.io/project-schema/v4.0.0#"
122
122
  }
123
123
  ]
124
- }
124
+ }
@@ -55,4 +55,4 @@
55
55
  "updated",
56
56
  "firstTime"
57
57
  ]
58
- }
58
+ }
@@ -11,7 +11,10 @@
11
11
  "type": "object",
12
12
  "patternProperties": {
13
13
  ".+": {
14
- "type": ["number", "array"],
14
+ "type": [
15
+ "number",
16
+ "array"
17
+ ],
15
18
  "items": {
16
19
  "type": "number"
17
20
  }
@@ -22,10 +25,17 @@
22
25
  "type": "object",
23
26
  "patternProperties": {
24
27
  ".+": {
25
- "type": ["array", "string", "number"],
28
+ "type": [
29
+ "array",
30
+ "string",
31
+ "number"
32
+ ],
26
33
  "format": "date-time",
27
34
  "items": {
28
- "type": ["string", "number"],
35
+ "type": [
36
+ "string",
37
+ "number"
38
+ ],
29
39
  "format": "date-time"
30
40
  }
31
41
  }
@@ -35,7 +45,10 @@
35
45
  "type": "object",
36
46
  "patternProperties": {
37
47
  ".+": {
38
- "type": ["boolean", "array"],
48
+ "type": [
49
+ "boolean",
50
+ "array"
51
+ ],
39
52
  "items": {
40
53
  "type": "boolean"
41
54
  }
@@ -46,7 +59,10 @@
46
59
  "type": "object",
47
60
  "patternProperties": {
48
61
  ".+": {
49
- "type": ["string", "array"],
62
+ "type": [
63
+ "string",
64
+ "array"
65
+ ],
50
66
  "format": "ipv4",
51
67
  "items": {
52
68
  "type": "string",
@@ -59,7 +75,10 @@
59
75
  "type": "object",
60
76
  "patternProperties": {
61
77
  ".+": {
62
- "type": ["string", "array"],
78
+ "type": [
79
+ "string",
80
+ "array"
81
+ ],
63
82
  "format": "ipv4",
64
83
  "items": {
65
84
  "type": "string",
@@ -72,7 +91,10 @@
72
91
  "type": "object",
73
92
  "patternProperties": {
74
93
  ".+": {
75
- "type": ["string", "array"],
94
+ "type": [
95
+ "string",
96
+ "array"
97
+ ],
76
98
  "items": {
77
99
  "type": "string"
78
100
  }
@@ -83,11 +105,28 @@
83
105
  "type": "object",
84
106
  "patternProperties": {
85
107
  ".+": {
86
- "type": ["string", "boolean", "array"],
87
- "enum": ["true", "false", true, false],
108
+ "type": [
109
+ "string",
110
+ "boolean",
111
+ "array"
112
+ ],
113
+ "enum": [
114
+ "true",
115
+ "false",
116
+ true,
117
+ false
118
+ ],
88
119
  "items": {
89
- "type": ["string", "boolean"],
90
- "enum": ["true", "false", true, false]
120
+ "type": [
121
+ "string",
122
+ "boolean"
123
+ ],
124
+ "enum": [
125
+ "true",
126
+ "false",
127
+ true,
128
+ false
129
+ ]
91
130
  }
92
131
  }
93
132
  }
@@ -99,7 +138,10 @@
99
138
  "properties": {
100
139
  "Effect": {
101
140
  "type": "string",
102
- "enum": ["Allow", "Deny"]
141
+ "enum": [
142
+ "Allow",
143
+ "Deny"
144
+ ]
103
145
  },
104
146
  "Sid": {
105
147
  "type": "string"
@@ -169,7 +211,10 @@
169
211
  }
170
212
  }
171
213
  },
172
- "required": ["Version", "Statement"],
214
+ "required": [
215
+ "Version",
216
+ "Statement"
217
+ ],
173
218
  "additionalProperties": false
174
219
  },
175
220
  "ApiKey": {
@@ -207,7 +252,11 @@
207
252
  "type": "number"
208
253
  }
209
254
  },
210
- "required": ["projectId", "name", "id"],
255
+ "required": [
256
+ "projectId",
257
+ "name",
258
+ "id"
259
+ ],
211
260
  "additionalProperties": false
212
261
  },
213
262
  "UserPermission": {
@@ -238,7 +287,11 @@
238
287
  "type": "boolean"
239
288
  }
240
289
  },
241
- "required": ["projectId", "userId", "role"],
290
+ "required": [
291
+ "projectId",
292
+ "userId",
293
+ "role"
294
+ ],
242
295
  "additionalProperties": false
243
296
  },
244
297
  "Role": {
@@ -267,7 +320,11 @@
267
320
  "type": "number"
268
321
  }
269
322
  },
270
- "required": ["projectId", "name", "permissions"],
323
+ "required": [
324
+ "projectId",
325
+ "name",
326
+ "permissions"
327
+ ],
271
328
  "additionalProperties": false
272
329
  },
273
330
  "RoleInput": {
@@ -297,7 +354,10 @@
297
354
  "type": "number"
298
355
  }
299
356
  },
300
- "required": ["name", "permissions"],
357
+ "required": [
358
+ "name",
359
+ "permissions"
360
+ ],
301
361
  "additionalProperties": false
302
362
  },
303
363
  "RoleImport": {
@@ -310,4 +370,4 @@
310
370
  "additionalProperties": false
311
371
  }
312
372
  }
313
- }
373
+ }
@@ -2098,10 +2098,14 @@
2098
2098
  "properties": {
2099
2099
  "list": {
2100
2100
  "oneOf": [
2101
- {"$ref": "#/definitions/storedIndexedShapeListQueryConfig"},
2101
+ {
2102
+ "$ref": "#/definitions/storedIndexedShapeListQueryConfig"
2103
+ },
2102
2104
  {
2103
2105
  "type": "array",
2104
- "items": {"$ref": "#/definitions/storedIndexedShapeListQueryConfig"}
2106
+ "items": {
2107
+ "$ref": "#/definitions/storedIndexedShapeListQueryConfig"
2108
+ }
2105
2109
  }
2106
2110
  ]
2107
2111
  },
@@ -3025,4 +3029,4 @@
3025
3029
  "mutations",
3026
3030
  "workflows"
3027
3031
  ]
3028
- }
3032
+ }
@@ -121,4 +121,4 @@
121
121
  "$ref": "https://schema.takeshape.io/project-schema/v4.0.0#"
122
122
  }
123
123
  ]
124
- }
124
+ }
@@ -55,4 +55,4 @@
55
55
  "updated",
56
56
  "firstTime"
57
57
  ]
58
- }
58
+ }
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "9.1.6",
3
+ "version": "9.1.9",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "github.com:takeshape/takeshape.git"
9
9
  },
10
- "author": "asprouse",
11
10
  "license": "UNLICENSED",
12
- "engines": {
13
- "node": ">=16"
14
- },
11
+ "author": "asprouse",
15
12
  "main": "dist/index.js",
16
13
  "module": "es/index.js",
17
14
  "types": "dist/index.d.ts",
@@ -29,9 +26,9 @@
29
26
  "p-reduce": "^2.1.0",
30
27
  "semver": "^7.3.2",
31
28
  "tiny-invariant": "^1.2.0",
32
- "@takeshape/errors": "9.1.6",
33
- "@takeshape/util": "9.1.6",
34
- "@takeshape/json-schema": "9.1.6"
29
+ "@takeshape/errors": "9.1.9",
30
+ "@takeshape/util": "9.1.9",
31
+ "@takeshape/json-schema": "9.1.9"
35
32
  },
36
33
  "devDependencies": {
37
34
  "@takeshape/json-schema-to-typescript": "^11.0.0",
@@ -48,24 +45,27 @@
48
45
  "p-map": "^5.0.0",
49
46
  "shortid": "^2.2.15"
50
47
  },
48
+ "engines": {
49
+ "node": ">=16"
50
+ },
51
51
  "scripts": {
52
- "lint": "eslint . --ext .js,.ts",
53
- "lint:code:ci": "eslint . --ext .js,.ts --format junit -o \"${HOME}/test-results/${npm_package_name#*\\/}/eslint-results.xml\"",
54
- "clean:test": "rimraf .esdata-test && rimraf .dynamo-test",
55
- "test": "jest",
56
- "test:ci": "JEST_JUNIT_OUTPUT_DIR=\"${HOME}/test-results/${npm_package_name#*\\/}\" JEST_JUNIT_OUTPUT_NAME=jest-results.xml jest --ci --reporters=default --reporters=jest-junit",
57
- "test:migrate-examples": "jest src/__tests__/_examples.test.ts --updateSnapshot",
58
- "test-changed": "pnpm run test --changedSince=master",
59
- "typecheck": "tsc --noEmit",
60
- "json2ts": "node scripts/json-schema-to-typescript.mjs",
61
- "clean": "rimraf build dist es *.tsbuildinfo",
62
52
  "build": "pnpm build:types && pnpm build:js && pnpm build:es && pnpm build:json && pnpm build:copy",
63
- "build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
64
- "build:js": "cross-env BABEL_MODULES=commonjs babel src --out-dir dist --extensions \".js,.ts\" --ignore '**/__tests__'",
53
+ "build:copy": "cp -rf build/src/* dist/",
65
54
  "build:es": "cross-env BABEL_MODULES=es babel src --out-dir es --extensions \".js,.ts\" --ignore '**/__tests__'",
55
+ "build:js": "cross-env BABEL_MODULES=commonjs babel src --out-dir dist --extensions \".js,.ts\" --ignore '**/__tests__'",
66
56
  "build:json": "cp -r src/schemas es && cp -r src/schemas dist",
67
- "build:copy": "cp -rf build/src/* dist/",
57
+ "build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
58
+ "clean": "rimraf build dist es *.tsbuildinfo",
59
+ "clean:test": "rimraf .esdata-test && rimraf .dynamo-test",
60
+ "json2ts": "node scripts/json-schema-to-typescript.mjs",
61
+ "lint": "eslint . --ext .js,.ts",
62
+ "lint:code:ci": "pnpm lint --quiet --format junit -o \"${HOME}/test-results/${npm_package_name#*\\/}/eslint-results.xml\"",
68
63
  "publish-json-schema": "node ./scripts/publish-json-schema.mjs",
69
- "todo": "leasot 'src/**/*.{js,jsx,ts,tsx}'"
64
+ "test": "jest",
65
+ "test-changed": "pnpm run test --changedSince=master",
66
+ "test:ci": "JEST_JUNIT_OUTPUT_DIR=\"${HOME}/test-results/${npm_package_name#*\\/}\" JEST_JUNIT_OUTPUT_NAME=jest-results.xml jest --ci --reporters=default --reporters=jest-junit",
67
+ "test:migrate-examples": "jest src/__tests__/_examples.test.ts --updateSnapshot",
68
+ "todo": "leasot 'src/**/*.{js,jsx,ts,tsx}'",
69
+ "typecheck": "tsc --noEmit"
70
70
  }
71
71
  }