moost 0.0.1-beta.5 → 0.2.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/README.md +14 -8
- package/dist/index.cjs +2093 -0
- package/dist/{moost.d.ts → index.d.ts} +43 -156
- package/dist/index.mjs +2063 -0
- package/package.json +13 -69
- package/LICENSE +0 -21
- package/dist/moost.cjs.prod.js +0 -922
- package/dist/moost.esm-bundler.js +0 -869
- package/dist/src/binding/bind-controller.d.ts +0 -13
- package/dist/src/binding/bind-controller.d.ts.map +0 -1
- package/dist/src/binding/bind-handler.d.ts +0 -18
- package/dist/src/binding/bind-handler.d.ts.map +0 -1
- package/dist/src/binding/index.d.ts +0 -3
- package/dist/src/binding/index.d.ts.map +0 -1
- package/dist/src/binding/tests/binding.spec.d.ts +0 -2
- package/dist/src/binding/tests/binding.spec.d.ts.map +0 -1
- package/dist/src/binding/utils.d.ts +0 -3
- package/dist/src/binding/utils.d.ts.map +0 -1
- package/dist/src/class-function/class-function.d.ts +0 -4
- package/dist/src/class-function/class-function.d.ts.map +0 -1
- package/dist/src/class-function/index.d.ts +0 -2
- package/dist/src/class-function/index.d.ts.map +0 -1
- package/dist/src/class-function/types.d.ts +0 -9
- package/dist/src/class-function/types.d.ts.map +0 -1
- package/dist/src/composables/controller-meta.d.ts +0 -13
- package/dist/src/composables/controller-meta.d.ts.map +0 -1
- package/dist/src/composables/index.d.ts +0 -2
- package/dist/src/composables/index.d.ts.map +0 -1
- package/dist/src/decorators/circular.decorator.d.ts +0 -3
- package/dist/src/decorators/circular.decorator.d.ts.map +0 -1
- package/dist/src/decorators/common.decorator.d.ts +0 -4
- package/dist/src/decorators/common.decorator.d.ts.map +0 -1
- package/dist/src/decorators/controller.decorator.d.ts +0 -24
- package/dist/src/decorators/controller.decorator.d.ts.map +0 -1
- package/dist/src/decorators/http-method.decorator.d.ts +0 -8
- package/dist/src/decorators/http-method.decorator.d.ts.map +0 -1
- package/dist/src/decorators/index.d.ts +0 -10
- package/dist/src/decorators/index.d.ts.map +0 -1
- package/dist/src/decorators/injectable.decorator.d.ts +0 -12
- package/dist/src/decorators/injectable.decorator.d.ts.map +0 -1
- package/dist/src/decorators/intercept.decorator.d.ts +0 -20
- package/dist/src/decorators/intercept.decorator.d.ts.map +0 -1
- package/dist/src/decorators/pipe.decorator.d.ts +0 -3
- package/dist/src/decorators/pipe.decorator.d.ts.map +0 -1
- package/dist/src/decorators/provide.decorator.d.ts +0 -5
- package/dist/src/decorators/provide.decorator.d.ts.map +0 -1
- package/dist/src/decorators/resolve.decorator.d.ts +0 -137
- package/dist/src/decorators/resolve.decorator.d.ts.map +0 -1
- package/dist/src/decorators/tests/circular.artifacts.d.ts +0 -7
- package/dist/src/decorators/tests/circular.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/circular.spec.d.ts +0 -2
- package/dist/src/decorators/tests/circular.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/common.artifacts.d.ts +0 -4
- package/dist/src/decorators/tests/common.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/common.spec.d.ts +0 -2
- package/dist/src/decorators/tests/common.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/controller.spec.d.ts +0 -2
- package/dist/src/decorators/tests/controller.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/http-method.artifacts.d.ts +0 -12
- package/dist/src/decorators/tests/http-method.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/http-method.spec.d.ts +0 -2
- package/dist/src/decorators/tests/http-method.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/injectable.spec.d.ts +0 -2
- package/dist/src/decorators/tests/injectable.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/intercept.spec.d.ts +0 -2
- package/dist/src/decorators/tests/intercept.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/pipe.artifacts.d.ts +0 -4
- package/dist/src/decorators/tests/pipe.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/pipe.spec.d.ts +0 -2
- package/dist/src/decorators/tests/pipe.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/provide.artifacts.d.ts +0 -9
- package/dist/src/decorators/tests/provide.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/provide.spec.d.ts +0 -2
- package/dist/src/decorators/tests/provide.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/resolve.artifacts.d.ts +0 -4
- package/dist/src/decorators/tests/resolve.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/resolve.spec.d.ts +0 -2
- package/dist/src/decorators/tests/resolve.spec.d.ts.map +0 -1
- package/dist/src/decorators/tests/validate.artifacts.d.ts +0 -21
- package/dist/src/decorators/tests/validate.artifacts.d.ts.map +0 -1
- package/dist/src/decorators/tests/validate.spec.d.ts +0 -2
- package/dist/src/decorators/tests/validate.spec.d.ts.map +0 -1
- package/dist/src/decorators/validate.decorator.d.ts +0 -10
- package/dist/src/decorators/validate.decorator.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/metadata/index.d.ts +0 -2
- package/dist/src/metadata/index.d.ts.map +0 -1
- package/dist/src/metadata/infact.d.ts +0 -7
- package/dist/src/metadata/infact.d.ts.map +0 -1
- package/dist/src/metadata/moost-metadata.d.ts +0 -62
- package/dist/src/metadata/moost-metadata.d.ts.map +0 -1
- package/dist/src/metadata/valido.d.ts +0 -3
- package/dist/src/metadata/valido.d.ts.map +0 -1
- package/dist/src/moost.d.ts +0 -44
- package/dist/src/moost.d.ts.map +0 -1
- package/dist/src/moost.spec.d.ts +0 -2
- package/dist/src/moost.spec.d.ts.map +0 -1
- package/dist/src/pipes/generic-types-cast.pipe.d.ts +0 -3
- package/dist/src/pipes/generic-types-cast.pipe.d.ts.map +0 -1
- package/dist/src/pipes/index.d.ts +0 -5
- package/dist/src/pipes/index.d.ts.map +0 -1
- package/dist/src/pipes/resolve.pipe.d.ts +0 -3
- package/dist/src/pipes/resolve.pipe.d.ts.map +0 -1
- package/dist/src/pipes/run-pipes.d.ts +0 -5
- package/dist/src/pipes/run-pipes.d.ts.map +0 -1
- package/dist/src/pipes/shared-pipes.d.ts +0 -3
- package/dist/src/pipes/shared-pipes.d.ts.map +0 -1
- package/dist/src/pipes/types.d.ts +0 -21
- package/dist/src/pipes/types.d.ts.map +0 -1
- package/dist/src/pipes/validate.pipe.d.ts +0 -7
- package/dist/src/pipes/validate.pipe.d.ts.map +0 -1
- package/dist/src/pipes/validation.spec.d.ts +0 -2
- package/dist/src/pipes/validation.spec.d.ts.map +0 -1
- package/dist/src/tests/e2e.artifacts.d.ts +0 -17
- package/dist/src/tests/e2e.artifacts.d.ts.map +0 -1
- package/dist/src/tests/e2e.spec.d.ts +0 -2
- package/dist/src/tests/e2e.spec.d.ts.map +0 -1
- package/dist/src/tests/request.artifacts.d.ts +0 -10
- package/dist/src/tests/request.artifacts.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -8
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils/banner.d.ts +0 -2
- package/dist/src/utils/banner.d.ts.map +0 -1
- package/dist/src/utils/log.d.ts +0 -5
- package/dist/src/utils/log.d.ts.map +0 -1
- package/dist/src/utils/panic.d.ts +0 -2
- package/dist/src/utils/panic.d.ts.map +0 -1
- package/index.js +0 -2
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Wooks } from 'wooks';
|
|
2
|
-
import { TMoostMetadata } from '../metadata';
|
|
3
|
-
import { TPipeData } from '../pipes';
|
|
4
|
-
import { TClassConstructor, TObject } from '../types';
|
|
5
|
-
export interface TBindControllerOptions {
|
|
6
|
-
globalPrefix?: string;
|
|
7
|
-
replaceOwnPrefix?: string;
|
|
8
|
-
provide?: TMoostMetadata['provide'];
|
|
9
|
-
interceptors?: TMoostMetadata['interceptors'];
|
|
10
|
-
pipes?: TPipeData[];
|
|
11
|
-
}
|
|
12
|
-
export declare function bindControllerMethods(getInstance: () => Promise<TObject>, classConstructor: TClassConstructor, wooksApp: Wooks, options?: TBindControllerOptions): void;
|
|
13
|
-
//# sourceMappingURL=bind-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bind-controller.d.ts","sourceRoot":"","sources":["../../../src/binding/bind-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAOrD,MAAM,WAAW,sBAAsB;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACnC,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC7C,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;CACtB;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,sBAAsB,QAyDhK"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Wooks } from 'wooks';
|
|
2
|
-
import { TInterceptorFn } from '../decorators';
|
|
3
|
-
import { TMoostMetadata, TMoostParamsMetadata } from '../metadata';
|
|
4
|
-
import { TPipeData } from '../pipes';
|
|
5
|
-
import { TObject } from '../types';
|
|
6
|
-
export interface IBindHandlerOptions {
|
|
7
|
-
httpMethod: Required<TMoostMetadata>['httpHandler'][0]['method'];
|
|
8
|
-
path: string;
|
|
9
|
-
interceptorHandlers: TInterceptorFn[];
|
|
10
|
-
provide: Required<TMoostMetadata>['provide'];
|
|
11
|
-
argsMeta: TMoostParamsMetadata[];
|
|
12
|
-
argsPipes: {
|
|
13
|
-
meta: TMoostParamsMetadata;
|
|
14
|
-
pipes: TPipeData[];
|
|
15
|
-
}[];
|
|
16
|
-
}
|
|
17
|
-
export declare function bindHandler<T extends TObject = TObject>(getInstance: () => Promise<T>, method: keyof T, wooksApp: Wooks, options: IBindHandlerOptions): void;
|
|
18
|
-
//# sourceMappingURL=bind-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bind-handler.d.ts","sourceRoot":"","sources":["../../../src/binding/bind-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B,OAAO,EAAyC,cAAc,EAAuB,MAAM,eAAe,CAAA;AAC1G,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;IAChE,IAAI,EAAE,MAAM,CAAA;IACZ,mBAAmB,EAAE,cAAc,EAAE,CAAA;IACrC,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;IAC5C,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAChC,SAAS,EAAE;QACP,IAAI,EAAE,oBAAoB,CAAA;QAC1B,KAAK,EAAE,SAAS,EAAE,CAAA;KACrB,EAAE,CAAA;CACN;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,QA4ErJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/binding/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"binding.spec.d.ts","sourceRoot":"","sources":["../../../../src/binding/tests/binding.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/binding/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,wBAAgB,qBAAqB,CAAC,CAAC,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAOxE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TAnyFn, TFunction, TObject } from '../types';
|
|
2
|
-
import { TCallableClassFunction } from './types';
|
|
3
|
-
export declare function getCallableFn<T extends TAnyFn = TAnyFn>(targetInstance: TObject, fn: TCallableClassFunction<T>, restoreCtx?: TFunction): Promise<T>;
|
|
4
|
-
//# sourceMappingURL=class-function.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-function.d.ts","sourceRoot":"","sources":["../../../src/class-function/class-function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,MAAM,EAAqB,SAAS,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAE9E,OAAO,EAAE,sBAAsB,EAAkB,MAAM,SAAS,CAAA;AAEhE,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,CAgBzJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/class-function/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TAny, TAnyFn } from '../types';
|
|
2
|
-
export interface TClassFunction<T extends TAnyFn = TAnyFn> {
|
|
3
|
-
handler: T;
|
|
4
|
-
}
|
|
5
|
-
export interface TClassFunctionConstructor<T extends TAnyFn = TAnyFn> {
|
|
6
|
-
new (...a: TAny[]): TClassFunction<T>;
|
|
7
|
-
}
|
|
8
|
-
export declare type TCallableClassFunction<T extends TAnyFn = TAnyFn> = T | TClassFunctionConstructor;
|
|
9
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/class-function/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACrD,OAAO,EAAE,CAAC,CAAA;CACb;AAED,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAChE,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;CACxC;AAED,oBAAY,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,yBAAyB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Wooks } from 'wooks';
|
|
2
|
-
import { TMoostMetadata } from '../metadata';
|
|
3
|
-
import { TObject } from '../types';
|
|
4
|
-
export declare function useControllerMeta<T extends TMoostMetadata = TMoostMetadata>(): {
|
|
5
|
-
getClassMeta: () => T | undefined;
|
|
6
|
-
getMethodMeta: () => T | undefined;
|
|
7
|
-
};
|
|
8
|
-
export declare function setComposableControllerContext(data: {
|
|
9
|
-
controller: TObject;
|
|
10
|
-
method: string | symbol;
|
|
11
|
-
pathBuilder: ReturnType<Wooks['on']>;
|
|
12
|
-
}): void;
|
|
13
|
-
//# sourceMappingURL=controller-meta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller-meta.d.ts","sourceRoot":"","sources":["../../../src/composables/controller-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAE7B,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAUlC,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;;;EAM1E;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;CACxC,QAKA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"circular.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/circular.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAE9F"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function Label(value: string): MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
|
|
2
|
-
export declare function Optional(): MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
|
|
3
|
-
export declare function Required(): MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
|
|
4
|
-
//# sourceMappingURL=common.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/common.decorator.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,6EAElC;AAED,wBAAgB,QAAQ,8EAEvB;AAED,wBAAgB,QAAQ,8EAevB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TProvideRegistry } from '@prostojs/infact';
|
|
2
|
-
import { TFunction, TObject } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Set Class as a Controller
|
|
5
|
-
* @decorator
|
|
6
|
-
* @param prefix - define the prefix for all the paths of this controller
|
|
7
|
-
*/
|
|
8
|
-
export declare function Controller(prefix?: string): ClassDecorator;
|
|
9
|
-
/**
|
|
10
|
-
* Set Class as a Controller
|
|
11
|
-
* @decorator
|
|
12
|
-
* @param controller - target controller (instance) to import
|
|
13
|
-
* @param provide - provide registry for the target controller
|
|
14
|
-
*/
|
|
15
|
-
export declare function ImportController(controller: TFunction | TObject, provide?: TProvideRegistry): ClassDecorator;
|
|
16
|
-
/**
|
|
17
|
-
* Set Class as a Controller
|
|
18
|
-
* @decorator
|
|
19
|
-
* @param prefix - redefine the prefix for all the paths of this controller
|
|
20
|
-
* @param controller - point to a controller (instance) to import
|
|
21
|
-
* @param provide - provide registry for the target controller
|
|
22
|
-
*/
|
|
23
|
-
export declare function ImportController(prefix: string, controller: TFunction | TObject, provide?: TProvideRegistry): ClassDecorator;
|
|
24
|
-
//# sourceMappingURL=controller.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/controller.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAG7C;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,cAAc,CAAA;AAE7G;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,cAAc,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function HttpMethod(method: '*' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS', path?: string): MethodDecorator;
|
|
2
|
-
export declare const All: (path?: string) => MethodDecorator;
|
|
3
|
-
export declare const Get: (path?: string) => MethodDecorator;
|
|
4
|
-
export declare const Post: (path?: string) => MethodDecorator;
|
|
5
|
-
export declare const Put: (path?: string) => MethodDecorator;
|
|
6
|
-
export declare const Delete: (path?: string) => MethodDecorator;
|
|
7
|
-
export declare const Patch: (path?: string) => MethodDecorator;
|
|
8
|
-
//# sourceMappingURL=http-method.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-method.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/http-method.decorator.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,MAAM,EAAE,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAEzI;AAED,eAAO,MAAM,GAAG,UAAW,MAAM,oBAA0B,CAAA;AAE3D,eAAO,MAAM,GAAG,UAAW,MAAM,oBAA4B,CAAA;AAE7D,eAAO,MAAM,IAAI,UAAW,MAAM,oBAA6B,CAAA;AAE/D,eAAO,MAAM,GAAG,UAAW,MAAM,oBAA4B,CAAA;AAE7D,eAAO,MAAM,MAAM,UAAW,MAAM,oBAA+B,CAAA;AAEnE,eAAO,MAAM,KAAK,UAAW,MAAM,oBAA8B,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './http-method.decorator';
|
|
2
|
-
export * from './resolve.decorator';
|
|
3
|
-
export * from './controller.decorator';
|
|
4
|
-
export { Injectable } from './injectable.decorator';
|
|
5
|
-
export * from './circular.decorator';
|
|
6
|
-
export * from './intercept.decorator';
|
|
7
|
-
export * from './provide.decorator';
|
|
8
|
-
export * from './common.decorator';
|
|
9
|
-
export * from './validate.decorator';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TInjectableScope } from '../metadata/moost-metadata';
|
|
2
|
-
/**
|
|
3
|
-
* Mark the Class as Injectable to enable it to be used in dependency injection
|
|
4
|
-
* @decorator
|
|
5
|
-
* @param scope - Scope for injection ("FOR_REQUEST" | "SINGLETON" | true)
|
|
6
|
-
* FOR_REQUEST - will create a new instance for each incoming request
|
|
7
|
-
* SINGLETON | true - will create a new instance only once
|
|
8
|
-
* @param label - field label
|
|
9
|
-
*/
|
|
10
|
-
export declare function Injectable(scope?: true | TInjectableScope): ClassDecorator;
|
|
11
|
-
export declare const insureInjectable: MethodDecorator & ClassDecorator & ParameterDecorator & PropertyDecorator;
|
|
12
|
-
//# sourceMappingURL=injectable.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectable.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/injectable.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE3E;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,GAAE,IAAI,GAAG,gBAAuB,GAAG,cAAc,CAEhF;AAED,eAAO,MAAM,gBAAgB,2EAG3B,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TCallableClassFunction } from '../class-function/types';
|
|
2
|
-
import { TAny } from '../types';
|
|
3
|
-
export declare type TInterceptorBefore = (reply: (response: TAny) => void) => void | Promise<void>;
|
|
4
|
-
export declare type TInterceptorAfter = (response: TAny, reply: (response: TAny) => void) => void | Promise<void>;
|
|
5
|
-
export declare type TInterceptorOnError = (error: Error, reply: (response: TAny) => void) => void | Promise<void>;
|
|
6
|
-
export declare type TInterceptorFn = {
|
|
7
|
-
(before: (fn: TInterceptorBefore) => void, after: (fn: TInterceptorAfter) => void, onError: (fn: TInterceptorOnError) => void): void | Promise<void>;
|
|
8
|
-
priority?: TInterceptorPriority;
|
|
9
|
-
};
|
|
10
|
-
export declare enum TInterceptorPriority {
|
|
11
|
-
BEFORE_ALL = 0,
|
|
12
|
-
BEFORE_GUARD = 1,
|
|
13
|
-
GUARD = 2,
|
|
14
|
-
AFTER_GUARD = 3,
|
|
15
|
-
INTERCEPTOR = 4,
|
|
16
|
-
CATCH_ERROR = 5,
|
|
17
|
-
AFTER_ALL = 6
|
|
18
|
-
}
|
|
19
|
-
export declare function Intercept(handler: TCallableClassFunction<TInterceptorFn>, priority?: TInterceptorPriority): ClassDecorator & MethodDecorator;
|
|
20
|
-
//# sourceMappingURL=intercept.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intercept.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/intercept.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,oBAAY,kBAAkB,GAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAC1F,oBAAY,iBAAiB,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AACzG,oBAAY,mBAAmB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AACzG,oBAAY,cAAc,GAAG;IAAC,CAC1B,MAAM,EAAE,CAAC,EAAE,EAAE,kBAAkB,KAAK,IAAI,EACxC,KAAK,EAAE,CAAC,EAAE,EAAE,iBAAiB,KAAK,IAAI,EACtC,OAAO,EAAE,CAAC,EAAE,EAAE,mBAAmB,KAAK,IAAI,GACvC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACvB,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CAClC,CAAA;AAED,oBAAY,oBAAoB;IAC5B,UAAU,IAAA;IAEV,YAAY,IAAA;IACZ,KAAK,IAAA;IACL,WAAW,IAAA;IAEX,WAAW,IAAA;IAEX,WAAW,IAAA;IAEX,SAAS,IAAA;CACZ;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,sBAAsB,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,EAAE,oBAAoB,GAAG,cAAc,GAAG,eAAe,CAK5I"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/pipe.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEvD,wBAAgB,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,eAAe,GAAG,kBAAkB,CAKtH"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TProvideFn } from '@prostojs/infact';
|
|
2
|
-
import { TClassConstructor } from '../types';
|
|
3
|
-
export declare function Provide(type: string | TClassConstructor, fn: TProvideFn): ClassDecorator;
|
|
4
|
-
export declare function Inject(type: string | TClassConstructor): ParameterDecorator;
|
|
5
|
-
//# sourceMappingURL=provide.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provide.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/provide.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,EAAE,EAAE,EAAE,UAAU,GAAG,cAAc,CAMxF;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,kBAAkB,CAE3E"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook to the Response Status
|
|
3
|
-
* @decorator
|
|
4
|
-
* @param resolver - resolver function
|
|
5
|
-
* @param label - field label
|
|
6
|
-
* @paramType unknown
|
|
7
|
-
*/
|
|
8
|
-
export declare function Resolve(resolver: () => unknown, label?: string): ParameterDecorator;
|
|
9
|
-
/**
|
|
10
|
-
* Hook to the Response Status
|
|
11
|
-
* @decorator
|
|
12
|
-
* @paramType TStatusHook
|
|
13
|
-
*/
|
|
14
|
-
export declare const StatusHook: ParameterDecorator;
|
|
15
|
-
/**
|
|
16
|
-
* Hook to the Response Header
|
|
17
|
-
* @decorator
|
|
18
|
-
* @param name - header name
|
|
19
|
-
* @paramType THeaderHook
|
|
20
|
-
*/
|
|
21
|
-
export declare const HeaderHook: (name: string) => ParameterDecorator;
|
|
22
|
-
/**
|
|
23
|
-
* Hook to the Response Cookie
|
|
24
|
-
* @decorator
|
|
25
|
-
* @param name - header name
|
|
26
|
-
* @paramType TCookieHook
|
|
27
|
-
*/
|
|
28
|
-
export declare const CookieHook: (name: string) => ParameterDecorator;
|
|
29
|
-
/**
|
|
30
|
-
* Parse Authorisation Header
|
|
31
|
-
* @decorator
|
|
32
|
-
* @param name - define what to take from the Auth header
|
|
33
|
-
* @paramType string
|
|
34
|
-
*/
|
|
35
|
-
export declare function Authorization(name: 'username' | 'password' | 'bearer' | 'raw' | 'type'): ParameterDecorator;
|
|
36
|
-
/**
|
|
37
|
-
* Get Request Header Value
|
|
38
|
-
* @decorator
|
|
39
|
-
* @param name - header name
|
|
40
|
-
* @paramType string
|
|
41
|
-
*/
|
|
42
|
-
export declare function Header(name: string): ParameterDecorator;
|
|
43
|
-
/**
|
|
44
|
-
* Get Request Cookie Value
|
|
45
|
-
* @decorator
|
|
46
|
-
* @param name - cookie name
|
|
47
|
-
* @paramType string
|
|
48
|
-
*/
|
|
49
|
-
export declare function Cookie(name: string): ParameterDecorator;
|
|
50
|
-
/**
|
|
51
|
-
* Get Param Value from url parh
|
|
52
|
-
* @decorator
|
|
53
|
-
* @param name - param name
|
|
54
|
-
* @paramType string
|
|
55
|
-
*/
|
|
56
|
-
export declare function Param(name: string): ParameterDecorator;
|
|
57
|
-
/**
|
|
58
|
-
* Get Parsed Params from url parh
|
|
59
|
-
* @decorator
|
|
60
|
-
* @paramType object
|
|
61
|
-
*/
|
|
62
|
-
export declare function Params(): ParameterDecorator;
|
|
63
|
-
/**
|
|
64
|
-
* Get Query Item value or the whole parsed Query as an object
|
|
65
|
-
* @decorator
|
|
66
|
-
* @param name - query item name (optional)
|
|
67
|
-
* @paramType string | object
|
|
68
|
-
*/
|
|
69
|
-
export declare function Query(name?: string): ParameterDecorator;
|
|
70
|
-
/**
|
|
71
|
-
* Get Requested URL
|
|
72
|
-
* @decorator
|
|
73
|
-
* @paramType string
|
|
74
|
-
*/
|
|
75
|
-
export declare function Url(): ParameterDecorator;
|
|
76
|
-
/**
|
|
77
|
-
* Get Requested HTTP Method
|
|
78
|
-
* @decorator
|
|
79
|
-
* @paramType string
|
|
80
|
-
*/
|
|
81
|
-
export declare function Method(): ParameterDecorator;
|
|
82
|
-
/**
|
|
83
|
-
* Get Raw Request Instance
|
|
84
|
-
* @decorator
|
|
85
|
-
* @paramType IncomingMessage
|
|
86
|
-
*/
|
|
87
|
-
export declare function Req(): ParameterDecorator;
|
|
88
|
-
/**
|
|
89
|
-
* Get Request Unique Identificator (UUID)
|
|
90
|
-
* @decorator
|
|
91
|
-
* @paramType string
|
|
92
|
-
*/
|
|
93
|
-
export declare function ReqId(): ParameterDecorator;
|
|
94
|
-
/**
|
|
95
|
-
* Get Request IP Address
|
|
96
|
-
* @decorator
|
|
97
|
-
* @paramType string
|
|
98
|
-
*/
|
|
99
|
-
export declare function Ip(opts?: {
|
|
100
|
-
trustProxy: boolean;
|
|
101
|
-
}): ParameterDecorator;
|
|
102
|
-
/**
|
|
103
|
-
* Get Request IP Address list
|
|
104
|
-
* @decorator
|
|
105
|
-
* @paramType string[]
|
|
106
|
-
*/
|
|
107
|
-
export declare function IpList(): ParameterDecorator;
|
|
108
|
-
/**
|
|
109
|
-
* Get Raw Response Object
|
|
110
|
-
* @decorator
|
|
111
|
-
* @param options - passthrough options
|
|
112
|
-
* @paramType string
|
|
113
|
-
*/
|
|
114
|
-
export declare function Res(options?: {
|
|
115
|
-
passthrough: boolean;
|
|
116
|
-
}): ParameterDecorator;
|
|
117
|
-
/**
|
|
118
|
-
* Provide Const Value
|
|
119
|
-
* @decorator
|
|
120
|
-
* @param value - provided value
|
|
121
|
-
* @param label - label of the field
|
|
122
|
-
* @paramType unknown
|
|
123
|
-
*/
|
|
124
|
-
export declare function Const(value: unknown, label?: string): ParameterDecorator;
|
|
125
|
-
/**
|
|
126
|
-
* Get Parsed Request Body
|
|
127
|
-
* @decorator
|
|
128
|
-
* @paramType object | string | unknown
|
|
129
|
-
*/
|
|
130
|
-
export declare function Body(): ParameterDecorator;
|
|
131
|
-
/**
|
|
132
|
-
* Get Raw Request Body Buffer
|
|
133
|
-
* @decorator
|
|
134
|
-
* @paramType Promise<Buffer>
|
|
135
|
-
*/
|
|
136
|
-
export declare function RawBody(): ParameterDecorator;
|
|
137
|
-
//# sourceMappingURL=resolve.decorator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.decorator.d.ts","sourceRoot":"","sources":["../../../src/decorators/resolve.decorator.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAKnF;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,oBAAuC,CAAA;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,uBAA4C,CAAA;AAEnF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,uBAA4C,CAAA;AAEnF;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,sBAgBtF;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,sBAKlC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,sBAElC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,sBAEjC;AAED;;;;GAIG;AACH,wBAAgB,MAAM,uBAErB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAYvD;AAED;;;;GAIG;AACH,wBAAgB,GAAG,uBAElB;AAED;;;;GAIG;AACH,wBAAgB,MAAM,uBAErB;AAED;;;;GAIG;AACH,wBAAgB,GAAG,uBAElB;AAED;;;;GAIG;AACH,wBAAgB,KAAK,uBAEpB;AAED;;;;GAIG;AACH,wBAAgB,EAAE,CAAC,IAAI,CAAC,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,sBAEhD;AAED;;;;GAIG;AACH,wBAAgB,MAAM,uBAErB;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,OAAO,CAAC,EAAE;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,sBAErD;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,sBAEnD;AAED;;;;GAIG;AACH,wBAAgB,IAAI,uBAEnB;AAED;;;;GAIG;AACH,wBAAgB,OAAO,uBAEtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"circular.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/circular.artifacts.ts"],"names":[],"mappings":"AAEA,qBAAa,kBAAkB;CAE9B;AAED,qBAAa,kBAAkB;IACqB,OAAO,CAAC,CAAC;gBAAD,CAAC,EAAE,kBAAkB;CAChF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"circular.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/circular.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/common.artifacts.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAAyB;IAClC,MAAM,CAEE,SAAS,EAAE,MAAM,EAEjB,SAAS,EAAE,MAAM;CAE5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/common.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/controller.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-method.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/http-method.artifacts.ts"],"names":[],"mappings":"AAEA,qBAAa,mBAAmB;IAE5B,IAAI;IAGJ,IAAI;IAGJ,GAAG;IAGH,GAAG;IAGH,GAAG;IAGH,IAAI;IAGJ,MAAM;IAGN,KAAK;IAGL,OAAO;CACV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http-method.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/http-method.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectable.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/injectable.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intercept.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/intercept.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/pipe.artifacts.ts"],"names":[],"mappings":"AAEA,qBACa,sBAAsB;IAE/B,MAAM,CAEE,CAAC,EAAE,MAAM;CAEpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipe.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/pipe.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provide.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/provide.artifacts.ts"],"names":[],"mappings":"AAEA,qBAAa,iBAAiB;IACP,IAAI,EAAE,MAAM;gBAAZ,IAAI,EAAE,MAAM;CAClC;AAED,qBAEa,gBAAgB;IACqB,CAAC,EAAE,iBAAiB;gBAApB,CAAC,EAAE,iBAAiB;CACrE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provide.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/provide.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare class ResolveDecoratorsTestClass {
|
|
2
|
-
method(_p0: string, _p1: string, _p2: string, _p3: string, _p4: string, _p5: string, _p6: string, _p7: string, _p8: string, _p9: string, _p10: string, _p11: string, _p12: string): void;
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=resolve.artifacts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/resolve.artifacts.ts"],"names":[],"mappings":"AAiBA,qBAAa,0BAA0B;IACnC,MAAM,CACyB,GAAG,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACR,GAAG,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACP,IAAI,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACT,IAAI,EAAE,MAAM;CAE9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/resolve.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class ValidateDecoratorTestClass {
|
|
2
|
-
prop: string;
|
|
3
|
-
}
|
|
4
|
-
export declare class ValidateDecoratorTestIsTypeOfClass {
|
|
5
|
-
prop: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class ValidateDecoratorTestStringClass {
|
|
8
|
-
prop: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class ValidateDecoratorTestNumberClass {
|
|
11
|
-
prop: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class ValidateDecoratorTestBooleanClass {
|
|
14
|
-
prop: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class ValidateDecoratorTestArrayClass {
|
|
17
|
-
prop: string[];
|
|
18
|
-
propStr: string[];
|
|
19
|
-
propTuple: [ValidateDecoratorTestNumberClass, ValidateDecoratorTestBooleanClass];
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=validate.artifacts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.artifacts.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/validate.artifacts.ts"],"names":[],"mappings":"AAGA,qBACa,0BAA0B;IAEnC,IAAI,EAAE,MAAM,CAAK;CACpB;AAED,qBACa,kCAAkC;IAE3C,IAAI,EAAE,MAAM,CAAK;CACpB;AAED,qBACa,gCAAgC;IAMzC,IAAI,EAAE,MAAM,CAAK;CACpB;AAED,qBACa,gCAAgC;IAMzC,IAAI,EAAE,MAAM,CAAI;CACnB;AAED,qBACa,iCAAiC;IAE1C,IAAI,EAAE,OAAO,CAAQ;CACxB;AAED,qBACa,+BAA+B;IAKxC,IAAI,EAAE,MAAM,EAAE,CAAK;IAKnB,OAAO,EAAE,MAAM,EAAE,CAAK;IAKtB,SAAS,EAAE,CAAC,gCAAgC,EAAE,iCAAiC,CAAC,CAAoF;CACvK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.spec.d.ts","sourceRoot":"","sources":["../../../../src/decorators/tests/validate.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TValidoDtoOptions, TValidoFn, validoIsBoolean, validoIsNumber, validoIsString } from '@prostojs/valido';
|
|
2
|
-
import { TValidateArrayOptions } from '../metadata/moost-metadata';
|
|
3
|
-
export declare function Dto(dtoOptions?: TValidoDtoOptions): ClassDecorator;
|
|
4
|
-
export declare function Validate<T = unknown>(validator: TValidoFn<T>): PropertyDecorator & ParameterDecorator;
|
|
5
|
-
export declare function IsArray<T = unknown>(opts?: TValidateArrayOptions<T>): PropertyDecorator & ParameterDecorator;
|
|
6
|
-
export declare function IsTypeOf(type: 'string' | 'object' | 'number' | 'boolean', errorText?: string): PropertyDecorator & ParameterDecorator;
|
|
7
|
-
export declare function IsString(...args: Parameters<typeof validoIsString>): PropertyDecorator & ParameterDecorator;
|
|
8
|
-
export declare function IsNumber(...args: Parameters<typeof validoIsNumber>): PropertyDecorator & ParameterDecorator;
|
|
9
|
-
export declare function IsBoolean(...args: Parameters<typeof validoIsBoolean>): PropertyDecorator & ParameterDecorator;
|
|
10
|
-
//# sourceMappingURL=validate.decorator.d.ts.map
|