@voyant-travel/notifications 0.111.7 → 0.111.9

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/routes.d.ts CHANGED
@@ -39,7 +39,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
39
39
  name: string;
40
40
  channel: "email" | "sms";
41
41
  provider: string | null;
42
- status: "draft" | "active" | "archived";
42
+ status: "active" | "draft" | "archived";
43
43
  subjectTemplate: string | null;
44
44
  htmlTemplate: string | null;
45
45
  textTemplate: string | null;
@@ -65,22 +65,22 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
65
65
  input: {};
66
66
  output: {
67
67
  data: {
68
- provider: string | null;
69
68
  metadata: {
70
69
  [x: string]: import("hono/utils/types").JSONValue;
71
70
  } | null;
72
- channel: "email" | "sms";
73
- status: "draft" | "active" | "archived";
74
- id: string;
75
71
  name: string;
72
+ id: string;
73
+ status: "active" | "draft" | "archived";
74
+ createdAt: string;
75
+ updatedAt: string;
76
76
  slug: string;
77
+ provider: string | null;
78
+ channel: "email" | "sms";
77
79
  subjectTemplate: string | null;
78
80
  htmlTemplate: string | null;
79
81
  textTemplate: string | null;
80
82
  fromAddress: string | null;
81
83
  isSystem: boolean;
82
- createdAt: string;
83
- updatedAt: string;
84
84
  } | null;
85
85
  };
86
86
  outputFormat: "json";
@@ -113,7 +113,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
113
113
  name: string;
114
114
  channel: "email" | "sms";
115
115
  provider: string | null;
116
- status: "draft" | "active" | "archived";
116
+ status: "active" | "draft" | "archived";
117
117
  subjectTemplate: string | null;
118
118
  htmlTemplate: string | null;
119
119
  textTemplate: string | null;
@@ -156,7 +156,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
156
156
  name: string;
157
157
  channel: "email" | "sms";
158
158
  provider: string | null;
159
- status: "draft" | "active" | "archived";
159
+ status: "active" | "draft" | "archived";
160
160
  subjectTemplate: string | null;
161
161
  htmlTemplate: string | null;
162
162
  textTemplate: string | null;
@@ -181,20 +181,20 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
181
181
  id: string;
182
182
  };
183
183
  };
184
- output: {
185
- error: string;
186
- };
187
- outputFormat: "json";
188
- status: 404;
184
+ output: null;
185
+ outputFormat: "body";
186
+ status: 204;
189
187
  } | {
190
188
  input: {
191
189
  param: {
192
190
  id: string;
193
191
  };
194
192
  };
195
- output: null;
196
- outputFormat: "body";
197
- status: 204;
193
+ output: {
194
+ error: string;
195
+ };
196
+ outputFormat: "json";
197
+ status: 404;
198
198
  };
199
199
  };
200
200
  } & {
@@ -224,7 +224,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
224
224
  id: string;
225
225
  templateId: string | null;
226
226
  templateSlug: string | null;
227
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
227
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
228
228
  targetId: string | null;
229
229
  personId: string | null;
230
230
  organizationId: string | null;
@@ -234,7 +234,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
234
234
  channel: "email" | "sms";
235
235
  provider: string;
236
236
  providerMessageId: string | null;
237
- status: "pending" | "sent" | "failed" | "cancelled";
237
+ status: "failed" | "pending" | "cancelled" | "sent";
238
238
  toAddress: string;
239
239
  fromAddress: string | null;
240
240
  subject: string | null;
@@ -285,7 +285,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
285
285
  id: string;
286
286
  templateId: string | null;
287
287
  templateSlug: string | null;
288
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
288
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
289
289
  targetId: string | null;
290
290
  personId: string | null;
291
291
  organizationId: string | null;
@@ -295,7 +295,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
295
295
  channel: "email" | "sms";
296
296
  provider: string;
297
297
  providerMessageId: string | null;
298
- status: "pending" | "sent" | "failed" | "cancelled";
298
+ status: "failed" | "pending" | "cancelled" | "sent";
299
299
  toAddress: string;
300
300
  fromAddress: string | null;
301
301
  subject: string | null;
@@ -343,7 +343,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
343
343
  id: string;
344
344
  templateId: string | null;
345
345
  templateSlug: string | null;
346
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
346
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
347
347
  targetId: string | null;
348
348
  personId: string | null;
349
349
  organizationId: string | null;
@@ -353,7 +353,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
353
353
  channel: "email" | "sms";
354
354
  provider: string;
355
355
  providerMessageId: string | null;
356
- status: "pending" | "sent" | "failed" | "cancelled";
356
+ status: "failed" | "pending" | "cancelled" | "sent";
357
357
  toAddress: string;
358
358
  fromAddress: string | null;
359
359
  subject: string | null;
@@ -397,8 +397,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
397
397
  id: string;
398
398
  slug: string;
399
399
  name: string;
400
- status: "draft" | "active" | "archived";
401
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
400
+ status: "active" | "draft" | "archived";
401
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
402
402
  channel: "email" | "sms";
403
403
  provider: string | null;
404
404
  templateId: string | null;
@@ -426,22 +426,22 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
426
426
  input: {};
427
427
  output: {
428
428
  data: {
429
- templateId: string | null;
430
- templateSlug: string | null;
431
- provider: string | null;
432
429
  metadata: {
433
430
  [x: string]: import("hono/utils/types").JSONValue;
434
431
  } | null;
435
- channel: "email" | "sms";
436
- status: "draft" | "active" | "archived";
437
- id: string;
438
432
  name: string;
439
- slug: string;
440
- isSystem: boolean;
433
+ id: string;
434
+ status: "active" | "draft" | "archived";
441
435
  createdAt: string;
442
- updatedAt: string;
443
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
444
436
  priority: number;
437
+ updatedAt: string;
438
+ slug: string;
439
+ provider: string | null;
440
+ channel: "email" | "sms";
441
+ templateId: string | null;
442
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
443
+ templateSlug: string | null;
444
+ isSystem: boolean;
445
445
  suppressionGroup: string | null;
446
446
  } | null;
447
447
  };
@@ -507,8 +507,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
507
507
  id: string;
508
508
  slug: string;
509
509
  name: string;
510
- status: "draft" | "active" | "archived";
511
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
510
+ status: "active" | "draft" | "archived";
511
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
512
512
  channel: "email" | "sms";
513
513
  provider: string | null;
514
514
  templateId: string | null;
@@ -551,8 +551,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
551
551
  id: string;
552
552
  slug: string;
553
553
  name: string;
554
- status: "draft" | "active" | "archived";
555
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
554
+ status: "active" | "draft" | "archived";
555
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
556
556
  channel: "email" | "sms";
557
557
  provider: string | null;
558
558
  templateId: string | null;
@@ -608,9 +608,9 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
608
608
  metadata: {
609
609
  [x: string]: import("hono/utils/types").JSONValue;
610
610
  } | null;
611
+ name: string | null;
611
612
  anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
612
613
  id: string;
613
- name: string | null;
614
614
  createdAt: string;
615
615
  updatedAt: string;
616
616
  reminderRuleId: string;
@@ -645,9 +645,9 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
645
645
  metadata: {
646
646
  [x: string]: import("hono/utils/types").JSONValue;
647
647
  } | null;
648
+ name: string | null;
648
649
  anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
649
650
  id: string;
650
- name: string | null;
651
651
  createdAt: string;
652
652
  updatedAt: string;
653
653
  reminderRuleId: string;
@@ -682,9 +682,9 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
682
682
  metadata: {
683
683
  [x: string]: import("hono/utils/types").JSONValue;
684
684
  } | null;
685
+ name: string | null;
685
686
  anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
686
687
  id: string;
687
- name: string | null;
688
688
  createdAt: string;
689
689
  updatedAt: string;
690
690
  reminderRuleId: string;
@@ -734,9 +734,9 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
734
734
  metadata: {
735
735
  [x: string]: import("hono/utils/types").JSONValue;
736
736
  } | null;
737
+ name: string | null;
737
738
  anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
738
739
  id: string;
739
- name: string | null;
740
740
  createdAt: string;
741
741
  updatedAt: string;
742
742
  reminderRuleId: string;
@@ -798,16 +798,16 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
798
798
  };
799
799
  output: {
800
800
  data: {
801
- templateId: string | null;
802
- templateSlug: string | null;
803
- provider: string | null;
804
801
  metadata: {
805
802
  [x: string]: import("hono/utils/types").JSONValue;
806
803
  } | null;
807
- channel: "email" | "sms";
808
804
  id: string;
809
805
  createdAt: string;
810
806
  updatedAt: string;
807
+ provider: string | null;
808
+ channel: "email" | "sms";
809
+ templateId: string | null;
810
+ templateSlug: string | null;
811
811
  orderIndex: number;
812
812
  stageId: string;
813
813
  recipientKind: "primary" | "cc" | "bcc";
@@ -830,16 +830,16 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
830
830
  };
831
831
  output: {
832
832
  data: {
833
- templateId: string | null;
834
- templateSlug: string | null;
835
- provider: string | null;
836
833
  metadata: {
837
834
  [x: string]: import("hono/utils/types").JSONValue;
838
835
  } | null;
839
- channel: "email" | "sms";
840
836
  id: string;
841
837
  createdAt: string;
842
838
  updatedAt: string;
839
+ provider: string | null;
840
+ channel: "email" | "sms";
841
+ templateId: string | null;
842
+ templateSlug: string | null;
843
843
  orderIndex: number;
844
844
  stageId: string;
845
845
  recipientKind: "primary" | "cc" | "bcc";
@@ -879,16 +879,16 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
879
879
  };
880
880
  output: {
881
881
  data: {
882
- templateId: string | null;
883
- templateSlug: string | null;
884
- provider: string | null;
885
882
  metadata: {
886
883
  [x: string]: import("hono/utils/types").JSONValue;
887
884
  } | null;
888
- channel: "email" | "sms";
889
885
  id: string;
890
886
  createdAt: string;
891
887
  updatedAt: string;
888
+ provider: string | null;
889
+ channel: "email" | "sms";
890
+ templateId: string | null;
891
+ templateSlug: string | null;
892
892
  orderIndex: number;
893
893
  stageId: string;
894
894
  recipientKind: "primary" | "cc" | "bcc";
@@ -1021,10 +1021,10 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1021
1021
  data: {
1022
1022
  id: string;
1023
1023
  reminderRuleId: string;
1024
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
1024
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
1025
1025
  targetId: string;
1026
1026
  dedupeKey: string;
1027
- status: "sent" | "failed" | "queued" | "processing" | "skipped";
1027
+ status: "failed" | "queued" | "skipped" | "processing" | "sent";
1028
1028
  recipient: string | null;
1029
1029
  scheduledFor: string;
1030
1030
  processedAt: string;
@@ -1047,8 +1047,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1047
1047
  id: string;
1048
1048
  slug: string;
1049
1049
  name: string;
1050
- status: "draft" | "active" | "archived";
1051
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
1050
+ status: "active" | "draft" | "archived";
1051
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
1052
1052
  channel: "email" | "sms";
1053
1053
  provider: string | null;
1054
1054
  templateId: string | null;
@@ -1056,7 +1056,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1056
1056
  };
1057
1057
  delivery: {
1058
1058
  id: string;
1059
- status: "pending" | "sent" | "failed" | "cancelled";
1059
+ status: "failed" | "pending" | "cancelled" | "sent";
1060
1060
  channel: "email" | "sms";
1061
1061
  provider: string;
1062
1062
  toAddress: string;
@@ -1097,10 +1097,10 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1097
1097
  data: {
1098
1098
  id: string;
1099
1099
  reminderRuleId: string;
1100
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
1100
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
1101
1101
  targetId: string;
1102
1102
  dedupeKey: string;
1103
- status: "sent" | "failed" | "queued" | "processing" | "skipped";
1103
+ status: "failed" | "queued" | "skipped" | "processing" | "sent";
1104
1104
  recipient: string | null;
1105
1105
  scheduledFor: string;
1106
1106
  processedAt: string;
@@ -1123,8 +1123,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1123
1123
  id: string;
1124
1124
  slug: string;
1125
1125
  name: string;
1126
- status: "draft" | "active" | "archived";
1127
- targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
1126
+ status: "active" | "draft" | "archived";
1127
+ targetType: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
1128
1128
  channel: "email" | "sms";
1129
1129
  provider: string | null;
1130
1130
  templateId: string | null;
@@ -1132,7 +1132,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1132
1132
  };
1133
1133
  delivery: {
1134
1134
  id: string;
1135
- status: "pending" | "sent" | "failed" | "cancelled";
1135
+ status: "failed" | "pending" | "cancelled" | "sent";
1136
1136
  channel: "email" | "sms";
1137
1137
  provider: string;
1138
1138
  toAddress: string;
@@ -1194,7 +1194,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1194
1194
  id: string;
1195
1195
  templateId: string | null;
1196
1196
  templateSlug: string | null;
1197
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
1197
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
1198
1198
  targetId: string | null;
1199
1199
  personId: string | null;
1200
1200
  organizationId: string | null;
@@ -1204,7 +1204,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1204
1204
  channel: "email" | "sms";
1205
1205
  provider: string;
1206
1206
  providerMessageId: string | null;
1207
- status: "pending" | "sent" | "failed" | "cancelled";
1207
+ status: "failed" | "pending" | "cancelled" | "sent";
1208
1208
  toAddress: string;
1209
1209
  fromAddress: string | null;
1210
1210
  subject: string | null;
@@ -1263,7 +1263,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1263
1263
  id: string;
1264
1264
  templateId: string | null;
1265
1265
  templateSlug: string | null;
1266
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
1266
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
1267
1267
  targetId: string | null;
1268
1268
  personId: string | null;
1269
1269
  organizationId: string | null;
@@ -1273,7 +1273,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1273
1273
  channel: "email" | "sms";
1274
1274
  provider: string;
1275
1275
  providerMessageId: string | null;
1276
- status: "pending" | "sent" | "failed" | "cancelled";
1276
+ status: "failed" | "pending" | "cancelled" | "sent";
1277
1277
  toAddress: string;
1278
1278
  fromAddress: string | null;
1279
1279
  subject: string | null;
@@ -1332,8 +1332,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1332
1332
  bookingId: string;
1333
1333
  documents: {
1334
1334
  key: string;
1335
- source: "products" | "legal" | "finance";
1336
- documentType: "contract" | "invoice" | "proforma" | "brochure";
1335
+ source: "products" | "finance" | "legal";
1336
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
1337
1337
  bookingId: string;
1338
1338
  name: string;
1339
1339
  createdAt: string;
@@ -1382,8 +1382,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1382
1382
  bookingId: string;
1383
1383
  documents: {
1384
1384
  key: string;
1385
- source: "products" | "legal" | "finance";
1386
- documentType: "contract" | "invoice" | "proforma" | "brochure";
1385
+ source: "products" | "finance" | "legal";
1386
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
1387
1387
  bookingId: string;
1388
1388
  name: string;
1389
1389
  createdAt: string;
@@ -1405,7 +1405,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1405
1405
  notification: {
1406
1406
  recipient: string;
1407
1407
  deliveryId: string;
1408
- status: "pending" | "sent" | "failed" | "cancelled";
1408
+ status: "failed" | "pending" | "cancelled" | "sent";
1409
1409
  provider?: string | null | undefined;
1410
1410
  } | null;
1411
1411
  skipReason: "preview_only" | "no_documents" | "no_recipient" | "no_attachments" | "send_failed" | null;
@@ -1462,8 +1462,8 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1462
1462
  recipient: string;
1463
1463
  documents: {
1464
1464
  key: string;
1465
- source: "products" | "legal" | "finance";
1466
- documentType: "contract" | "invoice" | "proforma" | "brochure";
1465
+ source: "products" | "finance" | "legal";
1466
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
1467
1467
  bookingId: string;
1468
1468
  name: string;
1469
1469
  createdAt: string;
@@ -1483,7 +1483,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1483
1483
  } | null | undefined;
1484
1484
  }[];
1485
1485
  deliveryId: string;
1486
- status: "pending" | "sent" | "failed" | "cancelled";
1486
+ status: "failed" | "pending" | "cancelled" | "sent";
1487
1487
  provider?: string | null | undefined;
1488
1488
  };
1489
1489
  };
@@ -1500,7 +1500,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1500
1500
  id: string;
1501
1501
  templateId: string | null;
1502
1502
  templateSlug: string | null;
1503
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
1503
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
1504
1504
  targetId: string | null;
1505
1505
  personId: string | null;
1506
1506
  organizationId: string | null;
@@ -1510,7 +1510,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
1510
1510
  channel: "email" | "sms";
1511
1511
  provider: string;
1512
1512
  providerMessageId: string | null;
1513
- status: "pending" | "sent" | "failed" | "cancelled";
1513
+ status: "failed" | "pending" | "cancelled" | "sent";
1514
1514
  toAddress: string;
1515
1515
  fromAddress: string | null;
1516
1516
  subject: string | null;
package/dist/schema.d.ts CHANGED
@@ -104,7 +104,7 @@ export declare const notificationTemplates: import("drizzle-orm/pg-core").PgTabl
104
104
  tableName: "notification_templates";
105
105
  dataType: "string";
106
106
  columnType: "PgEnumColumn";
107
- data: "draft" | "active" | "archived";
107
+ data: "active" | "draft" | "archived";
108
108
  driverParam: string;
109
109
  notNull: true;
110
110
  hasDefault: true;
@@ -319,7 +319,7 @@ export declare const notificationDeliveries: import("drizzle-orm/pg-core").PgTab
319
319
  tableName: "notification_deliveries";
320
320
  dataType: "string";
321
321
  columnType: "PgEnumColumn";
322
- data: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
322
+ data: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
323
323
  driverParam: string;
324
324
  notNull: true;
325
325
  hasDefault: true;
@@ -489,7 +489,7 @@ export declare const notificationDeliveries: import("drizzle-orm/pg-core").PgTab
489
489
  tableName: "notification_deliveries";
490
490
  dataType: "string";
491
491
  columnType: "PgEnumColumn";
492
- data: "pending" | "sent" | "failed" | "cancelled";
492
+ data: "failed" | "pending" | "cancelled" | "sent";
493
493
  driverParam: string;
494
494
  notNull: true;
495
495
  hasDefault: true;
@@ -791,7 +791,7 @@ export declare const notificationReminderRules: import("drizzle-orm/pg-core").Pg
791
791
  tableName: "notification_reminder_rules";
792
792
  dataType: "string";
793
793
  columnType: "PgEnumColumn";
794
- data: "draft" | "active" | "archived";
794
+ data: "active" | "draft" | "archived";
795
795
  driverParam: string;
796
796
  notNull: true;
797
797
  hasDefault: true;
@@ -808,7 +808,7 @@ export declare const notificationReminderRules: import("drizzle-orm/pg-core").Pg
808
808
  tableName: "notification_reminder_rules";
809
809
  dataType: "string";
810
810
  columnType: "PgEnumColumn";
811
- data: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
811
+ data: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
812
812
  driverParam: string;
813
813
  notNull: true;
814
814
  hasDefault: false;
@@ -1040,7 +1040,7 @@ export declare const notificationReminderRuns: import("drizzle-orm/pg-core").PgT
1040
1040
  tableName: "notification_reminder_runs";
1041
1041
  dataType: "string";
1042
1042
  columnType: "PgEnumColumn";
1043
- data: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
1043
+ data: "booking_confirmed" | "invoice" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
1044
1044
  driverParam: string;
1045
1045
  notNull: true;
1046
1046
  hasDefault: false;
@@ -1176,7 +1176,7 @@ export declare const notificationReminderRuns: import("drizzle-orm/pg-core").PgT
1176
1176
  tableName: "notification_reminder_runs";
1177
1177
  dataType: "string";
1178
1178
  columnType: "PgEnumColumn";
1179
- data: "sent" | "failed" | "queued" | "processing" | "skipped";
1179
+ data: "failed" | "queued" | "skipped" | "processing" | "sent";
1180
1180
  driverParam: string;
1181
1181
  notNull: true;
1182
1182
  hasDefault: false;
@@ -20,8 +20,8 @@ export declare const bookingDocumentNotificationsService: {
20
20
  bookingId: string;
21
21
  documents: {
22
22
  key: string;
23
- source: "products" | "legal" | "finance";
24
- documentType: "contract" | "invoice" | "proforma" | "brochure";
23
+ source: "products" | "finance" | "legal";
24
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
25
25
  bookingId: string;
26
26
  name: string;
27
27
  createdAt: string;
@@ -75,8 +75,8 @@ export declare const bookingDocumentNotificationsService: {
75
75
  recipient: string;
76
76
  documents: {
77
77
  key: string;
78
- source: "products" | "legal" | "finance";
79
- documentType: "contract" | "invoice" | "proforma" | "brochure";
78
+ source: "products" | "finance" | "legal";
79
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
80
80
  bookingId: string;
81
81
  name: string;
82
82
  createdAt: string;
@@ -97,7 +97,7 @@ export declare const bookingDocumentNotificationsService: {
97
97
  id: string;
98
98
  templateId: string | null;
99
99
  templateSlug: string | null;
100
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
100
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
101
101
  targetId: string | null;
102
102
  personId: string | null;
103
103
  organizationId: string | null;
@@ -107,7 +107,7 @@ export declare const bookingDocumentNotificationsService: {
107
107
  channel: "email" | "sms";
108
108
  provider: string;
109
109
  providerMessageId: string | null;
110
- status: "pending" | "sent" | "failed" | "cancelled";
110
+ status: "failed" | "pending" | "cancelled" | "sent";
111
111
  toAddress: string;
112
112
  fromAddress: string | null;
113
113
  subject: string | null;
@@ -149,8 +149,8 @@ export declare const bookingDocumentNotificationsService: {
149
149
  bookingId: string;
150
150
  documents: {
151
151
  key: string;
152
- source: "products" | "legal" | "finance";
153
- documentType: "contract" | "invoice" | "proforma" | "brochure";
152
+ source: "products" | "finance" | "legal";
153
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
154
154
  bookingId: string;
155
155
  name: string;
156
156
  createdAt: string;
@@ -175,8 +175,8 @@ export declare const bookingDocumentNotificationsService: {
175
175
  bookingId: string;
176
176
  documents: {
177
177
  key: string;
178
- source: "products" | "legal" | "finance";
179
- documentType: "contract" | "invoice" | "proforma" | "brochure";
178
+ source: "products" | "finance" | "legal";
179
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
180
180
  bookingId: string;
181
181
  name: string;
182
182
  createdAt: string;
@@ -201,8 +201,8 @@ export declare const bookingDocumentNotificationsService: {
201
201
  bookingId: string;
202
202
  documents: {
203
203
  key: string;
204
- source: "products" | "legal" | "finance";
205
- documentType: "contract" | "invoice" | "proforma" | "brochure";
204
+ source: "products" | "finance" | "legal";
205
+ documentType: "invoice" | "proforma" | "contract" | "brochure";
206
206
  bookingId: string;
207
207
  name: string;
208
208
  createdAt: string;
@@ -224,7 +224,7 @@ export declare const bookingDocumentNotificationsService: {
224
224
  id: string;
225
225
  templateId: string | null;
226
226
  templateSlug: string | null;
227
- targetType: "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
227
+ targetType: "organization" | "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
228
228
  targetId: string | null;
229
229
  personId: string | null;
230
230
  organizationId: string | null;
@@ -234,7 +234,7 @@ export declare const bookingDocumentNotificationsService: {
234
234
  channel: "email" | "sms";
235
235
  provider: string;
236
236
  providerMessageId: string | null;
237
- status: "pending" | "sent" | "failed" | "cancelled";
237
+ status: "failed" | "pending" | "cancelled" | "sent";
238
238
  toAddress: string;
239
239
  fromAddress: string | null;
240
240
  subject: string | null;