alepha 0.12.1 → 0.13.0

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,7 +1,7 @@
1
1
  import * as alepha224 from "alepha";
2
2
  import { Alepha, Async, Descriptor, KIND, Static, TNull, TObject, TOptional, TSchema, TUnion } from "alepha";
3
3
  import * as alepha_server0 from "alepha/server";
4
- import * as alepha_orm0 from "alepha/orm";
4
+ import * as alepha_orm33 from "alepha/orm";
5
5
  import "alepha/logger";
6
6
  import { DateTime, DateTimeProvider } from "alepha/datetime";
7
7
  import { LockDescriptor } from "alepha/lock";
@@ -351,11 +351,11 @@ type JobExecutionQuery = Static<typeof jobExecutionQuerySchema>;
351
351
  //#region src/api-jobs/services/JobService.d.ts
352
352
  declare class JobService {
353
353
  protected readonly alepha: Alepha;
354
- protected readonly executionRepository: alepha_orm0.Repository<alepha224.TObject<{
355
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
356
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
357
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
358
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
354
+ protected readonly executionRepository: alepha_orm33.Repository<alepha224.TObject<{
355
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
356
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
357
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
358
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
359
359
  finishedAt: alepha224.TOptional<alepha224.TString>;
360
360
  job: alepha224.TString;
361
361
  status: alepha224.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
@@ -372,11 +372,11 @@ declare class JobService {
372
372
  }>>>;
373
373
  }>>;
374
374
  getJobs(): Promise<string[]>;
375
- getJobExecutions(query?: JobExecutionQuery): Promise<alepha224.Page<alepha_orm0.PgStatic<alepha224.TObject<{
376
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
377
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
378
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
379
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
375
+ getJobExecutions(query?: JobExecutionQuery): Promise<alepha224.Page<alepha_orm33.PgStatic<alepha224.TObject<{
376
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
377
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
378
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
379
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
380
380
  finishedAt: alepha224.TOptional<alepha224.TString>;
381
381
  job: alepha224.TString;
382
382
  status: alepha224.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
@@ -391,11 +391,11 @@ declare class JobService {
391
391
  data: alepha224.TOptional<alepha224.TAny>;
392
392
  timestamp: alepha224.TNumber;
393
393
  }>>>;
394
- }>, alepha_orm0.PgRelationMap<alepha224.TObject<{
395
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
396
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
397
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
398
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
394
+ }>, alepha_orm33.PgRelationMap<alepha224.TObject<{
395
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
396
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
397
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
398
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
399
399
  finishedAt: alepha224.TOptional<alepha224.TString>;
400
400
  job: alepha224.TString;
401
401
  status: alepha224.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
@@ -480,11 +480,11 @@ declare class JobProvider {
480
480
  protected readonly alepha: Alepha;
481
481
  protected readonly dateTimeProvider: DateTimeProvider;
482
482
  protected readonly cronProvider: CronProvider;
483
- protected readonly executionRepository: alepha_orm0.Repository<alepha224.TObject<{
484
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
485
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
486
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
487
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
483
+ protected readonly executionRepository: alepha_orm33.Repository<alepha224.TObject<{
484
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
485
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
486
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
487
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
488
488
  finishedAt: alepha224.TOptional<alepha224.TString>;
489
489
  job: alepha224.TString;
490
490
  status: alepha224.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
@@ -591,11 +591,11 @@ interface JobHandlerArguments {
591
591
  }
592
592
  //#endregion
593
593
  //#region src/api-jobs/entities/jobExecutions.d.ts
594
- declare const jobExecutions: alepha_orm0.EntityDescriptor<alepha224.TObject<{
595
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
596
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
597
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
598
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha224.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
594
+ declare const jobExecutions: alepha_orm33.EntityDescriptor<alepha224.TObject<{
595
+ id: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_PRIMARY_KEY>, typeof alepha_orm33.PG_DEFAULT>;
596
+ version: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TInteger, typeof alepha_orm33.PG_VERSION>, typeof alepha_orm33.PG_DEFAULT>;
597
+ createdAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_CREATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
598
+ updatedAt: alepha_orm33.PgAttr<alepha_orm33.PgAttr<alepha224.TString, typeof alepha_orm33.PG_UPDATED_AT>, typeof alepha_orm33.PG_DEFAULT>;
599
599
  finishedAt: alepha224.TOptional<alepha224.TString>;
600
600
  job: alepha224.TString;
601
601
  status: alepha224.TUnsafe<"STARTED" | "FAILED" | "COMPLETED">;
@@ -1,9 +1,9 @@
1
- import * as alepha34 from "alepha";
1
+ import * as alepha122 from "alepha";
2
2
  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 alepha_orm0 from "alepha/orm";
6
+ import * as alepha_orm50 from "alepha/orm";
7
7
  import * as alepha_queue0 from "alepha/queue";
8
8
  import { EmailProvider } from "alepha/email";
9
9
 
@@ -11,33 +11,33 @@ import { EmailProvider } from "alepha/email";
11
11
  declare class NotificationController {}
12
12
  //#endregion
13
13
  //#region src/api-notifications/schemas/notificationCreateSchema.d.ts
14
- declare const notificationCreateSchema: alepha34.TObject<{
15
- type: alepha34.TUnsafe<"email" | "sms">;
16
- template: alepha34.TString;
17
- contact: alepha34.TString;
18
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
14
+ declare const notificationCreateSchema: alepha122.TObject<{
15
+ type: alepha122.TUnsafe<"email" | "sms">;
16
+ template: alepha122.TString;
17
+ contact: alepha122.TString;
18
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
19
19
  }>;
20
20
  type NotificationCreate = Static<typeof notificationCreateSchema>;
21
21
  //#endregion
22
22
  //#region src/api-notifications/entities/notifications.d.ts
23
- declare const notifications: alepha_orm0.EntityDescriptor<alepha34.TObject<{
24
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
25
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
26
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
27
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
28
- type: alepha34.TUnsafe<"email" | "sms">;
29
- template: alepha34.TString;
30
- category: alepha34.TOptional<alepha34.TString>;
31
- critical: alepha34.TOptional<alepha34.TBoolean>;
32
- sensitive: alepha34.TOptional<alepha34.TBoolean>;
33
- contact: alepha34.TString;
34
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
35
- scheduledAt: alepha34.TOptional<alepha34.TString>;
36
- sentAt: alepha34.TOptional<alepha34.TString>;
37
- error: alepha34.TOptional<alepha34.TObject<{
38
- at: alepha34.TString;
39
- name: alepha34.TString;
40
- message: alepha34.TString;
23
+ declare const notifications: alepha_orm50.EntityDescriptor<alepha122.TObject<{
24
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
25
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
26
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
27
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
28
+ type: alepha122.TUnsafe<"email" | "sms">;
29
+ template: alepha122.TString;
30
+ category: alepha122.TOptional<alepha122.TString>;
31
+ critical: alepha122.TOptional<alepha122.TBoolean>;
32
+ sensitive: alepha122.TOptional<alepha122.TBoolean>;
33
+ contact: alepha122.TString;
34
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
35
+ scheduledAt: alepha122.TOptional<alepha122.TString>;
36
+ sentAt: alepha122.TOptional<alepha122.TString>;
37
+ error: alepha122.TOptional<alepha122.TObject<{
38
+ at: alepha122.TString;
39
+ name: alepha122.TString;
40
+ message: alepha122.TString;
41
41
  }>>;
42
42
  }>>;
43
43
  type NotificationEntity = Static<typeof notifications.schema>;
@@ -55,24 +55,24 @@ interface SmsSendOptions {
55
55
  declare class NotificationSenderService {
56
56
  protected readonly alepha: Alepha;
57
57
  protected readonly log: alepha_logger0.Logger;
58
- protected readonly notificationRepository: alepha_orm0.Repository<alepha34.TObject<{
59
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
60
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
61
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
62
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
63
- type: alepha34.TUnsafe<"email" | "sms">;
64
- template: alepha34.TString;
65
- category: alepha34.TOptional<alepha34.TString>;
66
- critical: alepha34.TOptional<alepha34.TBoolean>;
67
- sensitive: alepha34.TOptional<alepha34.TBoolean>;
68
- contact: alepha34.TString;
69
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
70
- scheduledAt: alepha34.TOptional<alepha34.TString>;
71
- sentAt: alepha34.TOptional<alepha34.TString>;
72
- error: alepha34.TOptional<alepha34.TObject<{
73
- at: alepha34.TString;
74
- name: alepha34.TString;
75
- message: alepha34.TString;
58
+ protected readonly notificationRepository: alepha_orm50.Repository<alepha122.TObject<{
59
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
60
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
61
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
62
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
63
+ type: alepha122.TUnsafe<"email" | "sms">;
64
+ template: alepha122.TString;
65
+ category: alepha122.TOptional<alepha122.TString>;
66
+ critical: alepha122.TOptional<alepha122.TBoolean>;
67
+ sensitive: alepha122.TOptional<alepha122.TBoolean>;
68
+ contact: alepha122.TString;
69
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
70
+ scheduledAt: alepha122.TOptional<alepha122.TString>;
71
+ sentAt: alepha122.TOptional<alepha122.TString>;
72
+ error: alepha122.TOptional<alepha122.TObject<{
73
+ at: alepha122.TString;
74
+ name: alepha122.TString;
75
+ message: alepha122.TString;
76
76
  }>>;
77
77
  }>>;
78
78
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -89,15 +89,15 @@ declare class NotificationSenderService {
89
89
  body: string;
90
90
  };
91
91
  protected load(notification: NotificationEntity): {
92
- template: NotificationDescriptor<alepha34.TObject<alepha34.TProperties>>;
92
+ template: NotificationDescriptor<alepha122.TObject<alepha122.TProperties>>;
93
93
  variables: Record<string, any>;
94
94
  contact: string;
95
95
  };
96
96
  }
97
97
  //#endregion
98
98
  //#region src/api-notifications/services/NotificationService.d.ts
99
- declare const notificationServiceEnvSchema: alepha34.TObject<{
100
- NOTIFICATION_QUEUE: alepha34.TOptional<alepha34.TBoolean>;
99
+ declare const notificationServiceEnvSchema: alepha122.TObject<{
100
+ NOTIFICATION_QUEUE: alepha122.TOptional<alepha122.TBoolean>;
101
101
  }>;
102
102
  declare module "alepha" {
103
103
  interface Env extends Partial<Static<typeof notificationServiceEnvSchema>> {}
@@ -108,71 +108,71 @@ declare class NotificationService {
108
108
  protected readonly env: {
109
109
  NOTIFICATION_QUEUE?: boolean | undefined;
110
110
  };
111
- protected readonly notificationRepository: alepha_orm0.Repository<alepha34.TObject<{
112
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
113
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
114
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
115
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
116
- type: alepha34.TUnsafe<"email" | "sms">;
117
- template: alepha34.TString;
118
- category: alepha34.TOptional<alepha34.TString>;
119
- critical: alepha34.TOptional<alepha34.TBoolean>;
120
- sensitive: alepha34.TOptional<alepha34.TBoolean>;
121
- contact: alepha34.TString;
122
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
123
- scheduledAt: alepha34.TOptional<alepha34.TString>;
124
- sentAt: alepha34.TOptional<alepha34.TString>;
125
- error: alepha34.TOptional<alepha34.TObject<{
126
- at: alepha34.TString;
127
- name: alepha34.TString;
128
- message: alepha34.TString;
111
+ protected readonly notificationRepository: alepha_orm50.Repository<alepha122.TObject<{
112
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
113
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
114
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
115
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
116
+ type: alepha122.TUnsafe<"email" | "sms">;
117
+ template: alepha122.TString;
118
+ category: alepha122.TOptional<alepha122.TString>;
119
+ critical: alepha122.TOptional<alepha122.TBoolean>;
120
+ sensitive: alepha122.TOptional<alepha122.TBoolean>;
121
+ contact: alepha122.TString;
122
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
123
+ scheduledAt: alepha122.TOptional<alepha122.TString>;
124
+ sentAt: alepha122.TOptional<alepha122.TString>;
125
+ error: alepha122.TOptional<alepha122.TObject<{
126
+ at: alepha122.TString;
127
+ name: alepha122.TString;
128
+ message: alepha122.TString;
129
129
  }>>;
130
130
  }>>;
131
131
  protected readonly dateTimeProvider: DateTimeProvider;
132
132
  protected readonly notificationSenderService: NotificationSenderService;
133
- readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha34.TObject<{
134
- type: alepha34.TUnsafe<"email" | "sms">;
135
- template: alepha34.TString;
136
- contact: alepha34.TString;
137
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
133
+ readonly notificationBatch: alepha_batch0.BatchDescriptor<alepha122.TObject<{
134
+ type: alepha122.TUnsafe<"email" | "sms">;
135
+ template: alepha122.TString;
136
+ contact: alepha122.TString;
137
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
138
138
  }>, Promise<void>>;
139
- findNotificationById(id: string): Promise<alepha_orm0.PgStatic<alepha34.TObject<{
140
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
141
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
142
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
143
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
144
- type: alepha34.TUnsafe<"email" | "sms">;
145
- template: alepha34.TString;
146
- category: alepha34.TOptional<alepha34.TString>;
147
- critical: alepha34.TOptional<alepha34.TBoolean>;
148
- sensitive: alepha34.TOptional<alepha34.TBoolean>;
149
- contact: alepha34.TString;
150
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
151
- scheduledAt: alepha34.TOptional<alepha34.TString>;
152
- sentAt: alepha34.TOptional<alepha34.TString>;
153
- error: alepha34.TOptional<alepha34.TObject<{
154
- at: alepha34.TString;
155
- name: alepha34.TString;
156
- message: alepha34.TString;
139
+ findNotificationById(id: string): Promise<alepha_orm50.PgStatic<alepha122.TObject<{
140
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
141
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
142
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
143
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
144
+ type: alepha122.TUnsafe<"email" | "sms">;
145
+ template: alepha122.TString;
146
+ category: alepha122.TOptional<alepha122.TString>;
147
+ critical: alepha122.TOptional<alepha122.TBoolean>;
148
+ sensitive: alepha122.TOptional<alepha122.TBoolean>;
149
+ contact: alepha122.TString;
150
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
151
+ scheduledAt: alepha122.TOptional<alepha122.TString>;
152
+ sentAt: alepha122.TOptional<alepha122.TString>;
153
+ error: alepha122.TOptional<alepha122.TObject<{
154
+ at: alepha122.TString;
155
+ name: alepha122.TString;
156
+ message: alepha122.TString;
157
157
  }>>;
158
- }>, alepha_orm0.PgRelationMap<alepha34.TObject<{
159
- id: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_PRIMARY_KEY>, typeof alepha_orm0.PG_DEFAULT>;
160
- version: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TInteger, typeof alepha_orm0.PG_VERSION>, typeof alepha_orm0.PG_DEFAULT>;
161
- createdAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_CREATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
162
- updatedAt: alepha_orm0.PgAttr<alepha_orm0.PgAttr<alepha34.TString, typeof alepha_orm0.PG_UPDATED_AT>, typeof alepha_orm0.PG_DEFAULT>;
163
- type: alepha34.TUnsafe<"email" | "sms">;
164
- template: alepha34.TString;
165
- category: alepha34.TOptional<alepha34.TString>;
166
- critical: alepha34.TOptional<alepha34.TBoolean>;
167
- sensitive: alepha34.TOptional<alepha34.TBoolean>;
168
- contact: alepha34.TString;
169
- variables: alepha34.TOptional<alepha34.TRecord<"^.*$", alepha34.TAny>>;
170
- scheduledAt: alepha34.TOptional<alepha34.TString>;
171
- sentAt: alepha34.TOptional<alepha34.TString>;
172
- error: alepha34.TOptional<alepha34.TObject<{
173
- at: alepha34.TString;
174
- name: alepha34.TString;
175
- message: alepha34.TString;
158
+ }>, alepha_orm50.PgRelationMap<alepha122.TObject<{
159
+ id: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_PRIMARY_KEY>, typeof alepha_orm50.PG_DEFAULT>;
160
+ version: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TInteger, typeof alepha_orm50.PG_VERSION>, typeof alepha_orm50.PG_DEFAULT>;
161
+ createdAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_CREATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
162
+ updatedAt: alepha_orm50.PgAttr<alepha_orm50.PgAttr<alepha122.TString, typeof alepha_orm50.PG_UPDATED_AT>, typeof alepha_orm50.PG_DEFAULT>;
163
+ type: alepha122.TUnsafe<"email" | "sms">;
164
+ template: alepha122.TString;
165
+ category: alepha122.TOptional<alepha122.TString>;
166
+ critical: alepha122.TOptional<alepha122.TBoolean>;
167
+ sensitive: alepha122.TOptional<alepha122.TBoolean>;
168
+ contact: alepha122.TString;
169
+ variables: alepha122.TOptional<alepha122.TRecord<"^.*$", alepha122.TAny>>;
170
+ scheduledAt: alepha122.TOptional<alepha122.TString>;
171
+ sentAt: alepha122.TOptional<alepha122.TString>;
172
+ error: alepha122.TOptional<alepha122.TObject<{
173
+ at: alepha122.TString;
174
+ name: alepha122.TString;
175
+ message: alepha122.TString;
176
176
  }>>;
177
177
  }>>>>;
178
178
  /**
@@ -262,15 +262,15 @@ declare class MemorySmsProvider extends SmsProvider {
262
262
  //#region src/api-notifications/queues/NotificationQueues.d.ts
263
263
  declare class NotificationQueues {
264
264
  protected readonly notificationSenderService: NotificationSenderService;
265
- readonly processNotification: alepha_queue0.QueueDescriptor<alepha34.TObject<{
266
- notificationId: alepha34.TString;
265
+ readonly processNotification: alepha_queue0.QueueDescriptor<alepha122.TObject<{
266
+ notificationId: alepha122.TString;
267
267
  }>>;
268
268
  }
269
269
  //#endregion
270
270
  //#region src/api-notifications/schemas/notificationContactPreferencesSchema.d.ts
271
- declare const notificationContactPreferencesSchema: alepha34.TObject<{
272
- language: alepha34.TOptional<alepha34.TString>;
273
- exclude: alepha34.TArray<alepha34.TString>;
271
+ declare const notificationContactPreferencesSchema: alepha122.TObject<{
272
+ language: alepha122.TOptional<alepha122.TString>;
273
+ exclude: alepha122.TArray<alepha122.TString>;
274
274
  }>;
275
275
  type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
276
276
  //#endregion
@@ -283,7 +283,7 @@ type NotificationContactPreferences = Static<typeof notificationContactPreferenc
283
283
  *
284
284
  * @module alepha.api.notifications
285
285
  */
286
- declare const AlephaApiNotifications: alepha34.Service<alepha34.Module>;
286
+ declare const AlephaApiNotifications: alepha122.Service<alepha122.Module>;
287
287
  //#endregion
288
288
  export { $notification, AlephaApiNotifications, MemorySmsProvider, NotificationContactPreferences, NotificationController, NotificationCreate, NotificationDescriptor, NotificationDescriptorOptions, NotificationEntity, NotificationJobs, NotificationMessage, NotificationPushOptions, NotificationQueues, NotificationSenderService, NotificationService, SmsProvider, SmsRecord, SmsSendOptions, notificationContactPreferencesSchema, notificationCreateSchema, notificationServiceEnvSchema, notifications };
289
289
  //# sourceMappingURL=index.d.ts.map