@jay-framework/production-server 0.17.0

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.
@@ -0,0 +1,86 @@
1
+ import * as _jay_framework_ssr_runtime from '@jay-framework/ssr-runtime';
2
+
3
+ interface RouteManifest {
4
+ version: number;
5
+ buildTimestamp: string;
6
+ sourceHash: string;
7
+ publicBasePath: string;
8
+ projectRoot: string;
9
+ sharedManifest: Record<string, string>;
10
+ routes: RouteEntry[];
11
+ actions: ActionEntry[];
12
+ plugins: PluginEntry[];
13
+ }
14
+ interface RouteSegment {
15
+ type: 'static' | 'param' | 'optional' | 'catchAll' | 'optionalCatchAll';
16
+ value: string;
17
+ }
18
+ interface RouteEntry {
19
+ pattern: string;
20
+ segments: RouteSegment[];
21
+ serverModule: string;
22
+ jayHtmlPath?: string;
23
+ trackByMap?: Record<string, string>;
24
+ contracts?: string[];
25
+ componentExport?: string;
26
+ instances: InstanceEntry[];
27
+ isPlugin?: boolean;
28
+ pluginName?: string;
29
+ }
30
+ interface InstanceEntry {
31
+ params: Record<string, string>;
32
+ preRenderedPath: string;
33
+ serverElementPath: string;
34
+ clientBundlePath: string;
35
+ clientCssPath?: string;
36
+ }
37
+ interface PreRenderedEntry {
38
+ content: string;
39
+ slowViewState: object;
40
+ carryForward: object;
41
+ }
42
+ interface ActionEntry {
43
+ serverModule: string;
44
+ packageName?: string;
45
+ isPlugin: boolean;
46
+ actionNames: string[];
47
+ }
48
+ interface PluginEntry {
49
+ name: string;
50
+ packageName: string;
51
+ }
52
+ interface BuildMetadata {
53
+ version: number;
54
+ sourceHash: string;
55
+ buildTimestamp: string;
56
+ nodeVersion: string;
57
+ instanceCount: number;
58
+ }
59
+ interface BuildOptions {
60
+ version: number;
61
+ projectRoot: string;
62
+ pagesRoot: string;
63
+ buildRoot: string;
64
+ publicBasePath: string;
65
+ concurrency: number;
66
+ tsConfigFilePath: string;
67
+ minify?: boolean;
68
+ }
69
+ interface ServerElementModule {
70
+ renderToStream: (vs: object, ctx: _jay_framework_ssr_runtime.ServerRenderContext) => void;
71
+ }
72
+ interface PageModule {
73
+ [key: string]: any;
74
+ }
75
+
76
+ declare function buildVersion(options: BuildOptions): Promise<RouteManifest>;
77
+
78
+ interface MainServerOptions {
79
+ buildRoot: string;
80
+ version: number;
81
+ port: number;
82
+ publicBasePath: string;
83
+ }
84
+ declare function startMainServer(options: MainServerOptions): Promise<void>;
85
+
86
+ export { type ActionEntry, type BuildMetadata, type BuildOptions, type InstanceEntry, type PageModule, type PluginEntry, type PreRenderedEntry, type RouteEntry, type RouteManifest, type RouteSegment, type ServerElementModule, buildVersion, startMainServer };