@tstdl/base 0.93.98 → 0.93.99

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 (80) hide show
  1. package/context/context.d.ts +1 -1
  2. package/context/context.js +4 -0
  3. package/document-management/api/document-management.api.d.ts +2 -2
  4. package/document-management/service-models/document.service-model.d.ts +1 -1
  5. package/notification/api/notification.api.d.ts +78 -0
  6. package/notification/api/notification.api.js +81 -0
  7. package/notification/enums.d.ts +22 -0
  8. package/notification/enums.js +19 -0
  9. package/notification/index.d.ts +2 -0
  10. package/notification/index.js +2 -0
  11. package/notification/models/in-app-notification.model.d.ts +9 -0
  12. package/notification/models/in-app-notification.model.js +42 -0
  13. package/notification/models/index.d.ts +6 -0
  14. package/notification/models/index.js +6 -0
  15. package/notification/models/notification-category.model.d.ts +17 -0
  16. package/notification/models/notification-category.model.js +41 -0
  17. package/notification/models/notification-log.model.d.ts +13 -0
  18. package/notification/models/notification-log.model.js +59 -0
  19. package/notification/models/notification-preference.model.d.ts +9 -0
  20. package/notification/models/notification-preference.model.js +45 -0
  21. package/notification/models/notification-table.d.ts +3 -0
  22. package/notification/models/notification-table.js +4 -0
  23. package/notification/models/web-push-subscription.model.d.ts +8 -0
  24. package/notification/models/web-push-subscription.model.js +41 -0
  25. package/notification/server/api/notification.api-controller.d.ts +16 -0
  26. package/notification/server/api/notification.api-controller.js +51 -0
  27. package/notification/server/drizzle/0000_glorious_randall.sql +90 -0
  28. package/notification/server/drizzle/meta/0000_snapshot.json +652 -0
  29. package/notification/server/drizzle/meta/_journal.json +13 -0
  30. package/notification/server/drizzle.config.d.ts +2 -0
  31. package/notification/server/drizzle.config.js +11 -0
  32. package/notification/server/index.d.ts +4 -0
  33. package/notification/server/index.js +4 -0
  34. package/notification/server/module.d.ts +12 -0
  35. package/notification/server/module.js +21 -0
  36. package/notification/server/providers/channel-provider.d.ts +4 -0
  37. package/notification/server/providers/channel-provider.js +1 -0
  38. package/notification/server/providers/email-channel-provider.d.ts +6 -0
  39. package/notification/server/providers/email-channel-provider.js +34 -0
  40. package/notification/server/providers/in-app-channel-provider.d.ts +7 -0
  41. package/notification/server/providers/in-app-channel-provider.js +31 -0
  42. package/notification/server/providers/index.d.ts +4 -0
  43. package/notification/server/providers/index.js +4 -0
  44. package/notification/server/providers/web-push-channel-provider.d.ts +6 -0
  45. package/notification/server/providers/web-push-channel-provider.js +26 -0
  46. package/notification/server/schemas.d.ts +25 -0
  47. package/notification/server/schemas.js +12 -0
  48. package/notification/server/services/index.d.ts +8 -0
  49. package/notification/server/services/index.js +8 -0
  50. package/notification/server/services/notification-category.service.d.ts +11 -0
  51. package/notification/server/services/notification-category.service.js +41 -0
  52. package/notification/server/services/notification-delivery.task.d.ts +9 -0
  53. package/notification/server/services/notification-delivery.task.js +1 -0
  54. package/notification/server/services/notification-delivery.worker.d.ts +12 -0
  55. package/notification/server/services/notification-delivery.worker.js +108 -0
  56. package/notification/server/services/notification-sse.service.d.ts +13 -0
  57. package/notification/server/services/notification-sse.service.js +74 -0
  58. package/notification/server/services/notification-template.d.ts +12 -0
  59. package/notification/server/services/notification-template.js +1 -0
  60. package/notification/server/services/notification-template.service.d.ts +7 -0
  61. package/notification/server/services/notification-template.service.js +29 -0
  62. package/notification/server/services/notification.service.d.ts +17 -0
  63. package/notification/server/services/notification.service.js +80 -0
  64. package/notification/server/services/singleton.d.ts +3 -0
  65. package/notification/server/services/singleton.js +10 -0
  66. package/notification/tests/notification-category.service.test.d.ts +1 -0
  67. package/notification/tests/notification-category.service.test.js +36 -0
  68. package/notification/tests/notification-flow.test.d.ts +1 -0
  69. package/notification/tests/notification-flow.test.js +112 -0
  70. package/notification/tests/notification-sse.service.test.d.ts +1 -0
  71. package/notification/tests/notification-sse.service.test.js +20 -0
  72. package/notification/tests/test-notification.model.d.ts +4 -0
  73. package/notification/tests/test-notification.model.js +25 -0
  74. package/orm/server/transactional.d.ts +3 -2
  75. package/orm/server/transactional.js +3 -2
  76. package/package.json +4 -2
  77. package/task-queue/task-queue.d.ts +7 -2
  78. package/task-queue/task-queue.js +4 -1
  79. package/unit-test/integration-setup.d.ts +7 -6
  80. package/unit-test/integration-setup.js +7 -2
@@ -0,0 +1,652 @@
1
+ {
2
+ "id": "270350fd-bfb6-488b-8b07-1e4e937e4f19",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "notification.in_app": {
8
+ "name": "in_app",
9
+ "schema": "notification",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": false,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "tenant_id": {
19
+ "name": "tenant_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "user_id": {
25
+ "name": "user_id",
26
+ "type": "uuid",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "log_id": {
31
+ "name": "log_id",
32
+ "type": "uuid",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "read_at": {
37
+ "name": "read_at",
38
+ "type": "timestamp with time zone",
39
+ "primaryKey": false,
40
+ "notNull": false
41
+ },
42
+ "archived_at": {
43
+ "name": "archived_at",
44
+ "type": "timestamp with time zone",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "revision": {
49
+ "name": "revision",
50
+ "type": "integer",
51
+ "primaryKey": false,
52
+ "notNull": true
53
+ },
54
+ "revision_timestamp": {
55
+ "name": "revision_timestamp",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": true
59
+ },
60
+ "create_timestamp": {
61
+ "name": "create_timestamp",
62
+ "type": "timestamp with time zone",
63
+ "primaryKey": false,
64
+ "notNull": true
65
+ },
66
+ "delete_timestamp": {
67
+ "name": "delete_timestamp",
68
+ "type": "timestamp with time zone",
69
+ "primaryKey": false,
70
+ "notNull": false
71
+ },
72
+ "attributes": {
73
+ "name": "attributes",
74
+ "type": "jsonb",
75
+ "primaryKey": false,
76
+ "notNull": true,
77
+ "default": "'{}'::jsonb"
78
+ }
79
+ },
80
+ "indexes": {},
81
+ "foreignKeys": {
82
+ "in_app_id_user_fkey": {
83
+ "name": "in_app_id_user_fkey",
84
+ "tableFrom": "in_app",
85
+ "tableTo": "user",
86
+ "schemaTo": "authentication",
87
+ "columnsFrom": [
88
+ "tenant_id",
89
+ "user_id"
90
+ ],
91
+ "columnsTo": [
92
+ "tenant_id",
93
+ "id"
94
+ ],
95
+ "onDelete": "no action",
96
+ "onUpdate": "no action"
97
+ },
98
+ "in_app_id_log_fkey": {
99
+ "name": "in_app_id_log_fkey",
100
+ "tableFrom": "in_app",
101
+ "tableTo": "log",
102
+ "schemaTo": "notification",
103
+ "columnsFrom": [
104
+ "tenant_id",
105
+ "log_id"
106
+ ],
107
+ "columnsTo": [
108
+ "tenant_id",
109
+ "id"
110
+ ],
111
+ "onDelete": "no action",
112
+ "onUpdate": "no action"
113
+ }
114
+ },
115
+ "compositePrimaryKeys": {
116
+ "in_app_tenant_id_id_pk": {
117
+ "name": "in_app_tenant_id_id_pk",
118
+ "columns": [
119
+ "tenant_id",
120
+ "id"
121
+ ]
122
+ }
123
+ },
124
+ "uniqueConstraints": {},
125
+ "policies": {},
126
+ "checkConstraints": {},
127
+ "isRLSEnabled": false
128
+ },
129
+ "notification.category": {
130
+ "name": "category",
131
+ "schema": "notification",
132
+ "columns": {
133
+ "id": {
134
+ "name": "id",
135
+ "type": "uuid",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "default": "gen_random_uuid()"
139
+ },
140
+ "tenant_id": {
141
+ "name": "tenant_id",
142
+ "type": "uuid",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "label": {
147
+ "name": "label",
148
+ "type": "text",
149
+ "primaryKey": false,
150
+ "notNull": true
151
+ },
152
+ "key": {
153
+ "name": "key",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": true
157
+ },
158
+ "throttling": {
159
+ "name": "throttling",
160
+ "type": "jsonb",
161
+ "primaryKey": false,
162
+ "notNull": false
163
+ },
164
+ "escalations": {
165
+ "name": "escalations",
166
+ "type": "jsonb",
167
+ "primaryKey": false,
168
+ "notNull": false
169
+ },
170
+ "revision": {
171
+ "name": "revision",
172
+ "type": "integer",
173
+ "primaryKey": false,
174
+ "notNull": true
175
+ },
176
+ "revision_timestamp": {
177
+ "name": "revision_timestamp",
178
+ "type": "timestamp with time zone",
179
+ "primaryKey": false,
180
+ "notNull": true
181
+ },
182
+ "create_timestamp": {
183
+ "name": "create_timestamp",
184
+ "type": "timestamp with time zone",
185
+ "primaryKey": false,
186
+ "notNull": true
187
+ },
188
+ "delete_timestamp": {
189
+ "name": "delete_timestamp",
190
+ "type": "timestamp with time zone",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "attributes": {
195
+ "name": "attributes",
196
+ "type": "jsonb",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "default": "'{}'::jsonb"
200
+ }
201
+ },
202
+ "indexes": {},
203
+ "foreignKeys": {},
204
+ "compositePrimaryKeys": {
205
+ "category_tenant_id_id_pk": {
206
+ "name": "category_tenant_id_id_pk",
207
+ "columns": [
208
+ "tenant_id",
209
+ "id"
210
+ ]
211
+ }
212
+ },
213
+ "uniqueConstraints": {
214
+ "category_tenant_id_key_unique": {
215
+ "name": "category_tenant_id_key_unique",
216
+ "nullsNotDistinct": false,
217
+ "columns": [
218
+ "tenant_id",
219
+ "key"
220
+ ]
221
+ }
222
+ },
223
+ "policies": {},
224
+ "checkConstraints": {},
225
+ "isRLSEnabled": false
226
+ },
227
+ "notification.log": {
228
+ "name": "log",
229
+ "schema": "notification",
230
+ "columns": {
231
+ "id": {
232
+ "name": "id",
233
+ "type": "uuid",
234
+ "primaryKey": false,
235
+ "notNull": true,
236
+ "default": "gen_random_uuid()"
237
+ },
238
+ "tenant_id": {
239
+ "name": "tenant_id",
240
+ "type": "uuid",
241
+ "primaryKey": false,
242
+ "notNull": true
243
+ },
244
+ "user_id": {
245
+ "name": "user_id",
246
+ "type": "uuid",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "category_id": {
251
+ "name": "category_id",
252
+ "type": "uuid",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "type": {
257
+ "name": "type",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "priority": {
263
+ "name": "priority",
264
+ "type": "notification_priority",
265
+ "typeSchema": "notification",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "status": {
270
+ "name": "status",
271
+ "type": "notification_status",
272
+ "typeSchema": "notification",
273
+ "primaryKey": false,
274
+ "notNull": true
275
+ },
276
+ "current_step": {
277
+ "name": "current_step",
278
+ "type": "integer",
279
+ "primaryKey": false,
280
+ "notNull": true
281
+ },
282
+ "payload": {
283
+ "name": "payload",
284
+ "type": "jsonb",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "revision": {
289
+ "name": "revision",
290
+ "type": "integer",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ },
294
+ "revision_timestamp": {
295
+ "name": "revision_timestamp",
296
+ "type": "timestamp with time zone",
297
+ "primaryKey": false,
298
+ "notNull": true
299
+ },
300
+ "create_timestamp": {
301
+ "name": "create_timestamp",
302
+ "type": "timestamp with time zone",
303
+ "primaryKey": false,
304
+ "notNull": true
305
+ },
306
+ "delete_timestamp": {
307
+ "name": "delete_timestamp",
308
+ "type": "timestamp with time zone",
309
+ "primaryKey": false,
310
+ "notNull": false
311
+ },
312
+ "attributes": {
313
+ "name": "attributes",
314
+ "type": "jsonb",
315
+ "primaryKey": false,
316
+ "notNull": true,
317
+ "default": "'{}'::jsonb"
318
+ }
319
+ },
320
+ "indexes": {},
321
+ "foreignKeys": {
322
+ "log_id_user_fkey": {
323
+ "name": "log_id_user_fkey",
324
+ "tableFrom": "log",
325
+ "tableTo": "user",
326
+ "schemaTo": "authentication",
327
+ "columnsFrom": [
328
+ "tenant_id",
329
+ "user_id"
330
+ ],
331
+ "columnsTo": [
332
+ "tenant_id",
333
+ "id"
334
+ ],
335
+ "onDelete": "no action",
336
+ "onUpdate": "no action"
337
+ },
338
+ "log_id_category_fkey": {
339
+ "name": "log_id_category_fkey",
340
+ "tableFrom": "log",
341
+ "tableTo": "category",
342
+ "schemaTo": "notification",
343
+ "columnsFrom": [
344
+ "tenant_id",
345
+ "category_id"
346
+ ],
347
+ "columnsTo": [
348
+ "tenant_id",
349
+ "id"
350
+ ],
351
+ "onDelete": "no action",
352
+ "onUpdate": "no action"
353
+ }
354
+ },
355
+ "compositePrimaryKeys": {
356
+ "log_tenant_id_id_pk": {
357
+ "name": "log_tenant_id_id_pk",
358
+ "columns": [
359
+ "tenant_id",
360
+ "id"
361
+ ]
362
+ }
363
+ },
364
+ "uniqueConstraints": {},
365
+ "policies": {},
366
+ "checkConstraints": {},
367
+ "isRLSEnabled": false
368
+ },
369
+ "notification.preference": {
370
+ "name": "preference",
371
+ "schema": "notification",
372
+ "columns": {
373
+ "id": {
374
+ "name": "id",
375
+ "type": "uuid",
376
+ "primaryKey": false,
377
+ "notNull": true,
378
+ "default": "gen_random_uuid()"
379
+ },
380
+ "tenant_id": {
381
+ "name": "tenant_id",
382
+ "type": "uuid",
383
+ "primaryKey": false,
384
+ "notNull": true
385
+ },
386
+ "user_id": {
387
+ "name": "user_id",
388
+ "type": "uuid",
389
+ "primaryKey": false,
390
+ "notNull": true
391
+ },
392
+ "category_id": {
393
+ "name": "category_id",
394
+ "type": "uuid",
395
+ "primaryKey": false,
396
+ "notNull": true
397
+ },
398
+ "channel": {
399
+ "name": "channel",
400
+ "type": "notification_channel",
401
+ "typeSchema": "notification",
402
+ "primaryKey": false,
403
+ "notNull": true
404
+ },
405
+ "enabled": {
406
+ "name": "enabled",
407
+ "type": "boolean",
408
+ "primaryKey": false,
409
+ "notNull": true
410
+ },
411
+ "revision": {
412
+ "name": "revision",
413
+ "type": "integer",
414
+ "primaryKey": false,
415
+ "notNull": true
416
+ },
417
+ "revision_timestamp": {
418
+ "name": "revision_timestamp",
419
+ "type": "timestamp with time zone",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "create_timestamp": {
424
+ "name": "create_timestamp",
425
+ "type": "timestamp with time zone",
426
+ "primaryKey": false,
427
+ "notNull": true
428
+ },
429
+ "delete_timestamp": {
430
+ "name": "delete_timestamp",
431
+ "type": "timestamp with time zone",
432
+ "primaryKey": false,
433
+ "notNull": false
434
+ },
435
+ "attributes": {
436
+ "name": "attributes",
437
+ "type": "jsonb",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "default": "'{}'::jsonb"
441
+ }
442
+ },
443
+ "indexes": {},
444
+ "foreignKeys": {
445
+ "preference_id_user_fkey": {
446
+ "name": "preference_id_user_fkey",
447
+ "tableFrom": "preference",
448
+ "tableTo": "user",
449
+ "schemaTo": "authentication",
450
+ "columnsFrom": [
451
+ "tenant_id",
452
+ "user_id"
453
+ ],
454
+ "columnsTo": [
455
+ "tenant_id",
456
+ "id"
457
+ ],
458
+ "onDelete": "no action",
459
+ "onUpdate": "no action"
460
+ },
461
+ "preference_id_category_fkey": {
462
+ "name": "preference_id_category_fkey",
463
+ "tableFrom": "preference",
464
+ "tableTo": "category",
465
+ "schemaTo": "notification",
466
+ "columnsFrom": [
467
+ "tenant_id",
468
+ "category_id"
469
+ ],
470
+ "columnsTo": [
471
+ "tenant_id",
472
+ "id"
473
+ ],
474
+ "onDelete": "no action",
475
+ "onUpdate": "no action"
476
+ }
477
+ },
478
+ "compositePrimaryKeys": {
479
+ "preference_tenant_id_id_pk": {
480
+ "name": "preference_tenant_id_id_pk",
481
+ "columns": [
482
+ "tenant_id",
483
+ "id"
484
+ ]
485
+ }
486
+ },
487
+ "uniqueConstraints": {
488
+ "preference_tenant_id_user_id_category_id_channel_unique": {
489
+ "name": "preference_tenant_id_user_id_category_id_channel_unique",
490
+ "nullsNotDistinct": false,
491
+ "columns": [
492
+ "tenant_id",
493
+ "user_id",
494
+ "category_id",
495
+ "channel"
496
+ ]
497
+ }
498
+ },
499
+ "policies": {},
500
+ "checkConstraints": {},
501
+ "isRLSEnabled": false
502
+ },
503
+ "notification.web_push_subscription": {
504
+ "name": "web_push_subscription",
505
+ "schema": "notification",
506
+ "columns": {
507
+ "id": {
508
+ "name": "id",
509
+ "type": "uuid",
510
+ "primaryKey": false,
511
+ "notNull": true,
512
+ "default": "gen_random_uuid()"
513
+ },
514
+ "tenant_id": {
515
+ "name": "tenant_id",
516
+ "type": "uuid",
517
+ "primaryKey": false,
518
+ "notNull": true
519
+ },
520
+ "user_id": {
521
+ "name": "user_id",
522
+ "type": "uuid",
523
+ "primaryKey": false,
524
+ "notNull": true
525
+ },
526
+ "endpoint": {
527
+ "name": "endpoint",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true
531
+ },
532
+ "p256dh": {
533
+ "name": "p256dh",
534
+ "type": "text",
535
+ "primaryKey": false,
536
+ "notNull": true
537
+ },
538
+ "auth": {
539
+ "name": "auth",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": true
543
+ },
544
+ "revision": {
545
+ "name": "revision",
546
+ "type": "integer",
547
+ "primaryKey": false,
548
+ "notNull": true
549
+ },
550
+ "revision_timestamp": {
551
+ "name": "revision_timestamp",
552
+ "type": "timestamp with time zone",
553
+ "primaryKey": false,
554
+ "notNull": true
555
+ },
556
+ "create_timestamp": {
557
+ "name": "create_timestamp",
558
+ "type": "timestamp with time zone",
559
+ "primaryKey": false,
560
+ "notNull": true
561
+ },
562
+ "delete_timestamp": {
563
+ "name": "delete_timestamp",
564
+ "type": "timestamp with time zone",
565
+ "primaryKey": false,
566
+ "notNull": false
567
+ },
568
+ "attributes": {
569
+ "name": "attributes",
570
+ "type": "jsonb",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "default": "'{}'::jsonb"
574
+ }
575
+ },
576
+ "indexes": {},
577
+ "foreignKeys": {
578
+ "web_push_subscription_id_user_fkey": {
579
+ "name": "web_push_subscription_id_user_fkey",
580
+ "tableFrom": "web_push_subscription",
581
+ "tableTo": "user",
582
+ "schemaTo": "authentication",
583
+ "columnsFrom": [
584
+ "tenant_id",
585
+ "user_id"
586
+ ],
587
+ "columnsTo": [
588
+ "tenant_id",
589
+ "id"
590
+ ],
591
+ "onDelete": "no action",
592
+ "onUpdate": "no action"
593
+ }
594
+ },
595
+ "compositePrimaryKeys": {
596
+ "web_push_subscription_tenant_id_id_pk": {
597
+ "name": "web_push_subscription_tenant_id_id_pk",
598
+ "columns": [
599
+ "tenant_id",
600
+ "id"
601
+ ]
602
+ }
603
+ },
604
+ "uniqueConstraints": {},
605
+ "policies": {},
606
+ "checkConstraints": {},
607
+ "isRLSEnabled": false
608
+ }
609
+ },
610
+ "enums": {
611
+ "notification.notification_channel": {
612
+ "name": "notification_channel",
613
+ "schema": "notification",
614
+ "values": [
615
+ "in-app",
616
+ "email",
617
+ "web-push"
618
+ ]
619
+ },
620
+ "notification.notification_priority": {
621
+ "name": "notification_priority",
622
+ "schema": "notification",
623
+ "values": [
624
+ "low",
625
+ "medium",
626
+ "high",
627
+ "urgent"
628
+ ]
629
+ },
630
+ "notification.notification_status": {
631
+ "name": "notification_status",
632
+ "schema": "notification",
633
+ "values": [
634
+ "pending",
635
+ "sent",
636
+ "delivered",
637
+ "read",
638
+ "failed"
639
+ ]
640
+ }
641
+ },
642
+ "schemas": {},
643
+ "sequences": {},
644
+ "roles": {},
645
+ "policies": {},
646
+ "views": {},
647
+ "_meta": {
648
+ "columns": {},
649
+ "schemas": {},
650
+ "tables": {}
651
+ }
652
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1769475703872,
9
+ "tag": "0000_glorious_randall",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("drizzle-kit").Config;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { relative, resolve } from 'node:path';
2
+ import { defineConfig } from 'drizzle-kit';
3
+ export default defineConfig({
4
+ dialect: 'postgresql',
5
+ out: relative('./', resolve(__dirname, './drizzle/').replace('dist', 'source')),
6
+ schema: resolve(__dirname, './schemas.js'),
7
+ migrations: {
8
+ schema: 'notification',
9
+ table: '_migrations',
10
+ },
11
+ });
@@ -0,0 +1,4 @@
1
+ export * from './module.js';
2
+ export * from './providers/index.js';
3
+ export * from './schemas.js';
4
+ export * from './services/index.js';
@@ -0,0 +1,4 @@
1
+ export * from './module.js';
2
+ export * from './providers/index.js';
3
+ export * from './schemas.js';
4
+ export * from './services/index.js';
@@ -0,0 +1,12 @@
1
+ import { Injector } from '../../injector/index.js';
2
+ import { type DatabaseConfig } from '../../orm/server/index.js';
3
+ export declare class NotificationConfiguration {
4
+ database?: DatabaseConfig;
5
+ }
6
+ export declare function configureNotification({ injector, ...config }: NotificationConfiguration & {
7
+ injector?: Injector;
8
+ }): void;
9
+ /**
10
+ * Migrates the notification schema.
11
+ */
12
+ export declare function migrateNotificationSchema(): Promise<void>;