@alepha/react 0.12.1 → 0.13.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.
- package/dist/core/index.d.cts +87 -87
- package/dist/core/index.d.ts +83 -83
- package/dist/head/index.d.cts +71 -71
- package/dist/head/index.d.ts +71 -71
- package/dist/i18n/index.d.ts +20 -20
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha80 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Atom, Descriptor, FileLike, Hook, Hooks, InstantiableClass, KIND, LogLevel, LoggerInterface, Service, State, Static, StreamLike, TArray, TAtomObject, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
|
|
3
3
|
import * as react0 from "react";
|
|
4
4
|
import React, { AnchorHTMLAttributes, CSSProperties, DependencyList, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
|
|
@@ -10,15 +10,15 @@ import { Readable } from "node:stream";
|
|
|
10
10
|
import { ReadableStream } from "node:stream/web";
|
|
11
11
|
|
|
12
12
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
13
|
-
declare const logEntrySchema:
|
|
14
|
-
level:
|
|
15
|
-
message:
|
|
16
|
-
service:
|
|
17
|
-
module:
|
|
18
|
-
context:
|
|
19
|
-
app:
|
|
20
|
-
data:
|
|
21
|
-
timestamp:
|
|
13
|
+
declare const logEntrySchema: alepha80.TObject<{
|
|
14
|
+
level: alepha80.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
15
|
+
message: alepha80.TString;
|
|
16
|
+
service: alepha80.TString;
|
|
17
|
+
module: alepha80.TString;
|
|
18
|
+
context: alepha80.TOptional<alepha80.TString>;
|
|
19
|
+
app: alepha80.TOptional<alepha80.TString>;
|
|
20
|
+
data: alepha80.TOptional<alepha80.TAny>;
|
|
21
|
+
timestamp: alepha80.TNumber;
|
|
22
22
|
}>;
|
|
23
23
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
24
24
|
//#endregion
|
|
@@ -33,8 +33,8 @@ declare class DateTimeProvider {
|
|
|
33
33
|
protected readonly timeouts: Timeout[];
|
|
34
34
|
protected readonly intervals: Interval[];
|
|
35
35
|
constructor();
|
|
36
|
-
protected readonly onStart:
|
|
37
|
-
protected readonly onStop:
|
|
36
|
+
protected readonly onStart: alepha80.HookDescriptor<"start">;
|
|
37
|
+
protected readonly onStop: alepha80.HookDescriptor<"stop">;
|
|
38
38
|
setLocale(locale: string): void;
|
|
39
39
|
isDateTime(value: unknown): value is DateTime;
|
|
40
40
|
/**
|
|
@@ -166,7 +166,7 @@ declare class Logger implements LoggerInterface {
|
|
|
166
166
|
}
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region ../alepha/src/logger/index.d.ts
|
|
169
|
-
declare const envSchema$6:
|
|
169
|
+
declare const envSchema$6: alepha80.TObject<{
|
|
170
170
|
/**
|
|
171
171
|
* Default log level for the application.
|
|
172
172
|
*
|
|
@@ -183,14 +183,14 @@ declare const envSchema$6: alepha82.TObject<{
|
|
|
183
183
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
184
184
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
185
185
|
*/
|
|
186
|
-
LOG_LEVEL:
|
|
186
|
+
LOG_LEVEL: alepha80.TOptional<alepha80.TString>;
|
|
187
187
|
/**
|
|
188
188
|
* Built-in log formats.
|
|
189
189
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
190
190
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
191
191
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
192
192
|
*/
|
|
193
|
-
LOG_FORMAT:
|
|
193
|
+
LOG_FORMAT: alepha80.TOptional<alepha80.TUnsafe<"json" | "pretty" | "raw">>;
|
|
194
194
|
}>;
|
|
195
195
|
declare module "alepha" {
|
|
196
196
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -441,8 +441,8 @@ declare class ServerTimingProvider {
|
|
|
441
441
|
prefix: string;
|
|
442
442
|
disabled: boolean;
|
|
443
443
|
};
|
|
444
|
-
readonly onRequest:
|
|
445
|
-
readonly onResponse:
|
|
444
|
+
readonly onRequest: alepha80.HookDescriptor<"server:onRequest">;
|
|
445
|
+
readonly onResponse: alepha80.HookDescriptor<"server:onResponse">;
|
|
446
446
|
protected get handlerName(): string;
|
|
447
447
|
beginTiming(name: string): void;
|
|
448
448
|
endTiming(name: string): void;
|
|
@@ -506,11 +506,11 @@ declare class ServerProvider {
|
|
|
506
506
|
/**
|
|
507
507
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
508
508
|
*/
|
|
509
|
-
protected readonly onNodeRequest:
|
|
509
|
+
protected readonly onNodeRequest: alepha80.HookDescriptor<"node:request">;
|
|
510
510
|
/**
|
|
511
511
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
512
512
|
*/
|
|
513
|
-
protected readonly onWebRequest:
|
|
513
|
+
protected readonly onWebRequest: alepha80.HookDescriptor<"web:request">;
|
|
514
514
|
/**
|
|
515
515
|
* Handle Node.js HTTP request event.
|
|
516
516
|
*
|
|
@@ -845,15 +845,15 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
845
845
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
846
846
|
//#endregion
|
|
847
847
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
848
|
-
declare const errorSchema:
|
|
849
|
-
error:
|
|
850
|
-
status:
|
|
851
|
-
message:
|
|
852
|
-
details:
|
|
853
|
-
requestId:
|
|
854
|
-
cause:
|
|
855
|
-
name:
|
|
856
|
-
message:
|
|
848
|
+
declare const errorSchema: alepha80.TObject<{
|
|
849
|
+
error: alepha80.TString;
|
|
850
|
+
status: alepha80.TInteger;
|
|
851
|
+
message: alepha80.TString;
|
|
852
|
+
details: alepha80.TOptional<alepha80.TString>;
|
|
853
|
+
requestId: alepha80.TOptional<alepha80.TString>;
|
|
854
|
+
cause: alepha80.TOptional<alepha80.TObject<{
|
|
855
|
+
name: alepha80.TString;
|
|
856
|
+
message: alepha80.TString;
|
|
857
857
|
}>>;
|
|
858
858
|
}>;
|
|
859
859
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -878,18 +878,18 @@ interface HttpErrorLike extends Error {
|
|
|
878
878
|
}
|
|
879
879
|
//#endregion
|
|
880
880
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
881
|
-
declare const envSchema$5:
|
|
882
|
-
SERVER_PORT:
|
|
883
|
-
SERVER_HOST:
|
|
881
|
+
declare const envSchema$5: alepha80.TObject<{
|
|
882
|
+
SERVER_PORT: alepha80.TInteger;
|
|
883
|
+
SERVER_HOST: alepha80.TString;
|
|
884
884
|
}>;
|
|
885
885
|
declare module "alepha" {
|
|
886
886
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
887
887
|
}
|
|
888
888
|
//#endregion
|
|
889
889
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
890
|
-
declare const envSchema$4:
|
|
891
|
-
SERVER_PORT:
|
|
892
|
-
SERVER_HOST:
|
|
890
|
+
declare const envSchema$4: alepha80.TObject<{
|
|
891
|
+
SERVER_PORT: alepha80.TInteger;
|
|
892
|
+
SERVER_HOST: alepha80.TString;
|
|
893
893
|
}>;
|
|
894
894
|
declare module "alepha" {
|
|
895
895
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1077,8 +1077,8 @@ declare class Redirection extends Error {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
//#endregion
|
|
1079
1079
|
//#region src/core/providers/ReactPageProvider.d.ts
|
|
1080
|
-
declare const envSchema$3:
|
|
1081
|
-
REACT_STRICT_MODE:
|
|
1080
|
+
declare const envSchema$3: alepha80.TObject<{
|
|
1081
|
+
REACT_STRICT_MODE: alepha80.TBoolean;
|
|
1082
1082
|
}>;
|
|
1083
1083
|
declare module "alepha" {
|
|
1084
1084
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -1121,7 +1121,7 @@ declare class ReactPageProvider {
|
|
|
1121
1121
|
}, params?: Record<string, any>): string;
|
|
1122
1122
|
compile(path: string, params?: Record<string, string>): string;
|
|
1123
1123
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
1124
|
-
protected readonly configure:
|
|
1124
|
+
protected readonly configure: alepha80.HookDescriptor<"configure">;
|
|
1125
1125
|
protected map(pages: Array<PageDescriptor>, target: PageDescriptor): PageRouteEntry;
|
|
1126
1126
|
add(entry: PageRouteEntry): void;
|
|
1127
1127
|
protected createMatch(page: PageRoute): string;
|
|
@@ -1531,15 +1531,15 @@ type CssAnimation = {
|
|
|
1531
1531
|
};
|
|
1532
1532
|
//#endregion
|
|
1533
1533
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
1534
|
-
declare const userAccountInfoSchema:
|
|
1535
|
-
id:
|
|
1536
|
-
name:
|
|
1537
|
-
email:
|
|
1538
|
-
username:
|
|
1539
|
-
picture:
|
|
1540
|
-
sessionId:
|
|
1541
|
-
organizations:
|
|
1542
|
-
roles:
|
|
1534
|
+
declare const userAccountInfoSchema: alepha80.TObject<{
|
|
1535
|
+
id: alepha80.TString;
|
|
1536
|
+
name: alepha80.TOptional<alepha80.TString>;
|
|
1537
|
+
email: alepha80.TOptional<alepha80.TString>;
|
|
1538
|
+
username: alepha80.TOptional<alepha80.TString>;
|
|
1539
|
+
picture: alepha80.TOptional<alepha80.TString>;
|
|
1540
|
+
sessionId: alepha80.TOptional<alepha80.TString>;
|
|
1541
|
+
organizations: alepha80.TOptional<alepha80.TArray<alepha80.TString>>;
|
|
1542
|
+
roles: alepha80.TOptional<alepha80.TArray<alepha80.TString>>;
|
|
1543
1543
|
}>;
|
|
1544
1544
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
1545
1545
|
//#endregion
|
|
@@ -1565,8 +1565,8 @@ interface UserAccountToken extends UserAccount {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
//#endregion
|
|
1567
1567
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1568
|
-
declare const envSchema$2:
|
|
1569
|
-
APP_SECRET:
|
|
1568
|
+
declare const envSchema$2: alepha80.TObject<{
|
|
1569
|
+
APP_SECRET: alepha80.TString;
|
|
1570
1570
|
}>;
|
|
1571
1571
|
declare module "alepha" {
|
|
1572
1572
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -1659,23 +1659,23 @@ declare module "alepha/server" {
|
|
|
1659
1659
|
*/
|
|
1660
1660
|
//#endregion
|
|
1661
1661
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1662
|
-
declare const apiLinkSchema:
|
|
1663
|
-
name:
|
|
1664
|
-
group:
|
|
1665
|
-
path:
|
|
1666
|
-
method:
|
|
1667
|
-
requestBodyType:
|
|
1668
|
-
service:
|
|
1662
|
+
declare const apiLinkSchema: alepha80.TObject<{
|
|
1663
|
+
name: alepha80.TString;
|
|
1664
|
+
group: alepha80.TOptional<alepha80.TString>;
|
|
1665
|
+
path: alepha80.TString;
|
|
1666
|
+
method: alepha80.TOptional<alepha80.TString>;
|
|
1667
|
+
requestBodyType: alepha80.TOptional<alepha80.TString>;
|
|
1668
|
+
service: alepha80.TOptional<alepha80.TString>;
|
|
1669
1669
|
}>;
|
|
1670
|
-
declare const apiLinksResponseSchema:
|
|
1671
|
-
prefix:
|
|
1672
|
-
links:
|
|
1673
|
-
name:
|
|
1674
|
-
group:
|
|
1675
|
-
path:
|
|
1676
|
-
method:
|
|
1677
|
-
requestBodyType:
|
|
1678
|
-
service:
|
|
1670
|
+
declare const apiLinksResponseSchema: alepha80.TObject<{
|
|
1671
|
+
prefix: alepha80.TOptional<alepha80.TString>;
|
|
1672
|
+
links: alepha80.TArray<alepha80.TObject<{
|
|
1673
|
+
name: alepha80.TString;
|
|
1674
|
+
group: alepha80.TOptional<alepha80.TString>;
|
|
1675
|
+
path: alepha80.TString;
|
|
1676
|
+
method: alepha80.TOptional<alepha80.TString>;
|
|
1677
|
+
requestBodyType: alepha80.TOptional<alepha80.TString>;
|
|
1678
|
+
service: alepha80.TOptional<alepha80.TString>;
|
|
1679
1679
|
}>>;
|
|
1680
1680
|
}>;
|
|
1681
1681
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1781,14 +1781,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
|
1781
1781
|
protected readonly alepha: Alepha;
|
|
1782
1782
|
protected readonly pageApi: ReactPageProvider;
|
|
1783
1783
|
add(entry: PageRouteEntry): void;
|
|
1784
|
-
protected readonly configure:
|
|
1784
|
+
protected readonly configure: alepha80.HookDescriptor<"configure">;
|
|
1785
1785
|
transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
|
|
1786
1786
|
root(state: ReactRouterState): ReactNode;
|
|
1787
1787
|
}
|
|
1788
1788
|
//#endregion
|
|
1789
1789
|
//#region src/core/providers/ReactBrowserProvider.d.ts
|
|
1790
|
-
declare const envSchema$1:
|
|
1791
|
-
REACT_ROOT_ID:
|
|
1790
|
+
declare const envSchema$1: alepha80.TObject<{
|
|
1791
|
+
REACT_ROOT_ID: alepha80.TString;
|
|
1792
1792
|
}>;
|
|
1793
1793
|
declare module "alepha" {
|
|
1794
1794
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -1796,8 +1796,8 @@ declare module "alepha" {
|
|
|
1796
1796
|
/**
|
|
1797
1797
|
* React browser renderer configuration atom
|
|
1798
1798
|
*/
|
|
1799
|
-
declare const reactBrowserOptions:
|
|
1800
|
-
scrollRestoration:
|
|
1799
|
+
declare const reactBrowserOptions: alepha80.Atom<alepha80.TObject<{
|
|
1800
|
+
scrollRestoration: alepha80.TUnsafe<"top" | "manual">;
|
|
1801
1801
|
}>, "alepha.react.browser.options">;
|
|
1802
1802
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1803
1803
|
declare module "alepha" {
|
|
@@ -1845,8 +1845,8 @@ declare class ReactBrowserProvider {
|
|
|
1845
1845
|
* Get embedded layers from the server.
|
|
1846
1846
|
*/
|
|
1847
1847
|
protected getHydrationState(): ReactHydrationState | undefined;
|
|
1848
|
-
protected readonly onTransitionEnd:
|
|
1849
|
-
readonly ready:
|
|
1848
|
+
protected readonly onTransitionEnd: alepha80.HookDescriptor<"react:transition:end">;
|
|
1849
|
+
readonly ready: alepha80.HookDescriptor<"ready">;
|
|
1850
1850
|
}
|
|
1851
1851
|
interface RouterGoOptions {
|
|
1852
1852
|
replace?: boolean;
|
|
@@ -2553,7 +2553,7 @@ declare class ServerStaticProvider {
|
|
|
2553
2553
|
protected readonly fileDetector: FileDetector;
|
|
2554
2554
|
protected readonly log: Logger;
|
|
2555
2555
|
protected readonly directories: ServeDirectory[];
|
|
2556
|
-
protected readonly configure:
|
|
2556
|
+
protected readonly configure: alepha80.HookDescriptor<"configure">;
|
|
2557
2557
|
createStaticServer(options: ServeDescriptorOptions): Promise<void>;
|
|
2558
2558
|
createFileHandler(filepath: string, options: ServeDescriptorOptions): Promise<ServerHandler>;
|
|
2559
2559
|
protected getCacheFileTypes(): string[];
|
|
@@ -2569,10 +2569,10 @@ interface ServeDirectory {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
//#endregion
|
|
2571
2571
|
//#region src/core/providers/ReactServerProvider.d.ts
|
|
2572
|
-
declare const envSchema:
|
|
2573
|
-
REACT_SSR_ENABLED:
|
|
2574
|
-
REACT_ROOT_ID:
|
|
2575
|
-
REACT_SERVER_TEMPLATE:
|
|
2572
|
+
declare const envSchema: alepha80.TObject<{
|
|
2573
|
+
REACT_SSR_ENABLED: alepha80.TOptional<alepha80.TBoolean>;
|
|
2574
|
+
REACT_ROOT_ID: alepha80.TString;
|
|
2575
|
+
REACT_SERVER_TEMPLATE: alepha80.TOptional<alepha80.TString>;
|
|
2576
2576
|
}>;
|
|
2577
2577
|
declare module "alepha" {
|
|
2578
2578
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -2583,11 +2583,11 @@ declare module "alepha" {
|
|
|
2583
2583
|
/**
|
|
2584
2584
|
* React server provider configuration atom
|
|
2585
2585
|
*/
|
|
2586
|
-
declare const reactServerOptions:
|
|
2587
|
-
publicDir:
|
|
2588
|
-
staticServer:
|
|
2589
|
-
disabled:
|
|
2590
|
-
path:
|
|
2586
|
+
declare const reactServerOptions: alepha80.Atom<alepha80.TObject<{
|
|
2587
|
+
publicDir: alepha80.TString;
|
|
2588
|
+
staticServer: alepha80.TObject<{
|
|
2589
|
+
disabled: alepha80.TBoolean;
|
|
2590
|
+
path: alepha80.TString;
|
|
2591
2591
|
}>;
|
|
2592
2592
|
}>, "alepha.react.server.options">;
|
|
2593
2593
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -2621,7 +2621,7 @@ declare class ReactServerProvider {
|
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Configure the React server provider.
|
|
2623
2623
|
*/
|
|
2624
|
-
readonly onConfigure:
|
|
2624
|
+
readonly onConfigure: alepha80.HookDescriptor<"configure">;
|
|
2625
2625
|
get template(): string;
|
|
2626
2626
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
2627
2627
|
/**
|
|
@@ -2757,7 +2757,7 @@ declare module "alepha" {
|
|
|
2757
2757
|
* @see {@link $page}
|
|
2758
2758
|
* @module alepha.react
|
|
2759
2759
|
*/
|
|
2760
|
-
declare const AlephaReact:
|
|
2760
|
+
declare const AlephaReact: alepha80.Service<alepha80.Module>;
|
|
2761
2761
|
//#endregion
|
|
2762
2762
|
export { $page, ActionContext, AlephaContext, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, type LinkProps, _default as NestedView, NotFoundPage as NotFound, PageAnimation, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorRenderOptions, PageDescriptorRenderResult, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactBrowserRendererOptions, ReactHydrationState, ReactPageProvider, ReactRouter, ReactRouterState, ReactServerProvider, ReactServerProviderOptions, Redirection, RouterGoOptions, RouterLayerContext, RouterLayerContextValue, RouterRenderOptions, RouterStackItem, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActionOptions, UseActionReturn, UseActiveHook, UseActiveOptions, UseQueryParamsHookOptions, UseSchemaReturn, UseStoreReturn, VirtualRouter, isPageRoute, reactBrowserOptions, reactServerOptions, ssrSchemaLoading, useAction, useActive, useAlepha, useClient, useEvents, useInject, useQueryParams, useRouter, useRouterState, useSchema, useStore };
|
|
2763
2763
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/head/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha91 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, FileLike, InstantiableClass, KIND, LogLevel, LoggerInterface, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
|
|
3
3
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
4
4
|
import dayjsDuration from "dayjs/plugin/duration.js";
|
|
@@ -8,15 +8,15 @@ import { ReadableStream } from "node:stream/web";
|
|
|
8
8
|
import { FC, ReactNode } from "react";
|
|
9
9
|
|
|
10
10
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
11
|
-
declare const logEntrySchema:
|
|
12
|
-
level:
|
|
13
|
-
message:
|
|
14
|
-
service:
|
|
15
|
-
module:
|
|
16
|
-
context:
|
|
17
|
-
app:
|
|
18
|
-
data:
|
|
19
|
-
timestamp:
|
|
11
|
+
declare const logEntrySchema: alepha91.TObject<{
|
|
12
|
+
level: alepha91.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
13
|
+
message: alepha91.TString;
|
|
14
|
+
service: alepha91.TString;
|
|
15
|
+
module: alepha91.TString;
|
|
16
|
+
context: alepha91.TOptional<alepha91.TString>;
|
|
17
|
+
app: alepha91.TOptional<alepha91.TString>;
|
|
18
|
+
data: alepha91.TOptional<alepha91.TAny>;
|
|
19
|
+
timestamp: alepha91.TNumber;
|
|
20
20
|
}>;
|
|
21
21
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
22
22
|
//#endregion
|
|
@@ -31,8 +31,8 @@ declare class DateTimeProvider {
|
|
|
31
31
|
protected readonly timeouts: Timeout[];
|
|
32
32
|
protected readonly intervals: Interval[];
|
|
33
33
|
constructor();
|
|
34
|
-
protected readonly onStart:
|
|
35
|
-
protected readonly onStop:
|
|
34
|
+
protected readonly onStart: alepha91.HookDescriptor<"start">;
|
|
35
|
+
protected readonly onStop: alepha91.HookDescriptor<"stop">;
|
|
36
36
|
setLocale(locale: string): void;
|
|
37
37
|
isDateTime(value: unknown): value is DateTime;
|
|
38
38
|
/**
|
|
@@ -164,7 +164,7 @@ declare class Logger implements LoggerInterface {
|
|
|
164
164
|
}
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region ../alepha/src/logger/index.d.ts
|
|
167
|
-
declare const envSchema$6:
|
|
167
|
+
declare const envSchema$6: alepha91.TObject<{
|
|
168
168
|
/**
|
|
169
169
|
* Default log level for the application.
|
|
170
170
|
*
|
|
@@ -181,14 +181,14 @@ declare const envSchema$6: alepha92.TObject<{
|
|
|
181
181
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
182
182
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
183
183
|
*/
|
|
184
|
-
LOG_LEVEL:
|
|
184
|
+
LOG_LEVEL: alepha91.TOptional<alepha91.TString>;
|
|
185
185
|
/**
|
|
186
186
|
* Built-in log formats.
|
|
187
187
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
188
188
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
189
189
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
190
190
|
*/
|
|
191
|
-
LOG_FORMAT:
|
|
191
|
+
LOG_FORMAT: alepha91.TOptional<alepha91.TUnsafe<"json" | "pretty" | "raw">>;
|
|
192
192
|
}>;
|
|
193
193
|
declare module "alepha" {
|
|
194
194
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -439,8 +439,8 @@ declare class ServerTimingProvider {
|
|
|
439
439
|
prefix: string;
|
|
440
440
|
disabled: boolean;
|
|
441
441
|
};
|
|
442
|
-
readonly onRequest:
|
|
443
|
-
readonly onResponse:
|
|
442
|
+
readonly onRequest: alepha91.HookDescriptor<"server:onRequest">;
|
|
443
|
+
readonly onResponse: alepha91.HookDescriptor<"server:onResponse">;
|
|
444
444
|
protected get handlerName(): string;
|
|
445
445
|
beginTiming(name: string): void;
|
|
446
446
|
endTiming(name: string): void;
|
|
@@ -504,11 +504,11 @@ declare class ServerProvider {
|
|
|
504
504
|
/**
|
|
505
505
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
506
506
|
*/
|
|
507
|
-
protected readonly onNodeRequest:
|
|
507
|
+
protected readonly onNodeRequest: alepha91.HookDescriptor<"node:request">;
|
|
508
508
|
/**
|
|
509
509
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
510
510
|
*/
|
|
511
|
-
protected readonly onWebRequest:
|
|
511
|
+
protected readonly onWebRequest: alepha91.HookDescriptor<"web:request">;
|
|
512
512
|
/**
|
|
513
513
|
* Handle Node.js HTTP request event.
|
|
514
514
|
*
|
|
@@ -843,15 +843,15 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
843
843
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
844
844
|
//#endregion
|
|
845
845
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
846
|
-
declare const errorSchema:
|
|
847
|
-
error:
|
|
848
|
-
status:
|
|
849
|
-
message:
|
|
850
|
-
details:
|
|
851
|
-
requestId:
|
|
852
|
-
cause:
|
|
853
|
-
name:
|
|
854
|
-
message:
|
|
846
|
+
declare const errorSchema: alepha91.TObject<{
|
|
847
|
+
error: alepha91.TString;
|
|
848
|
+
status: alepha91.TInteger;
|
|
849
|
+
message: alepha91.TString;
|
|
850
|
+
details: alepha91.TOptional<alepha91.TString>;
|
|
851
|
+
requestId: alepha91.TOptional<alepha91.TString>;
|
|
852
|
+
cause: alepha91.TOptional<alepha91.TObject<{
|
|
853
|
+
name: alepha91.TString;
|
|
854
|
+
message: alepha91.TString;
|
|
855
855
|
}>>;
|
|
856
856
|
}>;
|
|
857
857
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -876,18 +876,18 @@ interface HttpErrorLike extends Error {
|
|
|
876
876
|
}
|
|
877
877
|
//#endregion
|
|
878
878
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
879
|
-
declare const envSchema$5:
|
|
880
|
-
SERVER_PORT:
|
|
881
|
-
SERVER_HOST:
|
|
879
|
+
declare const envSchema$5: alepha91.TObject<{
|
|
880
|
+
SERVER_PORT: alepha91.TInteger;
|
|
881
|
+
SERVER_HOST: alepha91.TString;
|
|
882
882
|
}>;
|
|
883
883
|
declare module "alepha" {
|
|
884
884
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
885
885
|
}
|
|
886
886
|
//#endregion
|
|
887
887
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
888
|
-
declare const envSchema$4:
|
|
889
|
-
SERVER_PORT:
|
|
890
|
-
SERVER_HOST:
|
|
888
|
+
declare const envSchema$4: alepha91.TObject<{
|
|
889
|
+
SERVER_PORT: alepha91.TInteger;
|
|
890
|
+
SERVER_HOST: alepha91.TString;
|
|
891
891
|
}>;
|
|
892
892
|
declare module "alepha" {
|
|
893
893
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1064,8 +1064,8 @@ declare class Redirection extends Error {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
//#endregion
|
|
1066
1066
|
//#region src/core/providers/ReactPageProvider.d.ts
|
|
1067
|
-
declare const envSchema$3:
|
|
1068
|
-
REACT_STRICT_MODE:
|
|
1067
|
+
declare const envSchema$3: alepha91.TObject<{
|
|
1068
|
+
REACT_STRICT_MODE: alepha91.TBoolean;
|
|
1069
1069
|
}>;
|
|
1070
1070
|
declare module "alepha" {
|
|
1071
1071
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -1362,15 +1362,15 @@ type CssAnimation = {
|
|
|
1362
1362
|
};
|
|
1363
1363
|
//#endregion
|
|
1364
1364
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
1365
|
-
declare const userAccountInfoSchema:
|
|
1366
|
-
id:
|
|
1367
|
-
name:
|
|
1368
|
-
email:
|
|
1369
|
-
username:
|
|
1370
|
-
picture:
|
|
1371
|
-
sessionId:
|
|
1372
|
-
organizations:
|
|
1373
|
-
roles:
|
|
1365
|
+
declare const userAccountInfoSchema: alepha91.TObject<{
|
|
1366
|
+
id: alepha91.TString;
|
|
1367
|
+
name: alepha91.TOptional<alepha91.TString>;
|
|
1368
|
+
email: alepha91.TOptional<alepha91.TString>;
|
|
1369
|
+
username: alepha91.TOptional<alepha91.TString>;
|
|
1370
|
+
picture: alepha91.TOptional<alepha91.TString>;
|
|
1371
|
+
sessionId: alepha91.TOptional<alepha91.TString>;
|
|
1372
|
+
organizations: alepha91.TOptional<alepha91.TArray<alepha91.TString>>;
|
|
1373
|
+
roles: alepha91.TOptional<alepha91.TArray<alepha91.TString>>;
|
|
1374
1374
|
}>;
|
|
1375
1375
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
1376
1376
|
//#endregion
|
|
@@ -1396,8 +1396,8 @@ interface UserAccountToken extends UserAccount {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
//#endregion
|
|
1398
1398
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1399
|
-
declare const envSchema$2:
|
|
1400
|
-
APP_SECRET:
|
|
1399
|
+
declare const envSchema$2: alepha91.TObject<{
|
|
1400
|
+
APP_SECRET: alepha91.TString;
|
|
1401
1401
|
}>;
|
|
1402
1402
|
declare module "alepha" {
|
|
1403
1403
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -1490,15 +1490,15 @@ declare module "alepha/server" {
|
|
|
1490
1490
|
*/
|
|
1491
1491
|
//#endregion
|
|
1492
1492
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1493
|
-
declare const apiLinksResponseSchema:
|
|
1494
|
-
prefix:
|
|
1495
|
-
links:
|
|
1496
|
-
name:
|
|
1497
|
-
group:
|
|
1498
|
-
path:
|
|
1499
|
-
method:
|
|
1500
|
-
requestBodyType:
|
|
1501
|
-
service:
|
|
1493
|
+
declare const apiLinksResponseSchema: alepha91.TObject<{
|
|
1494
|
+
prefix: alepha91.TOptional<alepha91.TString>;
|
|
1495
|
+
links: alepha91.TArray<alepha91.TObject<{
|
|
1496
|
+
name: alepha91.TString;
|
|
1497
|
+
group: alepha91.TOptional<alepha91.TString>;
|
|
1498
|
+
path: alepha91.TString;
|
|
1499
|
+
method: alepha91.TOptional<alepha91.TString>;
|
|
1500
|
+
requestBodyType: alepha91.TOptional<alepha91.TString>;
|
|
1501
|
+
service: alepha91.TOptional<alepha91.TString>;
|
|
1502
1502
|
}>>;
|
|
1503
1503
|
}>;
|
|
1504
1504
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1528,8 +1528,8 @@ declare module "alepha" {
|
|
|
1528
1528
|
*/
|
|
1529
1529
|
//#endregion
|
|
1530
1530
|
//#region src/core/providers/ReactBrowserProvider.d.ts
|
|
1531
|
-
declare const envSchema$1:
|
|
1532
|
-
REACT_ROOT_ID:
|
|
1531
|
+
declare const envSchema$1: alepha91.TObject<{
|
|
1532
|
+
REACT_ROOT_ID: alepha91.TString;
|
|
1533
1533
|
}>;
|
|
1534
1534
|
declare module "alepha" {
|
|
1535
1535
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -1537,8 +1537,8 @@ declare module "alepha" {
|
|
|
1537
1537
|
/**
|
|
1538
1538
|
* React browser renderer configuration atom
|
|
1539
1539
|
*/
|
|
1540
|
-
declare const reactBrowserOptions:
|
|
1541
|
-
scrollRestoration:
|
|
1540
|
+
declare const reactBrowserOptions: alepha91.Atom<alepha91.TObject<{
|
|
1541
|
+
scrollRestoration: alepha91.TUnsafe<"top" | "manual">;
|
|
1542
1542
|
}>, "alepha.react.browser.options">;
|
|
1543
1543
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1544
1544
|
declare module "alepha" {
|
|
@@ -1553,10 +1553,10 @@ type ReactHydrationState = {
|
|
|
1553
1553
|
};
|
|
1554
1554
|
//#endregion
|
|
1555
1555
|
//#region src/core/providers/ReactServerProvider.d.ts
|
|
1556
|
-
declare const envSchema:
|
|
1557
|
-
REACT_SSR_ENABLED:
|
|
1558
|
-
REACT_ROOT_ID:
|
|
1559
|
-
REACT_SERVER_TEMPLATE:
|
|
1556
|
+
declare const envSchema: alepha91.TObject<{
|
|
1557
|
+
REACT_SSR_ENABLED: alepha91.TOptional<alepha91.TBoolean>;
|
|
1558
|
+
REACT_ROOT_ID: alepha91.TString;
|
|
1559
|
+
REACT_SERVER_TEMPLATE: alepha91.TOptional<alepha91.TString>;
|
|
1560
1560
|
}>;
|
|
1561
1561
|
declare module "alepha" {
|
|
1562
1562
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -1567,11 +1567,11 @@ declare module "alepha" {
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* React server provider configuration atom
|
|
1569
1569
|
*/
|
|
1570
|
-
declare const reactServerOptions:
|
|
1571
|
-
publicDir:
|
|
1572
|
-
staticServer:
|
|
1573
|
-
disabled:
|
|
1574
|
-
path:
|
|
1570
|
+
declare const reactServerOptions: alepha91.Atom<alepha91.TObject<{
|
|
1571
|
+
publicDir: alepha91.TString;
|
|
1572
|
+
staticServer: alepha91.TObject<{
|
|
1573
|
+
disabled: alepha91.TBoolean;
|
|
1574
|
+
path: alepha91.TString;
|
|
1575
1575
|
}>;
|
|
1576
1576
|
}>, "alepha.react.server.options">;
|
|
1577
1577
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -1773,7 +1773,7 @@ type UseHeadReturn = [Head, (head?: Head | ((previous?: Head) => Head)) => void]
|
|
|
1773
1773
|
declare class ServerHeadProvider {
|
|
1774
1774
|
protected readonly headProvider: HeadProvider;
|
|
1775
1775
|
protected readonly serverTimingProvider: ServerTimingProvider;
|
|
1776
|
-
protected readonly onServerRenderEnd:
|
|
1776
|
+
protected readonly onServerRenderEnd: alepha91.HookDescriptor<"react:server:render:end">;
|
|
1777
1777
|
renderHead(template: string, head: SimpleHead): string;
|
|
1778
1778
|
protected mergeAttributes(existing: string, attrs: Record<string, string>): string;
|
|
1779
1779
|
protected parseAttributes(attrStr: string): Record<string, string>;
|
|
@@ -1795,7 +1795,7 @@ declare module "@alepha/react" {
|
|
|
1795
1795
|
* @see {@link ServerHeadProvider}
|
|
1796
1796
|
* @module alepha.react.head
|
|
1797
1797
|
*/
|
|
1798
|
-
declare const AlephaReactHead:
|
|
1798
|
+
declare const AlephaReactHead: alepha91.Service<alepha91.Module>;
|
|
1799
1799
|
//#endregion
|
|
1800
1800
|
export { $head, AlephaReactHead, Head, HeadDescriptor, HeadDescriptorOptions, ServerHeadProvider, SimpleHead, UseHeadOptions, UseHeadReturn, useHead };
|
|
1801
1801
|
//# sourceMappingURL=index.d.cts.map
|