exisjs 0.5.4 → 0.5.6

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 (218) hide show
  1. package/dist/app/index.d.ts +4 -0
  2. package/dist/app/index.d.ts.map +1 -0
  3. package/dist/app/index.js +12 -0
  4. package/dist/app/index.js.map +1 -0
  5. package/dist/auth/index.d.ts +6 -0
  6. package/dist/auth/index.d.ts.map +1 -0
  7. package/dist/{exports/auth.js → auth/index.js} +5 -5
  8. package/dist/auth/index.js.map +1 -0
  9. package/dist/cache/index.d.ts +2 -0
  10. package/dist/cache/index.d.ts.map +1 -1
  11. package/dist/cache/index.js +16 -0
  12. package/dist/cache/index.js.map +1 -1
  13. package/dist/cli/commands/dev.d.ts.map +1 -1
  14. package/dist/cli/commands/dev.js +96 -6
  15. package/dist/cli/commands/dev.js.map +1 -1
  16. package/dist/cli/commands/exports.js +2 -2
  17. package/dist/cli/commands/exports.js.map +1 -1
  18. package/dist/cli/commands/init.js +1 -1
  19. package/dist/cli/commands/init.js.map +1 -1
  20. package/dist/cli/manifest.d.ts.map +1 -1
  21. package/dist/cli/manifest.js +13 -0
  22. package/dist/cli/manifest.js.map +1 -1
  23. package/dist/cli/routes.d.ts.map +1 -1
  24. package/dist/cli/routes.js.map +1 -1
  25. package/dist/{exports/config.d.ts → config/index.d.ts} +2 -2
  26. package/dist/config/index.d.ts.map +1 -0
  27. package/dist/{exports/config.js → config/index.js} +2 -2
  28. package/dist/config/index.js.map +1 -0
  29. package/dist/dataloader/index.d.ts +3 -0
  30. package/dist/dataloader/index.d.ts.map +1 -0
  31. package/dist/{exports/response.js → dataloader/index.js} +3 -2
  32. package/dist/dataloader/index.js.map +1 -0
  33. package/dist/decorators/constants.d.ts +45 -0
  34. package/dist/decorators/constants.d.ts.map +1 -0
  35. package/dist/decorators/constants.js +19 -0
  36. package/dist/decorators/constants.js.map +1 -0
  37. package/dist/decorators/core.d.ts +29 -0
  38. package/dist/decorators/core.d.ts.map +1 -0
  39. package/dist/decorators/core.js +140 -0
  40. package/dist/decorators/core.js.map +1 -0
  41. package/dist/decorators/index.d.ts +6 -184
  42. package/dist/decorators/index.d.ts.map +1 -1
  43. package/dist/decorators/index.js +9 -680
  44. package/dist/decorators/index.js.map +1 -1
  45. package/dist/decorators/middleware.d.ts +37 -0
  46. package/dist/decorators/middleware.d.ts.map +1 -0
  47. package/dist/decorators/middleware.js +290 -0
  48. package/dist/decorators/middleware.js.map +1 -0
  49. package/dist/decorators/params.d.ts +18 -0
  50. package/dist/decorators/params.d.ts.map +1 -0
  51. package/dist/decorators/params.js +106 -0
  52. package/dist/decorators/params.js.map +1 -0
  53. package/dist/decorators/response.d.ts +32 -0
  54. package/dist/decorators/response.d.ts.map +1 -0
  55. package/dist/decorators/response.js +93 -0
  56. package/dist/decorators/response.js.map +1 -0
  57. package/dist/decorators/routing.d.ts +39 -0
  58. package/dist/decorators/routing.d.ts.map +1 -0
  59. package/dist/decorators/routing.js +75 -0
  60. package/dist/decorators/routing.js.map +1 -0
  61. package/dist/di/container.d.ts.map +1 -1
  62. package/dist/di/container.js +2 -1
  63. package/dist/di/container.js.map +1 -1
  64. package/dist/di/index.d.ts +4 -0
  65. package/dist/di/index.d.ts.map +1 -0
  66. package/dist/{exports/di.js → di/index.js} +3 -3
  67. package/dist/di/index.js.map +1 -0
  68. package/dist/{exports/error.d.ts → error/index.d.ts} +1 -1
  69. package/dist/error/index.d.ts.map +1 -0
  70. package/dist/{exports/error.js → error/index.js} +1 -1
  71. package/dist/error/index.js.map +1 -0
  72. package/dist/index.d.ts +2 -2
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +1 -39
  75. package/dist/index.js.map +1 -1
  76. package/dist/integrations/mongoose.d.ts +2 -2
  77. package/dist/integrations/mongoose.d.ts.map +1 -1
  78. package/dist/integrations/mongoose.js +28 -7
  79. package/dist/integrations/mongoose.js.map +1 -1
  80. package/dist/lib/start-server.js +42 -3
  81. package/dist/lib/start-server.js.map +1 -1
  82. package/dist/middleware/cache.d.ts.map +1 -1
  83. package/dist/middleware/cache.js +4 -2
  84. package/dist/middleware/cache.js.map +1 -1
  85. package/dist/middleware/dedupe.d.ts +11 -0
  86. package/dist/middleware/dedupe.d.ts.map +1 -1
  87. package/dist/middleware/dedupe.js +12 -1
  88. package/dist/middleware/dedupe.js.map +1 -1
  89. package/dist/module/index.d.ts +3 -0
  90. package/dist/module/index.d.ts.map +1 -0
  91. package/dist/{exports/module.js → module/index.js} +2 -2
  92. package/dist/module/index.js.map +1 -0
  93. package/dist/observability/metrics.d.ts +6 -0
  94. package/dist/observability/metrics.d.ts.map +1 -0
  95. package/dist/observability/metrics.js +60 -0
  96. package/dist/observability/metrics.js.map +1 -0
  97. package/dist/{exports/plugin.d.ts → plugin/index.d.ts} +1 -1
  98. package/dist/plugin/index.d.ts.map +1 -0
  99. package/dist/{exports/plugin.js → plugin/index.js} +1 -1
  100. package/dist/plugin/index.js.map +1 -0
  101. package/dist/queue/client.d.ts.map +1 -1
  102. package/dist/queue/client.js +20 -1
  103. package/dist/queue/client.js.map +1 -1
  104. package/dist/queue/index.d.ts +6 -0
  105. package/dist/queue/index.d.ts.map +1 -1
  106. package/dist/queue/index.js +10 -0
  107. package/dist/queue/index.js.map +1 -1
  108. package/dist/router/gateway.d.ts.map +1 -1
  109. package/dist/router/gateway.js.map +1 -1
  110. package/dist/{exports/route.d.ts → router/index.d.ts} +3 -3
  111. package/dist/router/index.d.ts.map +1 -0
  112. package/dist/{exports/route.js → router/index.js} +2 -2
  113. package/dist/router/index.js.map +1 -0
  114. package/dist/{exports/sanitize.d.ts → sanitize/index.d.ts} +1 -1
  115. package/dist/sanitize/index.d.ts.map +1 -0
  116. package/dist/{exports/sanitize.js → sanitize/index.js} +1 -1
  117. package/dist/sanitize/index.js.map +1 -0
  118. package/dist/server/app.d.ts +1 -0
  119. package/dist/server/app.d.ts.map +1 -1
  120. package/dist/server/app.js +62 -0
  121. package/dist/server/app.js.map +1 -1
  122. package/dist/server/bootstrapper.d.ts.map +1 -1
  123. package/dist/server/bootstrapper.js +12 -9
  124. package/dist/server/bootstrapper.js.map +1 -1
  125. package/dist/server/define.d.ts +13 -3
  126. package/dist/server/define.d.ts.map +1 -1
  127. package/dist/server/define.js +63 -11
  128. package/dist/server/define.js.map +1 -1
  129. package/dist/server/dev-error-overlay.d.ts.map +1 -1
  130. package/dist/server/dev-error-overlay.js +3 -1
  131. package/dist/server/dev-error-overlay.js.map +1 -1
  132. package/dist/server/request.d.ts +1 -1
  133. package/dist/server/request.d.ts.map +1 -1
  134. package/dist/server/route-scanner.d.ts +1 -0
  135. package/dist/server/route-scanner.d.ts.map +1 -1
  136. package/dist/server/route-scanner.js +61 -48
  137. package/dist/server/route-scanner.js.map +1 -1
  138. package/dist/server/route.d.ts.map +1 -1
  139. package/dist/server/route.js +6 -1
  140. package/dist/server/route.js.map +1 -1
  141. package/dist/{exports/storage.d.ts → storage/index.d.ts} +1 -1
  142. package/dist/storage/index.d.ts.map +1 -0
  143. package/dist/{exports/storage.js → storage/index.js} +1 -1
  144. package/dist/storage/index.js.map +1 -0
  145. package/dist/testing/client.d.ts +6 -3
  146. package/dist/testing/client.d.ts.map +1 -1
  147. package/dist/testing/client.js +12 -1
  148. package/dist/testing/client.js.map +1 -1
  149. package/dist/types.d.ts +23 -0
  150. package/dist/types.d.ts.map +1 -1
  151. package/dist/utils/config.d.ts.map +1 -1
  152. package/dist/utils/config.js +14 -0
  153. package/dist/utils/config.js.map +1 -1
  154. package/dist/utils/errors.d.ts.map +1 -1
  155. package/dist/utils/errors.js +59 -5
  156. package/dist/utils/errors.js.map +1 -1
  157. package/dist/utils/logger.d.ts.map +1 -1
  158. package/dist/utils/logger.js +21 -0
  159. package/dist/utils/logger.js.map +1 -1
  160. package/dist/utils/worker.d.ts +15 -0
  161. package/dist/utils/worker.d.ts.map +1 -0
  162. package/dist/utils/worker.js +50 -0
  163. package/dist/utils/worker.js.map +1 -0
  164. package/dist/{exports/validation.d.ts → validator/index.d.ts} +1 -1
  165. package/dist/validator/index.d.ts.map +1 -0
  166. package/dist/{exports/validation.js → validator/index.js} +1 -1
  167. package/dist/validator/index.js.map +1 -0
  168. package/package.json +41 -43
  169. package/dist/exports/app.d.ts +0 -2
  170. package/dist/exports/app.d.ts.map +0 -1
  171. package/dist/exports/app.js +0 -8
  172. package/dist/exports/app.js.map +0 -1
  173. package/dist/exports/auth.d.ts +0 -6
  174. package/dist/exports/auth.d.ts.map +0 -1
  175. package/dist/exports/auth.js.map +0 -1
  176. package/dist/exports/cache.d.ts +0 -4
  177. package/dist/exports/cache.d.ts.map +0 -1
  178. package/dist/exports/cache.js +0 -20
  179. package/dist/exports/cache.js.map +0 -1
  180. package/dist/exports/config.d.ts.map +0 -1
  181. package/dist/exports/config.js.map +0 -1
  182. package/dist/exports/dataloader.d.ts +0 -3
  183. package/dist/exports/dataloader.d.ts.map +0 -1
  184. package/dist/exports/dataloader.js +0 -19
  185. package/dist/exports/dataloader.js.map +0 -1
  186. package/dist/exports/decorators.d.ts +0 -2
  187. package/dist/exports/decorators.d.ts.map +0 -1
  188. package/dist/exports/decorators.js +0 -18
  189. package/dist/exports/decorators.js.map +0 -1
  190. package/dist/exports/di.d.ts +0 -4
  191. package/dist/exports/di.d.ts.map +0 -1
  192. package/dist/exports/di.js.map +0 -1
  193. package/dist/exports/error.d.ts.map +0 -1
  194. package/dist/exports/error.js.map +0 -1
  195. package/dist/exports/module.d.ts +0 -3
  196. package/dist/exports/module.d.ts.map +0 -1
  197. package/dist/exports/module.js.map +0 -1
  198. package/dist/exports/plugin.d.ts.map +0 -1
  199. package/dist/exports/plugin.js.map +0 -1
  200. package/dist/exports/queue.d.ts +0 -9
  201. package/dist/exports/queue.d.ts.map +0 -1
  202. package/dist/exports/queue.js +0 -16
  203. package/dist/exports/queue.js.map +0 -1
  204. package/dist/exports/response.d.ts +0 -2
  205. package/dist/exports/response.d.ts.map +0 -1
  206. package/dist/exports/response.js.map +0 -1
  207. package/dist/exports/route.d.ts.map +0 -1
  208. package/dist/exports/route.js.map +0 -1
  209. package/dist/exports/sanitize.d.ts.map +0 -1
  210. package/dist/exports/sanitize.js.map +0 -1
  211. package/dist/exports/storage.d.ts.map +0 -1
  212. package/dist/exports/storage.js.map +0 -1
  213. package/dist/exports/swagger.d.ts +0 -3
  214. package/dist/exports/swagger.d.ts.map +0 -1
  215. package/dist/exports/swagger.js +0 -6
  216. package/dist/exports/swagger.js.map +0 -1
  217. package/dist/exports/validation.d.ts.map +0 -1
  218. package/dist/exports/validation.js.map +0 -1
@@ -0,0 +1,29 @@
1
+ import type { ControllerOptions, ServerConfig, GatewayConfig } from './constants';
2
+ /**
3
+ * Marks a class as a controller, automatically grouping its routes under the provided prefix.
4
+ * Uses standard ES decorators, completely avoiding reflect-metadata bloat.
5
+ *
6
+ * Example:
7
+ *
8
+ * @Controller('/api/users')
9
+ * export class UserController {
10
+ * @Get()
11
+ * getUsers() { return []; }
12
+ * }
13
+ *
14
+ * @param {string | ControllerOptions} [prefixOrOptions] Route prefix or options
15
+ * @public
16
+ */
17
+ export declare function Controller(prefixOrOptions?: string | ControllerOptions): any;
18
+ export declare function Injectable(options?: {
19
+ scope?: 'singleton' | 'request';
20
+ }): any;
21
+ /**
22
+ * Marks a class as a root Server module.
23
+ */
24
+ export declare function Server(options?: ServerConfig): any;
25
+ /**
26
+ * Marks a class as a Gateway module.
27
+ */
28
+ export declare function Gateway(options?: GatewayConfig): any;
29
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/decorators/core.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,GAAG,CA0G5E;AAED,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;CAAE,GAAG,GAAG,CAM7E;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,GAAG,CAIlD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,GAAG,CAIpD"}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Controller = Controller;
4
+ exports.Injectable = Injectable;
5
+ exports.Server = Server;
6
+ exports.Gateway = Gateway;
7
+ const constants_1 = require("./constants");
8
+ /**
9
+ * Marks a class as a controller, automatically grouping its routes under the provided prefix.
10
+ * Uses standard ES decorators, completely avoiding reflect-metadata bloat.
11
+ *
12
+ * Example:
13
+ *
14
+ * @Controller('/api/users')
15
+ * export class UserController {
16
+ * @Get()
17
+ * getUsers() { return []; }
18
+ * }
19
+ *
20
+ * @param {string | ControllerOptions} [prefixOrOptions] Route prefix or options
21
+ * @public
22
+ */
23
+ function Controller(prefixOrOptions) {
24
+ return function (target, context) {
25
+ const prefix = typeof prefixOrOptions === 'string'
26
+ ? prefixOrOptions
27
+ : prefixOrOptions?.prefix || '';
28
+ const host = typeof prefixOrOptions === 'object' ? prefixOrOptions.host : undefined;
29
+ target.prototype[constants_1.CONTROLLER_PREFIX] = prefix;
30
+ if (host)
31
+ target.prototype[constants_1.CONTROLLER_HOST] = host;
32
+ if (context && context.metadata) {
33
+ context.metadata[constants_1.CONTROLLER_PREFIX] = prefix;
34
+ if (host)
35
+ context.metadata[constants_1.CONTROLLER_HOST] = host;
36
+ }
37
+ // Aggregate metadata from methods to the prototype registry
38
+ const proto = target.prototype;
39
+ proto[constants_1.ROUTE_REGISTRY] = proto[constants_1.ROUTE_REGISTRY] || [];
40
+ // Middlewares
41
+ const currentMiddlewares = proto[constants_1.MIDDLEWARE_REGISTRY];
42
+ if (Array.isArray(currentMiddlewares)) {
43
+ proto[constants_1.MIDDLEWARE_REGISTRY] = {
44
+ _classMiddlewares: currentMiddlewares,
45
+ };
46
+ }
47
+ else if (!proto[constants_1.MIDDLEWARE_REGISTRY] ||
48
+ typeof proto[constants_1.MIDDLEWARE_REGISTRY] !== 'object') {
49
+ proto[constants_1.MIDDLEWARE_REGISTRY] = {
50
+ _classMiddlewares: [],
51
+ };
52
+ }
53
+ else if (!proto[constants_1.MIDDLEWARE_REGISTRY]._classMiddlewares) {
54
+ proto[constants_1.MIDDLEWARE_REGISTRY]._classMiddlewares = [];
55
+ }
56
+ // Response Metadata, Guards/Interceptors, and Parameters
57
+ const classLifecycle = proto[constants_1.LIFECYCLE_METADATA_PROP] || {};
58
+ proto[constants_1.ROUTE_METADATA] = proto[constants_1.ROUTE_METADATA] || {};
59
+ proto[constants_1.LIFECYCLE_METADATA] = proto[constants_1.LIFECYCLE_METADATA] || {};
60
+ proto[constants_1.PARAM_METADATA] = proto[constants_1.PARAM_METADATA] || {};
61
+ for (const key of Object.getOwnPropertyNames(proto)) {
62
+ const descriptor = Object.getOwnPropertyDescriptor(proto, key);
63
+ if (descriptor && typeof descriptor.value === 'function') {
64
+ const fn = descriptor.value;
65
+ // 1. Collect route definition
66
+ const routeMeta = fn[constants_1.ROUTE_META];
67
+ if (routeMeta) {
68
+ proto[constants_1.ROUTE_REGISTRY].push({
69
+ method: routeMeta.method,
70
+ path: routeMeta.path,
71
+ schema: routeMeta.schema,
72
+ handlerName: key,
73
+ });
74
+ }
75
+ // 2. Collect method middlewares
76
+ const methodMiddlewares = fn[constants_1.METHOD_MIDDLEWARES];
77
+ if (methodMiddlewares) {
78
+ proto[constants_1.MIDDLEWARE_REGISTRY][key] =
79
+ proto[constants_1.MIDDLEWARE_REGISTRY][key] || [];
80
+ proto[constants_1.MIDDLEWARE_REGISTRY][key].push(...methodMiddlewares);
81
+ }
82
+ // 3. Collect custom HttpCode / Header response metadata
83
+ const classRouteMetadata = proto[constants_1.ROUTE_METADATA_PROP] || {};
84
+ const routeMetadata = fn[constants_1.ROUTE_METADATA_PROP] || {};
85
+ if (Object.keys(classRouteMetadata).length > 0 ||
86
+ Object.keys(routeMetadata).length > 0) {
87
+ proto[constants_1.ROUTE_METADATA][key] = {
88
+ ...classRouteMetadata,
89
+ ...routeMetadata,
90
+ };
91
+ }
92
+ // 4. Collect Guards and Interceptors (merging class-level and method-level)
93
+ const lifecycleMetadata = fn[constants_1.LIFECYCLE_METADATA_PROP] || {};
94
+ proto[constants_1.LIFECYCLE_METADATA][key] = {
95
+ guards: [
96
+ ...(classLifecycle._classGuards || []),
97
+ ...(lifecycleMetadata.guards || []),
98
+ ],
99
+ interceptors: [
100
+ ...(classLifecycle._classInterceptors || []),
101
+ ...(lifecycleMetadata.interceptors || []),
102
+ ],
103
+ filters: [
104
+ ...(classLifecycle._classFilters || []),
105
+ ...(lifecycleMetadata.filters || []),
106
+ ],
107
+ };
108
+ // 5. Collect parameter injection metadata
109
+ const paramMetadata = fn[constants_1.PARAM_METADATA_PROP];
110
+ if (paramMetadata) {
111
+ proto[constants_1.PARAM_METADATA][key] = paramMetadata;
112
+ }
113
+ }
114
+ }
115
+ };
116
+ }
117
+ function Injectable(options) {
118
+ return function (target, _context) {
119
+ if (options?.scope) {
120
+ target.prototype[Symbol.for('exisjs:scope')] = options.scope;
121
+ }
122
+ };
123
+ }
124
+ /**
125
+ * Marks a class as a root Server module.
126
+ */
127
+ function Server(options) {
128
+ return function (target, _context) {
129
+ target.prototype[constants_1.SERVER_CONFIG] = options || {};
130
+ };
131
+ }
132
+ /**
133
+ * Marks a class as a Gateway module.
134
+ */
135
+ function Gateway(options) {
136
+ return function (target, _context) {
137
+ target.prototype[constants_1.GATEWAY_CONFIG] = options || {};
138
+ };
139
+ }
140
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/decorators/core.ts"],"names":[],"mappings":";;AAqCA,gCA0GC;A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,CAAC,iBAAiB,CAAC,OAAO,IAAI,EAAE,CAAC;qBACrC;iBACF,CAAA;gBAED,0CAA0C;gBAC1C,MAAM,aAAa,GAAG,EAAE,CAAC,+BAAmB,CAAC,CAAA;gBAC7C,IAAI,aAAa,EAAE,CAAC;oBAClB,KAAK,CAAC,0BAAc,CAAC,CAAC,GAAG,CAAC,GAAG,aAAa,CAAA;gBAC5C,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AAED,SAAgB,UAAU,CAAC,OAA6C;IACtE,OAAO,UAAU,MAAW,EAAE,QAAgC;QAC5D,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAA;QAC9D,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,OAAsB;IAC3C,OAAO,UAAU,MAAW,EAAE,QAAgC;QAC5D,MAAM,CAAC,SAAS,CAAC,yBAAa,CAAC,GAAG,OAAO,IAAI,EAAE,CAAA;IACjD,CAAC,CAAA;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,OAAO,CAAC,OAAuB;IAC7C,OAAO,UAAU,MAAW,EAAE,QAAgC;QAC5D,MAAM,CAAC,SAAS,CAAC,0BAAc,CAAC,GAAG,OAAO,IAAI,EAAE,CAAA;IAClD,CAAC,CAAA;AACH,CAAC"}
@@ -1,185 +1,7 @@
1
- import type { HttpMethod, RouteSchema } from '../types';
2
- export declare const ROUTE_REGISTRY: unique symbol;
3
- export declare const CONTROLLER_PREFIX: unique symbol;
4
- export declare const CONTROLLER_HOST: unique symbol;
5
- export declare const MIDDLEWARE_REGISTRY: unique symbol;
6
- export declare const ROUTE_METADATA: unique symbol;
7
- export declare const LIFECYCLE_METADATA: unique symbol;
8
- export declare const PARAM_METADATA: unique symbol;
9
- export interface RouteMeta {
10
- method: HttpMethod;
11
- path: string;
12
- schema?: RouteSchema<any, any, any, any>;
13
- handlerName: string;
14
- }
15
- export interface ControllerOptions {
16
- prefix?: string;
17
- host?: string;
18
- }
19
- /**
20
- * Marks a class as a controller, automatically grouping its routes under the provided prefix.
21
- * Uses standard ES decorators, completely avoiding reflect-metadata bloat.
22
- *
23
- * Example:
24
- *
25
- * @Controller('/api/users')
26
- * export class UserController {
27
- * @Get()
28
- * getUsers() { return []; }
29
- * }
30
- *
31
- * @param {string | ControllerOptions} [prefixOrOptions] Route prefix or options
32
- * @public
33
- */
34
- export declare function Controller(prefixOrOptions?: string | ControllerOptions): any;
35
- /**
36
- * Marks a method as a GET route handler.
37
- *
38
- * Example:
39
- *
40
- * @Get('/:id')
41
- * getUser(@Param('id') id: string) { return { id }; }
42
- *
43
- * @param {string} [path] The route path
44
- * @param {RouteSchema} [schema] Optional validation schema
45
- * @public
46
- */
47
- export declare const Get: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
48
- /**
49
- * Marks a method as a POST route handler.
50
- *
51
- * Example:
52
- *
53
- * @Post('/', { body: v.object({ name: v.string() }) })
54
- * createUser(@Body() body: any) { return body; }
55
- *
56
- * @param {string} [path] The route path
57
- * @param {RouteSchema} [schema] Optional validation schema
58
- * @public
59
- */
60
- export declare const Post: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
61
- export declare const Put: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
62
- export declare const Patch: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
63
- export declare const Delete: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
64
- export declare const Options: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
65
- export declare const Head: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
66
- export declare const All: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
67
- export declare const Connect: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
68
- export declare const Trace: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
69
- export declare const Ws: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
70
- export declare const Sse: (path?: string, schema?: RouteSchema<any, any, any, any>) => any;
71
- /**
72
- * Applies middleware to a Controller class or route method.
73
- *
74
- * Example:
75
- *
76
- * @Use(requireAuth)
77
- * @Get('/dashboard')
78
- * getDashboard() {}
79
- *
80
- * @param {...any} middlewares Middleware functions
81
- * @public
82
- */
83
- export declare function Use(...middlewares: any[]): any;
84
- /**
85
- * Idempotency Decorator.
86
- * Caches responses based on the provided Idempotency-Key header.
87
- *
88
- * Example:
89
- * @Post('/checkout')
90
- * @Idempotent()
91
- * checkout() {}
92
- */
93
- export declare function Idempotent(options?: import('../middleware/idempotency').IdempotentOptions): any;
94
- /**
95
- * Cache Decorator.
96
- * Caches responses for GET requests.
97
- *
98
- * Example:
99
- * @Get('/popular')
100
- * @Cache({ ttlMs: 60000 })
101
- * getPopular() {}
102
- */
103
- export declare function Cache(options: import('../middleware/cache').CacheOptions): any;
104
- /**
105
- * Defines a custom HTTP status code for a successful response.
106
- *
107
- * Example:
108
- *
109
- * @Post('/')
110
- * @HttpCode(201)
111
- * create() {}
112
- *
113
- * @param {number} code HTTP Status code
114
- * @public
115
- */
116
- export declare function HttpCode(code: number): any;
117
- export declare function Header(name: string, value: string): any;
118
- /**
119
- * Defines the response schema for OpenAPI generation.
120
- *
121
- * Example:
122
- *
123
- * @Get('/')
124
- * @Returns(v.object({ id: v.string() }))
125
- * getUser() {}
126
- *
127
- * @param {RouteSchema['response']} schema The response schema
128
- * @public
129
- */
130
- export declare function Returns(schema: import('../types').RouteSchema<any, any, any, any>['response']): any;
131
- export declare function UseGuards(...guards: any[]): any;
132
- export declare function UseInterceptors(...interceptors: any[]): any;
133
- export declare function UseFilters(...filters: any[]): any;
134
- export declare const Param: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
135
- export declare const Body: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
136
- export declare const Headers: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
137
- export declare const HostParam: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
138
- export declare const Req: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
139
- export declare const Socket: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
140
- export declare const Stream: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
141
- export declare const Session: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
142
- export declare const Next: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
143
- export declare const Ip: () => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
144
- export declare const UploadedFile: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
145
- export declare const UploadedFiles: (nameOrPipe?: string | any, ...pipes: any[]) => (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
146
- export declare const Res: (options?: {
147
- passthrough?: boolean;
148
- }) => any;
149
- export declare function Query(pathOrName?: string | any, schemaOrPipe?: RouteSchema<any, any, any, any> | any, ...pipes: any[]): any;
150
- export declare const Redirect: (url: string, statusCode?: number) => any;
151
- export declare const Permissions: (...permissions: string[]) => any;
152
- export declare const Hosts: (...hosts: string[]) => any;
153
- export declare function Injectable(options?: {
154
- scope?: 'singleton' | 'request';
155
- }): any;
156
- export declare const SERVER_CONFIG: unique symbol;
157
- export declare const GATEWAY_CONFIG: unique symbol;
158
- export interface ServerConfig {
159
- plugins?: any[];
160
- providers?: any[];
161
- cron?: any[];
162
- queue?: any[];
163
- }
164
- /**
165
- * Marks a class as a root Server module.
166
- */
167
- export declare function Server(options?: ServerConfig): any;
168
- export interface GatewayConfig {
169
- exclude?: any[];
170
- middleware?: any[];
171
- filters?: any[];
172
- guards?: any[];
173
- interceptors?: any[];
174
- timeout?: number | ((req: any) => number);
175
- metadata?: Record<string, any>;
176
- cors?: any;
177
- headers?: Record<string, string>;
178
- imports?: any[];
179
- providers?: any[];
180
- }
181
- /**
182
- * Marks a class as a Gateway module.
183
- */
184
- export declare function Gateway(options?: GatewayConfig): any;
1
+ export * from './constants';
2
+ export * from './core';
3
+ export * from './routing';
4
+ export * from './params';
5
+ export * from './middleware';
6
+ export * from './response';
185
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAGvD,eAAO,MAAM,cAAc,eAA8B,CAAA;AACzD,eAAO,MAAM,iBAAiB,eAAyC,CAAA;AACvE,eAAO,MAAM,eAAe,eAAuC,CAAA;AACnE,eAAO,MAAM,mBAAmB,eAAmC,CAAA;AACnE,eAAO,MAAM,cAAc,eAAsC,CAAA;AACjE,eAAO,MAAM,kBAAkB,eAA0C,CAAA;AACzE,eAAO,MAAM,cAAc,eAAsC,CAAA;AAQjE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;IACxC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,iBAAiB,GAAG,GAAG,CA0G5E;AAoCD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,GAAG,2BA7CuB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,K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