alepha 0.12.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-notifications/index.d.ts +111 -111
- package/dist/api-users/index.d.ts +1240 -1240
- package/dist/api-verifications/index.d.ts +94 -94
- package/dist/cli/{dist-Sz2EXvQX.cjs → dist-Dl9Vl7Ur.js} +17 -13
- package/dist/cli/{dist-BBPjuQ56.js.map → dist-Dl9Vl7Ur.js.map} +1 -1
- package/dist/cli/index.d.ts +3 -11
- package/dist/cli/index.js +106 -74
- package/dist/cli/index.js.map +1 -1
- package/dist/email/index.js +71 -73
- package/dist/email/index.js.map +1 -1
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/index.js.map +1 -1
- package/dist/queue/index.d.ts +4 -4
- package/dist/redis/index.d.ts +10 -10
- package/dist/retry/index.d.ts +1 -1
- package/dist/retry/index.js +2 -2
- package/dist/retry/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +6 -6
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server-auth/index.d.ts +193 -193
- package/dist/server-health/index.d.ts +17 -17
- package/dist/server-links/index.d.ts +34 -34
- package/dist/server-metrics/index.js +170 -174
- package/dist/server-metrics/index.js.map +1 -1
- package/dist/server-security/index.d.ts +9 -9
- package/dist/vite/index.js +4 -5
- package/dist/vite/index.js.map +1 -1
- package/dist/websocket/index.d.ts +7 -7
- package/package.json +52 -103
- package/src/cli/apps/AlephaPackageBuilderCli.ts +7 -2
- package/src/cli/assets/appRouterTs.ts +9 -0
- package/src/cli/assets/indexHtml.ts +2 -1
- package/src/cli/assets/mainBrowserTs.ts +10 -0
- package/src/cli/commands/CoreCommands.ts +6 -5
- package/src/cli/commands/DrizzleCommands.ts +65 -57
- package/src/cli/commands/VerifyCommands.ts +1 -1
- package/src/cli/services/ProjectUtils.ts +44 -38
- package/src/orm/providers/DrizzleKitProvider.ts +1 -1
- package/src/retry/descriptors/$retry.ts +5 -3
- package/src/server/providers/NodeHttpServerProvider.ts +1 -1
- package/src/vite/helpers/boot.ts +3 -3
- package/dist/api-files/index.cjs +0 -1293
- package/dist/api-files/index.cjs.map +0 -1
- package/dist/api-files/index.d.cts +0 -829
- package/dist/api-jobs/index.cjs +0 -274
- package/dist/api-jobs/index.cjs.map +0 -1
- package/dist/api-jobs/index.d.cts +0 -654
- package/dist/api-notifications/index.cjs +0 -380
- package/dist/api-notifications/index.cjs.map +0 -1
- package/dist/api-notifications/index.d.cts +0 -289
- package/dist/api-parameters/index.cjs +0 -66
- package/dist/api-parameters/index.cjs.map +0 -1
- package/dist/api-parameters/index.d.cts +0 -84
- package/dist/api-users/index.cjs +0 -6009
- package/dist/api-users/index.cjs.map +0 -1
- package/dist/api-users/index.d.cts +0 -4740
- package/dist/api-verifications/index.cjs +0 -407
- package/dist/api-verifications/index.cjs.map +0 -1
- package/dist/api-verifications/index.d.cts +0 -207
- package/dist/batch/index.cjs +0 -408
- package/dist/batch/index.cjs.map +0 -1
- package/dist/batch/index.d.cts +0 -330
- package/dist/bin/index.cjs +0 -17
- package/dist/bin/index.cjs.map +0 -1
- package/dist/bin/index.d.cts +0 -1
- package/dist/bucket/index.cjs +0 -303
- package/dist/bucket/index.cjs.map +0 -1
- package/dist/bucket/index.d.cts +0 -355
- package/dist/cache/index.cjs +0 -241
- package/dist/cache/index.cjs.map +0 -1
- package/dist/cache/index.d.cts +0 -202
- package/dist/cache-redis/index.cjs +0 -84
- package/dist/cache-redis/index.cjs.map +0 -1
- package/dist/cache-redis/index.d.cts +0 -40
- package/dist/cli/chunk-DSlc6foC.cjs +0 -43
- package/dist/cli/dist-BBPjuQ56.js +0 -2778
- package/dist/cli/dist-Sz2EXvQX.cjs.map +0 -1
- package/dist/cli/index.cjs +0 -1241
- package/dist/cli/index.cjs.map +0 -1
- package/dist/cli/index.d.cts +0 -422
- package/dist/command/index.cjs +0 -693
- package/dist/command/index.cjs.map +0 -1
- package/dist/command/index.d.cts +0 -340
- package/dist/core/index.cjs +0 -2264
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -1927
- package/dist/datetime/index.cjs +0 -318
- package/dist/datetime/index.cjs.map +0 -1
- package/dist/datetime/index.d.cts +0 -145
- package/dist/email/index.cjs +0 -10874
- package/dist/email/index.cjs.map +0 -1
- package/dist/email/index.d.cts +0 -186
- package/dist/fake/index.cjs +0 -34641
- package/dist/fake/index.cjs.map +0 -1
- package/dist/fake/index.d.cts +0 -74
- package/dist/file/index.cjs +0 -1212
- package/dist/file/index.cjs.map +0 -1
- package/dist/file/index.d.cts +0 -698
- package/dist/lock/index.cjs +0 -226
- package/dist/lock/index.cjs.map +0 -1
- package/dist/lock/index.d.cts +0 -361
- package/dist/lock-redis/index.cjs +0 -113
- package/dist/lock-redis/index.cjs.map +0 -1
- package/dist/lock-redis/index.d.cts +0 -24
- package/dist/logger/index.cjs +0 -521
- package/dist/logger/index.cjs.map +0 -1
- package/dist/logger/index.d.cts +0 -281
- package/dist/orm/index.cjs +0 -2986
- package/dist/orm/index.cjs.map +0 -1
- package/dist/orm/index.d.cts +0 -2213
- package/dist/queue/index.cjs +0 -1044
- package/dist/queue/index.cjs.map +0 -1
- package/dist/queue/index.d.cts +0 -1265
- package/dist/queue-redis/index.cjs +0 -873
- package/dist/queue-redis/index.cjs.map +0 -1
- package/dist/queue-redis/index.d.cts +0 -82
- package/dist/redis/index.cjs +0 -153
- package/dist/redis/index.cjs.map +0 -1
- package/dist/redis/index.d.cts +0 -82
- package/dist/retry/index.cjs +0 -146
- package/dist/retry/index.cjs.map +0 -1
- package/dist/retry/index.d.cts +0 -172
- package/dist/router/index.cjs +0 -111
- package/dist/router/index.cjs.map +0 -1
- package/dist/router/index.d.cts +0 -46
- package/dist/scheduler/index.cjs +0 -576
- package/dist/scheduler/index.cjs.map +0 -1
- package/dist/scheduler/index.d.cts +0 -145
- package/dist/security/index.cjs +0 -2402
- package/dist/security/index.cjs.map +0 -1
- package/dist/security/index.d.cts +0 -598
- package/dist/server/index.cjs +0 -1680
- package/dist/server/index.cjs.map +0 -1
- package/dist/server/index.d.cts +0 -810
- package/dist/server-auth/index.cjs +0 -3146
- package/dist/server-auth/index.cjs.map +0 -1
- package/dist/server-auth/index.d.cts +0 -1164
- package/dist/server-cache/index.cjs +0 -252
- package/dist/server-cache/index.cjs.map +0 -1
- package/dist/server-cache/index.d.cts +0 -164
- package/dist/server-compress/index.cjs +0 -141
- package/dist/server-compress/index.cjs.map +0 -1
- package/dist/server-compress/index.d.cts +0 -38
- package/dist/server-cookies/index.cjs +0 -234
- package/dist/server-cookies/index.cjs.map +0 -1
- package/dist/server-cookies/index.d.cts +0 -144
- package/dist/server-cors/index.cjs +0 -201
- package/dist/server-cors/index.cjs.map +0 -1
- package/dist/server-cors/index.d.cts +0 -140
- package/dist/server-health/index.cjs +0 -62
- package/dist/server-health/index.cjs.map +0 -1
- package/dist/server-health/index.d.cts +0 -58
- package/dist/server-helmet/index.cjs +0 -131
- package/dist/server-helmet/index.cjs.map +0 -1
- package/dist/server-helmet/index.d.cts +0 -97
- package/dist/server-links/index.cjs +0 -992
- package/dist/server-links/index.cjs.map +0 -1
- package/dist/server-links/index.d.cts +0 -513
- package/dist/server-metrics/index.cjs +0 -4535
- package/dist/server-metrics/index.cjs.map +0 -1
- package/dist/server-metrics/index.d.cts +0 -35
- package/dist/server-multipart/index.cjs +0 -237
- package/dist/server-multipart/index.cjs.map +0 -1
- package/dist/server-multipart/index.d.cts +0 -50
- package/dist/server-proxy/index.cjs +0 -186
- package/dist/server-proxy/index.cjs.map +0 -1
- package/dist/server-proxy/index.d.cts +0 -234
- package/dist/server-rate-limit/index.cjs +0 -241
- package/dist/server-rate-limit/index.cjs.map +0 -1
- package/dist/server-rate-limit/index.d.cts +0 -183
- package/dist/server-security/index.cjs +0 -316
- package/dist/server-security/index.cjs.map +0 -1
- package/dist/server-security/index.d.cts +0 -173
- package/dist/server-static/index.cjs +0 -170
- package/dist/server-static/index.cjs.map +0 -1
- package/dist/server-static/index.d.cts +0 -121
- package/dist/server-swagger/index.cjs +0 -1021
- package/dist/server-swagger/index.cjs.map +0 -1
- package/dist/server-swagger/index.d.cts +0 -382
- package/dist/sms/index.cjs +0 -221
- package/dist/sms/index.cjs.map +0 -1
- package/dist/sms/index.d.cts +0 -130
- package/dist/thread/index.cjs +0 -350
- package/dist/thread/index.cjs.map +0 -1
- package/dist/thread/index.d.cts +0 -260
- package/dist/topic/index.cjs +0 -282
- package/dist/topic/index.cjs.map +0 -1
- package/dist/topic/index.d.cts +0 -523
- package/dist/topic-redis/index.cjs +0 -71
- package/dist/topic-redis/index.cjs.map +0 -1
- package/dist/topic-redis/index.d.cts +0 -42
- package/dist/vite/index.cjs +0 -1077
- package/dist/vite/index.cjs.map +0 -1
- package/dist/vite/index.d.cts +0 -542
- package/dist/websocket/index.cjs +0 -1117
- package/dist/websocket/index.cjs.map +0 -1
- package/dist/websocket/index.d.cts +0 -861
|
@@ -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
|