alepha 0.10.7 → 0.11.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.
@@ -1,76 +1,39 @@
1
1
  import * as _alepha_core1 from "alepha";
2
- import { Alepha, Descriptor, KIND, Static, TObject } from "alepha";
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_postgres84 from "alepha/postgres";
6
+ import * as _alepha_postgres50 from "alepha/postgres";
7
7
  import * as _alepha_queue0 from "alepha/queue";
8
8
  import { EmailProvider } from "alepha/email";
9
- import * as typebox93 from "typebox";
9
+ import * as typebox64 from "typebox";
10
+ import * as dayjs14 from "dayjs";
10
11
 
11
12
  //#region src/controllers/NotificationController.d.ts
12
13
  declare class NotificationController {}
13
14
  //#endregion
14
15
  //#region src/entities/notifications.d.ts
15
- declare const notifications: _alepha_postgres84.PgTableWithColumnsAndSchema<_alepha_postgres84.PgTableConfig<"notifications", typebox93.TObject<{
16
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
17
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
18
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
19
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
20
- type: typebox93.TUnsafe<"email" | "sms">;
21
- template: typebox93.TString;
22
- category: typebox93.TOptional<typebox93.TString>;
23
- critical: typebox93.TOptional<typebox93.TBoolean>;
24
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
25
- contact: typebox93.TString;
26
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
27
- scheduledAt: typebox93.TOptional<typebox93.TString>;
28
- sentAt: typebox93.TOptional<typebox93.TString>;
29
- error: typebox93.TOptional<typebox93.TObject<{
30
- at: typebox93.TString;
31
- name: typebox93.TString;
32
- message: typebox93.TString;
33
- }>>;
34
- }>, _alepha_postgres84.FromSchema<typebox93.TObject<{
35
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
36
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
37
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
38
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
39
- type: typebox93.TUnsafe<"email" | "sms">;
40
- template: typebox93.TString;
41
- category: typebox93.TOptional<typebox93.TString>;
42
- critical: typebox93.TOptional<typebox93.TBoolean>;
43
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
44
- contact: typebox93.TString;
45
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
46
- scheduledAt: typebox93.TOptional<typebox93.TString>;
47
- sentAt: typebox93.TOptional<typebox93.TString>;
48
- error: typebox93.TOptional<typebox93.TObject<{
49
- at: typebox93.TString;
50
- name: typebox93.TString;
51
- message: typebox93.TString;
52
- }>>;
53
- }>>>, typebox93.TObject<{
54
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
55
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
56
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
57
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
58
- type: typebox93.TUnsafe<"email" | "sms">;
59
- template: typebox93.TString;
60
- category: typebox93.TOptional<typebox93.TString>;
61
- critical: typebox93.TOptional<typebox93.TBoolean>;
62
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
63
- contact: typebox93.TString;
64
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
65
- scheduledAt: typebox93.TOptional<typebox93.TString>;
66
- sentAt: typebox93.TOptional<typebox93.TString>;
67
- error: typebox93.TOptional<typebox93.TObject<{
68
- at: typebox93.TString;
69
- name: typebox93.TString;
70
- message: typebox93.TString;
16
+ declare const notifications: _alepha_postgres50.EntityDescriptor<typebox64.TObject<{
17
+ id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
18
+ version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
19
+ createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
20
+ updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
21
+ type: typebox64.TUnsafe<"email" | "sms">;
22
+ template: typebox64.TString;
23
+ category: typebox64.TOptional<typebox64.TString>;
24
+ critical: typebox64.TOptional<typebox64.TBoolean>;
25
+ sensitive: typebox64.TOptional<typebox64.TBoolean>;
26
+ contact: typebox64.TString;
27
+ variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
28
+ scheduledAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
29
+ sentAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
30
+ error: typebox64.TOptional<typebox64.TObject<{
31
+ at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
32
+ name: typebox64.TString;
33
+ message: typebox64.TString;
71
34
  }>>;
72
35
  }>>;
73
- type NotificationEntity = Static<typeof notifications.$schema>;
36
+ type NotificationEntity = Static<typeof notifications.schema>;
74
37
  //#endregion
75
38
  //#region src/providers/SmsProvider.d.ts
76
39
  declare abstract class SmsProvider {
@@ -85,62 +48,24 @@ interface SmsSendOptions {
85
48
  declare class NotificationSenderService {
86
49
  protected readonly alepha: Alepha;
87
50
  protected readonly log: _alepha_logger0.Logger;
88
- protected readonly notificationRepository: _alepha_postgres84.RepositoryDescriptor<_alepha_postgres84.PgTableConfig<"notifications", typebox93.TObject<{
89
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
90
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
91
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
92
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
93
- type: typebox93.TUnsafe<"email" | "sms">;
94
- template: typebox93.TString;
95
- category: typebox93.TOptional<typebox93.TString>;
96
- critical: typebox93.TOptional<typebox93.TBoolean>;
97
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
98
- contact: typebox93.TString;
99
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
100
- scheduledAt: typebox93.TOptional<typebox93.TString>;
101
- sentAt: typebox93.TOptional<typebox93.TString>;
102
- error: typebox93.TOptional<typebox93.TObject<{
103
- at: typebox93.TString;
104
- name: typebox93.TString;
105
- message: typebox93.TString;
106
- }>>;
107
- }>, _alepha_postgres84.FromSchema<typebox93.TObject<{
108
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
109
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
110
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
111
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
112
- type: typebox93.TUnsafe<"email" | "sms">;
113
- template: typebox93.TString;
114
- category: typebox93.TOptional<typebox93.TString>;
115
- critical: typebox93.TOptional<typebox93.TBoolean>;
116
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
117
- contact: typebox93.TString;
118
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
119
- scheduledAt: typebox93.TOptional<typebox93.TString>;
120
- sentAt: typebox93.TOptional<typebox93.TString>;
121
- error: typebox93.TOptional<typebox93.TObject<{
122
- at: typebox93.TString;
123
- name: typebox93.TString;
124
- message: typebox93.TString;
125
- }>>;
126
- }>>>, typebox93.TObject<{
127
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
128
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
129
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
130
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
131
- type: typebox93.TUnsafe<"email" | "sms">;
132
- template: typebox93.TString;
133
- category: typebox93.TOptional<typebox93.TString>;
134
- critical: typebox93.TOptional<typebox93.TBoolean>;
135
- sensitive: typebox93.TOptional<typebox93.TBoolean>;
136
- contact: typebox93.TString;
137
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
138
- scheduledAt: typebox93.TOptional<typebox93.TString>;
139
- sentAt: typebox93.TOptional<typebox93.TString>;
140
- error: typebox93.TOptional<typebox93.TObject<{
141
- at: typebox93.TString;
142
- name: typebox93.TString;
143
- message: typebox93.TString;
51
+ protected readonly notificationRepository: _alepha_postgres50.RepositoryDescriptor<typebox64.TObject<{
52
+ id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
53
+ version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
54
+ createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
55
+ updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
56
+ type: typebox64.TUnsafe<"email" | "sms">;
57
+ template: typebox64.TString;
58
+ category: typebox64.TOptional<typebox64.TString>;
59
+ critical: typebox64.TOptional<typebox64.TBoolean>;
60
+ sensitive: typebox64.TOptional<typebox64.TBoolean>;
61
+ contact: typebox64.TString;
62
+ variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
63
+ scheduledAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
64
+ sentAt: typebox64.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
65
+ error: typebox64.TOptional<typebox64.TObject<{
66
+ at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
67
+ name: typebox64.TString;
68
+ message: typebox64.TString;
144
69
  }>>;
145
70
  }>>;
146
71
  protected readonly dateTimeProvider: DateTimeProvider;
@@ -157,7 +82,7 @@ declare class NotificationSenderService {
157
82
  body: string;
158
83
  };
159
84
  protected load(notification: NotificationEntity): {
160
- template: NotificationDescriptor<typebox93.TObject<typebox93.TProperties>>;
85
+ template: NotificationDescriptor<typebox64.TObject<typebox64.TProperties>>;
161
86
  variables: Record<string, any>;
162
87
  contact: string;
163
88
  };
@@ -166,17 +91,17 @@ declare class NotificationSenderService {
166
91
  //#region src/queues/NotificationQueues.d.ts
167
92
  declare class NotificationQueues {
168
93
  protected readonly notificationSenderService: NotificationSenderService;
169
- readonly processNotification: _alepha_queue0.QueueDescriptor<typebox93.TObject<{
170
- notificationId: typebox93.TString;
94
+ readonly processNotification: _alepha_queue0.QueueDescriptor<typebox64.TObject<{
95
+ notificationId: typebox64.TString;
171
96
  }>>;
172
97
  }
173
98
  //#endregion
174
99
  //#region src/schemas/notificationCreateSchema.d.ts
175
- declare const notificationCreateSchema: typebox93.TObject<{
176
- type: typebox93.TUnsafe<"email" | "sms">;
177
- template: typebox93.TString;
178
- contact: typebox93.TString;
179
- variables: typebox93.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
100
+ declare const notificationCreateSchema: typebox64.TObject<{
101
+ type: typebox64.TUnsafe<"email" | "sms">;
102
+ template: typebox64.TString;
103
+ contact: typebox64.TString;
104
+ variables: typebox64.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
180
105
  }>;
181
106
  type NotificationCreate = Static<typeof notificationCreateSchema>;
182
107
  //#endregion
@@ -193,110 +118,72 @@ declare class NotificationService {
193
118
  protected readonly env: {
194
119
  NOTIFICATION_IMMEDIATE?: boolean | undefined;
195
120
  };
196
- protected readonly notificationRepository: _alepha_postgres84.RepositoryDescriptor<_alepha_postgres84.PgTableConfig<"notifications", _alepha_core1.TObject<{
197
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
198
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
199
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
200
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
201
- type: typebox93.TUnsafe<"email" | "sms">;
202
- template: typebox93.TString;
203
- category: _alepha_core1.TOptional<typebox93.TString>;
204
- critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
205
- sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
206
- contact: typebox93.TString;
207
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
208
- scheduledAt: _alepha_core1.TOptional<typebox93.TString>;
209
- sentAt: _alepha_core1.TOptional<typebox93.TString>;
210
- error: _alepha_core1.TOptional<_alepha_core1.TObject<{
211
- at: typebox93.TString;
212
- name: typebox93.TString;
213
- message: typebox93.TString;
214
- }>>;
215
- }>, _alepha_postgres84.FromSchema<_alepha_core1.TObject<{
216
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
217
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
218
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
219
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
220
- type: typebox93.TUnsafe<"email" | "sms">;
221
- template: typebox93.TString;
222
- category: _alepha_core1.TOptional<typebox93.TString>;
223
- critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
224
- sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
225
- contact: typebox93.TString;
226
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
227
- scheduledAt: _alepha_core1.TOptional<typebox93.TString>;
228
- sentAt: _alepha_core1.TOptional<typebox93.TString>;
229
- error: _alepha_core1.TOptional<_alepha_core1.TObject<{
230
- at: typebox93.TString;
231
- name: typebox93.TString;
232
- message: typebox93.TString;
233
- }>>;
234
- }>>>, _alepha_core1.TObject<{
235
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
236
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
237
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
238
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
239
- type: typebox93.TUnsafe<"email" | "sms">;
240
- template: typebox93.TString;
241
- category: _alepha_core1.TOptional<typebox93.TString>;
121
+ protected readonly notificationRepository: _alepha_postgres50.RepositoryDescriptor<_alepha_core1.TObject<{
122
+ id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
123
+ version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
124
+ createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
125
+ updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
126
+ type: typebox64.TUnsafe<"email" | "sms">;
127
+ template: typebox64.TString;
128
+ category: _alepha_core1.TOptional<typebox64.TString>;
242
129
  critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
243
130
  sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
244
- contact: typebox93.TString;
245
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
246
- scheduledAt: _alepha_core1.TOptional<typebox93.TString>;
247
- sentAt: _alepha_core1.TOptional<typebox93.TString>;
131
+ contact: typebox64.TString;
132
+ variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
133
+ scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
134
+ sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
248
135
  error: _alepha_core1.TOptional<_alepha_core1.TObject<{
249
- at: typebox93.TString;
250
- name: typebox93.TString;
251
- message: typebox93.TString;
136
+ at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
137
+ name: typebox64.TString;
138
+ message: typebox64.TString;
252
139
  }>>;
253
140
  }>>;
254
141
  protected readonly dateTimeProvider: DateTimeProvider;
255
142
  protected readonly notificationQueues: NotificationQueues;
256
143
  protected readonly notificationSenderService: NotificationSenderService;
257
144
  readonly notificationBatch: _alepha_batch0.BatchDescriptor<_alepha_core1.TObject<{
258
- type: typebox93.TUnsafe<"email" | "sms">;
259
- template: typebox93.TString;
260
- contact: typebox93.TString;
261
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
145
+ type: typebox64.TUnsafe<"email" | "sms">;
146
+ template: typebox64.TString;
147
+ contact: typebox64.TString;
148
+ variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
262
149
  }>, Promise<void>>;
263
- findNotificationById(id: string): Promise<_alepha_postgres84.PgStatic<_alepha_core1.TObject<{
264
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
265
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
266
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
267
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
268
- type: typebox93.TUnsafe<"email" | "sms">;
269
- template: typebox93.TString;
270
- category: _alepha_core1.TOptional<typebox93.TString>;
150
+ findNotificationById(id: string): Promise<_alepha_postgres50.PgStatic<_alepha_core1.TObject<{
151
+ id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
152
+ version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
153
+ createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
154
+ updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
155
+ type: typebox64.TUnsafe<"email" | "sms">;
156
+ template: typebox64.TString;
157
+ category: _alepha_core1.TOptional<typebox64.TString>;
271
158
  critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
272
159
  sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
273
- contact: typebox93.TString;
274
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
275
- scheduledAt: _alepha_core1.TOptional<typebox93.TString>;
276
- sentAt: _alepha_core1.TOptional<typebox93.TString>;
160
+ contact: typebox64.TString;
161
+ variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
162
+ scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
163
+ sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
277
164
  error: _alepha_core1.TOptional<_alepha_core1.TObject<{
278
- at: typebox93.TString;
279
- name: typebox93.TString;
280
- message: typebox93.TString;
165
+ at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
166
+ name: typebox64.TString;
167
+ message: typebox64.TString;
281
168
  }>>;
282
- }>, _alepha_postgres84.PgRelationMap<_alepha_core1.TObject<{
283
- id: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_PRIMARY_KEY>, typeof _alepha_postgres84.PG_DEFAULT>;
284
- version: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TInteger, typeof _alepha_postgres84.PG_VERSION>, typeof _alepha_postgres84.PG_DEFAULT>;
285
- createdAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_CREATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
286
- updatedAt: _alepha_postgres84.PgAttr<_alepha_postgres84.PgAttr<typebox93.TString, typeof _alepha_postgres84.PG_UPDATED_AT>, typeof _alepha_postgres84.PG_DEFAULT>;
287
- type: typebox93.TUnsafe<"email" | "sms">;
288
- template: typebox93.TString;
289
- category: _alepha_core1.TOptional<typebox93.TString>;
169
+ }>, _alepha_postgres50.PgRelationMap<_alepha_core1.TObject<{
170
+ id: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TString, typeof _alepha_postgres50.PG_PRIMARY_KEY>, typeof _alepha_postgres50.PG_DEFAULT>;
171
+ version: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TInteger, typeof _alepha_postgres50.PG_VERSION>, typeof _alepha_postgres50.PG_DEFAULT>;
172
+ createdAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_CREATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
173
+ updatedAt: _alepha_postgres50.PgAttr<_alepha_postgres50.PgAttr<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>, typeof _alepha_postgres50.PG_UPDATED_AT>, typeof _alepha_postgres50.PG_DEFAULT>;
174
+ type: typebox64.TUnsafe<"email" | "sms">;
175
+ template: typebox64.TString;
176
+ category: _alepha_core1.TOptional<typebox64.TString>;
290
177
  critical: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
291
178
  sensitive: _alepha_core1.TOptional<_alepha_core1.TBoolean>;
292
- contact: typebox93.TString;
293
- variables: _alepha_core1.TOptional<typebox93.TRecord<"^.*$", typebox93.TAny>>;
294
- scheduledAt: _alepha_core1.TOptional<typebox93.TString>;
295
- sentAt: _alepha_core1.TOptional<typebox93.TString>;
179
+ contact: typebox64.TString;
180
+ variables: _alepha_core1.TOptional<typebox64.TRecord<"^.*$", typebox64.TAny>>;
181
+ scheduledAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
182
+ sentAt: _alepha_core1.TOptional<typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>>;
296
183
  error: _alepha_core1.TOptional<_alepha_core1.TObject<{
297
- at: typebox93.TString;
298
- name: typebox93.TString;
299
- message: typebox93.TString;
184
+ at: typebox64.TCodec<typebox64.TString, dayjs14.Dayjs>;
185
+ name: typebox64.TString;
186
+ message: typebox64.TString;
300
187
  }>>;
301
188
  }>>>>;
302
189
  /**
@@ -310,34 +197,34 @@ declare const $notification: {
310
197
  <T extends TObject>(options: NotificationDescriptorOptions<T>): NotificationDescriptor<T>;
311
198
  [KIND]: typeof NotificationDescriptor;
312
199
  };
313
- interface NotificationDescriptorOptions<T$1 extends TObject> extends NotificationMessage<T$1> {
200
+ interface NotificationDescriptorOptions<T extends TObject> extends NotificationMessage<T> {
314
201
  name?: string;
315
202
  description?: string;
316
203
  category?: string;
317
204
  critical?: boolean;
318
205
  sensitive?: boolean;
319
206
  translations?: {
320
- [lang: string]: NotificationMessage<T$1>;
207
+ [lang: string]: NotificationMessage<T>;
321
208
  };
322
- schema: T$1;
209
+ schema: T;
323
210
  }
324
- declare class NotificationDescriptor<T$1 extends TObject> extends Descriptor<NotificationDescriptorOptions<T$1>> {
211
+ declare class NotificationDescriptor<T extends TObject> extends Descriptor<NotificationDescriptorOptions<T>> {
325
212
  protected readonly notificationService: NotificationService;
326
213
  get name(): string;
327
- push(options: NotificationPushOptions<T$1>): Promise<void>;
328
- configure(options: Partial<NotificationDescriptorOptions<T$1>>): void;
214
+ push(options: NotificationPushOptions<T>): Promise<void>;
215
+ configure(options: Partial<NotificationDescriptorOptions<T>>): void;
329
216
  }
330
- interface NotificationPushOptions<T$1 extends TObject> {
331
- variables: Static<T$1>;
217
+ interface NotificationPushOptions<T extends TObject> {
218
+ variables: StaticEncode<T>;
332
219
  contact: string;
333
220
  }
334
- interface NotificationMessage<T$1 extends TObject> {
221
+ interface NotificationMessage<T extends TObject> {
335
222
  email?: {
336
223
  subject: string;
337
- body: string | ((variables: Static<T$1>) => string);
224
+ body: string | ((variables: Static<T>) => string);
338
225
  };
339
226
  sms?: {
340
- message: string | ((variables: Static<T$1>) => string);
227
+ message: string | ((variables: Static<T>) => string);
341
228
  };
342
229
  }
343
230
  //#endregion
@@ -356,9 +243,9 @@ declare class MemorySmsProvider extends SmsProvider {
356
243
  }
357
244
  //#endregion
358
245
  //#region src/schemas/notificationContactPreferencesSchema.d.ts
359
- declare const notificationContactPreferencesSchema: typebox93.TObject<{
360
- language: typebox93.TOptional<typebox93.TString>;
361
- exclude: typebox93.TArray<typebox93.TString>;
246
+ declare const notificationContactPreferencesSchema: typebox64.TObject<{
247
+ language: typebox64.TOptional<typebox64.TString>;
248
+ exclude: typebox64.TArray<typebox64.TString>;
362
249
  }>;
363
250
  type NotificationContactPreferences = Static<typeof notificationContactPreferencesSchema>;
364
251
  //#endregion