phecda-server 7.0.0-alpha.9 → 7.0.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 (99) hide show
  1. package/assets/schema.json +12 -9
  2. package/bin/cli.mjs +95 -36
  3. package/dist/{chunk-5RBTN33A.js → chunk-4LLLQOMF.js} +10 -5
  4. package/dist/{chunk-7ZGYJ5OW.mjs → chunk-AIAO6SV6.mjs} +10 -34
  5. package/dist/{chunk-V5EYXVJT.js → chunk-DPPDWBYO.js} +53 -25
  6. package/dist/{chunk-CVPZWDXU.mjs → chunk-E7EAPAGM.mjs} +10 -20
  7. package/dist/{chunk-ODVWOXVB.mjs → chunk-MKRHYZCL.mjs} +30 -2
  8. package/dist/{chunk-FXTJ3BJ6.mjs → chunk-NQ55PA2X.mjs} +9 -4
  9. package/dist/{chunk-FX3LDQII.js → chunk-XKK2SQ7W.js} +60 -70
  10. package/dist/{chunk-KJUD2BKE.js → chunk-ZWPOWMZP.js} +25 -49
  11. package/dist/{core-D_cz0tKa.d.ts → core-DbqWh47p.d.mts} +3 -2
  12. package/dist/{core-BDkhrEyf.d.mts → core-Rq7BhPHE.d.ts} +3 -2
  13. package/dist/helper.d.mts +3 -5
  14. package/dist/helper.d.ts +3 -5
  15. package/dist/helper.js +3 -5
  16. package/dist/helper.mjs +2 -4
  17. package/dist/http/elysia/index.d.mts +4 -4
  18. package/dist/http/elysia/index.d.ts +4 -4
  19. package/dist/http/elysia/index.js +41 -40
  20. package/dist/http/elysia/index.mjs +4 -3
  21. package/dist/http/express/index.d.mts +3 -3
  22. package/dist/http/express/index.d.ts +3 -3
  23. package/dist/http/express/index.js +38 -37
  24. package/dist/http/express/index.mjs +3 -2
  25. package/dist/http/fastify/index.d.mts +3 -3
  26. package/dist/http/fastify/index.d.ts +3 -3
  27. package/dist/http/fastify/index.js +39 -38
  28. package/dist/http/fastify/index.mjs +4 -3
  29. package/dist/http/h3/index.d.mts +3 -3
  30. package/dist/http/h3/index.d.ts +3 -3
  31. package/dist/http/h3/index.js +39 -38
  32. package/dist/http/h3/index.mjs +3 -2
  33. package/dist/http/hono/index.d.mts +3 -3
  34. package/dist/http/hono/index.d.ts +3 -3
  35. package/dist/http/hono/index.js +35 -34
  36. package/dist/http/hono/index.mjs +3 -2
  37. package/dist/http/hyper-express/index.d.mts +3 -3
  38. package/dist/http/hyper-express/index.d.ts +3 -3
  39. package/dist/http/hyper-express/index.js +36 -35
  40. package/dist/http/hyper-express/index.mjs +3 -2
  41. package/dist/http/koa/index.d.mts +3 -3
  42. package/dist/http/koa/index.d.ts +3 -3
  43. package/dist/http/koa/index.js +38 -37
  44. package/dist/http/koa/index.mjs +3 -2
  45. package/dist/index.d.mts +76 -12
  46. package/dist/index.d.ts +76 -12
  47. package/dist/index.js +102 -49
  48. package/dist/index.mjs +66 -13
  49. package/dist/{meta-BX5jhe4Z.d.mts → meta-BoS1E-Nz.d.mts} +6 -23
  50. package/dist/{meta-BX5jhe4Z.d.ts → meta-BoS1E-Nz.d.ts} +6 -23
  51. package/dist/rpc/bullmq/index.d.mts +4 -6
  52. package/dist/rpc/bullmq/index.d.ts +4 -6
  53. package/dist/rpc/bullmq/index.js +12 -80
  54. package/dist/rpc/bullmq/index.mjs +4 -72
  55. package/dist/rpc/electron/index.d.mts +13 -0
  56. package/dist/rpc/electron/index.d.ts +13 -0
  57. package/dist/rpc/electron/index.js +72 -0
  58. package/dist/rpc/electron/index.mjs +72 -0
  59. package/dist/rpc/kafka/index.d.mts +4 -9
  60. package/dist/rpc/kafka/index.d.ts +4 -9
  61. package/dist/rpc/kafka/index.js +11 -90
  62. package/dist/rpc/kafka/index.mjs +4 -83
  63. package/dist/rpc/nats/index.d.mts +4 -6
  64. package/dist/rpc/nats/index.d.ts +4 -6
  65. package/dist/rpc/nats/index.js +12 -72
  66. package/dist/rpc/nats/index.mjs +3 -63
  67. package/dist/rpc/rabbitmq/index.d.mts +4 -6
  68. package/dist/rpc/rabbitmq/index.d.ts +4 -6
  69. package/dist/rpc/rabbitmq/index.js +13 -79
  70. package/dist/rpc/rabbitmq/index.mjs +4 -70
  71. package/dist/rpc/redis/index.d.mts +4 -9
  72. package/dist/rpc/redis/index.d.ts +4 -9
  73. package/dist/rpc/redis/index.js +11 -78
  74. package/dist/rpc/redis/index.mjs +4 -71
  75. package/dist/rpc/web-ext/index.d.mts +2 -0
  76. package/dist/rpc/web-ext/index.d.ts +2 -0
  77. package/dist/rpc/web-ext/index.js +1 -0
  78. package/dist/rpc/web-ext/index.mjs +0 -0
  79. package/dist/rpc/ws/index.d.mts +14 -0
  80. package/dist/rpc/ws/index.d.ts +14 -0
  81. package/dist/rpc/ws/index.js +73 -0
  82. package/dist/rpc/ws/index.mjs +73 -0
  83. package/dist/test.d.mts +7 -3
  84. package/dist/test.d.ts +7 -3
  85. package/dist/test.js +6 -6
  86. package/dist/test.mjs +2 -2
  87. package/dist/types-CInz3bD0.d.ts +14 -0
  88. package/dist/types-E-rqlg3-.d.mts +14 -0
  89. package/dist/{types-DKVhyZk_.d.mts → types-SCJZFCYt.d.mts} +1 -1
  90. package/dist/{types-CMeuFoyd.d.ts → types-xruyYmyu.d.ts} +1 -1
  91. package/package.json +24 -8
  92. package/register/export.mjs +30 -0
  93. package/register/index.mjs +2 -3
  94. package/register/loader.mjs +83 -90
  95. package/register/utils.mjs +36 -6
  96. package/assets/ps.json +0 -24
  97. package/assets/tsconfig.json +0 -21
  98. package/dist/types-B-rUM9Fm.d.mts +0 -19
  99. package/dist/types-MxxtkZXw.d.ts +0 -19
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseCtx, C as ControllerMeta, D as DefaultOptions, a as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BX5jhe4Z.mjs';
2
- export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_DEV, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BX5jhe4Z.mjs';
3
- import { G as Generator } from './core-BDkhrEyf.mjs';
4
- export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-BDkhrEyf.mjs';
1
+ import { B as BaseCtx, a as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter, c as BaseError } from './meta-BoS1E-Nz.mjs';
2
+ export { d as BaseRequestType, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-BoS1E-Nz.mjs';
3
+ import { G as Generator } from './core-DbqWh47p.mjs';
4
+ export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-DbqWh47p.mjs';
5
5
  import { Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-DKVhyZk_.mjs';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-DKVhyZk_.mjs';
9
- import { R as RpcCtx } from './types-B-rUM9Fm.mjs';
10
- export { b as RpcClientOptions, a as RpcServerOptions } from './types-B-rUM9Fm.mjs';
7
+ import { H as HttpCtx } from './types-SCJZFCYt.mjs';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-SCJZFCYt.mjs';
9
+ import { R as RpcCtx } from './types-E-rqlg3-.mjs';
10
+ export { a as RpcServerOptions } from './types-E-rqlg3-.mjs';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -120,7 +120,6 @@ declare class Context<Ctx extends BaseCtx> {
120
120
  priority: number;
121
121
  }>;
122
122
  ctx: Ctx;
123
- protected canGetCtx: boolean;
124
123
  constructor(data: Ctx);
125
124
  static getAop(meta: ControllerMeta, opts: DefaultOptions): {
126
125
  guards: GuardType<any>[];
@@ -149,7 +148,7 @@ declare class RPCGenerator extends Generator {
149
148
  }>;
150
149
  getContent(): string;
151
150
  addMethod(args: ControllerMetaData): void;
152
- generateCode(meta: MetaData[]): string;
151
+ generateCode(meta: Meta[]): string;
153
152
  }
154
153
 
155
154
  declare class HTTPGenerator extends Generator {
@@ -159,7 +158,15 @@ declare class HTTPGenerator extends Generator {
159
158
  }>;
160
159
  getContent(): string;
161
160
  addMethod(args: ControllerMetaData): void;
162
- generateCode(meta: MetaData[]): string;
161
+ generateCode(meta: Meta[]): string;
162
+ }
163
+
164
+ declare class OpenAPIGenerator extends Generator {
165
+ name: string;
166
+ paths: Record<string, any>;
167
+ getContent(): string;
168
+ addMethod(args: ControllerMetaData): void;
169
+ generateCode(meta: Meta[]): string;
163
170
  }
164
171
 
165
172
  declare function BaseParam(data: Record<string, any>): ParameterDecorator;
@@ -168,6 +175,8 @@ declare function Head(key: string): ParameterDecorator;
168
175
  declare function Query(key?: string): ParameterDecorator;
169
176
  declare function Param(key: string): ParameterDecorator;
170
177
  declare function Arg(target: any, k: string, index: number): void;
178
+ declare function OneFile(key?: string): ParameterDecorator;
179
+ declare function ManyFiles(key?: string): ParameterDecorator;
171
180
 
172
181
  declare function Guard(...guards: string[]): (target: any, property?: PropertyKey) => void;
173
182
  declare function Addon(...addons: string[]): (target: any, property?: PropertyKey) => void;
@@ -190,6 +199,61 @@ declare function Rpc(): ClassDecorator;
190
199
  declare const Ctx: PropertyDecorator;
191
200
  declare function Define(key: string, value: any): any;
192
201
 
202
+ interface OpenAPIBaseConfig {
203
+ summary?: string;
204
+ description?: string;
205
+ tags?: string[];
206
+ deprecated?: boolean;
207
+ }
208
+ interface OpenAPIParameterConfig {
209
+ name: string;
210
+ in: 'query' | 'header' | 'path' | 'cookie';
211
+ description?: string;
212
+ required?: boolean;
213
+ schema: {
214
+ type: 'string' | 'number' | 'boolean' | 'object' | 'array';
215
+ items?: any;
216
+ properties?: Record<string, any>;
217
+ };
218
+ }
219
+ interface OpenAPIResponseConfig {
220
+ description: string;
221
+ content?: {
222
+ [key: string]: {
223
+ schema: {
224
+ type: string;
225
+ properties?: Record<string, any>;
226
+ items?: any;
227
+ description?: string;
228
+ };
229
+ };
230
+ };
231
+ }
232
+ interface OpenAPIConfig extends OpenAPIBaseConfig {
233
+ parameters?: OpenAPIParameterConfig[];
234
+ requestBody?: {
235
+ required?: boolean;
236
+ content: {
237
+ [key: string]: {
238
+ schema: {
239
+ type: string;
240
+ properties?: Record<string, any>;
241
+ items?: any;
242
+ [key: string]: any;
243
+ };
244
+ };
245
+ };
246
+ };
247
+ responses?: {
248
+ [statusCode: string]: OpenAPIResponseConfig;
249
+ };
250
+ }
251
+ /**
252
+ * OpenAPI 装饰器函数
253
+ * @param config OpenAPI/Swagger 配置
254
+ */
255
+ declare function ApiDoc(config: OpenAPIConfig): (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void;
256
+
193
257
  declare const defaultPipe: PipeType;
194
258
 
195
259
  type LogLevel = 'error' | 'info' | 'warn' | 'log' | 'debug';
@@ -265,4 +329,4 @@ declare class PExtension extends ServerBase {
265
329
  constructor(tag?: string);
266
330
  }
267
331
 
268
- export { type AOP, Addon, Arg, BadGatewayException, BadRequestException, BaseCtx, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMeta, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Emitter, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, HttpBase, HttpCtx, InvalidInputException, type LogLevel, type Logger, MetaData, NotFoundException, PAddon, PExtension, PFilter, PGuard, PPipe, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, RpcBase, RpcCtx, Search, ServerBase, ServiceUnavailableException, TimeoutException, TimerException, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addAddon, addFilter, addGuard, addPipe, defaultPipe, getLogger, log, runMiddleware, setLogger };
332
+ export { type AOP, Addon, ApiDoc, Arg, BadGatewayException, BadRequestException, BaseCtx, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMeta, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Emitter, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, HttpBase, HttpCtx, InvalidInputException, type LogLevel, type Logger, ManyFiles, Meta, NotFoundException, OneFile, type OpenAPIConfig, OpenAPIGenerator, PAddon, PExtension, PFilter, PGuard, PPipe, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, RpcBase, RpcCtx, Search, ServerBase, ServiceUnavailableException, TimeoutException, TimerException, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addAddon, addFilter, addGuard, addPipe, defaultPipe, getLogger, log, runMiddleware, setLogger };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseCtx, C as ControllerMeta, D as DefaultOptions, a as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BX5jhe4Z.js';
2
- export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_DEV, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BX5jhe4Z.js';
3
- import { G as Generator } from './core-D_cz0tKa.js';
4
- export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-D_cz0tKa.js';
1
+ import { B as BaseCtx, a as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter, c as BaseError } from './meta-BoS1E-Nz.js';
2
+ export { d as BaseRequestType, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-BoS1E-Nz.js';
3
+ import { G as Generator } from './core-Rq7BhPHE.js';
4
+ export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-Rq7BhPHE.js';
5
5
  import { Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-CMeuFoyd.js';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-CMeuFoyd.js';
9
- import { R as RpcCtx } from './types-MxxtkZXw.js';
10
- export { b as RpcClientOptions, a as RpcServerOptions } from './types-MxxtkZXw.js';
7
+ import { H as HttpCtx } from './types-xruyYmyu.js';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-xruyYmyu.js';
9
+ import { R as RpcCtx } from './types-CInz3bD0.js';
10
+ export { a as RpcServerOptions } from './types-CInz3bD0.js';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -120,7 +120,6 @@ declare class Context<Ctx extends BaseCtx> {
120
120
  priority: number;
121
121
  }>;
122
122
  ctx: Ctx;
123
- protected canGetCtx: boolean;
124
123
  constructor(data: Ctx);
125
124
  static getAop(meta: ControllerMeta, opts: DefaultOptions): {
126
125
  guards: GuardType<any>[];
@@ -149,7 +148,7 @@ declare class RPCGenerator extends Generator {
149
148
  }>;
150
149
  getContent(): string;
151
150
  addMethod(args: ControllerMetaData): void;
152
- generateCode(meta: MetaData[]): string;
151
+ generateCode(meta: Meta[]): string;
153
152
  }
154
153
 
155
154
  declare class HTTPGenerator extends Generator {
@@ -159,7 +158,15 @@ declare class HTTPGenerator extends Generator {
159
158
  }>;
160
159
  getContent(): string;
161
160
  addMethod(args: ControllerMetaData): void;
162
- generateCode(meta: MetaData[]): string;
161
+ generateCode(meta: Meta[]): string;
162
+ }
163
+
164
+ declare class OpenAPIGenerator extends Generator {
165
+ name: string;
166
+ paths: Record<string, any>;
167
+ getContent(): string;
168
+ addMethod(args: ControllerMetaData): void;
169
+ generateCode(meta: Meta[]): string;
163
170
  }
164
171
 
165
172
  declare function BaseParam(data: Record<string, any>): ParameterDecorator;
@@ -168,6 +175,8 @@ declare function Head(key: string): ParameterDecorator;
168
175
  declare function Query(key?: string): ParameterDecorator;
169
176
  declare function Param(key: string): ParameterDecorator;
170
177
  declare function Arg(target: any, k: string, index: number): void;
178
+ declare function OneFile(key?: string): ParameterDecorator;
179
+ declare function ManyFiles(key?: string): ParameterDecorator;
171
180
 
172
181
  declare function Guard(...guards: string[]): (target: any, property?: PropertyKey) => void;
173
182
  declare function Addon(...addons: string[]): (target: any, property?: PropertyKey) => void;
@@ -190,6 +199,61 @@ declare function Rpc(): ClassDecorator;
190
199
  declare const Ctx: PropertyDecorator;
191
200
  declare function Define(key: string, value: any): any;
192
201
 
202
+ interface OpenAPIBaseConfig {
203
+ summary?: string;
204
+ description?: string;
205
+ tags?: string[];
206
+ deprecated?: boolean;
207
+ }
208
+ interface OpenAPIParameterConfig {
209
+ name: string;
210
+ in: 'query' | 'header' | 'path' | 'cookie';
211
+ description?: string;
212
+ required?: boolean;
213
+ schema: {
214
+ type: 'string' | 'number' | 'boolean' | 'object' | 'array';
215
+ items?: any;
216
+ properties?: Record<string, any>;
217
+ };
218
+ }
219
+ interface OpenAPIResponseConfig {
220
+ description: string;
221
+ content?: {
222
+ [key: string]: {
223
+ schema: {
224
+ type: string;
225
+ properties?: Record<string, any>;
226
+ items?: any;
227
+ description?: string;
228
+ };
229
+ };
230
+ };
231
+ }
232
+ interface OpenAPIConfig extends OpenAPIBaseConfig {
233
+ parameters?: OpenAPIParameterConfig[];
234
+ requestBody?: {
235
+ required?: boolean;
236
+ content: {
237
+ [key: string]: {
238
+ schema: {
239
+ type: string;
240
+ properties?: Record<string, any>;
241
+ items?: any;
242
+ [key: string]: any;
243
+ };
244
+ };
245
+ };
246
+ };
247
+ responses?: {
248
+ [statusCode: string]: OpenAPIResponseConfig;
249
+ };
250
+ }
251
+ /**
252
+ * OpenAPI 装饰器函数
253
+ * @param config OpenAPI/Swagger 配置
254
+ */
255
+ declare function ApiDoc(config: OpenAPIConfig): (target: any, propertyKey: string, _descriptor: PropertyDescriptor) => void;
256
+
193
257
  declare const defaultPipe: PipeType;
194
258
 
195
259
  type LogLevel = 'error' | 'info' | 'warn' | 'log' | 'debug';
@@ -265,4 +329,4 @@ declare class PExtension extends ServerBase {
265
329
  constructor(tag?: string);
266
330
  }
267
331
 
268
- export { type AOP, Addon, Arg, BadGatewayException, BadRequestException, BaseCtx, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMeta, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Emitter, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, HttpBase, HttpCtx, InvalidInputException, type LogLevel, type Logger, MetaData, NotFoundException, PAddon, PExtension, PFilter, PGuard, PPipe, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, RpcBase, RpcCtx, Search, ServerBase, ServiceUnavailableException, TimeoutException, TimerException, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addAddon, addFilter, addGuard, addPipe, defaultPipe, getLogger, log, runMiddleware, setLogger };
332
+ export { type AOP, Addon, ApiDoc, Arg, BadGatewayException, BadRequestException, BaseCtx, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMeta, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Emitter, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, HttpBase, HttpCtx, InvalidInputException, type LogLevel, type Logger, ManyFiles, Meta, NotFoundException, OneFile, type OpenAPIConfig, OpenAPIGenerator, PAddon, PExtension, PFilter, PGuard, PPipe, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, RpcBase, RpcCtx, Search, ServerBase, ServiceUnavailableException, TimeoutException, TimerException, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addAddon, addFilter, addGuard, addPipe, defaultPipe, getLogger, log, runMiddleware, setLogger };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6;
2
2
 
3
3
 
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkKJUD2BKEjs = require('./chunk-KJUD2BKE.js');
9
+ var _chunkZWPOWMZPjs = require('./chunk-ZWPOWMZP.js');
10
10
 
11
11
 
12
12
 
@@ -31,10 +31,10 @@ var _chunkKJUD2BKEjs = require('./chunk-KJUD2BKE.js');
31
31
 
32
32
 
33
33
 
34
- var _chunkV5EYXVJTjs = require('./chunk-V5EYXVJT.js');
35
34
 
36
35
 
37
36
 
37
+ var _chunkDPPDWBYOjs = require('./chunk-DPPDWBYO.js');
38
38
 
39
39
 
40
40
 
@@ -57,10 +57,10 @@ var _chunkV5EYXVJTjs = require('./chunk-V5EYXVJT.js');
57
57
 
58
58
 
59
59
 
60
- var _chunkFX3LDQIIjs = require('./chunk-FX3LDQII.js');
61
60
 
62
61
 
63
62
 
63
+ var _chunkXKK2SQ7Wjs = require('./chunk-XKK2SQ7W.js');
64
64
 
65
65
 
66
66
 
@@ -71,13 +71,16 @@ var _chunkFX3LDQIIjs = require('./chunk-FX3LDQII.js');
71
71
 
72
72
 
73
73
 
74
- var _chunk5RBTN33Ajs = require('./chunk-5RBTN33A.js');
74
+
75
+
76
+
77
+
78
+ var _chunk4LLLQOMFjs = require('./chunk-4LLLQOMF.js');
75
79
 
76
80
  // src/types.ts
77
- var ResponseSymbol = Symbol("response");
78
81
  var CustomResponse = class {
79
82
  static {
80
- _chunk5RBTN33Ajs.__name.call(void 0, this, "CustomResponse");
83
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "CustomResponse");
81
84
  }
82
85
 
83
86
  };
@@ -90,38 +93,38 @@ function _ts_decorate(decorators, target, key, desc) {
90
93
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
94
  return c > 3 && r && Object.defineProperty(target, key, r), r;
92
95
  }
93
- _chunk5RBTN33Ajs.__name.call(void 0, _ts_decorate, "_ts_decorate");
96
+ _chunk4LLLQOMFjs.__name.call(void 0, _ts_decorate, "_ts_decorate");
94
97
  function _ts_metadata(k, v) {
95
98
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
96
99
  }
97
- _chunk5RBTN33Ajs.__name.call(void 0, _ts_metadata, "_ts_metadata");
100
+ _chunk4LLLQOMFjs.__name.call(void 0, _ts_metadata, "_ts_metadata");
98
101
  var ServerBase = (_class = class extends _phecdacore.Base {constructor(...args2) { super(...args2); _class.prototype.__init.call(this); }
99
102
  static {
100
- _chunk5RBTN33Ajs.__name.call(void 0, this, "ServerBase");
103
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "ServerBase");
101
104
  }
102
- __init() {this.emitter = exports.emitter = _chunkKJUD2BKEjs.emitter}
105
+ __init() {this.emitter = exports.emitter = _chunkZWPOWMZPjs.emitter}
103
106
  log(msg, level = "log") {
104
- _chunk5RBTN33Ajs.log.call(void 0, msg, level, this.tag);
107
+ _chunk4LLLQOMFjs.log.call(void 0, msg, level, this.tag);
105
108
  }
106
109
  }, _class);
107
110
  var HttpBase = class extends ServerBase {
108
111
  static {
109
- _chunk5RBTN33Ajs.__name.call(void 0, this, "HttpBase");
112
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "HttpBase");
110
113
  }
111
114
 
112
115
  };
113
116
  _ts_decorate([
114
- _chunkV5EYXVJTjs.Ctx,
117
+ _chunkDPPDWBYOjs.Ctx,
115
118
  _ts_metadata("design:type", typeof Ctx === "undefined" ? Object : Ctx)
116
119
  ], HttpBase.prototype, "context", void 0);
117
120
  var RpcBase = class extends ServerBase {
118
121
  static {
119
- _chunk5RBTN33Ajs.__name.call(void 0, this, "RpcBase");
122
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "RpcBase");
120
123
  }
121
124
 
122
125
  };
123
126
  _ts_decorate([
124
- _chunkV5EYXVJTjs.Ctx,
127
+ _chunkDPPDWBYOjs.Ctx,
125
128
  _ts_metadata("design:type", typeof Ctx === "undefined" ? Object : Ctx)
126
129
  ], RpcBase.prototype, "context", void 0);
127
130
 
@@ -129,15 +132,15 @@ _ts_decorate([
129
132
 
130
133
  var PFilter = class extends ServerBase {
131
134
  static {
132
- _chunk5RBTN33Ajs.__name.call(void 0, this, "PFilter");
135
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "PFilter");
133
136
  }
134
137
 
135
138
  constructor(tag) {
136
139
  super();
137
140
  this.key = tag || _phecdacore.getTag.call(void 0, this);
138
- _chunkFX3LDQIIjs.addFilter.call(void 0, this.key, this.use.bind(this));
141
+ _chunkXKK2SQ7Wjs.addFilter.call(void 0, this.key, this.use.bind(this));
139
142
  this.onUnmount(() => {
140
- delete _chunkFX3LDQIIjs.Context.filterRecord[this.key];
143
+ delete _chunkXKK2SQ7Wjs.Context.filterRecord[this.key];
141
144
  });
142
145
  }
143
146
  };
@@ -146,16 +149,16 @@ var PFilter = class extends ServerBase {
146
149
 
147
150
  var PGuard = (_class2 = class extends ServerBase {
148
151
  static {
149
- _chunk5RBTN33Ajs.__name.call(void 0, this, "PGuard");
152
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "PGuard");
150
153
  }
151
154
 
152
155
  __init2() {this.priority = 0}
153
156
  constructor(tag) {
154
157
  super();_class2.prototype.__init2.call(this);;
155
158
  this.key = tag || _phecdacore.getTag.call(void 0, this);
156
- _chunkFX3LDQIIjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
159
+ _chunkXKK2SQ7Wjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
157
160
  this.onUnmount(() => {
158
- delete _chunkFX3LDQIIjs.Context.guardRecord[this.key];
161
+ delete _chunkXKK2SQ7Wjs.Context.guardRecord[this.key];
159
162
  });
160
163
  }
161
164
  }, _class2);
@@ -164,15 +167,15 @@ var PGuard = (_class2 = class extends ServerBase {
164
167
 
165
168
  var PPipe = class extends ServerBase {
166
169
  static {
167
- _chunk5RBTN33Ajs.__name.call(void 0, this, "PPipe");
170
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "PPipe");
168
171
  }
169
172
 
170
173
  constructor(tag) {
171
174
  super();
172
175
  this.key = tag || _phecdacore.getTag.call(void 0, this);
173
- _chunkFX3LDQIIjs.addPipe.call(void 0, this.key, this.use.bind(this));
176
+ _chunkXKK2SQ7Wjs.addPipe.call(void 0, this.key, this.use.bind(this));
174
177
  this.onUnmount(() => {
175
- delete _chunkFX3LDQIIjs.Context.pipeRecord[this.key];
178
+ delete _chunkXKK2SQ7Wjs.Context.pipeRecord[this.key];
176
179
  });
177
180
  }
178
181
  };
@@ -181,16 +184,16 @@ var PPipe = class extends ServerBase {
181
184
 
182
185
  var PAddon = (_class3 = class extends ServerBase {
183
186
  static {
184
- _chunk5RBTN33Ajs.__name.call(void 0, this, "PAddon");
187
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "PAddon");
185
188
  }
186
189
 
187
190
  __init3() {this.priority = 0}
188
191
  constructor(tag) {
189
192
  super();_class3.prototype.__init3.call(this);;
190
193
  this.key = tag || _phecdacore.getTag.call(void 0, this);
191
- _chunkFX3LDQIIjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
194
+ _chunkXKK2SQ7Wjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
192
195
  this.onUnmount(() => {
193
- delete _chunkFX3LDQIIjs.Context.addonRecord[this.key];
196
+ delete _chunkXKK2SQ7Wjs.Context.addonRecord[this.key];
194
197
  });
195
198
  }
196
199
  }, _class3);
@@ -199,7 +202,7 @@ var PAddon = (_class3 = class extends ServerBase {
199
202
 
200
203
  var PExtension = class extends ServerBase {
201
204
  static {
202
- _chunk5RBTN33Ajs.__name.call(void 0, this, "PExtension");
205
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "PExtension");
203
206
  }
204
207
 
205
208
 
@@ -208,27 +211,27 @@ var PExtension = class extends ServerBase {
208
211
  super();
209
212
  const key = this.key = tag || _phecdacore.getTag.call(void 0, this);
210
213
  if (this.pipe) {
211
- _chunkFX3LDQIIjs.addPipe.call(void 0, key, this.pipe.bind(this));
214
+ _chunkXKK2SQ7Wjs.addPipe.call(void 0, key, this.pipe.bind(this));
212
215
  this.onUnmount(() => {
213
- delete _chunkFX3LDQIIjs.Context.pipeRecord[key];
216
+ delete _chunkXKK2SQ7Wjs.Context.pipeRecord[key];
214
217
  });
215
218
  }
216
219
  if (this.addon) {
217
- _chunkFX3LDQIIjs.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
220
+ _chunkXKK2SQ7Wjs.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
218
221
  this.onUnmount(() => {
219
- delete _chunkFX3LDQIIjs.Context.addonRecord[key];
222
+ delete _chunkXKK2SQ7Wjs.Context.addonRecord[key];
220
223
  });
221
224
  }
222
225
  if (this.guard) {
223
- _chunkFX3LDQIIjs.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
226
+ _chunkXKK2SQ7Wjs.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
224
227
  this.onUnmount(() => {
225
- delete _chunkFX3LDQIIjs.Context.guardRecord[key];
228
+ delete _chunkXKK2SQ7Wjs.Context.guardRecord[key];
226
229
  });
227
230
  }
228
231
  if (this.filter) {
229
- _chunkFX3LDQIIjs.addFilter.call(void 0, key, this.filter.bind(this));
232
+ _chunkXKK2SQ7Wjs.addFilter.call(void 0, key, this.filter.bind(this));
230
233
  this.onUnmount(() => {
231
- delete _chunkFX3LDQIIjs.Context.filterRecord[key];
234
+ delete _chunkXKK2SQ7Wjs.Context.filterRecord[key];
232
235
  });
233
236
  }
234
237
  }
@@ -238,7 +241,7 @@ var PExtension = class extends ServerBase {
238
241
  var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
239
242
  var Generator = class {
240
243
  static {
241
- _chunk5RBTN33Ajs.__name.call(void 0, this, "Generator");
244
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "Generator");
242
245
  }
243
246
 
244
247
  constructor(path) {
@@ -248,14 +251,14 @@ var Generator = class {
248
251
  return this._path || `.ps/${this.name.toLowerCase()}.js`;
249
252
  }
250
253
  async output(meta) {
251
- await _fsextra2.default.outputFile(this.path, this.generateCode(meta.map((item) => item.data)));
254
+ await _fsextra2.default.outputFile(this.path, this.generateCode(meta));
252
255
  }
253
256
  };
254
257
 
255
258
  // src/generator/rpc.ts
256
259
  var RPCGenerator = (_class4 = class extends Generator {constructor(...args3) { super(...args3); _class4.prototype.__init4.call(this);_class4.prototype.__init5.call(this); }
257
260
  static {
258
- _chunk5RBTN33Ajs.__name.call(void 0, this, "RPCGenerator");
261
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "RPCGenerator");
259
262
  }
260
263
  __init4() {this.name = "RPC"}
261
264
  __init5() {this.classMap = {}}
@@ -281,9 +284,9 @@ var RPCGenerator = (_class4 = class extends Generator {constructor(...args3) { s
281
284
  `;
282
285
  }
283
286
  generateCode(meta) {
284
- for (const i of meta) {
285
- if (i.controller === "rpc") this.addMethod(i);
286
- }
287
+ meta.forEach(({ data }) => {
288
+ if (data.controller === "rpc") this.addMethod(data);
289
+ });
287
290
  return this.getContent();
288
291
  }
289
292
  }, _class4);
@@ -291,7 +294,7 @@ var RPCGenerator = (_class4 = class extends Generator {constructor(...args3) { s
291
294
  // src/generator/http.ts
292
295
  var HTTPGenerator = (_class5 = class extends Generator {constructor(...args4) { super(...args4); _class5.prototype.__init6.call(this);_class5.prototype.__init7.call(this); }
293
296
  static {
294
- _chunk5RBTN33Ajs.__name.call(void 0, this, "HTTPGenerator");
297
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "HTTPGenerator");
295
298
  }
296
299
  __init6() {this.name = "HTTP"}
297
300
  __init7() {this.classMap = {}}
@@ -308,7 +311,7 @@ var HTTPGenerator = (_class5 = class extends Generator {constructor(...args4) {
308
311
  addMethod(args) {
309
312
  const { http, name, func, params, tag } = args;
310
313
  if (!_optionalChain([http, 'optionalAccess', _2 => _2.type])) return;
311
- const url = _chunkFX3LDQIIjs.joinUrl.call(void 0, http.prefix, http.route).replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
314
+ const url = _chunkXKK2SQ7Wjs.joinUrl.call(void 0, http.prefix, http.route).replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
312
315
  if (!this.classMap[name]) this.classMap[name] = {};
313
316
  this.classMap[name][func] = `
314
317
  ${func}(...args){
@@ -322,13 +325,58 @@ return ret
322
325
  `;
323
326
  }
324
327
  generateCode(meta) {
325
- for (const i of meta) {
326
- if (i.controller === "http") this.addMethod(i);
327
- }
328
+ meta.forEach(({ data }) => {
329
+ if (data.controller === "http") this.addMethod(data);
330
+ });
328
331
  return this.getContent();
329
332
  }
330
333
  }, _class5);
331
334
 
335
+ // src/generator/openapi.ts
336
+
337
+ var OpenAPIGenerator = (_class6 = class extends Generator {constructor(...args5) { super(...args5); _class6.prototype.__init8.call(this);_class6.prototype.__init9.call(this); }
338
+ static {
339
+ _chunk4LLLQOMFjs.__name.call(void 0, this, "OpenAPIGenerator");
340
+ }
341
+ __init8() {this.name = "OpenAPI"}
342
+ __init9() {this.paths = {}}
343
+ getContent() {
344
+ return JSON.stringify({
345
+ openapi: "3.0.0",
346
+ info: {
347
+ title: "API Documentation",
348
+ version: "1.0.0",
349
+ description: "API documentation generated by phecda-server"
350
+ },
351
+ paths: this.paths
352
+ });
353
+ }
354
+ addMethod(args) {
355
+ const { http, tag, func } = args;
356
+ if (!_optionalChain([http, 'optionalAccess', _3 => _3.type])) return;
357
+ const path = _chunkXKK2SQ7Wjs.joinUrl.call(void 0, http.prefix, http.route);
358
+ if (!this.paths[path]) this.paths[path] = {};
359
+ const config = _phecdacore.getMergedMeta.call(void 0, _chunkZWPOWMZPjs.useS.call(void 0, ).getModel(tag), func).openapi;
360
+ this.paths[path][http.type] = {
361
+ summary: config.summary,
362
+ description: config.description,
363
+ tags: config.tags || [
364
+ tag
365
+ ],
366
+ deprecated: config.deprecated,
367
+ parameters: config.parameters,
368
+ requestBody: config.requestBody,
369
+ responses: config.responses
370
+ };
371
+ }
372
+ generateCode(meta) {
373
+ meta.forEach(({ data }) => {
374
+ if (data.controller === "http") this.addMethod(data);
375
+ });
376
+ return this.getContent();
377
+ }
378
+ }, _class6);
379
+
332
380
  // src/index.ts
333
381
 
334
382
 
@@ -408,4 +456,9 @@ return ret
408
456
 
409
457
 
410
458
 
411
- exports.Addon = _chunkV5EYXVJTjs.Addon; exports.Arg = _chunkV5EYXVJTjs.Arg; exports.BadGatewayException = _chunkFX3LDQIIjs.BadGatewayException; exports.BadRequestException = _chunkFX3LDQIIjs.BadRequestException; exports.BaseParam = _chunkV5EYXVJTjs.BaseParam; exports.Body = _chunkV5EYXVJTjs.Body; exports.ConflictException = _chunkFX3LDQIIjs.ConflictException; exports.Context = _chunkFX3LDQIIjs.Context; exports.Controller = _chunkV5EYXVJTjs.Controller; exports.Ctx = _chunkV5EYXVJTjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkV5EYXVJTjs.Define; exports.Delete = _chunkV5EYXVJTjs.Delete; exports.ERROR_SYMBOL = _chunk5RBTN33Ajs.ERROR_SYMBOL; exports.Exception = _chunkFX3LDQIIjs.Exception; exports.Factory = _chunkKJUD2BKEjs.Factory; exports.Filter = _chunkV5EYXVJTjs.Filter; exports.ForbiddenException = _chunkFX3LDQIIjs.ForbiddenException; exports.FrameworkException = _chunkFX3LDQIIjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunkV5EYXVJTjs.Get; exports.Guard = _chunkV5EYXVJTjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkV5EYXVJTjs.Head; exports.Header = _chunkV5EYXVJTjs.Header; exports.HttpBase = HttpBase; exports.IS_DEV = _chunk5RBTN33Ajs.IS_DEV; exports.IS_ONLY_GENERATE = _chunk5RBTN33Ajs.IS_ONLY_GENERATE; exports.IS_STRICT = _chunk5RBTN33Ajs.IS_STRICT; exports.InvalidInputException = _chunkFX3LDQIIjs.InvalidInputException; exports.LOG_LEVEL = _chunk5RBTN33Ajs.LOG_LEVEL; exports.Meta = _chunkKJUD2BKEjs.Meta; exports.Mixin = _chunk5RBTN33Ajs.Mixin; exports.NotFoundException = _chunkFX3LDQIIjs.NotFoundException; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunk5RBTN33Ajs.PS_EXIT_CODE; exports.Param = _chunkV5EYXVJTjs.Param; exports.Patch = _chunkV5EYXVJTjs.Patch; exports.PayloadLargeException = _chunkFX3LDQIIjs.PayloadLargeException; exports.Pipe = _chunkV5EYXVJTjs.Pipe; exports.Post = _chunkV5EYXVJTjs.Post; exports.Put = _chunkV5EYXVJTjs.Put; exports.Query = _chunkV5EYXVJTjs.Query; exports.Queue = _chunkV5EYXVJTjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkV5EYXVJTjs.Route; exports.Rpc = _chunkV5EYXVJTjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkV5EYXVJTjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkKJUD2BKEjs.ServerPhecda; exports.ServiceUnavailableException = _chunkFX3LDQIIjs.ServiceUnavailableException; exports.TimeoutException = _chunkFX3LDQIIjs.TimeoutException; exports.TimerException = _chunkFX3LDQIIjs.TimerException; exports.UnauthorizedException = _chunkFX3LDQIIjs.UnauthorizedException; exports.UndefinedException = _chunkFX3LDQIIjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkFX3LDQIIjs.UnsupportedMediaTypeException; exports.ValidateException = _chunkFX3LDQIIjs.ValidateException; exports.WorkerException = _chunkFX3LDQIIjs.WorkerException; exports.addAddon = _chunkFX3LDQIIjs.addAddon; exports.addFilter = _chunkFX3LDQIIjs.addFilter; exports.addGuard = _chunkFX3LDQIIjs.addGuard; exports.addPipe = _chunkFX3LDQIIjs.addPipe; exports.defaultPipe = _chunkFX3LDQIIjs.defaultPipe; exports.defaultServerInject = _chunkKJUD2BKEjs.defaultServerInject; exports.emitter = _chunkKJUD2BKEjs.emitter; exports.getLogger = _chunk5RBTN33Ajs.getLogger; exports.log = _chunk5RBTN33Ajs.log; exports.phecdaNamespace = _chunkKJUD2BKEjs.phecdaNamespace; exports.runMiddleware = _chunk5RBTN33Ajs.runMiddleware; exports.setLogger = _chunk5RBTN33Ajs.setLogger; exports.useS = _chunkKJUD2BKEjs.useS;
459
+
460
+
461
+
462
+
463
+
464
+ exports.Addon = _chunkDPPDWBYOjs.Addon; exports.ApiDoc = _chunkDPPDWBYOjs.ApiDoc; exports.Arg = _chunkDPPDWBYOjs.Arg; exports.BadGatewayException = _chunkXKK2SQ7Wjs.BadGatewayException; exports.BadRequestException = _chunkXKK2SQ7Wjs.BadRequestException; exports.BaseParam = _chunkDPPDWBYOjs.BaseParam; exports.Body = _chunkDPPDWBYOjs.Body; exports.ConflictException = _chunkXKK2SQ7Wjs.ConflictException; exports.Context = _chunkXKK2SQ7Wjs.Context; exports.Controller = _chunkDPPDWBYOjs.Controller; exports.Ctx = _chunkDPPDWBYOjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkDPPDWBYOjs.Define; exports.Delete = _chunkDPPDWBYOjs.Delete; exports.ERROR_SYMBOL = _chunk4LLLQOMFjs.ERROR_SYMBOL; exports.Exception = _chunkXKK2SQ7Wjs.Exception; exports.Factory = _chunkZWPOWMZPjs.Factory; exports.Filter = _chunkDPPDWBYOjs.Filter; exports.ForbiddenException = _chunkXKK2SQ7Wjs.ForbiddenException; exports.FrameworkException = _chunkXKK2SQ7Wjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunkDPPDWBYOjs.Get; exports.Guard = _chunkDPPDWBYOjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkDPPDWBYOjs.Head; exports.Header = _chunkDPPDWBYOjs.Header; exports.HttpBase = HttpBase; exports.IS_DEV = _chunk4LLLQOMFjs.IS_DEV; exports.IS_ONLY_GENERATE = _chunk4LLLQOMFjs.IS_ONLY_GENERATE; exports.IS_PURE = _chunk4LLLQOMFjs.IS_PURE; exports.IS_STRICT = _chunk4LLLQOMFjs.IS_STRICT; exports.InvalidInputException = _chunkXKK2SQ7Wjs.InvalidInputException; exports.LOG_LEVEL = _chunk4LLLQOMFjs.LOG_LEVEL; exports.ManyFiles = _chunkDPPDWBYOjs.ManyFiles; exports.Meta = _chunkZWPOWMZPjs.Meta; exports.Mixin = _chunk4LLLQOMFjs.Mixin; exports.NotFoundException = _chunkXKK2SQ7Wjs.NotFoundException; exports.OneFile = _chunkDPPDWBYOjs.OneFile; exports.OpenAPIGenerator = OpenAPIGenerator; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunk4LLLQOMFjs.PS_EXIT_CODE; exports.Param = _chunkDPPDWBYOjs.Param; exports.Patch = _chunkDPPDWBYOjs.Patch; exports.PayloadLargeException = _chunkXKK2SQ7Wjs.PayloadLargeException; exports.Pipe = _chunkDPPDWBYOjs.Pipe; exports.Post = _chunkDPPDWBYOjs.Post; exports.Put = _chunkDPPDWBYOjs.Put; exports.Query = _chunkDPPDWBYOjs.Query; exports.Queue = _chunkDPPDWBYOjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkDPPDWBYOjs.Route; exports.Rpc = _chunkDPPDWBYOjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkDPPDWBYOjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkZWPOWMZPjs.ServerPhecda; exports.ServiceUnavailableException = _chunkXKK2SQ7Wjs.ServiceUnavailableException; exports.TimeoutException = _chunkXKK2SQ7Wjs.TimeoutException; exports.TimerException = _chunkXKK2SQ7Wjs.TimerException; exports.UnauthorizedException = _chunkXKK2SQ7Wjs.UnauthorizedException; exports.UndefinedException = _chunkXKK2SQ7Wjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkXKK2SQ7Wjs.UnsupportedMediaTypeException; exports.ValidateException = _chunkXKK2SQ7Wjs.ValidateException; exports.WorkerException = _chunkXKK2SQ7Wjs.WorkerException; exports.addAddon = _chunkXKK2SQ7Wjs.addAddon; exports.addFilter = _chunkXKK2SQ7Wjs.addFilter; exports.addGuard = _chunkXKK2SQ7Wjs.addGuard; exports.addPipe = _chunkXKK2SQ7Wjs.addPipe; exports.defaultPipe = _chunkXKK2SQ7Wjs.defaultPipe; exports.defaultServerInject = _chunkZWPOWMZPjs.defaultServerInject; exports.emitter = _chunkZWPOWMZPjs.emitter; exports.getLogger = _chunk4LLLQOMFjs.getLogger; exports.log = _chunk4LLLQOMFjs.log; exports.phecdaNamespace = _chunkZWPOWMZPjs.phecdaNamespace; exports.runMiddleware = _chunk4LLLQOMFjs.runMiddleware; exports.setLogger = _chunk4LLLQOMFjs.setLogger; exports.useS = _chunkZWPOWMZPjs.useS;