@decaf-ts/for-nest 0.7.0 → 0.9.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/lib/cjs/index.cjs +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/types/controllers.d.cts +2 -2
- package/lib/types/controllers.d.mts +2 -2
- package/lib/types/core-module.d.cts +1 -1
- package/lib/types/core-module.d.mts +1 -1
- package/lib/types/decaf-model/DecafModelModule.d.cts +1 -1
- package/lib/types/decaf-model/DecafModelModule.d.mts +1 -1
- package/lib/types/decaf-model/FromModelController.d.cts +2 -2
- package/lib/types/decaf-model/FromModelController.d.mts +2 -2
- package/lib/types/decaf-model/decorators/ApiOperationFromModel.d.cts +1 -1
- package/lib/types/decaf-model/decorators/ApiOperationFromModel.d.mts +1 -1
- package/lib/types/decaf-model/decorators/ApiParamsFromModel.d.cts +1 -1
- package/lib/types/decaf-model/decorators/ApiParamsFromModel.d.mts +1 -1
- package/lib/types/decaf-model/decorators/DecafParams.d.cts +1 -1
- package/lib/types/decaf-model/decorators/DecafParams.d.mts +1 -1
- package/lib/types/decaf-model/decorators/index.d.cts +7 -7
- package/lib/types/decaf-model/decorators/index.d.mts +7 -7
- package/lib/types/decaf-model/decorators/utils.d.cts +1 -1
- package/lib/types/decaf-model/decorators/utils.d.mts +1 -1
- package/lib/types/decaf-model/index.d.cts +3 -3
- package/lib/types/decaf-model/index.d.mts +3 -3
- package/lib/types/decaf-model/types.d.cts +1 -1
- package/lib/types/decaf-model/types.d.mts +1 -1
- package/lib/types/decaf-model/utils.d.cts +3 -3
- package/lib/types/decaf-model/utils.d.mts +3 -3
- package/lib/types/events-module/EventsController.d.cts +3 -3
- package/lib/types/events-module/EventsController.d.mts +3 -3
- package/lib/types/events-module/index.d.cts +2 -2
- package/lib/types/events-module/index.d.mts +2 -2
- package/lib/types/factory/NestBootstraper.d.cts +2 -2
- package/lib/types/factory/NestBootstraper.d.mts +2 -2
- package/lib/types/factory/errors/index.d.cts +1 -1
- package/lib/types/factory/errors/index.d.mts +1 -1
- package/lib/types/factory/exceptions/index.d.cts +2 -2
- package/lib/types/factory/exceptions/index.d.mts +2 -2
- package/lib/types/factory/index.d.cts +4 -4
- package/lib/types/factory/index.d.mts +4 -4
- package/lib/types/factory/openapi/SwaggerBuilder.d.cts +1 -1
- package/lib/types/factory/openapi/SwaggerBuilder.d.mts +1 -1
- package/lib/types/factory/openapi/index.d.cts +2 -2
- package/lib/types/factory/openapi/index.d.mts +2 -2
- package/lib/types/index.d.cts +14 -14
- package/lib/types/index.d.mts +14 -14
- package/lib/types/interceptors/AuthInterceptor.d.cts +1 -1
- package/lib/types/interceptors/AuthInterceptor.d.mts +1 -1
- package/lib/types/interceptors/DecafRequestHandlerInterceptor.d.cts +2 -2
- package/lib/types/interceptors/DecafRequestHandlerInterceptor.d.mts +2 -2
- package/lib/types/interceptors/context.d.cts +1 -1
- package/lib/types/interceptors/context.d.mts +1 -1
- package/lib/types/interceptors/index.d.cts +3 -3
- package/lib/types/interceptors/index.d.mts +3 -3
- package/lib/types/module.d.cts +1 -1
- package/lib/types/module.d.mts +1 -1
- package/lib/types/overrides/Adapter.d.cts +1 -1
- package/lib/types/overrides/Adapter.d.mts +1 -1
- package/lib/types/overrides/index.d.cts +5 -5
- package/lib/types/overrides/index.d.mts +5 -5
- package/lib/types/ram/RamRequestTransformer.d.cts +1 -1
- package/lib/types/ram/RamRequestTransformer.d.mts +1 -1
- package/lib/types/ram/index.d.cts +1 -1
- package/lib/types/ram/index.d.mts +1 -1
- package/lib/types/request/DecafAuthHandler.d.cts +1 -1
- package/lib/types/request/DecafAuthHandler.d.mts +1 -1
- package/lib/types/request/DecafHandlerExecutor.d.cts +2 -2
- package/lib/types/request/DecafHandlerExecutor.d.mts +2 -2
- package/lib/types/request/DecafRequestContext.d.cts +1 -1
- package/lib/types/request/DecafRequestContext.d.mts +1 -1
- package/lib/types/request/DecafResponseInterceptor.d.cts +1 -1
- package/lib/types/request/DecafResponseInterceptor.d.mts +1 -1
- package/lib/types/request/index.d.cts +4 -4
- package/lib/types/request/index.d.mts +4 -4
- package/lib/types/types.d.cts +2 -2
- package/lib/types/types.d.mts +2 -2
- package/package.json +1 -1
- package/lib/types/bin/cli.d.ts +0 -1
- package/lib/types/cli-module.d.ts +0 -11
- package/lib/types/constants.d.ts +0 -15
- package/lib/types/controllers.d.ts +0 -22
- package/lib/types/core-module.d.ts +0 -17
- package/lib/types/decaf-model/DecafModelModule.d.ts +0 -9
- package/lib/types/decaf-model/FromModelController.d.ts +0 -61
- package/lib/types/decaf-model/decorators/ApiOperationFromModel.d.ts +0 -30
- package/lib/types/decaf-model/decorators/ApiParamsFromModel.d.ts +0 -13
- package/lib/types/decaf-model/decorators/DecafBody.d.ts +0 -5
- package/lib/types/decaf-model/decorators/DecafParams.d.ts +0 -9
- package/lib/types/decaf-model/decorators/decorators.d.ts +0 -29
- package/lib/types/decaf-model/decorators/index.d.ts +0 -7
- package/lib/types/decaf-model/decorators/types.d.ts +0 -23
- package/lib/types/decaf-model/decorators/utils.d.ts +0 -11
- package/lib/types/decaf-model/index.d.ts +0 -3
- package/lib/types/decaf-model/types.d.ts +0 -7
- package/lib/types/decaf-model/utils.d.ts +0 -10
- package/lib/types/decoration.d.ts +0 -1
- package/lib/types/events-module/DecafStreamModule.d.ts +0 -4
- package/lib/types/events-module/EventsController.d.ts +0 -11
- package/lib/types/events-module/constant.d.ts +0 -1
- package/lib/types/events-module/index.d.ts +0 -2
- package/lib/types/events-module/utils.d.ts +0 -1
- package/lib/types/factory/NestBootstraper.d.ts +0 -224
- package/lib/types/factory/errors/cors.d.ts +0 -4
- package/lib/types/factory/errors/index.d.ts +0 -1
- package/lib/types/factory/errors/throttling.d.ts +0 -4
- package/lib/types/factory/exceptions/DecafErrorFilter.d.ts +0 -4
- package/lib/types/factory/exceptions/decorators.d.ts +0 -2
- package/lib/types/factory/exceptions/index.d.ts +0 -2
- package/lib/types/factory/index.d.ts +0 -4
- package/lib/types/factory/openapi/DtoBuilder.d.ts +0 -25
- package/lib/types/factory/openapi/SwaggerBuilder.d.ts +0 -10
- package/lib/types/factory/openapi/SwaggerCustomUI.d.ts +0 -22
- package/lib/types/factory/openapi/constants.d.ts +0 -27
- package/lib/types/factory/openapi/index.d.ts +0 -2
- package/lib/types/index.d.ts +0 -43
- package/lib/types/interceptors/AuthInterceptor.d.ts +0 -10
- package/lib/types/interceptors/DecafRequestHandlerInterceptor.d.ts +0 -57
- package/lib/types/interceptors/context.d.ts +0 -6
- package/lib/types/interceptors/index.d.ts +0 -3
- package/lib/types/module.d.ts +0 -8
- package/lib/types/overrides/Adapter.d.ts +0 -13
- package/lib/types/overrides/ModelBuilderExtensions.d.ts +0 -8
- package/lib/types/overrides/constants.d.ts +0 -21
- package/lib/types/overrides/decoration.d.ts +0 -30
- package/lib/types/overrides/helpers.d.ts +0 -11
- package/lib/types/overrides/index.d.ts +0 -6
- package/lib/types/overrides/overrides.d.ts +0 -1
- package/lib/types/ram/RamRequestTransformer.d.ts +0 -5
- package/lib/types/ram/index.d.ts +0 -1
- package/lib/types/request/DecafAuthHandler.d.ts +0 -10
- package/lib/types/request/DecafHandlerExecutor.d.ts +0 -52
- package/lib/types/request/DecafRequestContext.d.ts +0 -11
- package/lib/types/request/DecafResponseInterceptor.d.ts +0 -8
- package/lib/types/request/index.d.ts +0 -4
- package/lib/types/types.d.ts +0 -88
- package/lib/types/utils.d.ts +0 -2
package/lib/cjs/index.cjs
CHANGED
|
@@ -57,7 +57,7 @@ __exportStar(require("./events-module/index.cjs"), exports);
|
|
|
57
57
|
* @constant
|
|
58
58
|
* @type {string}
|
|
59
59
|
*/
|
|
60
|
-
exports.VERSION = "0.
|
|
60
|
+
exports.VERSION = "0.8.0";
|
|
61
61
|
exports.PACKAGE_NAME = "@decaf-ts/for-nest";
|
|
62
62
|
decoration_1.Metadata.allowReregistration(true);
|
|
63
63
|
decoration_1.Metadata.registerLibrary(exports.PACKAGE_NAME, exports.VERSION);
|
package/lib/esm/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export * from "./events-module/index.js";
|
|
|
40
40
|
* @constant
|
|
41
41
|
* @type {string}
|
|
42
42
|
*/
|
|
43
|
-
export const VERSION = "0.
|
|
43
|
+
export const VERSION = "0.8.0";
|
|
44
44
|
export const PACKAGE_NAME = "@decaf-ts/for-nest";
|
|
45
45
|
Metadata.allowReregistration(true);
|
|
46
46
|
Metadata.registerLibrary(PACKAGE_NAME, VERSION);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context, ContextOf, ContextualizedArgs, FlagsOf, MaybeContextualArg, MethodOrOperation, ModelService, Repo, Service } from "@decaf-ts/core";
|
|
2
2
|
import { type Request } from "express";
|
|
3
|
-
import { DecafServerCtx } from "./constants.
|
|
3
|
+
import { DecafServerCtx } from "./constants.d.cts";
|
|
4
4
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { DecafRequestContext } from "./request/DecafRequestContext.
|
|
5
|
+
import { DecafRequestContext } from "./request/DecafRequestContext.d.cts";
|
|
6
6
|
export declare abstract class DecafController<CONTEXT extends DecafServerCtx> extends Service<CONTEXT> {
|
|
7
7
|
protected readonly clientContext: DecafRequestContext;
|
|
8
8
|
protected constructor(clientContext: DecafRequestContext, name: string);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context, ContextOf, ContextualizedArgs, FlagsOf, MaybeContextualArg, MethodOrOperation, ModelService, Repo, Service } from "@decaf-ts/core";
|
|
2
2
|
import { type Request } from "express";
|
|
3
|
-
import { DecafServerCtx } from "./constants.
|
|
3
|
+
import { DecafServerCtx } from "./constants.d.mts";
|
|
4
4
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { DecafRequestContext } from "./request/DecafRequestContext.
|
|
5
|
+
import { DecafRequestContext } from "./request/DecafRequestContext.d.mts";
|
|
6
6
|
export declare abstract class DecafController<CONTEXT extends DecafServerCtx> extends Service<CONTEXT> {
|
|
7
7
|
protected readonly clientContext: DecafRequestContext;
|
|
8
8
|
protected constructor(clientContext: DecafRequestContext, name: string);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, OnApplicationShutdown } from "@nestjs/common";
|
|
2
2
|
import { ModuleRef } from "@nestjs/core";
|
|
3
|
-
import type { DecafModuleOptions } from "./types.
|
|
3
|
+
import type { DecafModuleOptions } from "./types.d.cts";
|
|
4
4
|
import { Adapter, PersistenceService } from "@decaf-ts/core";
|
|
5
5
|
import { Logger } from "@decaf-ts/logging";
|
|
6
6
|
export declare class DecafCoreModule<CONF, ADAPTER extends Adapter<CONF, any, any, any>> implements OnApplicationShutdown {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule, OnApplicationShutdown } from "@nestjs/common";
|
|
2
2
|
import { ModuleRef } from "@nestjs/core";
|
|
3
|
-
import type { DecafModuleOptions } from "./types.
|
|
3
|
+
import type { DecafModuleOptions } from "./types.d.mts";
|
|
4
4
|
import { Adapter, PersistenceService } from "@decaf-ts/core";
|
|
5
5
|
import { Logger } from "@decaf-ts/logging";
|
|
6
6
|
export declare class DecafCoreModule<CONF, ADAPTER extends Adapter<CONF, any, any, any>> implements OnApplicationShutdown {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModule, Provider } from "@nestjs/common";
|
|
2
|
-
import { DecafModuleOptions } from "../types.
|
|
2
|
+
import { DecafModuleOptions } from "../types.d.cts";
|
|
3
3
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
4
4
|
export declare function getModuleFor(flavour: string): {
|
|
5
5
|
new (): {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicModule, Provider } from "@nestjs/common";
|
|
2
|
-
import { DecafModuleOptions } from "../types.
|
|
2
|
+
import { DecafModuleOptions } from "../types.d.mts";
|
|
3
3
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
4
4
|
export declare function getModuleFor(flavour: string): {
|
|
5
5
|
new (): {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelService, type Repo } from "@decaf-ts/core";
|
|
2
2
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { type DecafModelRoute } from "./decorators/index.
|
|
4
|
-
import { ControllerConstructor } from "./types.
|
|
3
|
+
import { type DecafModelRoute } from "./decorators/index.d.cts";
|
|
4
|
+
import { ControllerConstructor } from "./types.d.cts";
|
|
5
5
|
import "../overrides";
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ModelService, type Repo } from "@decaf-ts/core";
|
|
2
2
|
import { Model, ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { type DecafModelRoute } from "./decorators/index.
|
|
4
|
-
import { ControllerConstructor } from "./types.
|
|
3
|
+
import { type DecafModelRoute } from "./decorators/index.d.mts";
|
|
4
|
+
import { ControllerConstructor } from "./types.d.mts";
|
|
5
5
|
import "../overrides";
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CrudOperations } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { HttpVerbs } from "./types.
|
|
3
|
+
import { HttpVerbs } from "./types.d.cts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Determines if a given CRUD operation is blocked for a specific model constructor.
|
|
6
6
|
* @summary Retrieves the operation-blocking handler metadata stored on the provided model constructor (under `OperationKeys.REFLECT + OperationKeys.BLOCK`), executes it (if present) with its persisted arguments plus the requested operation, and returns whether the operation is blocked. If no handler exists, the operation is considered allowed (returns `false`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CrudOperations } from "@decaf-ts/db-decorators";
|
|
2
2
|
import { ModelConstructor } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import { HttpVerbs } from "./types.
|
|
3
|
+
import { HttpVerbs } from "./types.d.mts";
|
|
4
4
|
/**
|
|
5
5
|
* @description Determines if a given CRUD operation is blocked for a specific model constructor.
|
|
6
6
|
* @summary Retrieves the operation-blocking handler metadata stored on the provided model constructor (under `OperationKeys.REFLECT + OperationKeys.BLOCK`), executes it (if present) with its persisted arguments plus the requested operation, and returns whether the operation is blocked. If no handler exists, the operation is considered allowed (returns `false`).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DecafApiProperty } from "./types.
|
|
1
|
+
import type { DecafApiProperty } from "./types.d.cts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Applies a set of Swagger `@ApiParam` decorators generated from a typed specification array.
|
|
4
4
|
* @summary Transforms each entry of the provided `ApiParam[]` into a corresponding `@ApiParam()` decorator (defaulting `description`, `required`, and `type` when omitted) and composes them into a single decorator via Nest's `applyDecorators`. Useful for synchronizing runtime route params with OpenAPI documentation in a concise, declarative way.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DecafApiProperty } from "./types.
|
|
1
|
+
import type { DecafApiProperty } from "./types.d.mts";
|
|
2
2
|
/**
|
|
3
3
|
* @description Applies a set of Swagger `@ApiParam` decorators generated from a typed specification array.
|
|
4
4
|
* @summary Transforms each entry of the provided `ApiParam[]` into a corresponding `@ApiParam()` decorator (defaulting `description`, `required`, and `type` when omitted) and composes them into a single decorator via Nest's `applyDecorators`. Useful for synchronizing runtime route params with OpenAPI documentation in a concise, declarative way.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafApiProperty } from "./types.
|
|
1
|
+
import { DecafApiProperty } from "./types.d.cts";
|
|
2
2
|
/**
|
|
3
3
|
* @description A higher-level decorator factory that leverages `OrderedParams` to extract route parameters in a specific order derived from a list of `ApiParam` definitions.
|
|
4
4
|
* @summary `DecafParams` computes the order of route parameters based on the provided `ApiParam[]` specification (using each element’s `name`), then applies `OrderedParams(order)` as a parameter decorator. This enables parameter-level binding that remains consistent with the documented API parameter metadata.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafApiProperty } from "./types.
|
|
1
|
+
import { DecafApiProperty } from "./types.d.mts";
|
|
2
2
|
/**
|
|
3
3
|
* @description A higher-level decorator factory that leverages `OrderedParams` to extract route parameters in a specific order derived from a list of `ApiParam` definitions.
|
|
4
4
|
* @summary `DecafParams` computes the order of route parameters based on the provided `ApiParam[]` specification (using each element’s `name`), then applies `OrderedParams(order)` as a parameter decorator. This enables parameter-level binding that remains consistent with the documented API parameter metadata.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./types.
|
|
2
|
-
export * from "./ApiOperationFromModel.
|
|
3
|
-
export * from "./ApiParamsFromModel.
|
|
4
|
-
export * from "./DecafBody.
|
|
5
|
-
export * from "./DecafParams.
|
|
6
|
-
export * from "./utils.
|
|
7
|
-
export * from "./decorators.
|
|
1
|
+
export * from "./types.d.cts";
|
|
2
|
+
export * from "./ApiOperationFromModel.d.cts";
|
|
3
|
+
export * from "./ApiParamsFromModel.d.cts";
|
|
4
|
+
export * from "./DecafBody.d.cts";
|
|
5
|
+
export * from "./DecafParams.d.cts";
|
|
6
|
+
export * from "./utils.d.cts";
|
|
7
|
+
export * from "./decorators.d.cts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./types.
|
|
2
|
-
export * from "./ApiOperationFromModel.
|
|
3
|
-
export * from "./ApiParamsFromModel.
|
|
4
|
-
export * from "./DecafBody.
|
|
5
|
-
export * from "./DecafParams.
|
|
6
|
-
export * from "./utils.
|
|
7
|
-
export * from "./decorators.
|
|
1
|
+
export * from "./types.d.mts";
|
|
2
|
+
export * from "./ApiOperationFromModel.d.mts";
|
|
3
|
+
export * from "./ApiParamsFromModel.d.mts";
|
|
4
|
+
export * from "./DecafBody.d.mts";
|
|
5
|
+
export * from "./DecafParams.d.mts";
|
|
6
|
+
export * from "./utils.d.mts";
|
|
7
|
+
export * from "./decorators.d.mts";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./decorators/index.
|
|
2
|
-
export * from "./DecafModelModule.
|
|
3
|
-
export * from "./FromModelController.
|
|
1
|
+
export * from "./decorators/index.d.cts";
|
|
2
|
+
export * from "./DecafModelModule.d.cts";
|
|
3
|
+
export * from "./FromModelController.d.cts";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./decorators/index.
|
|
2
|
-
export * from "./DecafModelModule.
|
|
3
|
-
export * from "./FromModelController.
|
|
1
|
+
export * from "./decorators/index.d.mts";
|
|
2
|
+
export * from "./DecafModelModule.d.mts";
|
|
3
|
+
export * from "./FromModelController.d.mts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafModelController } from "../controllers.
|
|
1
|
+
import { DecafModelController } from "../controllers.d.cts";
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
export type ControllerConstructor<T extends Model<boolean>> = new (...args: any[]) => DecafModelController<T>;
|
|
4
4
|
export type DecoratorBundle = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafModelController } from "../controllers.
|
|
1
|
+
import { DecafModelController } from "../controllers.d.mts";
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
export type ControllerConstructor<T extends Model<boolean>> = new (...args: any[]) => DecafModelController<T>;
|
|
4
4
|
export type DecoratorBundle = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type DecoratorBundle } from "./types.
|
|
2
|
-
import { type DecafParamProps, HttpVerbs } from "./decorators/index.
|
|
1
|
+
import { type DecoratorBundle } from "./types.d.cts";
|
|
2
|
+
import { type DecafParamProps, HttpVerbs } from "./decorators/index.d.cts";
|
|
3
3
|
import { DirectionLimitOffset, ModelService, Repo } from "@decaf-ts/core";
|
|
4
4
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { DecafModelController } from "../controllers.
|
|
5
|
+
import { DecafModelController } from "../controllers.d.cts";
|
|
6
6
|
export declare function getApiDecorators(methodName: string, routePath: string, httpVerb: HttpVerbs, includeQueryParams?: boolean): DecoratorBundle;
|
|
7
7
|
export declare function applyApiDecorators(target: any, methodName: string, descriptor: PropertyDescriptor, decorators: DecoratorBundle): void;
|
|
8
8
|
export declare function resolvePersistenceMethod<T extends Model<boolean>>(persistence: Repo<T> | ModelService<T>, methodName: string, ...args: any[]): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type DecoratorBundle } from "./types.
|
|
2
|
-
import { type DecafParamProps, HttpVerbs } from "./decorators/index.
|
|
1
|
+
import { type DecoratorBundle } from "./types.d.mts";
|
|
2
|
+
import { type DecafParamProps, HttpVerbs } from "./decorators/index.d.mts";
|
|
3
3
|
import { DirectionLimitOffset, ModelService, Repo } from "@decaf-ts/core";
|
|
4
4
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
5
|
-
import { DecafModelController } from "../controllers.
|
|
5
|
+
import { DecafModelController } from "../controllers.d.mts";
|
|
6
6
|
export declare function getApiDecorators(methodName: string, routePath: string, httpVerb: HttpVerbs, includeQueryParams?: boolean): DecoratorBundle;
|
|
7
7
|
export declare function applyApiDecorators(target: any, methodName: string, descriptor: PropertyDescriptor, decorators: DecoratorBundle): void;
|
|
8
8
|
export declare function resolvePersistenceMethod<T extends Model<boolean>>(persistence: Repo<T> | ModelService<T>, methodName: string, ...args: any[]): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DecafController } from "../controllers.
|
|
2
|
-
import { DecafRequestContext } from "../request/index.
|
|
1
|
+
import { DecafController } from "../controllers.d.cts";
|
|
2
|
+
import { DecafRequestContext } from "../request/index.d.cts";
|
|
3
3
|
import { MessageEvent } from "@nestjs/common";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
import { DecafServerCtx } from "../constants.
|
|
5
|
+
import { DecafServerCtx } from "../constants.d.cts";
|
|
6
6
|
export declare class EventsController extends DecafController<DecafServerCtx> {
|
|
7
7
|
private readonly adapters;
|
|
8
8
|
constructor(clientContext: DecafRequestContext, flavours: string[]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DecafController } from "../controllers.
|
|
2
|
-
import { DecafRequestContext } from "../request/index.
|
|
1
|
+
import { DecafController } from "../controllers.d.mts";
|
|
2
|
+
import { DecafRequestContext } from "../request/index.d.mts";
|
|
3
3
|
import { MessageEvent } from "@nestjs/common";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
import { DecafServerCtx } from "../constants.
|
|
5
|
+
import { DecafServerCtx } from "../constants.d.mts";
|
|
6
6
|
export declare class EventsController extends DecafController<DecafServerCtx> {
|
|
7
7
|
private readonly adapters;
|
|
8
8
|
constructor(clientContext: DecafRequestContext, flavours: string[]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./EventsController.
|
|
2
|
-
export * from "./DecafStreamModule.
|
|
1
|
+
export * from "./EventsController.d.cts";
|
|
2
|
+
export * from "./DecafStreamModule.d.cts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./EventsController.
|
|
2
|
-
export * from "./DecafStreamModule.
|
|
1
|
+
export * from "./EventsController.d.mts";
|
|
2
|
+
export * from "./DecafStreamModule.d.mts";
|
|
@@ -56,8 +56,8 @@ export interface SwaggerSetupOptions {
|
|
|
56
56
|
* @example
|
|
57
57
|
* ```ts
|
|
58
58
|
* import { NestFactory } from "@nestjs/core";
|
|
59
|
-
* import { AppModule } from "./app.module.
|
|
60
|
-
* import { MyLogger } from "./MyLogger.
|
|
59
|
+
* import { AppModule } from "./app.module.d.cts";
|
|
60
|
+
* import { MyLogger } from "./MyLogger.d.cts";
|
|
61
61
|
* import { NestBootstraper } from "@decaf-ts/for-nest";
|
|
62
62
|
*
|
|
63
63
|
* async function bootstrap() {
|
|
@@ -56,8 +56,8 @@ export interface SwaggerSetupOptions {
|
|
|
56
56
|
* @example
|
|
57
57
|
* ```ts
|
|
58
58
|
* import { NestFactory } from "@nestjs/core";
|
|
59
|
-
* import { AppModule } from "./app.module.
|
|
60
|
-
* import { MyLogger } from "./MyLogger.
|
|
59
|
+
* import { AppModule } from "./app.module.d.mts";
|
|
60
|
+
* import { MyLogger } from "./MyLogger.d.mts";
|
|
61
61
|
* import { NestBootstraper } from "@decaf-ts/for-nest";
|
|
62
62
|
*
|
|
63
63
|
* async function bootstrap() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./cors.
|
|
1
|
+
export * from "./cors.d.cts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./cors.
|
|
1
|
+
export * from "./cors.d.mts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./DecafErrorFilter.
|
|
2
|
-
export * from "./decorators.
|
|
1
|
+
export * from "./DecafErrorFilter.d.cts";
|
|
2
|
+
export * from "./decorators.d.cts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./DecafErrorFilter.
|
|
2
|
-
export * from "./decorators.
|
|
1
|
+
export * from "./DecafErrorFilter.d.mts";
|
|
2
|
+
export * from "./decorators.d.mts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./errors/index.
|
|
2
|
-
export * from "./exceptions/index.
|
|
3
|
-
export * from "./openapi/index.
|
|
4
|
-
export * from "./NestBootstraper.
|
|
1
|
+
export * from "./errors/index.d.cts";
|
|
2
|
+
export * from "./exceptions/index.d.cts";
|
|
3
|
+
export * from "./openapi/index.d.cts";
|
|
4
|
+
export * from "./NestBootstraper.d.cts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./errors/index.
|
|
2
|
-
export * from "./exceptions/index.
|
|
3
|
-
export * from "./openapi/index.
|
|
4
|
-
export * from "./NestBootstraper.
|
|
1
|
+
export * from "./errors/index.d.mts";
|
|
2
|
+
export * from "./exceptions/index.d.mts";
|
|
3
|
+
export * from "./openapi/index.d.mts";
|
|
4
|
+
export * from "./NestBootstraper.d.mts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./SwaggerBuilder.
|
|
2
|
-
export * from "./DtoBuilder.
|
|
1
|
+
export * from "./SwaggerBuilder.d.cts";
|
|
2
|
+
export * from "./DtoBuilder.d.cts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./SwaggerBuilder.
|
|
2
|
-
export * from "./DtoBuilder.
|
|
1
|
+
export * from "./SwaggerBuilder.d.mts";
|
|
2
|
+
export * from "./DtoBuilder.d.mts";
|
package/lib/types/index.d.cts
CHANGED
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
* to easily import and use specific parts of the library as needed.
|
|
21
21
|
*/
|
|
22
22
|
import "./decoration";
|
|
23
|
-
export * from "./decoration.
|
|
24
|
-
export * from "./decaf-model/index.
|
|
25
|
-
export * from "./factory/index.
|
|
26
|
-
export * from "./interceptors/index.
|
|
27
|
-
export * from "./overrides/index.
|
|
28
|
-
export * from "./request/index.
|
|
29
|
-
export * from "./constants.
|
|
30
|
-
export * from "./controllers.
|
|
31
|
-
export * from "./module.
|
|
32
|
-
export * from "./core-module.
|
|
33
|
-
export * from "./types.
|
|
34
|
-
export * from "./utils.
|
|
35
|
-
export * from "./events-module/index.
|
|
23
|
+
export * from "./decoration.d.cts";
|
|
24
|
+
export * from "./decaf-model/index.d.cts";
|
|
25
|
+
export * from "./factory/index.d.cts";
|
|
26
|
+
export * from "./interceptors/index.d.cts";
|
|
27
|
+
export * from "./overrides/index.d.cts";
|
|
28
|
+
export * from "./request/index.d.cts";
|
|
29
|
+
export * from "./constants.d.cts";
|
|
30
|
+
export * from "./controllers.d.cts";
|
|
31
|
+
export * from "./module.d.cts";
|
|
32
|
+
export * from "./core-module.d.cts";
|
|
33
|
+
export * from "./types.d.cts";
|
|
34
|
+
export * from "./utils.d.cts";
|
|
35
|
+
export * from "./events-module/index.d.cts";
|
|
36
36
|
/**
|
|
37
37
|
* Represents the current version of the ts-workspace module.
|
|
38
38
|
* The actual version number is replaced during the build process.
|
|
39
39
|
* @constant
|
|
40
40
|
* @type {string}
|
|
41
41
|
*/
|
|
42
|
-
export declare const VERSION = "0.
|
|
42
|
+
export declare const VERSION = "0.8.0";
|
|
43
43
|
export declare const PACKAGE_NAME = "@decaf-ts/for-nest";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
* to easily import and use specific parts of the library as needed.
|
|
21
21
|
*/
|
|
22
22
|
import "./decoration";
|
|
23
|
-
export * from "./decoration.
|
|
24
|
-
export * from "./decaf-model/index.
|
|
25
|
-
export * from "./factory/index.
|
|
26
|
-
export * from "./interceptors/index.
|
|
27
|
-
export * from "./overrides/index.
|
|
28
|
-
export * from "./request/index.
|
|
29
|
-
export * from "./constants.
|
|
30
|
-
export * from "./controllers.
|
|
31
|
-
export * from "./module.
|
|
32
|
-
export * from "./core-module.
|
|
33
|
-
export * from "./types.
|
|
34
|
-
export * from "./utils.
|
|
35
|
-
export * from "./events-module/index.
|
|
23
|
+
export * from "./decoration.d.mts";
|
|
24
|
+
export * from "./decaf-model/index.d.mts";
|
|
25
|
+
export * from "./factory/index.d.mts";
|
|
26
|
+
export * from "./interceptors/index.d.mts";
|
|
27
|
+
export * from "./overrides/index.d.mts";
|
|
28
|
+
export * from "./request/index.d.mts";
|
|
29
|
+
export * from "./constants.d.mts";
|
|
30
|
+
export * from "./controllers.d.mts";
|
|
31
|
+
export * from "./module.d.mts";
|
|
32
|
+
export * from "./core-module.d.mts";
|
|
33
|
+
export * from "./types.d.mts";
|
|
34
|
+
export * from "./utils.d.mts";
|
|
35
|
+
export * from "./events-module/index.d.mts";
|
|
36
36
|
/**
|
|
37
37
|
* Represents the current version of the ts-workspace module.
|
|
38
38
|
* The actual version number is replaced during the build process.
|
|
39
39
|
* @constant
|
|
40
40
|
* @type {string}
|
|
41
41
|
*/
|
|
42
|
-
export declare const VERSION = "0.
|
|
42
|
+
export declare const VERSION = "0.8.0";
|
|
43
43
|
export declare const PACKAGE_NAME = "@decaf-ts/for-nest";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NestInterceptor, ExecutionContext, CallHandler } from "@nestjs/common";
|
|
2
2
|
import { Reflector } from "@nestjs/core";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
-
import type { AuthHandler } from "../types.
|
|
4
|
+
import type { AuthHandler } from "../types.d.cts";
|
|
5
5
|
export declare class AuthInterceptor implements NestInterceptor {
|
|
6
6
|
private readonly reflector;
|
|
7
7
|
private readonly authHandler?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NestInterceptor, ExecutionContext, CallHandler } from "@nestjs/common";
|
|
2
2
|
import { Reflector } from "@nestjs/core";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
-
import type { AuthHandler } from "../types.
|
|
4
|
+
import type { AuthHandler } from "../types.d.mts";
|
|
5
5
|
export declare class AuthInterceptor implements NestInterceptor {
|
|
6
6
|
private readonly reflector;
|
|
7
7
|
private readonly authHandler?;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
|
-
import { DecafHandlerExecutor, DecafRequestContext } from "../request/index.
|
|
3
|
-
import { DecafServerCtx } from "../constants.
|
|
2
|
+
import { DecafHandlerExecutor, DecafRequestContext } from "../request/index.d.cts";
|
|
3
|
+
import { DecafServerCtx } from "../constants.d.cts";
|
|
4
4
|
import "../overrides";
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
|
-
import { DecafHandlerExecutor, DecafRequestContext } from "../request/index.
|
|
3
|
-
import { DecafServerCtx } from "../constants.
|
|
2
|
+
import { DecafHandlerExecutor, DecafRequestContext } from "../request/index.d.mts";
|
|
3
|
+
import { DecafServerCtx } from "../constants.d.mts";
|
|
4
4
|
import "../overrides";
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafServerCtx } from "../constants.
|
|
1
|
+
import { DecafServerCtx } from "../constants.d.cts";
|
|
2
2
|
import { FlagsOf } from "@decaf-ts/core";
|
|
3
3
|
export declare abstract class RequestToContextTransformer<C extends DecafServerCtx> {
|
|
4
4
|
abstract from(req: any, ...args: any[]): Promise<FlagsOf<C>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecafServerCtx } from "../constants.
|
|
1
|
+
import { DecafServerCtx } from "../constants.d.mts";
|
|
2
2
|
import { FlagsOf } from "@decaf-ts/core";
|
|
3
3
|
export declare abstract class RequestToContextTransformer<C extends DecafServerCtx> {
|
|
4
4
|
abstract from(req: any, ...args: any[]): Promise<FlagsOf<C>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./DecafRequestHandlerInterceptor.
|
|
2
|
-
export * from "./AuthInterceptor.
|
|
3
|
-
export * from "./context.
|
|
1
|
+
export * from "./DecafRequestHandlerInterceptor.d.cts";
|
|
2
|
+
export * from "./AuthInterceptor.d.cts";
|
|
3
|
+
export * from "./context.d.cts";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./DecafRequestHandlerInterceptor.
|
|
2
|
-
export * from "./AuthInterceptor.
|
|
3
|
-
export * from "./context.
|
|
1
|
+
export * from "./DecafRequestHandlerInterceptor.d.mts";
|
|
2
|
+
export * from "./AuthInterceptor.d.mts";
|
|
3
|
+
export * from "./context.d.mts";
|
package/lib/types/module.d.cts
CHANGED
package/lib/types/module.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@decaf-ts/core";
|
|
2
2
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { RequestToContextTransformer } from "../interceptors/context.
|
|
3
|
+
import { RequestToContextTransformer } from "../interceptors/context.d.cts";
|
|
4
4
|
import { ContextOf } from "@decaf-ts/core";
|
|
5
5
|
declare module "@decaf-ts/core" {
|
|
6
6
|
namespace Adapter {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@decaf-ts/core";
|
|
2
2
|
import type { Constructor } from "@decaf-ts/decoration";
|
|
3
|
-
import { RequestToContextTransformer } from "../interceptors/context.
|
|
3
|
+
import { RequestToContextTransformer } from "../interceptors/context.d.mts";
|
|
4
4
|
import { ContextOf } from "@decaf-ts/core";
|
|
5
5
|
declare module "@decaf-ts/core" {
|
|
6
6
|
namespace Adapter {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./overrides";
|
|
2
|
-
export * from "./Adapter.
|
|
3
|
-
export * from "./constants.
|
|
4
|
-
export * from "./decoration.
|
|
5
|
-
export * from "./overrides.
|
|
6
|
-
export * from "./ModelBuilderExtensions.
|
|
2
|
+
export * from "./Adapter.d.cts";
|
|
3
|
+
export * from "./constants.d.cts";
|
|
4
|
+
export * from "./decoration.d.cts";
|
|
5
|
+
export * from "./overrides.d.cts";
|
|
6
|
+
export * from "./ModelBuilderExtensions.d.cts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./overrides";
|
|
2
|
-
export * from "./Adapter.
|
|
3
|
-
export * from "./constants.
|
|
4
|
-
export * from "./decoration.
|
|
5
|
-
export * from "./overrides.
|
|
6
|
-
export * from "./ModelBuilderExtensions.
|
|
2
|
+
export * from "./Adapter.d.mts";
|
|
3
|
+
export * from "./constants.d.mts";
|
|
4
|
+
export * from "./decoration.d.mts";
|
|
5
|
+
export * from "./overrides.d.mts";
|
|
6
|
+
export * from "./ModelBuilderExtensions.d.mts";
|