web_api_base 3.6.8 → 3.7.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/dist/Application.d.ts +24 -24
- package/dist/Application.js +449 -421
- package/dist/Application.js.map +1 -1
- package/dist/ApplicationConfiguration.d.ts +18 -18
- package/dist/ApplicationConfiguration.js +126 -126
- package/dist/bin/CreateApplication.d.ts +1 -1
- package/dist/bin/CreateApplication.js +16 -16
- package/dist/bin/CreateController.d.ts +1 -1
- package/dist/bin/CreateController.js +21 -21
- package/dist/controllers/base/ControllerBase.d.ts +19 -19
- package/dist/controllers/base/ControllerBase.js +46 -46
- package/dist/decorators/controllers/ControllerDecorators.d.ts +50 -46
- package/dist/decorators/controllers/ControllerDecorators.js +172 -166
- package/dist/decorators/controllers/ControllerDecorators.js.map +1 -1
- package/dist/decorators/documentation/DocumentationDecorators.d.ts +17 -17
- package/dist/decorators/documentation/DocumentationDecorators.js +38 -38
- package/dist/decorators/validations/ValidationDecorators.d.ts +53 -53
- package/dist/decorators/validations/ValidationDecorators.js +180 -180
- package/dist/decorators/validations/ValidationDecorators.js.map +1 -1
- package/dist/dependencyInjection/DependecyService.d.ts +28 -28
- package/dist/dependencyInjection/DependecyService.js +135 -135
- package/dist/dependencyInjection/DependecyService.js.map +1 -1
- package/dist/dependencyInjection/IDIContext.d.ts +7 -7
- package/dist/dependencyInjection/IDIContext.js +2 -2
- package/dist/documentation/CSS.d.ts +6 -6
- package/dist/documentation/CSS.js +18 -18
- package/dist/documentation/CSS.js.map +1 -1
- package/dist/documentation/Documentation.d.ts +7 -7
- package/dist/documentation/Documentation.js +80 -80
- package/dist/documentation/HTML.d.ts +4 -4
- package/dist/documentation/HTML.js +13 -13
- package/dist/documentation/HTML.js.map +1 -1
- package/dist/documentation/JS.d.ts +5 -5
- package/dist/documentation/JS.js +36 -34
- package/dist/documentation/JS.js.map +1 -1
- package/dist/enums/httpVerbs/HttpVerbs.d.ts +6 -6
- package/dist/enums/httpVerbs/HttpVerbs.js +10 -10
- package/dist/enums/httpVerbs/HttpVerbs.js.map +1 -1
- package/dist/exceptions/ArgumentNullException.d.ts +3 -3
- package/dist/exceptions/ArgumentNullException.js +9 -9
- package/dist/exceptions/ControllerLoadException.d.ts +3 -3
- package/dist/exceptions/ControllerLoadException.js +9 -9
- package/dist/exceptions/Exception.d.ts +4 -4
- package/dist/exceptions/Exception.js +9 -9
- package/dist/exceptions/FindDependencyException.d.ts +3 -3
- package/dist/exceptions/FindDependencyException.js +9 -9
- package/dist/index.d.ts +47 -45
- package/dist/index.js +155 -147
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IApplication.d.ts +13 -13
- package/dist/interfaces/IApplication.js +2 -2
- package/dist/interfaces/IApplicationConfiguration.d.ts +12 -12
- package/dist/interfaces/IApplicationConfiguration.js +2 -2
- package/dist/interfaces/IController.d.ts +5 -5
- package/dist/interfaces/IController.js +2 -2
- package/dist/metadata/FunctionAnalizer.d.ts +8 -8
- package/dist/metadata/FunctionAnalizer.js +22 -22
- package/dist/metadata/OwnMetaDataContainer.d.ts +12 -12
- package/dist/metadata/OwnMetaDataContainer.js +32 -32
- package/dist/metadata/OwnMetaDataContainer.js.map +1 -1
- package/dist/metadata/Type.d.ts +4 -4
- package/dist/metadata/Type.js +36 -36
- package/dist/midlewares/IMidleware.d.ts +19 -19
- package/dist/midlewares/IMidleware.js +2 -2
- package/package.json +8 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default class JS {
|
|
2
|
-
private static _js;
|
|
3
|
-
static Append(text: string): void;
|
|
4
|
-
static Save(): void;
|
|
5
|
-
}
|
|
1
|
+
export default class JS {
|
|
2
|
+
private static _js;
|
|
3
|
+
static Append(text: string): void;
|
|
4
|
+
static Save(): void;
|
|
5
|
+
}
|
package/dist/documentation/JS.js
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const fs_1 = __importDefault(require("fs"));
|
|
7
|
-
const Application_1 = __importDefault(require("../Application"));
|
|
8
|
-
class JS {
|
|
9
|
-
static Append(text) {
|
|
10
|
-
JS._js += text;
|
|
11
|
-
}
|
|
12
|
-
static Save() {
|
|
13
|
-
let app = "";
|
|
14
|
-
let version = "";
|
|
15
|
-
let description = "";
|
|
16
|
-
try {
|
|
17
|
-
if (fs_1.default.existsSync(`${Application_1.default.Configurations.RootPath}\\package.json`)) {
|
|
18
|
-
let j = JSON.parse(fs_1.default.readFileSync(`${Application_1.default.Configurations.RootPath}\\package.json`, 'utf-8'));
|
|
19
|
-
app = j.name;
|
|
20
|
-
version = j.version;
|
|
21
|
-
description = j.description;
|
|
22
|
-
this._js = this._js.replace('??APP', `${app} ${version}`);
|
|
23
|
-
this._js = this._js.replace('??DESC', `${description}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
catch (err) {
|
|
27
|
-
console.error(err);
|
|
28
|
-
}
|
|
29
|
-
fs_1.default.writeFileSync(`${__dirname}\\script.js`, JS._js, 'utf-8');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.default = JS;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const fs_1 = __importDefault(require("fs"));
|
|
7
|
+
const Application_1 = __importDefault(require("../Application"));
|
|
8
|
+
class JS {
|
|
9
|
+
static Append(text) {
|
|
10
|
+
JS._js += text;
|
|
11
|
+
}
|
|
12
|
+
static Save() {
|
|
13
|
+
let app = "";
|
|
14
|
+
let version = "";
|
|
15
|
+
let description = "";
|
|
16
|
+
try {
|
|
17
|
+
if (fs_1.default.existsSync(`${Application_1.default.Configurations.RootPath}\\package.json`)) {
|
|
18
|
+
let j = JSON.parse(fs_1.default.readFileSync(`${Application_1.default.Configurations.RootPath}\\package.json`, 'utf-8'));
|
|
19
|
+
app = j.name;
|
|
20
|
+
version = j.version;
|
|
21
|
+
description = j.description;
|
|
22
|
+
this._js = this._js.replace('??APP', `${app} ${version}`);
|
|
23
|
+
this._js = this._js.replace('??DESC', `${description}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch (err) {
|
|
27
|
+
console.error(err);
|
|
28
|
+
}
|
|
29
|
+
fs_1.default.writeFileSync(`${__dirname}\\script.js`, JS._js, 'utf-8');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
33
32
|
JS._js = `
|
|
34
33
|
document.getElementById('root').innerHTML += '<div class="header" ><div class="DivHeader"><p>Made with <a href="https://www.npmjs.com/package/web_api_base" target="_blank">web_api_base</a></p></div></div>';
|
|
35
34
|
document.getElementsByClassName('header')[0].innerHTML += '<div class="DivHeader DivHeaderRight"><p class="pTitle" style="font-size: 14px;font-weight:600;">??APP</p><p>??DESC</p></div>';
|
|
@@ -187,7 +186,9 @@ JS._js = `
|
|
|
187
186
|
{
|
|
188
187
|
let input = document.getElementById('key-'+r.Id+r.FromQuery.indexOf(c));
|
|
189
188
|
|
|
190
|
-
|
|
189
|
+
if(input.value.trim() != ''){
|
|
190
|
+
args+= c.Field + '="' + input.value + '"&';
|
|
191
|
+
}
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
if(args.length > 1){
|
|
@@ -270,5 +271,6 @@ JS._js = `
|
|
|
270
271
|
}
|
|
271
272
|
|
|
272
273
|
|
|
273
|
-
`;
|
|
274
|
+
`;
|
|
275
|
+
exports.default = JS;
|
|
274
276
|
//# sourceMappingURL=JS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JS.js","sourceRoot":"","sources":["../../documentation/JS.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,iEAAyC;AAEzC,MAAqB,EAAE;
|
|
1
|
+
{"version":3,"file":"JS.js","sourceRoot":"","sources":["../../documentation/JS.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,iEAAyC;AAEzC,MAAqB,EAAE;IAsPZ,MAAM,CAAC,MAAM,CAAC,IAAa;QAE9B,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,IAAI;QAEd,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAAG;YAEC,IAAG,YAAE,CAAC,UAAU,CAAC,GAAG,qBAAW,CAAC,cAAc,CAAC,QAAQ,gBAAgB,CAAC,EACxE;gBACI,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,YAAE,CAAC,YAAY,CAAC,GAAG,qBAAW,CAAC,cAAc,CAAC,QAAQ,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;gBACrG,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC;gBACb,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;gBACpB,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC;gBAE5B,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC,CAAC;gBAC1D,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC;aAC3D;SAEJ;QAAA,OAAM,GAAG,EACV;YACI,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACtB;QAED,YAAE,CAAC,aAAa,CAAC,GAAG,SAAS,aAAa,EAAE,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;;AAlRc,MAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkPpB,CAAC;kBApPe,EAAE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum HTTPVerbs {
|
|
2
|
-
GET = "GET",
|
|
3
|
-
POST = "POST",
|
|
4
|
-
PUT = "PUT",
|
|
5
|
-
DELETE = "DELETE"
|
|
6
|
-
}
|
|
1
|
+
export declare enum HTTPVerbs {
|
|
2
|
+
GET = "GET",
|
|
3
|
+
POST = "POST",
|
|
4
|
+
PUT = "PUT",
|
|
5
|
+
DELETE = "DELETE"
|
|
6
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HTTPVerbs = void 0;
|
|
4
|
-
var HTTPVerbs;
|
|
5
|
-
(function (HTTPVerbs) {
|
|
6
|
-
HTTPVerbs["GET"] = "GET";
|
|
7
|
-
HTTPVerbs["POST"] = "POST";
|
|
8
|
-
HTTPVerbs["PUT"] = "PUT";
|
|
9
|
-
HTTPVerbs["DELETE"] = "DELETE";
|
|
10
|
-
})(HTTPVerbs
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTTPVerbs = void 0;
|
|
4
|
+
var HTTPVerbs;
|
|
5
|
+
(function (HTTPVerbs) {
|
|
6
|
+
HTTPVerbs["GET"] = "GET";
|
|
7
|
+
HTTPVerbs["POST"] = "POST";
|
|
8
|
+
HTTPVerbs["PUT"] = "PUT";
|
|
9
|
+
HTTPVerbs["DELETE"] = "DELETE";
|
|
10
|
+
})(HTTPVerbs || (exports.HTTPVerbs = HTTPVerbs = {}));
|
|
11
11
|
//# sourceMappingURL=HttpVerbs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpVerbs.js","sourceRoot":"","sources":["../../../enums/httpVerbs/HttpVerbs.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAMX;AAND,WAAY,SAAS;IAEjB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,8BAAiB,CAAA;AACrB,CAAC,EANW,SAAS,
|
|
1
|
+
{"version":3,"file":"HttpVerbs.js","sourceRoot":"","sources":["../../../enums/httpVerbs/HttpVerbs.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAMX;AAND,WAAY,SAAS;IAEjB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,wBAAW,CAAA;IACX,8BAAiB,CAAA;AACrB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Exception from "./Exception";
|
|
2
|
-
export default class ArgumentNullException extends Exception {
|
|
3
|
-
}
|
|
1
|
+
import Exception from "./Exception";
|
|
2
|
+
export default class ArgumentNullException extends Exception {
|
|
3
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
-
class ArgumentNullException extends Exception_1.default {
|
|
8
|
-
}
|
|
9
|
-
exports.default = ArgumentNullException;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class ArgumentNullException extends Exception_1.default {
|
|
8
|
+
}
|
|
9
|
+
exports.default = ArgumentNullException;
|
|
10
10
|
//# sourceMappingURL=ArgumentNullException.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Exception from "./Exception";
|
|
2
|
-
export default class ControllerLoadException extends Exception {
|
|
3
|
-
}
|
|
1
|
+
import Exception from "./Exception";
|
|
2
|
+
export default class ControllerLoadException extends Exception {
|
|
3
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
-
class ControllerLoadException extends Exception_1.default {
|
|
8
|
-
}
|
|
9
|
-
exports.default = ControllerLoadException;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class ControllerLoadException extends Exception_1.default {
|
|
8
|
+
}
|
|
9
|
+
exports.default = ControllerLoadException;
|
|
10
10
|
//# sourceMappingURL=ControllerLoadException.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default class Exception extends Error {
|
|
2
|
-
Message: string;
|
|
3
|
-
constructor(message: string);
|
|
4
|
-
}
|
|
1
|
+
export default class Exception extends Error {
|
|
2
|
+
Message: string;
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class Exception extends Error {
|
|
4
|
-
constructor(message) {
|
|
5
|
-
super(message);
|
|
6
|
-
this.Message = message;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
exports.default = Exception;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class Exception extends Error {
|
|
4
|
+
constructor(message) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.Message = message;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = Exception;
|
|
10
10
|
//# sourceMappingURL=Exception.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Exception from "./Exception";
|
|
2
|
-
export default class FindDependencyException extends Exception {
|
|
3
|
-
}
|
|
1
|
+
import Exception from "./Exception";
|
|
2
|
+
export default class FindDependencyException extends Exception {
|
|
3
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
-
class FindDependencyException extends Exception_1.default {
|
|
8
|
-
}
|
|
9
|
-
exports.default = FindDependencyException;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Exception_1 = __importDefault(require("./Exception"));
|
|
7
|
+
class FindDependencyException extends Exception_1.default {
|
|
8
|
+
}
|
|
9
|
+
exports.default = FindDependencyException;
|
|
10
10
|
//# sourceMappingURL=FindDependencyException.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
export { default as Application } from "./Application";
|
|
2
|
-
export { default as ApplicationConfiguration } from "./ApplicationConfiguration";
|
|
3
|
-
export { default as ControllersDecorators } from "./decorators/controllers/ControllerDecorators";
|
|
4
|
-
export { ControllerBase } from "./controllers/base/ControllerBase";
|
|
5
|
-
export { HTTPVerbs } from './enums/httpVerbs/HttpVerbs';
|
|
6
|
-
export { default as Exception } from './exceptions/Exception';
|
|
7
|
-
export { default as DependecyService } from "./dependencyInjection/DependecyService";
|
|
8
|
-
export { default as IMidleware } from './midlewares/IMidleware';
|
|
9
|
-
export { default as IApplicationConfiguration } from "./interfaces/IApplicationConfiguration";
|
|
10
|
-
export { default as IApplication } from "./interfaces/IApplication";
|
|
11
|
-
export { default as IApplicatiIControllernConfiguration } from "./interfaces/IController";
|
|
12
|
-
export { IHTTPRequestContext, IRequestResult, IRequestResultHandler } from "./midlewares/IMidleware";
|
|
13
|
-
import { DocumentationDecorators } from "./decorators/documentation/DocumentationDecorators";
|
|
14
|
-
import { HTTPVerbs } from "./enums/httpVerbs/HttpVerbs";
|
|
15
|
-
import IMidleware, { IRequestResultHandler } from "./midlewares/IMidleware";
|
|
16
|
-
export declare function UseBefore(midleware: IMidleware): (target: Function) => void;
|
|
17
|
-
export declare function RunBefore(midleware: IMidleware): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
18
|
-
export declare function UseAfter(resultHandler: IRequestResultHandler): (target: Function) => void;
|
|
19
|
-
export declare function RunAfter(resultHandler: IRequestResultHandler): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
20
|
-
export declare function Action(actionName?: String): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
21
|
-
export declare function Route(route?: string): (target: Function) => void;
|
|
22
|
-
export declare function GET(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
23
|
-
export declare function POST(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
24
|
-
export declare function PUT(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
25
|
-
export declare function DELETE(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
26
|
-
export declare function Description(description: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
27
|
-
export declare function RequestJson(json: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
28
|
-
export declare function ProducesResponse(response: Parameters<typeof DocumentationDecorators.ProducesResponse>[0]): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
29
|
-
export declare function Verb(verb: HTTPVerbs): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
30
|
-
export declare function Inject(): (target: Object, property: string | symbol) => void;
|
|
31
|
-
export declare function InjectAbstract(cTor: Function): (target: Object, property: string | symbol) => void;
|
|
32
|
-
export declare function Validate(): (target: Function) => void;
|
|
33
|
-
export declare function ValidateObject<T>(obj: T): {
|
|
34
|
-
Field: string;
|
|
35
|
-
Message: string;
|
|
36
|
-
}[];
|
|
37
|
-
export declare function Required(message?: string): (target: Object, property: string) => void;
|
|
38
|
-
export declare function MaxLenght(max: number, message?: string): (target: Object, property: string) => void;
|
|
39
|
-
export declare function MinLenght(min: number, message?: string): (target: Object, property: string) => void;
|
|
40
|
-
export declare function Max(max: number, message?: string): (target: Object, property: string) => void;
|
|
41
|
-
export declare function Min(min: number, message?: string): (target: Object, property: string) => void;
|
|
42
|
-
export declare function Regex(regex: RegExp, message?: string): (target: Object, property: string) => void;
|
|
43
|
-
export declare function Rule<T>(action: (a: T) => boolean, message?: string): (target: Object, property: string) => void;
|
|
44
|
-
export declare function
|
|
45
|
-
export declare function
|
|
1
|
+
export { default as Application } from "./Application";
|
|
2
|
+
export { default as ApplicationConfiguration } from "./ApplicationConfiguration";
|
|
3
|
+
export { default as ControllersDecorators } from "./decorators/controllers/ControllerDecorators";
|
|
4
|
+
export { ControllerBase } from "./controllers/base/ControllerBase";
|
|
5
|
+
export { HTTPVerbs } from './enums/httpVerbs/HttpVerbs';
|
|
6
|
+
export { default as Exception } from './exceptions/Exception';
|
|
7
|
+
export { default as DependecyService } from "./dependencyInjection/DependecyService";
|
|
8
|
+
export { default as IMidleware } from './midlewares/IMidleware';
|
|
9
|
+
export { default as IApplicationConfiguration } from "./interfaces/IApplicationConfiguration";
|
|
10
|
+
export { default as IApplication } from "./interfaces/IApplication";
|
|
11
|
+
export { default as IApplicatiIControllernConfiguration } from "./interfaces/IController";
|
|
12
|
+
export { IHTTPRequestContext, IRequestResult, IRequestResultHandler } from "./midlewares/IMidleware";
|
|
13
|
+
import { DocumentationDecorators } from "./decorators/documentation/DocumentationDecorators";
|
|
14
|
+
import { HTTPVerbs } from "./enums/httpVerbs/HttpVerbs";
|
|
15
|
+
import IMidleware, { IRequestResultHandler } from "./midlewares/IMidleware";
|
|
16
|
+
export declare function UseBefore(midleware: IMidleware): (target: Function) => void;
|
|
17
|
+
export declare function RunBefore(midleware: IMidleware): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
18
|
+
export declare function UseAfter(resultHandler: IRequestResultHandler): (target: Function) => void;
|
|
19
|
+
export declare function RunAfter(resultHandler: IRequestResultHandler): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
20
|
+
export declare function Action(actionName?: String): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
21
|
+
export declare function Route(route?: string): (target: Function) => void;
|
|
22
|
+
export declare function GET(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
23
|
+
export declare function POST(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
24
|
+
export declare function PUT(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
25
|
+
export declare function DELETE(action?: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
26
|
+
export declare function Description(description: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
27
|
+
export declare function RequestJson(json: string): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
28
|
+
export declare function ProducesResponse(response: Parameters<typeof DocumentationDecorators.ProducesResponse>[0]): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
29
|
+
export declare function Verb(verb: HTTPVerbs): (target: Object, methodName: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
30
|
+
export declare function Inject(): (target: Object, property: string | symbol) => void;
|
|
31
|
+
export declare function InjectAbstract(cTor: Function): (target: Object, property: string | symbol) => void;
|
|
32
|
+
export declare function Validate(): (target: Function) => void;
|
|
33
|
+
export declare function ValidateObject<T>(obj: T): {
|
|
34
|
+
Field: string;
|
|
35
|
+
Message: string;
|
|
36
|
+
}[];
|
|
37
|
+
export declare function Required(message?: string): (target: Object, property: string) => void;
|
|
38
|
+
export declare function MaxLenght(max: number, message?: string): (target: Object, property: string) => void;
|
|
39
|
+
export declare function MinLenght(min: number, message?: string): (target: Object, property: string) => void;
|
|
40
|
+
export declare function Max(max: number, message?: string): (target: Object, property: string) => void;
|
|
41
|
+
export declare function Min(min: number, message?: string): (target: Object, property: string) => void;
|
|
42
|
+
export declare function Regex(regex: RegExp, message?: string): (target: Object, property: string) => void;
|
|
43
|
+
export declare function Rule<T>(action: (a: T) => boolean, message?: string): (target: Object, property: string) => void;
|
|
44
|
+
export declare function RequiredFromBodyArg(paramName?: string): (target: Object, methodName: string, parameterIndex: number) => void;
|
|
45
|
+
export declare function FromBody(paramName?: string): (target: Object, methodName: string, parameterIndex: number) => void;
|
|
46
|
+
export declare function RequiredFromQueryArg(paramName?: string): (target: Object, methodName: string, parameterIndex: number) => void;
|
|
47
|
+
export declare function FromQuery(paramName?: string): (target: Object, methodName: string, parameterIndex: number) => void;
|