alepha 0.11.5 → 0.11.7
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/LICENSE +1 -1
- package/README.md +15 -100
- package/api/files.d.ts +168 -169
- package/api/jobs.d.ts +263 -154
- package/api/notifications.d.ts +28 -29
- package/api/users.d.ts +476 -477
- package/batch.d.ts +59 -493
- package/bucket.d.ts +20 -11
- package/cache/redis.d.ts +1 -1
- package/cache.d.ts +1 -1
- package/command.d.ts +24 -7
- package/core.d.ts +299 -222
- package/datetime.d.ts +4 -29
- package/devtools.d.ts +166 -284
- package/email.d.ts +45 -2
- package/fake.d.ts +1 -1
- package/file.d.ts +1 -1
- package/lock/redis.d.ts +1 -1
- package/lock.d.ts +1 -1
- package/logger.d.ts +11 -9
- package/package.json +51 -51
- package/postgres.d.ts +480 -198
- package/queue/redis.d.ts +1 -1
- package/queue.d.ts +1 -1
- package/react/auth.d.ts +7 -2
- package/react/form.d.ts +39 -16
- package/react/head.d.ts +1 -1
- package/react/i18n.d.ts +2 -2
- package/react.d.ts +66 -41
- package/redis.d.ts +1 -1
- package/retry.d.ts +84 -21
- package/scheduler.d.ts +1 -1
- package/security.d.ts +29 -29
- package/server/cache.d.ts +1 -1
- package/server/compress.d.ts +9 -3
- package/server/cookies.d.ts +1 -1
- package/server/cors.d.ts +28 -10
- package/server/health.d.ts +18 -19
- package/server/helmet.d.ts +44 -15
- package/server/links.d.ts +37 -31
- package/server/metrics.d.ts +1 -1
- package/server/multipart.d.ts +1 -1
- package/server/proxy.d.ts +1 -1
- package/server/security.d.ts +8 -3
- package/server/static.d.ts +1 -1
- package/server/swagger.d.ts +19 -6
- package/server.d.ts +1 -1
- package/topic/redis.d.ts +1 -1
- package/topic.d.ts +1 -1
- package/ui.d.ts +142 -12
- package/vite.d.ts +2 -2
package/datetime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _alepha_core1 from "alepha";
|
|
2
|
-
import { Alepha, Descriptor, KIND
|
|
2
|
+
import { Alepha, Descriptor, KIND } from "alepha";
|
|
3
3
|
import "dayjs/plugin/relativeTime.js";
|
|
4
4
|
import dayjsDuration from "dayjs/plugin/duration.js";
|
|
5
5
|
import "dayjs/plugin/utc.js";
|
|
@@ -8,24 +8,13 @@ import "dayjs/plugin/localizedFormat.js";
|
|
|
8
8
|
import "dayjs/locale/ar.js";
|
|
9
9
|
import "dayjs/locale/fr.js";
|
|
10
10
|
import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";
|
|
11
|
-
import * as typebox0 from "typebox";
|
|
12
|
-
import * as dayjs_plugin_duration0 from "dayjs/plugin/duration";
|
|
13
11
|
|
|
14
|
-
//#region src/providers/DateTimeTypeProvider.d.ts
|
|
15
|
-
declare const datetime: (options?: TStringOptions) => typebox0.TCodec<typebox0.TString, DayjsApi.Dayjs>;
|
|
16
|
-
declare const date: (options?: TStringOptions) => typebox0.TCodec<typebox0.TString, DayjsApi.Dayjs>;
|
|
17
|
-
declare const time: (options?: TStringOptions) => typebox0.TCodec<typebox0.TString, DayjsApi.Dayjs>;
|
|
18
|
-
declare const duration: (options?: TStringOptions) => typebox0.TCodec<typebox0.TString, dayjs_plugin_duration0.Duration>;
|
|
19
|
-
declare const isDateTimeSchema: (schema: unknown) => schema is ReturnType<typeof datetime>;
|
|
20
|
-
declare const isDateSchema: (schema: unknown) => schema is ReturnType<typeof date>;
|
|
21
|
-
declare const isTimeSchema: (schema: unknown) => schema is ReturnType<typeof time>;
|
|
22
|
-
declare const isDurationSchema: (schema: unknown) => schema is ReturnType<typeof duration>;
|
|
23
|
-
//#endregion
|
|
24
12
|
//#region src/providers/DateTimeProvider.d.ts
|
|
25
13
|
type DateTime = DayjsApi.Dayjs;
|
|
26
14
|
type Duration = dayjsDuration.Duration;
|
|
27
15
|
type DurationLike = number | dayjsDuration.Duration | [number, ManipulateType];
|
|
28
16
|
declare const dayjs: typeof DayjsApi;
|
|
17
|
+
declare const isDateTime: (value: unknown) => value is DateTime;
|
|
29
18
|
declare class DateTimeProvider {
|
|
30
19
|
static PLUGINS: Array<PluginFunc<any>>;
|
|
31
20
|
protected alepha: Alepha;
|
|
@@ -149,21 +138,7 @@ declare class IntervalDescriptor extends Descriptor<IntervalDescriptorOptions> {
|
|
|
149
138
|
}
|
|
150
139
|
//#endregion
|
|
151
140
|
//#region src/index.d.ts
|
|
152
|
-
declare
|
|
153
|
-
interface TypeProvider {
|
|
154
|
-
datetime: typeof datetime;
|
|
155
|
-
date: typeof date;
|
|
156
|
-
time: typeof time;
|
|
157
|
-
duration: typeof duration;
|
|
158
|
-
}
|
|
159
|
-
interface TypeGuard {
|
|
160
|
-
isDateTime: typeof isDateTimeSchema;
|
|
161
|
-
isDate: typeof isDateSchema;
|
|
162
|
-
isTime: typeof isTimeSchema;
|
|
163
|
-
isDuration: typeof isDurationSchema;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
declare const AlephaDateTime: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
141
|
+
declare const AlephaDateTime: _alepha_core1.Service<_alepha_core1.Module>;
|
|
167
142
|
//#endregion
|
|
168
|
-
export { $interval, AlephaDateTime, DateTime, DateTimeProvider, Duration, DurationLike, Interval, IntervalDescriptor, IntervalDescriptorOptions, Timeout,
|
|
143
|
+
export { $interval, AlephaDateTime, DateTime, DateTimeProvider, Duration, DurationLike, Interval, IntervalDescriptor, IntervalDescriptorOptions, Timeout, dayjs, isDateTime };
|
|
169
144
|
//# sourceMappingURL=index.d.ts.map
|
package/devtools.d.ts
CHANGED
|
@@ -1,345 +1,227 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core0 from "alepha";
|
|
2
2
|
import { Alepha, Static } from "alepha";
|
|
3
3
|
import * as _alepha_logger0 from "alepha/logger";
|
|
4
|
-
import
|
|
5
|
-
import * as _alepha_server0 from "alepha/server";
|
|
6
|
-
import { ServerProvider } from "alepha/server";
|
|
7
|
-
import * as _alepha_server_static0 from "alepha/server/static";
|
|
8
|
-
import * as typebox156 from "typebox";
|
|
9
|
-
import * as dayjs0 from "dayjs";
|
|
4
|
+
import * as typebox9 from "typebox";
|
|
10
5
|
|
|
11
6
|
//#region src/schemas/DevActionMetadata.d.ts
|
|
12
|
-
declare const devActionMetadataSchema:
|
|
13
|
-
name:
|
|
14
|
-
group:
|
|
15
|
-
method:
|
|
16
|
-
path:
|
|
17
|
-
prefix:
|
|
18
|
-
fullPath:
|
|
19
|
-
description:
|
|
20
|
-
summary:
|
|
21
|
-
disabled:
|
|
22
|
-
secure:
|
|
23
|
-
hide:
|
|
24
|
-
body:
|
|
25
|
-
params:
|
|
26
|
-
query:
|
|
27
|
-
response:
|
|
28
|
-
bodyContentType:
|
|
7
|
+
declare const devActionMetadataSchema: typebox9.TObject<{
|
|
8
|
+
name: typebox9.TString;
|
|
9
|
+
group: typebox9.TString;
|
|
10
|
+
method: typebox9.TString;
|
|
11
|
+
path: typebox9.TString;
|
|
12
|
+
prefix: typebox9.TString;
|
|
13
|
+
fullPath: typebox9.TString;
|
|
14
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
15
|
+
summary: typebox9.TOptional<typebox9.TString>;
|
|
16
|
+
disabled: typebox9.TOptional<typebox9.TBoolean>;
|
|
17
|
+
secure: typebox9.TOptional<typebox9.TBoolean>;
|
|
18
|
+
hide: typebox9.TOptional<typebox9.TBoolean>;
|
|
19
|
+
body: typebox9.TOptional<typebox9.TAny>;
|
|
20
|
+
params: typebox9.TOptional<typebox9.TAny>;
|
|
21
|
+
query: typebox9.TOptional<typebox9.TAny>;
|
|
22
|
+
response: typebox9.TOptional<typebox9.TAny>;
|
|
23
|
+
bodyContentType: typebox9.TOptional<typebox9.TString>;
|
|
29
24
|
}>;
|
|
30
25
|
type DevActionMetadata = Static<typeof devActionMetadataSchema>;
|
|
31
26
|
//#endregion
|
|
32
27
|
//#region src/schemas/DevBucketMetadata.d.ts
|
|
33
|
-
declare const devBucketMetadataSchema:
|
|
34
|
-
name:
|
|
35
|
-
description:
|
|
36
|
-
mimeTypes:
|
|
37
|
-
maxSize:
|
|
38
|
-
provider:
|
|
28
|
+
declare const devBucketMetadataSchema: typebox9.TObject<{
|
|
29
|
+
name: typebox9.TString;
|
|
30
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
31
|
+
mimeTypes: typebox9.TOptional<typebox9.TArray<typebox9.TString>>;
|
|
32
|
+
maxSize: typebox9.TOptional<typebox9.TNumber>;
|
|
33
|
+
provider: typebox9.TString;
|
|
39
34
|
}>;
|
|
40
35
|
type DevBucketMetadata = Static<typeof devBucketMetadataSchema>;
|
|
41
36
|
//#endregion
|
|
42
37
|
//#region src/schemas/DevCacheMetadata.d.ts
|
|
43
|
-
declare const devCacheMetadataSchema:
|
|
44
|
-
name:
|
|
45
|
-
ttl:
|
|
46
|
-
disabled:
|
|
47
|
-
provider:
|
|
38
|
+
declare const devCacheMetadataSchema: typebox9.TObject<{
|
|
39
|
+
name: typebox9.TString;
|
|
40
|
+
ttl: typebox9.TOptional<typebox9.TAny>;
|
|
41
|
+
disabled: typebox9.TOptional<typebox9.TBoolean>;
|
|
42
|
+
provider: typebox9.TString;
|
|
48
43
|
}>;
|
|
49
44
|
type DevCacheMetadata = Static<typeof devCacheMetadataSchema>;
|
|
50
45
|
//#endregion
|
|
51
46
|
//#region src/schemas/DevMetadata.d.ts
|
|
52
|
-
declare const devMetadataSchema:
|
|
53
|
-
actions:
|
|
54
|
-
name:
|
|
55
|
-
group:
|
|
56
|
-
method:
|
|
57
|
-
path:
|
|
58
|
-
prefix:
|
|
59
|
-
fullPath:
|
|
60
|
-
description:
|
|
61
|
-
summary:
|
|
62
|
-
disabled:
|
|
63
|
-
secure:
|
|
64
|
-
hide:
|
|
65
|
-
body:
|
|
66
|
-
params:
|
|
67
|
-
query:
|
|
68
|
-
response:
|
|
69
|
-
bodyContentType:
|
|
47
|
+
declare const devMetadataSchema: typebox9.TObject<{
|
|
48
|
+
actions: typebox9.TArray<typebox9.TObject<{
|
|
49
|
+
name: typebox9.TString;
|
|
50
|
+
group: typebox9.TString;
|
|
51
|
+
method: typebox9.TString;
|
|
52
|
+
path: typebox9.TString;
|
|
53
|
+
prefix: typebox9.TString;
|
|
54
|
+
fullPath: typebox9.TString;
|
|
55
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
56
|
+
summary: typebox9.TOptional<typebox9.TString>;
|
|
57
|
+
disabled: typebox9.TOptional<typebox9.TBoolean>;
|
|
58
|
+
secure: typebox9.TOptional<typebox9.TBoolean>;
|
|
59
|
+
hide: typebox9.TOptional<typebox9.TBoolean>;
|
|
60
|
+
body: typebox9.TOptional<typebox9.TAny>;
|
|
61
|
+
params: typebox9.TOptional<typebox9.TAny>;
|
|
62
|
+
query: typebox9.TOptional<typebox9.TAny>;
|
|
63
|
+
response: typebox9.TOptional<typebox9.TAny>;
|
|
64
|
+
bodyContentType: typebox9.TOptional<typebox9.TString>;
|
|
70
65
|
}>>;
|
|
71
|
-
queues:
|
|
72
|
-
name:
|
|
73
|
-
description:
|
|
74
|
-
schema:
|
|
75
|
-
provider:
|
|
66
|
+
queues: typebox9.TArray<typebox9.TObject<{
|
|
67
|
+
name: typebox9.TString;
|
|
68
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
69
|
+
schema: typebox9.TOptional<typebox9.TAny>;
|
|
70
|
+
provider: typebox9.TString;
|
|
76
71
|
}>>;
|
|
77
|
-
schedulers:
|
|
78
|
-
name:
|
|
79
|
-
description:
|
|
80
|
-
cron:
|
|
81
|
-
interval:
|
|
82
|
-
lock:
|
|
72
|
+
schedulers: typebox9.TArray<typebox9.TObject<{
|
|
73
|
+
name: typebox9.TString;
|
|
74
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
75
|
+
cron: typebox9.TOptional<typebox9.TString>;
|
|
76
|
+
interval: typebox9.TOptional<typebox9.TAny>;
|
|
77
|
+
lock: typebox9.TOptional<typebox9.TBoolean>;
|
|
83
78
|
}>>;
|
|
84
|
-
topics:
|
|
85
|
-
name:
|
|
86
|
-
description:
|
|
87
|
-
schema:
|
|
88
|
-
provider:
|
|
79
|
+
topics: typebox9.TArray<typebox9.TObject<{
|
|
80
|
+
name: typebox9.TString;
|
|
81
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
82
|
+
schema: typebox9.TOptional<typebox9.TAny>;
|
|
83
|
+
provider: typebox9.TString;
|
|
89
84
|
}>>;
|
|
90
|
-
buckets:
|
|
91
|
-
name:
|
|
92
|
-
description:
|
|
93
|
-
mimeTypes:
|
|
94
|
-
maxSize:
|
|
95
|
-
provider:
|
|
85
|
+
buckets: typebox9.TArray<typebox9.TObject<{
|
|
86
|
+
name: typebox9.TString;
|
|
87
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
88
|
+
mimeTypes: typebox9.TOptional<typebox9.TArray<typebox9.TString>>;
|
|
89
|
+
maxSize: typebox9.TOptional<typebox9.TNumber>;
|
|
90
|
+
provider: typebox9.TString;
|
|
96
91
|
}>>;
|
|
97
|
-
realms:
|
|
98
|
-
name:
|
|
99
|
-
description:
|
|
100
|
-
roles:
|
|
101
|
-
type:
|
|
102
|
-
settings:
|
|
103
|
-
accessTokenExpiration:
|
|
104
|
-
refreshTokenExpiration:
|
|
105
|
-
hasOnCreateSession:
|
|
106
|
-
hasOnRefreshSession:
|
|
107
|
-
hasOnDeleteSession:
|
|
92
|
+
realms: typebox9.TArray<typebox9.TObject<{
|
|
93
|
+
name: typebox9.TString;
|
|
94
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
95
|
+
roles: typebox9.TOptional<typebox9.TArray<typebox9.TAny>>;
|
|
96
|
+
type: typebox9.TUnsafe<"internal" | "external">;
|
|
97
|
+
settings: typebox9.TOptional<typebox9.TObject<{
|
|
98
|
+
accessTokenExpiration: typebox9.TOptional<typebox9.TAny>;
|
|
99
|
+
refreshTokenExpiration: typebox9.TOptional<typebox9.TAny>;
|
|
100
|
+
hasOnCreateSession: typebox9.TBoolean;
|
|
101
|
+
hasOnRefreshSession: typebox9.TBoolean;
|
|
102
|
+
hasOnDeleteSession: typebox9.TBoolean;
|
|
108
103
|
}>>;
|
|
109
104
|
}>>;
|
|
110
|
-
caches:
|
|
111
|
-
name:
|
|
112
|
-
ttl:
|
|
113
|
-
disabled:
|
|
114
|
-
provider:
|
|
105
|
+
caches: typebox9.TArray<typebox9.TObject<{
|
|
106
|
+
name: typebox9.TString;
|
|
107
|
+
ttl: typebox9.TOptional<typebox9.TAny>;
|
|
108
|
+
disabled: typebox9.TOptional<typebox9.TBoolean>;
|
|
109
|
+
provider: typebox9.TString;
|
|
115
110
|
}>>;
|
|
116
|
-
pages:
|
|
117
|
-
name:
|
|
118
|
-
description:
|
|
119
|
-
path:
|
|
120
|
-
params:
|
|
121
|
-
query:
|
|
122
|
-
hasComponent:
|
|
123
|
-
hasLazy:
|
|
124
|
-
hasResolve:
|
|
125
|
-
hasChildren:
|
|
126
|
-
hasParent:
|
|
127
|
-
hasErrorHandler:
|
|
128
|
-
static:
|
|
129
|
-
cache:
|
|
130
|
-
client:
|
|
131
|
-
animation:
|
|
111
|
+
pages: typebox9.TArray<typebox9.TObject<{
|
|
112
|
+
name: typebox9.TString;
|
|
113
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
114
|
+
path: typebox9.TOptional<typebox9.TString>;
|
|
115
|
+
params: typebox9.TOptional<typebox9.TAny>;
|
|
116
|
+
query: typebox9.TOptional<typebox9.TAny>;
|
|
117
|
+
hasComponent: typebox9.TBoolean;
|
|
118
|
+
hasLazy: typebox9.TBoolean;
|
|
119
|
+
hasResolve: typebox9.TBoolean;
|
|
120
|
+
hasChildren: typebox9.TBoolean;
|
|
121
|
+
hasParent: typebox9.TBoolean;
|
|
122
|
+
hasErrorHandler: typebox9.TBoolean;
|
|
123
|
+
static: typebox9.TOptional<typebox9.TBoolean>;
|
|
124
|
+
cache: typebox9.TOptional<typebox9.TAny>;
|
|
125
|
+
client: typebox9.TOptional<typebox9.TAny>;
|
|
126
|
+
animation: typebox9.TOptional<typebox9.TAny>;
|
|
132
127
|
}>>;
|
|
133
|
-
providers:
|
|
134
|
-
name:
|
|
135
|
-
module:
|
|
136
|
-
dependencies:
|
|
137
|
-
aliases:
|
|
128
|
+
providers: typebox9.TArray<typebox9.TObject<{
|
|
129
|
+
name: typebox9.TString;
|
|
130
|
+
module: typebox9.TOptional<typebox9.TString>;
|
|
131
|
+
dependencies: typebox9.TArray<typebox9.TString>;
|
|
132
|
+
aliases: typebox9.TOptional<typebox9.TArray<typebox9.TString>>;
|
|
138
133
|
}>>;
|
|
139
|
-
modules:
|
|
140
|
-
name:
|
|
141
|
-
providers:
|
|
134
|
+
modules: typebox9.TArray<typebox9.TObject<{
|
|
135
|
+
name: typebox9.TString;
|
|
136
|
+
providers: typebox9.TArray<typebox9.TString>;
|
|
142
137
|
}>>;
|
|
143
138
|
}>;
|
|
144
139
|
type DevMetadata = Static<typeof devMetadataSchema>;
|
|
145
140
|
//#endregion
|
|
146
141
|
//#region src/schemas/DevModuleMetadata.d.ts
|
|
147
|
-
declare const devModuleMetadataSchema:
|
|
148
|
-
name:
|
|
149
|
-
providers:
|
|
142
|
+
declare const devModuleMetadataSchema: typebox9.TObject<{
|
|
143
|
+
name: typebox9.TString;
|
|
144
|
+
providers: typebox9.TArray<typebox9.TString>;
|
|
150
145
|
}>;
|
|
151
146
|
type DevModuleMetadata = Static<typeof devModuleMetadataSchema>;
|
|
152
147
|
//#endregion
|
|
153
148
|
//#region src/schemas/DevPageMetadata.d.ts
|
|
154
|
-
declare const devPageMetadataSchema:
|
|
155
|
-
name:
|
|
156
|
-
description:
|
|
157
|
-
path:
|
|
158
|
-
params:
|
|
159
|
-
query:
|
|
160
|
-
hasComponent:
|
|
161
|
-
hasLazy:
|
|
162
|
-
hasResolve:
|
|
163
|
-
hasChildren:
|
|
164
|
-
hasParent:
|
|
165
|
-
hasErrorHandler:
|
|
166
|
-
static:
|
|
167
|
-
cache:
|
|
168
|
-
client:
|
|
169
|
-
animation:
|
|
149
|
+
declare const devPageMetadataSchema: typebox9.TObject<{
|
|
150
|
+
name: typebox9.TString;
|
|
151
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
152
|
+
path: typebox9.TOptional<typebox9.TString>;
|
|
153
|
+
params: typebox9.TOptional<typebox9.TAny>;
|
|
154
|
+
query: typebox9.TOptional<typebox9.TAny>;
|
|
155
|
+
hasComponent: typebox9.TBoolean;
|
|
156
|
+
hasLazy: typebox9.TBoolean;
|
|
157
|
+
hasResolve: typebox9.TBoolean;
|
|
158
|
+
hasChildren: typebox9.TBoolean;
|
|
159
|
+
hasParent: typebox9.TBoolean;
|
|
160
|
+
hasErrorHandler: typebox9.TBoolean;
|
|
161
|
+
static: typebox9.TOptional<typebox9.TBoolean>;
|
|
162
|
+
cache: typebox9.TOptional<typebox9.TAny>;
|
|
163
|
+
client: typebox9.TOptional<typebox9.TAny>;
|
|
164
|
+
animation: typebox9.TOptional<typebox9.TAny>;
|
|
170
165
|
}>;
|
|
171
166
|
type DevPageMetadata = Static<typeof devPageMetadataSchema>;
|
|
172
167
|
//#endregion
|
|
173
168
|
//#region src/schemas/DevProviderMetadata.d.ts
|
|
174
|
-
declare const devProviderMetadataSchema:
|
|
175
|
-
name:
|
|
176
|
-
module:
|
|
177
|
-
dependencies:
|
|
178
|
-
aliases:
|
|
169
|
+
declare const devProviderMetadataSchema: typebox9.TObject<{
|
|
170
|
+
name: typebox9.TString;
|
|
171
|
+
module: typebox9.TOptional<typebox9.TString>;
|
|
172
|
+
dependencies: typebox9.TArray<typebox9.TString>;
|
|
173
|
+
aliases: typebox9.TOptional<typebox9.TArray<typebox9.TString>>;
|
|
179
174
|
}>;
|
|
180
175
|
type DevProviderMetadata = Static<typeof devProviderMetadataSchema>;
|
|
181
176
|
//#endregion
|
|
182
177
|
//#region src/schemas/DevQueueMetadata.d.ts
|
|
183
|
-
declare const devQueueMetadataSchema:
|
|
184
|
-
name:
|
|
185
|
-
description:
|
|
186
|
-
schema:
|
|
187
|
-
provider:
|
|
178
|
+
declare const devQueueMetadataSchema: typebox9.TObject<{
|
|
179
|
+
name: typebox9.TString;
|
|
180
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
181
|
+
schema: typebox9.TOptional<typebox9.TAny>;
|
|
182
|
+
provider: typebox9.TString;
|
|
188
183
|
}>;
|
|
189
184
|
type DevQueueMetadata = Static<typeof devQueueMetadataSchema>;
|
|
190
185
|
//#endregion
|
|
191
186
|
//#region src/schemas/DevRealmMetadata.d.ts
|
|
192
|
-
declare const devRealmMetadataSchema:
|
|
193
|
-
name:
|
|
194
|
-
description:
|
|
195
|
-
roles:
|
|
196
|
-
type:
|
|
197
|
-
settings:
|
|
198
|
-
accessTokenExpiration:
|
|
199
|
-
refreshTokenExpiration:
|
|
200
|
-
hasOnCreateSession:
|
|
201
|
-
hasOnRefreshSession:
|
|
202
|
-
hasOnDeleteSession:
|
|
187
|
+
declare const devRealmMetadataSchema: typebox9.TObject<{
|
|
188
|
+
name: typebox9.TString;
|
|
189
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
190
|
+
roles: typebox9.TOptional<typebox9.TArray<typebox9.TAny>>;
|
|
191
|
+
type: typebox9.TUnsafe<"internal" | "external">;
|
|
192
|
+
settings: typebox9.TOptional<typebox9.TObject<{
|
|
193
|
+
accessTokenExpiration: typebox9.TOptional<typebox9.TAny>;
|
|
194
|
+
refreshTokenExpiration: typebox9.TOptional<typebox9.TAny>;
|
|
195
|
+
hasOnCreateSession: typebox9.TBoolean;
|
|
196
|
+
hasOnRefreshSession: typebox9.TBoolean;
|
|
197
|
+
hasOnDeleteSession: typebox9.TBoolean;
|
|
203
198
|
}>>;
|
|
204
199
|
}>;
|
|
205
200
|
type DevRealmMetadata = Static<typeof devRealmMetadataSchema>;
|
|
206
201
|
//#endregion
|
|
207
202
|
//#region src/schemas/DevSchedulerMetadata.d.ts
|
|
208
|
-
declare const devSchedulerMetadataSchema:
|
|
209
|
-
name:
|
|
210
|
-
description:
|
|
211
|
-
cron:
|
|
212
|
-
interval:
|
|
213
|
-
lock:
|
|
203
|
+
declare const devSchedulerMetadataSchema: typebox9.TObject<{
|
|
204
|
+
name: typebox9.TString;
|
|
205
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
206
|
+
cron: typebox9.TOptional<typebox9.TString>;
|
|
207
|
+
interval: typebox9.TOptional<typebox9.TAny>;
|
|
208
|
+
lock: typebox9.TOptional<typebox9.TBoolean>;
|
|
214
209
|
}>;
|
|
215
210
|
type DevSchedulerMetadata = Static<typeof devSchedulerMetadataSchema>;
|
|
216
211
|
//#endregion
|
|
217
212
|
//#region src/schemas/DevTopicMetadata.d.ts
|
|
218
|
-
declare const devTopicMetadataSchema:
|
|
219
|
-
name:
|
|
220
|
-
description:
|
|
221
|
-
schema:
|
|
222
|
-
provider:
|
|
213
|
+
declare const devTopicMetadataSchema: typebox9.TObject<{
|
|
214
|
+
name: typebox9.TString;
|
|
215
|
+
description: typebox9.TOptional<typebox9.TString>;
|
|
216
|
+
schema: typebox9.TOptional<typebox9.TAny>;
|
|
217
|
+
provider: typebox9.TString;
|
|
223
218
|
}>;
|
|
224
219
|
type DevTopicMetadata = Static<typeof devTopicMetadataSchema>;
|
|
225
220
|
//#endregion
|
|
226
|
-
//#region src/
|
|
227
|
-
declare class
|
|
221
|
+
//#region src/providers/DevToolsMetadataProvider.d.ts
|
|
222
|
+
declare class DevToolsMetadataProvider {
|
|
228
223
|
protected readonly alepha: Alepha;
|
|
229
|
-
protected readonly serverProvider: ServerProvider;
|
|
230
224
|
protected readonly log: _alepha_logger0.Logger;
|
|
231
|
-
protected readonly logs: LogEntry[];
|
|
232
|
-
protected readonly maxLogs = 10000;
|
|
233
|
-
protected readonly onStart: _alepha_core1.HookDescriptor<"start">;
|
|
234
|
-
protected readonly onLog: _alepha_core1.HookDescriptor<"log">;
|
|
235
|
-
protected readonly uiRoute: _alepha_server_static0.ServeDescriptor;
|
|
236
|
-
protected readonly metadataRoute: _alepha_server0.RouteDescriptor<{
|
|
237
|
-
response: typebox156.TObject<{
|
|
238
|
-
actions: typebox156.TArray<typebox156.TObject<{
|
|
239
|
-
name: typebox156.TString;
|
|
240
|
-
group: typebox156.TString;
|
|
241
|
-
method: typebox156.TString;
|
|
242
|
-
path: typebox156.TString;
|
|
243
|
-
prefix: typebox156.TString;
|
|
244
|
-
fullPath: typebox156.TString;
|
|
245
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
246
|
-
summary: typebox156.TOptional<typebox156.TString>;
|
|
247
|
-
disabled: typebox156.TOptional<typebox156.TBoolean>;
|
|
248
|
-
secure: typebox156.TOptional<typebox156.TBoolean>;
|
|
249
|
-
hide: typebox156.TOptional<typebox156.TBoolean>;
|
|
250
|
-
body: typebox156.TOptional<typebox156.TAny>;
|
|
251
|
-
params: typebox156.TOptional<typebox156.TAny>;
|
|
252
|
-
query: typebox156.TOptional<typebox156.TAny>;
|
|
253
|
-
response: typebox156.TOptional<typebox156.TAny>;
|
|
254
|
-
bodyContentType: typebox156.TOptional<typebox156.TString>;
|
|
255
|
-
}>>;
|
|
256
|
-
queues: typebox156.TArray<typebox156.TObject<{
|
|
257
|
-
name: typebox156.TString;
|
|
258
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
259
|
-
schema: typebox156.TOptional<typebox156.TAny>;
|
|
260
|
-
provider: typebox156.TString;
|
|
261
|
-
}>>;
|
|
262
|
-
schedulers: typebox156.TArray<typebox156.TObject<{
|
|
263
|
-
name: typebox156.TString;
|
|
264
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
265
|
-
cron: typebox156.TOptional<typebox156.TString>;
|
|
266
|
-
interval: typebox156.TOptional<typebox156.TAny>;
|
|
267
|
-
lock: typebox156.TOptional<typebox156.TBoolean>;
|
|
268
|
-
}>>;
|
|
269
|
-
topics: typebox156.TArray<typebox156.TObject<{
|
|
270
|
-
name: typebox156.TString;
|
|
271
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
272
|
-
schema: typebox156.TOptional<typebox156.TAny>;
|
|
273
|
-
provider: typebox156.TString;
|
|
274
|
-
}>>;
|
|
275
|
-
buckets: typebox156.TArray<typebox156.TObject<{
|
|
276
|
-
name: typebox156.TString;
|
|
277
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
278
|
-
mimeTypes: typebox156.TOptional<typebox156.TArray<typebox156.TString>>;
|
|
279
|
-
maxSize: typebox156.TOptional<typebox156.TNumber>;
|
|
280
|
-
provider: typebox156.TString;
|
|
281
|
-
}>>;
|
|
282
|
-
realms: typebox156.TArray<typebox156.TObject<{
|
|
283
|
-
name: typebox156.TString;
|
|
284
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
285
|
-
roles: typebox156.TOptional<typebox156.TArray<typebox156.TAny>>;
|
|
286
|
-
type: typebox156.TUnsafe<"internal" | "external">;
|
|
287
|
-
settings: typebox156.TOptional<typebox156.TObject<{
|
|
288
|
-
accessTokenExpiration: typebox156.TOptional<typebox156.TAny>;
|
|
289
|
-
refreshTokenExpiration: typebox156.TOptional<typebox156.TAny>;
|
|
290
|
-
hasOnCreateSession: typebox156.TBoolean;
|
|
291
|
-
hasOnRefreshSession: typebox156.TBoolean;
|
|
292
|
-
hasOnDeleteSession: typebox156.TBoolean;
|
|
293
|
-
}>>;
|
|
294
|
-
}>>;
|
|
295
|
-
caches: typebox156.TArray<typebox156.TObject<{
|
|
296
|
-
name: typebox156.TString;
|
|
297
|
-
ttl: typebox156.TOptional<typebox156.TAny>;
|
|
298
|
-
disabled: typebox156.TOptional<typebox156.TBoolean>;
|
|
299
|
-
provider: typebox156.TString;
|
|
300
|
-
}>>;
|
|
301
|
-
pages: typebox156.TArray<typebox156.TObject<{
|
|
302
|
-
name: typebox156.TString;
|
|
303
|
-
description: typebox156.TOptional<typebox156.TString>;
|
|
304
|
-
path: typebox156.TOptional<typebox156.TString>;
|
|
305
|
-
params: typebox156.TOptional<typebox156.TAny>;
|
|
306
|
-
query: typebox156.TOptional<typebox156.TAny>;
|
|
307
|
-
hasComponent: typebox156.TBoolean;
|
|
308
|
-
hasLazy: typebox156.TBoolean;
|
|
309
|
-
hasResolve: typebox156.TBoolean;
|
|
310
|
-
hasChildren: typebox156.TBoolean;
|
|
311
|
-
hasParent: typebox156.TBoolean;
|
|
312
|
-
hasErrorHandler: typebox156.TBoolean;
|
|
313
|
-
static: typebox156.TOptional<typebox156.TBoolean>;
|
|
314
|
-
cache: typebox156.TOptional<typebox156.TAny>;
|
|
315
|
-
client: typebox156.TOptional<typebox156.TAny>;
|
|
316
|
-
animation: typebox156.TOptional<typebox156.TAny>;
|
|
317
|
-
}>>;
|
|
318
|
-
providers: typebox156.TArray<typebox156.TObject<{
|
|
319
|
-
name: typebox156.TString;
|
|
320
|
-
module: typebox156.TOptional<typebox156.TString>;
|
|
321
|
-
dependencies: typebox156.TArray<typebox156.TString>;
|
|
322
|
-
aliases: typebox156.TOptional<typebox156.TArray<typebox156.TString>>;
|
|
323
|
-
}>>;
|
|
324
|
-
modules: typebox156.TArray<typebox156.TObject<{
|
|
325
|
-
name: typebox156.TString;
|
|
326
|
-
providers: typebox156.TArray<typebox156.TString>;
|
|
327
|
-
}>>;
|
|
328
|
-
}>;
|
|
329
|
-
}>;
|
|
330
|
-
protected readonly logsRoute: _alepha_server0.RouteDescriptor<{
|
|
331
|
-
response: typebox156.TArray<typebox156.TObject<{
|
|
332
|
-
level: typebox156.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
333
|
-
message: typebox156.TString;
|
|
334
|
-
service: typebox156.TString;
|
|
335
|
-
module: typebox156.TString;
|
|
336
|
-
context: typebox156.TOptional<typebox156.TString>;
|
|
337
|
-
app: typebox156.TOptional<typebox156.TString>;
|
|
338
|
-
data: typebox156.TOptional<typebox156.TAny>;
|
|
339
|
-
timestamp: typebox156.TCodec<typebox156.TString, dayjs0.Dayjs>;
|
|
340
|
-
}>>;
|
|
341
|
-
}>;
|
|
342
|
-
getLogs(): LogEntry[];
|
|
343
225
|
getActions(): DevActionMetadata[];
|
|
344
226
|
getQueues(): DevQueueMetadata[];
|
|
345
227
|
getSchedulers(): DevSchedulerMetadata[];
|
|
@@ -361,10 +243,10 @@ declare class DevCollectorProvider {
|
|
|
361
243
|
* This module provides comprehensive data collection capabilities for tracking application behavior,
|
|
362
244
|
* performance metrics, and debugging information in real-time.
|
|
363
245
|
*
|
|
364
|
-
* @see {@link
|
|
246
|
+
* @see {@link DevToolsMetadataProvider}
|
|
365
247
|
* @module alepha.devtools
|
|
366
248
|
*/
|
|
367
|
-
declare const AlephaDevtools:
|
|
249
|
+
declare const AlephaDevtools: _alepha_core0.Service<_alepha_core0.Module>;
|
|
368
250
|
//#endregion
|
|
369
|
-
export { AlephaDevtools, DevActionMetadata, DevBucketMetadata, DevCacheMetadata,
|
|
251
|
+
export { AlephaDevtools, DevActionMetadata, DevBucketMetadata, DevCacheMetadata, DevMetadata, DevModuleMetadata, DevPageMetadata, DevProviderMetadata, DevQueueMetadata, DevRealmMetadata, DevSchedulerMetadata, DevToolsMetadataProvider, DevTopicMetadata, devActionMetadataSchema, devBucketMetadataSchema, devCacheMetadataSchema, devMetadataSchema, devModuleMetadataSchema, devPageMetadataSchema, devProviderMetadataSchema, devQueueMetadataSchema, devRealmMetadataSchema, devSchedulerMetadataSchema, devTopicMetadataSchema };
|
|
370
252
|
//# sourceMappingURL=index.d.ts.map
|
package/email.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _alepha_core1 from "alepha";
|
|
2
|
+
import { Descriptor, InstantiableClass, KIND } from "alepha";
|
|
2
3
|
import * as _alepha_logger0 from "alepha/logger";
|
|
3
4
|
import { Transporter } from "nodemailer";
|
|
4
5
|
|
|
@@ -22,6 +23,43 @@ type EmailSendOptions = {
|
|
|
22
23
|
body: string;
|
|
23
24
|
};
|
|
24
25
|
//#endregion
|
|
26
|
+
//#region src/descriptors/$email.d.ts
|
|
27
|
+
declare const $email: {
|
|
28
|
+
(options?: EmailDescriptorOptions): EmailDescriptor;
|
|
29
|
+
[KIND]: typeof EmailDescriptor;
|
|
30
|
+
};
|
|
31
|
+
interface EmailDescriptorOptions {
|
|
32
|
+
name?: string;
|
|
33
|
+
provider?: InstantiableClass<EmailProvider> | "memory";
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Email descriptor for sending emails through various providers.
|
|
37
|
+
*
|
|
38
|
+
* Usage:
|
|
39
|
+
* ```typescript
|
|
40
|
+
* class MyService {
|
|
41
|
+
* private readonly welcomeEmail = $email({ name: "welcome" });
|
|
42
|
+
*
|
|
43
|
+
* async sendWelcome(userEmail: string, userName: string) {
|
|
44
|
+
* await this.welcomeEmail.send({
|
|
45
|
+
* to: userEmail,
|
|
46
|
+
* subject: "Welcome!",
|
|
47
|
+
* body: `<p>Hello ${userName}!</p>`
|
|
48
|
+
* });
|
|
49
|
+
* }
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare class EmailDescriptor extends Descriptor<EmailDescriptorOptions> {
|
|
54
|
+
protected readonly provider: EmailProvider;
|
|
55
|
+
get name(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Send an email using the configured provider.
|
|
58
|
+
*/
|
|
59
|
+
send(options: EmailSendOptions): Promise<void>;
|
|
60
|
+
protected $provider(): EmailProvider;
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
25
63
|
//#region src/errors/EmailError.d.ts
|
|
26
64
|
declare class EmailError extends Error {
|
|
27
65
|
constructor(message: string, cause?: Error);
|
|
@@ -126,6 +164,11 @@ declare module "alepha" {
|
|
|
126
164
|
provider: EmailProvider;
|
|
127
165
|
abort(): void;
|
|
128
166
|
};
|
|
167
|
+
"email:sent": {
|
|
168
|
+
to: string | string[];
|
|
169
|
+
template: string;
|
|
170
|
+
provider: EmailProvider;
|
|
171
|
+
};
|
|
129
172
|
}
|
|
130
173
|
}
|
|
131
174
|
/**
|
|
@@ -138,7 +181,7 @@ declare module "alepha" {
|
|
|
138
181
|
* @see {@link EmailProvider}
|
|
139
182
|
* @module alepha.email
|
|
140
183
|
*/
|
|
141
|
-
declare const AlephaEmail: _alepha_core1.Service<_alepha_core1.Module
|
|
184
|
+
declare const AlephaEmail: _alepha_core1.Service<_alepha_core1.Module>;
|
|
142
185
|
//#endregion
|
|
143
|
-
export { AlephaEmail, EmailError, EmailProvider, EmailRecord, EmailSendOptions, LocalEmailProvider, LocalEmailProviderOptions, MemoryEmailProvider, NodemailerEmailProvider, NodemailerEmailProviderOptions };
|
|
186
|
+
export { $email, AlephaEmail, EmailDescriptor, EmailDescriptorOptions, EmailError, EmailProvider, EmailRecord, EmailSendOptions, LocalEmailProvider, LocalEmailProviderOptions, MemoryEmailProvider, NodemailerEmailProvider, NodemailerEmailProviderOptions };
|
|
144
187
|
//# sourceMappingURL=index.d.ts.map
|