alepha 0.11.5 → 0.11.7
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/LICENSE +1 -1
- package/README.md +15 -100
- package/api/files.d.ts +168 -169
- package/api/jobs.d.ts +263 -154
- package/api/notifications.d.ts +28 -29
- package/api/users.d.ts +476 -477
- package/batch.d.ts +59 -493
- package/bucket.d.ts +20 -11
- package/cache/redis.d.ts +1 -1
- package/cache.d.ts +1 -1
- package/command.d.ts +24 -7
- package/core.d.ts +299 -222
- package/datetime.d.ts +4 -29
- package/devtools.d.ts +166 -284
- package/email.d.ts +45 -2
- package/fake.d.ts +1 -1
- package/file.d.ts +1 -1
- package/lock/redis.d.ts +1 -1
- package/lock.d.ts +1 -1
- package/logger.d.ts +11 -9
- package/package.json +51 -51
- package/postgres.d.ts +480 -198
- package/queue/redis.d.ts +1 -1
- package/queue.d.ts +1 -1
- package/react/auth.d.ts +7 -2
- package/react/form.d.ts +39 -16
- package/react/head.d.ts +1 -1
- package/react/i18n.d.ts +2 -2
- package/react.d.ts +66 -41
- package/redis.d.ts +1 -1
- package/retry.d.ts +84 -21
- package/scheduler.d.ts +1 -1
- package/security.d.ts +29 -29
- package/server/cache.d.ts +1 -1
- package/server/compress.d.ts +9 -3
- package/server/cookies.d.ts +1 -1
- package/server/cors.d.ts +28 -10
- package/server/health.d.ts +18 -19
- package/server/helmet.d.ts +44 -15
- package/server/links.d.ts +37 -31
- package/server/metrics.d.ts +1 -1
- package/server/multipart.d.ts +1 -1
- package/server/proxy.d.ts +1 -1
- package/server/security.d.ts +8 -3
- package/server/static.d.ts +1 -1
- package/server/swagger.d.ts +19 -6
- package/server.d.ts +1 -1
- package/topic/redis.d.ts +1 -1
- package/topic.d.ts +1 -1
- package/ui.d.ts +142 -12
- package/vite.d.ts +2 -2
package/api/notifications.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as _alepha_postgres0 from "alepha/postgres";
|
|
|
7
7
|
import * as _alepha_queue0 from "alepha/queue";
|
|
8
8
|
import { EmailProvider } from "alepha/email";
|
|
9
9
|
import * as typebox0 from "typebox";
|
|
10
|
-
import * as dayjs0 from "dayjs";
|
|
11
10
|
|
|
12
11
|
//#region src/controllers/NotificationController.d.ts
|
|
13
12
|
declare class NotificationController {}
|
|
@@ -16,8 +15,8 @@ declare class NotificationController {}
|
|
|
16
15
|
declare const notifications: _alepha_postgres0.EntityDescriptor<typebox0.TObject<{
|
|
17
16
|
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
18
17
|
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
19
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
20
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
18
|
+
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
19
|
+
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
21
20
|
type: typebox0.TUnsafe<"email" | "sms">;
|
|
22
21
|
template: typebox0.TString;
|
|
23
22
|
category: typebox0.TOptional<typebox0.TString>;
|
|
@@ -25,10 +24,10 @@ declare const notifications: _alepha_postgres0.EntityDescriptor<typebox0.TObject
|
|
|
25
24
|
sensitive: typebox0.TOptional<typebox0.TBoolean>;
|
|
26
25
|
contact: typebox0.TString;
|
|
27
26
|
variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
|
|
28
|
-
scheduledAt: typebox0.TOptional<typebox0.
|
|
29
|
-
sentAt: typebox0.TOptional<typebox0.
|
|
27
|
+
scheduledAt: typebox0.TOptional<typebox0.TString>;
|
|
28
|
+
sentAt: typebox0.TOptional<typebox0.TString>;
|
|
30
29
|
error: typebox0.TOptional<typebox0.TObject<{
|
|
31
|
-
at: typebox0.
|
|
30
|
+
at: typebox0.TString;
|
|
32
31
|
name: typebox0.TString;
|
|
33
32
|
message: typebox0.TString;
|
|
34
33
|
}>>;
|
|
@@ -48,11 +47,11 @@ interface SmsSendOptions {
|
|
|
48
47
|
declare class NotificationSenderService {
|
|
49
48
|
protected readonly alepha: Alepha;
|
|
50
49
|
protected readonly log: _alepha_logger0.Logger;
|
|
51
|
-
protected readonly notificationRepository: _alepha_postgres0.
|
|
50
|
+
protected readonly notificationRepository: _alepha_postgres0.Repository<typebox0.TObject<{
|
|
52
51
|
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
53
52
|
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
54
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
55
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
53
|
+
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
54
|
+
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
56
55
|
type: typebox0.TUnsafe<"email" | "sms">;
|
|
57
56
|
template: typebox0.TString;
|
|
58
57
|
category: typebox0.TOptional<typebox0.TString>;
|
|
@@ -60,10 +59,10 @@ declare class NotificationSenderService {
|
|
|
60
59
|
sensitive: typebox0.TOptional<typebox0.TBoolean>;
|
|
61
60
|
contact: typebox0.TString;
|
|
62
61
|
variables: typebox0.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
|
|
63
|
-
scheduledAt: typebox0.TOptional<typebox0.
|
|
64
|
-
sentAt: typebox0.TOptional<typebox0.
|
|
62
|
+
scheduledAt: typebox0.TOptional<typebox0.TString>;
|
|
63
|
+
sentAt: typebox0.TOptional<typebox0.TString>;
|
|
65
64
|
error: typebox0.TOptional<typebox0.TObject<{
|
|
66
|
-
at: typebox0.
|
|
65
|
+
at: typebox0.TString;
|
|
67
66
|
name: typebox0.TString;
|
|
68
67
|
message: typebox0.TString;
|
|
69
68
|
}>>;
|
|
@@ -118,11 +117,11 @@ declare class NotificationService {
|
|
|
118
117
|
protected readonly env: {
|
|
119
118
|
NOTIFICATION_IMMEDIATE?: boolean | undefined;
|
|
120
119
|
};
|
|
121
|
-
protected readonly notificationRepository: _alepha_postgres0.
|
|
120
|
+
protected readonly notificationRepository: _alepha_postgres0.Repository<_alepha_core1.TObject<{
|
|
122
121
|
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
123
122
|
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
124
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
125
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
123
|
+
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
124
|
+
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
126
125
|
type: typebox0.TUnsafe<"email" | "sms">;
|
|
127
126
|
template: typebox0.TString;
|
|
128
127
|
category: _alepha_core1.TOptional<typebox0.TString>;
|
|
@@ -130,10 +129,10 @@ declare class NotificationService {
|
|
|
130
129
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
131
130
|
contact: typebox0.TString;
|
|
132
131
|
variables: _alepha_core1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
|
|
133
|
-
scheduledAt: _alepha_core1.TOptional<typebox0.
|
|
134
|
-
sentAt: _alepha_core1.TOptional<typebox0.
|
|
132
|
+
scheduledAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
133
|
+
sentAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
135
134
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
136
|
-
at: typebox0.
|
|
135
|
+
at: typebox0.TString;
|
|
137
136
|
name: typebox0.TString;
|
|
138
137
|
message: typebox0.TString;
|
|
139
138
|
}>>;
|
|
@@ -150,8 +149,8 @@ declare class NotificationService {
|
|
|
150
149
|
findNotificationById(id: string): Promise<_alepha_postgres0.PgStatic<_alepha_core1.TObject<{
|
|
151
150
|
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
152
151
|
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
153
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
154
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
152
|
+
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
153
|
+
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
155
154
|
type: typebox0.TUnsafe<"email" | "sms">;
|
|
156
155
|
template: typebox0.TString;
|
|
157
156
|
category: _alepha_core1.TOptional<typebox0.TString>;
|
|
@@ -159,18 +158,18 @@ declare class NotificationService {
|
|
|
159
158
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
160
159
|
contact: typebox0.TString;
|
|
161
160
|
variables: _alepha_core1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
|
|
162
|
-
scheduledAt: _alepha_core1.TOptional<typebox0.
|
|
163
|
-
sentAt: _alepha_core1.TOptional<typebox0.
|
|
161
|
+
scheduledAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
162
|
+
sentAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
164
163
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
165
|
-
at: typebox0.
|
|
164
|
+
at: typebox0.TString;
|
|
166
165
|
name: typebox0.TString;
|
|
167
166
|
message: typebox0.TString;
|
|
168
167
|
}>>;
|
|
169
168
|
}>, _alepha_postgres0.PgRelationMap<_alepha_core1.TObject<{
|
|
170
169
|
id: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_PRIMARY_KEY>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
171
170
|
version: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TInteger, typeof _alepha_postgres0.PG_VERSION>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
172
|
-
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
173
|
-
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.
|
|
171
|
+
createdAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
172
|
+
updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TString, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
|
|
174
173
|
type: typebox0.TUnsafe<"email" | "sms">;
|
|
175
174
|
template: typebox0.TString;
|
|
176
175
|
category: _alepha_core1.TOptional<typebox0.TString>;
|
|
@@ -178,10 +177,10 @@ declare class NotificationService {
|
|
|
178
177
|
sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
|
|
179
178
|
contact: typebox0.TString;
|
|
180
179
|
variables: _alepha_core1.TOptional<typebox0.TRecord<"^.*$", typebox0.TAny>>;
|
|
181
|
-
scheduledAt: _alepha_core1.TOptional<typebox0.
|
|
182
|
-
sentAt: _alepha_core1.TOptional<typebox0.
|
|
180
|
+
scheduledAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
181
|
+
sentAt: _alepha_core1.TOptional<typebox0.TString>;
|
|
183
182
|
error: _alepha_core1.TOptional<_alepha_core1.TObject<{
|
|
184
|
-
at: typebox0.
|
|
183
|
+
at: typebox0.TString;
|
|
185
184
|
name: typebox0.TString;
|
|
186
185
|
message: typebox0.TString;
|
|
187
186
|
}>>;
|
|
@@ -258,7 +257,7 @@ type NotificationContactPreferences = Static<typeof notificationContactPreferenc
|
|
|
258
257
|
*
|
|
259
258
|
* @module alepha.api.notifications
|
|
260
259
|
*/
|
|
261
|
-
declare const AlephaApiNotifications: _alepha_core1.Service<_alepha_core1.Module
|
|
260
|
+
declare const AlephaApiNotifications: _alepha_core1.Service<_alepha_core1.Module>;
|
|
262
261
|
//#endregion
|
|
263
262
|
export { $notification, AlephaApiNotifications, MemorySmsProvider, NotificationContactPreferences, NotificationController, NotificationCreate, NotificationDescriptor, NotificationDescriptorOptions, NotificationEntity, NotificationJobs, NotificationMessage, NotificationPushOptions, NotificationQueues, NotificationSenderService, NotificationService, SmsProvider, SmsRecord, SmsSendOptions, notificationContactPreferencesSchema, notificationCreateSchema, notifications };
|
|
264
263
|
//# sourceMappingURL=index.d.ts.map
|