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.
@@ -1,6 +1,6 @@
1
- import * as alepha1 from "alepha";
1
+ import * as alepha45 from "alepha";
2
2
  import { Alepha, KIND, Primitive, Static, StaticEncode, TObject } from "alepha";
3
- import * as alepha_orm0 from "alepha/orm";
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: alepha_orm0.EntityPrimitive<alepha1.TObject<{
15
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
16
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
17
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
18
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
19
- type: alepha1.TUnsafe<"email" | "sms">;
20
- template: alepha1.TString;
21
- category: alepha1.TOptional<alepha1.TString>;
22
- critical: alepha1.TOptional<alepha1.TBoolean>;
23
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
24
- contact: alepha1.TString;
25
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
26
- scheduledAt: alepha1.TOptional<alepha1.TString>;
27
- sentAt: alepha1.TOptional<alepha1.TString>;
28
- error: alepha1.TOptional<alepha1.TObject<{
29
- at: alepha1.TString;
30
- name: alepha1.TString;
31
- message: alepha1.TString;
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: alepha1.TObject<{
38
- type: alepha1.TUnsafe<"email" | "sms">;
39
- template: alepha1.TString;
40
- contact: alepha1.TString;
41
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
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: alepha1.TObject<{
47
- page: alepha1.TOptional<alepha1.TInteger>;
48
- size: alepha1.TOptional<alepha1.TInteger>;
49
- sort: alepha1.TOptional<alepha1.TString>;
50
- type: alepha1.TOptional<alepha1.TUnsafe<"email" | "sms">>;
51
- template: alepha1.TOptional<alepha1.TString>;
52
- contact: alepha1.TOptional<alepha1.TString>;
53
- category: alepha1.TOptional<alepha1.TString>;
54
- status: alepha1.TOptional<alepha1.TUnsafe<"pending" | "sent" | "failed">>;
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: alepha_orm0.Repository<alepha1.TObject<{
127
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
128
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
129
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
130
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
131
- type: alepha1.TUnsafe<"email" | "sms">;
132
- template: alepha1.TString;
133
- category: alepha1.TOptional<alepha1.TString>;
134
- critical: alepha1.TOptional<alepha1.TBoolean>;
135
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
136
- contact: alepha1.TString;
137
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
138
- scheduledAt: alepha1.TOptional<alepha1.TString>;
139
- sentAt: alepha1.TOptional<alepha1.TString>;
140
- error: alepha1.TOptional<alepha1.TObject<{
141
- at: alepha1.TString;
142
- name: alepha1.TString;
143
- message: alepha1.TString;
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<alepha1.TObject<alepha1.TProperties>>;
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: alepha1.TObject<{
168
- NOTIFICATION_QUEUE: alepha1.TOptional<alepha1.TBoolean>;
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: alepha_orm0.Repository<alepha1.TObject<{
180
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
181
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
182
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
183
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
184
- type: alepha1.TUnsafe<"email" | "sms">;
185
- template: alepha1.TString;
186
- category: alepha1.TOptional<alepha1.TString>;
187
- critical: alepha1.TOptional<alepha1.TBoolean>;
188
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
189
- contact: alepha1.TString;
190
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
191
- scheduledAt: alepha1.TOptional<alepha1.TString>;
192
- sentAt: alepha1.TOptional<alepha1.TString>;
193
- error: alepha1.TOptional<alepha1.TObject<{
194
- at: alepha1.TString;
195
- name: alepha1.TString;
196
- message: alepha1.TString;
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<alepha1.TObject<{
202
- type: alepha1.TUnsafe<"email" | "sms">;
203
- template: alepha1.TString;
204
- contact: alepha1.TString;
205
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
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<alepha_orm0.PgStatic<alepha1.TObject<{
208
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
209
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
210
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
211
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
212
- type: alepha1.TUnsafe<"email" | "sms">;
213
- template: alepha1.TString;
214
- category: alepha1.TOptional<alepha1.TString>;
215
- critical: alepha1.TOptional<alepha1.TBoolean>;
216
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
217
- contact: alepha1.TString;
218
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
219
- scheduledAt: alepha1.TOptional<alepha1.TString>;
220
- sentAt: alepha1.TOptional<alepha1.TString>;
221
- error: alepha1.TOptional<alepha1.TObject<{
222
- at: alepha1.TString;
223
- name: alepha1.TString;
224
- message: alepha1.TString;
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
- }>, alepha_orm0.PgRelationMap<alepha1.TObject<{
227
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
228
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
229
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
230
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
231
- type: alepha1.TUnsafe<"email" | "sms">;
232
- template: alepha1.TString;
233
- category: alepha1.TOptional<alepha1.TString>;
234
- critical: alepha1.TOptional<alepha1.TBoolean>;
235
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
236
- contact: alepha1.TString;
237
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
238
- scheduledAt: alepha1.TOptional<alepha1.TString>;
239
- sentAt: alepha1.TOptional<alepha1.TString>;
240
- error: alepha1.TOptional<alepha1.TObject<{
241
- at: alepha1.TString;
242
- name: alepha1.TString;
243
- message: alepha1.TString;
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: alepha1.TObject<{
263
- page: alepha1.TOptional<alepha1.TInteger>;
264
- size: alepha1.TOptional<alepha1.TInteger>;
265
- sort: alepha1.TOptional<alepha1.TString>;
266
- type: alepha1.TOptional<alepha1.TUnsafe<"email" | "sms">>;
267
- template: alepha1.TOptional<alepha1.TString>;
268
- contact: alepha1.TOptional<alepha1.TString>;
269
- category: alepha1.TOptional<alepha1.TString>;
270
- status: alepha1.TOptional<alepha1.TUnsafe<"pending" | "sent" | "failed">>;
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: alepha1.TPage<alepha1.TObject<{
273
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
274
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
275
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
276
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha1.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
277
- type: alepha1.TUnsafe<"email" | "sms">;
278
- template: alepha1.TString;
279
- category: alepha1.TOptional<alepha1.TString>;
280
- critical: alepha1.TOptional<alepha1.TBoolean>;
281
- sensitive: alepha1.TOptional<alepha1.TBoolean>;
282
- contact: alepha1.TString;
283
- variables: alepha1.TOptional<alepha1.TRecord<"^.*$", alepha1.TAny>>;
284
- scheduledAt: alepha1.TOptional<alepha1.TString>;
285
- sentAt: alepha1.TOptional<alepha1.TString>;
286
- error: alepha1.TOptional<alepha1.TObject<{
287
- at: alepha1.TString;
288
- name: alepha1.TString;
289
- message: alepha1.TString;
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<alepha1.TObject<{
302
- notificationId: alepha1.TString;
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: alepha1.TObject<{
308
- language: alepha1.TOptional<alepha1.TString>;
309
- exclude: alepha1.TArray<alepha1.TString>;
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: alepha1.Service<alepha1.Module>;
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<"link" | "code">;
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<"link" | "code">;
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<"link" | "code">;
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
- link: {
91
+ code: {
92
92
  codeExpiration: number;
93
93
  verificationCooldown: number;
94
94
  maxAttempts: number;
95
+ codeLength: number;
95
96
  limitPerDay: number;
96
97
  };
97
- code: {
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<"link" | "code">;
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<"link" | "code">;
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<"link" | "code">;
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<"link" | "code">;
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<"link" | "code">;
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<"link" | "code">;
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
  *