@takeshape/schema 8.292.0 → 9.0.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.
- package/dist/schema-util.d.ts +2 -10
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/schema-util.js +0 -26
- package/es/schema-util.js +0 -23
- package/package.json +5 -7
package/dist/schema-util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import type { ProjectSchema, PropertySchema, Query,
|
|
2
|
+
import type { ProjectSchema, PropertySchema, Query, Shape, ShapeMap, ServiceConfig, ShapeV3_0_0, ShapeSchema } from './project-schema';
|
|
3
3
|
import type { LatestProjectSchemaWithServices, ServiceMap, ServiceInfo, SchemaWithArgs, SchemaPropertyName, SchemaPropertyNode, ProjectSchemaV3X, SchemaPath, SchemaWithRef } from './types/types';
|
|
4
4
|
import { Maybe } from '@takeshape/util';
|
|
5
5
|
import { RefItem, RefItemWithPath, ServicesContext, ServicesShapesContext } from './refs';
|
|
@@ -19,10 +19,7 @@ export declare function getServiceIdFieldName(serviceFieldName: string): string;
|
|
|
19
19
|
export declare function getGeneratorVersion(generator: string): string;
|
|
20
20
|
export declare function getServiceInfo(projectSchema: ProjectSchema, shape: Shape): Record<string, ServiceInfo[]>;
|
|
21
21
|
export declare function pathBetween(fromShape: Shape, toShape: Shape, projectSchema: ProjectSchema, depthLimit?: number): string[];
|
|
22
|
-
export declare function getShapeQueriesAndMutations(shapeList: Array<Shape | ShapeV3_0_0>):
|
|
23
|
-
queries: QueryMap;
|
|
24
|
-
mutations: QueryMap;
|
|
25
|
-
};
|
|
22
|
+
export declare function getShapeQueriesAndMutations(shapeList: Array<Shape | ShapeV3_0_0>): Pick<ProjectSchema, 'queries' | 'mutations'>;
|
|
26
23
|
export declare type BuiltinPropertiesSet = 'model' | 'indexed' | 'none';
|
|
27
24
|
export declare function getBuiltinPropertiesSet(context: Pick<ProjectSchema, 'indexedShapes'>, shape: Shape): BuiltinPropertiesSet;
|
|
28
25
|
export declare function getBuiltinProperties(shapeId: string, builtinPropertiesSet: BuiltinPropertiesSet, apiVersion?: string): Record<string, PropertySchema>;
|
|
@@ -132,11 +129,6 @@ export declare function filterGraphQLServiceMap(serviceMap: ServiceMap): Map<str
|
|
|
132
129
|
* Add all referenced shape names to the refSet meant to be used as a callback to visitSchemaProperties
|
|
133
130
|
*/
|
|
134
131
|
export declare function collectReferencedShapeNames(context: ServicesContext, shapeNames: Set<string>): (schema: PropertySchema) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Get the subset of a schema that was automatically created or should otherwise
|
|
137
|
-
* have special protection against editing or deleting.
|
|
138
|
-
*/
|
|
139
|
-
export declare function getProtectedSchema(schema: ProjectSchema): Pick<ProjectSchema, 'shapes' | 'queries' | 'mutations'>;
|
|
140
132
|
/**
|
|
141
133
|
* Creates a schema property list chainable fn, allowing you to manipulate and
|
|
142
134
|
* iterate the properties in a schema.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-util.d.ts","sourceRoot":"","sources":["../../src/schema-util.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAEd,KAAK,
|
|
1
|
+
{"version":3,"file":"schema-util.d.ts","sourceRoot":"","sources":["../../src/schema-util.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EAEd,KAAK,EAEL,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EAGX,WAAW,EAEZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,UAAU,EACV,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAElB,gBAAgB,EAChB,UAAU,EACV,aAAa,EACd,MAAM,eAAe,CAAC;AASvB,OAAO,EAAC,KAAK,EAA0C,MAAM,iBAAiB,CAAC;AAgB/E,OAAO,EASL,OAAO,EAIP,eAAe,EACf,eA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;AAC/D;;GAEG;AACH,eAAO,MAAM,YAAY,kBACR,kBAAkB,aACtB,MAAM,YACP,MAAM,KACf,MAAM,GAAG,SAA4E,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,WAAW,kBAAmB,kBAAkB,aAAa,MAAM,YAAY,MAAM,KAAG,MACrC,CAAC;AACjE;;;GAGG;AACH,eAAO,MAAM,cAAc,kBAAmB,kBAAkB,aAAa,MAAM,YAAY,MAAM,KAAG,MACrC,CAAC;AAEpE,oBAAY,2BAA2B,GACnC,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,sBAAsB,cAAe,MAAM,YAAY,2BAA2B,KAAG,MAGjG,CAAC;AAEF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,CAQ3F;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,GAAG,cAAc,CAYhG;AAED,wBAAgB,eAAe,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,GAAG,UAAU,GAAG,KAAK,CAOpG"}
|
package/dist/schema-util.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.getFullyQualifiedShapeName = getFullyQualifiedShapeName;
|
|
|
34
34
|
exports.getGeneratorVersion = getGeneratorVersion;
|
|
35
35
|
exports.getNamespacedShapeNameList = getNamespacedShapeNameList;
|
|
36
36
|
exports.getPropertyService = getPropertyService;
|
|
37
|
-
exports.getProtectedSchema = getProtectedSchema;
|
|
38
37
|
exports.getQueriesShape = getQueriesShape;
|
|
39
38
|
exports.getRelevantShapes = getRelevantShapes;
|
|
40
39
|
exports.getServiceIdFieldName = getServiceIdFieldName;
|
|
@@ -67,8 +66,6 @@ var _mapValues = _interopRequireDefault(require("lodash/mapValues"));
|
|
|
67
66
|
|
|
68
67
|
var _omitBy = _interopRequireDefault(require("lodash/omitBy"));
|
|
69
68
|
|
|
70
|
-
var _pickBy = _interopRequireDefault(require("lodash/pickBy"));
|
|
71
|
-
|
|
72
69
|
var _keyBy = _interopRequireDefault(require("lodash/keyBy"));
|
|
73
70
|
|
|
74
71
|
var _isObject = _interopRequireDefault(require("lodash/isObject"));
|
|
@@ -1083,29 +1080,6 @@ function collectReferencedShapeNames(context, shapeNames) {
|
|
|
1083
1080
|
|
|
1084
1081
|
return collect;
|
|
1085
1082
|
}
|
|
1086
|
-
/**
|
|
1087
|
-
* Get the subset of a schema that was automatically created or should otherwise
|
|
1088
|
-
* have special protection against editing or deleting.
|
|
1089
|
-
*/
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
function getProtectedSchema(schema) {
|
|
1093
|
-
const shapeQueriesAndMutations = getShapeQueriesAndMutations(Object.values({ ..._builtinSchema.builtInShapes,
|
|
1094
|
-
...schema.shapes
|
|
1095
|
-
}));
|
|
1096
|
-
const namespaceShapes = getAllNamespaceShapes(schema);
|
|
1097
|
-
return {
|
|
1098
|
-
shapes: (0, _pickBy.default)(schema.shapes, (_, key) => {
|
|
1099
|
-
return namespaceShapes.includes(key) || isBuiltinShape(key);
|
|
1100
|
-
}),
|
|
1101
|
-
queries: (0, _pickBy.default)(schema.queries, (_, key) => {
|
|
1102
|
-
return shapeQueriesAndMutations.queries[key] !== undefined;
|
|
1103
|
-
}),
|
|
1104
|
-
mutations: (0, _pickBy.default)(schema.mutations, (_, key) => {
|
|
1105
|
-
return shapeQueriesAndMutations.mutations[key] !== undefined;
|
|
1106
|
-
})
|
|
1107
|
-
};
|
|
1108
|
-
}
|
|
1109
1083
|
/**
|
|
1110
1084
|
* Creates a schema property list chainable fn, allowing you to manipulate and
|
|
1111
1085
|
* iterate the properties in a schema.
|
package/es/schema-util.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import find from 'lodash/find';
|
|
2
2
|
import mapValues from 'lodash/mapValues';
|
|
3
3
|
import omitBy from 'lodash/omitBy';
|
|
4
|
-
import pickBy from 'lodash/pickBy';
|
|
5
4
|
import keyBy from 'lodash/keyBy';
|
|
6
5
|
import isObject from 'lodash/isObject';
|
|
7
6
|
import curry from 'lodash/fp/curry';
|
|
@@ -940,28 +939,6 @@ export function collectReferencedShapeNames(context, shapeNames) {
|
|
|
940
939
|
|
|
941
940
|
return collect;
|
|
942
941
|
}
|
|
943
|
-
/**
|
|
944
|
-
* Get the subset of a schema that was automatically created or should otherwise
|
|
945
|
-
* have special protection against editing or deleting.
|
|
946
|
-
*/
|
|
947
|
-
|
|
948
|
-
export function getProtectedSchema(schema) {
|
|
949
|
-
const shapeQueriesAndMutations = getShapeQueriesAndMutations(Object.values({ ...builtInShapes,
|
|
950
|
-
...schema.shapes
|
|
951
|
-
}));
|
|
952
|
-
const namespaceShapes = getAllNamespaceShapes(schema);
|
|
953
|
-
return {
|
|
954
|
-
shapes: pickBy(schema.shapes, (_, key) => {
|
|
955
|
-
return namespaceShapes.includes(key) || isBuiltinShape(key);
|
|
956
|
-
}),
|
|
957
|
-
queries: pickBy(schema.queries, (_, key) => {
|
|
958
|
-
return shapeQueriesAndMutations.queries[key] !== undefined;
|
|
959
|
-
}),
|
|
960
|
-
mutations: pickBy(schema.mutations, (_, key) => {
|
|
961
|
-
return shapeQueriesAndMutations.mutations[key] !== undefined;
|
|
962
|
-
})
|
|
963
|
-
};
|
|
964
|
-
}
|
|
965
942
|
/**
|
|
966
943
|
* Creates a schema property list chainable fn, allowing you to manipulate and
|
|
967
944
|
* iterate the properties in a schema.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "asprouse",
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
13
|
+
"node": ">=16"
|
|
14
14
|
},
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"module": "es/index.js",
|
|
@@ -24,15 +24,14 @@
|
|
|
24
24
|
"ajv": "^8.10.0",
|
|
25
25
|
"ajv-formats": "^2.1.1",
|
|
26
26
|
"blueimp-md5": "^2.10.0",
|
|
27
|
-
"jsonpath-plus": "^6.0.1",
|
|
28
27
|
"lodash": "^4.17.20",
|
|
29
28
|
"minimatch": "^3.0.4",
|
|
30
29
|
"p-reduce": "^2.1.0",
|
|
31
30
|
"semver": "^7.3.2",
|
|
32
31
|
"tiny-invariant": "^1.2.0",
|
|
33
|
-
"@takeshape/errors": "
|
|
34
|
-
"@takeshape/util": "
|
|
35
|
-
"@takeshape/json-schema": "
|
|
32
|
+
"@takeshape/errors": "9.0.0",
|
|
33
|
+
"@takeshape/util": "9.0.0",
|
|
34
|
+
"@takeshape/json-schema": "9.0.0"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -66,7 +65,6 @@
|
|
|
66
65
|
"build:es": "cross-env BABEL_MODULES=es babel src --out-dir es --extensions \".js,.ts\" --ignore '**/__tests__'",
|
|
67
66
|
"build:json": "cp -r src/schemas es && cp -r src/schemas dist",
|
|
68
67
|
"build:copy": "cp -rf build/src/* dist/",
|
|
69
|
-
"will-it-blend": "pnpm typecheck && pnpm lint --quiet && pnpm test --silent --coverage false",
|
|
70
68
|
"publish-json-schema": "node ./scripts/publish-json-schema.mjs",
|
|
71
69
|
"todo": "leasot 'src/**/*.{js,jsx,ts,tsx}'"
|
|
72
70
|
}
|