@tsed/schema 6.79.0 → 6.81.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/benchmark/cold-start.js +17 -0
- package/lib/constants/httpStatusMessages.d.ts +270 -3
- package/lib/decorators/collections/collectionOf.d.ts +1 -1
- package/lib/decorators/common/jsonEntityFn.d.ts +2 -2
- package/lib/domain/JsonClassStore.d.ts +12 -0
- package/lib/domain/JsonEntityStore.d.ts +87 -47
- package/lib/domain/JsonMethodStore.d.ts +19 -0
- package/lib/domain/JsonOperationRoute.d.ts +10 -2
- package/lib/domain/JsonParameter.d.ts +1 -0
- package/lib/domain/JsonParameterStore.d.ts +30 -0
- package/lib/domain/JsonPropertyStore.d.ts +23 -0
- package/lib/domain/index.d.ts +4 -0
- package/lib/index.js +1340 -1038
- package/lib/index.js.map +1 -1
- package/lib/index.modern.js +1337 -1036
- package/lib/index.modern.js.map +1 -1
- package/lib/utils/getInheritedStores.d.ts +2 -2
- package/lib/utils/getJsonEntityStore.d.ts +13 -3
- package/lib/utils/getJsonSchema.d.ts +1 -2
- package/lib/utils/getOperationsStores.d.ts +2 -2
- package/lib/utils/getPropertiesStores.d.ts +3 -3
- package/package.json +7 -6
- package/lib/registries/JsonEntitiesContainer.d.ts +0 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
|
-
import {
|
|
2
|
+
import type { JsonClassStore } from "../domain/JsonClassStore";
|
|
3
3
|
/**
|
|
4
4
|
* Return store and his inherited stores
|
|
5
5
|
* @param target
|
|
6
6
|
* @ignore
|
|
7
7
|
*/
|
|
8
|
-
export declare function getInheritedStores(target: Type<any> | any): Map<Type<any>,
|
|
8
|
+
export declare function getInheritedStores(target: Type<any> | any): Map<Type<any>, JsonClassStore>;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Type } from "@tsed/core";
|
|
2
|
+
import { JsonEntityStore } from "../domain/JsonEntityStore";
|
|
3
|
+
import { JsonClassStore } from "../domain/JsonClassStore";
|
|
4
|
+
import { JsonPropertyStore } from "../domain/JsonPropertyStore";
|
|
5
|
+
import { JsonParameterStore } from "../domain/JsonParameterStore";
|
|
6
|
+
import { JsonMethodStore } from "../domain/JsonMethodStore";
|
|
2
7
|
/**
|
|
3
8
|
* @ignore
|
|
4
9
|
*/
|
|
5
10
|
export declare function isJsonEntityStore(model: any): model is JsonEntityStore;
|
|
6
11
|
/**
|
|
7
|
-
*
|
|
12
|
+
* Get entity store from decorator args
|
|
13
|
+
* @param target
|
|
8
14
|
*/
|
|
9
|
-
export declare function getJsonEntityStore<T extends
|
|
15
|
+
export declare function getJsonEntityStore<T extends JsonClassStore = JsonClassStore>(target: Type<any>): T;
|
|
16
|
+
export declare function getJsonEntityStore<T extends JsonPropertyStore = JsonPropertyStore>(target: Type<any> | any, propertyKey: string | symbol): T;
|
|
17
|
+
export declare function getJsonEntityStore<T extends JsonParameterStore = JsonParameterStore>(target: Type<any> | any, propertyKey: string | symbol, index: number): T;
|
|
18
|
+
export declare function getJsonEntityStore<T extends JsonMethodStore = JsonMethodStore>(target: Type<any> | any, propertyKey: string | symbol, descriptor: PropertyDescriptor): T;
|
|
19
|
+
export declare function getJsonEntityStore<T extends JsonEntityStore = JsonEntityStore>(...args: any[]): T;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
2
|
import "../components";
|
|
3
|
-
import type { JsonEntityStore } from "../domain/JsonEntityStore";
|
|
4
3
|
import { JsonSchemaOptions } from "../interfaces";
|
|
5
|
-
export declare function getJsonSchema(model: Type<any> |
|
|
4
|
+
export declare function getJsonSchema(model: Type<any> | any, options?: JsonSchemaOptions): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
|
-
import
|
|
2
|
+
import { JsonMethodStore } from "../domain/JsonMethodStore";
|
|
3
3
|
/**
|
|
4
4
|
* @ignore
|
|
5
5
|
*/
|
|
6
|
-
export declare function getOperationsStores<T extends
|
|
6
|
+
export declare function getOperationsStores<T extends JsonMethodStore = JsonMethodStore>(target: Type<any> | any): Map<string, T>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
|
-
import type {
|
|
2
|
+
import type { JsonPropertyStore } from "../domain/JsonPropertyStore";
|
|
3
3
|
/**
|
|
4
4
|
* Return the list of properties including properties from inherited classes
|
|
5
5
|
* @param target
|
|
6
6
|
* @ignore
|
|
7
7
|
*/
|
|
8
|
-
export declare function getPropertiesStores<T extends
|
|
8
|
+
export declare function getPropertiesStores<T extends JsonPropertyStore = JsonPropertyStore>(target: Type<any> | any): Map<string | symbol | number, T>;
|
|
9
9
|
/**
|
|
10
10
|
* @ignore
|
|
11
11
|
*/
|
|
@@ -17,4 +17,4 @@ export interface GetPropertiesOptions {
|
|
|
17
17
|
/**
|
|
18
18
|
* @ignore
|
|
19
19
|
*/
|
|
20
|
-
export declare function getProperties<T extends
|
|
20
|
+
export declare function getProperties<T extends JsonPropertyStore = JsonPropertyStore>(target: Type<any> | any, options?: GetPropertiesOptions): Map<string | number | symbol, T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/schema",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.81.0",
|
|
4
4
|
"description": "JsonSchema module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
"build": "microbundle --target node --no-compress --format modern,cjs --tsconfig ./tsconfig.compile.json"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tsed/core": "6.
|
|
28
|
-
"@tsed/openspec": "6.
|
|
29
|
-
"
|
|
27
|
+
"@tsed/core": "6.81.0",
|
|
28
|
+
"@tsed/openspec": "6.81.0",
|
|
29
|
+
"camel-case": "4.1.2",
|
|
30
30
|
"micromatch": "4.0.2",
|
|
31
|
+
"pascal-case": "3.1.2",
|
|
31
32
|
"tslib": "2.2.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
"fs-extra": "9.0.1"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@tsed/core": "^6.
|
|
42
|
-
"@tsed/openspec": "^6.
|
|
42
|
+
"@tsed/core": "^6.81.0",
|
|
43
|
+
"@tsed/openspec": "^6.81.0"
|
|
43
44
|
},
|
|
44
45
|
"repository": "https://github.com/tsedio/tsed",
|
|
45
46
|
"bugs": {
|