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.
- package/dist/api-jobs/index.d.ts +26 -26
- package/dist/api-notifications/index.d.ts +111 -111
- package/dist/api-users/index.d.cts +1221 -1221
- package/dist/api-users/index.d.ts +1239 -1239
- package/dist/api-verifications/index.d.ts +94 -94
- package/dist/redis/index.d.ts +10 -10
- package/dist/security/index.d.cts +32 -32
- package/dist/security/index.d.ts +28 -28
- package/dist/server-auth/index.d.cts +193 -193
- package/dist/server-auth/index.d.ts +193 -193
- package/dist/server-links/index.d.cts +34 -34
- package/dist/server-links/index.d.ts +34 -34
- package/dist/websocket/index.d.cts +7 -7
- package/package.json +1 -1
package/dist/api-jobs/index.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
355
|
-
id:
|
|
356
|
-
version:
|
|
357
|
-
createdAt:
|
|
358
|
-
updatedAt:
|
|
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<
|
|
376
|
-
id:
|
|
377
|
-
version:
|
|
378
|
-
createdAt:
|
|
379
|
-
updatedAt:
|
|
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
|
-
}>,
|
|
395
|
-
id:
|
|
396
|
-
version:
|
|
397
|
-
createdAt:
|
|
398
|
-
updatedAt:
|
|
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:
|
|
484
|
-
id:
|
|
485
|
-
version:
|
|
486
|
-
createdAt:
|
|
487
|
-
updatedAt:
|
|
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:
|
|
595
|
-
id:
|
|
596
|
-
version:
|
|
597
|
-
createdAt:
|
|
598
|
-
updatedAt:
|
|
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
|
|
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
|
|
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:
|
|
15
|
-
type:
|
|
16
|
-
template:
|
|
17
|
-
contact:
|
|
18
|
-
variables:
|
|
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:
|
|
24
|
-
id:
|
|
25
|
-
version:
|
|
26
|
-
createdAt:
|
|
27
|
-
updatedAt:
|
|
28
|
-
type:
|
|
29
|
-
template:
|
|
30
|
-
category:
|
|
31
|
-
critical:
|
|
32
|
-
sensitive:
|
|
33
|
-
contact:
|
|
34
|
-
variables:
|
|
35
|
-
scheduledAt:
|
|
36
|
-
sentAt:
|
|
37
|
-
error:
|
|
38
|
-
at:
|
|
39
|
-
name:
|
|
40
|
-
message:
|
|
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:
|
|
59
|
-
id:
|
|
60
|
-
version:
|
|
61
|
-
createdAt:
|
|
62
|
-
updatedAt:
|
|
63
|
-
type:
|
|
64
|
-
template:
|
|
65
|
-
category:
|
|
66
|
-
critical:
|
|
67
|
-
sensitive:
|
|
68
|
-
contact:
|
|
69
|
-
variables:
|
|
70
|
-
scheduledAt:
|
|
71
|
-
sentAt:
|
|
72
|
-
error:
|
|
73
|
-
at:
|
|
74
|
-
name:
|
|
75
|
-
message:
|
|
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<
|
|
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:
|
|
100
|
-
NOTIFICATION_QUEUE:
|
|
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:
|
|
112
|
-
id:
|
|
113
|
-
version:
|
|
114
|
-
createdAt:
|
|
115
|
-
updatedAt:
|
|
116
|
-
type:
|
|
117
|
-
template:
|
|
118
|
-
category:
|
|
119
|
-
critical:
|
|
120
|
-
sensitive:
|
|
121
|
-
contact:
|
|
122
|
-
variables:
|
|
123
|
-
scheduledAt:
|
|
124
|
-
sentAt:
|
|
125
|
-
error:
|
|
126
|
-
at:
|
|
127
|
-
name:
|
|
128
|
-
message:
|
|
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<
|
|
134
|
-
type:
|
|
135
|
-
template:
|
|
136
|
-
contact:
|
|
137
|
-
variables:
|
|
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<
|
|
140
|
-
id:
|
|
141
|
-
version:
|
|
142
|
-
createdAt:
|
|
143
|
-
updatedAt:
|
|
144
|
-
type:
|
|
145
|
-
template:
|
|
146
|
-
category:
|
|
147
|
-
critical:
|
|
148
|
-
sensitive:
|
|
149
|
-
contact:
|
|
150
|
-
variables:
|
|
151
|
-
scheduledAt:
|
|
152
|
-
sentAt:
|
|
153
|
-
error:
|
|
154
|
-
at:
|
|
155
|
-
name:
|
|
156
|
-
message:
|
|
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
|
-
}>,
|
|
159
|
-
id:
|
|
160
|
-
version:
|
|
161
|
-
createdAt:
|
|
162
|
-
updatedAt:
|
|
163
|
-
type:
|
|
164
|
-
template:
|
|
165
|
-
category:
|
|
166
|
-
critical:
|
|
167
|
-
sensitive:
|
|
168
|
-
contact:
|
|
169
|
-
variables:
|
|
170
|
-
scheduledAt:
|
|
171
|
-
sentAt:
|
|
172
|
-
error:
|
|
173
|
-
at:
|
|
174
|
-
name:
|
|
175
|
-
message:
|
|
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<
|
|
266
|
-
notificationId:
|
|
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:
|
|
272
|
-
language:
|
|
273
|
-
exclude:
|
|
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:
|
|
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
|