alepha 0.11.0 → 0.11.1
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/jobs.d.ts +133 -133
- package/api/notifications.d.ts +99 -99
- package/api/users.d.ts +22 -22
- package/command.d.ts +4 -4
- package/core.d.ts +2 -2
- package/package.json +50 -50
- package/postgres.d.ts +14 -14
- package/scheduler.d.ts +6 -6
- package/security.d.ts +6 -5
- package/server/cookies.d.ts +3 -2
- package/ui.d.ts +16 -16
package/api/notifications.d.ts
CHANGED
|
@@ -3,34 +3,34 @@ import { Alepha, Descriptor, KIND, Static, StaticEncode, TObject } from "alepha"
|
|
|
3
3
|
import * as _alepha_batch0 from "alepha/batch";
|
|
4
4
|
import { DateTimeProvider } from "alepha/datetime";
|
|
5
5
|
import * as _alepha_logger0 from "alepha/logger";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _alepha_postgres50 from "alepha/postgres";
|
|
7
7
|
import * as _alepha_queue0 from "alepha/queue";
|
|
8
8
|
import { EmailProvider } from "alepha/email";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
9
|
+
import * as typebox64 from "typebox";
|
|
10
|
+
import * as dayjs14 from "dayjs";
|
|
11
11
|
|
|
12
12
|
//#region src/controllers/NotificationController.d.ts
|
|
13
13
|
declare class NotificationController {}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/entities/notifications.d.ts
|
|
16
|
-
declare const notifications:
|
|
17
|
-
id:
|
|
18
|
-
version:
|
|
19
|
-
createdAt:
|
|
20
|
-
updatedAt:
|
|
21
|
-
type:
|
|
22
|
-
template:
|
|
23
|
-
category:
|
|
24
|
-
critical:
|
|
25
|
-
sensitive:
|
|
26
|
-
contact:
|
|
27
|
-
variables:
|
|
28
|
-
scheduledAt:
|
|
29
|
-
sentAt:
|
|
30
|
-
error:
|
|
31
|
-
at:
|
|
32
|
-
name:
|
|
33
|
-
message:
|
|
16
|
+
declare const notifications: _alepha_postgres50.EntityDescriptor<typebox64.TObject<{
|
|
17
|
+
id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
18
|
+
version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
19
|
+
createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
20
|
+
updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
21
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
22
|
+
template: typebox64.TString;
|
|
23
|
+
category: typebox64.TOptional<typebox64.TString>;
|
|
24
|
+
critical: typebox64.TOptional<typebox64.TBoolean>;
|
|
25
|
+
sensitive: typebox64.TOptional<typebox64.TBoolean>;
|
|
26
|
+
contact: typebox64.TString;
|
|
27
|
+
variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
28
|
+
scheduledAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
29
|
+
sentAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
30
|
+
error: typebox64.TOptional<typebox64.TObject<{
|
|
31
|
+
at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
|
|
32
|
+
name: typebox64.TString;
|
|
33
|
+
message: typebox64.TString;
|
|
34
34
|
}>>;
|
|
35
35
|
}>>;
|
|
36
36
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
@@ -48,24 +48,24 @@ interface SmsSendOptions {
|
|
|
48
48
|
declare class NotificationSenderService {
|
|
49
49
|
protected readonly alepha: Alepha;
|
|
50
50
|
protected readonly log: _alepha_logger0.Logger;
|
|
51
|
-
protected readonly notificationRepository:
|
|
52
|
-
id:
|
|
53
|
-
version:
|
|
54
|
-
createdAt:
|
|
55
|
-
updatedAt:
|
|
56
|
-
type:
|
|
57
|
-
template:
|
|
58
|
-
category:
|
|
59
|
-
critical:
|
|
60
|
-
sensitive:
|
|
61
|
-
contact:
|
|
62
|
-
variables:
|
|
63
|
-
scheduledAt:
|
|
64
|
-
sentAt:
|
|
65
|
-
error:
|
|
66
|
-
at:
|
|
67
|
-
name:
|
|
68
|
-
message:
|
|
51
|
+
protected readonly notificationRepository: _alepha_postgres50.RepositoryDescriptor<typebox64.TObject<{
|
|
52
|
+
id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
53
|
+
version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
54
|
+
createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
55
|
+
updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
56
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
57
|
+
template: typebox64.TString;
|
|
58
|
+
category: typebox64.TOptional<typebox64.TString>;
|
|
59
|
+
critical: typebox64.TOptional<typebox64.TBoolean>;
|
|
60
|
+
sensitive: typebox64.TOptional<typebox64.TBoolean>;
|
|
61
|
+
contact: typebox64.TString;
|
|
62
|
+
variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
63
|
+
scheduledAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
64
|
+
sentAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
65
|
+
error: typebox64.TOptional<typebox64.TObject<{
|
|
66
|
+
at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
|
|
67
|
+
name: typebox64.TString;
|
|
68
|
+
message: typebox64.TString;
|
|
69
69
|
}>>;
|
|
70
70
|
}>>;
|
|
71
71
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -82,7 +82,7 @@ declare class NotificationSenderService {
|
|
|
82
82
|
body: string;
|
|
83
83
|
};
|
|
84
84
|
protected load(notification: NotificationEntity): {
|
|
85
|
-
template: NotificationDescriptor<
|
|
85
|
+
template: NotificationDescriptor<typebox64.TObject<typebox64.TProperties>>;
|
|
86
86
|
variables: Record<string, any>;
|
|
87
87
|
contact: string;
|
|
88
88
|
};
|
|
@@ -91,17 +91,17 @@ declare class NotificationSenderService {
|
|
|
91
91
|
//#region src/queues/NotificationQueues.d.ts
|
|
92
92
|
declare class NotificationQueues {
|
|
93
93
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
94
|
-
readonly processNotification: _alepha_queue0.QueueDescriptor<
|
|
95
|
-
notificationId:
|
|
94
|
+
readonly processNotification: _alepha_queue0.QueueDescriptor<typebox64.TObject<{
|
|
95
|
+
notificationId: typebox64.TString;
|
|
96
96
|
}>>;
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
99
|
//#region src/schemas/notificationCreateSchema.d.ts
|
|
100
|
-
declare const notificationCreateSchema:
|
|
101
|
-
type:
|
|
102
|
-
template:
|
|
103
|
-
contact:
|
|
104
|
-
variables:
|
|
100
|
+
declare const notificationCreateSchema: typebox64.TObject<{
|
|
101
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
102
|
+
template: typebox64.TString;
|
|
103
|
+
contact: typebox64.TString;
|
|
104
|
+
variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
105
105
|
}>;
|
|
106
106
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
107
107
|
//#endregion
|
|
@@ -118,72 +118,72 @@ declare class NotificationService {
|
|
|
118
118
|
protected readonly env: {
|
|
119
119
|
NOTIFICATION_IMMEDIATE?: boolean | undefined;
|
|
120
120
|
};
|
|
121
|
-
protected readonly notificationRepository:
|
|
122
|
-
id:
|
|
123
|
-
version:
|
|
124
|
-
createdAt:
|
|
125
|
-
updatedAt:
|
|
126
|
-
type:
|
|
127
|
-
template:
|
|
128
|
-
category: _alepha_core1.TOptional<
|
|
121
|
+
protected readonly notificationRepository: _alepha_postgres50.RepositoryDescriptor<_alepha_core1.TObject<{
|
|
122
|
+
id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
123
|
+
version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
124
|
+
createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
125
|
+
updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
126
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
127
|
+
template: typebox64.TString;
|
|
128
|
+
category: _alepha_core1.TOptional<typebox64.TString>;
|
|
129
129
|
critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
130
130
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
131
|
-
contact:
|
|
132
|
-
variables: _alepha_core1.TOptional<
|
|
133
|
-
scheduledAt: _alepha_core1.TOptional<
|
|
134
|
-
sentAt: _alepha_core1.TOptional<
|
|
131
|
+
contact: typebox64.TString;
|
|
132
|
+
variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
133
|
+
scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
134
|
+
sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
135
135
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
136
|
-
at:
|
|
137
|
-
name:
|
|
138
|
-
message:
|
|
136
|
+
at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
|
|
137
|
+
name: typebox64.TString;
|
|
138
|
+
message: typebox64.TString;
|
|
139
139
|
}>>;
|
|
140
140
|
}>>;
|
|
141
141
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
142
142
|
protected readonly notificationQueues: NotificationQueues;
|
|
143
143
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
144
144
|
readonly notificationBatch: _alepha_batch0.BatchDescriptor<_alepha_core1.TObject<{
|
|
145
|
-
type:
|
|
146
|
-
template:
|
|
147
|
-
contact:
|
|
148
|
-
variables: _alepha_core1.TOptional<
|
|
145
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
146
|
+
template: typebox64.TString;
|
|
147
|
+
contact: typebox64.TString;
|
|
148
|
+
variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
149
149
|
}>, Promise<void>>;
|
|
150
|
-
findNotificationById(id: string): Promise<
|
|
151
|
-
id:
|
|
152
|
-
version:
|
|
153
|
-
createdAt:
|
|
154
|
-
updatedAt:
|
|
155
|
-
type:
|
|
156
|
-
template:
|
|
157
|
-
category: _alepha_core1.TOptional<
|
|
150
|
+
findNotificationById(id: string): Promise<_alepha_postgres50.PgStatic<_alepha_core1.TObject<{
|
|
151
|
+
id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
152
|
+
version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
153
|
+
createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
154
|
+
updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
155
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
156
|
+
template: typebox64.TString;
|
|
157
|
+
category: _alepha_core1.TOptional<typebox64.TString>;
|
|
158
158
|
critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
159
159
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
160
|
-
contact:
|
|
161
|
-
variables: _alepha_core1.TOptional<
|
|
162
|
-
scheduledAt: _alepha_core1.TOptional<
|
|
163
|
-
sentAt: _alepha_core1.TOptional<
|
|
160
|
+
contact: typebox64.TString;
|
|
161
|
+
variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
162
|
+
scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
163
|
+
sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
164
164
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
165
|
-
at:
|
|
166
|
-
name:
|
|
167
|
-
message:
|
|
165
|
+
at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
|
|
166
|
+
name: typebox64.TString;
|
|
167
|
+
message: typebox64.TString;
|
|
168
168
|
}>>;
|
|
169
|
-
}>,
|
|
170
|
-
id:
|
|
171
|
-
version:
|
|
172
|
-
createdAt:
|
|
173
|
-
updatedAt:
|
|
174
|
-
type:
|
|
175
|
-
template:
|
|
176
|
-
category: _alepha_core1.TOptional<
|
|
169
|
+
}>, _alepha_postgres50.PgRelationMap<_alepha_core1.TObject<{
|
|
170
|
+
id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
171
|
+
version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
172
|
+
createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
173
|
+
updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
|
|
174
|
+
type: typebox64.TUnsafe<"email" | "sms">;
|
|
175
|
+
template: typebox64.TString;
|
|
176
|
+
category: _alepha_core1.TOptional<typebox64.TString>;
|
|
177
177
|
critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
178
178
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
179
|
-
contact:
|
|
180
|
-
variables: _alepha_core1.TOptional<
|
|
181
|
-
scheduledAt: _alepha_core1.TOptional<
|
|
182
|
-
sentAt: _alepha_core1.TOptional<
|
|
179
|
+
contact: typebox64.TString;
|
|
180
|
+
variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
|
|
181
|
+
scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
182
|
+
sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
|
|
183
183
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
184
|
-
at:
|
|
185
|
-
name:
|
|
186
|
-
message:
|
|
184
|
+
at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
|
|
185
|
+
name: typebox64.TString;
|
|
186
|
+
message: typebox64.TString;
|
|
187
187
|
}>>;
|
|
188
188
|
}>>>>;
|
|
189
189
|
/**
|
|
@@ -243,9 +243,9 @@ declare class MemorySmsProvider extends SmsProvider {
|
|
|
243
243
|
}
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/schemas/notificationContactPreferencesSchema.d.ts
|
|
246
|
-
declare const notificationContactPreferencesSchema:
|
|
247
|
-
language:
|
|
248
|
-
exclude:
|
|
246
|
+
declare const notificationContactPreferencesSchema: typebox64.TObject<{
|
|
247
|
+
language: typebox64.TOptional<typebox64.TString>;
|
|
248
|
+
exclude: typebox64.TArray<typebox64.TString>;
|
|
249
249
|
}>;
|
|
250
250
|
type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
|
|
251
251
|
//#endregion
|
package/api/users.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _alepha_react_auth0 from "alepha/react/auth";
|
|
|
4
4
|
import { OAuth2Profile } from "alepha/react/auth";
|
|
5
5
|
import * as _alepha_postgres2 from "alepha/postgres";
|
|
6
6
|
import { Page } from "alepha/postgres";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _alepha_server0 from "alepha/server";
|
|
8
8
|
import * as _alepha_security0 from "alepha/security";
|
|
9
9
|
import { CryptoProvider, RealmDescriptor, RealmDescriptorOptions, UserAccount } from "alepha/security";
|
|
10
10
|
import * as _alepha_server_links0 from "alepha/server/links";
|
|
@@ -71,7 +71,7 @@ declare class IdentityController {
|
|
|
71
71
|
/**
|
|
72
72
|
* Find identities with pagination and filtering.
|
|
73
73
|
*/
|
|
74
|
-
readonly findIdentities:
|
|
74
|
+
readonly findIdentities: _alepha_server0.ActionDescriptorFn<{
|
|
75
75
|
query: typebox282.TObject<{
|
|
76
76
|
page: typebox282.TOptional<typebox282.TInteger>;
|
|
77
77
|
size: typebox282.TOptional<typebox282.TInteger>;
|
|
@@ -93,7 +93,7 @@ declare class IdentityController {
|
|
|
93
93
|
/**
|
|
94
94
|
* Get an identity by ID.
|
|
95
95
|
*/
|
|
96
|
-
readonly getIdentity:
|
|
96
|
+
readonly getIdentity: _alepha_server0.ActionDescriptorFn<{
|
|
97
97
|
params: typebox282.TObject<{
|
|
98
98
|
id: typebox282.TString;
|
|
99
99
|
}>;
|
|
@@ -111,7 +111,7 @@ declare class IdentityController {
|
|
|
111
111
|
/**
|
|
112
112
|
* Delete an identity.
|
|
113
113
|
*/
|
|
114
|
-
readonly deleteIdentity:
|
|
114
|
+
readonly deleteIdentity: _alepha_server0.ActionDescriptorFn<{
|
|
115
115
|
params: typebox282.TObject<{
|
|
116
116
|
id: typebox282.TString;
|
|
117
117
|
}>;
|
|
@@ -189,7 +189,7 @@ declare class SessionController {
|
|
|
189
189
|
/**
|
|
190
190
|
* Find sessions with pagination and filtering.
|
|
191
191
|
*/
|
|
192
|
-
readonly findSessions:
|
|
192
|
+
readonly findSessions: _alepha_server0.ActionDescriptorFn<{
|
|
193
193
|
query: typebox282.TObject<{
|
|
194
194
|
page: typebox282.TOptional<typebox282.TInteger>;
|
|
195
195
|
size: typebox282.TOptional<typebox282.TInteger>;
|
|
@@ -215,7 +215,7 @@ declare class SessionController {
|
|
|
215
215
|
/**
|
|
216
216
|
* Get a session by ID.
|
|
217
217
|
*/
|
|
218
|
-
readonly getSession:
|
|
218
|
+
readonly getSession: _alepha_server0.ActionDescriptorFn<{
|
|
219
219
|
params: typebox282.TObject<{
|
|
220
220
|
id: typebox282.TString;
|
|
221
221
|
}>;
|
|
@@ -238,7 +238,7 @@ declare class SessionController {
|
|
|
238
238
|
/**
|
|
239
239
|
* Delete a session.
|
|
240
240
|
*/
|
|
241
|
-
readonly deleteSession:
|
|
241
|
+
readonly deleteSession: _alepha_server0.ActionDescriptorFn<{
|
|
242
242
|
params: typebox282.TObject<{
|
|
243
243
|
id: typebox282.TString;
|
|
244
244
|
}>;
|
|
@@ -452,7 +452,7 @@ declare class UserController {
|
|
|
452
452
|
/**
|
|
453
453
|
* Find users with pagination and filtering.
|
|
454
454
|
*/
|
|
455
|
-
readonly findUsers:
|
|
455
|
+
readonly findUsers: _alepha_server0.ActionDescriptorFn<{
|
|
456
456
|
query: typebox282.TObject<{
|
|
457
457
|
page: typebox282.TOptional<typebox282.TInteger>;
|
|
458
458
|
size: typebox282.TOptional<typebox282.TInteger>;
|
|
@@ -480,7 +480,7 @@ declare class UserController {
|
|
|
480
480
|
/**
|
|
481
481
|
* Get a user by ID.
|
|
482
482
|
*/
|
|
483
|
-
readonly getUser:
|
|
483
|
+
readonly getUser: _alepha_server0.ActionDescriptorFn<{
|
|
484
484
|
params: typebox282.TObject<{
|
|
485
485
|
id: typebox282.TString;
|
|
486
486
|
}>;
|
|
@@ -502,7 +502,7 @@ declare class UserController {
|
|
|
502
502
|
/**
|
|
503
503
|
* Create a new user.
|
|
504
504
|
*/
|
|
505
|
-
readonly createUser:
|
|
505
|
+
readonly createUser: _alepha_server0.ActionDescriptorFn<{
|
|
506
506
|
body: typebox282.TObject<{
|
|
507
507
|
email: typebox282.TString;
|
|
508
508
|
name: typebox282.TOptional<typebox282.TString>;
|
|
@@ -531,7 +531,7 @@ declare class UserController {
|
|
|
531
531
|
/**
|
|
532
532
|
* Update a user.
|
|
533
533
|
*/
|
|
534
|
-
readonly updateUser:
|
|
534
|
+
readonly updateUser: _alepha_server0.ActionDescriptorFn<{
|
|
535
535
|
params: typebox282.TObject<{
|
|
536
536
|
id: typebox282.TString;
|
|
537
537
|
}>;
|
|
@@ -561,7 +561,7 @@ declare class UserController {
|
|
|
561
561
|
/**
|
|
562
562
|
* Delete a user.
|
|
563
563
|
*/
|
|
564
|
-
readonly deleteUser:
|
|
564
|
+
readonly deleteUser: _alepha_server0.ActionDescriptorFn<{
|
|
565
565
|
params: typebox282.TObject<{
|
|
566
566
|
id: typebox282.TString;
|
|
567
567
|
}>;
|
|
@@ -575,7 +575,7 @@ declare class UserController {
|
|
|
575
575
|
* Request a password reset.
|
|
576
576
|
* Generates a reset token using verification service and sends an email to the user.
|
|
577
577
|
*/
|
|
578
|
-
requestPasswordReset:
|
|
578
|
+
requestPasswordReset: _alepha_server0.ActionDescriptorFn<{
|
|
579
579
|
body: typebox282.TObject<{
|
|
580
580
|
email: typebox282.TString;
|
|
581
581
|
resetUrl: typebox282.TString;
|
|
@@ -589,7 +589,7 @@ declare class UserController {
|
|
|
589
589
|
* Validate a password reset token.
|
|
590
590
|
* Checks if the token is valid and not expired.
|
|
591
591
|
*/
|
|
592
|
-
validateResetToken:
|
|
592
|
+
validateResetToken: _alepha_server0.ActionDescriptorFn<{
|
|
593
593
|
query: typebox282.TObject<{
|
|
594
594
|
email: typebox282.TString;
|
|
595
595
|
token: typebox282.TString;
|
|
@@ -603,7 +603,7 @@ declare class UserController {
|
|
|
603
603
|
* Reset password with a valid token.
|
|
604
604
|
* Updates the user's password and invalidates all sessions.
|
|
605
605
|
*/
|
|
606
|
-
resetPassword:
|
|
606
|
+
resetPassword: _alepha_server0.ActionDescriptorFn<{
|
|
607
607
|
body: typebox282.TObject<{
|
|
608
608
|
email: typebox282.TString;
|
|
609
609
|
token: typebox282.TString;
|
|
@@ -618,7 +618,7 @@ declare class UserController {
|
|
|
618
618
|
* Request email verification.
|
|
619
619
|
* Generates a verification token using verification service and sends an email to the user.
|
|
620
620
|
*/
|
|
621
|
-
requestEmailVerification:
|
|
621
|
+
requestEmailVerification: _alepha_server0.ActionDescriptorFn<{
|
|
622
622
|
body: typebox282.TObject<{
|
|
623
623
|
email: typebox282.TString;
|
|
624
624
|
verifyUrl: typebox282.TString;
|
|
@@ -632,7 +632,7 @@ declare class UserController {
|
|
|
632
632
|
* Verify email with a valid token.
|
|
633
633
|
* Updates the user's emailVerified status.
|
|
634
634
|
*/
|
|
635
|
-
verifyEmail:
|
|
635
|
+
verifyEmail: _alepha_server0.ActionDescriptorFn<{
|
|
636
636
|
body: typebox282.TObject<{
|
|
637
637
|
email: typebox282.TString;
|
|
638
638
|
token: typebox282.TString;
|
|
@@ -645,7 +645,7 @@ declare class UserController {
|
|
|
645
645
|
/**
|
|
646
646
|
* Check if an email is verified.
|
|
647
647
|
*/
|
|
648
|
-
checkEmailVerification:
|
|
648
|
+
checkEmailVerification: _alepha_server0.ActionDescriptorFn<{
|
|
649
649
|
query: typebox282.TObject<{
|
|
650
650
|
email: typebox282.TString;
|
|
651
651
|
}>;
|
|
@@ -869,14 +869,14 @@ declare class SessionService {
|
|
|
869
869
|
firstName?: string | undefined;
|
|
870
870
|
lastName?: string | undefined;
|
|
871
871
|
picture?: string | undefined;
|
|
872
|
-
email: string;
|
|
873
|
-
enabled: boolean;
|
|
874
|
-
emailVerified: boolean;
|
|
875
|
-
roles: string[];
|
|
876
872
|
id: string;
|
|
877
873
|
version: number;
|
|
874
|
+
email: string;
|
|
878
875
|
createdAt: dayjs17.Dayjs;
|
|
879
876
|
updatedAt: dayjs17.Dayjs;
|
|
877
|
+
roles: string[];
|
|
878
|
+
enabled: boolean;
|
|
879
|
+
emailVerified: boolean;
|
|
880
880
|
} | {
|
|
881
881
|
sub: string;
|
|
882
882
|
email?: string;
|
package/command.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, KIND, Static, TObject, TSchema, TString } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alepha_logger1 from "alepha/logger";
|
|
4
4
|
import * as fs from "node:fs/promises";
|
|
5
5
|
import { glob } from "node:fs/promises";
|
|
6
6
|
import * as readline_promises0 from "readline/promises";
|
|
@@ -37,7 +37,7 @@ interface AskMethod {
|
|
|
37
37
|
<T extends TSchema = TString>(question: string, options?: AskOptions<T>): Promise<Static<T>>;
|
|
38
38
|
}
|
|
39
39
|
declare class Asker {
|
|
40
|
-
protected readonly log:
|
|
40
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
41
41
|
readonly ask: AskMethod;
|
|
42
42
|
protected readonly alepha: Alepha;
|
|
43
43
|
constructor();
|
|
@@ -67,7 +67,7 @@ interface RunnerMethod {
|
|
|
67
67
|
cp: (source: string, dest: string, options?: RunOptions) => Promise<string>;
|
|
68
68
|
}
|
|
69
69
|
declare class Runner {
|
|
70
|
-
protected readonly log:
|
|
70
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
71
71
|
protected readonly timers: Timer[];
|
|
72
72
|
protected readonly startTime: number;
|
|
73
73
|
readonly run: RunnerMethod;
|
|
@@ -177,7 +177,7 @@ declare class CliProvider {
|
|
|
177
177
|
CLI_DESCRIPTION: string;
|
|
178
178
|
};
|
|
179
179
|
protected readonly alepha: Alepha;
|
|
180
|
-
protected readonly log:
|
|
180
|
+
protected readonly log: _alepha_logger1.Logger;
|
|
181
181
|
protected readonly runner: Runner;
|
|
182
182
|
protected readonly asker: Asker;
|
|
183
183
|
options: {
|
package/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
import { Validator } from "typebox/compile";
|
|
3
|
+
import * as TypeBoxValue from "typebox/value";
|
|
2
4
|
import * as TypeBox from "typebox";
|
|
3
5
|
import { Static as Static$1, StaticDecode, StaticDecode as Static, StaticDecode as StaticDecode$1, StaticEncode, StaticEncode as StaticEncode$1, TAny, TAny as TAny$1, TArray, TArray as TArray$1, TArrayOptions, TBigInt, TBoolean, TBoolean as TBoolean$1, TInteger, TInteger as TInteger$1, TKeysToIndexer, TKeysToIndexer as TKeysToIndexer$1, TNull, TNull as TNull$1, TNumber, TNumber as TNumber$1, TNumberOptions, TNumberOptions as TNumberOptions$1, TObject, TObject as TObject$1, TObjectOptions, TObjectOptions as TObjectOptions$1, TOmit, TOptional, TOptionalAdd, TOptionalAdd as TOptionalAdd$1, TPick, TPick as TPick$1, TProperties, TProperties as TProperties$1, TRecord, TRecord as TRecord$1, TSchema, TSchema as TSchema$1, TSchemaOptions, TString, TString as TString$1, TStringOptions, TStringOptions as TStringOptions$1, TTuple, TUnion, TUnion as TUnion$1, TUnsafe, TUnsafe as TUnsafe$1, TVoid } from "typebox";
|
|
4
|
-
import { Validator } from "typebox/compile";
|
|
5
6
|
import TypeBoxFormat from "typebox/format";
|
|
6
|
-
import * as TypeBoxValue from "typebox/value";
|
|
7
7
|
import { Readable } from "node:stream";
|
|
8
8
|
import { ReadableStream as ReadableStream$1 } from "node:stream/web";
|
|
9
9
|
import { TLocalizedValidationError } from "typebox/error";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alepha",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
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.1",
|
|
19
|
+
"@alepha/api-jobs": "0.11.1",
|
|
20
|
+
"@alepha/api-notifications": "0.11.1",
|
|
21
|
+
"@alepha/api-users": "0.11.1",
|
|
22
|
+
"@alepha/api-verifications": "0.11.1",
|
|
23
|
+
"@alepha/batch": "0.11.1",
|
|
24
|
+
"@alepha/bucket": "0.11.1",
|
|
25
|
+
"@alepha/cache": "0.11.1",
|
|
26
|
+
"@alepha/cache-redis": "0.11.1",
|
|
27
|
+
"@alepha/command": "0.11.1",
|
|
28
|
+
"@alepha/core": "0.11.1",
|
|
29
|
+
"@alepha/datetime": "0.11.1",
|
|
30
|
+
"@alepha/devtools": "0.11.1",
|
|
31
|
+
"@alepha/email": "0.11.1",
|
|
32
|
+
"@alepha/file": "0.11.1",
|
|
33
|
+
"@alepha/lock": "0.11.1",
|
|
34
|
+
"@alepha/lock-redis": "0.11.1",
|
|
35
|
+
"@alepha/logger": "0.11.1",
|
|
36
|
+
"@alepha/postgres": "0.11.1",
|
|
37
|
+
"@alepha/queue": "0.11.1",
|
|
38
|
+
"@alepha/queue-redis": "0.11.1",
|
|
39
|
+
"@alepha/react": "0.11.1",
|
|
40
|
+
"@alepha/react-auth": "0.11.1",
|
|
41
|
+
"@alepha/react-form": "0.11.1",
|
|
42
|
+
"@alepha/react-head": "0.11.1",
|
|
43
|
+
"@alepha/react-i18n": "0.11.1",
|
|
44
|
+
"@alepha/redis": "0.11.1",
|
|
45
|
+
"@alepha/retry": "0.11.1",
|
|
46
|
+
"@alepha/router": "0.11.1",
|
|
47
|
+
"@alepha/scheduler": "0.11.1",
|
|
48
|
+
"@alepha/security": "0.11.1",
|
|
49
|
+
"@alepha/server": "0.11.1",
|
|
50
|
+
"@alepha/server-cache": "0.11.1",
|
|
51
|
+
"@alepha/server-compress": "0.11.1",
|
|
52
|
+
"@alepha/server-cookies": "0.11.1",
|
|
53
|
+
"@alepha/server-cors": "0.11.1",
|
|
54
|
+
"@alepha/server-health": "0.11.1",
|
|
55
|
+
"@alepha/server-helmet": "0.11.1",
|
|
56
|
+
"@alepha/server-links": "0.11.1",
|
|
57
|
+
"@alepha/server-metrics": "0.11.1",
|
|
58
|
+
"@alepha/server-multipart": "0.11.1",
|
|
59
|
+
"@alepha/server-proxy": "0.11.1",
|
|
60
|
+
"@alepha/server-security": "0.11.1",
|
|
61
|
+
"@alepha/server-static": "0.11.1",
|
|
62
|
+
"@alepha/server-swagger": "0.11.1",
|
|
63
|
+
"@alepha/topic": "0.11.1",
|
|
64
|
+
"@alepha/topic-redis": "0.11.1",
|
|
65
|
+
"@alepha/ui": "0.11.1",
|
|
66
|
+
"@alepha/vite": "0.11.1",
|
|
67
67
|
"react": "^19.2.0",
|
|
68
68
|
"react-dom": "^19.2.0"
|
|
69
69
|
},
|