@voyant-travel/notifications 0.111.12 → 0.112.0
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 +14 -14
- package/dist/schema.d.ts +3 -3
- package/dist/service-booking-documents.d.ts +2 -2
- package/dist/service-deliveries.d.ts +6 -6
- package/dist/service-reminder-events.d.ts +1 -1
- package/dist/service-reminder-run-state.d.ts +5 -5
- package/dist/service-reminders.d.ts +1 -1
- package/dist/service-templates.d.ts +8 -8
- package/dist/service.d.ts +2 -2
- package/dist/validation.d.ts +14 -14
- package/package.json +7 -7
package/dist/routes.d.ts
CHANGED
|
@@ -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: "
|
|
227
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
228
228
|
targetId: string | null;
|
|
229
229
|
personId: string | null;
|
|
230
230
|
organizationId: 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: "
|
|
288
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
289
289
|
targetId: string | null;
|
|
290
290
|
personId: string | null;
|
|
291
291
|
organizationId: 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: "
|
|
346
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
347
347
|
targetId: string | null;
|
|
348
348
|
personId: string | null;
|
|
349
349
|
organizationId: string | null;
|
|
@@ -398,7 +398,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
398
398
|
slug: string;
|
|
399
399
|
name: string;
|
|
400
400
|
status: "active" | "draft" | "archived";
|
|
401
|
-
targetType: "
|
|
401
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
402
402
|
channel: "email" | "sms";
|
|
403
403
|
provider: string | null;
|
|
404
404
|
templateId: string | null;
|
|
@@ -439,7 +439,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
439
439
|
provider: string | null;
|
|
440
440
|
channel: "email" | "sms";
|
|
441
441
|
templateId: string | null;
|
|
442
|
-
targetType: "
|
|
442
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
443
443
|
templateSlug: string | null;
|
|
444
444
|
isSystem: boolean;
|
|
445
445
|
suppressionGroup: string | null;
|
|
@@ -508,7 +508,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
508
508
|
slug: string;
|
|
509
509
|
name: string;
|
|
510
510
|
status: "active" | "draft" | "archived";
|
|
511
|
-
targetType: "
|
|
511
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
512
512
|
channel: "email" | "sms";
|
|
513
513
|
provider: string | null;
|
|
514
514
|
templateId: string | null;
|
|
@@ -552,7 +552,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
552
552
|
slug: string;
|
|
553
553
|
name: string;
|
|
554
554
|
status: "active" | "draft" | "archived";
|
|
555
|
-
targetType: "
|
|
555
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
556
556
|
channel: "email" | "sms";
|
|
557
557
|
provider: string | null;
|
|
558
558
|
templateId: string | null;
|
|
@@ -1021,7 +1021,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
1021
1021
|
data: {
|
|
1022
1022
|
id: string;
|
|
1023
1023
|
reminderRuleId: string;
|
|
1024
|
-
targetType: "
|
|
1024
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
1025
1025
|
targetId: string;
|
|
1026
1026
|
dedupeKey: string;
|
|
1027
1027
|
status: "failed" | "queued" | "skipped" | "processing" | "sent";
|
|
@@ -1048,7 +1048,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
1048
1048
|
slug: string;
|
|
1049
1049
|
name: string;
|
|
1050
1050
|
status: "active" | "draft" | "archived";
|
|
1051
|
-
targetType: "
|
|
1051
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
1052
1052
|
channel: "email" | "sms";
|
|
1053
1053
|
provider: string | null;
|
|
1054
1054
|
templateId: string | null;
|
|
@@ -1097,7 +1097,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
1097
1097
|
data: {
|
|
1098
1098
|
id: string;
|
|
1099
1099
|
reminderRuleId: string;
|
|
1100
|
-
targetType: "
|
|
1100
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
1101
1101
|
targetId: string;
|
|
1102
1102
|
dedupeKey: string;
|
|
1103
1103
|
status: "failed" | "queued" | "skipped" | "processing" | "sent";
|
|
@@ -1124,7 +1124,7 @@ export declare function createNotificationsRoutes(options?: NotificationsRoutesO
|
|
|
1124
1124
|
slug: string;
|
|
1125
1125
|
name: string;
|
|
1126
1126
|
status: "active" | "draft" | "archived";
|
|
1127
|
-
targetType: "
|
|
1127
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
1128
1128
|
channel: "email" | "sms";
|
|
1129
1129
|
provider: string | null;
|
|
1130
1130
|
templateId: string | null;
|
|
@@ -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: "
|
|
1197
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
1198
1198
|
targetId: string | null;
|
|
1199
1199
|
personId: string | null;
|
|
1200
1200
|
organizationId: 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: "
|
|
1266
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
1267
1267
|
targetId: string | null;
|
|
1268
1268
|
personId: string | null;
|
|
1269
1269
|
organizationId: string | null;
|
|
@@ -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: "
|
|
1503
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
1504
1504
|
targetId: string | null;
|
|
1505
1505
|
personId: string | null;
|
|
1506
1506
|
organizationId: string | null;
|
package/dist/schema.d.ts
CHANGED
|
@@ -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: "
|
|
322
|
+
data: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
323
323
|
driverParam: string;
|
|
324
324
|
notNull: true;
|
|
325
325
|
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: "
|
|
811
|
+
data: "invoice" | "booking_confirmed" | "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: "
|
|
1043
|
+
data: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
1044
1044
|
driverParam: string;
|
|
1045
1045
|
notNull: true;
|
|
1046
1046
|
hasDefault: false;
|
|
@@ -97,7 +97,7 @@ export declare const bookingDocumentNotificationsService: {
|
|
|
97
97
|
id: string;
|
|
98
98
|
templateId: string | null;
|
|
99
99
|
templateSlug: string | null;
|
|
100
|
-
targetType: "
|
|
100
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
101
101
|
targetId: string | null;
|
|
102
102
|
personId: string | null;
|
|
103
103
|
organizationId: string | null;
|
|
@@ -224,7 +224,7 @@ export declare const bookingDocumentNotificationsService: {
|
|
|
224
224
|
id: string;
|
|
225
225
|
templateId: string | null;
|
|
226
226
|
templateSlug: string | null;
|
|
227
|
-
targetType: "
|
|
227
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
228
228
|
targetId: string | null;
|
|
229
229
|
personId: string | null;
|
|
230
230
|
organizationId: string | null;
|
|
@@ -6,7 +6,7 @@ export declare function listDeliveries(db: PostgresJsDatabase, query: Notificati
|
|
|
6
6
|
id: string;
|
|
7
7
|
templateId: string | null;
|
|
8
8
|
templateSlug: string | null;
|
|
9
|
-
targetType: "
|
|
9
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
10
10
|
targetId: string | null;
|
|
11
11
|
personId: string | null;
|
|
12
12
|
organizationId: string | null;
|
|
@@ -39,7 +39,7 @@ export declare function getDeliveryById(db: PostgresJsDatabase, id: string): Pro
|
|
|
39
39
|
id: string;
|
|
40
40
|
templateId: string | null;
|
|
41
41
|
templateSlug: string | null;
|
|
42
|
-
targetType: "
|
|
42
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
43
43
|
targetId: string | null;
|
|
44
44
|
personId: string | null;
|
|
45
45
|
organizationId: string | null;
|
|
@@ -68,7 +68,7 @@ export declare function resendDelivery(db: PostgresJsDatabase, dispatcher: Notif
|
|
|
68
68
|
id: string;
|
|
69
69
|
templateId: string | null;
|
|
70
70
|
templateSlug: string | null;
|
|
71
|
-
targetType: "
|
|
71
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
72
72
|
targetId: string | null;
|
|
73
73
|
personId: string | null;
|
|
74
74
|
organizationId: string | null;
|
|
@@ -97,7 +97,7 @@ export declare function sendNotification(db: PostgresJsDatabase, dispatcher: Not
|
|
|
97
97
|
id: string;
|
|
98
98
|
templateId: string | null;
|
|
99
99
|
templateSlug: string | null;
|
|
100
|
-
targetType: "
|
|
100
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
101
101
|
targetId: string | null;
|
|
102
102
|
personId: string | null;
|
|
103
103
|
organizationId: string | null;
|
|
@@ -126,7 +126,7 @@ export declare function sendPaymentSessionNotification(db: PostgresJsDatabase, d
|
|
|
126
126
|
id: string;
|
|
127
127
|
templateId: string | null;
|
|
128
128
|
templateSlug: string | null;
|
|
129
|
-
targetType: "
|
|
129
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
130
130
|
targetId: string | null;
|
|
131
131
|
personId: string | null;
|
|
132
132
|
organizationId: string | null;
|
|
@@ -155,7 +155,7 @@ export declare function sendInvoiceNotification(db: PostgresJsDatabase, dispatch
|
|
|
155
155
|
id: string;
|
|
156
156
|
templateId: string | null;
|
|
157
157
|
templateSlug: string | null;
|
|
158
|
-
targetType: "
|
|
158
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
159
159
|
targetId: string | null;
|
|
160
160
|
personId: string | null;
|
|
161
161
|
organizationId: string | null;
|
|
@@ -19,7 +19,7 @@ export declare function dispatchReminderEventRules(db: PostgresJsDatabase, dispa
|
|
|
19
19
|
errorMessage: string | null;
|
|
20
20
|
bookingId: string | null;
|
|
21
21
|
personId: string | null;
|
|
22
|
-
targetType: "
|
|
22
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
23
23
|
targetId: string;
|
|
24
24
|
processedAt: Date;
|
|
25
25
|
paymentSessionId: string | null;
|
|
@@ -12,7 +12,7 @@ export declare function getReminderRuleById(db: PostgresJsDatabase, reminderRule
|
|
|
12
12
|
slug: string;
|
|
13
13
|
name: string;
|
|
14
14
|
status: "active" | "draft" | "archived";
|
|
15
|
-
targetType: "
|
|
15
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
16
16
|
channel: "email" | "sms";
|
|
17
17
|
provider: string | null;
|
|
18
18
|
templateId: string | null;
|
|
@@ -27,7 +27,7 @@ export declare function getReminderRuleById(db: PostgresJsDatabase, reminderRule
|
|
|
27
27
|
export declare function getReminderRunById(db: PostgresJsDatabase, reminderRunId: string): Promise<{
|
|
28
28
|
id: string;
|
|
29
29
|
reminderRuleId: string;
|
|
30
|
-
targetType: "
|
|
30
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
31
31
|
targetId: string;
|
|
32
32
|
dedupeKey: string;
|
|
33
33
|
bookingId: string | null;
|
|
@@ -47,7 +47,7 @@ export declare function getReminderRunById(db: PostgresJsDatabase, reminderRunId
|
|
|
47
47
|
export declare function markReminderRunSkipped(db: PostgresJsDatabase, reminderRunId: string, now: Date, errorMessage: string): Promise<{
|
|
48
48
|
id: string;
|
|
49
49
|
reminderRuleId: string;
|
|
50
|
-
targetType: "
|
|
50
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
51
51
|
targetId: string;
|
|
52
52
|
dedupeKey: string;
|
|
53
53
|
bookingId: string | null;
|
|
@@ -67,7 +67,7 @@ export declare function markReminderRunSkipped(db: PostgresJsDatabase, reminderR
|
|
|
67
67
|
export declare function markReminderRunFailed(db: PostgresJsDatabase, reminderRunId: string, now: Date, errorMessage: string): Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
reminderRuleId: string;
|
|
70
|
-
targetType: "
|
|
70
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
71
71
|
targetId: string;
|
|
72
72
|
dedupeKey: string;
|
|
73
73
|
bookingId: string | null;
|
|
@@ -87,7 +87,7 @@ export declare function markReminderRunFailed(db: PostgresJsDatabase, reminderRu
|
|
|
87
87
|
export declare function markReminderRunSent(db: PostgresJsDatabase, reminderRunId: string, now: Date, notificationDeliveryId: string | null): Promise<{
|
|
88
88
|
id: string;
|
|
89
89
|
reminderRuleId: string;
|
|
90
|
-
targetType: "
|
|
90
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
91
91
|
targetId: string;
|
|
92
92
|
dedupeKey: string;
|
|
93
93
|
bookingId: string | null;
|
|
@@ -9,7 +9,7 @@ export declare function deliverReminderRun(db: PostgresJsDatabase, dispatcher: N
|
|
|
9
9
|
}): Promise<{
|
|
10
10
|
id: string;
|
|
11
11
|
reminderRuleId: string;
|
|
12
|
-
targetType: "
|
|
12
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
13
13
|
targetId: string;
|
|
14
14
|
dedupeKey: string;
|
|
15
15
|
bookingId: string | null;
|
|
@@ -92,7 +92,7 @@ export declare function listReminderRules(db: PostgresJsDatabase, query: Notific
|
|
|
92
92
|
slug: string;
|
|
93
93
|
name: string;
|
|
94
94
|
status: "active" | "draft" | "archived";
|
|
95
|
-
targetType: "
|
|
95
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
96
96
|
channel: "email" | "sms";
|
|
97
97
|
provider: string | null;
|
|
98
98
|
templateId: string | null;
|
|
@@ -113,7 +113,7 @@ export declare function getReminderRuleById(db: PostgresJsDatabase, id: string):
|
|
|
113
113
|
slug: string;
|
|
114
114
|
name: string;
|
|
115
115
|
status: "active" | "draft" | "archived";
|
|
116
|
-
targetType: "
|
|
116
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
117
117
|
channel: "email" | "sms";
|
|
118
118
|
provider: string | null;
|
|
119
119
|
templateId: string | null;
|
|
@@ -137,7 +137,7 @@ export declare function createReminderRule(db: PostgresJsDatabase, data: CreateN
|
|
|
137
137
|
provider: string | null;
|
|
138
138
|
channel: "email" | "sms";
|
|
139
139
|
templateId: string | null;
|
|
140
|
-
targetType: "
|
|
140
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
141
141
|
templateSlug: string | null;
|
|
142
142
|
isSystem: boolean;
|
|
143
143
|
suppressionGroup: string | null;
|
|
@@ -147,7 +147,7 @@ export declare function updateReminderRule(db: PostgresJsDatabase, id: string, d
|
|
|
147
147
|
slug: string;
|
|
148
148
|
name: string;
|
|
149
149
|
status: "active" | "draft" | "archived";
|
|
150
|
-
targetType: "
|
|
150
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
151
151
|
channel: "email" | "sms";
|
|
152
152
|
provider: string | null;
|
|
153
153
|
templateId: string | null;
|
|
@@ -164,7 +164,7 @@ export declare function listReminderRuns(db: PostgresJsDatabase, query: Notifica
|
|
|
164
164
|
data: {
|
|
165
165
|
id: string;
|
|
166
166
|
reminderRuleId: string;
|
|
167
|
-
targetType: "
|
|
167
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
168
168
|
targetId: string;
|
|
169
169
|
dedupeKey: string;
|
|
170
170
|
status: "failed" | "queued" | "skipped" | "processing" | "sent";
|
|
@@ -189,7 +189,7 @@ export declare function listReminderRuns(db: PostgresJsDatabase, query: Notifica
|
|
|
189
189
|
slug: string;
|
|
190
190
|
name: string;
|
|
191
191
|
status: "active" | "draft" | "archived";
|
|
192
|
-
targetType: "
|
|
192
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
193
193
|
channel: "email" | "sms";
|
|
194
194
|
provider: string | null;
|
|
195
195
|
templateId: string | null;
|
|
@@ -214,7 +214,7 @@ export declare function listReminderRuns(db: PostgresJsDatabase, query: Notifica
|
|
|
214
214
|
export declare function getReminderRunById(db: PostgresJsDatabase, id: string): Promise<{
|
|
215
215
|
id: string;
|
|
216
216
|
reminderRuleId: string;
|
|
217
|
-
targetType: "
|
|
217
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
218
218
|
targetId: string;
|
|
219
219
|
dedupeKey: string;
|
|
220
220
|
status: "failed" | "queued" | "skipped" | "processing" | "sent";
|
|
@@ -239,7 +239,7 @@ export declare function getReminderRunById(db: PostgresJsDatabase, id: string):
|
|
|
239
239
|
slug: string;
|
|
240
240
|
name: string;
|
|
241
241
|
status: "active" | "draft" | "archived";
|
|
242
|
-
targetType: "
|
|
242
|
+
targetType: "invoice" | "booking_confirmed" | "booking_payment_schedule" | "payment_complete" | "booking_cancelled_non_payment";
|
|
243
243
|
channel: "email" | "sms";
|
|
244
244
|
provider: string | null;
|
|
245
245
|
templateId: string | null;
|
package/dist/service.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ export declare const notificationsService: {
|
|
|
126
126
|
id: string;
|
|
127
127
|
templateId: string | null;
|
|
128
128
|
templateSlug: string | null;
|
|
129
|
-
targetType: "
|
|
129
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
130
130
|
targetId: string | null;
|
|
131
131
|
personId: string | null;
|
|
132
132
|
organizationId: string | null;
|
|
@@ -241,7 +241,7 @@ export declare const notificationsService: {
|
|
|
241
241
|
id: string;
|
|
242
242
|
templateId: string | null;
|
|
243
243
|
templateSlug: string | null;
|
|
244
|
-
targetType: "
|
|
244
|
+
targetType: "invoice" | "organization" | "other" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "person" | "payment_session";
|
|
245
245
|
targetId: string | null;
|
|
246
246
|
personId: string | null;
|
|
247
247
|
organizationId: string | null;
|
package/dist/validation.d.ts
CHANGED
|
@@ -15,10 +15,10 @@ export declare const notificationDeliveryStatusSchema: z.ZodEnum<{
|
|
|
15
15
|
sent: "sent";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const notificationTargetTypeSchema: z.ZodEnum<{
|
|
18
|
+
invoice: "invoice";
|
|
18
19
|
organization: "organization";
|
|
19
20
|
other: "other";
|
|
20
21
|
booking: "booking";
|
|
21
|
-
invoice: "invoice";
|
|
22
22
|
booking_payment_schedule: "booking_payment_schedule";
|
|
23
23
|
booking_guarantee: "booking_guarantee";
|
|
24
24
|
person: "person";
|
|
@@ -30,8 +30,8 @@ export declare const notificationReminderStatusSchema: z.ZodEnum<{
|
|
|
30
30
|
archived: "archived";
|
|
31
31
|
}>;
|
|
32
32
|
export declare const notificationReminderTargetTypeSchema: z.ZodEnum<{
|
|
33
|
-
booking_confirmed: "booking_confirmed";
|
|
34
33
|
invoice: "invoice";
|
|
34
|
+
booking_confirmed: "booking_confirmed";
|
|
35
35
|
booking_payment_schedule: "booking_payment_schedule";
|
|
36
36
|
payment_complete: "payment_complete";
|
|
37
37
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -158,10 +158,10 @@ export declare const notificationDeliveryListQuerySchema: z.ZodObject<{
|
|
|
158
158
|
}>>;
|
|
159
159
|
templateSlug: z.ZodOptional<z.ZodString>;
|
|
160
160
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
161
|
+
invoice: "invoice";
|
|
161
162
|
organization: "organization";
|
|
162
163
|
other: "other";
|
|
163
164
|
booking: "booking";
|
|
164
|
-
invoice: "invoice";
|
|
165
165
|
booking_payment_schedule: "booking_payment_schedule";
|
|
166
166
|
booking_guarantee: "booking_guarantee";
|
|
167
167
|
person: "person";
|
|
@@ -183,8 +183,8 @@ export declare const insertNotificationReminderRuleSchema: z.ZodObject<{
|
|
|
183
183
|
archived: "archived";
|
|
184
184
|
}>>;
|
|
185
185
|
targetType: z.ZodEnum<{
|
|
186
|
-
booking_confirmed: "booking_confirmed";
|
|
187
186
|
invoice: "invoice";
|
|
187
|
+
booking_confirmed: "booking_confirmed";
|
|
188
188
|
booking_payment_schedule: "booking_payment_schedule";
|
|
189
189
|
payment_complete: "payment_complete";
|
|
190
190
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -210,8 +210,8 @@ export declare const updateNotificationReminderRuleSchema: z.ZodObject<{
|
|
|
210
210
|
archived: "archived";
|
|
211
211
|
}>>>;
|
|
212
212
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
213
|
-
booking_confirmed: "booking_confirmed";
|
|
214
213
|
invoice: "invoice";
|
|
214
|
+
booking_confirmed: "booking_confirmed";
|
|
215
215
|
booking_payment_schedule: "booking_payment_schedule";
|
|
216
216
|
payment_complete: "payment_complete";
|
|
217
217
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -417,8 +417,8 @@ export declare const composeNotificationReminderRuleSchema: z.ZodObject<{
|
|
|
417
417
|
archived: "archived";
|
|
418
418
|
}>>;
|
|
419
419
|
targetType: z.ZodEnum<{
|
|
420
|
-
booking_confirmed: "booking_confirmed";
|
|
421
420
|
invoice: "invoice";
|
|
421
|
+
booking_confirmed: "booking_confirmed";
|
|
422
422
|
booking_payment_schedule: "booking_payment_schedule";
|
|
423
423
|
payment_complete: "payment_complete";
|
|
424
424
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -508,8 +508,8 @@ export declare const notificationReminderRuleListQuerySchema: z.ZodObject<{
|
|
|
508
508
|
archived: "archived";
|
|
509
509
|
}>>;
|
|
510
510
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
511
|
-
booking_confirmed: "booking_confirmed";
|
|
512
511
|
invoice: "invoice";
|
|
512
|
+
booking_confirmed: "booking_confirmed";
|
|
513
513
|
booking_payment_schedule: "booking_payment_schedule";
|
|
514
514
|
payment_complete: "payment_complete";
|
|
515
515
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -525,8 +525,8 @@ export declare const notificationReminderRunListQuerySchema: z.ZodObject<{
|
|
|
525
525
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
526
526
|
reminderRuleId: z.ZodOptional<z.ZodString>;
|
|
527
527
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
528
|
-
booking_confirmed: "booking_confirmed";
|
|
529
528
|
invoice: "invoice";
|
|
529
|
+
booking_confirmed: "booking_confirmed";
|
|
530
530
|
booking_payment_schedule: "booking_payment_schedule";
|
|
531
531
|
payment_complete: "payment_complete";
|
|
532
532
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -558,8 +558,8 @@ export declare const notificationReminderRunRuleSummarySchema: z.ZodObject<{
|
|
|
558
558
|
archived: "archived";
|
|
559
559
|
}>;
|
|
560
560
|
targetType: z.ZodEnum<{
|
|
561
|
-
booking_confirmed: "booking_confirmed";
|
|
562
561
|
invoice: "invoice";
|
|
562
|
+
booking_confirmed: "booking_confirmed";
|
|
563
563
|
booking_payment_schedule: "booking_payment_schedule";
|
|
564
564
|
payment_complete: "payment_complete";
|
|
565
565
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -604,8 +604,8 @@ export declare const notificationReminderRunRecordSchema: z.ZodObject<{
|
|
|
604
604
|
id: z.ZodString;
|
|
605
605
|
reminderRuleId: z.ZodString;
|
|
606
606
|
targetType: z.ZodEnum<{
|
|
607
|
-
booking_confirmed: "booking_confirmed";
|
|
608
607
|
invoice: "invoice";
|
|
608
|
+
booking_confirmed: "booking_confirmed";
|
|
609
609
|
booking_payment_schedule: "booking_payment_schedule";
|
|
610
610
|
payment_complete: "payment_complete";
|
|
611
611
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -645,8 +645,8 @@ export declare const notificationReminderRunRecordSchema: z.ZodObject<{
|
|
|
645
645
|
archived: "archived";
|
|
646
646
|
}>;
|
|
647
647
|
targetType: z.ZodEnum<{
|
|
648
|
-
booking_confirmed: "booking_confirmed";
|
|
649
648
|
invoice: "invoice";
|
|
649
|
+
booking_confirmed: "booking_confirmed";
|
|
650
650
|
booking_payment_schedule: "booking_payment_schedule";
|
|
651
651
|
payment_complete: "payment_complete";
|
|
652
652
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -684,8 +684,8 @@ export declare const notificationReminderRunListResponseSchema: z.ZodObject<{
|
|
|
684
684
|
id: z.ZodString;
|
|
685
685
|
reminderRuleId: z.ZodString;
|
|
686
686
|
targetType: z.ZodEnum<{
|
|
687
|
-
booking_confirmed: "booking_confirmed";
|
|
688
687
|
invoice: "invoice";
|
|
688
|
+
booking_confirmed: "booking_confirmed";
|
|
689
689
|
booking_payment_schedule: "booking_payment_schedule";
|
|
690
690
|
payment_complete: "payment_complete";
|
|
691
691
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -725,8 +725,8 @@ export declare const notificationReminderRunListResponseSchema: z.ZodObject<{
|
|
|
725
725
|
archived: "archived";
|
|
726
726
|
}>;
|
|
727
727
|
targetType: z.ZodEnum<{
|
|
728
|
-
booking_confirmed: "booking_confirmed";
|
|
729
728
|
invoice: "invoice";
|
|
729
|
+
booking_confirmed: "booking_confirmed";
|
|
730
730
|
booking_payment_schedule: "booking_payment_schedule";
|
|
731
731
|
payment_complete: "payment_complete";
|
|
732
732
|
booking_cancelled_non_payment: "booking_cancelled_non_payment";
|
|
@@ -850,10 +850,10 @@ export declare const sendNotificationSchema: z.ZodObject<{
|
|
|
850
850
|
}, z.core.$strip>>>>;
|
|
851
851
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
852
852
|
targetType: z.ZodDefault<z.ZodEnum<{
|
|
853
|
+
invoice: "invoice";
|
|
853
854
|
organization: "organization";
|
|
854
855
|
other: "other";
|
|
855
856
|
booking: "booking";
|
|
856
|
-
invoice: "invoice";
|
|
857
857
|
booking_payment_schedule: "booking_payment_schedule";
|
|
858
858
|
booking_guarantee: "booking_guarantee";
|
|
859
859
|
person: "person";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/notifications",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"hono": "^4.12.10",
|
|
62
62
|
"liquidjs": "^10.26.0",
|
|
63
63
|
"zod": "^4.3.6",
|
|
64
|
-
"@voyant-travel/bookings": "^0.
|
|
65
|
-
"@voyant-travel/core": "^0.
|
|
66
|
-
"@voyant-travel/db": "^0.108.
|
|
67
|
-
"@voyant-travel/finance": "^0.
|
|
68
|
-
"@voyant-travel/hono": "^0.
|
|
69
|
-
"@voyant-travel/legal": "^0.
|
|
64
|
+
"@voyant-travel/bookings": "^0.123.0",
|
|
65
|
+
"@voyant-travel/core": "^0.110.0",
|
|
66
|
+
"@voyant-travel/db": "^0.108.2",
|
|
67
|
+
"@voyant-travel/finance": "^0.123.0",
|
|
68
|
+
"@voyant-travel/hono": "^0.112.0",
|
|
69
|
+
"@voyant-travel/legal": "^0.123.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"typescript": "^6.0.2",
|