wexts 4.0.0 → 4.1.5

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 (189) hide show
  1. package/README.md +49 -49
  2. package/bin/wexts.cjs +2 -2
  3. package/package.json +153 -148
  4. package/templates/.dockerignore +43 -43
  5. package/templates/.env.example +17 -17
  6. package/templates/Dockerfile +60 -60
  7. package/templates/Procfile +1 -1
  8. package/templates/README.md +67 -67
  9. package/templates/api-sdk.ts +115 -115
  10. package/templates/docker-compose.yml +34 -34
  11. package/templates/nestjs-api/.env.example +3 -3
  12. package/templates/nestjs-api/README.md +87 -87
  13. package/templates/nestjs-api/nest-cli.json +6 -6
  14. package/templates/nestjs-api/package.json +40 -40
  15. package/templates/nestjs-api/prisma/migrations/20251123205437_init/migration.sql +24 -24
  16. package/templates/nestjs-api/prisma/migrations/migration_lock.toml +3 -3
  17. package/templates/nestjs-api/prisma/schema.prisma +29 -29
  18. package/templates/nestjs-api/src/app.module.ts +17 -17
  19. package/templates/nestjs-api/src/auth/auth.controller.ts +27 -27
  20. package/templates/nestjs-api/src/auth/auth.module.ts +37 -37
  21. package/templates/nestjs-api/src/auth/auth.service.ts +86 -86
  22. package/templates/nestjs-api/src/auth/dto/auth.dto.ts +22 -22
  23. package/templates/nestjs-api/src/auth/guards/jwt-auth.guard.ts +5 -5
  24. package/templates/nestjs-api/src/auth/strategies/jwt.strategy.ts +27 -27
  25. package/templates/nestjs-api/src/main.ts +32 -32
  26. package/templates/nestjs-api/src/prisma/prisma.module.ts +9 -9
  27. package/templates/nestjs-api/src/prisma/prisma.service.ts +14 -14
  28. package/templates/nestjs-api/src/todos/dto/todo.dto.ts +24 -24
  29. package/templates/nestjs-api/src/todos/todos.controller.ts +39 -39
  30. package/templates/nestjs-api/src/todos/todos.module.ts +11 -11
  31. package/templates/nestjs-api/src/todos/todos.service.ts +53 -53
  32. package/templates/nestjs-api/src/users/users.controller.ts +14 -14
  33. package/templates/nestjs-api/src/users/users.module.ts +12 -12
  34. package/templates/nestjs-api/src/users/users.service.ts +19 -19
  35. package/templates/nestjs-api/tsconfig.json +39 -39
  36. package/templates/nextjs-web/README.md +76 -76
  37. package/templates/nextjs-web/app/actions/auth.ts +108 -108
  38. package/templates/nextjs-web/app/dashboard/error.tsx +39 -39
  39. package/templates/nextjs-web/app/dashboard/loading.tsx +14 -14
  40. package/templates/nextjs-web/app/dashboard/page.tsx +5 -5
  41. package/templates/nextjs-web/app/globals.css +93 -93
  42. package/templates/nextjs-web/app/layout.tsx +29 -29
  43. package/templates/nextjs-web/app/login/page.tsx +5 -5
  44. package/templates/nextjs-web/app/page.tsx +28 -28
  45. package/templates/nextjs-web/app/register/page.tsx +5 -5
  46. package/templates/nextjs-web/components/ui/button.tsx +56 -56
  47. package/templates/nextjs-web/components/ui/card.tsx +79 -79
  48. package/templates/nextjs-web/components/ui/input.tsx +25 -25
  49. package/templates/nextjs-web/components/ui/label.tsx +24 -24
  50. package/templates/nextjs-web/features/auth/LoginForm.tsx +140 -140
  51. package/templates/nextjs-web/features/auth/RegisterForm.tsx +159 -159
  52. package/templates/nextjs-web/features/auth/api.ts +35 -35
  53. package/templates/nextjs-web/features/auth/index.ts +3 -3
  54. package/templates/nextjs-web/features/dashboard/DashboardView.tsx +204 -204
  55. package/templates/nextjs-web/features/dashboard/api.ts +9 -9
  56. package/templates/nextjs-web/features/dashboard/components.tsx +74 -74
  57. package/templates/nextjs-web/features/dashboard/index.ts +3 -3
  58. package/templates/nextjs-web/hooks/index.ts +4 -4
  59. package/templates/nextjs-web/lib/api-client.ts +89 -89
  60. package/templates/nextjs-web/lib/api.ts +115 -115
  61. package/templates/nextjs-web/lib/axios-global-config.ts +17 -17
  62. package/templates/nextjs-web/lib/utils.ts +6 -6
  63. package/templates/nextjs-web/lib/wexts-client.ts +4 -4
  64. package/templates/nextjs-web/next-env.d.ts +6 -6
  65. package/templates/nextjs-web/next.config.ts +20 -20
  66. package/templates/nextjs-web/package.json +37 -37
  67. package/templates/nextjs-web/postcss.config.js +6 -6
  68. package/templates/nextjs-web/tailwind.config.ts +69 -69
  69. package/templates/nextjs-web/tsconfig.json +41 -41
  70. package/templates/nixpacks.toml +11 -11
  71. package/templates/root-package.json +31 -31
  72. package/templates/server.ts +66 -66
  73. package/templates/tsconfig.json +30 -30
  74. package/dist/chunk-2KAQYLVN.js +0 -1
  75. package/dist/chunk-2KAQYLVN.js.map +0 -1
  76. package/dist/chunk-2LJVUMXW.js +0 -228
  77. package/dist/chunk-2LJVUMXW.js.map +0 -1
  78. package/dist/chunk-7QKLIVRF.js +0 -94
  79. package/dist/chunk-7QKLIVRF.js.map +0 -1
  80. package/dist/chunk-7WULUGLH.mjs +0 -22
  81. package/dist/chunk-7WULUGLH.mjs.map +0 -1
  82. package/dist/chunk-BG56B4DE.js +0 -106
  83. package/dist/chunk-BG56B4DE.js.map +0 -1
  84. package/dist/chunk-CLM5PNSG.mjs +0 -496
  85. package/dist/chunk-CLM5PNSG.mjs.map +0 -1
  86. package/dist/chunk-DNLGCKTT.js +0 -31
  87. package/dist/chunk-DNLGCKTT.js.map +0 -1
  88. package/dist/chunk-JHOVXH3X.mjs +0 -65
  89. package/dist/chunk-JHOVXH3X.mjs.map +0 -1
  90. package/dist/chunk-MXINIFPC.js +0 -105
  91. package/dist/chunk-MXINIFPC.js.map +0 -1
  92. package/dist/chunk-SE32ZPOZ.js +0 -496
  93. package/dist/chunk-SE32ZPOZ.js.map +0 -1
  94. package/dist/chunk-UAL54DVV.mjs +0 -106
  95. package/dist/chunk-UAL54DVV.mjs.map +0 -1
  96. package/dist/chunk-WCKSKU3C.js +0 -65
  97. package/dist/chunk-WCKSKU3C.js.map +0 -1
  98. package/dist/chunk-WU6FW77M.mjs +0 -105
  99. package/dist/chunk-WU6FW77M.mjs.map +0 -1
  100. package/dist/chunk-XE4OXN2W.js +0 -12
  101. package/dist/chunk-XE4OXN2W.js.map +0 -1
  102. package/dist/chunk-YBM3IJEA.mjs +0 -94
  103. package/dist/chunk-YBM3IJEA.mjs.map +0 -1
  104. package/dist/chunk-YN6WIWNQ.mjs +0 -228
  105. package/dist/chunk-YN6WIWNQ.mjs.map +0 -1
  106. package/dist/chunk-YSLEF5C5.mjs +0 -1
  107. package/dist/chunk-YSLEF5C5.mjs.map +0 -1
  108. package/dist/chunk-ZX7QIN24.mjs +0 -31
  109. package/dist/chunk-ZX7QIN24.mjs.map +0 -1
  110. package/dist/cli/index.d.mts +0 -11
  111. package/dist/cli/index.d.ts +0 -11
  112. package/dist/cli/index.js +0 -332
  113. package/dist/cli/index.js.map +0 -1
  114. package/dist/cli/index.mjs +0 -334
  115. package/dist/cli/index.mjs.map +0 -1
  116. package/dist/client/index.d.mts +0 -21
  117. package/dist/client/index.d.ts +0 -21
  118. package/dist/client/index.js +0 -12
  119. package/dist/client/index.js.map +0 -1
  120. package/dist/client/index.mjs +0 -12
  121. package/dist/client/index.mjs.map +0 -1
  122. package/dist/codegen/index.d.mts +0 -2
  123. package/dist/codegen/index.d.ts +0 -2
  124. package/dist/codegen/index.js +0 -15
  125. package/dist/codegen/index.js.map +0 -1
  126. package/dist/codegen/index.mjs +0 -15
  127. package/dist/codegen/index.mjs.map +0 -1
  128. package/dist/decorators-BT1FFqN0.d.mts +0 -29
  129. package/dist/decorators-DvS58PqC.d.ts +0 -29
  130. package/dist/dev-server/index.d.mts +0 -1
  131. package/dist/dev-server/index.d.ts +0 -1
  132. package/dist/dev-server/index.js +0 -13
  133. package/dist/dev-server/index.js.map +0 -1
  134. package/dist/dev-server/index.mjs +0 -13
  135. package/dist/dev-server/index.mjs.map +0 -1
  136. package/dist/index-7QeQEf37.d.ts +0 -92
  137. package/dist/index-7RvU-jGE.d.mts +0 -66
  138. package/dist/index-7RvU-jGE.d.ts +0 -66
  139. package/dist/index-8nzxy0NN.d.mts +0 -92
  140. package/dist/index-Co5ZsLqq.d.ts +0 -58
  141. package/dist/index-D94W1__r.d.mts +0 -58
  142. package/dist/index-DQmyVp6F.d.mts +0 -27
  143. package/dist/index-KL_1BrQb.d.ts +0 -27
  144. package/dist/index.d.mts +0 -258
  145. package/dist/index.d.ts +0 -258
  146. package/dist/index.js +0 -410
  147. package/dist/index.js.map +0 -1
  148. package/dist/index.mjs +0 -410
  149. package/dist/index.mjs.map +0 -1
  150. package/dist/nest/index.d.mts +0 -3
  151. package/dist/nest/index.d.ts +0 -3
  152. package/dist/nest/index.js +0 -38
  153. package/dist/nest/index.js.map +0 -1
  154. package/dist/nest/index.mjs +0 -38
  155. package/dist/nest/index.mjs.map +0 -1
  156. package/dist/next/index.d.mts +0 -66
  157. package/dist/next/index.d.ts +0 -66
  158. package/dist/next/index.js +0 -226
  159. package/dist/next/index.js.map +0 -1
  160. package/dist/next/index.mjs +0 -188
  161. package/dist/next/index.mjs.map +0 -1
  162. package/dist/rpc/index.d.mts +0 -2
  163. package/dist/rpc/index.d.ts +0 -2
  164. package/dist/rpc/index.js +0 -23
  165. package/dist/rpc/index.js.map +0 -1
  166. package/dist/rpc/index.mjs +0 -23
  167. package/dist/rpc/index.mjs.map +0 -1
  168. package/dist/runtime/index.d.mts +0 -55
  169. package/dist/runtime/index.d.ts +0 -55
  170. package/dist/runtime/index.js +0 -213
  171. package/dist/runtime/index.js.map +0 -1
  172. package/dist/runtime/index.mjs +0 -213
  173. package/dist/runtime/index.mjs.map +0 -1
  174. package/dist/types/index.d.mts +0 -12
  175. package/dist/types/index.d.ts +0 -12
  176. package/dist/types/index.js +0 -2
  177. package/dist/types/index.js.map +0 -1
  178. package/dist/types/index.mjs +0 -3
  179. package/dist/types/index.mjs.map +0 -1
  180. package/dist/types-7d_fC-C3.d.mts +0 -32
  181. package/dist/types-7d_fC-C3.d.ts +0 -32
  182. package/dist/vercel-builder/index.d.mts +0 -58
  183. package/dist/vercel-builder/index.d.ts +0 -58
  184. package/dist/vercel-builder/index.js +0 -330
  185. package/dist/vercel-builder/index.js.map +0 -1
  186. package/dist/vercel-builder/index.mjs +0 -330
  187. package/dist/vercel-builder/index.mjs.map +0 -1
  188. package/templates/nestjs-api/package-lock.json +0 -5623
  189. package/templates/nextjs-web/package-lock.json +0 -3254
@@ -1,29 +0,0 @@
1
- import { R as RpcAuthPolicy } from './types-7d_fC-C3.js';
2
-
3
- interface RpcServiceOptions {
4
- name?: string;
5
- requireAuth?: boolean;
6
- }
7
- interface RpcMethodOptions {
8
- name?: string;
9
- requireAuth?: boolean;
10
- }
11
- interface RuntimeRpcServiceMetadata {
12
- name?: string;
13
- requireAuth: boolean;
14
- }
15
- interface RuntimeRpcMethodMetadata {
16
- propertyKey: string | symbol;
17
- name?: string;
18
- requireAuth?: boolean;
19
- }
20
- declare function RpcService(nameOrOptions?: string | RpcServiceOptions): ClassDecorator;
21
- declare function RpcMethod(nameOrOptions?: string | RpcMethodOptions): MethodDecorator;
22
- declare function RequireAuth(): MethodDecorator & ClassDecorator;
23
- declare function getRuntimeRpcServiceMetadata(target: Function): RuntimeRpcServiceMetadata | undefined;
24
- declare function getRuntimeRpcMethodsMetadata(target: Function): RuntimeRpcMethodMetadata[];
25
- declare function getRpcAuthPolicy(requireAuth?: boolean): RpcAuthPolicy;
26
- declare const WextsRpcService: typeof RpcService;
27
- declare const WextsRpc: typeof RpcMethod;
28
-
29
- export { RequireAuth as R, WextsRpc as W, RpcMethod as a, type RpcMethodOptions as b, RpcService as c, type RpcServiceOptions as d, type RuntimeRpcMethodMetadata as e, type RuntimeRpcServiceMetadata as f, WextsRpcService as g, getRpcAuthPolicy as h, getRuntimeRpcMethodsMetadata as i, getRuntimeRpcServiceMetadata as j };
@@ -1 +0,0 @@
1
- export { D as DevServerConfig, F as FusionDevServer, P as ProcessConfig, a as ProcessRunner, b as ProxyConfig, c as ProxyServer } from '../index-7RvU-jGE.mjs';
@@ -1 +0,0 @@
1
- export { D as DevServerConfig, F as FusionDevServer, P as ProcessConfig, a as ProcessRunner, b as ProxyConfig, c as ProxyServer } from '../index-7RvU-jGE.js';
@@ -1,13 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunk2LJVUMXWjs = require('../chunk-2LJVUMXW.js');
6
- require('../chunk-WCKSKU3C.js');
7
- require('../chunk-XE4OXN2W.js');
8
-
9
-
10
-
11
-
12
- exports.FusionDevServer = _chunk2LJVUMXWjs.FusionDevServer; exports.ProcessRunner = _chunk2LJVUMXWjs.ProcessRunner; exports.ProxyServer = _chunk2LJVUMXWjs.ProxyServer;
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/Volumes/Projects/wexts/packages/dist/dev-server/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uKAAC","file":"/Volumes/Projects/wexts/packages/dist/dev-server/index.js"}
@@ -1,13 +0,0 @@
1
- import {
2
- FusionDevServer,
3
- ProcessRunner,
4
- ProxyServer
5
- } from "../chunk-YN6WIWNQ.mjs";
6
- import "../chunk-JHOVXH3X.mjs";
7
- import "../chunk-7WULUGLH.mjs";
8
- export {
9
- FusionDevServer,
10
- ProcessRunner,
11
- ProxyServer
12
- };
13
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,92 +0,0 @@
1
- import { c as RpcManifest } from './types-7d_fC-C3.js';
2
-
3
- interface RouteInfo {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- handler: string;
7
- controllerName: string;
8
- }
9
- interface ControllerInfo {
10
- name: string;
11
- prefix: string;
12
- routes: RouteInfo[];
13
- }
14
- /**
15
- * Parse NestJS controllers to extract Fusion metadata
16
- */
17
- declare class NestJSParser {
18
- private projectPath;
19
- private program;
20
- constructor(projectPath: string);
21
- /**
22
- * Find all controllers with @FusionController decorator
23
- */
24
- findFusionControllers(): ControllerInfo[];
25
- findRpcManifest(): RpcManifest;
26
- private parseSourceFile;
27
- private parseController;
28
- private parseRoutes;
29
- private parseRpcServices;
30
- private parseRpcMethods;
31
- private parseParameter;
32
- private findDecorator;
33
- private hasDecorator;
34
- private readDecoratorOptions;
35
- }
36
-
37
- interface GenerateOptions {
38
- outputPath: string;
39
- manifest: RpcManifest;
40
- manifestFileName?: string;
41
- clientFileName?: string;
42
- }
43
- interface GenerateRpcOptions {
44
- projectPath: string;
45
- outputPath: string;
46
- manifestFileName?: string;
47
- clientFileName?: string;
48
- }
49
- /**
50
- * Generate TypeScript API client from controller metadata
51
- */
52
- declare class ClientGenerator {
53
- generate(options: GenerateOptions): Promise<void>;
54
- private generateRpcClientCode;
55
- private generateClientInterface;
56
- private generateServiceInterface;
57
- private parametersToSignature;
58
- }
59
- declare function generateRpcClient(options: GenerateRpcOptions): Promise<RpcManifest>;
60
-
61
- interface WatchOptions {
62
- projectPath: string;
63
- outputPath: string;
64
- pattern?: string;
65
- }
66
- /**
67
- * Watch NestJS controllers and regenerate client on changes
68
- */
69
- declare class CodegenWatcher {
70
- private watcher;
71
- watch(options: WatchOptions): Promise<void>;
72
- stop(): Promise<void>;
73
- private generateClient;
74
- }
75
-
76
- type index_ClientGenerator = ClientGenerator;
77
- declare const index_ClientGenerator: typeof ClientGenerator;
78
- type index_CodegenWatcher = CodegenWatcher;
79
- declare const index_CodegenWatcher: typeof CodegenWatcher;
80
- type index_ControllerInfo = ControllerInfo;
81
- type index_GenerateOptions = GenerateOptions;
82
- type index_GenerateRpcOptions = GenerateRpcOptions;
83
- type index_NestJSParser = NestJSParser;
84
- declare const index_NestJSParser: typeof NestJSParser;
85
- type index_RouteInfo = RouteInfo;
86
- type index_WatchOptions = WatchOptions;
87
- declare const index_generateRpcClient: typeof generateRpcClient;
88
- declare namespace index {
89
- export { index_ClientGenerator as ClientGenerator, index_CodegenWatcher as CodegenWatcher, type index_ControllerInfo as ControllerInfo, type index_GenerateOptions as GenerateOptions, type index_GenerateRpcOptions as GenerateRpcOptions, index_NestJSParser as NestJSParser, type index_RouteInfo as RouteInfo, type index_WatchOptions as WatchOptions, index_generateRpcClient as generateRpcClient };
90
- }
91
-
92
- export { ClientGenerator as C, type GenerateOptions as G, NestJSParser as N, type RouteInfo as R, type WatchOptions as W, CodegenWatcher as a, type ControllerInfo as b, type GenerateRpcOptions as c, generateRpcClient as g, index as i };
@@ -1,66 +0,0 @@
1
- interface DevServerConfig {
2
- apiPath: string;
3
- webPath: string;
4
- webPort?: number;
5
- apiPort?: number;
6
- useProxy?: boolean;
7
- }
8
- /**
9
- * Unified development server for Fusion projects
10
- */
11
- declare class FusionDevServer {
12
- private processRunner;
13
- constructor();
14
- start(config: DevServerConfig): Promise<void>;
15
- stop(): void;
16
- }
17
-
18
- interface ProcessConfig {
19
- name: string;
20
- command: string;
21
- args: string[];
22
- cwd: string;
23
- color: 'cyan' | 'green' | 'yellow' | 'magenta' | 'blue';
24
- env?: Record<string, string>;
25
- }
26
- /**
27
- * Run multiple processes concurrently with colored output
28
- */
29
- declare class ProcessRunner {
30
- private processes;
31
- private colors;
32
- run(configs: ProcessConfig[]): Promise<void>;
33
- private startProcess;
34
- stopAll(): void;
35
- isRunning(name: string): boolean;
36
- }
37
-
38
- interface ProxyConfig {
39
- port: number;
40
- apiTarget: string;
41
- apiPrefix: string;
42
- }
43
- /**
44
- * Proxy server to forward API requests from Next.js to NestJS
45
- */
46
- declare class ProxyServer {
47
- private server;
48
- private proxy;
49
- start(config: ProxyConfig): Promise<void>;
50
- stop(): void;
51
- }
52
-
53
- type index_DevServerConfig = DevServerConfig;
54
- type index_FusionDevServer = FusionDevServer;
55
- declare const index_FusionDevServer: typeof FusionDevServer;
56
- type index_ProcessConfig = ProcessConfig;
57
- type index_ProcessRunner = ProcessRunner;
58
- declare const index_ProcessRunner: typeof ProcessRunner;
59
- type index_ProxyConfig = ProxyConfig;
60
- type index_ProxyServer = ProxyServer;
61
- declare const index_ProxyServer: typeof ProxyServer;
62
- declare namespace index {
63
- export { type index_DevServerConfig as DevServerConfig, index_FusionDevServer as FusionDevServer, type index_ProcessConfig as ProcessConfig, index_ProcessRunner as ProcessRunner, type index_ProxyConfig as ProxyConfig, index_ProxyServer as ProxyServer };
64
- }
65
-
66
- export { type DevServerConfig as D, FusionDevServer as F, type ProcessConfig as P, ProcessRunner as a, type ProxyConfig as b, ProxyServer as c, index as i };
@@ -1,66 +0,0 @@
1
- interface DevServerConfig {
2
- apiPath: string;
3
- webPath: string;
4
- webPort?: number;
5
- apiPort?: number;
6
- useProxy?: boolean;
7
- }
8
- /**
9
- * Unified development server for Fusion projects
10
- */
11
- declare class FusionDevServer {
12
- private processRunner;
13
- constructor();
14
- start(config: DevServerConfig): Promise<void>;
15
- stop(): void;
16
- }
17
-
18
- interface ProcessConfig {
19
- name: string;
20
- command: string;
21
- args: string[];
22
- cwd: string;
23
- color: 'cyan' | 'green' | 'yellow' | 'magenta' | 'blue';
24
- env?: Record<string, string>;
25
- }
26
- /**
27
- * Run multiple processes concurrently with colored output
28
- */
29
- declare class ProcessRunner {
30
- private processes;
31
- private colors;
32
- run(configs: ProcessConfig[]): Promise<void>;
33
- private startProcess;
34
- stopAll(): void;
35
- isRunning(name: string): boolean;
36
- }
37
-
38
- interface ProxyConfig {
39
- port: number;
40
- apiTarget: string;
41
- apiPrefix: string;
42
- }
43
- /**
44
- * Proxy server to forward API requests from Next.js to NestJS
45
- */
46
- declare class ProxyServer {
47
- private server;
48
- private proxy;
49
- start(config: ProxyConfig): Promise<void>;
50
- stop(): void;
51
- }
52
-
53
- type index_DevServerConfig = DevServerConfig;
54
- type index_FusionDevServer = FusionDevServer;
55
- declare const index_FusionDevServer: typeof FusionDevServer;
56
- type index_ProcessConfig = ProcessConfig;
57
- type index_ProcessRunner = ProcessRunner;
58
- declare const index_ProcessRunner: typeof ProcessRunner;
59
- type index_ProxyConfig = ProxyConfig;
60
- type index_ProxyServer = ProxyServer;
61
- declare const index_ProxyServer: typeof ProxyServer;
62
- declare namespace index {
63
- export { type index_DevServerConfig as DevServerConfig, index_FusionDevServer as FusionDevServer, type index_ProcessConfig as ProcessConfig, index_ProcessRunner as ProcessRunner, type index_ProxyConfig as ProxyConfig, index_ProxyServer as ProxyServer };
64
- }
65
-
66
- export { type DevServerConfig as D, FusionDevServer as F, type ProcessConfig as P, ProcessRunner as a, type ProxyConfig as b, ProxyServer as c, index as i };
@@ -1,92 +0,0 @@
1
- import { c as RpcManifest } from './types-7d_fC-C3.mjs';
2
-
3
- interface RouteInfo {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- handler: string;
7
- controllerName: string;
8
- }
9
- interface ControllerInfo {
10
- name: string;
11
- prefix: string;
12
- routes: RouteInfo[];
13
- }
14
- /**
15
- * Parse NestJS controllers to extract Fusion metadata
16
- */
17
- declare class NestJSParser {
18
- private projectPath;
19
- private program;
20
- constructor(projectPath: string);
21
- /**
22
- * Find all controllers with @FusionController decorator
23
- */
24
- findFusionControllers(): ControllerInfo[];
25
- findRpcManifest(): RpcManifest;
26
- private parseSourceFile;
27
- private parseController;
28
- private parseRoutes;
29
- private parseRpcServices;
30
- private parseRpcMethods;
31
- private parseParameter;
32
- private findDecorator;
33
- private hasDecorator;
34
- private readDecoratorOptions;
35
- }
36
-
37
- interface GenerateOptions {
38
- outputPath: string;
39
- manifest: RpcManifest;
40
- manifestFileName?: string;
41
- clientFileName?: string;
42
- }
43
- interface GenerateRpcOptions {
44
- projectPath: string;
45
- outputPath: string;
46
- manifestFileName?: string;
47
- clientFileName?: string;
48
- }
49
- /**
50
- * Generate TypeScript API client from controller metadata
51
- */
52
- declare class ClientGenerator {
53
- generate(options: GenerateOptions): Promise<void>;
54
- private generateRpcClientCode;
55
- private generateClientInterface;
56
- private generateServiceInterface;
57
- private parametersToSignature;
58
- }
59
- declare function generateRpcClient(options: GenerateRpcOptions): Promise<RpcManifest>;
60
-
61
- interface WatchOptions {
62
- projectPath: string;
63
- outputPath: string;
64
- pattern?: string;
65
- }
66
- /**
67
- * Watch NestJS controllers and regenerate client on changes
68
- */
69
- declare class CodegenWatcher {
70
- private watcher;
71
- watch(options: WatchOptions): Promise<void>;
72
- stop(): Promise<void>;
73
- private generateClient;
74
- }
75
-
76
- type index_ClientGenerator = ClientGenerator;
77
- declare const index_ClientGenerator: typeof ClientGenerator;
78
- type index_CodegenWatcher = CodegenWatcher;
79
- declare const index_CodegenWatcher: typeof CodegenWatcher;
80
- type index_ControllerInfo = ControllerInfo;
81
- type index_GenerateOptions = GenerateOptions;
82
- type index_GenerateRpcOptions = GenerateRpcOptions;
83
- type index_NestJSParser = NestJSParser;
84
- declare const index_NestJSParser: typeof NestJSParser;
85
- type index_RouteInfo = RouteInfo;
86
- type index_WatchOptions = WatchOptions;
87
- declare const index_generateRpcClient: typeof generateRpcClient;
88
- declare namespace index {
89
- export { index_ClientGenerator as ClientGenerator, index_CodegenWatcher as CodegenWatcher, type index_ControllerInfo as ControllerInfo, type index_GenerateOptions as GenerateOptions, type index_GenerateRpcOptions as GenerateRpcOptions, index_NestJSParser as NestJSParser, type index_RouteInfo as RouteInfo, type index_WatchOptions as WatchOptions, index_generateRpcClient as generateRpcClient };
90
- }
91
-
92
- export { ClientGenerator as C, type GenerateOptions as G, NestJSParser as N, type RouteInfo as R, type WatchOptions as W, CodegenWatcher as a, type ControllerInfo as b, type GenerateRpcOptions as c, generateRpcClient as g, index as i };
@@ -1,58 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-DvS58PqC.js';
2
-
3
- interface FusionRouteMetadata {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- responseType?: string;
7
- requestType?: string;
8
- }
9
- /**
10
- * Mark a NestJS controller for Fusion codegen
11
- * Usage: @FusionController('users')
12
- */
13
- declare function FusionController(prefix?: string): ClassDecorator;
14
- /**
15
- * Mark a route for API client generation
16
- * Usage: @FusionRoute({ method: 'GET', path: '/:id' })
17
- */
18
- declare function FusionRoute(metadata: FusionRouteMetadata): MethodDecorator;
19
- /**
20
- * Helper decorators for common HTTP methods
21
- */
22
- declare function FusionGet(path?: string): MethodDecorator;
23
- declare function FusionPost(path?: string): MethodDecorator;
24
- declare function FusionPut(path?: string): MethodDecorator;
25
- declare function FusionDelete(path?: string): MethodDecorator;
26
- /**
27
- * Get Fusion metadata from a controller
28
- */
29
- declare function getFusionMetadata(controller: any): {
30
- controller: any;
31
- routes: any[];
32
- };
33
-
34
- declare const index_FusionController: typeof FusionController;
35
- declare const index_FusionDelete: typeof FusionDelete;
36
- declare const index_FusionGet: typeof FusionGet;
37
- declare const index_FusionPost: typeof FusionPost;
38
- declare const index_FusionPut: typeof FusionPut;
39
- declare const index_FusionRoute: typeof FusionRoute;
40
- type index_FusionRouteMetadata = FusionRouteMetadata;
41
- declare const index_RequireAuth: typeof RequireAuth;
42
- declare const index_RpcMethod: typeof RpcMethod;
43
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
44
- declare const index_RpcService: typeof RpcService;
45
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
46
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
47
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
48
- declare const index_WextsRpc: typeof WextsRpc;
49
- declare const index_WextsRpcService: typeof WextsRpcService;
50
- declare const index_getFusionMetadata: typeof getFusionMetadata;
51
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
52
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
53
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
54
- declare namespace index {
55
- export { index_FusionController as FusionController, index_FusionDelete as FusionDelete, index_FusionGet as FusionGet, index_FusionPost as FusionPost, index_FusionPut as FusionPut, index_FusionRoute as FusionRoute, type index_FusionRouteMetadata as FusionRouteMetadata, index_RequireAuth as RequireAuth, index_RpcMethod as RpcMethod, index_RpcMethodOptions as RpcMethodOptions, index_RpcService as RpcService, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getFusionMetadata as getFusionMetadata, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
56
- }
57
-
58
- export { FusionController as F, FusionDelete as a, FusionGet as b, FusionPost as c, FusionPut as d, FusionRoute as e, type FusionRouteMetadata as f, getFusionMetadata as g, index as i };
@@ -1,58 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-BT1FFqN0.mjs';
2
-
3
- interface FusionRouteMetadata {
4
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5
- path: string;
6
- responseType?: string;
7
- requestType?: string;
8
- }
9
- /**
10
- * Mark a NestJS controller for Fusion codegen
11
- * Usage: @FusionController('users')
12
- */
13
- declare function FusionController(prefix?: string): ClassDecorator;
14
- /**
15
- * Mark a route for API client generation
16
- * Usage: @FusionRoute({ method: 'GET', path: '/:id' })
17
- */
18
- declare function FusionRoute(metadata: FusionRouteMetadata): MethodDecorator;
19
- /**
20
- * Helper decorators for common HTTP methods
21
- */
22
- declare function FusionGet(path?: string): MethodDecorator;
23
- declare function FusionPost(path?: string): MethodDecorator;
24
- declare function FusionPut(path?: string): MethodDecorator;
25
- declare function FusionDelete(path?: string): MethodDecorator;
26
- /**
27
- * Get Fusion metadata from a controller
28
- */
29
- declare function getFusionMetadata(controller: any): {
30
- controller: any;
31
- routes: any[];
32
- };
33
-
34
- declare const index_FusionController: typeof FusionController;
35
- declare const index_FusionDelete: typeof FusionDelete;
36
- declare const index_FusionGet: typeof FusionGet;
37
- declare const index_FusionPost: typeof FusionPost;
38
- declare const index_FusionPut: typeof FusionPut;
39
- declare const index_FusionRoute: typeof FusionRoute;
40
- type index_FusionRouteMetadata = FusionRouteMetadata;
41
- declare const index_RequireAuth: typeof RequireAuth;
42
- declare const index_RpcMethod: typeof RpcMethod;
43
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
44
- declare const index_RpcService: typeof RpcService;
45
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
46
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
47
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
48
- declare const index_WextsRpc: typeof WextsRpc;
49
- declare const index_WextsRpcService: typeof WextsRpcService;
50
- declare const index_getFusionMetadata: typeof getFusionMetadata;
51
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
52
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
53
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
54
- declare namespace index {
55
- export { index_FusionController as FusionController, index_FusionDelete as FusionDelete, index_FusionGet as FusionGet, index_FusionPost as FusionPost, index_FusionPut as FusionPut, index_FusionRoute as FusionRoute, type index_FusionRouteMetadata as FusionRouteMetadata, index_RequireAuth as RequireAuth, index_RpcMethod as RpcMethod, index_RpcMethodOptions as RpcMethodOptions, index_RpcService as RpcService, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getFusionMetadata as getFusionMetadata, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
56
- }
57
-
58
- export { FusionController as F, FusionDelete as a, FusionGet as b, FusionPost as c, FusionPut as d, FusionRoute as e, type FusionRouteMetadata as f, getFusionMetadata as g, index as i };
@@ -1,27 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-BT1FFqN0.mjs';
2
- import { R as RpcAuthPolicy, a as RpcInvocationRequest, b as RpcInvocationResponse, c as RpcManifest, d as RpcMethodManifest, e as RpcParameterManifest, f as RpcServiceManifest } from './types-7d_fC-C3.mjs';
3
-
4
- declare const index_RequireAuth: typeof RequireAuth;
5
- declare const index_RpcAuthPolicy: typeof RpcAuthPolicy;
6
- declare const index_RpcInvocationRequest: typeof RpcInvocationRequest;
7
- declare const index_RpcInvocationResponse: typeof RpcInvocationResponse;
8
- declare const index_RpcManifest: typeof RpcManifest;
9
- declare const index_RpcMethod: typeof RpcMethod;
10
- declare const index_RpcMethodManifest: typeof RpcMethodManifest;
11
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
12
- declare const index_RpcParameterManifest: typeof RpcParameterManifest;
13
- declare const index_RpcService: typeof RpcService;
14
- declare const index_RpcServiceManifest: typeof RpcServiceManifest;
15
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
16
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
17
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
18
- declare const index_WextsRpc: typeof WextsRpc;
19
- declare const index_WextsRpcService: typeof WextsRpcService;
20
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
21
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
22
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
23
- declare namespace index {
24
- export { index_RequireAuth as RequireAuth, index_RpcAuthPolicy as RpcAuthPolicy, index_RpcInvocationRequest as RpcInvocationRequest, index_RpcInvocationResponse as RpcInvocationResponse, index_RpcManifest as RpcManifest, index_RpcMethod as RpcMethod, index_RpcMethodManifest as RpcMethodManifest, index_RpcMethodOptions as RpcMethodOptions, index_RpcParameterManifest as RpcParameterManifest, index_RpcService as RpcService, index_RpcServiceManifest as RpcServiceManifest, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
25
- }
26
-
27
- export { index as i };
@@ -1,27 +0,0 @@
1
- import { R as RequireAuth, a as RpcMethod, b as RpcMethodOptions, c as RpcService, d as RpcServiceOptions, e as RuntimeRpcMethodMetadata, f as RuntimeRpcServiceMetadata, W as WextsRpc, g as WextsRpcService, h as getRpcAuthPolicy, i as getRuntimeRpcMethodsMetadata, j as getRuntimeRpcServiceMetadata } from './decorators-DvS58PqC.js';
2
- import { R as RpcAuthPolicy, a as RpcInvocationRequest, b as RpcInvocationResponse, c as RpcManifest, d as RpcMethodManifest, e as RpcParameterManifest, f as RpcServiceManifest } from './types-7d_fC-C3.js';
3
-
4
- declare const index_RequireAuth: typeof RequireAuth;
5
- declare const index_RpcAuthPolicy: typeof RpcAuthPolicy;
6
- declare const index_RpcInvocationRequest: typeof RpcInvocationRequest;
7
- declare const index_RpcInvocationResponse: typeof RpcInvocationResponse;
8
- declare const index_RpcManifest: typeof RpcManifest;
9
- declare const index_RpcMethod: typeof RpcMethod;
10
- declare const index_RpcMethodManifest: typeof RpcMethodManifest;
11
- declare const index_RpcMethodOptions: typeof RpcMethodOptions;
12
- declare const index_RpcParameterManifest: typeof RpcParameterManifest;
13
- declare const index_RpcService: typeof RpcService;
14
- declare const index_RpcServiceManifest: typeof RpcServiceManifest;
15
- declare const index_RpcServiceOptions: typeof RpcServiceOptions;
16
- declare const index_RuntimeRpcMethodMetadata: typeof RuntimeRpcMethodMetadata;
17
- declare const index_RuntimeRpcServiceMetadata: typeof RuntimeRpcServiceMetadata;
18
- declare const index_WextsRpc: typeof WextsRpc;
19
- declare const index_WextsRpcService: typeof WextsRpcService;
20
- declare const index_getRpcAuthPolicy: typeof getRpcAuthPolicy;
21
- declare const index_getRuntimeRpcMethodsMetadata: typeof getRuntimeRpcMethodsMetadata;
22
- declare const index_getRuntimeRpcServiceMetadata: typeof getRuntimeRpcServiceMetadata;
23
- declare namespace index {
24
- export { index_RequireAuth as RequireAuth, index_RpcAuthPolicy as RpcAuthPolicy, index_RpcInvocationRequest as RpcInvocationRequest, index_RpcInvocationResponse as RpcInvocationResponse, index_RpcManifest as RpcManifest, index_RpcMethod as RpcMethod, index_RpcMethodManifest as RpcMethodManifest, index_RpcMethodOptions as RpcMethodOptions, index_RpcParameterManifest as RpcParameterManifest, index_RpcService as RpcService, index_RpcServiceManifest as RpcServiceManifest, index_RpcServiceOptions as RpcServiceOptions, index_RuntimeRpcMethodMetadata as RuntimeRpcMethodMetadata, index_RuntimeRpcServiceMetadata as RuntimeRpcServiceMetadata, index_WextsRpc as WextsRpc, index_WextsRpcService as WextsRpcService, index_getRpcAuthPolicy as getRpcAuthPolicy, index_getRuntimeRpcMethodsMetadata as getRuntimeRpcMethodsMetadata, index_getRuntimeRpcServiceMetadata as getRuntimeRpcServiceMetadata };
25
- }
26
-
27
- export { index as i };