framework-do-dede 0.0.6 → 0.0.8
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/HttpMiddleware.d.ts +2 -2
- package/dist/UseCase.d.ts +2 -2
- package/dist/Validation.d.ts +2 -2
- package/dist/index.d.ts +8 -26
- package/package.json +1 -1
package/dist/HttpMiddleware.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare interface HttpMiddleware {
|
|
2
2
|
execute(input: any): Promise<any>
|
|
3
|
-
|
|
3
|
+
}
|
package/dist/UseCase.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare interface UseCase<Input, Output> {
|
|
2
2
|
execute(input: Input): Promise<Output>
|
|
3
|
-
}
|
|
3
|
+
}
|
package/dist/Validation.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare interface Validation {
|
|
2
2
|
validate(input: any): any;
|
|
3
|
-
}
|
|
3
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
1
|
import { Auth, Controller, Delete, Get, Inject, Middleware, Patch, Post, Put, Validator } from './decorators';
|
|
2
2
|
import { Dede, Options as DedeOptions, Register as DedeRegister } from './dede';
|
|
3
|
-
import { HttpMiddleware as HttpMiddlewareInterface, UseCase as UseCaseInterface, Validation as ValidationInterface } from './protocols';
|
|
4
3
|
import { ServerError } from './http';
|
|
5
4
|
import { UseCaseHandler } from './handlers';
|
|
6
5
|
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ServerError,
|
|
16
|
-
HttpMiddleware,
|
|
17
|
-
Validation,
|
|
18
|
-
UseCase,
|
|
19
|
-
Controller,
|
|
20
|
-
Post,
|
|
21
|
-
Put,
|
|
22
|
-
Get,
|
|
23
|
-
Delete,
|
|
24
|
-
Patch,
|
|
25
|
-
Validator,
|
|
26
|
-
Middleware,
|
|
27
|
-
Auth,
|
|
28
|
-
Inject
|
|
6
|
+
export declare interface HttpMiddleware {
|
|
7
|
+
execute(input: any): Promise<any>
|
|
8
|
+
}
|
|
9
|
+
export declare interface UseCase<Input, Output> {
|
|
10
|
+
execute(input: Input): Promise<Output>
|
|
11
|
+
}
|
|
12
|
+
export declare interface Validation {
|
|
13
|
+
validate(input: any): any;
|
|
29
14
|
}
|
|
30
15
|
|
|
31
16
|
export {
|
|
@@ -34,9 +19,6 @@ export {
|
|
|
34
19
|
DedeOptions,
|
|
35
20
|
UseCaseHandler,
|
|
36
21
|
ServerError,
|
|
37
|
-
HttpMiddleware,
|
|
38
|
-
Validation,
|
|
39
|
-
UseCase,
|
|
40
22
|
Controller,
|
|
41
23
|
Post,
|
|
42
24
|
Put,
|