fragment-ts 1.0.22 → 1.0.24

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.
@@ -180,7 +180,7 @@ class InitCommand {
180
180
  "migrate:revert": "fragment migrate:revert",
181
181
  },
182
182
  dependencies: {
183
- "fragment-ts": "^1.0.22",
183
+ "fragment-ts": "^1.0.24",
184
184
  "reflect-metadata": "^0.1.13",
185
185
  },
186
186
  devDependencies: {
@@ -0,0 +1,21 @@
1
+ export interface ClassMetadata {
2
+ target: Function;
3
+ type: "injectable" | "service" | "controller" | "repository" | "auto-configuration";
4
+ scope?: "singleton" | "request" | "transient";
5
+ path?: string;
6
+ }
7
+ export interface MethodMetadata {
8
+ target: any;
9
+ propertyKey: string;
10
+ method: string;
11
+ path: string;
12
+ paramMetadata: ParamMetadata[];
13
+ }
14
+ export interface ParamMetadata {
15
+ target: any;
16
+ propertyKey: string;
17
+ index: number;
18
+ type: "body" | "param" | "query" | "header" | "req" | "res" | "autowired" | "inject" | "inject-repo" | "value" | "qualifier";
19
+ paramName?: string;
20
+ }
21
+ //# sourceMappingURL=decoration.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decoration.types.d.ts","sourceRoot":"","sources":["../../../src/core/types/decoration.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EACA,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,oBAAoB,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,GAAG,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,aAAa,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,GAAG,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EACA,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,GACR,KAAK,GACL,KAAK,GACL,WAAW,GACX,QAAQ,GACR,aAAa,GACb,OAAO,GACP,WAAW,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=decoration.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decoration.types.js","sourceRoot":"","sources":["../../../src/core/types/decoration.types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fragment-ts",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Spring Boot-style framework for TypeScript with Express and TypeORM",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -173,7 +173,7 @@ export class InitCommand {
173
173
  "migrate:revert": "fragment migrate:revert",
174
174
  },
175
175
  dependencies: {
176
- "fragment-ts": "^1.0.22",
176
+ "fragment-ts": "^1.0.24",
177
177
  "reflect-metadata": "^0.1.13",
178
178
  },
179
179
  devDependencies: {
@@ -0,0 +1,38 @@
1
+ export interface ClassMetadata {
2
+ target: Function;
3
+ type:
4
+ | "injectable"
5
+ | "service"
6
+ | "controller"
7
+ | "repository"
8
+ | "auto-configuration";
9
+ scope?: "singleton" | "request" | "transient";
10
+ path?: string;
11
+ }
12
+
13
+ export interface MethodMetadata {
14
+ target: any;
15
+ propertyKey: string;
16
+ method: string;
17
+ path: string;
18
+ paramMetadata: ParamMetadata[];
19
+ }
20
+
21
+ export interface ParamMetadata {
22
+ target: any;
23
+ propertyKey: string;
24
+ index: number;
25
+ type:
26
+ | "body"
27
+ | "param"
28
+ | "query"
29
+ | "header"
30
+ | "req"
31
+ | "res"
32
+ | "autowired"
33
+ | "inject"
34
+ | "inject-repo"
35
+ | "value"
36
+ | "qualifier";
37
+ paramName?: string;
38
+ }