alepha 0.11.0 → 0.11.2
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/api/files.d.ts +166 -166
- package/api/notifications.d.ts +94 -94
- package/api/users.d.ts +27 -27
- package/core.d.ts +2 -2
- package/devtools.d.ts +247 -247
- package/package.json +50 -50
- package/postgres.d.ts +4 -0
- package/scheduler.d.ts +6 -6
- package/security.d.ts +6 -5
- package/server/cookies.d.ts +3 -2
- package/server.d.ts +21 -20
- package/ui.d.ts +16 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alepha",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -15,55 +15,55 @@
|
|
|
15
15
|
"main": "./core.js",
|
|
16
16
|
"types": "./core.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alepha/api-files": "0.11.
|
|
19
|
-
"@alepha/api-jobs": "0.11.
|
|
20
|
-
"@alepha/api-notifications": "0.11.
|
|
21
|
-
"@alepha/api-users": "0.11.
|
|
22
|
-
"@alepha/api-verifications": "0.11.
|
|
23
|
-
"@alepha/batch": "0.11.
|
|
24
|
-
"@alepha/bucket": "0.11.
|
|
25
|
-
"@alepha/cache": "0.11.
|
|
26
|
-
"@alepha/cache-redis": "0.11.
|
|
27
|
-
"@alepha/command": "0.11.
|
|
28
|
-
"@alepha/core": "0.11.
|
|
29
|
-
"@alepha/datetime": "0.11.
|
|
30
|
-
"@alepha/devtools": "0.11.
|
|
31
|
-
"@alepha/email": "0.11.
|
|
32
|
-
"@alepha/file": "0.11.
|
|
33
|
-
"@alepha/lock": "0.11.
|
|
34
|
-
"@alepha/lock-redis": "0.11.
|
|
35
|
-
"@alepha/logger": "0.11.
|
|
36
|
-
"@alepha/postgres": "0.11.
|
|
37
|
-
"@alepha/queue": "0.11.
|
|
38
|
-
"@alepha/queue-redis": "0.11.
|
|
39
|
-
"@alepha/react": "0.11.
|
|
40
|
-
"@alepha/react-auth": "0.11.
|
|
41
|
-
"@alepha/react-form": "0.11.
|
|
42
|
-
"@alepha/react-head": "0.11.
|
|
43
|
-
"@alepha/react-i18n": "0.11.
|
|
44
|
-
"@alepha/redis": "0.11.
|
|
45
|
-
"@alepha/retry": "0.11.
|
|
46
|
-
"@alepha/router": "0.11.
|
|
47
|
-
"@alepha/scheduler": "0.11.
|
|
48
|
-
"@alepha/security": "0.11.
|
|
49
|
-
"@alepha/server": "0.11.
|
|
50
|
-
"@alepha/server-cache": "0.11.
|
|
51
|
-
"@alepha/server-compress": "0.11.
|
|
52
|
-
"@alepha/server-cookies": "0.11.
|
|
53
|
-
"@alepha/server-cors": "0.11.
|
|
54
|
-
"@alepha/server-health": "0.11.
|
|
55
|
-
"@alepha/server-helmet": "0.11.
|
|
56
|
-
"@alepha/server-links": "0.11.
|
|
57
|
-
"@alepha/server-metrics": "0.11.
|
|
58
|
-
"@alepha/server-multipart": "0.11.
|
|
59
|
-
"@alepha/server-proxy": "0.11.
|
|
60
|
-
"@alepha/server-security": "0.11.
|
|
61
|
-
"@alepha/server-static": "0.11.
|
|
62
|
-
"@alepha/server-swagger": "0.11.
|
|
63
|
-
"@alepha/topic": "0.11.
|
|
64
|
-
"@alepha/topic-redis": "0.11.
|
|
65
|
-
"@alepha/ui": "0.11.
|
|
66
|
-
"@alepha/vite": "0.11.
|
|
18
|
+
"@alepha/api-files": "0.11.2",
|
|
19
|
+
"@alepha/api-jobs": "0.11.2",
|
|
20
|
+
"@alepha/api-notifications": "0.11.2",
|
|
21
|
+
"@alepha/api-users": "0.11.2",
|
|
22
|
+
"@alepha/api-verifications": "0.11.2",
|
|
23
|
+
"@alepha/batch": "0.11.2",
|
|
24
|
+
"@alepha/bucket": "0.11.2",
|
|
25
|
+
"@alepha/cache": "0.11.2",
|
|
26
|
+
"@alepha/cache-redis": "0.11.2",
|
|
27
|
+
"@alepha/command": "0.11.2",
|
|
28
|
+
"@alepha/core": "0.11.2",
|
|
29
|
+
"@alepha/datetime": "0.11.2",
|
|
30
|
+
"@alepha/devtools": "0.11.2",
|
|
31
|
+
"@alepha/email": "0.11.2",
|
|
32
|
+
"@alepha/file": "0.11.2",
|
|
33
|
+
"@alepha/lock": "0.11.2",
|
|
34
|
+
"@alepha/lock-redis": "0.11.2",
|
|
35
|
+
"@alepha/logger": "0.11.2",
|
|
36
|
+
"@alepha/postgres": "0.11.2",
|
|
37
|
+
"@alepha/queue": "0.11.2",
|
|
38
|
+
"@alepha/queue-redis": "0.11.2",
|
|
39
|
+
"@alepha/react": "0.11.2",
|
|
40
|
+
"@alepha/react-auth": "0.11.2",
|
|
41
|
+
"@alepha/react-form": "0.11.2",
|
|
42
|
+
"@alepha/react-head": "0.11.2",
|
|
43
|
+
"@alepha/react-i18n": "0.11.2",
|
|
44
|
+
"@alepha/redis": "0.11.2",
|
|
45
|
+
"@alepha/retry": "0.11.2",
|
|
46
|
+
"@alepha/router": "0.11.2",
|
|
47
|
+
"@alepha/scheduler": "0.11.2",
|
|
48
|
+
"@alepha/security": "0.11.2",
|
|
49
|
+
"@alepha/server": "0.11.2",
|
|
50
|
+
"@alepha/server-cache": "0.11.2",
|
|
51
|
+
"@alepha/server-compress": "0.11.2",
|
|
52
|
+
"@alepha/server-cookies": "0.11.2",
|
|
53
|
+
"@alepha/server-cors": "0.11.2",
|
|
54
|
+
"@alepha/server-health": "0.11.2",
|
|
55
|
+
"@alepha/server-helmet": "0.11.2",
|
|
56
|
+
"@alepha/server-links": "0.11.2",
|
|
57
|
+
"@alepha/server-metrics": "0.11.2",
|
|
58
|
+
"@alepha/server-multipart": "0.11.2",
|
|
59
|
+
"@alepha/server-proxy": "0.11.2",
|
|
60
|
+
"@alepha/server-security": "0.11.2",
|
|
61
|
+
"@alepha/server-static": "0.11.2",
|
|
62
|
+
"@alepha/server-swagger": "0.11.2",
|
|
63
|
+
"@alepha/topic": "0.11.2",
|
|
64
|
+
"@alepha/topic-redis": "0.11.2",
|
|
65
|
+
"@alepha/ui": "0.11.2",
|
|
66
|
+
"@alepha/vite": "0.11.2",
|
|
67
67
|
"react": "^19.2.0",
|
|
68
68
|
"react-dom": "^19.2.0"
|
|
69
69
|
},
|
package/postgres.d.ts
CHANGED
|
@@ -1196,6 +1196,10 @@ declare class RepositoryDescriptor<T extends TObject = TObject> extends Descript
|
|
|
1196
1196
|
protected readonly alepha: Alepha;
|
|
1197
1197
|
readonly provider: DatabaseProvider;
|
|
1198
1198
|
constructor(args: DescriptorArgs<RepositoryDescriptorOptions<T>>);
|
|
1199
|
+
/**
|
|
1200
|
+
* Get the entity descriptor associated with this repository.
|
|
1201
|
+
*/
|
|
1202
|
+
get entity(): EntityDescriptor<T>;
|
|
1199
1203
|
/**
|
|
1200
1204
|
* Represents the primary key of the table.
|
|
1201
1205
|
* - Key is the name of the primary key column.
|
package/scheduler.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, Async, Descriptor, KIND, Static } from "alepha";
|
|
3
3
|
import * as _alepha_lock0 from "alepha/lock";
|
|
4
4
|
import { DateTime, DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
@@ -23,8 +23,8 @@ declare class CronProvider {
|
|
|
23
23
|
protected readonly log: _alepha_logger0.Logger;
|
|
24
24
|
protected readonly cronJobs: Array<CronJob>;
|
|
25
25
|
getCronJobs(): Array<CronJob>;
|
|
26
|
-
protected readonly start:
|
|
27
|
-
protected readonly stop:
|
|
26
|
+
protected readonly start: _alepha_core1.HookDescriptor<"start">;
|
|
27
|
+
protected readonly stop: _alepha_core1.HookDescriptor<"stop">;
|
|
28
28
|
protected boot(name: string | CronJob): void;
|
|
29
29
|
abort(name: string | CronJob): void;
|
|
30
30
|
/**
|
|
@@ -87,8 +87,8 @@ type SchedulerDescriptorOptions = {
|
|
|
87
87
|
*/
|
|
88
88
|
lock?: boolean;
|
|
89
89
|
};
|
|
90
|
-
declare const envSchema:
|
|
91
|
-
SCHEDULER_PREFIX:
|
|
90
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
91
|
+
SCHEDULER_PREFIX: _alepha_core1.TOptional<_alepha_core1.TString>;
|
|
92
92
|
}>;
|
|
93
93
|
declare module "alepha" {
|
|
94
94
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -139,7 +139,7 @@ declare module "alepha" {
|
|
|
139
139
|
* @see {@link $scheduler}
|
|
140
140
|
* @module alepha.scheduler
|
|
141
141
|
*/
|
|
142
|
-
declare const AlephaScheduler:
|
|
142
|
+
declare const AlephaScheduler: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
143
143
|
//#endregion
|
|
144
144
|
export { $scheduler, AlephaScheduler, CRON, CronJob, CronProvider, SchedulerDescriptor, SchedulerDescriptorOptions, SchedulerHandlerArguments };
|
|
145
145
|
//# sourceMappingURL=index.d.ts.map
|
package/security.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, Descriptor, KIND, Static } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alepha_logger0 from "alepha/logger";
|
|
4
4
|
import { DateTimeProvider, Duration, DurationLike } from "alepha/datetime";
|
|
5
5
|
import { CryptoKey, FlattenedJWSInput, JSONWebKeySet, JWSHeaderParameters, JWTHeaderParameters, JWTPayload, JWTVerifyResult, KeyObject } from "jose";
|
|
6
6
|
import * as typebox0 from "typebox";
|
|
@@ -68,7 +68,7 @@ type Role = Static<typeof roleSchema>;
|
|
|
68
68
|
* Provides utilities for working with JSON Web Tokens (JWT).
|
|
69
69
|
*/
|
|
70
70
|
declare class JwtProvider {
|
|
71
|
-
protected readonly log:
|
|
71
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
72
72
|
protected readonly keystore: KeyLoaderHolder[];
|
|
73
73
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
74
74
|
protected readonly encoder: TextEncoder;
|
|
@@ -130,6 +130,7 @@ interface JwtParseResult {
|
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region src/providers/SecurityProvider.d.ts
|
|
133
|
+
declare const DEFAULT_APP_SECRET = "05759934015388327323179852515731";
|
|
133
134
|
declare const envSchema: _alepha_core1.TObject<{
|
|
134
135
|
APP_SECRET: _alepha_core1.TString;
|
|
135
136
|
}>;
|
|
@@ -140,7 +141,7 @@ declare class SecurityProvider {
|
|
|
140
141
|
protected readonly UNKNOWN_USER_NAME = "Anonymous User";
|
|
141
142
|
protected readonly PERMISSION_REGEXP: RegExp;
|
|
142
143
|
protected readonly PERMISSION_REGEXP_WILDCARD: RegExp;
|
|
143
|
-
protected readonly log:
|
|
144
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
144
145
|
protected readonly jwt: JwtProvider;
|
|
145
146
|
protected readonly env: {
|
|
146
147
|
APP_SECRET: string;
|
|
@@ -399,7 +400,7 @@ declare class RealmDescriptor extends Descriptor<RealmDescriptorOptions> {
|
|
|
399
400
|
protected readonly securityProvider: SecurityProvider;
|
|
400
401
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
401
402
|
protected readonly jwt: JwtProvider;
|
|
402
|
-
protected readonly log:
|
|
403
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
403
404
|
get name(): string;
|
|
404
405
|
get accessTokenExpiration(): Duration;
|
|
405
406
|
get refreshTokenExpiration(): Duration;
|
|
@@ -581,5 +582,5 @@ declare module "alepha" {
|
|
|
581
582
|
*/
|
|
582
583
|
declare const AlephaSecurity: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
583
584
|
//#endregion
|
|
584
|
-
export { $permission, $realm, $role, $serviceAccount, AccessTokenResponse, AlephaSecurity, CreateTokenOptions, CryptoProvider, ExtendedJWTPayload, InvalidPermissionError, JwtParseResult, JwtProvider, JwtSignOptions, KeyLoader, KeyLoaderHolder, Oauth2ServiceAccountDescriptorOptions, Permission, PermissionDescriptor, PermissionDescriptorOptions, Realm, RealmDescriptor, RealmDescriptorOptions, RealmExternal, RealmInternal, RealmSettings, Role, RoleDescriptor, RoleDescriptorOptions, SecurityCheckResult, SecurityError, SecurityProvider, ServiceAccountDescriptor, ServiceAccountDescriptorOptions, ServiceAccountStore, UserAccount, UserAccountToken, permissionSchema, roleSchema, userAccountInfoSchema };
|
|
585
|
+
export { $permission, $realm, $role, $serviceAccount, AccessTokenResponse, AlephaSecurity, CreateTokenOptions, CryptoProvider, DEFAULT_APP_SECRET, ExtendedJWTPayload, InvalidPermissionError, JwtParseResult, JwtProvider, JwtSignOptions, KeyLoader, KeyLoaderHolder, Oauth2ServiceAccountDescriptorOptions, Permission, PermissionDescriptor, PermissionDescriptorOptions, Realm, RealmDescriptor, RealmDescriptorOptions, RealmExternal, RealmInternal, RealmSettings, Role, RoleDescriptor, RoleDescriptorOptions, SecurityCheckResult, SecurityError, SecurityProvider, ServiceAccountDescriptor, ServiceAccountDescriptorOptions, ServiceAccountStore, UserAccount, UserAccountToken, permissionSchema, roleSchema, userAccountInfoSchema };
|
|
585
586
|
//# sourceMappingURL=index.d.ts.map
|
package/server/cookies.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as _alepha_core1 from "alepha";
|
|
|
2
2
|
import { Alepha, Descriptor, KIND, Static, TSchema } from "alepha";
|
|
3
3
|
import { DateTimeProvider, DurationLike } from "alepha/datetime";
|
|
4
4
|
import * as _alepha_logger0 from "alepha/logger";
|
|
5
|
-
import { SecurityProvider } from "alepha/security";
|
|
6
5
|
|
|
7
6
|
//#region src/services/CookieParser.d.ts
|
|
8
7
|
declare class CookieParser {
|
|
@@ -17,7 +16,9 @@ declare class ServerCookiesProvider {
|
|
|
17
16
|
protected readonly log: _alepha_logger0.Logger;
|
|
18
17
|
protected readonly cookieParser: CookieParser;
|
|
19
18
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
20
|
-
protected readonly
|
|
19
|
+
protected readonly env: {
|
|
20
|
+
APP_SECRET: string;
|
|
21
|
+
};
|
|
21
22
|
protected readonly ALGORITHM = "aes-256-gcm";
|
|
22
23
|
protected readonly IV_LENGTH = 16;
|
|
23
24
|
protected readonly AUTH_TAG_LENGTH = 16;
|
package/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, FileLike, KIND, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alepha_logger0 from "alepha/logger";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
import { ReadableStream } from "node:stream/web";
|
|
6
6
|
import { Route, RouterProvider } from "alepha/router";
|
|
@@ -186,14 +186,14 @@ declare class ServerRequestParser {
|
|
|
186
186
|
//#region src/providers/ServerTimingProvider.d.ts
|
|
187
187
|
type TimingMap = Record<string, [number, number]>;
|
|
188
188
|
declare class ServerTimingProvider {
|
|
189
|
-
protected readonly log:
|
|
189
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
190
190
|
protected readonly alepha: Alepha;
|
|
191
191
|
options: {
|
|
192
192
|
prefix: string;
|
|
193
193
|
disabled: boolean;
|
|
194
194
|
};
|
|
195
|
-
readonly onRequest:
|
|
196
|
-
readonly onResponse:
|
|
195
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
196
|
+
readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
|
|
197
197
|
protected get handlerName(): string;
|
|
198
198
|
beginTiming(name: string): void;
|
|
199
199
|
endTiming(name: string): void;
|
|
@@ -215,6 +215,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
215
215
|
protected readonly serverRequestParser: ServerRequestParser;
|
|
216
216
|
getRoutes(): ServerRoute[];
|
|
217
217
|
createRoute<TConfig extends RequestConfigSchema = RequestConfigSchema>(route: ServerRoute<TConfig>): void;
|
|
218
|
+
protected getContextId(headers: Record<string, string>): string;
|
|
218
219
|
protected processRequest(request: ServerRequest, route: ServerRoute, responseKind: ResponseKind): Promise<{
|
|
219
220
|
status: number;
|
|
220
221
|
headers: Record<string, string> & {
|
|
@@ -233,7 +234,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
233
234
|
//#endregion
|
|
234
235
|
//#region src/services/HttpClient.d.ts
|
|
235
236
|
declare class HttpClient {
|
|
236
|
-
protected readonly log:
|
|
237
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
237
238
|
protected readonly alepha: Alepha;
|
|
238
239
|
readonly cache: _alepha_cache0.CacheDescriptorFn<HttpClientCache, any[]>;
|
|
239
240
|
protected readonly pendingRequests: HttpClientPendingRequests;
|
|
@@ -553,7 +554,7 @@ interface ActionDescriptorOptions<TConfig extends RequestConfigSchema> extends O
|
|
|
553
554
|
handler: ServerActionHandler<TConfig>;
|
|
554
555
|
}
|
|
555
556
|
declare class ActionDescriptor<TConfig extends RequestConfigSchema> extends Descriptor<ActionDescriptorOptions<TConfig>> {
|
|
556
|
-
protected readonly log:
|
|
557
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
557
558
|
protected readonly env: {
|
|
558
559
|
SERVER_API_PREFIX: string;
|
|
559
560
|
};
|
|
@@ -725,9 +726,9 @@ declare const okSchema: typebox0.TObject<{
|
|
|
725
726
|
type Ok = Static<typeof okSchema>;
|
|
726
727
|
//#endregion
|
|
727
728
|
//#region src/providers/NodeHttpServerProvider.d.ts
|
|
728
|
-
declare const envSchema:
|
|
729
|
-
SERVER_PORT:
|
|
730
|
-
SERVER_HOST:
|
|
729
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
730
|
+
SERVER_PORT: _alepha_core1.TInteger;
|
|
731
|
+
SERVER_HOST: _alepha_core1.TString;
|
|
731
732
|
}>;
|
|
732
733
|
declare module "alepha" {
|
|
733
734
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -735,29 +736,29 @@ declare module "alepha" {
|
|
|
735
736
|
declare class NodeHttpServerProvider extends ServerProvider {
|
|
736
737
|
protected readonly alepha: Alepha;
|
|
737
738
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
738
|
-
protected readonly log:
|
|
739
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
739
740
|
protected readonly env: {
|
|
740
741
|
SERVER_PORT: number;
|
|
741
742
|
SERVER_HOST: string;
|
|
742
743
|
};
|
|
743
744
|
protected readonly router: ServerRouterProvider;
|
|
744
745
|
protected readonly server: http0.Server<typeof IncomingMessage, typeof ServerResponse$1>;
|
|
745
|
-
protected readonly onNodeRequest:
|
|
746
|
+
protected readonly onNodeRequest: _alepha_core1.HookDescriptor<"node:request">;
|
|
746
747
|
handle(req: IncomingMessage, res: ServerResponse$1): Promise<void>;
|
|
747
748
|
get hostname(): string;
|
|
748
|
-
readonly start:
|
|
749
|
-
protected readonly stop:
|
|
749
|
+
readonly start: _alepha_core1.HookDescriptor<"start">;
|
|
750
|
+
protected readonly stop: _alepha_core1.HookDescriptor<"stop">;
|
|
750
751
|
protected listen(): Promise<void>;
|
|
751
752
|
protected close(): Promise<void>;
|
|
752
753
|
}
|
|
753
754
|
//#endregion
|
|
754
755
|
//#region src/providers/ServerLoggerProvider.d.ts
|
|
755
756
|
declare class ServerLoggerProvider {
|
|
756
|
-
protected readonly log:
|
|
757
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
757
758
|
protected readonly alepha: Alepha;
|
|
758
|
-
readonly onRequest:
|
|
759
|
-
readonly onError:
|
|
760
|
-
readonly onResponse:
|
|
759
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
760
|
+
readonly onError: _alepha_core1.HookDescriptor<"server:onError">;
|
|
761
|
+
readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
|
|
761
762
|
}
|
|
762
763
|
//#endregion
|
|
763
764
|
//#region src/providers/ServerNotReadyProvider.d.ts
|
|
@@ -770,7 +771,7 @@ declare class ServerLoggerProvider {
|
|
|
770
771
|
*/
|
|
771
772
|
declare class ServerNotReadyProvider {
|
|
772
773
|
protected readonly alepha: Alepha;
|
|
773
|
-
readonly onRequest:
|
|
774
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
774
775
|
}
|
|
775
776
|
//#endregion
|
|
776
777
|
//#region src/index.d.ts
|
|
@@ -842,7 +843,7 @@ declare module "alepha" {
|
|
|
842
843
|
* @see {@link $action}
|
|
843
844
|
* @module alepha.server
|
|
844
845
|
*/
|
|
845
|
-
declare const AlephaServer:
|
|
846
|
+
declare const AlephaServer: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
846
847
|
//#endregion
|
|
847
848
|
export { $action, $route, ActionDescriptor, ActionDescriptorFn, ActionDescriptorOptions, AlephaServer, BadRequestError, ClientRequestEntry, ClientRequestEntryContainer, ClientRequestOptions, ClientRequestResponse, ConflictError, ErrorSchema, FetchActionArgs, FetchOptions, FetchResponse, ForbiddenError, HttpAction, HttpClient, HttpClientPendingRequests, HttpError, HttpErrorLike, NodeHttpServerProvider, NotFoundError, Ok, RequestConfigSchema, RequestInitWithOptions, ResponseBodyType, ResponseKind, RouteDescriptor, RouteDescriptorOptions, RouteMethod, ServerActionHandler, ServerActionRequest, ServerHandler, ServerLoggerProvider, ServerNotReadyProvider, ServerProvider, ServerRawRequest, ServerReply, ServerRequest, ServerRequestConfig, ServerRequestConfigEntry, ServerResponse, ServerResponseBody, ServerRoute, ServerRouteMatcher, ServerRouteRequestHandler, ServerRouterProvider, ServerTimingProvider, TRequestBody, TResponseBody, UnauthorizedError, ValidationError, errorNameByStatus, errorSchema, isHttpError, isMultipart, okSchema, routeMethods };
|
|
848
849
|
//# sourceMappingURL=index.d.ts.map
|
package/ui.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as _alepha_react0 from "alepha/react";
|
|
|
4
4
|
import { RouterGoOptions, UseActiveOptions } from "alepha/react";
|
|
5
5
|
import { ModalsProviderProps } from "@mantine/modals";
|
|
6
6
|
import { AutocompleteProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, MantineProviderProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SwitchProps, TableProps, TagsInputProps, TextInputProps, TextareaProps, TooltipProps } from "@mantine/core";
|
|
7
|
-
import * as
|
|
8
|
-
import React$1, { ComponentType, ReactNode } from "react";
|
|
7
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
8
|
+
import React$1, { ComponentType, FC, ReactNode } from "react";
|
|
9
9
|
import * as _mantine_notifications0 from "@mantine/notifications";
|
|
10
10
|
import { NotificationData, NotificationsProps } from "@mantine/notifications";
|
|
11
11
|
import { FormModel, InputField } from "alepha/react/form";
|
|
@@ -48,7 +48,7 @@ interface ControlSelectProps extends GenericControlProps {
|
|
|
48
48
|
*
|
|
49
49
|
* Automatically detects enum values and array types from schema.
|
|
50
50
|
*/
|
|
51
|
-
declare const ControlSelect: (props: ControlSelectProps) =>
|
|
51
|
+
declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime2.JSX.Element | null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/components/Control.d.ts
|
|
54
54
|
interface ControlProps extends GenericControlProps {
|
|
@@ -86,7 +86,7 @@ interface ControlProps extends GenericControlProps {
|
|
|
86
86
|
*
|
|
87
87
|
* Automatically handles labels, descriptions, error messages, required state, and default icons.
|
|
88
88
|
*/
|
|
89
|
-
declare const Control: (_props: ControlProps) =>
|
|
89
|
+
declare const Control: (_props: ControlProps) => react_jsx_runtime2.JSX.Element | null;
|
|
90
90
|
type CustomControlProps = {
|
|
91
91
|
defaultValue: any;
|
|
92
92
|
onChange: (value: any) => void;
|
|
@@ -161,7 +161,7 @@ interface ActionCommonProps extends ButtonProps {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
type ActionProps = ActionCommonProps & (ActiveHrefProps | ActionClickProps | ActionSubmitProps | {});
|
|
164
|
-
declare const Action: (_props: ActionProps) =>
|
|
164
|
+
declare const Action: (_props: ActionProps) => react_jsx_runtime2.JSX.Element;
|
|
165
165
|
interface ActionSubmitProps extends ButtonProps {
|
|
166
166
|
form: FormModel<any>;
|
|
167
167
|
}
|
|
@@ -181,7 +181,7 @@ interface OmnibarProps {
|
|
|
181
181
|
searchPlaceholder?: string;
|
|
182
182
|
nothingFound?: ReactNode;
|
|
183
183
|
}
|
|
184
|
-
declare const Omnibar: (props: OmnibarProps) =>
|
|
184
|
+
declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime2.JSX.Element;
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/components/AlephaMantineProvider.d.ts
|
|
187
187
|
interface AlephaMantineProviderProps {
|
|
@@ -193,7 +193,7 @@ interface AlephaMantineProviderProps {
|
|
|
193
193
|
modals?: ModalsProviderProps;
|
|
194
194
|
omnibar?: OmnibarProps;
|
|
195
195
|
}
|
|
196
|
-
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) =>
|
|
196
|
+
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime2.JSX.Element;
|
|
197
197
|
//#endregion
|
|
198
198
|
//#region src/components/ControlDate.d.ts
|
|
199
199
|
interface ControlDateProps extends GenericControlProps {
|
|
@@ -211,7 +211,7 @@ interface ControlDateProps extends GenericControlProps {
|
|
|
211
211
|
*
|
|
212
212
|
* Automatically detects date formats from schema and renders appropriate picker.
|
|
213
213
|
*/
|
|
214
|
-
declare const ControlDate: (props: ControlDateProps) =>
|
|
214
|
+
declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime2.JSX.Element | null;
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region src/components/DarkModeButton.d.ts
|
|
217
217
|
interface DarkModeButtonProps {
|
|
@@ -219,7 +219,7 @@ interface DarkModeButtonProps {
|
|
|
219
219
|
size?: string | number;
|
|
220
220
|
variant?: "filled" | "light" | "outline" | "default" | "subtle" | "transparent";
|
|
221
221
|
}
|
|
222
|
-
declare const DarkModeButton: (props: DarkModeButtonProps) =>
|
|
222
|
+
declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime2.JSX.Element;
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/components/DataTable.d.ts
|
|
225
225
|
type SortDirection = "asc" | "desc" | null;
|
|
@@ -330,7 +330,7 @@ declare function DataTable<T = any>({
|
|
|
330
330
|
minHeight,
|
|
331
331
|
maxHeight,
|
|
332
332
|
...tableProps
|
|
333
|
-
}: DataTableProps<T>):
|
|
333
|
+
}: DataTableProps<T>): react_jsx_runtime2.JSX.Element;
|
|
334
334
|
//#endregion
|
|
335
335
|
//#region src/services/DialogService.d.ts
|
|
336
336
|
interface BaseDialogOptions extends Partial<ModalProps> {
|
|
@@ -425,25 +425,25 @@ declare class DialogService {
|
|
|
425
425
|
declare function AlertDialog({
|
|
426
426
|
options,
|
|
427
427
|
onClose
|
|
428
|
-
}: AlertDialogProps):
|
|
428
|
+
}: AlertDialogProps): react_jsx_runtime2.JSX.Element;
|
|
429
429
|
//#endregion
|
|
430
430
|
//#region src/components/dialogs/ConfirmDialog.d.ts
|
|
431
431
|
declare function ConfirmDialog({
|
|
432
432
|
options,
|
|
433
433
|
onConfirm
|
|
434
|
-
}: ConfirmDialogProps):
|
|
434
|
+
}: ConfirmDialogProps): react_jsx_runtime2.JSX.Element;
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/components/dialogs/PromptDialog.d.ts
|
|
437
437
|
declare function PromptDialog({
|
|
438
438
|
options,
|
|
439
439
|
onSubmit
|
|
440
|
-
}: PromptDialogProps):
|
|
440
|
+
}: PromptDialogProps): react_jsx_runtime2.JSX.Element;
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/components/Sidebar.d.ts
|
|
443
443
|
interface MenuItem {
|
|
444
444
|
id: string;
|
|
445
445
|
label: string;
|
|
446
|
-
icon?:
|
|
446
|
+
icon?: ReactNode;
|
|
447
447
|
href?: string;
|
|
448
448
|
activeStartsWith?: boolean;
|
|
449
449
|
onClick?: () => void;
|
|
@@ -456,7 +456,7 @@ interface SidebarProps {
|
|
|
456
456
|
showSearchButton?: boolean;
|
|
457
457
|
onSearchClick?: () => void;
|
|
458
458
|
}
|
|
459
|
-
declare const Sidebar:
|
|
459
|
+
declare const Sidebar: FC<SidebarProps>;
|
|
460
460
|
interface SidebarItemProps {
|
|
461
461
|
item: MenuItem;
|
|
462
462
|
level: number;
|
|
@@ -509,7 +509,7 @@ interface TypeFormProps<T extends TObject> {
|
|
|
509
509
|
* return <TypeForm form={form} columns={2} />;
|
|
510
510
|
* ```
|
|
511
511
|
*/
|
|
512
|
-
declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) =>
|
|
512
|
+
declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) => react_jsx_runtime2.JSX.Element | null;
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region src/hooks/useDialog.d.ts
|
|
515
515
|
/**
|