alepha 0.10.4 → 0.10.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.
- package/README.md +7 -19
- package/api/files.d.ts +43 -45
- package/api/jobs.d.ts +166 -168
- package/api/users.d.ts +219 -218
- package/bucket.d.ts +81 -4
- package/devtools.d.ts +247 -247
- package/package.json +47 -47
- package/postgres.d.ts +31 -11
- package/react/auth.d.ts +5 -0
- package/react.d.ts +26 -26
- package/server/links.d.ts +29 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alepha",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -15,52 +15,52 @@
|
|
|
15
15
|
"main": "./core.js",
|
|
16
16
|
"types": "./core.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alepha/api-files": "0.10.
|
|
19
|
-
"@alepha/api-jobs": "0.10.
|
|
20
|
-
"@alepha/api-users": "0.10.
|
|
21
|
-
"@alepha/batch": "0.10.
|
|
22
|
-
"@alepha/bucket": "0.10.
|
|
23
|
-
"@alepha/cache": "0.10.
|
|
24
|
-
"@alepha/cache-redis": "0.10.
|
|
25
|
-
"@alepha/command": "0.10.
|
|
26
|
-
"@alepha/core": "0.10.
|
|
27
|
-
"@alepha/datetime": "0.10.
|
|
28
|
-
"@alepha/devtools": "0.10.
|
|
29
|
-
"@alepha/email": "0.10.
|
|
30
|
-
"@alepha/file": "0.10.
|
|
31
|
-
"@alepha/lock": "0.10.
|
|
32
|
-
"@alepha/lock-redis": "0.10.
|
|
33
|
-
"@alepha/logger": "0.10.
|
|
34
|
-
"@alepha/postgres": "0.10.
|
|
35
|
-
"@alepha/queue": "0.10.
|
|
36
|
-
"@alepha/queue-redis": "0.10.
|
|
37
|
-
"@alepha/react": "0.10.
|
|
38
|
-
"@alepha/react-auth": "0.10.
|
|
39
|
-
"@alepha/react-form": "0.10.
|
|
40
|
-
"@alepha/react-head": "0.10.
|
|
41
|
-
"@alepha/react-i18n": "0.10.
|
|
42
|
-
"@alepha/redis": "0.10.
|
|
43
|
-
"@alepha/retry": "0.10.
|
|
44
|
-
"@alepha/router": "0.10.
|
|
45
|
-
"@alepha/scheduler": "0.10.
|
|
46
|
-
"@alepha/security": "0.10.
|
|
47
|
-
"@alepha/server": "0.10.
|
|
48
|
-
"@alepha/server-cache": "0.10.
|
|
49
|
-
"@alepha/server-compress": "0.10.
|
|
50
|
-
"@alepha/server-cookies": "0.10.
|
|
51
|
-
"@alepha/server-cors": "0.10.
|
|
52
|
-
"@alepha/server-health": "0.10.
|
|
53
|
-
"@alepha/server-helmet": "0.10.
|
|
54
|
-
"@alepha/server-links": "0.10.
|
|
55
|
-
"@alepha/server-metrics": "0.10.
|
|
56
|
-
"@alepha/server-multipart": "0.10.
|
|
57
|
-
"@alepha/server-proxy": "0.10.
|
|
58
|
-
"@alepha/server-security": "0.10.
|
|
59
|
-
"@alepha/server-static": "0.10.
|
|
60
|
-
"@alepha/server-swagger": "0.10.
|
|
61
|
-
"@alepha/topic": "0.10.
|
|
62
|
-
"@alepha/topic-redis": "0.10.
|
|
63
|
-
"@alepha/vite": "0.10.
|
|
18
|
+
"@alepha/api-files": "0.10.5",
|
|
19
|
+
"@alepha/api-jobs": "0.10.5",
|
|
20
|
+
"@alepha/api-users": "0.10.5",
|
|
21
|
+
"@alepha/batch": "0.10.5",
|
|
22
|
+
"@alepha/bucket": "0.10.5",
|
|
23
|
+
"@alepha/cache": "0.10.5",
|
|
24
|
+
"@alepha/cache-redis": "0.10.5",
|
|
25
|
+
"@alepha/command": "0.10.5",
|
|
26
|
+
"@alepha/core": "0.10.5",
|
|
27
|
+
"@alepha/datetime": "0.10.5",
|
|
28
|
+
"@alepha/devtools": "0.10.5",
|
|
29
|
+
"@alepha/email": "0.10.5",
|
|
30
|
+
"@alepha/file": "0.10.5",
|
|
31
|
+
"@alepha/lock": "0.10.5",
|
|
32
|
+
"@alepha/lock-redis": "0.10.5",
|
|
33
|
+
"@alepha/logger": "0.10.5",
|
|
34
|
+
"@alepha/postgres": "0.10.5",
|
|
35
|
+
"@alepha/queue": "0.10.5",
|
|
36
|
+
"@alepha/queue-redis": "0.10.5",
|
|
37
|
+
"@alepha/react": "0.10.5",
|
|
38
|
+
"@alepha/react-auth": "0.10.5",
|
|
39
|
+
"@alepha/react-form": "0.10.5",
|
|
40
|
+
"@alepha/react-head": "0.10.5",
|
|
41
|
+
"@alepha/react-i18n": "0.10.5",
|
|
42
|
+
"@alepha/redis": "0.10.5",
|
|
43
|
+
"@alepha/retry": "0.10.5",
|
|
44
|
+
"@alepha/router": "0.10.5",
|
|
45
|
+
"@alepha/scheduler": "0.10.5",
|
|
46
|
+
"@alepha/security": "0.10.5",
|
|
47
|
+
"@alepha/server": "0.10.5",
|
|
48
|
+
"@alepha/server-cache": "0.10.5",
|
|
49
|
+
"@alepha/server-compress": "0.10.5",
|
|
50
|
+
"@alepha/server-cookies": "0.10.5",
|
|
51
|
+
"@alepha/server-cors": "0.10.5",
|
|
52
|
+
"@alepha/server-health": "0.10.5",
|
|
53
|
+
"@alepha/server-helmet": "0.10.5",
|
|
54
|
+
"@alepha/server-links": "0.10.5",
|
|
55
|
+
"@alepha/server-metrics": "0.10.5",
|
|
56
|
+
"@alepha/server-multipart": "0.10.5",
|
|
57
|
+
"@alepha/server-proxy": "0.10.5",
|
|
58
|
+
"@alepha/server-security": "0.10.5",
|
|
59
|
+
"@alepha/server-static": "0.10.5",
|
|
60
|
+
"@alepha/server-swagger": "0.10.5",
|
|
61
|
+
"@alepha/topic": "0.10.5",
|
|
62
|
+
"@alepha/topic-redis": "0.10.5",
|
|
63
|
+
"@alepha/vite": "0.10.5"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"tsdown": "^0.15.6"
|
package/postgres.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Descriptor, KIND, Service, Static, TArray, TBigInt, TBoolean, TInteger, TNull, TNumber, TNumberOptions, TObject, TObjectOptions, TOptional, TOptionalAdd, TRecord, TSchema as TSchema$1, TString, TStringOptions, TUnion } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as drizzle_orm7 from "drizzle-orm";
|
|
4
4
|
import { BuildColumns, BuildExtraConfigColumns, SQL, SQLWrapper, TableConfig, sql } from "drizzle-orm";
|
|
5
5
|
import * as pg$1 from "drizzle-orm/pg-core";
|
|
6
6
|
import { AnyPgColumn, AnyPgTable, LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, PgInsertValue, PgSequenceOptions, PgTableExtraConfigValue, PgTableWithColumns, PgTransaction, PgTransactionConfig, SelectedFields, TableConfig as TableConfig$1, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
@@ -116,14 +116,14 @@ declare const schemaToPgColumns: <T extends TObject>(schema: T) => FromSchema<T>
|
|
|
116
116
|
* @param value The value of the field.
|
|
117
117
|
* @returns The PG column.
|
|
118
118
|
*/
|
|
119
|
-
declare const mapFieldToColumn: (name: string, value: TSchema$1) => pg$1.PgSerialBuilderInitial<string> | pg$1.PgIntegerBuilderInitial<string> |
|
|
119
|
+
declare const mapFieldToColumn: (name: string, value: TSchema$1) => pg$1.PgSerialBuilderInitial<string> | pg$1.PgIntegerBuilderInitial<string> | drizzle_orm7.IsIdentity<pg$1.PgBigInt64BuilderInitial<"">, "byDefault"> | drizzle_orm7.IsIdentity<pg$1.PgBigInt64BuilderInitial<"">, "always"> | pg$1.PgBigInt53BuilderInitial<string> | pg$1.PgNumericBuilderInitial<string> | pg$1.PgTimestampBuilderInitial<string> | pg$1.PgUUIDBuilderInitial<string> | pg$1.PgCustomColumnBuilder<{
|
|
120
120
|
name: string;
|
|
121
121
|
dataType: "custom";
|
|
122
122
|
columnType: "PgCustomColumn";
|
|
123
123
|
data: Buffer<ArrayBufferLike>;
|
|
124
124
|
driverParam: unknown;
|
|
125
125
|
enumValues: undefined;
|
|
126
|
-
}> | pg$1.PgTimestampStringBuilderInitial<string> | pg$1.PgDateStringBuilderInitial<string> | pg$1.PgTextBuilderInitial<string, [string, ...string[]]> | pg$1.PgBooleanBuilderInitial<string> |
|
|
126
|
+
}> | pg$1.PgTimestampStringBuilderInitial<string> | pg$1.PgDateStringBuilderInitial<string> | pg$1.PgTextBuilderInitial<string, [string, ...string[]]> | pg$1.PgBooleanBuilderInitial<string> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
|
|
127
127
|
name: string;
|
|
128
128
|
dataType: "custom";
|
|
129
129
|
columnType: "PgCustomColumn";
|
|
@@ -138,14 +138,14 @@ declare const mapFieldToColumn: (name: string, value: TSchema$1) => pg$1.PgSeria
|
|
|
138
138
|
[x: string]: unknown;
|
|
139
139
|
[x: number]: unknown;
|
|
140
140
|
[x: symbol]: unknown;
|
|
141
|
-
}> |
|
|
141
|
+
}> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
|
|
142
142
|
name: string;
|
|
143
143
|
dataType: "custom";
|
|
144
144
|
columnType: "PgCustomColumn";
|
|
145
145
|
data: Record<string, unknown>;
|
|
146
146
|
driverParam: string;
|
|
147
147
|
enumValues: undefined;
|
|
148
|
-
}>, Record<string, unknown>> |
|
|
148
|
+
}>, Record<string, unknown>> | drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
|
|
149
149
|
name: string;
|
|
150
150
|
dataType: "custom";
|
|
151
151
|
columnType: "PgCustomColumn";
|
|
@@ -767,6 +767,26 @@ declare class PgError extends AlephaError {
|
|
|
767
767
|
}
|
|
768
768
|
//#endregion
|
|
769
769
|
//#region src/helpers/pgAttr.d.ts
|
|
770
|
+
/**
|
|
771
|
+
* Decorates a typebox schema with a Postgres attribute.
|
|
772
|
+
*
|
|
773
|
+
* > It's just a fancy way to add Symbols to a field.
|
|
774
|
+
*
|
|
775
|
+
* @example
|
|
776
|
+
* ```ts
|
|
777
|
+
* import { t } from "alepha";
|
|
778
|
+
* import { PG_UPDATED_AT } from "../constants/PG_SYMBOLS";
|
|
779
|
+
*
|
|
780
|
+
* export const updatedAtSchema = pgAttr(
|
|
781
|
+
* t.datetime(), PG_UPDATED_AT,
|
|
782
|
+
* );
|
|
783
|
+
* ```
|
|
784
|
+
*/
|
|
785
|
+
declare const pgAttr: <T extends TSchema$1, Attr extends PgSymbolKeys>(type: T, attr: Attr, value?: PgSymbols[Attr]) => PgAttr<T, Attr>;
|
|
786
|
+
/**
|
|
787
|
+
* Retrieves the fields of a schema that have a specific attribute.
|
|
788
|
+
*/
|
|
789
|
+
declare const getAttrFields: (schema: TObject, name: PgSymbolKeys) => PgAttrField[];
|
|
770
790
|
/**
|
|
771
791
|
* Type representation.
|
|
772
792
|
*/
|
|
@@ -1485,7 +1505,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
|
|
|
1485
1505
|
/**
|
|
1486
1506
|
* Getter for the database connection from the database provider.
|
|
1487
1507
|
*/
|
|
1488
|
-
protected get db(): PgDatabase<any, Record<string, never>,
|
|
1508
|
+
protected get db(): PgDatabase<any, Record<string, never>, drizzle_orm7.ExtractTablesWithRelations<Record<string, never>>>;
|
|
1489
1509
|
/**
|
|
1490
1510
|
* Execute a SQL query.
|
|
1491
1511
|
*/
|
|
@@ -1510,10 +1530,10 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
|
|
|
1510
1530
|
*
|
|
1511
1531
|
* @returns The SELECT query builder.
|
|
1512
1532
|
*/
|
|
1513
|
-
protected select(opts?: StatementOptions): pg$1.PgSelectBase<string, Record<string, PgColumn<
|
|
1533
|
+
protected select(opts?: StatementOptions): pg$1.PgSelectBase<string, Record<string, PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>>, "single", Record<string, "not-null">, false, never, {
|
|
1514
1534
|
[x: string]: unknown;
|
|
1515
1535
|
}[], {
|
|
1516
|
-
[x: string]: PgColumn<
|
|
1536
|
+
[x: string]: PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>;
|
|
1517
1537
|
}>;
|
|
1518
1538
|
protected selectDistinct(opts: StatementOptions | undefined, fields: SelectedFields): pg$1.PgSelectBase<string, SelectedFields, "partial", Record<string, "not-null">, false, never, {
|
|
1519
1539
|
[x: string]: unknown;
|
|
@@ -1730,7 +1750,7 @@ declare class RepositoryDescriptor<EntityTableConfig extends TableConfig, Entity
|
|
|
1730
1750
|
*/
|
|
1731
1751
|
protected getPrimaryKey(schema: TObject): {
|
|
1732
1752
|
key: string;
|
|
1733
|
-
col: PgColumn<
|
|
1753
|
+
col: PgColumn<drizzle_orm7.ColumnBaseConfig<drizzle_orm7.ColumnDataType, string>, {}, {}>;
|
|
1734
1754
|
type: TSchema$1;
|
|
1735
1755
|
};
|
|
1736
1756
|
}
|
|
@@ -2488,7 +2508,7 @@ declare const legacyIdSchema: PgAttr<PgAttr<PgAttr<typebox1.TInteger, typeof PG_
|
|
|
2488
2508
|
/**
|
|
2489
2509
|
* Postgres schema type.
|
|
2490
2510
|
*/
|
|
2491
|
-
declare const schema: <TDocument extends TSchema$1>(name: string, document: TDocument) =>
|
|
2511
|
+
declare const schema: <TDocument extends TSchema$1>(name: string, document: TDocument) => drizzle_orm7.$Type<pg$1.PgCustomColumnBuilder<{
|
|
2492
2512
|
name: string;
|
|
2493
2513
|
dataType: "custom";
|
|
2494
2514
|
columnType: "PgCustomColumn";
|
|
@@ -2540,5 +2560,5 @@ declare const schema: <TDocument extends TSchema$1>(name: string, document: TDoc
|
|
|
2540
2560
|
*/
|
|
2541
2561
|
declare const AlephaPostgres: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
2542
2562
|
//#endregion
|
|
2543
|
-
export { $entity, $repository, $sequence, $transaction, AlephaPostgres, DrizzleKitProvider, Entity, EntityDescriptorOptions, ExtractManyRelations, FilterOperators, FromSchema, NodePostgresProvider, NodePostgresProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_IDENTITY, PG_MANY, PG_ONE, PG_PRIMARY_KEY, PG_REF, PG_SCHEMA, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgDefault, PgEntityNotFoundError, PgIdentityOptions, PgMany, PgManyOptions, PgOne, PgPrimaryKey, PgQuery, PgQueryWhere, PgQueryWhereOrSQL, PgQueryWhereWithMany, PgQueryWhereWithManyOrSQL, PgQueryWithMany, PgQueryWithMap, PgQueryWithOne, PgRef, PgRefOptions, PgSymbolKeys, PgSymbols, PgTableConfig, PgTableWithColumnsAndSchema, PostgresProvider, PostgresTypeProvider, RelField, RemoveManyRelations, RepositoryDescriptor, RepositoryDescriptorOptions, RepositoryProvider, SQLLike, SequenceDescriptor, SequenceDescriptorOptions, StatementOptions, TObjectInsert, TObjectUpdate, TPage, TransactionContext, TransactionDescriptorOptions, camelToSnakeCase,
|
|
2563
|
+
export { $entity, $repository, $sequence, $transaction, AlephaPostgres, DrizzleKitProvider, Entity, EntityDescriptorOptions, ExtractManyRelations, FilterOperators, FromSchema, NodePostgresProvider, NodePostgresProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_IDENTITY, PG_MANY, PG_ONE, PG_PRIMARY_KEY, PG_REF, PG_SCHEMA, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgAttr, PgAttrField, PgDefault, PgEntityNotFoundError, PgIdentityOptions, PgMany, PgManyOptions, PgOne, PgPrimaryKey, PgQuery, PgQueryWhere, PgQueryWhereOrSQL, PgQueryWhereWithMany, PgQueryWhereWithManyOrSQL, PgQueryWithMany, PgQueryWithMap, PgQueryWithOne, PgRef, PgRefOptions, PgSymbolKeys, PgSymbols, PgTableConfig, PgTableWithColumnsAndSchema, PostgresProvider, PostgresTypeProvider, RelField, RemoveManyRelations, RepositoryDescriptor, RepositoryDescriptorOptions, RepositoryProvider, SQLLike, SequenceDescriptor, SequenceDescriptorOptions, StatementOptions, TObjectInsert, TObjectUpdate, TPage, TransactionContext, TransactionDescriptorOptions, camelToSnakeCase, drizzle_orm7 as drizzle, getAttrFields, insertSchema, legacyIdSchema, mapFieldToColumn, mapStringToColumn, pageQuerySchema, pageSchema, pg, pgAttr, schema, schemaToPgColumns, sql, updateSchema };
|
|
2544
2564
|
//# sourceMappingURL=index.d.ts.map
|
package/react/auth.d.ts
CHANGED
|
@@ -43,6 +43,11 @@ declare class ReactAuth {
|
|
|
43
43
|
};
|
|
44
44
|
protected readonly onBeginTransition: _alepha_core4.HookDescriptor<"react:transition:begin">;
|
|
45
45
|
protected readonly onFetchRequest: _alepha_core4.HookDescriptor<"client:onRequest">;
|
|
46
|
+
/**
|
|
47
|
+
* Get the current authenticated user.
|
|
48
|
+
*
|
|
49
|
+
* Alias for `alepha.state.get("user")`
|
|
50
|
+
*/
|
|
46
51
|
get user(): UserAccountToken | undefined;
|
|
47
52
|
ping(): Promise<{
|
|
48
53
|
name?: string | undefined;
|
package/react.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core10 from "alepha";
|
|
2
2
|
import { Alepha, Async, Descriptor, Hooks, KIND, Service, State, Static, TObject, TSchema } from "alepha";
|
|
3
3
|
import { RequestConfigSchema, ServerHandler, ServerProvider, ServerRequest, ServerRouterProvider, ServerTimingProvider } from "alepha/server";
|
|
4
4
|
import { ServerRouteCache } from "alepha/server/cache";
|
|
5
5
|
import { ClientScope, HttpVirtualClient, LinkProvider, VirtualAction } from "alepha/server/links";
|
|
6
6
|
import * as _alepha_logger0 from "alepha/logger";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react1 from "react";
|
|
8
8
|
import React, { AnchorHTMLAttributes, CSSProperties, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
|
|
9
|
-
import * as
|
|
9
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
10
10
|
import { ServerStaticProvider } from "alepha/server/static";
|
|
11
11
|
import { DateTimeProvider } from "alepha/datetime";
|
|
12
12
|
import { Route, RouterProvider } from "alepha/router";
|
|
@@ -40,8 +40,8 @@ declare class Redirection extends Error {
|
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/providers/ReactPageProvider.d.ts
|
|
43
|
-
declare const envSchema$2:
|
|
44
|
-
REACT_STRICT_MODE:
|
|
43
|
+
declare const envSchema$2: _alepha_core10.TObject<{
|
|
44
|
+
REACT_STRICT_MODE: _alepha_core10.TBoolean;
|
|
45
45
|
}>;
|
|
46
46
|
declare module "alepha" {
|
|
47
47
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -83,7 +83,7 @@ declare class ReactPageProvider {
|
|
|
83
83
|
}, params?: Record<string, any>): string;
|
|
84
84
|
compile(path: string, params?: Record<string, string>): string;
|
|
85
85
|
protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
|
|
86
|
-
protected readonly configure:
|
|
86
|
+
protected readonly configure: _alepha_core10.HookDescriptor<"configure">;
|
|
87
87
|
protected map(pages: Array<PageDescriptor>, target: PageDescriptor): PageRouteEntry;
|
|
88
88
|
add(entry: PageRouteEntry): void;
|
|
89
89
|
protected createMatch(page: PageRoute): string;
|
|
@@ -493,14 +493,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
|
|
|
493
493
|
protected readonly alepha: Alepha;
|
|
494
494
|
protected readonly pageApi: ReactPageProvider;
|
|
495
495
|
add(entry: PageRouteEntry): void;
|
|
496
|
-
protected readonly configure:
|
|
496
|
+
protected readonly configure: _alepha_core10.HookDescriptor<"configure">;
|
|
497
497
|
transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
|
|
498
498
|
root(state: ReactRouterState): ReactNode;
|
|
499
499
|
}
|
|
500
500
|
//#endregion
|
|
501
501
|
//#region src/providers/ReactBrowserProvider.d.ts
|
|
502
|
-
declare const envSchema$1:
|
|
503
|
-
REACT_ROOT_ID:
|
|
502
|
+
declare const envSchema$1: _alepha_core10.TObject<{
|
|
503
|
+
REACT_ROOT_ID: _alepha_core10.TString;
|
|
504
504
|
}>;
|
|
505
505
|
declare module "alepha" {
|
|
506
506
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -546,8 +546,8 @@ declare class ReactBrowserProvider {
|
|
|
546
546
|
* Get embedded layers from the server.
|
|
547
547
|
*/
|
|
548
548
|
protected getHydrationState(): ReactHydrationState | undefined;
|
|
549
|
-
protected readonly onTransitionEnd:
|
|
550
|
-
readonly ready:
|
|
549
|
+
protected readonly onTransitionEnd: _alepha_core10.HookDescriptor<"react:transition:end">;
|
|
550
|
+
readonly ready: _alepha_core10.HookDescriptor<"ready">;
|
|
551
551
|
}
|
|
552
552
|
interface RouterGoOptions {
|
|
553
553
|
replace?: boolean;
|
|
@@ -619,35 +619,35 @@ interface ErrorViewerProps {
|
|
|
619
619
|
declare const ErrorViewer: ({
|
|
620
620
|
error,
|
|
621
621
|
alepha
|
|
622
|
-
}: ErrorViewerProps) =>
|
|
622
|
+
}: ErrorViewerProps) => react_jsx_runtime0.JSX.Element;
|
|
623
623
|
//#endregion
|
|
624
624
|
//#region src/components/Link.d.ts
|
|
625
625
|
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
626
626
|
href: string;
|
|
627
627
|
}
|
|
628
|
-
declare const Link: (props: LinkProps) =>
|
|
628
|
+
declare const Link: (props: LinkProps) => react_jsx_runtime0.JSX.Element;
|
|
629
629
|
//#endregion
|
|
630
630
|
//#region src/components/NestedView.d.ts
|
|
631
631
|
interface NestedViewProps {
|
|
632
632
|
children?: ReactNode;
|
|
633
633
|
errorBoundary?: false | ((error: Error) => ReactNode);
|
|
634
634
|
}
|
|
635
|
-
declare const _default:
|
|
635
|
+
declare const _default: react1.MemoExoticComponent<(props: NestedViewProps) => react_jsx_runtime0.JSX.Element>;
|
|
636
636
|
//#endregion
|
|
637
637
|
//#region src/components/NotFound.d.ts
|
|
638
638
|
declare function NotFoundPage(props: {
|
|
639
639
|
style?: CSSProperties;
|
|
640
|
-
}):
|
|
640
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
641
641
|
//#endregion
|
|
642
642
|
//#region src/contexts/AlephaContext.d.ts
|
|
643
|
-
declare const AlephaContext:
|
|
643
|
+
declare const AlephaContext: react1.Context<Alepha | undefined>;
|
|
644
644
|
//#endregion
|
|
645
645
|
//#region src/contexts/RouterLayerContext.d.ts
|
|
646
646
|
interface RouterLayerContextValue {
|
|
647
647
|
index: number;
|
|
648
648
|
path: string;
|
|
649
649
|
}
|
|
650
|
-
declare const RouterLayerContext:
|
|
650
|
+
declare const RouterLayerContext: react1.Context<RouterLayerContextValue | undefined>;
|
|
651
651
|
//#endregion
|
|
652
652
|
//#region src/hooks/useActive.d.ts
|
|
653
653
|
interface UseActiveOptions {
|
|
@@ -800,12 +800,12 @@ declare const ssrSchemaLoading: (alepha: Alepha, name: string) => RequestConfigS
|
|
|
800
800
|
declare const useStore: <Key extends keyof State>(key: Key, defaultValue?: State[Key]) => [State[Key], (value: State[Key]) => void];
|
|
801
801
|
//#endregion
|
|
802
802
|
//#region src/providers/ReactServerProvider.d.ts
|
|
803
|
-
declare const envSchema:
|
|
804
|
-
REACT_SERVER_DIST:
|
|
805
|
-
REACT_SERVER_PREFIX:
|
|
806
|
-
REACT_SSR_ENABLED:
|
|
807
|
-
REACT_ROOT_ID:
|
|
808
|
-
REACT_SERVER_TEMPLATE:
|
|
803
|
+
declare const envSchema: _alepha_core10.TObject<{
|
|
804
|
+
REACT_SERVER_DIST: _alepha_core10.TString;
|
|
805
|
+
REACT_SERVER_PREFIX: _alepha_core10.TString;
|
|
806
|
+
REACT_SSR_ENABLED: _alepha_core10.TOptional<_alepha_core10.TBoolean>;
|
|
807
|
+
REACT_ROOT_ID: _alepha_core10.TString;
|
|
808
|
+
REACT_SERVER_TEMPLATE: _alepha_core10.TOptional<_alepha_core10.TString>;
|
|
809
809
|
}>;
|
|
810
810
|
declare module "alepha" {
|
|
811
811
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -824,13 +824,13 @@ declare class ReactServerProvider {
|
|
|
824
824
|
protected readonly env: {
|
|
825
825
|
REACT_SSR_ENABLED?: boolean | undefined;
|
|
826
826
|
REACT_SERVER_TEMPLATE?: string | undefined;
|
|
827
|
-
REACT_ROOT_ID: string;
|
|
828
827
|
REACT_SERVER_DIST: string;
|
|
829
828
|
REACT_SERVER_PREFIX: string;
|
|
829
|
+
REACT_ROOT_ID: string;
|
|
830
830
|
};
|
|
831
831
|
protected readonly ROOT_DIV_REGEX: RegExp;
|
|
832
832
|
protected preprocessedTemplate: PreprocessedTemplate | null;
|
|
833
|
-
readonly onConfigure:
|
|
833
|
+
readonly onConfigure: _alepha_core10.HookDescriptor<"configure">;
|
|
834
834
|
get template(): string;
|
|
835
835
|
protected registerPages(templateLoader: TemplateLoader): Promise<void>;
|
|
836
836
|
protected getPublicDirectory(): string;
|
|
@@ -903,7 +903,7 @@ declare module "alepha" {
|
|
|
903
903
|
* @see {@link $page}
|
|
904
904
|
* @module alepha.react
|
|
905
905
|
*/
|
|
906
|
-
declare const AlephaReact:
|
|
906
|
+
declare const AlephaReact: _alepha_core10.Service<_alepha_core10.Module<{}>>;
|
|
907
907
|
//#endregion
|
|
908
908
|
export { $page, AlephaContext, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, 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, Redirection, RouterGoOptions, RouterLayerContext, RouterLayerContextValue, RouterRenderOptions, RouterStackItem, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActiveHook, UseActiveOptions, UseQueryParamsHookOptions, UseSchemaReturn, VirtualRouter, isPageRoute, ssrSchemaLoading, useActive, useAlepha, useClient, useInject, useQueryParams, useRouter, useRouterEvents, useRouterState, useSchema, useStore };
|
|
909
909
|
//# sourceMappingURL=index.d.ts.map
|
package/server/links.d.ts
CHANGED
|
@@ -7,26 +7,26 @@ import * as _alepha_logger0 from "alepha/logger";
|
|
|
7
7
|
import * as _alepha_retry0 from "alepha/retry";
|
|
8
8
|
import { ProxyDescriptorOptions, ServerProxyProvider } from "alepha/server/proxy";
|
|
9
9
|
import { ServiceAccountDescriptor, UserAccountToken } from "alepha/security";
|
|
10
|
-
import * as
|
|
10
|
+
import * as typebox0 from "typebox";
|
|
11
11
|
|
|
12
12
|
//#region src/schemas/apiLinksResponseSchema.d.ts
|
|
13
|
-
declare const apiLinkSchema:
|
|
14
|
-
name:
|
|
15
|
-
group:
|
|
16
|
-
path:
|
|
17
|
-
method:
|
|
18
|
-
requestBodyType:
|
|
19
|
-
service:
|
|
13
|
+
declare const apiLinkSchema: typebox0.TObject<{
|
|
14
|
+
name: typebox0.TString;
|
|
15
|
+
group: typebox0.TOptional<typebox0.TString>;
|
|
16
|
+
path: typebox0.TString;
|
|
17
|
+
method: typebox0.TOptional<typebox0.TString>;
|
|
18
|
+
requestBodyType: typebox0.TOptional<typebox0.TString>;
|
|
19
|
+
service: typebox0.TOptional<typebox0.TString>;
|
|
20
20
|
}>;
|
|
21
|
-
declare const apiLinksResponseSchema:
|
|
22
|
-
prefix:
|
|
23
|
-
links:
|
|
24
|
-
name:
|
|
25
|
-
group:
|
|
26
|
-
path:
|
|
27
|
-
method:
|
|
28
|
-
requestBodyType:
|
|
29
|
-
service:
|
|
21
|
+
declare const apiLinksResponseSchema: typebox0.TObject<{
|
|
22
|
+
prefix: typebox0.TOptional<typebox0.TString>;
|
|
23
|
+
links: typebox0.TArray<typebox0.TObject<{
|
|
24
|
+
name: typebox0.TString;
|
|
25
|
+
group: typebox0.TOptional<typebox0.TString>;
|
|
26
|
+
path: typebox0.TString;
|
|
27
|
+
method: typebox0.TOptional<typebox0.TString>;
|
|
28
|
+
requestBodyType: typebox0.TOptional<typebox0.TString>;
|
|
29
|
+
service: typebox0.TOptional<typebox0.TString>;
|
|
30
30
|
}>>;
|
|
31
31
|
}>;
|
|
32
32
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -257,15 +257,15 @@ declare class ServerLinksProvider {
|
|
|
257
257
|
* This is based on the user's permissions.
|
|
258
258
|
*/
|
|
259
259
|
readonly links: _alepha_server0.RouteDescriptor<{
|
|
260
|
-
response:
|
|
261
|
-
prefix:
|
|
262
|
-
links:
|
|
263
|
-
name:
|
|
264
|
-
group:
|
|
265
|
-
path:
|
|
266
|
-
method:
|
|
267
|
-
requestBodyType:
|
|
268
|
-
service:
|
|
260
|
+
response: typebox0.TObject<{
|
|
261
|
+
prefix: typebox0.TOptional<typebox0.TString>;
|
|
262
|
+
links: typebox0.TArray<typebox0.TObject<{
|
|
263
|
+
name: typebox0.TString;
|
|
264
|
+
group: typebox0.TOptional<typebox0.TString>;
|
|
265
|
+
path: typebox0.TString;
|
|
266
|
+
method: typebox0.TOptional<typebox0.TString>;
|
|
267
|
+
requestBodyType: typebox0.TOptional<typebox0.TString>;
|
|
268
|
+
service: typebox0.TOptional<typebox0.TString>;
|
|
269
269
|
}>>;
|
|
270
270
|
}>;
|
|
271
271
|
}>;
|
|
@@ -276,10 +276,10 @@ declare class ServerLinksProvider {
|
|
|
276
276
|
* I mean for 150+ links, you got 50ms of serialization time.
|
|
277
277
|
*/
|
|
278
278
|
readonly schema: _alepha_server0.RouteDescriptor<{
|
|
279
|
-
params:
|
|
280
|
-
name:
|
|
279
|
+
params: typebox0.TObject<{
|
|
280
|
+
name: typebox0.TString;
|
|
281
281
|
}>;
|
|
282
|
-
response:
|
|
282
|
+
response: typebox0.TRecord<string, typebox0.TAny>;
|
|
283
283
|
}>;
|
|
284
284
|
getSchemaByName(name: string, options?: GetApiLinksOptions): Promise<RequestConfigSchema>;
|
|
285
285
|
/**
|