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
@@ -1,24 +0,0 @@
1
- import IApplicationConfiguration from './interfaces/IApplicationConfiguration';
2
- export default class ApplicationConfiguration implements IApplicationConfiguration {
3
- Host: string;
4
- Port: number;
5
- RootPath: string;
6
- CurrentWorkingDirectory: string;
7
- ExecutablePath: string;
8
- DEBUG: boolean;
9
- EnviromentVariables: {
10
- [key: string]: any;
11
- };
12
- constructor();
13
- AddScoped(type: Function, ctor?: (new (...args: any[]) => any), builder?: () => any): void;
14
- AddGenericScoped(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
15
- AddTransient(type: Function, ctor?: new (...args: any[]) => any, builder?: (() => any)): void;
16
- AddGenericTransient(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
17
- AddSingleton(type: Function, ctor?: new (...args: any[]) => any, builder?: () => any): void;
18
- AddGenericSingleton(type: Function, genericType?: Function, ctor?: new (...args: any[]) => any, builder?: (e?: Function) => any): void;
19
- private CheckFileAsync;
20
- LoadAsync(): Promise<boolean>;
21
- SaveAsync(): Promise<boolean>;
22
- private UpdateEnviroment;
23
- }
24
- //# sourceMappingURL=ApplicationConfiguration.d.ts.map
@@ -1 +0,0 @@
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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AAE,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"}
@@ -1,141 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApplicationConfiguration.js","sourceRoot":"","sources":["../ApplicationConfiguration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAsB;AACtB,gDAAwB;AAExB,2FAAoF;AAEpF,MAAqB,wBAAwB;IAWzC;QARO,SAAI,GAAY,WAAW,CAAC;QAC5B,S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ChB,CAAC;oBAED,OAAO,CAAC,IAAI,CAAC,CAAC;gBAElB,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAA;QAEN,CAAC;KAAA;IAEO,gBAAgB;QAEpB,KAAI,IAAI,CAAC,IAAI,IAAI,CAAC,mBAAmB,EACrC,CAAC;YACG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC;CAEJ;AA/JD,2CA+JC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CreateApplication.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateApplication.d.ts","sourceRoot":"","sources":["../../bin/CreateApplication.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CreateController.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateController.d.ts","sourceRoot":"","sources":["../../bin/CreateController.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateController.js","sourceRoot":"","sources":["../../bin/CreateController.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAE3C,IAAA,0BAAgB,GAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare function CreateApp(): void;
2
- export declare function CreateController(): void;
3
- //# sourceMappingURL=Factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Factory.d.ts","sourceRoot":"","sources":["../../bin/Factory.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,SAwCxB;AAGD,wBAAgB,gBAAgB,SA8C/B"}
@@ -1,81 +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.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
@@ -1 +0,0 @@
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,cAA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;IACzH,CAAC;AAEL,CAAC"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
1
- export default class ActionResult {
2
- StatusCode: number;
3
- Result?: any;
4
- constructor(status: number, result?: any);
5
- }
6
- //# sourceMappingURL=ActionResult.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,13 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}