alepha 0.13.3 → 0.13.4
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 -7
- package/dist/api-files/index.d.ts +175 -175
- package/dist/api-jobs/index.d.ts +156 -156
- package/dist/api-notifications/index.d.ts +147 -147
- package/dist/api-verifications/index.d.ts +12 -12
- package/dist/core/index.browser.js +5 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +221 -219
- package/dist/core/index.js +5 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +5 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/email/index.d.ts +4 -4
- package/dist/orm/index.d.ts +19 -19
- package/dist/server-auth/index.d.ts +152 -152
- package/dist/server-security/index.d.ts +9 -9
- package/package.json +1 -1
- package/src/core/Alepha.ts +14 -0
- package/src/core/primitives/$module.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha45 from "alepha";
|
|
2
2
|
import { Alepha, KIND, Primitive, Static, StaticEncode, TObject } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as alepha_orm15 from "alepha/orm";
|
|
4
4
|
import { Page } from "alepha/orm";
|
|
5
5
|
import * as alepha_server0 from "alepha/server";
|
|
6
6
|
import * as alepha_batch0 from "alepha/batch";
|
|
@@ -11,47 +11,47 @@ import { EmailProvider } from "alepha/email";
|
|
|
11
11
|
import { SmsProvider } from "alepha/sms";
|
|
12
12
|
|
|
13
13
|
//#region src/api-notifications/entities/notifications.d.ts
|
|
14
|
-
declare const notifications:
|
|
15
|
-
id:
|
|
16
|
-
version:
|
|
17
|
-
createdAt:
|
|
18
|
-
updatedAt:
|
|
19
|
-
type:
|
|
20
|
-
template:
|
|
21
|
-
category:
|
|
22
|
-
critical:
|
|
23
|
-
sensitive:
|
|
24
|
-
contact:
|
|
25
|
-
variables:
|
|
26
|
-
scheduledAt:
|
|
27
|
-
sentAt:
|
|
28
|
-
error:
|
|
29
|
-
at:
|
|
30
|
-
name:
|
|
31
|
-
message:
|
|
14
|
+
declare const notifications: alepha_orm15.EntityPrimitive<alepha45.TObject<{
|
|
15
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
16
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
17
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
18
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
19
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
20
|
+
template: alepha45.TString;
|
|
21
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
22
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
23
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
24
|
+
contact: alepha45.TString;
|
|
25
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
26
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
27
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
28
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
29
|
+
at: alepha45.TString;
|
|
30
|
+
name: alepha45.TString;
|
|
31
|
+
message: alepha45.TString;
|
|
32
32
|
}>>;
|
|
33
33
|
}>>;
|
|
34
34
|
type NotificationEntity = Static<typeof notifications.schema>;
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/api-notifications/schemas/notificationCreateSchema.d.ts
|
|
37
|
-
declare const notificationCreateSchema:
|
|
38
|
-
type:
|
|
39
|
-
template:
|
|
40
|
-
contact:
|
|
41
|
-
variables:
|
|
37
|
+
declare const notificationCreateSchema: alepha45.TObject<{
|
|
38
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
39
|
+
template: alepha45.TString;
|
|
40
|
+
contact: alepha45.TString;
|
|
41
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
42
42
|
}>;
|
|
43
43
|
type NotificationCreate = Static<typeof notificationCreateSchema>;
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/api-notifications/schemas/notificationQuerySchema.d.ts
|
|
46
|
-
declare const notificationQuerySchema:
|
|
47
|
-
page:
|
|
48
|
-
size:
|
|
49
|
-
sort:
|
|
50
|
-
type:
|
|
51
|
-
template:
|
|
52
|
-
contact:
|
|
53
|
-
category:
|
|
54
|
-
status:
|
|
46
|
+
declare const notificationQuerySchema: alepha45.TObject<{
|
|
47
|
+
page: alepha45.TOptional<alepha45.TInteger>;
|
|
48
|
+
size: alepha45.TOptional<alepha45.TInteger>;
|
|
49
|
+
sort: alepha45.TOptional<alepha45.TString>;
|
|
50
|
+
type: alepha45.TOptional<alepha45.TUnsafe<"email" | "sms">>;
|
|
51
|
+
template: alepha45.TOptional<alepha45.TString>;
|
|
52
|
+
contact: alepha45.TOptional<alepha45.TString>;
|
|
53
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
54
|
+
status: alepha45.TOptional<alepha45.TUnsafe<"pending" | "sent" | "failed">>;
|
|
55
55
|
}>;
|
|
56
56
|
type NotificationQuery = Static<typeof notificationQuerySchema>;
|
|
57
57
|
//#endregion
|
|
@@ -123,24 +123,24 @@ interface NotificationMessage<T extends TObject> {
|
|
|
123
123
|
declare class NotificationSenderService {
|
|
124
124
|
protected readonly alepha: Alepha;
|
|
125
125
|
protected readonly log: alepha_logger0.Logger;
|
|
126
|
-
protected readonly notificationRepository:
|
|
127
|
-
id:
|
|
128
|
-
version:
|
|
129
|
-
createdAt:
|
|
130
|
-
updatedAt:
|
|
131
|
-
type:
|
|
132
|
-
template:
|
|
133
|
-
category:
|
|
134
|
-
critical:
|
|
135
|
-
sensitive:
|
|
136
|
-
contact:
|
|
137
|
-
variables:
|
|
138
|
-
scheduledAt:
|
|
139
|
-
sentAt:
|
|
140
|
-
error:
|
|
141
|
-
at:
|
|
142
|
-
name:
|
|
143
|
-
message:
|
|
126
|
+
protected readonly notificationRepository: alepha_orm15.Repository<alepha45.TObject<{
|
|
127
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
128
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
129
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
130
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
131
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
132
|
+
template: alepha45.TString;
|
|
133
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
134
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
135
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
136
|
+
contact: alepha45.TString;
|
|
137
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
138
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
139
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
140
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
141
|
+
at: alepha45.TString;
|
|
142
|
+
name: alepha45.TString;
|
|
143
|
+
message: alepha45.TString;
|
|
144
144
|
}>>;
|
|
145
145
|
}>>;
|
|
146
146
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
@@ -157,15 +157,15 @@ declare class NotificationSenderService {
|
|
|
157
157
|
body: string;
|
|
158
158
|
};
|
|
159
159
|
protected load(notification: NotificationEntity): {
|
|
160
|
-
template: NotificationPrimitive<
|
|
160
|
+
template: NotificationPrimitive<alepha45.TObject<alepha45.TProperties>>;
|
|
161
161
|
variables: Record<string, any>;
|
|
162
162
|
contact: string;
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region src/api-notifications/services/NotificationService.d.ts
|
|
167
|
-
declare const notificationServiceEnvSchema:
|
|
168
|
-
NOTIFICATION_QUEUE:
|
|
167
|
+
declare const notificationServiceEnvSchema: alepha45.TObject<{
|
|
168
|
+
NOTIFICATION_QUEUE: alepha45.TOptional<alepha45.TBoolean>;
|
|
169
169
|
}>;
|
|
170
170
|
declare module "alepha" {
|
|
171
171
|
interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
|
|
@@ -176,71 +176,71 @@ declare class NotificationService {
|
|
|
176
176
|
protected readonly env: {
|
|
177
177
|
NOTIFICATION_QUEUE?: boolean | undefined;
|
|
178
178
|
};
|
|
179
|
-
protected readonly notificationRepository:
|
|
180
|
-
id:
|
|
181
|
-
version:
|
|
182
|
-
createdAt:
|
|
183
|
-
updatedAt:
|
|
184
|
-
type:
|
|
185
|
-
template:
|
|
186
|
-
category:
|
|
187
|
-
critical:
|
|
188
|
-
sensitive:
|
|
189
|
-
contact:
|
|
190
|
-
variables:
|
|
191
|
-
scheduledAt:
|
|
192
|
-
sentAt:
|
|
193
|
-
error:
|
|
194
|
-
at:
|
|
195
|
-
name:
|
|
196
|
-
message:
|
|
179
|
+
protected readonly notificationRepository: alepha_orm15.Repository<alepha45.TObject<{
|
|
180
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
181
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
182
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
183
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
184
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
185
|
+
template: alepha45.TString;
|
|
186
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
187
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
188
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
189
|
+
contact: alepha45.TString;
|
|
190
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
191
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
192
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
193
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
194
|
+
at: alepha45.TString;
|
|
195
|
+
name: alepha45.TString;
|
|
196
|
+
message: alepha45.TString;
|
|
197
197
|
}>>;
|
|
198
198
|
}>>;
|
|
199
199
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
200
200
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
201
|
-
readonly notificationBatch: alepha_batch0.BatchPrimitive<
|
|
202
|
-
type:
|
|
203
|
-
template:
|
|
204
|
-
contact:
|
|
205
|
-
variables:
|
|
201
|
+
readonly notificationBatch: alepha_batch0.BatchPrimitive<alepha45.TObject<{
|
|
202
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
203
|
+
template: alepha45.TString;
|
|
204
|
+
contact: alepha45.TString;
|
|
205
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
206
206
|
}>, Promise<void>>;
|
|
207
|
-
findNotificationById(id: string): Promise<
|
|
208
|
-
id:
|
|
209
|
-
version:
|
|
210
|
-
createdAt:
|
|
211
|
-
updatedAt:
|
|
212
|
-
type:
|
|
213
|
-
template:
|
|
214
|
-
category:
|
|
215
|
-
critical:
|
|
216
|
-
sensitive:
|
|
217
|
-
contact:
|
|
218
|
-
variables:
|
|
219
|
-
scheduledAt:
|
|
220
|
-
sentAt:
|
|
221
|
-
error:
|
|
222
|
-
at:
|
|
223
|
-
name:
|
|
224
|
-
message:
|
|
207
|
+
findNotificationById(id: string): Promise<alepha_orm15.PgStatic<alepha45.TObject<{
|
|
208
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
209
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
210
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
211
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
212
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
213
|
+
template: alepha45.TString;
|
|
214
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
215
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
216
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
217
|
+
contact: alepha45.TString;
|
|
218
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
219
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
220
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
221
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
222
|
+
at: alepha45.TString;
|
|
223
|
+
name: alepha45.TString;
|
|
224
|
+
message: alepha45.TString;
|
|
225
225
|
}>>;
|
|
226
|
-
}>,
|
|
227
|
-
id:
|
|
228
|
-
version:
|
|
229
|
-
createdAt:
|
|
230
|
-
updatedAt:
|
|
231
|
-
type:
|
|
232
|
-
template:
|
|
233
|
-
category:
|
|
234
|
-
critical:
|
|
235
|
-
sensitive:
|
|
236
|
-
contact:
|
|
237
|
-
variables:
|
|
238
|
-
scheduledAt:
|
|
239
|
-
sentAt:
|
|
240
|
-
error:
|
|
241
|
-
at:
|
|
242
|
-
name:
|
|
243
|
-
message:
|
|
226
|
+
}>, alepha_orm15.PgRelationMap<alepha45.TObject<{
|
|
227
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
228
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
229
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
230
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
231
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
232
|
+
template: alepha45.TString;
|
|
233
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
234
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
235
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
236
|
+
contact: alepha45.TString;
|
|
237
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
238
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
239
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
240
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
241
|
+
at: alepha45.TString;
|
|
242
|
+
name: alepha45.TString;
|
|
243
|
+
message: alepha45.TString;
|
|
244
244
|
}>>;
|
|
245
245
|
}>>>>;
|
|
246
246
|
findNotifications(q?: NotificationQuery): Promise<Page<NotificationEntity>>;
|
|
@@ -259,34 +259,34 @@ declare class NotificationController {
|
|
|
259
259
|
* Find notifications with pagination and filtering.
|
|
260
260
|
*/
|
|
261
261
|
readonly findNotifications: alepha_server0.ActionPrimitiveFn<{
|
|
262
|
-
query:
|
|
263
|
-
page:
|
|
264
|
-
size:
|
|
265
|
-
sort:
|
|
266
|
-
type:
|
|
267
|
-
template:
|
|
268
|
-
contact:
|
|
269
|
-
category:
|
|
270
|
-
status:
|
|
262
|
+
query: alepha45.TObject<{
|
|
263
|
+
page: alepha45.TOptional<alepha45.TInteger>;
|
|
264
|
+
size: alepha45.TOptional<alepha45.TInteger>;
|
|
265
|
+
sort: alepha45.TOptional<alepha45.TString>;
|
|
266
|
+
type: alepha45.TOptional<alepha45.TUnsafe<"email" | "sms">>;
|
|
267
|
+
template: alepha45.TOptional<alepha45.TString>;
|
|
268
|
+
contact: alepha45.TOptional<alepha45.TString>;
|
|
269
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
270
|
+
status: alepha45.TOptional<alepha45.TUnsafe<"pending" | "sent" | "failed">>;
|
|
271
271
|
}>;
|
|
272
|
-
response:
|
|
273
|
-
id:
|
|
274
|
-
version:
|
|
275
|
-
createdAt:
|
|
276
|
-
updatedAt:
|
|
277
|
-
type:
|
|
278
|
-
template:
|
|
279
|
-
category:
|
|
280
|
-
critical:
|
|
281
|
-
sensitive:
|
|
282
|
-
contact:
|
|
283
|
-
variables:
|
|
284
|
-
scheduledAt:
|
|
285
|
-
sentAt:
|
|
286
|
-
error:
|
|
287
|
-
at:
|
|
288
|
-
name:
|
|
289
|
-
message:
|
|
272
|
+
response: alepha45.TPage<alepha45.TObject<{
|
|
273
|
+
id: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_PRIMARY_KEY>, typeof alepha_orm15.PG_DEFAULT>;
|
|
274
|
+
version: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TInteger, typeof alepha_orm15.PG_VERSION>, typeof alepha_orm15.PG_DEFAULT>;
|
|
275
|
+
createdAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_CREATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
276
|
+
updatedAt: alepha_orm15.PgAttr<alepha_orm15.PgAttr<alepha45.TString, typeof alepha_orm15.PG_UPDATED_AT>, typeof alepha_orm15.PG_DEFAULT>;
|
|
277
|
+
type: alepha45.TUnsafe<"email" | "sms">;
|
|
278
|
+
template: alepha45.TString;
|
|
279
|
+
category: alepha45.TOptional<alepha45.TString>;
|
|
280
|
+
critical: alepha45.TOptional<alepha45.TBoolean>;
|
|
281
|
+
sensitive: alepha45.TOptional<alepha45.TBoolean>;
|
|
282
|
+
contact: alepha45.TString;
|
|
283
|
+
variables: alepha45.TOptional<alepha45.TRecord<"^.*$", alepha45.TAny>>;
|
|
284
|
+
scheduledAt: alepha45.TOptional<alepha45.TString>;
|
|
285
|
+
sentAt: alepha45.TOptional<alepha45.TString>;
|
|
286
|
+
error: alepha45.TOptional<alepha45.TObject<{
|
|
287
|
+
at: alepha45.TString;
|
|
288
|
+
name: alepha45.TString;
|
|
289
|
+
message: alepha45.TString;
|
|
290
290
|
}>>;
|
|
291
291
|
}>>;
|
|
292
292
|
}>;
|
|
@@ -298,15 +298,15 @@ declare class NotificationJobs {}
|
|
|
298
298
|
//#region src/api-notifications/queues/NotificationQueues.d.ts
|
|
299
299
|
declare class NotificationQueues {
|
|
300
300
|
protected readonly notificationSenderService: NotificationSenderService;
|
|
301
|
-
readonly processNotification: alepha_queue0.QueuePrimitive<
|
|
302
|
-
notificationId:
|
|
301
|
+
readonly processNotification: alepha_queue0.QueuePrimitive<alepha45.TObject<{
|
|
302
|
+
notificationId: alepha45.TString;
|
|
303
303
|
}>>;
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
306
|
//#region src/api-notifications/schemas/notificationContactPreferencesSchema.d.ts
|
|
307
|
-
declare const notificationContactPreferencesSchema:
|
|
308
|
-
language:
|
|
309
|
-
exclude:
|
|
307
|
+
declare const notificationContactPreferencesSchema: alepha45.TObject<{
|
|
308
|
+
language: alepha45.TOptional<alepha45.TString>;
|
|
309
|
+
exclude: alepha45.TArray<alepha45.TString>;
|
|
310
310
|
}>;
|
|
311
311
|
type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
|
|
312
312
|
//#endregion
|
|
@@ -321,7 +321,7 @@ type NotificationContactPreferences = Static<typeof notificationContactPreferenc
|
|
|
321
321
|
*
|
|
322
322
|
* @module alepha.api.notifications
|
|
323
323
|
*/
|
|
324
|
-
declare const AlephaApiNotifications:
|
|
324
|
+
declare const AlephaApiNotifications: alepha45.Service<alepha45.Module>;
|
|
325
325
|
//#endregion
|
|
326
326
|
export { $notification, AlephaApiNotifications, NotificationContactPreferences, NotificationController, NotificationCreate, NotificationEntity, NotificationJobs, NotificationMessage, NotificationPrimitive, NotificationPrimitiveOptions, NotificationPushOptions, NotificationQuery, NotificationQueues, NotificationSenderService, NotificationService, notificationContactPreferencesSchema, notificationCreateSchema, notificationQuerySchema, notificationServiceEnvSchema, notifications };
|
|
327
327
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@ declare const verifications: alepha_orm56.EntityPrimitive<alepha52.TObject<{
|
|
|
11
11
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
12
12
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
13
13
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
14
|
-
type: alepha52.TUnsafe<"
|
|
14
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
15
15
|
target: alepha52.TString;
|
|
16
16
|
code: alepha52.TString;
|
|
17
17
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -22,7 +22,7 @@ declare const verificationEntitySchema: alepha52.TObject<{
|
|
|
22
22
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
23
23
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
24
24
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
25
|
-
type: alepha52.TUnsafe<"
|
|
25
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
26
26
|
target: alepha52.TString;
|
|
27
27
|
code: alepha52.TString;
|
|
28
28
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -33,7 +33,7 @@ declare const verificationEntityInsertSchema: alepha_orm56.TObjectInsert<alepha5
|
|
|
33
33
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
34
34
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
35
35
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
36
|
-
type: alepha52.TUnsafe<"
|
|
36
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
37
37
|
target: alepha52.TString;
|
|
38
38
|
code: alepha52.TString;
|
|
39
39
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -88,17 +88,17 @@ declare module "alepha" {
|
|
|
88
88
|
}
|
|
89
89
|
declare class VerificationParameters {
|
|
90
90
|
protected readonly options: Readonly<{
|
|
91
|
-
|
|
91
|
+
code: {
|
|
92
92
|
codeExpiration: number;
|
|
93
93
|
verificationCooldown: number;
|
|
94
94
|
maxAttempts: number;
|
|
95
|
+
codeLength: number;
|
|
95
96
|
limitPerDay: number;
|
|
96
97
|
};
|
|
97
|
-
|
|
98
|
+
link: {
|
|
98
99
|
codeExpiration: number;
|
|
99
100
|
verificationCooldown: number;
|
|
100
101
|
maxAttempts: number;
|
|
101
|
-
codeLength: number;
|
|
102
102
|
limitPerDay: number;
|
|
103
103
|
};
|
|
104
104
|
purgeDays: number;
|
|
@@ -123,7 +123,7 @@ declare const validateVerificationCodeResponseSchema: alepha52.TObject<{
|
|
|
123
123
|
type ValidateVerificationCodeResponse = Static<typeof validateVerificationCodeResponseSchema>;
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/api-verifications/schemas/verificationTypeEnumSchema.d.ts
|
|
126
|
-
declare const verificationTypeEnumSchema: alepha52.TUnsafe<"
|
|
126
|
+
declare const verificationTypeEnumSchema: alepha52.TUnsafe<"code" | "link">;
|
|
127
127
|
type VerificationTypeEnum = Static<typeof verificationTypeEnumSchema>;
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region src/api-verifications/services/VerificationService.d.ts
|
|
@@ -136,7 +136,7 @@ declare class VerificationService {
|
|
|
136
136
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
137
137
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
138
138
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
139
|
-
type: alepha52.TUnsafe<"
|
|
139
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
140
140
|
target: alepha52.TString;
|
|
141
141
|
code: alepha52.TString;
|
|
142
142
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -148,7 +148,7 @@ declare class VerificationService {
|
|
|
148
148
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
149
149
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
150
150
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
151
|
-
type: alepha52.TUnsafe<"
|
|
151
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
152
152
|
target: alepha52.TString;
|
|
153
153
|
code: alepha52.TString;
|
|
154
154
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -158,7 +158,7 @@ declare class VerificationService {
|
|
|
158
158
|
createdAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_CREATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
159
159
|
updatedAt: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TString, typeof alepha_orm56.PG_UPDATED_AT>, typeof alepha_orm56.PG_DEFAULT>;
|
|
160
160
|
version: alepha_orm56.PgAttr<alepha_orm56.PgAttr<alepha52.TInteger, typeof alepha_orm56.PG_VERSION>, typeof alepha_orm56.PG_DEFAULT>;
|
|
161
|
-
type: alepha52.TUnsafe<"
|
|
161
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
162
162
|
target: alepha52.TString;
|
|
163
163
|
code: alepha52.TString;
|
|
164
164
|
verifiedAt: alepha52.TOptional<alepha52.TString>;
|
|
@@ -186,7 +186,7 @@ declare class VerificationController {
|
|
|
186
186
|
readonly group = "verifications";
|
|
187
187
|
readonly requestVerificationCode: alepha_server0.ActionPrimitiveFn<{
|
|
188
188
|
params: alepha52.TObject<{
|
|
189
|
-
type: alepha52.TUnsafe<"
|
|
189
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
190
190
|
}>;
|
|
191
191
|
body: alepha52.TObject<{
|
|
192
192
|
target: alepha52.TString;
|
|
@@ -200,7 +200,7 @@ declare class VerificationController {
|
|
|
200
200
|
}>;
|
|
201
201
|
readonly validateVerificationCode: alepha_server0.ActionPrimitiveFn<{
|
|
202
202
|
params: alepha52.TObject<{
|
|
203
|
-
type: alepha52.TUnsafe<"
|
|
203
|
+
type: alepha52.TUnsafe<"code" | "link">;
|
|
204
204
|
}>;
|
|
205
205
|
body: alepha52.TObject<{
|
|
206
206
|
target: alepha52.TString;
|
|
@@ -280,7 +280,7 @@ const $module = (options) => {
|
|
|
280
280
|
* Base class for all modules.
|
|
281
281
|
*/
|
|
282
282
|
var Module = class Module {
|
|
283
|
-
static NAME_REGEX = /^[a-z]+(\.[a-z][a-z0-9-]*)*$/;
|
|
283
|
+
static NAME_REGEX = /^[a-z-]+(\.[a-z-][a-z0-9-]*)*$/;
|
|
284
284
|
/**
|
|
285
285
|
* Check if a Service is a Module.
|
|
286
286
|
*/
|
|
@@ -1019,6 +1019,10 @@ var Alepha = class Alepha {
|
|
|
1019
1019
|
constructor(init = {}) {
|
|
1020
1020
|
this.init = init;
|
|
1021
1021
|
}
|
|
1022
|
+
set(target, value) {
|
|
1023
|
+
this.store.set(target, value);
|
|
1024
|
+
return this;
|
|
1025
|
+
}
|
|
1022
1026
|
/**
|
|
1023
1027
|
* True when start() is called.
|
|
1024
1028
|
*
|