@takeshape/schema 11.63.3 → 11.63.7
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.
|
@@ -4,12 +4,13 @@ import type { SchemaWithRef } from '../types/index.ts';
|
|
|
4
4
|
import { QueryModel } from './query.ts';
|
|
5
5
|
import { ServiceConfig } from './service.ts';
|
|
6
6
|
import { ShapeModel } from './shape.ts';
|
|
7
|
+
import type { IProjectSchema } from './types.ts';
|
|
7
8
|
/**
|
|
8
9
|
* Model object representing a ProjectSchema.
|
|
9
10
|
* Intended to help make it easier to find the right utils
|
|
10
11
|
* and avoid direct schema json access where a util would be preferred.
|
|
11
12
|
*/
|
|
12
|
-
export declare class ProjectSchema {
|
|
13
|
+
export declare class ProjectSchema implements IProjectSchema {
|
|
13
14
|
private readonly _projectSchemaJSON;
|
|
14
15
|
private readonly _cache;
|
|
15
16
|
constructor(unfilteredProjectSchema: ProjectSchemaJSON);
|
package/dist/models/query.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { QueryJSON } from '../project-schema/index.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProjectSchema } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Create a model object representing a query or mutation.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export declare class QueryModel {
|
|
|
7
7
|
private readonly _queryType;
|
|
8
8
|
private readonly _queryName;
|
|
9
9
|
private readonly _rawQuery;
|
|
10
|
-
constructor(projectSchemaModel:
|
|
10
|
+
constructor(projectSchemaModel: IProjectSchema, _queryType: 'query' | 'mutation', _queryName: string);
|
|
11
11
|
get queryType(): "query" | "mutation";
|
|
12
12
|
get name(): string;
|
|
13
13
|
get json(): QueryJSON;
|
package/dist/models/service.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ServiceConfigJSON } from '../project-schema/index.ts';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProjectSchema } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Create a model object representing a service configuration.
|
|
5
5
|
*/
|
|
6
6
|
export declare class ServiceConfig {
|
|
7
7
|
private readonly _serviceId;
|
|
8
8
|
private readonly _storedServiceConfig;
|
|
9
|
-
constructor(projectSchemaModel:
|
|
9
|
+
constructor(projectSchemaModel: IProjectSchema, _serviceId: string);
|
|
10
10
|
get id(): string;
|
|
11
11
|
get json(): ServiceConfigJSON;
|
|
12
12
|
}
|
package/dist/models/shape.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ShapeJSON } from '../project-schema/index.ts';
|
|
2
2
|
import { type RefItem } from '../refs.ts';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IProjectSchema } from './types.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Create a shape model from either a ref item or a ref string such as `rick:Character`
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class ShapeModel {
|
|
|
9
9
|
private readonly _rawShape;
|
|
10
10
|
private readonly _shapeRefItem;
|
|
11
11
|
private readonly _shapeAtRef;
|
|
12
|
-
constructor(_projectSchemaModel:
|
|
12
|
+
constructor(_projectSchemaModel: IProjectSchema, refArg: RefItem | string);
|
|
13
13
|
get json(): ShapeJSON;
|
|
14
14
|
get id(): string;
|
|
15
15
|
get name(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "11.63.
|
|
3
|
+
"version": "11.63.7",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"p-reduce": "^2.1.0",
|
|
56
56
|
"semver": "^7.3.2",
|
|
57
57
|
"tiny-invariant": "^1.2.0",
|
|
58
|
-
"@takeshape/errors": "11.63.
|
|
59
|
-
"@takeshape/
|
|
60
|
-
"@takeshape/
|
|
58
|
+
"@takeshape/errors": "11.63.7",
|
|
59
|
+
"@takeshape/util": "11.63.7",
|
|
60
|
+
"@takeshape/json-schema": "11.63.7"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@takeshape/json-schema-to-typescript": "^11.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"glob": "^7.1.6",
|
|
73
73
|
"meow": "^9.0.0",
|
|
74
74
|
"shortid": "^2.2.15",
|
|
75
|
-
"@takeshape/infra": "11.63.
|
|
75
|
+
"@takeshape/infra": "11.63.7"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=20"
|