@voyantjs/notifications-react 0.6.8

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 (55) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +71 -0
  4. package/dist/hooks/index.d.ts +12 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +12 -0
  7. package/dist/hooks/use-notification-deliveries.d.ts +39 -0
  8. package/dist/hooks/use-notification-deliveries.d.ts.map +1 -0
  9. package/dist/hooks/use-notification-deliveries.js +12 -0
  10. package/dist/hooks/use-notification-delivery.d.ts +32 -0
  11. package/dist/hooks/use-notification-delivery.d.ts.map +1 -0
  12. package/dist/hooks/use-notification-delivery.js +12 -0
  13. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts +54 -0
  14. package/dist/hooks/use-notification-reminder-rule-mutation.d.ts.map +1 -0
  15. package/dist/hooks/use-notification-reminder-rule-mutation.js +31 -0
  16. package/dist/hooks/use-notification-reminder-rule.d.ts +20 -0
  17. package/dist/hooks/use-notification-reminder-rule.d.ts.map +1 -0
  18. package/dist/hooks/use-notification-reminder-rule.js +12 -0
  19. package/dist/hooks/use-notification-reminder-rules.d.ts +26 -0
  20. package/dist/hooks/use-notification-reminder-rules.d.ts.map +1 -0
  21. package/dist/hooks/use-notification-reminder-rules.js +12 -0
  22. package/dist/hooks/use-notification-reminder-runs.d.ts +57 -0
  23. package/dist/hooks/use-notification-reminder-runs.d.ts.map +1 -0
  24. package/dist/hooks/use-notification-reminder-runs.js +12 -0
  25. package/dist/hooks/use-notification-template-authoring.d.ts +5 -0
  26. package/dist/hooks/use-notification-template-authoring.d.ts.map +1 -0
  27. package/dist/hooks/use-notification-template-authoring.js +8 -0
  28. package/dist/hooks/use-notification-template-mutation.d.ts +54 -0
  29. package/dist/hooks/use-notification-template-mutation.d.ts.map +1 -0
  30. package/dist/hooks/use-notification-template-mutation.js +31 -0
  31. package/dist/hooks/use-notification-template-tools.d.ts +80 -0
  32. package/dist/hooks/use-notification-template-tools.d.ts.map +1 -0
  33. package/dist/hooks/use-notification-template-tools.js +21 -0
  34. package/dist/hooks/use-notification-template.d.ts +20 -0
  35. package/dist/hooks/use-notification-template.d.ts.map +1 -0
  36. package/dist/hooks/use-notification-template.js +12 -0
  37. package/dist/hooks/use-notification-templates.d.ts +26 -0
  38. package/dist/hooks/use-notification-templates.d.ts.map +1 -0
  39. package/dist/hooks/use-notification-templates.js +12 -0
  40. package/dist/index.d.ts +7 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +6 -0
  43. package/dist/provider.d.ts +2 -0
  44. package/dist/provider.d.ts.map +1 -0
  45. package/dist/provider.js +1 -0
  46. package/dist/query-keys.d.ts +63 -0
  47. package/dist/query-keys.d.ts.map +1 -0
  48. package/dist/query-keys.js +15 -0
  49. package/dist/query-options.d.ts +979 -0
  50. package/dist/query-options.d.ts.map +1 -0
  51. package/dist/query-options.js +79 -0
  52. package/dist/schemas.d.ts +515 -0
  53. package/dist/schemas.d.ts.map +1 -0
  54. package/dist/schemas.js +89 -0
  55. package/package.json +79 -0
@@ -0,0 +1,979 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseNotificationDeliveriesOptions, UseNotificationReminderRulesOptions, UseNotificationReminderRunsOptions, UseNotificationTemplateOptions, UseNotificationTemplatesOptions } from "./hooks/index.js";
3
+ export declare function getNotificationTemplatesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationTemplatesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
4
+ data: {
5
+ id: string;
6
+ slug: string;
7
+ name: string;
8
+ channel: "email" | "sms";
9
+ provider: string | null;
10
+ status: "draft" | "active" | "archived";
11
+ subjectTemplate: string | null;
12
+ htmlTemplate: string | null;
13
+ textTemplate: string | null;
14
+ fromAddress: string | null;
15
+ isSystem: boolean;
16
+ metadata: Record<string, unknown> | null;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }[];
20
+ total: number;
21
+ limit: number;
22
+ offset: number;
23
+ }, Error, {
24
+ data: {
25
+ id: string;
26
+ slug: string;
27
+ name: string;
28
+ channel: "email" | "sms";
29
+ provider: string | null;
30
+ status: "draft" | "active" | "archived";
31
+ subjectTemplate: string | null;
32
+ htmlTemplate: string | null;
33
+ textTemplate: string | null;
34
+ fromAddress: string | null;
35
+ isSystem: boolean;
36
+ metadata: Record<string, unknown> | null;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ }[];
40
+ total: number;
41
+ limit: number;
42
+ offset: number;
43
+ }, readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters]>, "queryFn"> & {
44
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
45
+ data: {
46
+ id: string;
47
+ slug: string;
48
+ name: string;
49
+ channel: "email" | "sms";
50
+ provider: string | null;
51
+ status: "draft" | "active" | "archived";
52
+ subjectTemplate: string | null;
53
+ htmlTemplate: string | null;
54
+ textTemplate: string | null;
55
+ fromAddress: string | null;
56
+ isSystem: boolean;
57
+ metadata: Record<string, unknown> | null;
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ }[];
61
+ total: number;
62
+ limit: number;
63
+ offset: number;
64
+ }, readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters], never> | undefined;
65
+ } & {
66
+ queryKey: readonly ["notifications", "templates", import("./query-keys.js").NotificationTemplatesListFilters] & {
67
+ [dataTagSymbol]: {
68
+ data: {
69
+ id: string;
70
+ slug: string;
71
+ name: string;
72
+ channel: "email" | "sms";
73
+ provider: string | null;
74
+ status: "draft" | "active" | "archived";
75
+ subjectTemplate: string | null;
76
+ htmlTemplate: string | null;
77
+ textTemplate: string | null;
78
+ fromAddress: string | null;
79
+ isSystem: boolean;
80
+ metadata: Record<string, unknown> | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ }[];
84
+ total: number;
85
+ limit: number;
86
+ offset: number;
87
+ };
88
+ [dataTagErrorSymbol]: Error;
89
+ };
90
+ };
91
+ export declare function getNotificationTemplateQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseNotificationTemplateOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
92
+ id: string;
93
+ slug: string;
94
+ name: string;
95
+ channel: "email" | "sms";
96
+ provider: string | null;
97
+ status: "draft" | "active" | "archived";
98
+ subjectTemplate: string | null;
99
+ htmlTemplate: string | null;
100
+ textTemplate: string | null;
101
+ fromAddress: string | null;
102
+ isSystem: boolean;
103
+ metadata: Record<string, unknown> | null;
104
+ createdAt: string;
105
+ updatedAt: string;
106
+ }, Error, {
107
+ id: string;
108
+ slug: string;
109
+ name: string;
110
+ channel: "email" | "sms";
111
+ provider: string | null;
112
+ status: "draft" | "active" | "archived";
113
+ subjectTemplate: string | null;
114
+ htmlTemplate: string | null;
115
+ textTemplate: string | null;
116
+ fromAddress: string | null;
117
+ isSystem: boolean;
118
+ metadata: Record<string, unknown> | null;
119
+ createdAt: string;
120
+ updatedAt: string;
121
+ }, readonly ["notifications", "templates", string]>, "queryFn"> & {
122
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
123
+ id: string;
124
+ slug: string;
125
+ name: string;
126
+ channel: "email" | "sms";
127
+ provider: string | null;
128
+ status: "draft" | "active" | "archived";
129
+ subjectTemplate: string | null;
130
+ htmlTemplate: string | null;
131
+ textTemplate: string | null;
132
+ fromAddress: string | null;
133
+ isSystem: boolean;
134
+ metadata: Record<string, unknown> | null;
135
+ createdAt: string;
136
+ updatedAt: string;
137
+ }, readonly ["notifications", "templates", string], never> | undefined;
138
+ } & {
139
+ queryKey: readonly ["notifications", "templates", string] & {
140
+ [dataTagSymbol]: {
141
+ id: string;
142
+ slug: string;
143
+ name: string;
144
+ channel: "email" | "sms";
145
+ provider: string | null;
146
+ status: "draft" | "active" | "archived";
147
+ subjectTemplate: string | null;
148
+ htmlTemplate: string | null;
149
+ textTemplate: string | null;
150
+ fromAddress: string | null;
151
+ isSystem: boolean;
152
+ metadata: Record<string, unknown> | null;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ };
156
+ [dataTagErrorSymbol]: Error;
157
+ };
158
+ };
159
+ export declare function getNotificationDeliveriesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationDeliveriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
160
+ data: {
161
+ id: string;
162
+ templateId: string | null;
163
+ templateSlug: string | null;
164
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
165
+ targetId: string | null;
166
+ personId: string | null;
167
+ organizationId: string | null;
168
+ bookingId: string | null;
169
+ invoiceId: string | null;
170
+ paymentSessionId: string | null;
171
+ channel: "email" | "sms";
172
+ provider: string;
173
+ providerMessageId: string | null;
174
+ status: "pending" | "sent" | "failed" | "cancelled";
175
+ toAddress: string;
176
+ fromAddress: string | null;
177
+ subject: string | null;
178
+ htmlBody: string | null;
179
+ textBody: string | null;
180
+ payloadData: Record<string, unknown> | null;
181
+ metadata: Record<string, unknown> | null;
182
+ errorMessage: string | null;
183
+ scheduledFor: string | null;
184
+ sentAt: string | null;
185
+ failedAt: string | null;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ }[];
189
+ total: number;
190
+ limit: number;
191
+ offset: number;
192
+ }, Error, {
193
+ data: {
194
+ id: string;
195
+ templateId: string | null;
196
+ templateSlug: string | null;
197
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
198
+ targetId: string | null;
199
+ personId: string | null;
200
+ organizationId: string | null;
201
+ bookingId: string | null;
202
+ invoiceId: string | null;
203
+ paymentSessionId: string | null;
204
+ channel: "email" | "sms";
205
+ provider: string;
206
+ providerMessageId: string | null;
207
+ status: "pending" | "sent" | "failed" | "cancelled";
208
+ toAddress: string;
209
+ fromAddress: string | null;
210
+ subject: string | null;
211
+ htmlBody: string | null;
212
+ textBody: string | null;
213
+ payloadData: Record<string, unknown> | null;
214
+ metadata: Record<string, unknown> | null;
215
+ errorMessage: string | null;
216
+ scheduledFor: string | null;
217
+ sentAt: string | null;
218
+ failedAt: string | null;
219
+ createdAt: string;
220
+ updatedAt: string;
221
+ }[];
222
+ total: number;
223
+ limit: number;
224
+ offset: number;
225
+ }, readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters]>, "queryFn"> & {
226
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
227
+ data: {
228
+ id: string;
229
+ templateId: string | null;
230
+ templateSlug: string | null;
231
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
232
+ targetId: string | null;
233
+ personId: string | null;
234
+ organizationId: string | null;
235
+ bookingId: string | null;
236
+ invoiceId: string | null;
237
+ paymentSessionId: string | null;
238
+ channel: "email" | "sms";
239
+ provider: string;
240
+ providerMessageId: string | null;
241
+ status: "pending" | "sent" | "failed" | "cancelled";
242
+ toAddress: string;
243
+ fromAddress: string | null;
244
+ subject: string | null;
245
+ htmlBody: string | null;
246
+ textBody: string | null;
247
+ payloadData: Record<string, unknown> | null;
248
+ metadata: Record<string, unknown> | null;
249
+ errorMessage: string | null;
250
+ scheduledFor: string | null;
251
+ sentAt: string | null;
252
+ failedAt: string | null;
253
+ createdAt: string;
254
+ updatedAt: string;
255
+ }[];
256
+ total: number;
257
+ limit: number;
258
+ offset: number;
259
+ }, readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters], never> | undefined;
260
+ } & {
261
+ queryKey: readonly ["notifications", "deliveries", import("./query-keys.js").NotificationDeliveriesListFilters] & {
262
+ [dataTagSymbol]: {
263
+ data: {
264
+ id: string;
265
+ templateId: string | null;
266
+ templateSlug: string | null;
267
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
268
+ targetId: string | null;
269
+ personId: string | null;
270
+ organizationId: string | null;
271
+ bookingId: string | null;
272
+ invoiceId: string | null;
273
+ paymentSessionId: string | null;
274
+ channel: "email" | "sms";
275
+ provider: string;
276
+ providerMessageId: string | null;
277
+ status: "pending" | "sent" | "failed" | "cancelled";
278
+ toAddress: string;
279
+ fromAddress: string | null;
280
+ subject: string | null;
281
+ htmlBody: string | null;
282
+ textBody: string | null;
283
+ payloadData: Record<string, unknown> | null;
284
+ metadata: Record<string, unknown> | null;
285
+ errorMessage: string | null;
286
+ scheduledFor: string | null;
287
+ sentAt: string | null;
288
+ failedAt: string | null;
289
+ createdAt: string;
290
+ updatedAt: string;
291
+ }[];
292
+ total: number;
293
+ limit: number;
294
+ offset: number;
295
+ };
296
+ [dataTagErrorSymbol]: Error;
297
+ };
298
+ };
299
+ export declare function getNotificationDeliveryQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
300
+ id: string;
301
+ templateId: string | null;
302
+ templateSlug: string | null;
303
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
304
+ targetId: string | null;
305
+ personId: string | null;
306
+ organizationId: string | null;
307
+ bookingId: string | null;
308
+ invoiceId: string | null;
309
+ paymentSessionId: string | null;
310
+ channel: "email" | "sms";
311
+ provider: string;
312
+ providerMessageId: string | null;
313
+ status: "pending" | "sent" | "failed" | "cancelled";
314
+ toAddress: string;
315
+ fromAddress: string | null;
316
+ subject: string | null;
317
+ htmlBody: string | null;
318
+ textBody: string | null;
319
+ payloadData: Record<string, unknown> | null;
320
+ metadata: Record<string, unknown> | null;
321
+ errorMessage: string | null;
322
+ scheduledFor: string | null;
323
+ sentAt: string | null;
324
+ failedAt: string | null;
325
+ createdAt: string;
326
+ updatedAt: string;
327
+ }, Error, {
328
+ id: string;
329
+ templateId: string | null;
330
+ templateSlug: string | null;
331
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
332
+ targetId: string | null;
333
+ personId: string | null;
334
+ organizationId: string | null;
335
+ bookingId: string | null;
336
+ invoiceId: string | null;
337
+ paymentSessionId: string | null;
338
+ channel: "email" | "sms";
339
+ provider: string;
340
+ providerMessageId: string | null;
341
+ status: "pending" | "sent" | "failed" | "cancelled";
342
+ toAddress: string;
343
+ fromAddress: string | null;
344
+ subject: string | null;
345
+ htmlBody: string | null;
346
+ textBody: string | null;
347
+ payloadData: Record<string, unknown> | null;
348
+ metadata: Record<string, unknown> | null;
349
+ errorMessage: string | null;
350
+ scheduledFor: string | null;
351
+ sentAt: string | null;
352
+ failedAt: string | null;
353
+ createdAt: string;
354
+ updatedAt: string;
355
+ }, readonly ["notifications", "deliveries", string]>, "queryFn"> & {
356
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
357
+ id: string;
358
+ templateId: string | null;
359
+ templateSlug: string | null;
360
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
361
+ targetId: string | null;
362
+ personId: string | null;
363
+ organizationId: string | null;
364
+ bookingId: string | null;
365
+ invoiceId: string | null;
366
+ paymentSessionId: string | null;
367
+ channel: "email" | "sms";
368
+ provider: string;
369
+ providerMessageId: string | null;
370
+ status: "pending" | "sent" | "failed" | "cancelled";
371
+ toAddress: string;
372
+ fromAddress: string | null;
373
+ subject: string | null;
374
+ htmlBody: string | null;
375
+ textBody: string | null;
376
+ payloadData: Record<string, unknown> | null;
377
+ metadata: Record<string, unknown> | null;
378
+ errorMessage: string | null;
379
+ scheduledFor: string | null;
380
+ sentAt: string | null;
381
+ failedAt: string | null;
382
+ createdAt: string;
383
+ updatedAt: string;
384
+ }, readonly ["notifications", "deliveries", string], never> | undefined;
385
+ } & {
386
+ queryKey: readonly ["notifications", "deliveries", string] & {
387
+ [dataTagSymbol]: {
388
+ id: string;
389
+ templateId: string | null;
390
+ templateSlug: string | null;
391
+ targetType: "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "payment_session" | "person" | "organization" | "other";
392
+ targetId: string | null;
393
+ personId: string | null;
394
+ organizationId: string | null;
395
+ bookingId: string | null;
396
+ invoiceId: string | null;
397
+ paymentSessionId: string | null;
398
+ channel: "email" | "sms";
399
+ provider: string;
400
+ providerMessageId: string | null;
401
+ status: "pending" | "sent" | "failed" | "cancelled";
402
+ toAddress: string;
403
+ fromAddress: string | null;
404
+ subject: string | null;
405
+ htmlBody: string | null;
406
+ textBody: string | null;
407
+ payloadData: Record<string, unknown> | null;
408
+ metadata: Record<string, unknown> | null;
409
+ errorMessage: string | null;
410
+ scheduledFor: string | null;
411
+ sentAt: string | null;
412
+ failedAt: string | null;
413
+ createdAt: string;
414
+ updatedAt: string;
415
+ };
416
+ [dataTagErrorSymbol]: Error;
417
+ };
418
+ };
419
+ export declare function getNotificationReminderRulesQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationReminderRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
420
+ data: {
421
+ id: string;
422
+ slug: string;
423
+ name: string;
424
+ status: "draft" | "active" | "archived";
425
+ targetType: "booking_payment_schedule" | "invoice";
426
+ channel: "email" | "sms";
427
+ provider: string | null;
428
+ templateId: string | null;
429
+ templateSlug: string | null;
430
+ relativeDaysFromDueDate: number;
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: "booking_payment_schedule" | "invoice";
446
+ channel: "email" | "sms";
447
+ provider: string | null;
448
+ templateId: string | null;
449
+ templateSlug: string | null;
450
+ relativeDaysFromDueDate: number;
451
+ isSystem: boolean;
452
+ metadata: Record<string, unknown> | null;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ }[];
456
+ total: number;
457
+ limit: number;
458
+ offset: number;
459
+ }, readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters]>, "queryFn"> & {
460
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
461
+ data: {
462
+ id: string;
463
+ slug: string;
464
+ name: string;
465
+ status: "draft" | "active" | "archived";
466
+ targetType: "booking_payment_schedule" | "invoice";
467
+ channel: "email" | "sms";
468
+ provider: string | null;
469
+ templateId: string | null;
470
+ templateSlug: string | null;
471
+ relativeDaysFromDueDate: number;
472
+ isSystem: boolean;
473
+ metadata: Record<string, unknown> | null;
474
+ createdAt: string;
475
+ updatedAt: string;
476
+ }[];
477
+ total: number;
478
+ limit: number;
479
+ offset: number;
480
+ }, readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters], never> | undefined;
481
+ } & {
482
+ queryKey: readonly ["notifications", "reminder-rules", import("./query-keys.js").NotificationReminderRulesListFilters] & {
483
+ [dataTagSymbol]: {
484
+ data: {
485
+ id: string;
486
+ slug: string;
487
+ name: string;
488
+ status: "draft" | "active" | "archived";
489
+ targetType: "booking_payment_schedule" | "invoice";
490
+ channel: "email" | "sms";
491
+ provider: string | null;
492
+ templateId: string | null;
493
+ templateSlug: string | null;
494
+ relativeDaysFromDueDate: number;
495
+ isSystem: boolean;
496
+ metadata: Record<string, unknown> | null;
497
+ createdAt: string;
498
+ updatedAt: string;
499
+ }[];
500
+ total: number;
501
+ limit: number;
502
+ offset: number;
503
+ };
504
+ [dataTagErrorSymbol]: Error;
505
+ };
506
+ };
507
+ export declare function getNotificationReminderRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
508
+ id: string;
509
+ slug: string;
510
+ name: string;
511
+ status: "draft" | "active" | "archived";
512
+ targetType: "booking_payment_schedule" | "invoice";
513
+ channel: "email" | "sms";
514
+ provider: string | null;
515
+ templateId: string | null;
516
+ templateSlug: string | null;
517
+ relativeDaysFromDueDate: number;
518
+ isSystem: boolean;
519
+ metadata: Record<string, unknown> | null;
520
+ createdAt: string;
521
+ updatedAt: string;
522
+ }, Error, {
523
+ id: string;
524
+ slug: string;
525
+ name: string;
526
+ status: "draft" | "active" | "archived";
527
+ targetType: "booking_payment_schedule" | "invoice";
528
+ channel: "email" | "sms";
529
+ provider: string | null;
530
+ templateId: string | null;
531
+ templateSlug: string | null;
532
+ relativeDaysFromDueDate: number;
533
+ isSystem: boolean;
534
+ metadata: Record<string, unknown> | null;
535
+ createdAt: string;
536
+ updatedAt: string;
537
+ }, readonly ["notifications", "reminder-rules", string]>, "queryFn"> & {
538
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
539
+ id: string;
540
+ slug: string;
541
+ name: string;
542
+ status: "draft" | "active" | "archived";
543
+ targetType: "booking_payment_schedule" | "invoice";
544
+ channel: "email" | "sms";
545
+ provider: string | null;
546
+ templateId: string | null;
547
+ templateSlug: string | null;
548
+ relativeDaysFromDueDate: number;
549
+ isSystem: boolean;
550
+ metadata: Record<string, unknown> | null;
551
+ createdAt: string;
552
+ updatedAt: string;
553
+ }, readonly ["notifications", "reminder-rules", string], never> | undefined;
554
+ } & {
555
+ queryKey: readonly ["notifications", "reminder-rules", string] & {
556
+ [dataTagSymbol]: {
557
+ id: string;
558
+ slug: string;
559
+ name: string;
560
+ status: "draft" | "active" | "archived";
561
+ targetType: "booking_payment_schedule" | "invoice";
562
+ channel: "email" | "sms";
563
+ provider: string | null;
564
+ templateId: string | null;
565
+ templateSlug: string | null;
566
+ relativeDaysFromDueDate: number;
567
+ isSystem: boolean;
568
+ metadata: Record<string, unknown> | null;
569
+ createdAt: string;
570
+ updatedAt: string;
571
+ };
572
+ [dataTagErrorSymbol]: Error;
573
+ };
574
+ };
575
+ export declare function getNotificationReminderRunsQueryOptions(client: FetchWithValidationOptions, options?: UseNotificationReminderRunsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
576
+ data: {
577
+ id: string;
578
+ reminderRuleId: string;
579
+ targetType: "booking_payment_schedule" | "invoice";
580
+ targetId: string;
581
+ dedupeKey: string;
582
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
583
+ recipient: string | null;
584
+ scheduledFor: string;
585
+ processedAt: string;
586
+ errorMessage: string | null;
587
+ metadata: Record<string, unknown> | null;
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ links: {
591
+ bookingId: string | null;
592
+ bookingPaymentScheduleId: string | null;
593
+ invoiceId: string | null;
594
+ paymentSessionId: string | null;
595
+ personId: string | null;
596
+ organizationId: string | null;
597
+ notificationDeliveryId: string | null;
598
+ };
599
+ reminderRule: {
600
+ id: string;
601
+ slug: string;
602
+ name: string;
603
+ status: "draft" | "active" | "archived";
604
+ targetType: "booking_payment_schedule" | "invoice";
605
+ channel: "email" | "sms";
606
+ provider: string | null;
607
+ templateId: string | null;
608
+ templateSlug: string | null;
609
+ relativeDaysFromDueDate: number;
610
+ };
611
+ delivery: {
612
+ id: string;
613
+ status: "pending" | "sent" | "failed" | "cancelled";
614
+ channel: "email" | "sms";
615
+ provider: string;
616
+ toAddress: string;
617
+ subject: string | null;
618
+ sentAt: string | null;
619
+ failedAt: string | null;
620
+ errorMessage: string | null;
621
+ } | null;
622
+ }[];
623
+ total: number;
624
+ limit: number;
625
+ offset: number;
626
+ }, Error, {
627
+ data: {
628
+ id: string;
629
+ reminderRuleId: string;
630
+ targetType: "booking_payment_schedule" | "invoice";
631
+ targetId: string;
632
+ dedupeKey: string;
633
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
634
+ recipient: string | null;
635
+ scheduledFor: string;
636
+ processedAt: string;
637
+ errorMessage: string | null;
638
+ metadata: Record<string, unknown> | null;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ links: {
642
+ bookingId: string | null;
643
+ bookingPaymentScheduleId: string | null;
644
+ invoiceId: string | null;
645
+ paymentSessionId: string | null;
646
+ personId: string | null;
647
+ organizationId: string | null;
648
+ notificationDeliveryId: string | null;
649
+ };
650
+ reminderRule: {
651
+ id: string;
652
+ slug: string;
653
+ name: string;
654
+ status: "draft" | "active" | "archived";
655
+ targetType: "booking_payment_schedule" | "invoice";
656
+ channel: "email" | "sms";
657
+ provider: string | null;
658
+ templateId: string | null;
659
+ templateSlug: string | null;
660
+ relativeDaysFromDueDate: number;
661
+ };
662
+ delivery: {
663
+ id: string;
664
+ status: "pending" | "sent" | "failed" | "cancelled";
665
+ channel: "email" | "sms";
666
+ provider: string;
667
+ toAddress: string;
668
+ subject: string | null;
669
+ sentAt: string | null;
670
+ failedAt: string | null;
671
+ errorMessage: string | null;
672
+ } | null;
673
+ }[];
674
+ total: number;
675
+ limit: number;
676
+ offset: number;
677
+ }, readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters]>, "queryFn"> & {
678
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
679
+ data: {
680
+ id: string;
681
+ reminderRuleId: string;
682
+ targetType: "booking_payment_schedule" | "invoice";
683
+ targetId: string;
684
+ dedupeKey: string;
685
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
686
+ recipient: string | null;
687
+ scheduledFor: string;
688
+ processedAt: string;
689
+ errorMessage: string | null;
690
+ metadata: Record<string, unknown> | null;
691
+ createdAt: string;
692
+ updatedAt: string;
693
+ links: {
694
+ bookingId: string | null;
695
+ bookingPaymentScheduleId: string | null;
696
+ invoiceId: string | null;
697
+ paymentSessionId: string | null;
698
+ personId: string | null;
699
+ organizationId: string | null;
700
+ notificationDeliveryId: string | null;
701
+ };
702
+ reminderRule: {
703
+ id: string;
704
+ slug: string;
705
+ name: string;
706
+ status: "draft" | "active" | "archived";
707
+ targetType: "booking_payment_schedule" | "invoice";
708
+ channel: "email" | "sms";
709
+ provider: string | null;
710
+ templateId: string | null;
711
+ templateSlug: string | null;
712
+ relativeDaysFromDueDate: number;
713
+ };
714
+ delivery: {
715
+ id: string;
716
+ status: "pending" | "sent" | "failed" | "cancelled";
717
+ channel: "email" | "sms";
718
+ provider: string;
719
+ toAddress: string;
720
+ subject: string | null;
721
+ sentAt: string | null;
722
+ failedAt: string | null;
723
+ errorMessage: string | null;
724
+ } | null;
725
+ }[];
726
+ total: number;
727
+ limit: number;
728
+ offset: number;
729
+ }, readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters], never> | undefined;
730
+ } & {
731
+ queryKey: readonly ["notifications", "reminder-runs", import("./query-keys.js").NotificationReminderRunsListFilters] & {
732
+ [dataTagSymbol]: {
733
+ data: {
734
+ id: string;
735
+ reminderRuleId: string;
736
+ targetType: "booking_payment_schedule" | "invoice";
737
+ targetId: string;
738
+ dedupeKey: string;
739
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
740
+ recipient: string | null;
741
+ scheduledFor: string;
742
+ processedAt: string;
743
+ errorMessage: string | null;
744
+ metadata: Record<string, unknown> | null;
745
+ createdAt: string;
746
+ updatedAt: string;
747
+ links: {
748
+ bookingId: string | null;
749
+ bookingPaymentScheduleId: string | null;
750
+ invoiceId: string | null;
751
+ paymentSessionId: string | null;
752
+ personId: string | null;
753
+ organizationId: string | null;
754
+ notificationDeliveryId: string | null;
755
+ };
756
+ reminderRule: {
757
+ id: string;
758
+ slug: string;
759
+ name: string;
760
+ status: "draft" | "active" | "archived";
761
+ targetType: "booking_payment_schedule" | "invoice";
762
+ channel: "email" | "sms";
763
+ provider: string | null;
764
+ templateId: string | null;
765
+ templateSlug: string | null;
766
+ relativeDaysFromDueDate: number;
767
+ };
768
+ delivery: {
769
+ id: string;
770
+ status: "pending" | "sent" | "failed" | "cancelled";
771
+ channel: "email" | "sms";
772
+ provider: string;
773
+ toAddress: string;
774
+ subject: string | null;
775
+ sentAt: string | null;
776
+ failedAt: string | null;
777
+ errorMessage: string | null;
778
+ } | null;
779
+ }[];
780
+ total: number;
781
+ limit: number;
782
+ offset: number;
783
+ };
784
+ [dataTagErrorSymbol]: Error;
785
+ };
786
+ };
787
+ export declare function getNotificationReminderRunQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
788
+ id: string;
789
+ reminderRuleId: string;
790
+ targetType: "booking_payment_schedule" | "invoice";
791
+ targetId: string;
792
+ dedupeKey: string;
793
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
794
+ recipient: string | null;
795
+ scheduledFor: string;
796
+ processedAt: string;
797
+ errorMessage: string | null;
798
+ metadata: Record<string, unknown> | null;
799
+ createdAt: string;
800
+ updatedAt: string;
801
+ links: {
802
+ bookingId: string | null;
803
+ bookingPaymentScheduleId: string | null;
804
+ invoiceId: string | null;
805
+ paymentSessionId: string | null;
806
+ personId: string | null;
807
+ organizationId: string | null;
808
+ notificationDeliveryId: string | null;
809
+ };
810
+ reminderRule: {
811
+ id: string;
812
+ slug: string;
813
+ name: string;
814
+ status: "draft" | "active" | "archived";
815
+ targetType: "booking_payment_schedule" | "invoice";
816
+ channel: "email" | "sms";
817
+ provider: string | null;
818
+ templateId: string | null;
819
+ templateSlug: string | null;
820
+ relativeDaysFromDueDate: number;
821
+ };
822
+ delivery: {
823
+ id: string;
824
+ status: "pending" | "sent" | "failed" | "cancelled";
825
+ channel: "email" | "sms";
826
+ provider: string;
827
+ toAddress: string;
828
+ subject: string | null;
829
+ sentAt: string | null;
830
+ failedAt: string | null;
831
+ errorMessage: string | null;
832
+ } | null;
833
+ }, Error, {
834
+ id: string;
835
+ reminderRuleId: string;
836
+ targetType: "booking_payment_schedule" | "invoice";
837
+ targetId: string;
838
+ dedupeKey: string;
839
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
840
+ recipient: string | null;
841
+ scheduledFor: string;
842
+ processedAt: string;
843
+ errorMessage: string | null;
844
+ metadata: Record<string, unknown> | null;
845
+ createdAt: string;
846
+ updatedAt: string;
847
+ links: {
848
+ bookingId: string | null;
849
+ bookingPaymentScheduleId: string | null;
850
+ invoiceId: string | null;
851
+ paymentSessionId: string | null;
852
+ personId: string | null;
853
+ organizationId: string | null;
854
+ notificationDeliveryId: string | null;
855
+ };
856
+ reminderRule: {
857
+ id: string;
858
+ slug: string;
859
+ name: string;
860
+ status: "draft" | "active" | "archived";
861
+ targetType: "booking_payment_schedule" | "invoice";
862
+ channel: "email" | "sms";
863
+ provider: string | null;
864
+ templateId: string | null;
865
+ templateSlug: string | null;
866
+ relativeDaysFromDueDate: number;
867
+ };
868
+ delivery: {
869
+ id: string;
870
+ status: "pending" | "sent" | "failed" | "cancelled";
871
+ channel: "email" | "sms";
872
+ provider: string;
873
+ toAddress: string;
874
+ subject: string | null;
875
+ sentAt: string | null;
876
+ failedAt: string | null;
877
+ errorMessage: string | null;
878
+ } | null;
879
+ }, readonly ["notifications", "reminder-runs", string]>, "queryFn"> & {
880
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
881
+ id: string;
882
+ reminderRuleId: string;
883
+ targetType: "booking_payment_schedule" | "invoice";
884
+ targetId: string;
885
+ dedupeKey: string;
886
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
887
+ recipient: string | null;
888
+ scheduledFor: string;
889
+ processedAt: string;
890
+ errorMessage: string | null;
891
+ metadata: Record<string, unknown> | null;
892
+ createdAt: string;
893
+ updatedAt: string;
894
+ links: {
895
+ bookingId: string | null;
896
+ bookingPaymentScheduleId: string | null;
897
+ invoiceId: string | null;
898
+ paymentSessionId: string | null;
899
+ personId: string | null;
900
+ organizationId: string | null;
901
+ notificationDeliveryId: string | null;
902
+ };
903
+ reminderRule: {
904
+ id: string;
905
+ slug: string;
906
+ name: string;
907
+ status: "draft" | "active" | "archived";
908
+ targetType: "booking_payment_schedule" | "invoice";
909
+ channel: "email" | "sms";
910
+ provider: string | null;
911
+ templateId: string | null;
912
+ templateSlug: string | null;
913
+ relativeDaysFromDueDate: number;
914
+ };
915
+ delivery: {
916
+ id: string;
917
+ status: "pending" | "sent" | "failed" | "cancelled";
918
+ channel: "email" | "sms";
919
+ provider: string;
920
+ toAddress: string;
921
+ subject: string | null;
922
+ sentAt: string | null;
923
+ failedAt: string | null;
924
+ errorMessage: string | null;
925
+ } | null;
926
+ }, readonly ["notifications", "reminder-runs", string], never> | undefined;
927
+ } & {
928
+ queryKey: readonly ["notifications", "reminder-runs", string] & {
929
+ [dataTagSymbol]: {
930
+ id: string;
931
+ reminderRuleId: string;
932
+ targetType: "booking_payment_schedule" | "invoice";
933
+ targetId: string;
934
+ dedupeKey: string;
935
+ status: "sent" | "failed" | "queued" | "processing" | "skipped";
936
+ recipient: string | null;
937
+ scheduledFor: string;
938
+ processedAt: string;
939
+ errorMessage: string | null;
940
+ metadata: Record<string, unknown> | null;
941
+ createdAt: string;
942
+ updatedAt: string;
943
+ links: {
944
+ bookingId: string | null;
945
+ bookingPaymentScheduleId: string | null;
946
+ invoiceId: string | null;
947
+ paymentSessionId: string | null;
948
+ personId: string | null;
949
+ organizationId: string | null;
950
+ notificationDeliveryId: string | null;
951
+ };
952
+ reminderRule: {
953
+ id: string;
954
+ slug: string;
955
+ name: string;
956
+ status: "draft" | "active" | "archived";
957
+ targetType: "booking_payment_schedule" | "invoice";
958
+ channel: "email" | "sms";
959
+ provider: string | null;
960
+ templateId: string | null;
961
+ templateSlug: string | null;
962
+ relativeDaysFromDueDate: number;
963
+ };
964
+ delivery: {
965
+ id: string;
966
+ status: "pending" | "sent" | "failed" | "cancelled";
967
+ channel: "email" | "sms";
968
+ provider: string;
969
+ toAddress: string;
970
+ subject: string | null;
971
+ sentAt: string | null;
972
+ failedAt: string | null;
973
+ errorMessage: string | null;
974
+ } | null;
975
+ };
976
+ [dataTagErrorSymbol]: Error;
977
+ };
978
+ };
979
+ //# sourceMappingURL=query-options.d.ts.map