web_api_base 6.1.1 → 6.1.3

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/dist/Application.d.ts +29 -0
  2. package/dist/Application.d.ts.map +1 -0
  3. package/dist/Application.js +560 -0
  4. package/dist/Application.js.map +1 -0
  5. package/dist/ApplicationConfiguration.d.ts +24 -0
  6. package/dist/ApplicationConfiguration.d.ts.map +1 -0
  7. package/dist/ApplicationConfiguration.js +141 -0
  8. package/dist/ApplicationConfiguration.js.map +1 -0
  9. package/dist/bin/CreateApplication.d.ts +2 -0
  10. package/dist/bin/CreateApplication.d.ts.map +1 -0
  11. package/dist/bin/CreateApplication.js +6 -0
  12. package/dist/bin/CreateApplication.js.map +1 -0
  13. package/dist/bin/CreateController.d.ts +2 -0
  14. package/dist/bin/CreateController.d.ts.map +1 -0
  15. package/dist/bin/CreateController.js +5 -0
  16. package/dist/bin/CreateController.js.map +1 -0
  17. package/dist/bin/Factory.d.ts +3 -0
  18. package/dist/bin/Factory.d.ts.map +1 -0
  19. package/dist/bin/Factory.js +81 -0
  20. package/dist/bin/Factory.js.map +1 -0
  21. package/dist/controllers/AcceptedResult.d.ts +5 -0
  22. package/dist/controllers/AcceptedResult.d.ts.map +1 -0
  23. package/dist/controllers/AcceptedResult.js +13 -0
  24. package/dist/controllers/AcceptedResult.js.map +1 -0
  25. package/dist/controllers/ActionResult.d.ts +6 -0
  26. package/dist/controllers/ActionResult.d.ts.map +1 -0
  27. package/dist/controllers/ActionResult.js +10 -0
  28. package/dist/controllers/ActionResult.js.map +1 -0
  29. package/dist/controllers/BadRequestResult.d.ts +5 -0
  30. package/dist/controllers/BadRequestResult.d.ts.map +1 -0
  31. package/dist/controllers/BadRequestResult.js +13 -0
  32. package/dist/controllers/BadRequestResult.js.map +1 -0
  33. package/dist/controllers/CreatedResult.d.ts +5 -0
  34. package/dist/controllers/CreatedResult.d.ts.map +1 -0
  35. package/dist/controllers/CreatedResult.js +13 -0
  36. package/dist/controllers/CreatedResult.js.map +1 -0
  37. package/dist/controllers/DownloadFileResult.d.ts +5 -0
  38. package/dist/controllers/DownloadFileResult.d.ts.map +1 -0
  39. package/dist/controllers/DownloadFileResult.js +13 -0
  40. package/dist/controllers/DownloadFileResult.js.map +1 -0
  41. package/dist/controllers/ErrorResult.d.ts +5 -0
  42. package/dist/controllers/ErrorResult.d.ts.map +1 -0
  43. package/dist/controllers/ErrorResult.js +13 -0
  44. package/dist/controllers/ErrorResult.js.map +1 -0
  45. package/dist/controllers/ForbiddenResult.d.ts +5 -0
  46. package/dist/controllers/ForbiddenResult.d.ts.map +1 -0
  47. package/dist/controllers/ForbiddenResult.js +13 -0
  48. package/dist/controllers/ForbiddenResult.js.map +1 -0
  49. package/dist/controllers/GenericResult.d.ts +6 -0
  50. package/dist/controllers/GenericResult.d.ts.map +1 -0
  51. package/dist/controllers/GenericResult.js +13 -0
  52. package/dist/controllers/GenericResult.js.map +1 -0
  53. package/dist/controllers/NoContentResult.d.ts +5 -0
  54. package/dist/controllers/NoContentResult.d.ts.map +1 -0
  55. package/dist/controllers/NoContentResult.js +13 -0
  56. package/dist/controllers/NoContentResult.js.map +1 -0
  57. package/dist/controllers/NotFoundResult.d.ts +5 -0
  58. package/dist/controllers/NotFoundResult.d.ts.map +1 -0
  59. package/dist/controllers/NotFoundResult.js +13 -0
  60. package/dist/controllers/NotFoundResult.js.map +1 -0
  61. package/dist/controllers/OKResult.d.ts +5 -0
  62. package/dist/controllers/OKResult.d.ts.map +1 -0
  63. package/dist/controllers/OKResult.js +13 -0
  64. package/dist/controllers/OKResult.js.map +1 -0
  65. package/dist/controllers/SendFileResult.d.ts +5 -0
  66. package/dist/controllers/SendFileResult.d.ts.map +1 -0
  67. package/dist/controllers/SendFileResult.js +13 -0
  68. package/dist/controllers/SendFileResult.js.map +1 -0
  69. package/dist/controllers/UnauthorizedResult.d.ts +5 -0
  70. package/dist/controllers/UnauthorizedResult.d.ts.map +1 -0
  71. package/dist/controllers/UnauthorizedResult.js +13 -0
  72. package/dist/controllers/UnauthorizedResult.js.map +1 -0
  73. package/dist/controllers/base/ControllerBase.d.ts +33 -0
  74. package/dist/controllers/base/ControllerBase.d.ts.map +1 -0
  75. package/dist/controllers/base/ControllerBase.js +84 -0
  76. package/dist/controllers/base/ControllerBase.js.map +1 -0
  77. package/dist/decorators/controllers/ControllerDecorators.d.ts +66 -0
  78. package/dist/decorators/controllers/ControllerDecorators.d.ts.map +1 -0
  79. package/dist/decorators/controllers/ControllerDecorators.js +256 -0
  80. package/dist/decorators/controllers/ControllerDecorators.js.map +1 -0
  81. package/dist/decorators/documentation/DocumentationDecorators.d.ts +24 -0
  82. package/dist/decorators/documentation/DocumentationDecorators.d.ts.map +1 -0
  83. package/dist/decorators/documentation/DocumentationDecorators.js +69 -0
  84. package/dist/decorators/documentation/DocumentationDecorators.js.map +1 -0
  85. package/dist/decorators/metadata/MetadataDecorators.d.ts +17 -0
  86. package/dist/decorators/metadata/MetadataDecorators.d.ts.map +1 -0
  87. package/dist/decorators/metadata/MetadataDecorators.js +67 -0
  88. package/dist/decorators/metadata/MetadataDecorators.js.map +1 -0
  89. package/dist/decorators/validations/ValidationDecorators.d.ts +53 -0
  90. package/dist/decorators/validations/ValidationDecorators.d.ts.map +1 -0
  91. package/dist/decorators/validations/ValidationDecorators.js +180 -0
  92. package/dist/decorators/validations/ValidationDecorators.js.map +1 -0
  93. package/dist/dependencyInjection/DependecyService.d.ts +36 -0
  94. package/dist/dependencyInjection/DependecyService.d.ts.map +1 -0
  95. package/dist/dependencyInjection/DependecyService.js +204 -0
  96. package/dist/dependencyInjection/DependecyService.js.map +1 -0
  97. package/dist/dependencyInjection/IDIContext.d.ts +9 -0
  98. package/dist/dependencyInjection/IDIContext.d.ts.map +1 -0
  99. package/dist/dependencyInjection/IDIContext.js +3 -0
  100. package/dist/dependencyInjection/IDIContext.js.map +1 -0
  101. package/dist/documentation/CSS.d.ts +7 -0
  102. package/dist/documentation/CSS.d.ts.map +1 -0
  103. package/dist/documentation/CSS.js +302 -0
  104. package/dist/documentation/CSS.js.map +1 -0
  105. package/dist/documentation/Documentation.d.ts +8 -0
  106. package/dist/documentation/Documentation.d.ts.map +1 -0
  107. package/dist/documentation/Documentation.js +89 -0
  108. package/dist/documentation/Documentation.js.map +1 -0
  109. package/dist/documentation/HTML.d.ts +5 -0
  110. package/dist/documentation/HTML.d.ts.map +1 -0
  111. package/dist/documentation/HTML.js +26 -0
  112. package/dist/documentation/HTML.js.map +1 -0
  113. package/dist/documentation/JS.d.ts +6 -0
  114. package/dist/documentation/JS.d.ts.map +1 -0
  115. package/dist/documentation/JS.js +419 -0
  116. package/dist/documentation/JS.js.map +1 -0
  117. package/dist/enums/httpVerbs/HttpVerbs.d.ts +7 -0
  118. package/dist/enums/httpVerbs/HttpVerbs.d.ts.map +1 -0
  119. package/dist/enums/httpVerbs/HttpVerbs.js +11 -0
  120. package/dist/enums/httpVerbs/HttpVerbs.js.map +1 -0
  121. package/dist/exceptions/ArgumentNullException.d.ts +4 -0
  122. package/dist/exceptions/ArgumentNullException.d.ts.map +1 -0
  123. package/dist/exceptions/ArgumentNullException.js +10 -0
  124. package/dist/exceptions/ArgumentNullException.js.map +1 -0
  125. package/dist/exceptions/BodyParseException.d.ts +4 -0
  126. package/dist/exceptions/BodyParseException.d.ts.map +1 -0
  127. package/dist/exceptions/BodyParseException.js +10 -0
  128. package/dist/exceptions/BodyParseException.js.map +1 -0
  129. package/dist/exceptions/ControllerLoadException.d.ts +4 -0
  130. package/dist/exceptions/ControllerLoadException.d.ts.map +1 -0
  131. package/dist/exceptions/ControllerLoadException.js +10 -0
  132. package/dist/exceptions/ControllerLoadException.js.map +1 -0
  133. package/dist/exceptions/DecoratorException.d.ts +4 -0
  134. package/dist/exceptions/DecoratorException.d.ts.map +1 -0
  135. package/dist/exceptions/DecoratorException.js +10 -0
  136. package/dist/exceptions/DecoratorException.js.map +1 -0
  137. package/dist/exceptions/Exception.d.ts +5 -0
  138. package/dist/exceptions/Exception.d.ts.map +1 -0
  139. package/dist/exceptions/Exception.js +10 -0
  140. package/dist/exceptions/Exception.js.map +1 -0
  141. package/dist/exceptions/FileNotFoundException.d.ts +4 -0
  142. package/dist/exceptions/FileNotFoundException.d.ts.map +1 -0
  143. package/dist/exceptions/FileNotFoundException.js +10 -0
  144. package/dist/exceptions/FileNotFoundException.js.map +1 -0
  145. package/dist/exceptions/FindDependencyException.d.ts +4 -0
  146. package/dist/exceptions/FindDependencyException.d.ts.map +1 -0
  147. package/dist/exceptions/FindDependencyException.js +10 -0
  148. package/dist/exceptions/FindDependencyException.js.map +1 -0
  149. package/dist/exceptions/InvalidEntityException.d.ts +4 -0
  150. package/dist/exceptions/InvalidEntityException.d.ts.map +1 -0
  151. package/dist/exceptions/InvalidEntityException.js +10 -0
  152. package/dist/exceptions/InvalidEntityException.js.map +1 -0
  153. package/dist/exceptions/RegisterDependencyException.d.ts +4 -0
  154. package/dist/exceptions/RegisterDependencyException.d.ts.map +1 -0
  155. package/dist/exceptions/RegisterDependencyException.js +10 -0
  156. package/dist/exceptions/RegisterDependencyException.js.map +1 -0
  157. package/dist/file/AbstractFileService.d.ts +12 -0
  158. package/dist/file/AbstractFileService.d.ts.map +1 -0
  159. package/dist/file/AbstractFileService.js +6 -0
  160. package/dist/file/AbstractFileService.js.map +1 -0
  161. package/dist/file/AbstractMultiPartRequestService.d.ts +17 -0
  162. package/dist/file/AbstractMultiPartRequestService.d.ts.map +1 -0
  163. package/dist/file/AbstractMultiPartRequestService.js +12 -0
  164. package/dist/file/AbstractMultiPartRequestService.js.map +1 -0
  165. package/dist/file/File.d.ts +6 -0
  166. package/dist/file/File.d.ts.map +1 -0
  167. package/dist/file/File.js +10 -0
  168. package/dist/file/File.js.map +1 -0
  169. package/dist/file/FileService.d.ts +13 -0
  170. package/dist/file/FileService.d.ts.map +1 -0
  171. package/dist/file/FileService.js +136 -0
  172. package/dist/file/FileService.js.map +1 -0
  173. package/dist/file/FormidableMultiPartRequestService.d.ts +5 -0
  174. package/dist/file/FormidableMultiPartRequestService.d.ts.map +1 -0
  175. package/dist/file/FormidableMultiPartRequestService.js +73 -0
  176. package/dist/file/FormidableMultiPartRequestService.js.map +1 -0
  177. package/dist/index.d.ts +85 -0
  178. package/dist/index.d.ts.map +1 -0
  179. package/dist/index.js +262 -0
  180. package/dist/index.js.map +1 -0
  181. package/dist/interfaces/IApplication.d.ts +15 -0
  182. package/dist/interfaces/IApplication.d.ts.map +1 -0
  183. package/dist/interfaces/IApplication.js +3 -0
  184. package/dist/interfaces/IApplication.js.map +1 -0
  185. package/dist/interfaces/IApplicationConfiguration.d.ts +18 -0
  186. package/dist/interfaces/IApplicationConfiguration.d.ts.map +1 -0
  187. package/dist/interfaces/IApplicationConfiguration.js +3 -0
  188. package/dist/interfaces/IApplicationConfiguration.js.map +1 -0
  189. package/dist/interfaces/IController.d.ts +6 -0
  190. package/dist/interfaces/IController.d.ts.map +1 -0
  191. package/dist/interfaces/IController.js +3 -0
  192. package/dist/interfaces/IController.js.map +1 -0
  193. package/dist/metadata/FunctionAnalizer.d.ts +10 -0
  194. package/dist/metadata/FunctionAnalizer.d.ts.map +1 -0
  195. package/dist/metadata/FunctionAnalizer.js +57 -0
  196. package/dist/metadata/FunctionAnalizer.js.map +1 -0
  197. package/dist/metadata/OwnMetaDataContainer.d.ts +13 -0
  198. package/dist/metadata/OwnMetaDataContainer.d.ts.map +1 -0
  199. package/dist/metadata/OwnMetaDataContainer.js +43 -0
  200. package/dist/metadata/OwnMetaDataContainer.js.map +1 -0
  201. package/dist/metadata/Type.d.ts +10 -0
  202. package/dist/metadata/Type.d.ts.map +1 -0
  203. package/dist/metadata/Type.js +252 -0
  204. package/dist/metadata/Type.js.map +1 -0
  205. package/dist/midlewares/IMidleware.d.ts +20 -0
  206. package/dist/midlewares/IMidleware.d.ts.map +1 -0
  207. package/dist/midlewares/IMidleware.js +3 -0
  208. package/dist/midlewares/IMidleware.js.map +1 -0
  209. package/dist/utils/Utils.d.ts +4 -0
  210. package/dist/utils/Utils.d.ts.map +1 -0
  211. package/dist/utils/Utils.js +11 -0
  212. package/dist/utils/Utils.js.map +1 -0
  213. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationConfiguration.d.ts","sourceRoot":"","sources":["../ApplicationConfiguration.ts"],"names":[],"mappings":"AAEA,OAAO,yBAAyB,MAAM,wCAAwC,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,wBAAyB,YAAW,yBAAyB;IAGvE,IAAI,EAAG,MAAM,CAAe;IAC5B,IAAI,EAAG,MAAM,CAAS;IACtB,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,CAAM;;IAiBlD,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,IAAI;IAY1F,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,KAAK,GAAG,GAAG,IAAI;IAOnI,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI;IAa7F,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,KAAK,GAAG,GAAG,IAAI;IAMtI,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,IAAI;IAY3F,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,KAAK,GAAG,GAAG,IAAI;YAM/H,cAAc;IAKf,SAAS,IAAK,OAAO,CAAC,OAAO,CAAC;IAoC9B,SAAS,IAAK,OAAO,CAAC,OAAO,CAAC;IA4B3C,OAAO,CAAC,gBAAgB;CAQ3B"}
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ const fs_1 = __importDefault(require("fs"));
39
+ const path_1 = __importDefault(require("path"));
40
+ const DependecyService_1 = __importStar(require("./dependencyInjection/DependecyService"));
41
+ class ApplicationConfiguration {
42
+ constructor() {
43
+ this.Host = "localhost";
44
+ this.Port = 60000;
45
+ this.EnviromentVariables = {};
46
+ this.CurrentWorkingDirectory = process.cwd();
47
+ this.ExecutablePath = process.argv[1];
48
+ this.RootPath = path_1.default.parse(this.ExecutablePath).dir;
49
+ if (process.argv.indexOf("--debug") > -1 || process.argv.indexOf("--DEBUG") > 1)
50
+ this.DEBUG = true;
51
+ else
52
+ this.DEBUG = false;
53
+ }
54
+ AddScoped(type, ctor, builder) {
55
+ if (ctor) {
56
+ DependecyService_1.default.RegisterFor(type, ctor, DependecyService_1.DIEscope.SCOPED, builder);
57
+ }
58
+ else {
59
+ DependecyService_1.default.Register(type, DependecyService_1.DIEscope.SCOPED, builder);
60
+ }
61
+ }
62
+ AddGenericScoped(type, genericType, ctor, builder) {
63
+ DependecyService_1.default.RegisterGeneric(type, genericType, ctor, DependecyService_1.DIEscope.SCOPED, builder);
64
+ }
65
+ AddTransient(type, ctor, builder) {
66
+ if (ctor) {
67
+ DependecyService_1.default.RegisterFor(type, ctor, DependecyService_1.DIEscope.TRANSIENT, builder);
68
+ }
69
+ else {
70
+ DependecyService_1.default.Register(type, DependecyService_1.DIEscope.TRANSIENT, builder);
71
+ }
72
+ }
73
+ AddGenericTransient(type, genericType, ctor, builder) {
74
+ DependecyService_1.default.RegisterGeneric(type, genericType, ctor, DependecyService_1.DIEscope.TRANSIENT, builder);
75
+ }
76
+ AddSingleton(type, ctor, builder) {
77
+ if (ctor) {
78
+ DependecyService_1.default.RegisterFor(type, ctor, DependecyService_1.DIEscope.SINGLETON, builder);
79
+ }
80
+ else {
81
+ DependecyService_1.default.Register(type, DependecyService_1.DIEscope.SINGLETON, builder);
82
+ }
83
+ }
84
+ AddGenericSingleton(type, genericType, ctor, builder) {
85
+ DependecyService_1.default.RegisterGeneric(type, genericType, ctor, DependecyService_1.DIEscope.SINGLETON, builder);
86
+ }
87
+ CheckFileAsync() {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ return new Promise((resolve, _) => resolve(fs_1.default.existsSync(`${this.RootPath}\\config.json`)));
90
+ });
91
+ }
92
+ LoadAsync() {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ return new Promise((resolve, _) => __awaiter(this, void 0, void 0, function* () {
95
+ if (!(yield this.CheckFileAsync()))
96
+ return resolve(false);
97
+ fs_1.default.readFile(`${this.RootPath}\\config.json`, 'utf-8', (error, data) => {
98
+ if (error) {
99
+ throw error;
100
+ }
101
+ try {
102
+ let json = JSON.parse(data);
103
+ for (let key in this) {
104
+ if (json[key] != undefined) {
105
+ this[key] = json[key];
106
+ }
107
+ }
108
+ }
109
+ catch (_a) { }
110
+ this.UpdateEnviroment();
111
+ resolve(true);
112
+ });
113
+ }));
114
+ });
115
+ }
116
+ SaveAsync() {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ return new Promise((resolve, _) => {
119
+ let copy = JSON.parse(JSON.stringify(this));
120
+ delete copy.RootPath;
121
+ delete copy.DEBUG;
122
+ delete copy.CurrentWorkingDirectory;
123
+ delete copy.ExecutablePath;
124
+ fs_1.default.writeFile(`${this.RootPath}\\config.json`, JSON.stringify(copy), 'utf-8', error => {
125
+ this.UpdateEnviroment();
126
+ if (error) {
127
+ throw error;
128
+ }
129
+ resolve(true);
130
+ });
131
+ });
132
+ });
133
+ }
134
+ UpdateEnviroment() {
135
+ for (let k in this.EnviromentVariables) {
136
+ process.env[k] = this.EnviromentVariables[k];
137
+ }
138
+ }
139
+ }
140
+ exports.default = ApplicationConfiguration;
141
+ //# sourceMappingURL=ApplicationConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationConfiguration.js","sourceRoot":"","sources":["../ApplicationConfiguration.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CreateApplication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateApplication.d.ts","sourceRoot":"","sources":["../../bin/CreateApplication.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Factory_1 = require("./Factory");
4
+ (0, Factory_1.CreateApp)();
5
+ (0, Factory_1.CreateController)();
6
+ //# sourceMappingURL=CreateApplication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateApplication.js","sourceRoot":"","sources":["../../bin/CreateApplication.ts"],"names":[],"mappings":";;AAAA,uCAAsD;AAEtD,IAAA,mBAAS,GAAE,CAAC;AACZ,IAAA,0BAAgB,GAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CreateController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateController.d.ts","sourceRoot":"","sources":["../../bin/CreateController.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Factory_1 = require("./Factory");
4
+ (0, Factory_1.CreateController)();
5
+ //# sourceMappingURL=CreateController.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateController.js","sourceRoot":"","sources":["../../bin/CreateController.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAE3C,IAAA,0BAAgB,GAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function CreateApp(): void;
2
+ export declare function CreateController(): void;
3
+ //# sourceMappingURL=Factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Factory.d.ts","sourceRoot":"","sources":["../../bin/Factory.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,SAwCxB;AAGD,wBAAgB,gBAAgB,SA8C/B"}
@@ -0,0 +1,81 @@
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.CreateApp = CreateApp;
7
+ exports.CreateController = CreateController;
8
+ const path_1 = __importDefault(require("path"));
9
+ const fs_1 = __importDefault(require("fs"));
10
+ function CreateApp() {
11
+ var currentDirectoryPath = path_1.default.join(process.cwd());
12
+ var AppName = "App";
13
+ var app = `
14
+ import { Application, IApplicationConfiguration } from "web_api_base";
15
+
16
+
17
+ export default class ${AppName} extends Application
18
+ {
19
+ constructor()
20
+ {
21
+ super();
22
+ }
23
+
24
+ public override async ConfigureAsync(appConfig: IApplicationConfiguration): Promise<void>
25
+ {
26
+
27
+ this.UseCors();
28
+
29
+ await this.UseControllersAsync();
30
+
31
+ if(appConfig.DEBUG)
32
+ this.CreateDocumentation();
33
+
34
+ }
35
+
36
+
37
+ }`;
38
+ if (fs_1.default.existsSync(path_1.default.join(currentDirectoryPath, `${AppName}.ts`)))
39
+ console.log(`The class ${AppName} already exists`);
40
+ else {
41
+ fs_1.default.writeFileSync(path_1.default.join(currentDirectoryPath, `${AppName}.ts`), app, 'utf-8');
42
+ console.log(`The class ${AppName} created : ${path_1.default.join(currentDirectoryPath, `${AppName}.ts`)}`);
43
+ }
44
+ }
45
+ function CreateController() {
46
+ var currentDirectoryPath = path_1.default.join(process.cwd());
47
+ var controllerName = "SampleController";
48
+ var controller = `
49
+ import { ControllerBase, Route, GET, ProducesResponse, ActionResult } from "web_api_base";
50
+
51
+
52
+ @Route()
53
+ export default class ${controllerName} extends ControllerBase
54
+ {
55
+
56
+ constructor()
57
+ {
58
+ super();
59
+ }
60
+
61
+ @GET()
62
+ @ProducesResponse({ Status : 200, Description: "OK", JSON : JSON.stringify({status : "pong"}, null, 2)})
63
+ public Ping() : ActionResult
64
+ {
65
+ return this.OK({status : "pong"});
66
+ }
67
+
68
+ }`;
69
+ if (!(currentDirectoryPath.endsWith("controllers/") || currentDirectoryPath.endsWith("controllers"))) {
70
+ currentDirectoryPath = path_1.default.join(currentDirectoryPath, "controllers");
71
+ if (!fs_1.default.existsSync(currentDirectoryPath))
72
+ fs_1.default.mkdirSync(currentDirectoryPath);
73
+ }
74
+ if (fs_1.default.existsSync(path_1.default.join(currentDirectoryPath, `${controllerName}.ts`)))
75
+ console.log(`The controller ${controllerName} already exists`);
76
+ else {
77
+ fs_1.default.writeFileSync(path_1.default.join(currentDirectoryPath, `${controllerName}.ts`), controller, 'utf-8');
78
+ console.log(`The controller ${controllerName} created : ${path_1.default.join(currentDirectoryPath, `${controllerName}.ts`)}`);
79
+ }
80
+ }
81
+ //# sourceMappingURL=Factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Factory.js","sourceRoot":"","sources":["../../bin/Factory.ts"],"names":[],"mappings":";;;;;AAGA,8BAwCC;AAGD,4CA8CC;AA5FD,gDAAwB;AACxB,4CAAoB;AAEpB,SAAgB,SAAS;IAGrB,IAAI,oBAAoB,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAEpD,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,IAAI,GAAG,GAAG;;;;uBAIS,OAAO;;;;;;;;;;;;;;;;;;;;EAoB5B,CAAC;IAEC,IAAG,YAAE,CAAC,UAAU,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,OAAO,KAAK,CAAC,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,iBAAiB,CAAC,CAAC;SAEvD,CAAC;QACG,YAAE,CAAC,aAAa,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,OAAO,KAAK,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QACjF,OAAO,CAAC,GAAG,CAAC,aAAa,OAAO,cAAc,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC;IACtG,CAAC;AACL,CAAC;AAGD,SAAgB,gBAAgB;IAG5B,IAAI,oBAAoB,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAGpD,IAAI,cAAc,GAAG,kBAAkB,CAAC;IAExC,IAAI,UAAU,GAAG;;;;;uBAKE,cAAc;;;;;;;;;;;;;;;EAenC,CAAC;IAEC,IAAG,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,oBAAoB,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,EACnG,CAAC;QACG,oBAAoB,GAAG,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC;QAEtE,IAAG,CAAC,YAAE,CAAC,UAAU,CAAC,oBAAoB,CAAC;YACnC,YAAE,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAG,YAAE,CAAC,UAAU,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,cAAc,KAAK,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,kBAAkB,cAAc,iBAAiB,CAAC,CAAC;SAEnE,CAAC;QACG,YAAE,CAAC,aAAa,CAAC,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,cAAc,KAAK,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAC/F,OAAO,CAAC,GAAG,CAAC,kBAAkB,cAAc,cAAc,cAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,GAAG,cAAc,KAAK,CAAC,EAAE,CAAC,CAAC;IACzH,CAAC;AAEL,CAAC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class AcceptedResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=AcceptedResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcceptedResult.d.ts","sourceRoot":"","sources":["../../controllers/AcceptedResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAE/C,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class AcceptedResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(202, result);
10
+ }
11
+ }
12
+ exports.default = AcceptedResult;
13
+ //# sourceMappingURL=AcceptedResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcceptedResult.js","sourceRoot":"","sources":["../../controllers/AcceptedResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,cAAkB,SAAQ,uBAAgB;IAE3D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,iCAKC"}
@@ -0,0 +1,6 @@
1
+ export default class ActionResult {
2
+ StatusCode: number;
3
+ Result?: any;
4
+ constructor(status: number, result?: any);
5
+ }
6
+ //# sourceMappingURL=ActionResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionResult.d.ts","sourceRoot":"","sources":["../../controllers/ActionResult.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,YAAY;IAEtB,UAAU,EAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAG,GAAG,CAAC;gBAET,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAG,GAAG;CAK5C"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ActionResult {
4
+ constructor(status, result) {
5
+ this.Result = result;
6
+ this.StatusCode = status;
7
+ }
8
+ }
9
+ exports.default = ActionResult;
10
+ //# sourceMappingURL=ActionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionResult.js","sourceRoot":"","sources":["../../controllers/ActionResult.ts"],"names":[],"mappings":";;AAAA,MAAqB,YAAY;IAK7B,YAAY,MAAc,EAAE,MAAa;QAErC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC7B,CAAC;CACJ;AAVD,+BAUC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class BadRequestResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=BadRequestResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadRequestResult.d.ts","sourceRoot":"","sources":["../../controllers/BadRequestResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,gBAAgB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAEjD,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class BadRequestResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(400, result);
10
+ }
11
+ }
12
+ exports.default = BadRequestResult;
13
+ //# sourceMappingURL=BadRequestResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadRequestResult.js","sourceRoot":"","sources":["../../controllers/BadRequestResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,gBAAoB,SAAQ,uBAAgB;IAE7D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,mCAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class CreatedResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=CreatedResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreatedResult.d.ts","sourceRoot":"","sources":["../../controllers/CreatedResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,aAAa,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAE9C,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class CreatedResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(201, result);
10
+ }
11
+ }
12
+ exports.default = CreatedResult;
13
+ //# sourceMappingURL=CreatedResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreatedResult.js","sourceRoot":"","sources":["../../controllers/CreatedResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,aAAiB,SAAQ,uBAAgB;IAE1D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,gCAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class DownloadFileResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=DownloadFileResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadFileResult.d.ts","sourceRoot":"","sources":["../../controllers/DownloadFileResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,kBAAkB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBACnD,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class DownloadFileResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(200, result);
10
+ }
11
+ }
12
+ exports.default = DownloadFileResult;
13
+ //# sourceMappingURL=DownloadFileResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadFileResult.js","sourceRoot":"","sources":["../../controllers/DownloadFileResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAE5C,MAAqB,kBAAsB,SAAQ,uBAAgB;IAC/D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AAJD,qCAIC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class ErrorResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=ErrorResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResult.d.ts","sourceRoot":"","sources":["../../controllers/ErrorResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,WAAW,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAE5C,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class ErrorResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(500, result);
10
+ }
11
+ }
12
+ exports.default = ErrorResult;
13
+ //# sourceMappingURL=ErrorResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResult.js","sourceRoot":"","sources":["../../controllers/ErrorResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,WAAe,SAAQ,uBAAgB;IAExD,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,8BAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class ForbiddenResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=ForbiddenResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbiddenResult.d.ts","sourceRoot":"","sources":["../../controllers/ForbiddenResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,eAAe,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAEhD,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class ForbiddenResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(403, result);
10
+ }
11
+ }
12
+ exports.default = ForbiddenResult;
13
+ //# sourceMappingURL=ForbiddenResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbiddenResult.js","sourceRoot":"","sources":["../../controllers/ForbiddenResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,eAAmB,SAAQ,uBAAgB;IAE5D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,kCAKC"}
@@ -0,0 +1,6 @@
1
+ import ActionResult from "./ActionResult";
2
+ export default class GenericResult<T> extends ActionResult {
3
+ Result?: T;
4
+ constructor(status: number, result?: T);
5
+ }
6
+ //# sourceMappingURL=GenericResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericResult.d.ts","sourceRoot":"","sources":["../../controllers/GenericResult.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,aAAa,CAAC,CAAC,CAAE,SAAQ,YAAY;IAE/C,MAAM,CAAC,EAAE,CAAC,CAAC;gBAEN,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CAGzC"}
@@ -0,0 +1,13 @@
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 ActionResult_1 = __importDefault(require("./ActionResult"));
7
+ class GenericResult extends ActionResult_1.default {
8
+ constructor(status, result) {
9
+ super(status, result);
10
+ }
11
+ }
12
+ exports.default = GenericResult;
13
+ //# sourceMappingURL=GenericResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericResult.js","sourceRoot":"","sources":["../../controllers/GenericResult.ts"],"names":[],"mappings":";;;;;AAAA,kEAA0C;AAE1C,MAAqB,aAAiB,SAAQ,sBAAY;IAItD,YAAY,MAAc,EAAE,MAAU;QAClC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,CAAC;CACJ;AAPD,gCAOC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class NoContentResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=NoContentResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoContentResult.d.ts","sourceRoot":"","sources":["../../controllers/NoContentResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,eAAe,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAEhD,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class NoContentResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(204, result);
10
+ }
11
+ }
12
+ exports.default = NoContentResult;
13
+ //# sourceMappingURL=NoContentResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoContentResult.js","sourceRoot":"","sources":["../../controllers/NoContentResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,eAAmB,SAAQ,uBAAgB;IAE5D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,kCAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class NotFoundResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=NotFoundResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundResult.d.ts","sourceRoot":"","sources":["../../controllers/NotFoundResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAE/C,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class NotFoundResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(404, result);
10
+ }
11
+ }
12
+ exports.default = NotFoundResult;
13
+ //# sourceMappingURL=NotFoundResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundResult.js","sourceRoot":"","sources":["../../controllers/NotFoundResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,cAAkB,SAAQ,uBAAgB;IAE3D,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,iCAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class OKResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=OKResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OKResult.d.ts","sourceRoot":"","sources":["../../controllers/OKResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAI5C,MAAM,CAAC,OAAO,OAAO,QAAQ,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAEzC,MAAM,CAAC,EAAE,CAAC;CAGzB"}
@@ -0,0 +1,13 @@
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 GenericResult_1 = __importDefault(require("./GenericResult"));
7
+ class OKResult extends GenericResult_1.default {
8
+ constructor(result) {
9
+ super(200, result);
10
+ }
11
+ }
12
+ exports.default = OKResult;
13
+ //# sourceMappingURL=OKResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OKResult.js","sourceRoot":"","sources":["../../controllers/OKResult.ts"],"names":[],"mappings":";;;;;AAAA,oEAA4C;AAI5C,MAAqB,QAAY,SAAQ,uBAAgB;IAErD,YAAY,MAAU;QAClB,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC;CACJ;AALD,2BAKC"}
@@ -0,0 +1,5 @@
1
+ import GenericResult from "./GenericResult";
2
+ export default class SendFileResult<T> extends GenericResult<T> {
3
+ constructor(result?: T);
4
+ }
5
+ //# sourceMappingURL=SendFileResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SendFileResult.d.ts","sourceRoot":"","sources":["../../controllers/SendFileResult.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;gBAC/C,MAAM,CAAC,EAAE,CAAC;CAGzB"}