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.
Files changed (51) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +15 -100
  3. package/api/files.d.ts +168 -169
  4. package/api/jobs.d.ts +263 -154
  5. package/api/notifications.d.ts +28 -29
  6. package/api/users.d.ts +476 -477
  7. package/batch.d.ts +59 -493
  8. package/bucket.d.ts +20 -11
  9. package/cache/redis.d.ts +1 -1
  10. package/cache.d.ts +1 -1
  11. package/command.d.ts +24 -7
  12. package/core.d.ts +299 -222
  13. package/datetime.d.ts +4 -29
  14. package/devtools.d.ts +166 -284
  15. package/email.d.ts +45 -2
  16. package/fake.d.ts +1 -1
  17. package/file.d.ts +1 -1
  18. package/lock/redis.d.ts +1 -1
  19. package/lock.d.ts +1 -1
  20. package/logger.d.ts +11 -9
  21. package/package.json +51 -51
  22. package/postgres.d.ts +480 -198
  23. package/queue/redis.d.ts +1 -1
  24. package/queue.d.ts +1 -1
  25. package/react/auth.d.ts +7 -2
  26. package/react/form.d.ts +39 -16
  27. package/react/head.d.ts +1 -1
  28. package/react/i18n.d.ts +2 -2
  29. package/react.d.ts +66 -41
  30. package/redis.d.ts +1 -1
  31. package/retry.d.ts +84 -21
  32. package/scheduler.d.ts +1 -1
  33. package/security.d.ts +29 -29
  34. package/server/cache.d.ts +1 -1
  35. package/server/compress.d.ts +9 -3
  36. package/server/cookies.d.ts +1 -1
  37. package/server/cors.d.ts +28 -10
  38. package/server/health.d.ts +18 -19
  39. package/server/helmet.d.ts +44 -15
  40. package/server/links.d.ts +37 -31
  41. package/server/metrics.d.ts +1 -1
  42. package/server/multipart.d.ts +1 -1
  43. package/server/proxy.d.ts +1 -1
  44. package/server/security.d.ts +8 -3
  45. package/server/static.d.ts +1 -1
  46. package/server/swagger.d.ts +19 -6
  47. package/server.d.ts +1 -1
  48. package/topic/redis.d.ts +1 -1
  49. package/topic.d.ts +1 -1
  50. package/ui.d.ts +142 -12
  51. package/vite.d.ts +2 -2
@@ -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.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
20
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>>;
29
- sentAt: typebox0.TOptional<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>>;
27
+ scheduledAt: typebox0.TOptional<typebox0.TString>;
28
+ sentAt: typebox0.TOptional<typebox0.TString>;
30
29
  error: typebox0.TOptional<typebox0.TObject<{
31
- at: typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>;
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.RepositoryDescriptor<typebox0.TObject<{
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.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
55
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>>;
64
- sentAt: typebox0.TOptional<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>>;
62
+ scheduledAt: typebox0.TOptional<typebox0.TString>;
63
+ sentAt: typebox0.TOptional<typebox0.TString>;
65
64
  error: typebox0.TOptional<typebox0.TObject<{
66
- at: typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>;
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.RepositoryDescriptor<_alepha_core1.TObject<{
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.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
125
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>>;
134
- sentAt: _alepha_core1.TOptional<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
154
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>>;
163
- sentAt: _alepha_core1.TOptional<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_CREATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
173
- updatedAt: _alepha_postgres0.PgAttr<_alepha_postgres0.PgAttr<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>, typeof _alepha_postgres0.PG_UPDATED_AT>, typeof _alepha_postgres0.PG_DEFAULT>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>>;
182
- sentAt: _alepha_core1.TOptional<typebox0.TCodec<typebox0.TString, dayjs0.Dayjs>>;
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.TCodec<typebox0.TString, dayjs0.Dayjs>;
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