@voyant-travel/notifications-react 0.111.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +30 -0
  3. package/dist/admin/index.d.ts +70 -0
  4. package/dist/admin/index.d.ts.map +1 -0
  5. package/dist/admin/index.js +104 -0
  6. package/dist/admin/notification-deliveries-host.d.ts +7 -0
  7. package/dist/admin/notification-deliveries-host.d.ts.map +1 -0
  8. package/dist/admin/notification-deliveries-host.js +92 -0
  9. package/dist/admin/notification-delivery-detail-dialog.d.ts +8 -0
  10. package/dist/admin/notification-delivery-detail-dialog.d.ts.map +1 -0
  11. package/dist/admin/notification-delivery-detail-dialog.js +30 -0
  12. package/dist/admin/notification-reminder-rule-detail-host.d.ts +12 -0
  13. package/dist/admin/notification-reminder-rule-detail-host.d.ts.map +1 -0
  14. package/dist/admin/notification-reminder-rule-detail-host.js +23 -0
  15. package/dist/admin/notification-reminder-rule-dialog.d.ts +10 -0
  16. package/dist/admin/notification-reminder-rule-dialog.d.ts.map +1 -0
  17. package/dist/admin/notification-reminder-rule-dialog.js +122 -0
  18. package/dist/admin/notification-reminder-rules-host.d.ts +8 -0
  19. package/dist/admin/notification-reminder-rules-host.d.ts.map +1 -0
  20. package/dist/admin/notification-reminder-rules-host.js +57 -0
  21. package/dist/admin/notification-reminder-runs-host.d.ts +7 -0
  22. package/dist/admin/notification-reminder-runs-host.d.ts.map +1 -0
  23. package/dist/admin/notification-reminder-runs-host.js +28 -0
  24. package/dist/admin/notification-settings-host.d.ts +7 -0
  25. package/dist/admin/notification-settings-host.d.ts.map +1 -0
  26. package/dist/admin/notification-settings-host.js +11 -0
  27. package/dist/admin/notification-template-attachments-field.d.ts +10 -0
  28. package/dist/admin/notification-template-attachments-field.d.ts.map +1 -0
  29. package/dist/admin/notification-template-attachments-field.js +6 -0
  30. package/dist/admin/notification-template-authoring-help.d.ts +25 -0
  31. package/dist/admin/notification-template-authoring-help.d.ts.map +1 -0
  32. package/dist/admin/notification-template-authoring-help.js +8 -0
  33. package/dist/admin/notification-template-detail-host.d.ts +11 -0
  34. package/dist/admin/notification-template-detail-host.d.ts.map +1 -0
  35. package/dist/admin/notification-template-detail-host.js +159 -0
  36. package/dist/admin/notification-template-dialog-utils.d.ts +53 -0
  37. package/dist/admin/notification-template-dialog-utils.d.ts.map +1 -0
  38. package/dist/admin/notification-template-dialog-utils.js +112 -0
  39. package/dist/admin/notification-template-dialog.d.ts +10 -0
  40. package/dist/admin/notification-template-dialog.d.ts.map +1 -0
  41. package/dist/admin/notification-template-dialog.js +253 -0
  42. package/dist/admin/notification-template-rendered-preview.d.ts +14 -0
  43. package/dist/admin/notification-template-rendered-preview.d.ts.map +1 -0
  44. package/dist/admin/notification-template-rendered-preview.js +6 -0
  45. package/dist/admin/notification-templates-host.d.ts +9 -0
  46. package/dist/admin/notification-templates-host.d.ts.map +1 -0
  47. package/dist/admin/notification-templates-host.js +52 -0
  48. package/dist/admin/notifications-admin-shared.d.ts +14 -0
  49. package/dist/admin/notifications-admin-shared.d.ts.map +1 -0
  50. package/dist/admin/notifications-admin-shared.js +17 -0
  51. package/dist/admin/pages/notification-reminder-rule-detail-page.d.ts +8 -0
  52. package/dist/admin/pages/notification-reminder-rule-detail-page.d.ts.map +1 -0
  53. package/dist/admin/pages/notification-reminder-rule-detail-page.js +10 -0
  54. package/dist/admin/pages/notification-template-detail-page.d.ts +7 -0
  55. package/dist/admin/pages/notification-template-detail-page.d.ts.map +1 -0
  56. package/dist/admin/pages/notification-template-detail-page.js +9 -0
  57. package/dist/admin/reminders-preview-host.d.ts +7 -0
  58. package/dist/admin/reminders-preview-host.d.ts.map +1 -0
  59. package/dist/admin/reminders-preview-host.js +13 -0
  60. package/dist/client.d.ts +14 -0
  61. package/dist/client.d.ts.map +1 -0
  62. package/dist/client.js +71 -0
  63. package/dist/components/notification-settings-form.d.ts +2 -0
  64. package/dist/components/notification-settings-form.d.ts.map +1 -0
  65. package/dist/components/notification-settings-form.js +66 -0
  66. package/dist/components/reminders-preview-list.d.ts +6 -0
  67. package/dist/components/reminders-preview-list.d.ts.map +1 -0
  68. package/dist/components/reminders-preview-list.js +19 -0
  69. package/dist/components/stage-channel-editor-dialog.d.ts +11 -0
  70. package/dist/components/stage-channel-editor-dialog.d.ts.map +1 -0
  71. package/dist/components/stage-channel-editor-dialog.js +77 -0
  72. package/dist/components/stage-channel-list.d.ts +6 -0
  73. package/dist/components/stage-channel-list.d.ts.map +1 -0
  74. package/dist/components/stage-channel-list.js +20 -0
  75. package/dist/components/stage-editor-dialog.d.ts +10 -0
  76. package/dist/components/stage-editor-dialog.d.ts.map +1 -0
  77. package/dist/components/stage-editor-dialog.js +104 -0
  78. package/dist/components/stage-list.d.ts +5 -0
  79. package/dist/components/stage-list.d.ts.map +1 -0
  80. package/dist/components/stage-list.js +34 -0
  81. package/dist/components/template-picker.d.ts +19 -0
  82. package/dist/components/template-picker.d.ts.map +1 -0
  83. package/dist/components/template-picker.js +26 -0
  84. package/dist/components/timezone-combobox.d.ts +9 -0
  85. package/dist/components/timezone-combobox.d.ts.map +1 -0
  86. package/dist/components/timezone-combobox.js +67 -0
  87. package/dist/hooks/index.d.ts +19 -0
  88. package/dist/hooks/index.d.ts.map +1 -0
  89. package/dist/hooks/index.js +19 -0
  90. package/dist/hooks/use-notification-deliveries.d.ts +39 -0
  91. package/dist/hooks/use-notification-deliveries.d.ts.map +1 -0
  92. package/dist/hooks/use-notification-deliveries.js +12 -0
  93. package/dist/hooks/use-notification-delivery-mutation.d.ts +32 -0
  94. package/dist/hooks/use-notification-delivery-mutation.d.ts.map +1 -0
  95. package/dist/hooks/use-notification-delivery-mutation.js +24 -0
  96. package/dist/hooks/use-notification-delivery.d.ts +32 -0
  97. package/dist/hooks/use-notification-delivery.d.ts.map +1 -0
  98. package/dist/hooks/use-notification-delivery.js +12 -0
  99. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts +53 -0
  100. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts.map +1 -0
  101. package/dist/hooks/use-notification-reminder-rule-mutation.js +31 -0
  102. package/dist/hooks/use-notification-reminder-rule.d.ts +19 -0
  103. package/dist/hooks/use-notification-reminder-rule.d.ts.map +1 -0
  104. package/dist/hooks/use-notification-reminder-rule.js +12 -0
  105. package/dist/hooks/use-notification-reminder-rules.d.ts +25 -0
  106. package/dist/hooks/use-notification-reminder-rules.d.ts.map +1 -0
  107. package/dist/hooks/use-notification-reminder-rules.js +12 -0
  108. package/dist/hooks/use-notification-reminder-runs.d.ts +56 -0
  109. package/dist/hooks/use-notification-reminder-runs.d.ts.map +1 -0
  110. package/dist/hooks/use-notification-reminder-runs.js +12 -0
  111. package/dist/hooks/use-notification-settings.d.ts +50 -0
  112. package/dist/hooks/use-notification-settings.d.ts.map +1 -0
  113. package/dist/hooks/use-notification-settings.js +26 -0
  114. package/dist/hooks/use-notification-template-authoring.d.ts +5 -0
  115. package/dist/hooks/use-notification-template-authoring.d.ts.map +1 -0
  116. package/dist/hooks/use-notification-template-authoring.js +8 -0
  117. package/dist/hooks/use-notification-template-mutation.d.ts +54 -0
  118. package/dist/hooks/use-notification-template-mutation.d.ts.map +1 -0
  119. package/dist/hooks/use-notification-template-mutation.js +31 -0
  120. package/dist/hooks/use-notification-template-tools.d.ts +80 -0
  121. package/dist/hooks/use-notification-template-tools.d.ts.map +1 -0
  122. package/dist/hooks/use-notification-template-tools.js +21 -0
  123. package/dist/hooks/use-notification-template.d.ts +20 -0
  124. package/dist/hooks/use-notification-template.d.ts.map +1 -0
  125. package/dist/hooks/use-notification-template.js +12 -0
  126. package/dist/hooks/use-notification-templates.d.ts +26 -0
  127. package/dist/hooks/use-notification-templates.d.ts.map +1 -0
  128. package/dist/hooks/use-notification-templates.js +12 -0
  129. package/dist/hooks/use-reminder-rule-stage-mutation.d.ts +93 -0
  130. package/dist/hooks/use-reminder-rule-stage-mutation.d.ts.map +1 -0
  131. package/dist/hooks/use-reminder-rule-stage-mutation.js +53 -0
  132. package/dist/hooks/use-reminder-rule-stages.d.ts +25 -0
  133. package/dist/hooks/use-reminder-rule-stages.d.ts.map +1 -0
  134. package/dist/hooks/use-reminder-rule-stages.js +12 -0
  135. package/dist/hooks/use-reminder-stage-channel-mutation.d.ts +48 -0
  136. package/dist/hooks/use-reminder-stage-channel-mutation.d.ts.map +1 -0
  137. package/dist/hooks/use-reminder-stage-channel-mutation.js +42 -0
  138. package/dist/hooks/use-reminder-stage-channels.d.ts +18 -0
  139. package/dist/hooks/use-reminder-stage-channels.d.ts.map +1 -0
  140. package/dist/hooks/use-reminder-stage-channels.js +12 -0
  141. package/dist/hooks/use-reminders-preview.d.ts +21 -0
  142. package/dist/hooks/use-reminders-preview.d.ts.map +1 -0
  143. package/dist/hooks/use-reminders-preview.js +12 -0
  144. package/dist/i18n/en.d.ts +3 -0
  145. package/dist/i18n/en.d.ts.map +1 -0
  146. package/dist/i18n/en.js +385 -0
  147. package/dist/i18n/index.d.ts +5 -0
  148. package/dist/i18n/index.d.ts.map +1 -0
  149. package/dist/i18n/index.js +3 -0
  150. package/dist/i18n/messages.d.ts +386 -0
  151. package/dist/i18n/messages.d.ts.map +1 -0
  152. package/dist/i18n/messages.js +1 -0
  153. package/dist/i18n/provider.d.ts +26 -0
  154. package/dist/i18n/provider.d.ts.map +1 -0
  155. package/dist/i18n/provider.js +44 -0
  156. package/dist/i18n/ro.d.ts +3 -0
  157. package/dist/i18n/ro.d.ts.map +1 -0
  158. package/dist/i18n/ro.js +385 -0
  159. package/dist/index.d.ts +7 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +6 -0
  162. package/dist/provider.d.ts +2 -0
  163. package/dist/provider.d.ts.map +1 -0
  164. package/dist/provider.js +1 -0
  165. package/dist/query-keys.d.ts +72 -0
  166. package/dist/query-keys.d.ts.map +1 -0
  167. package/dist/query-keys.js +19 -0
  168. package/dist/query-options.d.ts +1252 -0
  169. package/dist/query-options.d.ts.map +1 -0
  170. package/dist/query-options.js +120 -0
  171. package/dist/schemas.d.ts +796 -0
  172. package/dist/schemas.d.ts.map +1 -0
  173. package/dist/schemas.js +173 -0
  174. package/dist/ui.d.ts +9 -0
  175. package/dist/ui.d.ts.map +1 -0
  176. package/dist/ui.js +8 -0
  177. package/package.json +138 -0
  178. package/src/styles.css +2 -0
@@ -0,0 +1,1252 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseNotificationDeliveriesOptions, UseNotificationReminderRulesOptions, UseNotificationReminderRunsOptions, UseNotificationTemplateOptions, UseNotificationTemplatesOptions } from "./hooks/index.js";
3
+ import { type RemindersPreviewFilters } from "./query-keys.js";
4
+ export declare function getNotificationTemplatesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationTemplatesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
5
+ data: {
6
+ id: string;
7
+ slug: string;
8
+ name: string;
9
+ channel: "email" | "sms";
10
+ provider: string | null;
11
+ status: "draft" | "active" | "archived";
12
+ subjectTemplate: string | null;
13
+ htmlTemplate: string | null;
14
+ textTemplate: string | null;
15
+ fromAddress: string | null;
16
+ isSystem: boolean;
17
+ metadata: Record<string, unknown> | null;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ }[];
21
+ total: number;
22
+ limit: number;
23
+ offset: number;
24
+ }, Error, {
25
+ data: {
26
+ id: string;
27
+ slug: string;
28
+ name: string;
29
+ channel: "email" | "sms";
30
+ provider: string | null;
31
+ status: "draft" | "active" | "archived";
32
+ subjectTemplate: string | null;
33
+ htmlTemplate: string | null;
34
+ textTemplate: string | null;
35
+ fromAddress: string | null;
36
+ isSystem: boolean;
37
+ metadata: Record<string, unknown> | null;
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ }[];
41
+ total: number;
42
+ limit: number;
43
+ offset: number;
44
+ }, readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters]>, "queryFn"> & {
45
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
46
+ data: {
47
+ id: string;
48
+ slug: string;
49
+ name: string;
50
+ channel: "email" | "sms";
51
+ provider: string | null;
52
+ status: "draft" | "active" | "archived";
53
+ subjectTemplate: string | null;
54
+ htmlTemplate: string | null;
55
+ textTemplate: string | null;
56
+ fromAddress: string | null;
57
+ isSystem: boolean;
58
+ metadata: Record<string, unknown> | null;
59
+ createdAt: string;
60
+ updatedAt: string;
61
+ }[];
62
+ total: number;
63
+ limit: number;
64
+ offset: number;
65
+ }, readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters], never> | undefined;
66
+ } & {
67
+ queryKey: readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters] & {
68
+ [dataTagSymbol]: {
69
+ data: {
70
+ id: string;
71
+ slug: string;
72
+ name: string;
73
+ channel: "email" | "sms";
74
+ provider: string | null;
75
+ status: "draft" | "active" | "archived";
76
+ subjectTemplate: string | null;
77
+ htmlTemplate: string | null;
78
+ textTemplate: string | null;
79
+ fromAddress: string | null;
80
+ isSystem: boolean;
81
+ metadata: Record<string, unknown> | null;
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ }[];
85
+ total: number;
86
+ limit: number;
87
+ offset: number;
88
+ };
89
+ [dataTagErrorSymbol]: Error;
90
+ };
91
+ };
92
+ export declare function getNotificationTemplateQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseNotificationTemplateOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
93
+ id: string;
94
+ slug: string;
95
+ name: string;
96
+ channel: "email" | "sms";
97
+ provider: string | null;
98
+ status: "draft" | "active" | "archived";
99
+ subjectTemplate: string | null;
100
+ htmlTemplate: string | null;
101
+ textTemplate: string | null;
102
+ fromAddress: string | null;
103
+ isSystem: boolean;
104
+ metadata: Record<string, unknown> | null;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ }, Error, {
108
+ id: string;
109
+ slug: string;
110
+ name: string;
111
+ channel: "email" | "sms";
112
+ provider: string | null;
113
+ status: "draft" | "active" | "archived";
114
+ subjectTemplate: string | null;
115
+ htmlTemplate: string | null;
116
+ textTemplate: string | null;
117
+ fromAddress: string | null;
118
+ isSystem: boolean;
119
+ metadata: Record<string, unknown> | null;
120
+ createdAt: string;
121
+ updatedAt: string;
122
+ }, readonly ["notifications", "templates", string]>, "queryFn"> & {
123
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
124
+ id: string;
125
+ slug: string;
126
+ name: string;
127
+ channel: "email" | "sms";
128
+ provider: string | null;
129
+ status: "draft" | "active" | "archived";
130
+ subjectTemplate: string | null;
131
+ htmlTemplate: string | null;
132
+ textTemplate: string | null;
133
+ fromAddress: string | null;
134
+ isSystem: boolean;
135
+ metadata: Record<string, unknown> | null;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ }, readonly ["notifications", "templates", string], never> | undefined;
139
+ } & {
140
+ queryKey: readonly ["notifications", "templates", string] & {
141
+ [dataTagSymbol]: {
142
+ id: string;
143
+ slug: string;
144
+ name: string;
145
+ channel: "email" | "sms";
146
+ provider: string | null;
147
+ status: "draft" | "active" | "archived";
148
+ subjectTemplate: string | null;
149
+ htmlTemplate: string | null;
150
+ textTemplate: string | null;
151
+ fromAddress: string | null;
152
+ isSystem: boolean;
153
+ metadata: Record<string, unknown> | null;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ };
157
+ [dataTagErrorSymbol]: Error;
158
+ };
159
+ };
160
+ export declare function getNotificationDeliveriesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationDeliveriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
161
+ data: {
162
+ id: string;
163
+ templateId: string | null;
164
+ templateSlug: string | null;
165
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
166
+ targetId: string | null;
167
+ personId: string | null;
168
+ organizationId: string | null;
169
+ bookingId: string | null;
170
+ invoiceId: string | null;
171
+ paymentSessionId: string | null;
172
+ channel: "email" | "sms";
173
+ provider: string;
174
+ providerMessageId: string | null;
175
+ status: "pending" | "failed" | "cancelled" | "sent";
176
+ toAddress: string;
177
+ fromAddress: string | null;
178
+ subject: string | null;
179
+ htmlBody: string | null;
180
+ textBody: string | null;
181
+ payloadData: Record<string, unknown> | null;
182
+ metadata: Record<string, unknown> | null;
183
+ errorMessage: string | null;
184
+ scheduledFor: string | null;
185
+ sentAt: string | null;
186
+ failedAt: string | null;
187
+ createdAt: string;
188
+ updatedAt: string;
189
+ }[];
190
+ total: number;
191
+ limit: number;
192
+ offset: number;
193
+ }, Error, {
194
+ data: {
195
+ id: string;
196
+ templateId: string | null;
197
+ templateSlug: string | null;
198
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
199
+ targetId: string | null;
200
+ personId: string | null;
201
+ organizationId: string | null;
202
+ bookingId: string | null;
203
+ invoiceId: string | null;
204
+ paymentSessionId: string | null;
205
+ channel: "email" | "sms";
206
+ provider: string;
207
+ providerMessageId: string | null;
208
+ status: "pending" | "failed" | "cancelled" | "sent";
209
+ toAddress: string;
210
+ fromAddress: string | null;
211
+ subject: string | null;
212
+ htmlBody: string | null;
213
+ textBody: string | null;
214
+ payloadData: Record<string, unknown> | null;
215
+ metadata: Record<string, unknown> | null;
216
+ errorMessage: string | null;
217
+ scheduledFor: string | null;
218
+ sentAt: string | null;
219
+ failedAt: string | null;
220
+ createdAt: string;
221
+ updatedAt: string;
222
+ }[];
223
+ total: number;
224
+ limit: number;
225
+ offset: number;
226
+ }, readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters]>, "queryFn"> & {
227
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
228
+ data: {
229
+ id: string;
230
+ templateId: string | null;
231
+ templateSlug: string | null;
232
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
233
+ targetId: string | null;
234
+ personId: string | null;
235
+ organizationId: string | null;
236
+ bookingId: string | null;
237
+ invoiceId: string | null;
238
+ paymentSessionId: string | null;
239
+ channel: "email" | "sms";
240
+ provider: string;
241
+ providerMessageId: string | null;
242
+ status: "pending" | "failed" | "cancelled" | "sent";
243
+ toAddress: string;
244
+ fromAddress: string | null;
245
+ subject: string | null;
246
+ htmlBody: string | null;
247
+ textBody: string | null;
248
+ payloadData: Record<string, unknown> | null;
249
+ metadata: Record<string, unknown> | null;
250
+ errorMessage: string | null;
251
+ scheduledFor: string | null;
252
+ sentAt: string | null;
253
+ failedAt: string | null;
254
+ createdAt: string;
255
+ updatedAt: string;
256
+ }[];
257
+ total: number;
258
+ limit: number;
259
+ offset: number;
260
+ }, readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters], never> | undefined;
261
+ } & {
262
+ queryKey: readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters] & {
263
+ [dataTagSymbol]: {
264
+ data: {
265
+ id: string;
266
+ templateId: string | null;
267
+ templateSlug: string | null;
268
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
269
+ targetId: string | null;
270
+ personId: string | null;
271
+ organizationId: string | null;
272
+ bookingId: string | null;
273
+ invoiceId: string | null;
274
+ paymentSessionId: string | null;
275
+ channel: "email" | "sms";
276
+ provider: string;
277
+ providerMessageId: string | null;
278
+ status: "pending" | "failed" | "cancelled" | "sent";
279
+ toAddress: string;
280
+ fromAddress: string | null;
281
+ subject: string | null;
282
+ htmlBody: string | null;
283
+ textBody: string | null;
284
+ payloadData: Record<string, unknown> | null;
285
+ metadata: Record<string, unknown> | null;
286
+ errorMessage: string | null;
287
+ scheduledFor: string | null;
288
+ sentAt: string | null;
289
+ failedAt: string | null;
290
+ createdAt: string;
291
+ updatedAt: string;
292
+ }[];
293
+ total: number;
294
+ limit: number;
295
+ offset: number;
296
+ };
297
+ [dataTagErrorSymbol]: Error;
298
+ };
299
+ };
300
+ export declare function getNotificationDeliveryQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
301
+ id: string;
302
+ templateId: string | null;
303
+ templateSlug: string | null;
304
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
305
+ targetId: string | null;
306
+ personId: string | null;
307
+ organizationId: string | null;
308
+ bookingId: string | null;
309
+ invoiceId: string | null;
310
+ paymentSessionId: string | null;
311
+ channel: "email" | "sms";
312
+ provider: string;
313
+ providerMessageId: string | null;
314
+ status: "pending" | "failed" | "cancelled" | "sent";
315
+ toAddress: string;
316
+ fromAddress: string | null;
317
+ subject: string | null;
318
+ htmlBody: string | null;
319
+ textBody: string | null;
320
+ payloadData: Record<string, unknown> | null;
321
+ metadata: Record<string, unknown> | null;
322
+ errorMessage: string | null;
323
+ scheduledFor: string | null;
324
+ sentAt: string | null;
325
+ failedAt: string | null;
326
+ createdAt: string;
327
+ updatedAt: string;
328
+ }, Error, {
329
+ id: string;
330
+ templateId: string | null;
331
+ templateSlug: string | null;
332
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
333
+ targetId: string | null;
334
+ personId: string | null;
335
+ organizationId: string | null;
336
+ bookingId: string | null;
337
+ invoiceId: string | null;
338
+ paymentSessionId: string | null;
339
+ channel: "email" | "sms";
340
+ provider: string;
341
+ providerMessageId: string | null;
342
+ status: "pending" | "failed" | "cancelled" | "sent";
343
+ toAddress: string;
344
+ fromAddress: string | null;
345
+ subject: string | null;
346
+ htmlBody: string | null;
347
+ textBody: string | null;
348
+ payloadData: Record<string, unknown> | null;
349
+ metadata: Record<string, unknown> | null;
350
+ errorMessage: string | null;
351
+ scheduledFor: string | null;
352
+ sentAt: string | null;
353
+ failedAt: string | null;
354
+ createdAt: string;
355
+ updatedAt: string;
356
+ }, readonly ["notifications", "deliveries", string]>, "queryFn"> & {
357
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
358
+ id: string;
359
+ templateId: string | null;
360
+ templateSlug: string | null;
361
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
362
+ targetId: string | null;
363
+ personId: string | null;
364
+ organizationId: string | null;
365
+ bookingId: string | null;
366
+ invoiceId: string | null;
367
+ paymentSessionId: string | null;
368
+ channel: "email" | "sms";
369
+ provider: string;
370
+ providerMessageId: string | null;
371
+ status: "pending" | "failed" | "cancelled" | "sent";
372
+ toAddress: string;
373
+ fromAddress: string | null;
374
+ subject: string | null;
375
+ htmlBody: string | null;
376
+ textBody: string | null;
377
+ payloadData: Record<string, unknown> | null;
378
+ metadata: Record<string, unknown> | null;
379
+ errorMessage: string | null;
380
+ scheduledFor: string | null;
381
+ sentAt: string | null;
382
+ failedAt: string | null;
383
+ createdAt: string;
384
+ updatedAt: string;
385
+ }, readonly ["notifications", "deliveries", string], never> | undefined;
386
+ } & {
387
+ queryKey: readonly ["notifications", "deliveries", string] & {
388
+ [dataTagSymbol]: {
389
+ id: string;
390
+ templateId: string | null;
391
+ templateSlug: string | null;
392
+ targetType: "other" | "booking" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "person" | "organization" | "payment_session";
393
+ targetId: string | null;
394
+ personId: string | null;
395
+ organizationId: string | null;
396
+ bookingId: string | null;
397
+ invoiceId: string | null;
398
+ paymentSessionId: string | null;
399
+ channel: "email" | "sms";
400
+ provider: string;
401
+ providerMessageId: string | null;
402
+ status: "pending" | "failed" | "cancelled" | "sent";
403
+ toAddress: string;
404
+ fromAddress: string | null;
405
+ subject: string | null;
406
+ htmlBody: string | null;
407
+ textBody: string | null;
408
+ payloadData: Record<string, unknown> | null;
409
+ metadata: Record<string, unknown> | null;
410
+ errorMessage: string | null;
411
+ scheduledFor: string | null;
412
+ sentAt: string | null;
413
+ failedAt: string | null;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ };
417
+ [dataTagErrorSymbol]: Error;
418
+ };
419
+ };
420
+ export declare function getNotificationReminderRulesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationReminderRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
421
+ data: {
422
+ id: string;
423
+ slug: string;
424
+ name: string;
425
+ status: "draft" | "active" | "archived";
426
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
427
+ channel: "email" | "sms";
428
+ provider: string | null;
429
+ templateId: string | null;
430
+ templateSlug: string | null;
431
+ isSystem: boolean;
432
+ metadata: Record<string, unknown> | null;
433
+ createdAt: string;
434
+ updatedAt: string;
435
+ }[];
436
+ total: number;
437
+ limit: number;
438
+ offset: number;
439
+ }, Error, {
440
+ data: {
441
+ id: string;
442
+ slug: string;
443
+ name: string;
444
+ status: "draft" | "active" | "archived";
445
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
446
+ channel: "email" | "sms";
447
+ provider: string | null;
448
+ templateId: string | null;
449
+ templateSlug: string | null;
450
+ isSystem: boolean;
451
+ metadata: Record<string, unknown> | null;
452
+ createdAt: string;
453
+ updatedAt: string;
454
+ }[];
455
+ total: number;
456
+ limit: number;
457
+ offset: number;
458
+ }, readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters]>, "queryFn"> & {
459
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
460
+ data: {
461
+ id: string;
462
+ slug: string;
463
+ name: string;
464
+ status: "draft" | "active" | "archived";
465
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
466
+ channel: "email" | "sms";
467
+ provider: string | null;
468
+ templateId: string | null;
469
+ templateSlug: string | null;
470
+ isSystem: boolean;
471
+ metadata: Record<string, unknown> | null;
472
+ createdAt: string;
473
+ updatedAt: string;
474
+ }[];
475
+ total: number;
476
+ limit: number;
477
+ offset: number;
478
+ }, readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters], never> | undefined;
479
+ } & {
480
+ queryKey: readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters] & {
481
+ [dataTagSymbol]: {
482
+ data: {
483
+ id: string;
484
+ slug: string;
485
+ name: string;
486
+ status: "draft" | "active" | "archived";
487
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
488
+ channel: "email" | "sms";
489
+ provider: string | null;
490
+ templateId: string | null;
491
+ templateSlug: string | null;
492
+ isSystem: boolean;
493
+ metadata: Record<string, unknown> | null;
494
+ createdAt: string;
495
+ updatedAt: string;
496
+ }[];
497
+ total: number;
498
+ limit: number;
499
+ offset: number;
500
+ };
501
+ [dataTagErrorSymbol]: Error;
502
+ };
503
+ };
504
+ export declare function getNotificationReminderRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
505
+ id: string;
506
+ slug: string;
507
+ name: string;
508
+ status: "draft" | "active" | "archived";
509
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
510
+ channel: "email" | "sms";
511
+ provider: string | null;
512
+ templateId: string | null;
513
+ templateSlug: string | null;
514
+ isSystem: boolean;
515
+ metadata: Record<string, unknown> | null;
516
+ createdAt: string;
517
+ updatedAt: string;
518
+ }, Error, {
519
+ id: string;
520
+ slug: string;
521
+ name: string;
522
+ status: "draft" | "active" | "archived";
523
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
524
+ channel: "email" | "sms";
525
+ provider: string | null;
526
+ templateId: string | null;
527
+ templateSlug: string | null;
528
+ isSystem: boolean;
529
+ metadata: Record<string, unknown> | null;
530
+ createdAt: string;
531
+ updatedAt: string;
532
+ }, readonly ["notifications", "reminder-rules", string]>, "queryFn"> & {
533
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
534
+ id: string;
535
+ slug: string;
536
+ name: string;
537
+ status: "draft" | "active" | "archived";
538
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
539
+ channel: "email" | "sms";
540
+ provider: string | null;
541
+ templateId: string | null;
542
+ templateSlug: string | null;
543
+ isSystem: boolean;
544
+ metadata: Record<string, unknown> | null;
545
+ createdAt: string;
546
+ updatedAt: string;
547
+ }, readonly ["notifications", "reminder-rules", string], never> | undefined;
548
+ } & {
549
+ queryKey: readonly ["notifications", "reminder-rules", string] & {
550
+ [dataTagSymbol]: {
551
+ id: string;
552
+ slug: string;
553
+ name: string;
554
+ status: "draft" | "active" | "archived";
555
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
556
+ channel: "email" | "sms";
557
+ provider: string | null;
558
+ templateId: string | null;
559
+ templateSlug: string | null;
560
+ isSystem: boolean;
561
+ metadata: Record<string, unknown> | null;
562
+ createdAt: string;
563
+ updatedAt: string;
564
+ };
565
+ [dataTagErrorSymbol]: Error;
566
+ };
567
+ };
568
+ export declare function getNotificationReminderRunsQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationReminderRunsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
569
+ data: {
570
+ id: string;
571
+ reminderRuleId: string;
572
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
573
+ targetId: string;
574
+ dedupeKey: string;
575
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
576
+ recipient: string | null;
577
+ scheduledFor: string;
578
+ processedAt: string;
579
+ errorMessage: string | null;
580
+ metadata: Record<string, unknown> | null;
581
+ createdAt: string;
582
+ updatedAt: string;
583
+ links: {
584
+ bookingId: string | null;
585
+ bookingPaymentScheduleId: string | null;
586
+ invoiceId: string | null;
587
+ paymentSessionId: string | null;
588
+ personId: string | null;
589
+ organizationId: string | null;
590
+ notificationDeliveryId: string | null;
591
+ };
592
+ reminderRule: {
593
+ id: string;
594
+ slug: string;
595
+ name: string;
596
+ status: "draft" | "active" | "archived";
597
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
598
+ channel: "email" | "sms";
599
+ provider: string | null;
600
+ templateId: string | null;
601
+ templateSlug: string | null;
602
+ };
603
+ delivery: {
604
+ id: string;
605
+ status: "pending" | "failed" | "cancelled" | "sent";
606
+ channel: "email" | "sms";
607
+ provider: string;
608
+ toAddress: string;
609
+ subject: string | null;
610
+ sentAt: string | null;
611
+ failedAt: string | null;
612
+ errorMessage: string | null;
613
+ } | null;
614
+ }[];
615
+ total: number;
616
+ limit: number;
617
+ offset: number;
618
+ }, Error, {
619
+ data: {
620
+ id: string;
621
+ reminderRuleId: string;
622
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
623
+ targetId: string;
624
+ dedupeKey: string;
625
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
626
+ recipient: string | null;
627
+ scheduledFor: string;
628
+ processedAt: string;
629
+ errorMessage: string | null;
630
+ metadata: Record<string, unknown> | null;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ links: {
634
+ bookingId: string | null;
635
+ bookingPaymentScheduleId: string | null;
636
+ invoiceId: string | null;
637
+ paymentSessionId: string | null;
638
+ personId: string | null;
639
+ organizationId: string | null;
640
+ notificationDeliveryId: string | null;
641
+ };
642
+ reminderRule: {
643
+ id: string;
644
+ slug: string;
645
+ name: string;
646
+ status: "draft" | "active" | "archived";
647
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
648
+ channel: "email" | "sms";
649
+ provider: string | null;
650
+ templateId: string | null;
651
+ templateSlug: string | null;
652
+ };
653
+ delivery: {
654
+ id: string;
655
+ status: "pending" | "failed" | "cancelled" | "sent";
656
+ channel: "email" | "sms";
657
+ provider: string;
658
+ toAddress: string;
659
+ subject: string | null;
660
+ sentAt: string | null;
661
+ failedAt: string | null;
662
+ errorMessage: string | null;
663
+ } | null;
664
+ }[];
665
+ total: number;
666
+ limit: number;
667
+ offset: number;
668
+ }, readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters]>, "queryFn"> & {
669
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
670
+ data: {
671
+ id: string;
672
+ reminderRuleId: string;
673
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
674
+ targetId: string;
675
+ dedupeKey: string;
676
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
677
+ recipient: string | null;
678
+ scheduledFor: string;
679
+ processedAt: string;
680
+ errorMessage: string | null;
681
+ metadata: Record<string, unknown> | null;
682
+ createdAt: string;
683
+ updatedAt: string;
684
+ links: {
685
+ bookingId: string | null;
686
+ bookingPaymentScheduleId: string | null;
687
+ invoiceId: string | null;
688
+ paymentSessionId: string | null;
689
+ personId: string | null;
690
+ organizationId: string | null;
691
+ notificationDeliveryId: string | null;
692
+ };
693
+ reminderRule: {
694
+ id: string;
695
+ slug: string;
696
+ name: string;
697
+ status: "draft" | "active" | "archived";
698
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
699
+ channel: "email" | "sms";
700
+ provider: string | null;
701
+ templateId: string | null;
702
+ templateSlug: string | null;
703
+ };
704
+ delivery: {
705
+ id: string;
706
+ status: "pending" | "failed" | "cancelled" | "sent";
707
+ channel: "email" | "sms";
708
+ provider: string;
709
+ toAddress: string;
710
+ subject: string | null;
711
+ sentAt: string | null;
712
+ failedAt: string | null;
713
+ errorMessage: string | null;
714
+ } | null;
715
+ }[];
716
+ total: number;
717
+ limit: number;
718
+ offset: number;
719
+ }, readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters], never> | undefined;
720
+ } & {
721
+ queryKey: readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters] & {
722
+ [dataTagSymbol]: {
723
+ data: {
724
+ id: string;
725
+ reminderRuleId: string;
726
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
727
+ targetId: string;
728
+ dedupeKey: string;
729
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
730
+ recipient: string | null;
731
+ scheduledFor: string;
732
+ processedAt: string;
733
+ errorMessage: string | null;
734
+ metadata: Record<string, unknown> | null;
735
+ createdAt: string;
736
+ updatedAt: string;
737
+ links: {
738
+ bookingId: string | null;
739
+ bookingPaymentScheduleId: string | null;
740
+ invoiceId: string | null;
741
+ paymentSessionId: string | null;
742
+ personId: string | null;
743
+ organizationId: string | null;
744
+ notificationDeliveryId: string | null;
745
+ };
746
+ reminderRule: {
747
+ id: string;
748
+ slug: string;
749
+ name: string;
750
+ status: "draft" | "active" | "archived";
751
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
752
+ channel: "email" | "sms";
753
+ provider: string | null;
754
+ templateId: string | null;
755
+ templateSlug: string | null;
756
+ };
757
+ delivery: {
758
+ id: string;
759
+ status: "pending" | "failed" | "cancelled" | "sent";
760
+ channel: "email" | "sms";
761
+ provider: string;
762
+ toAddress: string;
763
+ subject: string | null;
764
+ sentAt: string | null;
765
+ failedAt: string | null;
766
+ errorMessage: string | null;
767
+ } | null;
768
+ }[];
769
+ total: number;
770
+ limit: number;
771
+ offset: number;
772
+ };
773
+ [dataTagErrorSymbol]: Error;
774
+ };
775
+ };
776
+ export declare function getNotificationReminderRunQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
777
+ id: string;
778
+ reminderRuleId: string;
779
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
780
+ targetId: string;
781
+ dedupeKey: string;
782
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
783
+ recipient: string | null;
784
+ scheduledFor: string;
785
+ processedAt: string;
786
+ errorMessage: string | null;
787
+ metadata: Record<string, unknown> | null;
788
+ createdAt: string;
789
+ updatedAt: string;
790
+ links: {
791
+ bookingId: string | null;
792
+ bookingPaymentScheduleId: string | null;
793
+ invoiceId: string | null;
794
+ paymentSessionId: string | null;
795
+ personId: string | null;
796
+ organizationId: string | null;
797
+ notificationDeliveryId: string | null;
798
+ };
799
+ reminderRule: {
800
+ id: string;
801
+ slug: string;
802
+ name: string;
803
+ status: "draft" | "active" | "archived";
804
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
805
+ channel: "email" | "sms";
806
+ provider: string | null;
807
+ templateId: string | null;
808
+ templateSlug: string | null;
809
+ };
810
+ delivery: {
811
+ id: string;
812
+ status: "pending" | "failed" | "cancelled" | "sent";
813
+ channel: "email" | "sms";
814
+ provider: string;
815
+ toAddress: string;
816
+ subject: string | null;
817
+ sentAt: string | null;
818
+ failedAt: string | null;
819
+ errorMessage: string | null;
820
+ } | null;
821
+ }, Error, {
822
+ id: string;
823
+ reminderRuleId: string;
824
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
825
+ targetId: string;
826
+ dedupeKey: string;
827
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
828
+ recipient: string | null;
829
+ scheduledFor: string;
830
+ processedAt: string;
831
+ errorMessage: string | null;
832
+ metadata: Record<string, unknown> | null;
833
+ createdAt: string;
834
+ updatedAt: string;
835
+ links: {
836
+ bookingId: string | null;
837
+ bookingPaymentScheduleId: string | null;
838
+ invoiceId: string | null;
839
+ paymentSessionId: string | null;
840
+ personId: string | null;
841
+ organizationId: string | null;
842
+ notificationDeliveryId: string | null;
843
+ };
844
+ reminderRule: {
845
+ id: string;
846
+ slug: string;
847
+ name: string;
848
+ status: "draft" | "active" | "archived";
849
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
850
+ channel: "email" | "sms";
851
+ provider: string | null;
852
+ templateId: string | null;
853
+ templateSlug: string | null;
854
+ };
855
+ delivery: {
856
+ id: string;
857
+ status: "pending" | "failed" | "cancelled" | "sent";
858
+ channel: "email" | "sms";
859
+ provider: string;
860
+ toAddress: string;
861
+ subject: string | null;
862
+ sentAt: string | null;
863
+ failedAt: string | null;
864
+ errorMessage: string | null;
865
+ } | null;
866
+ }, readonly ["notifications", "reminder-runs", string]>, "queryFn"> & {
867
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
868
+ id: string;
869
+ reminderRuleId: string;
870
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
871
+ targetId: string;
872
+ dedupeKey: string;
873
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
874
+ recipient: string | null;
875
+ scheduledFor: string;
876
+ processedAt: string;
877
+ errorMessage: string | null;
878
+ metadata: Record<string, unknown> | null;
879
+ createdAt: string;
880
+ updatedAt: string;
881
+ links: {
882
+ bookingId: string | null;
883
+ bookingPaymentScheduleId: string | null;
884
+ invoiceId: string | null;
885
+ paymentSessionId: string | null;
886
+ personId: string | null;
887
+ organizationId: string | null;
888
+ notificationDeliveryId: string | null;
889
+ };
890
+ reminderRule: {
891
+ id: string;
892
+ slug: string;
893
+ name: string;
894
+ status: "draft" | "active" | "archived";
895
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
896
+ channel: "email" | "sms";
897
+ provider: string | null;
898
+ templateId: string | null;
899
+ templateSlug: string | null;
900
+ };
901
+ delivery: {
902
+ id: string;
903
+ status: "pending" | "failed" | "cancelled" | "sent";
904
+ channel: "email" | "sms";
905
+ provider: string;
906
+ toAddress: string;
907
+ subject: string | null;
908
+ sentAt: string | null;
909
+ failedAt: string | null;
910
+ errorMessage: string | null;
911
+ } | null;
912
+ }, readonly ["notifications", "reminder-runs", string], never> | undefined;
913
+ } & {
914
+ queryKey: readonly ["notifications", "reminder-runs", string] & {
915
+ [dataTagSymbol]: {
916
+ id: string;
917
+ reminderRuleId: string;
918
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
919
+ targetId: string;
920
+ dedupeKey: string;
921
+ status: "queued" | "failed" | "processing" | "skipped" | "sent";
922
+ recipient: string | null;
923
+ scheduledFor: string;
924
+ processedAt: string;
925
+ errorMessage: string | null;
926
+ metadata: Record<string, unknown> | null;
927
+ createdAt: string;
928
+ updatedAt: string;
929
+ links: {
930
+ bookingId: string | null;
931
+ bookingPaymentScheduleId: string | null;
932
+ invoiceId: string | null;
933
+ paymentSessionId: string | null;
934
+ personId: string | null;
935
+ organizationId: string | null;
936
+ notificationDeliveryId: string | null;
937
+ };
938
+ reminderRule: {
939
+ id: string;
940
+ slug: string;
941
+ name: string;
942
+ status: "draft" | "active" | "archived";
943
+ targetType: "invoice" | "booking_payment_schedule" | "booking_confirmed" | "payment_complete" | "booking_cancelled_non_payment";
944
+ channel: "email" | "sms";
945
+ provider: string | null;
946
+ templateId: string | null;
947
+ templateSlug: string | null;
948
+ };
949
+ delivery: {
950
+ id: string;
951
+ status: "pending" | "failed" | "cancelled" | "sent";
952
+ channel: "email" | "sms";
953
+ provider: string;
954
+ toAddress: string;
955
+ subject: string | null;
956
+ sentAt: string | null;
957
+ failedAt: string | null;
958
+ errorMessage: string | null;
959
+ } | null;
960
+ };
961
+ [dataTagErrorSymbol]: Error;
962
+ };
963
+ };
964
+ export declare function getReminderRuleStagesQueryOptions(client: FetchWithValidationOptions, reminderRuleId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
965
+ id: string;
966
+ reminderRuleId: string;
967
+ orderIndex: number;
968
+ name: string | null;
969
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
970
+ windowStartDays: number;
971
+ windowEndDays: number;
972
+ cadenceKind: "once" | "every_n_days" | "escalating";
973
+ cadenceEveryDays: number | null;
974
+ cadenceIntervals: {
975
+ repeatEveryDays: number;
976
+ whenDaysUntilDueGT?: number | null | undefined;
977
+ whenDaysUntilDueLT?: number | null | undefined;
978
+ }[] | null;
979
+ maxSendsInStage: number | null;
980
+ respectQuietHours: boolean;
981
+ metadata: Record<string, unknown> | null;
982
+ createdAt: string;
983
+ updatedAt: string;
984
+ }[], Error, {
985
+ id: string;
986
+ reminderRuleId: string;
987
+ orderIndex: number;
988
+ name: string | null;
989
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
990
+ windowStartDays: number;
991
+ windowEndDays: number;
992
+ cadenceKind: "once" | "every_n_days" | "escalating";
993
+ cadenceEveryDays: number | null;
994
+ cadenceIntervals: {
995
+ repeatEveryDays: number;
996
+ whenDaysUntilDueGT?: number | null | undefined;
997
+ whenDaysUntilDueLT?: number | null | undefined;
998
+ }[] | null;
999
+ maxSendsInStage: number | null;
1000
+ respectQuietHours: boolean;
1001
+ metadata: Record<string, unknown> | null;
1002
+ createdAt: string;
1003
+ updatedAt: string;
1004
+ }[], readonly ["notifications", "reminder-rules", string, "stages"]>, "queryFn"> & {
1005
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1006
+ id: string;
1007
+ reminderRuleId: string;
1008
+ orderIndex: number;
1009
+ name: string | null;
1010
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
1011
+ windowStartDays: number;
1012
+ windowEndDays: number;
1013
+ cadenceKind: "once" | "every_n_days" | "escalating";
1014
+ cadenceEveryDays: number | null;
1015
+ cadenceIntervals: {
1016
+ repeatEveryDays: number;
1017
+ whenDaysUntilDueGT?: number | null | undefined;
1018
+ whenDaysUntilDueLT?: number | null | undefined;
1019
+ }[] | null;
1020
+ maxSendsInStage: number | null;
1021
+ respectQuietHours: boolean;
1022
+ metadata: Record<string, unknown> | null;
1023
+ createdAt: string;
1024
+ updatedAt: string;
1025
+ }[], readonly ["notifications", "reminder-rules", string, "stages"], never> | undefined;
1026
+ } & {
1027
+ queryKey: readonly ["notifications", "reminder-rules", string, "stages"] & {
1028
+ [dataTagSymbol]: {
1029
+ id: string;
1030
+ reminderRuleId: string;
1031
+ orderIndex: number;
1032
+ name: string | null;
1033
+ anchor: "due_date" | "booking_created_at" | "departure_date" | "invoice_issued_at" | "last_send_at";
1034
+ windowStartDays: number;
1035
+ windowEndDays: number;
1036
+ cadenceKind: "once" | "every_n_days" | "escalating";
1037
+ cadenceEveryDays: number | null;
1038
+ cadenceIntervals: {
1039
+ repeatEveryDays: number;
1040
+ whenDaysUntilDueGT?: number | null | undefined;
1041
+ whenDaysUntilDueLT?: number | null | undefined;
1042
+ }[] | null;
1043
+ maxSendsInStage: number | null;
1044
+ respectQuietHours: boolean;
1045
+ metadata: Record<string, unknown> | null;
1046
+ createdAt: string;
1047
+ updatedAt: string;
1048
+ }[];
1049
+ [dataTagErrorSymbol]: Error;
1050
+ };
1051
+ };
1052
+ export declare function getReminderStageChannelsQueryOptions(client: FetchWithValidationOptions, reminderRuleId: string, stageId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1053
+ id: string;
1054
+ stageId: string;
1055
+ orderIndex: number;
1056
+ channel: "email" | "sms";
1057
+ provider: string | null;
1058
+ templateId: string | null;
1059
+ templateSlug: string | null;
1060
+ recipientKind: "primary" | "cc" | "bcc";
1061
+ recipientRole: string | null;
1062
+ metadata: Record<string, unknown> | null;
1063
+ createdAt: string;
1064
+ updatedAt: string;
1065
+ }[], Error, {
1066
+ id: string;
1067
+ stageId: string;
1068
+ orderIndex: number;
1069
+ channel: "email" | "sms";
1070
+ provider: string | null;
1071
+ templateId: string | null;
1072
+ templateSlug: string | null;
1073
+ recipientKind: "primary" | "cc" | "bcc";
1074
+ recipientRole: string | null;
1075
+ metadata: Record<string, unknown> | null;
1076
+ createdAt: string;
1077
+ updatedAt: string;
1078
+ }[], readonly ["notifications", "stage-channels", string]>, "queryFn"> & {
1079
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1080
+ id: string;
1081
+ stageId: string;
1082
+ orderIndex: number;
1083
+ channel: "email" | "sms";
1084
+ provider: string | null;
1085
+ templateId: string | null;
1086
+ templateSlug: string | null;
1087
+ recipientKind: "primary" | "cc" | "bcc";
1088
+ recipientRole: string | null;
1089
+ metadata: Record<string, unknown> | null;
1090
+ createdAt: string;
1091
+ updatedAt: string;
1092
+ }[], readonly ["notifications", "stage-channels", string], never> | undefined;
1093
+ } & {
1094
+ queryKey: readonly ["notifications", "stage-channels", string] & {
1095
+ [dataTagSymbol]: {
1096
+ id: string;
1097
+ stageId: string;
1098
+ orderIndex: number;
1099
+ channel: "email" | "sms";
1100
+ provider: string | null;
1101
+ templateId: string | null;
1102
+ templateSlug: string | null;
1103
+ recipientKind: "primary" | "cc" | "bcc";
1104
+ recipientRole: string | null;
1105
+ metadata: Record<string, unknown> | null;
1106
+ createdAt: string;
1107
+ updatedAt: string;
1108
+ }[];
1109
+ [dataTagErrorSymbol]: Error;
1110
+ };
1111
+ };
1112
+ export declare function getNotificationSettingsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1113
+ id: string;
1114
+ scope: string;
1115
+ quietHoursLocal: {
1116
+ start: string;
1117
+ end: string;
1118
+ tz: string;
1119
+ } | null;
1120
+ blackoutDates: string[] | null;
1121
+ skipWeekends: boolean;
1122
+ holidayCalendar: string | null;
1123
+ recipientRateLimitPerDay: number | null;
1124
+ suppressionWindowHours: number;
1125
+ metadata: Record<string, unknown> | null;
1126
+ createdAt: string;
1127
+ updatedAt: string;
1128
+ }, Error, {
1129
+ id: string;
1130
+ scope: string;
1131
+ quietHoursLocal: {
1132
+ start: string;
1133
+ end: string;
1134
+ tz: string;
1135
+ } | null;
1136
+ blackoutDates: string[] | null;
1137
+ skipWeekends: boolean;
1138
+ holidayCalendar: string | null;
1139
+ recipientRateLimitPerDay: number | null;
1140
+ suppressionWindowHours: number;
1141
+ metadata: Record<string, unknown> | null;
1142
+ createdAt: string;
1143
+ updatedAt: string;
1144
+ }, readonly ["notifications", "settings"]>, "queryFn"> & {
1145
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1146
+ id: string;
1147
+ scope: string;
1148
+ quietHoursLocal: {
1149
+ start: string;
1150
+ end: string;
1151
+ tz: string;
1152
+ } | null;
1153
+ blackoutDates: string[] | null;
1154
+ skipWeekends: boolean;
1155
+ holidayCalendar: string | null;
1156
+ recipientRateLimitPerDay: number | null;
1157
+ suppressionWindowHours: number;
1158
+ metadata: Record<string, unknown> | null;
1159
+ createdAt: string;
1160
+ updatedAt: string;
1161
+ }, readonly ["notifications", "settings"], never> | undefined;
1162
+ } & {
1163
+ queryKey: readonly ["notifications", "settings"] & {
1164
+ [dataTagSymbol]: {
1165
+ id: string;
1166
+ scope: string;
1167
+ quietHoursLocal: {
1168
+ start: string;
1169
+ end: string;
1170
+ tz: string;
1171
+ } | null;
1172
+ blackoutDates: string[] | null;
1173
+ skipWeekends: boolean;
1174
+ holidayCalendar: string | null;
1175
+ recipientRateLimitPerDay: number | null;
1176
+ suppressionWindowHours: number;
1177
+ metadata: Record<string, unknown> | null;
1178
+ createdAt: string;
1179
+ updatedAt: string;
1180
+ };
1181
+ [dataTagErrorSymbol]: Error;
1182
+ };
1183
+ };
1184
+ export declare function getRemindersPreviewQueryOptions(client: FetchWithValidationOptions, filters?: RemindersPreviewFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1185
+ ruleId: string;
1186
+ ruleName: string;
1187
+ ruleSlug: string;
1188
+ targetType: string;
1189
+ targetId: string;
1190
+ bookingId: string | null;
1191
+ stageId: string;
1192
+ stageName: string | null;
1193
+ stageOrderIndex: number;
1194
+ anchor: string;
1195
+ anchorDate: string;
1196
+ scheduledAt: string;
1197
+ sendCountAtFire: number;
1198
+ reasoning: string;
1199
+ }[], Error, {
1200
+ ruleId: string;
1201
+ ruleName: string;
1202
+ ruleSlug: string;
1203
+ targetType: string;
1204
+ targetId: string;
1205
+ bookingId: string | null;
1206
+ stageId: string;
1207
+ stageName: string | null;
1208
+ stageOrderIndex: number;
1209
+ anchor: string;
1210
+ anchorDate: string;
1211
+ scheduledAt: string;
1212
+ sendCountAtFire: number;
1213
+ reasoning: string;
1214
+ }[], readonly ["notifications", "preview", RemindersPreviewFilters]>, "queryFn"> & {
1215
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1216
+ ruleId: string;
1217
+ ruleName: string;
1218
+ ruleSlug: string;
1219
+ targetType: string;
1220
+ targetId: string;
1221
+ bookingId: string | null;
1222
+ stageId: string;
1223
+ stageName: string | null;
1224
+ stageOrderIndex: number;
1225
+ anchor: string;
1226
+ anchorDate: string;
1227
+ scheduledAt: string;
1228
+ sendCountAtFire: number;
1229
+ reasoning: string;
1230
+ }[], readonly ["notifications", "preview", RemindersPreviewFilters], never> | undefined;
1231
+ } & {
1232
+ queryKey: readonly ["notifications", "preview", RemindersPreviewFilters] & {
1233
+ [dataTagSymbol]: {
1234
+ ruleId: string;
1235
+ ruleName: string;
1236
+ ruleSlug: string;
1237
+ targetType: string;
1238
+ targetId: string;
1239
+ bookingId: string | null;
1240
+ stageId: string;
1241
+ stageName: string | null;
1242
+ stageOrderIndex: number;
1243
+ anchor: string;
1244
+ anchorDate: string;
1245
+ scheduledAt: string;
1246
+ sendCountAtFire: number;
1247
+ reasoning: string;
1248
+ }[];
1249
+ [dataTagErrorSymbol]: Error;
1250
+ };
1251
+ };
1252
+ //# sourceMappingURL=query-options.d.ts.map