web_api_base 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/package.json +1 -1
  2. package/dist/Application.d.ts +0 -29
  3. package/dist/Application.d.ts.map +0 -1
  4. package/dist/Application.js +0 -560
  5. package/dist/Application.js.map +0 -1
  6. package/dist/ApplicationConfiguration.d.ts +0 -24
  7. package/dist/ApplicationConfiguration.d.ts.map +0 -1
  8. package/dist/ApplicationConfiguration.js +0 -141
  9. package/dist/ApplicationConfiguration.js.map +0 -1
  10. package/dist/bin/CreateApplication.d.ts +0 -2
  11. package/dist/bin/CreateApplication.d.ts.map +0 -1
  12. package/dist/bin/CreateApplication.js +0 -6
  13. package/dist/bin/CreateApplication.js.map +0 -1
  14. package/dist/bin/CreateController.d.ts +0 -2
  15. package/dist/bin/CreateController.d.ts.map +0 -1
  16. package/dist/bin/CreateController.js +0 -5
  17. package/dist/bin/CreateController.js.map +0 -1
  18. package/dist/bin/Factory.d.ts +0 -3
  19. package/dist/bin/Factory.d.ts.map +0 -1
  20. package/dist/bin/Factory.js +0 -81
  21. package/dist/bin/Factory.js.map +0 -1
  22. package/dist/controllers/AcceptedResult.d.ts +0 -5
  23. package/dist/controllers/AcceptedResult.d.ts.map +0 -1
  24. package/dist/controllers/AcceptedResult.js +0 -13
  25. package/dist/controllers/AcceptedResult.js.map +0 -1
  26. package/dist/controllers/ActionResult.d.ts +0 -6
  27. package/dist/controllers/ActionResult.d.ts.map +0 -1
  28. package/dist/controllers/ActionResult.js +0 -10
  29. package/dist/controllers/ActionResult.js.map +0 -1
  30. package/dist/controllers/BadRequestResult.d.ts +0 -5
  31. package/dist/controllers/BadRequestResult.d.ts.map +0 -1
  32. package/dist/controllers/BadRequestResult.js +0 -13
  33. package/dist/controllers/BadRequestResult.js.map +0 -1
  34. package/dist/controllers/CreatedResult.d.ts +0 -5
  35. package/dist/controllers/CreatedResult.d.ts.map +0 -1
  36. package/dist/controllers/CreatedResult.js +0 -13
  37. package/dist/controllers/CreatedResult.js.map +0 -1
  38. package/dist/controllers/DownloadFileResult.d.ts +0 -5
  39. package/dist/controllers/DownloadFileResult.d.ts.map +0 -1
  40. package/dist/controllers/DownloadFileResult.js +0 -13
  41. package/dist/controllers/DownloadFileResult.js.map +0 -1
  42. package/dist/controllers/ErrorResult.d.ts +0 -5
  43. package/dist/controllers/ErrorResult.d.ts.map +0 -1
  44. package/dist/controllers/ErrorResult.js +0 -13
  45. package/dist/controllers/ErrorResult.js.map +0 -1
  46. package/dist/controllers/ForbiddenResult.d.ts +0 -5
  47. package/dist/controllers/ForbiddenResult.d.ts.map +0 -1
  48. package/dist/controllers/ForbiddenResult.js +0 -13
  49. package/dist/controllers/ForbiddenResult.js.map +0 -1
  50. package/dist/controllers/GenericResult.d.ts +0 -6
  51. package/dist/controllers/GenericResult.d.ts.map +0 -1
  52. package/dist/controllers/GenericResult.js +0 -13
  53. package/dist/controllers/GenericResult.js.map +0 -1
  54. package/dist/controllers/NoContentResult.d.ts +0 -5
  55. package/dist/controllers/NoContentResult.d.ts.map +0 -1
  56. package/dist/controllers/NoContentResult.js +0 -13
  57. package/dist/controllers/NoContentResult.js.map +0 -1
  58. package/dist/controllers/NotFoundResult.d.ts +0 -5
  59. package/dist/controllers/NotFoundResult.d.ts.map +0 -1
  60. package/dist/controllers/NotFoundResult.js +0 -13
  61. package/dist/controllers/NotFoundResult.js.map +0 -1
  62. package/dist/controllers/OKResult.d.ts +0 -5
  63. package/dist/controllers/OKResult.d.ts.map +0 -1
  64. package/dist/controllers/OKResult.js +0 -13
  65. package/dist/controllers/OKResult.js.map +0 -1
  66. package/dist/controllers/SendFileResult.d.ts +0 -5
  67. package/dist/controllers/SendFileResult.d.ts.map +0 -1
  68. package/dist/controllers/SendFileResult.js +0 -13
  69. package/dist/controllers/SendFileResult.js.map +0 -1
  70. package/dist/controllers/UnauthorizedResult.d.ts +0 -5
  71. package/dist/controllers/UnauthorizedResult.d.ts.map +0 -1
  72. package/dist/controllers/UnauthorizedResult.js +0 -13
  73. package/dist/controllers/UnauthorizedResult.js.map +0 -1
  74. package/dist/controllers/base/ControllerBase.d.ts +0 -33
  75. package/dist/controllers/base/ControllerBase.d.ts.map +0 -1
  76. package/dist/controllers/base/ControllerBase.js +0 -84
  77. package/dist/controllers/base/ControllerBase.js.map +0 -1
  78. package/dist/decorators/controllers/ControllerDecorators.d.ts +0 -66
  79. package/dist/decorators/controllers/ControllerDecorators.d.ts.map +0 -1
  80. package/dist/decorators/controllers/ControllerDecorators.js +0 -256
  81. package/dist/decorators/controllers/ControllerDecorators.js.map +0 -1
  82. package/dist/decorators/documentation/DocumentationDecorators.d.ts +0 -24
  83. package/dist/decorators/documentation/DocumentationDecorators.d.ts.map +0 -1
  84. package/dist/decorators/documentation/DocumentationDecorators.js +0 -69
  85. package/dist/decorators/documentation/DocumentationDecorators.js.map +0 -1
  86. package/dist/decorators/metadata/MetadataDecorators.d.ts +0 -17
  87. package/dist/decorators/metadata/MetadataDecorators.d.ts.map +0 -1
  88. package/dist/decorators/metadata/MetadataDecorators.js +0 -67
  89. package/dist/decorators/metadata/MetadataDecorators.js.map +0 -1
  90. package/dist/decorators/validations/ValidationDecorators.d.ts +0 -53
  91. package/dist/decorators/validations/ValidationDecorators.d.ts.map +0 -1
  92. package/dist/decorators/validations/ValidationDecorators.js +0 -180
  93. package/dist/decorators/validations/ValidationDecorators.js.map +0 -1
  94. package/dist/dependencyInjection/DependecyService.d.ts +0 -33
  95. package/dist/dependencyInjection/DependecyService.d.ts.map +0 -1
  96. package/dist/dependencyInjection/DependecyService.js +0 -186
  97. package/dist/dependencyInjection/DependecyService.js.map +0 -1
  98. package/dist/dependencyInjection/IDIContext.d.ts +0 -9
  99. package/dist/dependencyInjection/IDIContext.d.ts.map +0 -1
  100. package/dist/dependencyInjection/IDIContext.js +0 -3
  101. package/dist/dependencyInjection/IDIContext.js.map +0 -1
  102. package/dist/documentation/CSS.d.ts +0 -7
  103. package/dist/documentation/CSS.d.ts.map +0 -1
  104. package/dist/documentation/CSS.js +0 -302
  105. package/dist/documentation/CSS.js.map +0 -1
  106. package/dist/documentation/Documentation.d.ts +0 -8
  107. package/dist/documentation/Documentation.d.ts.map +0 -1
  108. package/dist/documentation/Documentation.js +0 -89
  109. package/dist/documentation/Documentation.js.map +0 -1
  110. package/dist/documentation/HTML.d.ts +0 -5
  111. package/dist/documentation/HTML.d.ts.map +0 -1
  112. package/dist/documentation/HTML.js +0 -26
  113. package/dist/documentation/HTML.js.map +0 -1
  114. package/dist/documentation/JS.d.ts +0 -6
  115. package/dist/documentation/JS.d.ts.map +0 -1
  116. package/dist/documentation/JS.js +0 -419
  117. package/dist/documentation/JS.js.map +0 -1
  118. package/dist/enums/httpVerbs/HttpVerbs.d.ts +0 -7
  119. package/dist/enums/httpVerbs/HttpVerbs.d.ts.map +0 -1
  120. package/dist/enums/httpVerbs/HttpVerbs.js +0 -11
  121. package/dist/enums/httpVerbs/HttpVerbs.js.map +0 -1
  122. package/dist/exceptions/ArgumentNullException.d.ts +0 -4
  123. package/dist/exceptions/ArgumentNullException.d.ts.map +0 -1
  124. package/dist/exceptions/ArgumentNullException.js +0 -10
  125. package/dist/exceptions/ArgumentNullException.js.map +0 -1
  126. package/dist/exceptions/BodyParseException.d.ts +0 -4
  127. package/dist/exceptions/BodyParseException.d.ts.map +0 -1
  128. package/dist/exceptions/BodyParseException.js +0 -10
  129. package/dist/exceptions/BodyParseException.js.map +0 -1
  130. package/dist/exceptions/ControllerLoadException.d.ts +0 -4
  131. package/dist/exceptions/ControllerLoadException.d.ts.map +0 -1
  132. package/dist/exceptions/ControllerLoadException.js +0 -10
  133. package/dist/exceptions/ControllerLoadException.js.map +0 -1
  134. package/dist/exceptions/DecoratorException.d.ts +0 -4
  135. package/dist/exceptions/DecoratorException.d.ts.map +0 -1
  136. package/dist/exceptions/DecoratorException.js +0 -10
  137. package/dist/exceptions/DecoratorException.js.map +0 -1
  138. package/dist/exceptions/Exception.d.ts +0 -5
  139. package/dist/exceptions/Exception.d.ts.map +0 -1
  140. package/dist/exceptions/Exception.js +0 -10
  141. package/dist/exceptions/Exception.js.map +0 -1
  142. package/dist/exceptions/FileNotFoundException.d.ts +0 -4
  143. package/dist/exceptions/FileNotFoundException.d.ts.map +0 -1
  144. package/dist/exceptions/FileNotFoundException.js +0 -10
  145. package/dist/exceptions/FileNotFoundException.js.map +0 -1
  146. package/dist/exceptions/FindDependencyException.d.ts +0 -4
  147. package/dist/exceptions/FindDependencyException.d.ts.map +0 -1
  148. package/dist/exceptions/FindDependencyException.js +0 -10
  149. package/dist/exceptions/FindDependencyException.js.map +0 -1
  150. package/dist/exceptions/InvalidEntityException.d.ts +0 -4
  151. package/dist/exceptions/InvalidEntityException.d.ts.map +0 -1
  152. package/dist/exceptions/InvalidEntityException.js +0 -10
  153. package/dist/exceptions/InvalidEntityException.js.map +0 -1
  154. package/dist/exceptions/RegisterDependencyException.d.ts +0 -4
  155. package/dist/exceptions/RegisterDependencyException.d.ts.map +0 -1
  156. package/dist/exceptions/RegisterDependencyException.js +0 -10
  157. package/dist/exceptions/RegisterDependencyException.js.map +0 -1
  158. package/dist/file/AbstractFileService.d.ts +0 -12
  159. package/dist/file/AbstractFileService.d.ts.map +0 -1
  160. package/dist/file/AbstractFileService.js +0 -6
  161. package/dist/file/AbstractFileService.js.map +0 -1
  162. package/dist/file/AbstractMultiPartRequestService.d.ts +0 -17
  163. package/dist/file/AbstractMultiPartRequestService.d.ts.map +0 -1
  164. package/dist/file/AbstractMultiPartRequestService.js +0 -12
  165. package/dist/file/AbstractMultiPartRequestService.js.map +0 -1
  166. package/dist/file/File.d.ts +0 -6
  167. package/dist/file/File.d.ts.map +0 -1
  168. package/dist/file/File.js +0 -10
  169. package/dist/file/File.js.map +0 -1
  170. package/dist/file/FileService.d.ts +0 -13
  171. package/dist/file/FileService.d.ts.map +0 -1
  172. package/dist/file/FileService.js +0 -136
  173. package/dist/file/FileService.js.map +0 -1
  174. package/dist/file/FormidableMultiPartRequestService.d.ts +0 -5
  175. package/dist/file/FormidableMultiPartRequestService.d.ts.map +0 -1
  176. package/dist/file/FormidableMultiPartRequestService.js +0 -73
  177. package/dist/file/FormidableMultiPartRequestService.js.map +0 -1
  178. package/dist/index.d.ts +0 -85
  179. package/dist/index.d.ts.map +0 -1
  180. package/dist/index.js +0 -261
  181. package/dist/index.js.map +0 -1
  182. package/dist/interfaces/IApplication.d.ts +0 -15
  183. package/dist/interfaces/IApplication.d.ts.map +0 -1
  184. package/dist/interfaces/IApplication.js +0 -3
  185. package/dist/interfaces/IApplication.js.map +0 -1
  186. package/dist/interfaces/IApplicationConfiguration.d.ts +0 -18
  187. package/dist/interfaces/IApplicationConfiguration.d.ts.map +0 -1
  188. package/dist/interfaces/IApplicationConfiguration.js +0 -3
  189. package/dist/interfaces/IApplicationConfiguration.js.map +0 -1
  190. package/dist/interfaces/IController.d.ts +0 -6
  191. package/dist/interfaces/IController.d.ts.map +0 -1
  192. package/dist/interfaces/IController.js +0 -3
  193. package/dist/interfaces/IController.js.map +0 -1
  194. package/dist/metadata/FunctionAnalizer.d.ts +0 -10
  195. package/dist/metadata/FunctionAnalizer.d.ts.map +0 -1
  196. package/dist/metadata/FunctionAnalizer.js +0 -57
  197. package/dist/metadata/FunctionAnalizer.js.map +0 -1
  198. package/dist/metadata/OwnMetaDataContainer.d.ts +0 -13
  199. package/dist/metadata/OwnMetaDataContainer.d.ts.map +0 -1
  200. package/dist/metadata/OwnMetaDataContainer.js +0 -43
  201. package/dist/metadata/OwnMetaDataContainer.js.map +0 -1
  202. package/dist/metadata/Type.d.ts +0 -10
  203. package/dist/metadata/Type.d.ts.map +0 -1
  204. package/dist/metadata/Type.js +0 -252
  205. package/dist/metadata/Type.js.map +0 -1
  206. package/dist/midlewares/IMidleware.d.ts +0 -20
  207. package/dist/midlewares/IMidleware.d.ts.map +0 -1
  208. package/dist/midlewares/IMidleware.js +0 -3
  209. package/dist/midlewares/IMidleware.js.map +0 -1
  210. package/dist/utils/Utils.d.ts +0 -4
  211. package/dist/utils/Utils.d.ts.map +0 -1
  212. package/dist/utils/Utils.js +0 -11
  213. package/dist/utils/Utils.js.map +0 -1
package/dist/index.js DELETED
@@ -1,261 +0,0 @@
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
- exports.FileNotFoundException = exports.InvalidEntityException = exports.DecoratorException = exports.FindDependencyException = exports.ArgumentNullException = exports.ControllerLoadException = exports.BodyParseException = exports.UnauthorizedResult = exports.OKResult = exports.NotFoundResult = exports.NoContentResult = exports.GenericResult = exports.ForbiddenResult = exports.ErrorResult = exports.CreatedResult = exports.BadRequestResult = exports.AcceptedResult = exports.ActionResult = exports.DependecyService = exports.File = exports.AbstractFileService = exports.FileService = exports.Exception = exports.HTTPVerbs = exports.ControllerBase = exports.ControllersDecorators = exports.ApplicationConfiguration = exports.Application = void 0;
7
- exports.CreateMetada = CreateMetada;
8
- exports.IgnoreInDocumentation = IgnoreInDocumentation;
9
- exports.ShowInDocumentation = ShowInDocumentation;
10
- exports.ArrayElementType = ArrayElementType;
11
- exports.DefaultValue = DefaultValue;
12
- exports.UseBefore = UseBefore;
13
- exports.RunBefore = RunBefore;
14
- exports.UseAfter = UseAfter;
15
- exports.RunAfter = RunAfter;
16
- exports.Action = Action;
17
- exports.Route = Route;
18
- exports.GET = GET;
19
- exports.POST = POST;
20
- exports.PUT = PUT;
21
- exports.DELETE = DELETE;
22
- exports.ControllerHeader = ControllerHeader;
23
- exports.ActionHeader = ActionHeader;
24
- exports.Description = Description;
25
- exports.RequestJson = RequestJson;
26
- exports.ProducesResponse = ProducesResponse;
27
- exports.Verb = Verb;
28
- exports.Inject = Inject;
29
- exports.InjectOne = InjectOne;
30
- exports.InjectGenericTypeArgument = InjectGenericTypeArgument;
31
- exports.InjectTypeArgument = InjectTypeArgument;
32
- exports.InjectAbstract = InjectAbstract;
33
- exports.Validate = Validate;
34
- exports.ValidateObject = ValidateObject;
35
- exports.Required = Required;
36
- exports.MaxLenght = MaxLenght;
37
- exports.MinLenght = MinLenght;
38
- exports.Max = Max;
39
- exports.Min = Min;
40
- exports.Regex = Regex;
41
- exports.Rule = Rule;
42
- exports.RequiredFromBodyArg = RequiredFromBodyArg;
43
- exports.OptionalFromBodyArg = OptionalFromBodyArg;
44
- exports.FromBody = FromBody;
45
- exports.FromFiles = FromFiles;
46
- exports.MaxFilesSize = MaxFilesSize;
47
- exports.RequiredFromQueryArg = RequiredFromQueryArg;
48
- exports.OptionalFromQueryArg = OptionalFromQueryArg;
49
- exports.FromQuery = FromQuery;
50
- require("reflect-metadata");
51
- var Application_1 = require("./Application");
52
- Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return __importDefault(Application_1).default; } });
53
- var ApplicationConfiguration_1 = require("./ApplicationConfiguration");
54
- Object.defineProperty(exports, "ApplicationConfiguration", { enumerable: true, get: function () { return __importDefault(ApplicationConfiguration_1).default; } });
55
- var ControllerDecorators_1 = require("./decorators/controllers/ControllerDecorators");
56
- Object.defineProperty(exports, "ControllersDecorators", { enumerable: true, get: function () { return __importDefault(ControllerDecorators_1).default; } });
57
- var ControllerBase_1 = require("./controllers/base/ControllerBase");
58
- Object.defineProperty(exports, "ControllerBase", { enumerable: true, get: function () { return ControllerBase_1.ControllerBase; } });
59
- var HttpVerbs_1 = require("./enums/httpVerbs/HttpVerbs");
60
- Object.defineProperty(exports, "HTTPVerbs", { enumerable: true, get: function () { return HttpVerbs_1.HTTPVerbs; } });
61
- var Exception_1 = require("./exceptions/Exception");
62
- Object.defineProperty(exports, "Exception", { enumerable: true, get: function () { return __importDefault(Exception_1).default; } });
63
- const FileService_1 = __importDefault(require("./file/FileService"));
64
- exports.FileService = FileService_1.default;
65
- const AbstractFileService_1 = __importDefault(require("./file/AbstractFileService"));
66
- exports.AbstractFileService = AbstractFileService_1.default;
67
- var File_1 = require("./file/File");
68
- Object.defineProperty(exports, "File", { enumerable: true, get: function () { return __importDefault(File_1).default; } });
69
- var DependecyService_1 = require("./dependencyInjection/DependecyService");
70
- Object.defineProperty(exports, "DependecyService", { enumerable: true, get: function () { return __importDefault(DependecyService_1).default; } });
71
- var ActionResult_1 = require("./controllers/ActionResult");
72
- Object.defineProperty(exports, "ActionResult", { enumerable: true, get: function () { return __importDefault(ActionResult_1).default; } });
73
- var AcceptedResult_1 = require("./controllers/AcceptedResult");
74
- Object.defineProperty(exports, "AcceptedResult", { enumerable: true, get: function () { return __importDefault(AcceptedResult_1).default; } });
75
- var BadRequestResult_1 = require("./controllers/BadRequestResult");
76
- Object.defineProperty(exports, "BadRequestResult", { enumerable: true, get: function () { return __importDefault(BadRequestResult_1).default; } });
77
- var CreatedResult_1 = require("./controllers/CreatedResult");
78
- Object.defineProperty(exports, "CreatedResult", { enumerable: true, get: function () { return __importDefault(CreatedResult_1).default; } });
79
- var ErrorResult_1 = require("./controllers/ErrorResult");
80
- Object.defineProperty(exports, "ErrorResult", { enumerable: true, get: function () { return __importDefault(ErrorResult_1).default; } });
81
- var ForbiddenResult_1 = require("./controllers/ForbiddenResult");
82
- Object.defineProperty(exports, "ForbiddenResult", { enumerable: true, get: function () { return __importDefault(ForbiddenResult_1).default; } });
83
- var GenericResult_1 = require("./controllers/GenericResult");
84
- Object.defineProperty(exports, "GenericResult", { enumerable: true, get: function () { return __importDefault(GenericResult_1).default; } });
85
- var NoContentResult_1 = require("./controllers/NoContentResult");
86
- Object.defineProperty(exports, "NoContentResult", { enumerable: true, get: function () { return __importDefault(NoContentResult_1).default; } });
87
- var NotFoundResult_1 = require("./controllers/NotFoundResult");
88
- Object.defineProperty(exports, "NotFoundResult", { enumerable: true, get: function () { return __importDefault(NotFoundResult_1).default; } });
89
- var OKResult_1 = require("./controllers/OKResult");
90
- Object.defineProperty(exports, "OKResult", { enumerable: true, get: function () { return __importDefault(OKResult_1).default; } });
91
- var UnauthorizedResult_1 = require("./controllers/UnauthorizedResult");
92
- Object.defineProperty(exports, "UnauthorizedResult", { enumerable: true, get: function () { return __importDefault(UnauthorizedResult_1).default; } });
93
- const ControllerDecorators_2 = __importDefault(require("./decorators/controllers/ControllerDecorators"));
94
- const DocumentationDecorators_1 = require("./decorators/documentation/DocumentationDecorators");
95
- const ValidationDecorators_1 = __importDefault(require("./decorators/validations/ValidationDecorators"));
96
- const DependecyService_2 = __importDefault(require("./dependencyInjection/DependecyService"));
97
- const HttpVerbs_2 = require("./enums/httpVerbs/HttpVerbs");
98
- const MetadataDecorators_1 = __importDefault(require("./decorators/metadata/MetadataDecorators"));
99
- const OwnMetaDataContainer_1 = __importDefault(require("./metadata/OwnMetaDataContainer"));
100
- var BodyParseException_1 = require("./exceptions/BodyParseException");
101
- Object.defineProperty(exports, "BodyParseException", { enumerable: true, get: function () { return __importDefault(BodyParseException_1).default; } });
102
- var ControllerLoadException_1 = require("./exceptions/ControllerLoadException");
103
- Object.defineProperty(exports, "ControllerLoadException", { enumerable: true, get: function () { return __importDefault(ControllerLoadException_1).default; } });
104
- var ArgumentNullException_1 = require("./exceptions/ArgumentNullException");
105
- Object.defineProperty(exports, "ArgumentNullException", { enumerable: true, get: function () { return __importDefault(ArgumentNullException_1).default; } });
106
- var FindDependencyException_1 = require("./exceptions/FindDependencyException");
107
- Object.defineProperty(exports, "FindDependencyException", { enumerable: true, get: function () { return __importDefault(FindDependencyException_1).default; } });
108
- var DecoratorException_1 = require("./exceptions/DecoratorException");
109
- Object.defineProperty(exports, "DecoratorException", { enumerable: true, get: function () { return __importDefault(DecoratorException_1).default; } });
110
- var InvalidEntityException_1 = require("./exceptions/InvalidEntityException");
111
- Object.defineProperty(exports, "InvalidEntityException", { enumerable: true, get: function () { return __importDefault(InvalidEntityException_1).default; } });
112
- var FileNotFoundException_1 = require("./exceptions/FileNotFoundException");
113
- Object.defineProperty(exports, "FileNotFoundException", { enumerable: true, get: function () { return __importDefault(FileNotFoundException_1).default; } });
114
- function CreateMetada() {
115
- return MetadataDecorators_1.default.CreateMetada();
116
- }
117
- function IgnoreInDocumentation() {
118
- return MetadataDecorators_1.default.IgnoreInDocumentation();
119
- }
120
- function ShowInDocumentation() {
121
- return MetadataDecorators_1.default.ShowInDocumentation();
122
- }
123
- function ArrayElementType(typeBuilder) {
124
- return MetadataDecorators_1.default.ArrayElementType(typeBuilder);
125
- }
126
- function DefaultValue(value) {
127
- return MetadataDecorators_1.default.DefaultValue(value);
128
- }
129
- function UseBefore(midleware) {
130
- return ControllerDecorators_2.default.UseBefore(midleware);
131
- }
132
- ;
133
- function RunBefore(midleware) {
134
- return ControllerDecorators_2.default.RunBefore(midleware);
135
- }
136
- ;
137
- function UseAfter(resultHandler) {
138
- return ControllerDecorators_2.default.UseAfter(resultHandler);
139
- }
140
- ;
141
- function RunAfter(resultHandler) {
142
- return ControllerDecorators_2.default.RunAfter(resultHandler);
143
- }
144
- ;
145
- function Action(actionName) {
146
- return ControllerDecorators_2.default.Action(actionName);
147
- }
148
- ;
149
- function Route(route) {
150
- return ControllerDecorators_2.default.Route(route);
151
- }
152
- ;
153
- function GET(action) {
154
- return ControllerDecorators_2.default.Verb(HttpVerbs_2.HTTPVerbs.GET, action);
155
- }
156
- ;
157
- function POST(action) {
158
- return ControllerDecorators_2.default.Verb(HttpVerbs_2.HTTPVerbs.POST, action);
159
- }
160
- ;
161
- function PUT(action) {
162
- return ControllerDecorators_2.default.Verb(HttpVerbs_2.HTTPVerbs.PUT, action);
163
- }
164
- ;
165
- function DELETE(action) {
166
- return ControllerDecorators_2.default.Verb(HttpVerbs_2.HTTPVerbs.DELETE, action);
167
- }
168
- ;
169
- function ControllerHeader(header) {
170
- return DocumentationDecorators_1.DocumentationDecorators.ControllerHeader(header);
171
- }
172
- ;
173
- function ActionHeader(header) {
174
- return DocumentationDecorators_1.DocumentationDecorators.ActionHeader(header);
175
- }
176
- ;
177
- function Description(description) {
178
- return DocumentationDecorators_1.DocumentationDecorators.Description(description);
179
- }
180
- ;
181
- function RequestJson(json) {
182
- return DocumentationDecorators_1.DocumentationDecorators.RequestJson(json);
183
- }
184
- ;
185
- function ProducesResponse(response) {
186
- return DocumentationDecorators_1.DocumentationDecorators.ProducesResponse(response);
187
- }
188
- ;
189
- function Verb(verb) {
190
- return ControllerDecorators_2.default.Verb(verb);
191
- }
192
- ;
193
- function Inject() {
194
- return DependecyService_2.default.Injectable();
195
- }
196
- function InjectOne(constructorFunction, genericArgumentType) {
197
- return DependecyService_2.default.InjectOne(constructorFunction, genericArgumentType);
198
- }
199
- function InjectGenericTypeArgument(constructorFunction, genericArgumentType) {
200
- return DependecyService_2.default.InjectGenericType(constructorFunction, genericArgumentType);
201
- }
202
- function InjectTypeArgument(genericArgumentType) {
203
- return function (target, property) {
204
- OwnMetaDataContainer_1.default.Set(target.constructor, DependecyService_2.default["_injectableTypeKey"], property.toString(), { Type: Reflect.getMetadata("design:type", target, property), GenericType: genericArgumentType });
205
- };
206
- }
207
- function InjectAbstract(cTor) {
208
- return DependecyService_2.default.InjectOne(cTor);
209
- }
210
- function Validate() {
211
- return ControllerDecorators_2.default.Validate();
212
- }
213
- function ValidateObject(obj) {
214
- return ValidationDecorators_1.default.Validate(obj);
215
- }
216
- function Required(message) {
217
- return ValidationDecorators_1.default.Required(message);
218
- }
219
- function MaxLenght(max, message) {
220
- return ValidationDecorators_1.default.MaxLenght(max, message);
221
- }
222
- function MinLenght(min, message) {
223
- return ValidationDecorators_1.default.MinLenght(min, message);
224
- }
225
- function Max(max, message) {
226
- return ValidationDecorators_1.default.MaxValue(max, message);
227
- }
228
- function Min(min, message) {
229
- return ValidationDecorators_1.default.MinValue(min, message);
230
- }
231
- function Regex(regex, message) {
232
- return ValidationDecorators_1.default.Regex(regex, message);
233
- }
234
- function Rule(action, message) {
235
- return ValidationDecorators_1.default.Rule(action, message);
236
- }
237
- function RequiredFromBodyArg(paramName) {
238
- return ControllerDecorators_2.default.RequiredFromBodyArg(paramName);
239
- }
240
- function OptionalFromBodyArg(paramName) {
241
- return ControllerDecorators_2.default.OptionalFromBodyArg(paramName);
242
- }
243
- function FromBody(paramName, required) {
244
- return ControllerDecorators_2.default.FromBody(paramName, required);
245
- }
246
- function FromFiles(fileName, required) {
247
- return ControllerDecorators_2.default.FromFiles(fileName, required);
248
- }
249
- function MaxFilesSize(bytes) {
250
- return ControllerDecorators_2.default.MaxFilesSize(bytes);
251
- }
252
- function RequiredFromQueryArg(paramName) {
253
- return ControllerDecorators_2.default.RequiredFromQueryArg(paramName);
254
- }
255
- function OptionalFromQueryArg(paramName) {
256
- return ControllerDecorators_2.default.OptionalFromQueryArg(paramName);
257
- }
258
- function FromQuery(paramName, required) {
259
- return ControllerDecorators_2.default.FromQuery(paramName, required);
260
- }
261
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AA6DA,oCAGC;AAGD,sDAGC;AAED,kDAGC;AAED,4CAGC;AAGD,oCAGC;AAID,8BAGC;AAED,8BAGC;AAED,4BAGC;AAED,4BAGC;AAGD,wBAGC;AAED,sBAGC;AAED,kBAGC;AAED,oBAGC;AAED,kBAGC;AAED,wBAGC;AAGD,4CAGC;AAGD,oCAGC;AAED,kCAGC;AAED,kCAGC;AAGD,4CAGC;AAKD,oBAGC;AAED,wBAGC;AAGD,8BAGC;AAED,8DAIC;AAED,gDAMC;AAGD,wCAGC;AAED,4BAGC;AAED,wCAGC;AAED,4BAGC;AAED,8BAGC;AAED,8BAGC;AAED,kBAGC;AAED,kBAGC;AAED,sBAGC;AAED,oBAGC;AAED,kDAGC;AAGD,kDAGC;AAED,4BAGC;AAED,8BAGC;AAED,oCAGC;AAED,oDAGC;AAED,oDAGC;AAGD,8BAGC;AArSD,4BAA0B;AAE1B,6CAAsD;AAA7C,2HAAA,OAAO,OAAe;AAC/B,uEAAiF;AAAxE,qJAAA,OAAO,OAA4B;AAE5C,sFAAiG;AAAxF,8IA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AC,SAAS,CAAC,CAAC;AACjE,CAAC;AAGD,SAAgB,SAAS,CAAC,SAAmB,EAAE,QAAmB;IAE9D,OAAO,8BAAqB,CAAC,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAChE,CAAC"}
@@ -1,15 +0,0 @@
1
- import { Express, Request, Response } from "express";
2
- import IApplicationConfiguration from './IApplicationConfiguration';
3
- import Exception from "../exceptions/Exception";
4
- export default interface IApplication {
5
- Express: Express;
6
- ApplicationThreadExeptionHandler?: ApplicationExceptionHandler;
7
- StartAsync(): Promise<void>;
8
- ConfigureAsync(appConfig: IApplicationConfiguration): Promise<void>;
9
- CreateDocumentation(): void;
10
- }
11
- export interface ApplicationExceptionHandler {
12
- (request: Request, response: Response, exception: Exception): void;
13
- }
14
- export { Express as ExpressApp } from 'express';
15
- //# sourceMappingURL=IApplication.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApplication.d.ts","sourceRoot":"","sources":["../../interfaces/IApplication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,YAAY;IAEjC,OAAO,EAAG,OAAO,CAAC;IAElB,gCAAgC,CAAC,EAAG,2BAA2B,CAAC;IAEhE,UAAU,IAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7B,cAAc,CAAE,SAAS,EAAG,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE,mBAAmB,IAAK,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,2BAA2B;IAExC,CAAC,OAAO,EAAG,OAAO,EAAE,QAAQ,EAAG,QAAQ,EAAE,SAAS,EAAG,SAAS,GAAI,IAAI,CAAC;CAC1E;AAGD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAC,MAAM,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IApplication.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApplication.js","sourceRoot":"","sources":["../../interfaces/IApplication.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- export default interface IApplicationConfiguration {
2
- Host: string;
3
- Port: number;
4
- RootPath: string;
5
- CurrentWorkingDirectory: string;
6
- ExecutablePath: string;
7
- DEBUG: boolean;
8
- EnviromentVariables: {
9
- [key: string]: any;
10
- };
11
- AddScoped(type: Function, ctor?: new (...args: any[]) => any, builder?: (() => any)): void;
12
- AddGenericScoped(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
13
- AddTransient(type: Function, ctor?: new (...args: any[]) => any, builder?: () => any): void;
14
- AddGenericTransient(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
15
- AddSingleton(type: Function, ctor?: new (...args: any[]) => any, builder?: () => any): void;
16
- AddGenericSingleton(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
17
- }
18
- //# sourceMappingURL=IApplicationConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApplicationConfiguration.d.ts","sourceRoot":"","sources":["../../interfaces/IApplicationConfiguration.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,yBAAyB;IAE9C,IAAI,EAAG,MAAM,CAAC;IACd,IAAI,EAAG,MAAM,CAAC;IACd,QAAQ,EAAG,MAAM,CAAC;IAClB,uBAAuB,EAAG,MAAM,CAAC;IACjC,cAAc,EAAG,MAAM,CAAC;IACxB,KAAK,EAAG,OAAO,CAAC;IAChB,mBAAmB,EAAG;QAAC,CAAC,GAAG,EAAG,MAAM,GAAI,GAAG,CAAA;KAAC,CAAC;IAC7C,SAAS,CAAC,IAAI,EAAE,QAAQ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- //# sourceMappingURL=IApplicationConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApplicationConfiguration.js","sourceRoot":"","sources":["../../interfaces/IApplicationConfiguration.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { Request, Response } from 'express';
2
- export default interface IController {
3
- Request: Request;
4
- Response: Response;
5
- }
6
- //# sourceMappingURL=IController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IController.d.ts","sourceRoot":"","sources":["../../interfaces/IController.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AAEzC,MAAM,CAAC,OAAO,WAAW,WAAW;IAEhC,OAAO,EAAG,OAAO,CAAC;IAClB,QAAQ,EAAG,QAAQ,CAAC;CACvB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IController.js","sourceRoot":"","sources":["../../interfaces/IController.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export default class FunctionAnalizer {
2
- static ExtractParamsList(target: Object, func: Function): ArgumentOfFunction[];
3
- static GetParametersNames(ctor: string, method: string): string[];
4
- }
5
- export interface ArgumentOfFunction {
6
- Name: string;
7
- Index: number;
8
- Type: Function;
9
- }
10
- //# sourceMappingURL=FunctionAnalizer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FunctionAnalizer.d.ts","sourceRoot":"","sources":["../../metadata/FunctionAnalizer.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,gBAAgB;WAGnB,iBAAiB,CAAC,MAAM,EAAG,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,kBAAkB,EAAE;WA8BxE,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAG,MAAM,GAAI,MAAM,EAAE;CAgD7E;AAED,MAAM,WAAW,kBAAkB;IAE/B,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,EAAG,MAAM,CAAC;IACf,IAAI,EAAG,QAAQ,CAAA;CAClB"}
@@ -1,57 +0,0 @@
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 Utils_1 = __importDefault(require("../utils/Utils"));
7
- class FunctionAnalizer {
8
- static ExtractParamsList(target, func) {
9
- let init = func.toString().indexOf('(');
10
- let end = func.toString().indexOf(')');
11
- let args = func.toString().substring(init + 1, end);
12
- let argsAndTypes = [];
13
- if (args.trim().length == 0)
14
- return argsAndTypes;
15
- let params = Reflect.getMetadata("design:paramtypes", target, func.name);
16
- args.split(',').forEach((p, i) => {
17
- argsAndTypes.push({
18
- Name: p.trim(),
19
- Index: i,
20
- Type: params[i]
21
- });
22
- });
23
- return argsAndTypes;
24
- }
25
- static GetParametersNames(ctor, method) {
26
- let clean = Utils_1.default.ReplaceAll(Utils_1.default.ReplaceAll(Utils_1.default.ReplaceAll(Utils_1.default.ReplaceAll(ctor, ' ', ''), '\n', ''), '\r\n', ''), '\t', '');
27
- let i = clean.indexOf(`{${method}(`);
28
- if (i == -1)
29
- i = clean.indexOf(`}${method}(`);
30
- if (i == -1)
31
- i = clean.indexOf(`${method}(`);
32
- if (i == -1)
33
- return [];
34
- let e = clean.indexOf('{', i);
35
- let fun = clean.substring(i, e);
36
- if (fun.indexOf(',') == -1) {
37
- let l = fun.lastIndexOf('(');
38
- let j = fun.lastIndexOf(')');
39
- return [fun.substring(l + 1, j)];
40
- }
41
- let parts = fun.split(',');
42
- let parameters = [];
43
- for (let p of parts) {
44
- if (p.indexOf('(') > -1 && p.indexOf(')') == -1) {
45
- parameters.push(p.substring(p.lastIndexOf('(') + 1));
46
- continue;
47
- }
48
- if (p.indexOf('(') == -1 && p.indexOf(')') > -1) {
49
- parameters.push(p.substring(0, p.indexOf(')')));
50
- continue;
51
- }
52
- }
53
- return parameters;
54
- }
55
- }
56
- exports.default = FunctionAnalizer;
57
- //# sourceMappingURL=FunctionAnalizer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FunctionAnalizer.js","sourceRoot":"","sources":["../../metadata/FunctionAnalizer.ts"],"names":[],"mappings":";;;;;AAAA,2DAAmC;AAEnC,MAAqB,gBAAgB;IAG1B,MAAM,CAAC,iBAAiB,CAAC,MAAe,EAAE,IAAc;QAE3D,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEvC,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;QAEpD,IAAI,YAAY,GAA0B,EAAE,CAAC;QAE7C,IAAG,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC;YACtB,OAAO,YAAY,CAAC;QAExB,IAAI,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAE7B,YAAY,CAAC,IAAI,CACb;gBACI,IAAI,EAAG,CAAC,CAAC,IAAI,EAAE;gBACf,KAAK,EAAG,CAAC;gBACT,IAAI,EAAG,MAAM,CAAC,CAAC,CAAC;aACnB,CAAC,CAAC;QACX,CAAC,CAAC,CAAA;QAGF,OAAO,YAAY,CAAC;IAExB,CAAC;IAGM,MAAM,CAAC,kBAAkB,CAAC,IAAY,EAAE,MAAe;QAE1D,IAAI,KAAK,GAAG,eAAK,CAAC,UAAU,CAAC,eAA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,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAC9C,CAAC;gBACG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACrD,SAAS;YACb,CAAC;YAED,IAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAC9C,CAAC;gBACG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAChD,SAAS;YACb,CAAC;QACL,CAAC;QAGD,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAjFD,mCAiFC"}
@@ -1,13 +0,0 @@
1
- export default class OwnMetaDataContainer {
2
- private static _metadas;
3
- static Get(target: any, key: string, member?: string): IMetaData | undefined;
4
- static Set(target: Function, key: string, member?: string, value?: any): void;
5
- private static TryFindCtor;
6
- }
7
- export interface IMetaData {
8
- CTor: Function;
9
- Member?: string;
10
- Key: string;
11
- Value?: any;
12
- }
13
- //# sourceMappingURL=OwnMetaDataContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OwnMetaDataContainer.d.ts","sourceRoot":"","sources":["../../metadata/OwnMetaDataContainer.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,oBAAoB;IAErC,OAAO,CAAE,MAAM,CAAC,QAAQ,CAAoB;WAE9B,GAAG,CAAC,MAAM,EAAG,GAAG,EAAE,GAAG,EAAG,MAAM,EAAE,MAAM,CAAC,EAAG,MAAM,GAAI,SAAS,GAAG,SAAS;WAUzE,GAAG,CAAC,MAAM,EAAG,QAAQ,EAAE,GAAG,EAAG,MAAM,EAAE,MAAM,CAAC,EAAG,MAAM,EAAE,KAAK,CAAC,EAAG,GAAG,GAAI,IAAI;IAoBzF,OAAO,CAAC,MAAM,CAAC,WAAW;CAyB7B;AAED,MAAM,WAAW,SAAS;IAEtB,IAAI,EAAG,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAG,MAAM,CAAC;IACjB,GAAG,EAAG,MAAM,CAAC;IACb,KAAK,CAAC,EAAG,GAAG,CAAA;CACf"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class OwnMetaDataContainer {
4
- static Get(target, key, member) {
5
- let meta = this._metadas.filter(s => s.Key == key && OwnMetaDataContainer.TryFindCtor(s.CTor, target) && (s.Member == member || (s.Member == undefined && member == undefined)));
6
- if (meta && meta.length > 0)
7
- return meta[0];
8
- return undefined;
9
- }
10
- static Set(target, key, member, value) {
11
- let meta = this.Get(target, key, member);
12
- if (meta) {
13
- meta.Value = value;
14
- }
15
- else {
16
- this._metadas.push({
17
- CTor: target,
18
- Key: key,
19
- Member: member,
20
- Value: value
21
- });
22
- }
23
- }
24
- static TryFindCtor(cTor, target) {
25
- let sameType = cTor == target || cTor == target.constructor;
26
- let sameProto = (target.prototype && target.prototype.constructor == cTor);
27
- let sameAssign = (target.prototype && target.prototype.constructor.toString() == cTor.toString());
28
- let found = sameType || sameProto || sameAssign;
29
- if (found)
30
- return true;
31
- let current = typeof target == typeof Function ? target.prototype : target;
32
- while (current) {
33
- if (cTor == current) {
34
- return true;
35
- }
36
- current = current.__proto__;
37
- }
38
- return false;
39
- }
40
- }
41
- OwnMetaDataContainer._metadas = [];
42
- exports.default = OwnMetaDataContainer;
43
- //# sourceMappingURL=OwnMetaDataContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OwnMetaDataContainer.js","sourceRoot":"","sources":["../../metadata/OwnMetaDataContainer.ts"],"names":[],"mappings":";;AAAA,MAAqB,oBAAoB;IAI9B,MAAM,CAAC,GAAG,CAAC,MAAY,EAAE,GAAY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CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClG,IAAI,KAAK,GAAG,QAAQ,IAAI,SAAS,IAAI,UAAU,CAAC;QAEhD,IAAG,KAAK;YACJ,OAAO,IAAI,CAAC;QAEhB,IAAI,OAAO,GAAG,OAAO,MAAM,IAAI,OAAO,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;QAE3E,OAAM,OAAO,EACb,CAAC;YACG,IAAG,IAAI,IAAI,OAAO,EAClB,CAAC;gBACG,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC;QAChC,CAAC;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;;AAtDe,6BAAQ,GAAiB,EAAE,CAAC;kBAF3B,oBAAoB"}
@@ -1,10 +0,0 @@
1
- export default class Type {
2
- static CreateTemplateFrom<T extends object>(ctor: new (...args: any[]) => T): T;
3
- static FillObject<T extends object>(obj: T): T;
4
- static SetPrototype<T>(obj: any, cTor: new (...args: any[]) => T): T;
5
- static Cast<T>(obj: any, type: new (...args: any[]) => T): T | undefined;
6
- static ValidateType(source: any, cTor: new (...args: any[]) => any): void;
7
- static Is<T extends object, U extends object>(obj: T, ctor: new (...args: any[]) => U): boolean;
8
- static CastStringToDateUTC(date: string): Date;
9
- }
10
- //# sourceMappingURL=Type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../metadata/Type.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAO,IAAI;WAEP,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;WAyDxE,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;WAgDvC,YAAY,CAAC,CAAC,EAAE,GAAG,EAAG,GAAG,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAI,CAAC;WAiE/D,IAAI,CAAC,CAAC,EAAE,GAAG,EAAG,GAAG,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAK,CAAC,GAAG,SAAS;WAiDpE,YAAY,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;WA0D3D,EAAE,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,OAAO;WAiBxF,mBAAmB,CAAC,IAAI,EAAG,MAAM,GAAI,IAAI;CAmD1D"}