framework-do-dede 1.0.41 → 2.0.1
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/index.d.ts +3 -3
- package/dist/protocols/DeleteRepositoryBy.d.ts +3 -0
- package/dist/protocols/ExistsBy.d.ts +3 -0
- package/dist/protocols/NotExistsBy.d.ts +3 -0
- package/dist/protocols/NotExistsBy.js +1 -0
- package/dist/protocols/{RequestData.d.ts → Request.d.ts} +1 -1
- package/dist/protocols/Request.js +1 -0
- package/dist/protocols/RequestMetricsHandler.d.ts +2 -2
- package/dist/protocols/RestoreRepository.d.ts +1 -2
- package/dist/protocols/RestoreRepositoryBy.d.ts +3 -0
- package/dist/protocols/RestoreRepositoryBy.js +1 -0
- package/dist/protocols/index.d.ts +5 -3
- package/package.json +1 -1
- package/dist/protocols/ExistsById.d.ts +0 -3
- /package/dist/protocols/{ExistsById.js → DeleteRepositoryBy.js} +0 -0
- /package/dist/protocols/{RequestData.js → ExistsBy.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Dede, Register as DedeRegister, Options as DedeOptions } from './dede';
|
|
2
2
|
import { Controller, Post, Put, Get, Delete, Patch, Validator, Middleware, Context, Inject, Restrict, Metrics, DbColumn, VirtualProperty, OffConsoleLog, Storage, Expose } from './decorators';
|
|
3
3
|
import { BadRequest, Conflict, Forbidden, HttpServer, NotFound, ServerError, Unauthorized, UnprocessableEntity } from './http';
|
|
4
|
-
import { Validation, HttpMiddleware, UseCase, CreateRepository,
|
|
4
|
+
import { Validation, HttpMiddleware, UseCase, CreateRepository, ExistsBy, DeleteRepository, DeleteRepositoryBy, UpdateRepository, RestoreRepository, RestoreRepositoryBy, RestoreManyRepository, RequestMetricsHandler, Request, RequestMetrics, HttpServerError, StorageGateway } from './protocols';
|
|
5
5
|
import { Entity } from './domain/Entity';
|
|
6
6
|
declare class UseCaseHandler {
|
|
7
|
-
static load<T extends UseCase<any, any>>(useCaseClass: new (...args: any[]) => T, request?:
|
|
7
|
+
static load<T extends UseCase<any, any>>(useCaseClass: new (...args: any[]) => T, request?: Request): T;
|
|
8
8
|
}
|
|
9
|
-
export { UseCase, HttpMiddleware, Validation, RequestMetricsHandler, RequestMetrics, HttpServerError, CreateRepository, DeleteRepository, UpdateRepository, RestoreRepository,
|
|
9
|
+
export { UseCase, HttpMiddleware, Validation, RequestMetricsHandler, RequestMetrics, HttpServerError, CreateRepository, DeleteRepository, DeleteRepositoryBy, UpdateRepository, RestoreRepository, RestoreRepositoryBy, ExistsBy, RestoreManyRepository, Request, Dede, DedeRegister, DedeOptions, UseCaseHandler, ServerError, BadRequest, Conflict, Forbidden, HttpServer, NotFound, Unauthorized, UnprocessableEntity, Controller, Post, Put, Get, Delete, Patch, Validator, Middleware, Context, Inject, Entity, Restrict, DbColumn, VirtualProperty, Metrics, OffConsoleLog, StorageGateway, Storage, Expose };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Request } from './Request';
|
|
2
2
|
import type { RequestMetrics } from './RequestMetrics';
|
|
3
3
|
export interface RequestMetricsHandler {
|
|
4
|
-
handle(metrics: RequestMetrics, request?:
|
|
4
|
+
handle(metrics: RequestMetrics, request?: Request): Promise<void> | void;
|
|
5
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,13 +3,15 @@ import type { UseCase } from './UseCase';
|
|
|
3
3
|
import type { Validation } from './Validation';
|
|
4
4
|
import type { CreateRepository } from './CreateRepository';
|
|
5
5
|
import type { DeleteRepository } from './DeleteRepository';
|
|
6
|
+
import type { DeleteRepositoryBy } from './DeleteRepositoryBy';
|
|
6
7
|
import type { UpdateRepository } from './UpdateRepository';
|
|
7
8
|
import type { RestoreRepository } from './RestoreRepository';
|
|
8
|
-
import type {
|
|
9
|
+
import type { RestoreRepositoryBy } from './RestoreRepositoryBy';
|
|
10
|
+
import type { ExistsBy } from './ExistsBy';
|
|
9
11
|
import type { RestoreManyRepository } from './RestoreManyRepository';
|
|
10
12
|
import type { RequestMetricsHandler } from './RequestMetricsHandler';
|
|
11
|
-
import type {
|
|
13
|
+
import type { Request } from './Request';
|
|
12
14
|
import type { RequestMetrics } from './RequestMetrics';
|
|
13
15
|
import type { HttpServerError } from './HttpServerError';
|
|
14
16
|
import type { StorageGateway } from './StorageGateway';
|
|
15
|
-
export type {
|
|
17
|
+
export type { Request, RequestMetrics, HttpMiddleware, UseCase, Validation, CreateRepository, DeleteRepository, DeleteRepositoryBy, UpdateRepository, RestoreRepository, RestoreRepositoryBy, RestoreManyRepository, RequestMetricsHandler, HttpServerError, StorageGateway, ExistsBy };
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|