@voyantjs/distribution-react 0.1.0

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