@tsed/schema 6.80.1 → 6.84.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,8 +1,8 @@
1
1
  import { Type } from "@tsed/core";
2
- import { JsonEntityStore } from "../domain/JsonEntityStore";
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>, JsonEntityStore>;
8
+ export declare function getInheritedStores(target: Type<any> | any): Map<Type<any>, JsonClassStore>;
@@ -1,9 +1,19 @@
1
- import type { JsonEntityStore } from "../domain/JsonEntityStore";
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
- * @ignore
12
+ * Get entity store from decorator args
13
+ * @param target
8
14
  */
9
- export declare function getJsonEntityStore<T extends JsonEntityStore = JsonEntityStore>(...args: any[]): JsonEntityStore;
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> | JsonEntityStore, options?: JsonSchemaOptions): 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 type { JsonEntityStore } from "../domain/JsonEntityStore";
2
+ import { JsonMethodStore } from "../domain/JsonMethodStore";
3
3
  /**
4
4
  * @ignore
5
5
  */
6
- export declare function getOperationsStores<T extends JsonEntityStore = JsonEntityStore>(target: Type<any> | any): Map<string, T>;
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 { JsonEntityStore } from "../domain/JsonEntityStore";
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 JsonEntityStore = JsonEntityStore>(target: Type<any> | any): Map<string | symbol | number, T>;
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 JsonEntityStore = JsonEntityStore>(target: Type<any> | any, options?: GetPropertiesOptions): Map<string | number | symbol, T>;
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.80.1",
3
+ "version": "6.84.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.80.1",
28
- "@tsed/openspec": "6.80.1",
29
- "change-case": "4.1.2",
27
+ "@tsed/core": "6.84.0",
28
+ "@tsed/openspec": "6.84.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.80.1",
42
- "@tsed/openspec": "^6.80.1"
42
+ "@tsed/core": "^6.84.0",
43
+ "@tsed/openspec": "^6.84.0"
43
44
  },
44
45
  "repository": "https://github.com/tsedio/tsed",
45
46
  "bugs": {
@@ -1,6 +0,0 @@
1
- import { DecoratorTypes, Type } from "@tsed/core";
2
- import type { JsonEntityStore } from "../domain/JsonEntityStore";
3
- /**
4
- * @ignore
5
- */
6
- export declare const JsonEntitiesContainer: Map<DecoratorTypes | "default", Type<JsonEntityStore>>;