@voyantjs/resources-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 (74) hide show
  1. package/README.md +36 -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 +44 -0
  6. package/dist/constants.d.ts.map +1 -0
  7. package/dist/constants.js +20 -0
  8. package/dist/hooks/index.d.ts +31 -0
  9. package/dist/hooks/index.d.ts.map +1 -0
  10. package/dist/hooks/index.js +15 -0
  11. package/dist/hooks/use-allocation.d.ts +16 -0
  12. package/dist/hooks/use-allocation.d.ts.map +1 -0
  13. package/dist/hooks/use-allocation.js +12 -0
  14. package/dist/hooks/use-allocations.d.ts +20 -0
  15. package/dist/hooks/use-allocations.d.ts.map +1 -0
  16. package/dist/hooks/use-allocations.js +12 -0
  17. package/dist/hooks/use-assignment.d.ts +17 -0
  18. package/dist/hooks/use-assignment.d.ts.map +1 -0
  19. package/dist/hooks/use-assignment.js +12 -0
  20. package/dist/hooks/use-assignments.d.ts +21 -0
  21. package/dist/hooks/use-assignments.d.ts.map +1 -0
  22. package/dist/hooks/use-assignments.js +12 -0
  23. package/dist/hooks/use-bookings.d.ts +14 -0
  24. package/dist/hooks/use-bookings.d.ts.map +1 -0
  25. package/dist/hooks/use-bookings.js +12 -0
  26. package/dist/hooks/use-closeouts.d.ts +19 -0
  27. package/dist/hooks/use-closeouts.d.ts.map +1 -0
  28. package/dist/hooks/use-closeouts.js +12 -0
  29. package/dist/hooks/use-pool.d.ts +15 -0
  30. package/dist/hooks/use-pool.d.ts.map +1 -0
  31. package/dist/hooks/use-pool.js +12 -0
  32. package/dist/hooks/use-pools.d.ts +19 -0
  33. package/dist/hooks/use-pools.d.ts.map +1 -0
  34. package/dist/hooks/use-pools.js +12 -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 +12 -0
  38. package/dist/hooks/use-resource.d.ts +16 -0
  39. package/dist/hooks/use-resource.d.ts.map +1 -0
  40. package/dist/hooks/use-resource.js +12 -0
  41. package/dist/hooks/use-resources.d.ts +20 -0
  42. package/dist/hooks/use-resources.d.ts.map +1 -0
  43. package/dist/hooks/use-resources.js +12 -0
  44. package/dist/hooks/use-rules.d.ts +15 -0
  45. package/dist/hooks/use-rules.d.ts.map +1 -0
  46. package/dist/hooks/use-rules.js +12 -0
  47. package/dist/hooks/use-slots.d.ts +16 -0
  48. package/dist/hooks/use-slots.d.ts.map +1 -0
  49. package/dist/hooks/use-slots.js +12 -0
  50. package/dist/hooks/use-start-times.d.ts +16 -0
  51. package/dist/hooks/use-start-times.d.ts.map +1 -0
  52. package/dist/hooks/use-start-times.js +12 -0
  53. package/dist/hooks/use-suppliers.d.ts +14 -0
  54. package/dist/hooks/use-suppliers.d.ts.map +1 -0
  55. package/dist/hooks/use-suppliers.js +12 -0
  56. package/dist/index.d.ts +9 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +8 -0
  59. package/dist/provider.d.ts +2 -0
  60. package/dist/provider.d.ts.map +1 -0
  61. package/dist/provider.js +1 -0
  62. package/dist/query-keys.d.ts +73 -0
  63. package/dist/query-keys.d.ts.map +1 -0
  64. package/dist/query-keys.js +29 -0
  65. package/dist/query-options.d.ts +801 -0
  66. package/dist/query-options.d.ts.map +1 -0
  67. package/dist/query-options.js +237 -0
  68. package/dist/schemas.d.ts +452 -0
  69. package/dist/schemas.d.ts.map +1 -0
  70. package/dist/schemas.js +126 -0
  71. package/dist/utils.d.ts +14 -0
  72. package/dist/utils.d.ts.map +1 -0
  73. package/dist/utils.js +33 -0
  74. package/package.json +79 -0
@@ -0,0 +1,801 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseAllocationOptions } from "./hooks/use-allocation.js";
3
+ import type { UseAllocationsOptions } from "./hooks/use-allocations.js";
4
+ import type { UseAssignmentOptions } from "./hooks/use-assignment.js";
5
+ import type { UseAssignmentsOptions } from "./hooks/use-assignments.js";
6
+ import type { UseBookingsOptions } from "./hooks/use-bookings.js";
7
+ import type { UseCloseoutsOptions } from "./hooks/use-closeouts.js";
8
+ import type { UsePoolOptions } from "./hooks/use-pool.js";
9
+ import type { UsePoolsOptions } from "./hooks/use-pools.js";
10
+ import type { UseProductsOptions } from "./hooks/use-products.js";
11
+ import type { UseResourceOptions } from "./hooks/use-resource.js";
12
+ import type { UseResourcesOptions } from "./hooks/use-resources.js";
13
+ import type { UseRulesOptions } from "./hooks/use-rules.js";
14
+ import type { UseSlotsOptions } from "./hooks/use-slots.js";
15
+ import type { UseStartTimesOptions } from "./hooks/use-start-times.js";
16
+ import type { UseSuppliersOptions } from "./hooks/use-suppliers.js";
17
+ export declare function getSuppliersQueryOptions(client: FetchWithValidationOptions, options?: UseSuppliersOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18
+ data: {
19
+ id: string;
20
+ name: string;
21
+ }[];
22
+ total: number;
23
+ limit: number;
24
+ offset: number;
25
+ }, Error, {
26
+ data: {
27
+ id: string;
28
+ name: string;
29
+ }[];
30
+ total: number;
31
+ limit: number;
32
+ offset: number;
33
+ }, readonly ["voyant", "resources", "suppliers", "list", import("./query-keys.js").PaginationFilters]>, "queryFn"> & {
34
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
35
+ data: {
36
+ id: string;
37
+ name: string;
38
+ }[];
39
+ total: number;
40
+ limit: number;
41
+ offset: number;
42
+ }, readonly ["voyant", "resources", "suppliers", "list", import("./query-keys.js").PaginationFilters], never> | undefined;
43
+ } & {
44
+ queryKey: readonly ["voyant", "resources", "suppliers", "list", import("./query-keys.js").PaginationFilters] & {
45
+ [dataTagSymbol]: {
46
+ data: {
47
+ id: string;
48
+ name: string;
49
+ }[];
50
+ total: number;
51
+ limit: number;
52
+ offset: number;
53
+ };
54
+ [dataTagErrorSymbol]: Error;
55
+ };
56
+ };
57
+ export declare function getProductsQueryOptions(client: FetchWithValidationOptions, options?: UseProductsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
58
+ data: {
59
+ id: string;
60
+ name: string;
61
+ }[];
62
+ total: number;
63
+ limit: number;
64
+ offset: number;
65
+ }, Error, {
66
+ data: {
67
+ id: string;
68
+ name: string;
69
+ }[];
70
+ total: number;
71
+ limit: number;
72
+ offset: number;
73
+ }, readonly ["voyant", "resources", "products", "list", import("./query-keys.js").PaginationFilters]>, "queryFn"> & {
74
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
75
+ data: {
76
+ id: string;
77
+ name: string;
78
+ }[];
79
+ total: number;
80
+ limit: number;
81
+ offset: number;
82
+ }, readonly ["voyant", "resources", "products", "list", import("./query-keys.js").PaginationFilters], never> | undefined;
83
+ } & {
84
+ queryKey: readonly ["voyant", "resources", "products", "list", import("./query-keys.js").PaginationFilters] & {
85
+ [dataTagSymbol]: {
86
+ data: {
87
+ id: string;
88
+ name: string;
89
+ }[];
90
+ total: number;
91
+ limit: number;
92
+ offset: number;
93
+ };
94
+ [dataTagErrorSymbol]: Error;
95
+ };
96
+ };
97
+ export declare function getBookingsQueryOptions(client: FetchWithValidationOptions, options?: UseBookingsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
98
+ data: {
99
+ id: string;
100
+ bookingNumber: string;
101
+ }[];
102
+ total: number;
103
+ limit: number;
104
+ offset: number;
105
+ }, Error, {
106
+ data: {
107
+ id: string;
108
+ bookingNumber: string;
109
+ }[];
110
+ total: number;
111
+ limit: number;
112
+ offset: number;
113
+ }, readonly ["voyant", "resources", "bookings", "list", import("./query-keys.js").PaginationFilters]>, "queryFn"> & {
114
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
115
+ data: {
116
+ id: string;
117
+ bookingNumber: string;
118
+ }[];
119
+ total: number;
120
+ limit: number;
121
+ offset: number;
122
+ }, readonly ["voyant", "resources", "bookings", "list", import("./query-keys.js").PaginationFilters], never> | undefined;
123
+ } & {
124
+ queryKey: readonly ["voyant", "resources", "bookings", "list", import("./query-keys.js").PaginationFilters] & {
125
+ [dataTagSymbol]: {
126
+ data: {
127
+ id: string;
128
+ bookingNumber: string;
129
+ }[];
130
+ total: number;
131
+ limit: number;
132
+ offset: number;
133
+ };
134
+ [dataTagErrorSymbol]: Error;
135
+ };
136
+ };
137
+ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions, options?: UseSlotsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
138
+ data: {
139
+ id: string;
140
+ productId: string;
141
+ dateLocal: string;
142
+ startsAt: string;
143
+ }[];
144
+ total: number;
145
+ limit: number;
146
+ offset: number;
147
+ }, Error, {
148
+ data: {
149
+ id: string;
150
+ productId: string;
151
+ dateLocal: string;
152
+ startsAt: string;
153
+ }[];
154
+ total: number;
155
+ limit: number;
156
+ offset: number;
157
+ }, readonly ["voyant", "resources", "slots", "list", import("./query-keys.js").SlotsListFilters]>, "queryFn"> & {
158
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
159
+ data: {
160
+ id: string;
161
+ productId: string;
162
+ dateLocal: string;
163
+ startsAt: string;
164
+ }[];
165
+ total: number;
166
+ limit: number;
167
+ offset: number;
168
+ }, readonly ["voyant", "resources", "slots", "list", import("./query-keys.js").SlotsListFilters], never> | undefined;
169
+ } & {
170
+ queryKey: readonly ["voyant", "resources", "slots", "list", import("./query-keys.js").SlotsListFilters] & {
171
+ [dataTagSymbol]: {
172
+ data: {
173
+ id: string;
174
+ productId: string;
175
+ dateLocal: string;
176
+ startsAt: string;
177
+ }[];
178
+ total: number;
179
+ limit: number;
180
+ offset: number;
181
+ };
182
+ [dataTagErrorSymbol]: Error;
183
+ };
184
+ };
185
+ export declare function getRulesQueryOptions(client: FetchWithValidationOptions, options?: UseRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
186
+ data: {
187
+ id: string;
188
+ productId: string;
189
+ recurrenceRule: string;
190
+ }[];
191
+ total: number;
192
+ limit: number;
193
+ offset: number;
194
+ }, Error, {
195
+ data: {
196
+ id: string;
197
+ productId: string;
198
+ recurrenceRule: string;
199
+ }[];
200
+ total: number;
201
+ limit: number;
202
+ offset: number;
203
+ }, readonly ["voyant", "resources", "rules", "list", import("./query-keys.js").RulesListFilters]>, "queryFn"> & {
204
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
205
+ data: {
206
+ id: string;
207
+ productId: string;
208
+ recurrenceRule: string;
209
+ }[];
210
+ total: number;
211
+ limit: number;
212
+ offset: number;
213
+ }, readonly ["voyant", "resources", "rules", "list", import("./query-keys.js").RulesListFilters], never> | undefined;
214
+ } & {
215
+ queryKey: readonly ["voyant", "resources", "rules", "list", import("./query-keys.js").RulesListFilters] & {
216
+ [dataTagSymbol]: {
217
+ data: {
218
+ id: string;
219
+ productId: string;
220
+ recurrenceRule: string;
221
+ }[];
222
+ total: number;
223
+ limit: number;
224
+ offset: number;
225
+ };
226
+ [dataTagErrorSymbol]: Error;
227
+ };
228
+ };
229
+ export declare function getStartTimesQueryOptions(client: FetchWithValidationOptions, options?: UseStartTimesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
230
+ data: {
231
+ id: string;
232
+ productId: string;
233
+ label: string | null;
234
+ startTimeLocal: string;
235
+ }[];
236
+ total: number;
237
+ limit: number;
238
+ offset: number;
239
+ }, Error, {
240
+ data: {
241
+ id: string;
242
+ productId: string;
243
+ label: string | null;
244
+ startTimeLocal: string;
245
+ }[];
246
+ total: number;
247
+ limit: number;
248
+ offset: number;
249
+ }, readonly ["voyant", "resources", "start-times", "list", import("./query-keys.js").StartTimesListFilters]>, "queryFn"> & {
250
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
251
+ data: {
252
+ id: string;
253
+ productId: string;
254
+ label: string | null;
255
+ startTimeLocal: string;
256
+ }[];
257
+ total: number;
258
+ limit: number;
259
+ offset: number;
260
+ }, readonly ["voyant", "resources", "start-times", "list", import("./query-keys.js").StartTimesListFilters], never> | undefined;
261
+ } & {
262
+ queryKey: readonly ["voyant", "resources", "start-times", "list", import("./query-keys.js").StartTimesListFilters] & {
263
+ [dataTagSymbol]: {
264
+ data: {
265
+ id: string;
266
+ productId: string;
267
+ label: string | null;
268
+ startTimeLocal: string;
269
+ }[];
270
+ total: number;
271
+ limit: number;
272
+ offset: number;
273
+ };
274
+ [dataTagErrorSymbol]: Error;
275
+ };
276
+ };
277
+ export declare function getResourcesQueryOptions(client: FetchWithValidationOptions, options?: UseResourcesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
278
+ data: {
279
+ id: string;
280
+ supplierId: string | null;
281
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
282
+ name: string;
283
+ code: string | null;
284
+ capacity: number | null;
285
+ active: boolean;
286
+ notes: string | null;
287
+ }[];
288
+ total: number;
289
+ limit: number;
290
+ offset: number;
291
+ }, Error, {
292
+ data: {
293
+ id: string;
294
+ supplierId: string | null;
295
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
296
+ name: string;
297
+ code: string | null;
298
+ capacity: number | null;
299
+ active: boolean;
300
+ notes: string | null;
301
+ }[];
302
+ total: number;
303
+ limit: number;
304
+ offset: number;
305
+ }, readonly ["voyant", "resources", "resources", "list", import("./query-keys.js").ResourcesListFilters]>, "queryFn"> & {
306
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
307
+ data: {
308
+ id: string;
309
+ supplierId: string | null;
310
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
311
+ name: string;
312
+ code: string | null;
313
+ capacity: number | null;
314
+ active: boolean;
315
+ notes: string | null;
316
+ }[];
317
+ total: number;
318
+ limit: number;
319
+ offset: number;
320
+ }, readonly ["voyant", "resources", "resources", "list", import("./query-keys.js").ResourcesListFilters], never> | undefined;
321
+ } & {
322
+ queryKey: readonly ["voyant", "resources", "resources", "list", import("./query-keys.js").ResourcesListFilters] & {
323
+ [dataTagSymbol]: {
324
+ data: {
325
+ id: string;
326
+ supplierId: string | null;
327
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
328
+ name: string;
329
+ code: string | null;
330
+ capacity: number | null;
331
+ active: boolean;
332
+ notes: string | null;
333
+ }[];
334
+ total: number;
335
+ limit: number;
336
+ offset: number;
337
+ };
338
+ [dataTagErrorSymbol]: Error;
339
+ };
340
+ };
341
+ export declare function getResourceQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseResourceOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
342
+ id: string;
343
+ supplierId: string | null;
344
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
345
+ name: string;
346
+ code: string | null;
347
+ capacity: number | null;
348
+ active: boolean;
349
+ notes: string | null;
350
+ createdAt: string;
351
+ updatedAt: string;
352
+ }, Error, {
353
+ id: string;
354
+ supplierId: string | null;
355
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
356
+ name: string;
357
+ code: string | null;
358
+ capacity: number | null;
359
+ active: boolean;
360
+ notes: string | null;
361
+ createdAt: string;
362
+ updatedAt: string;
363
+ }, readonly ["voyant", "resources", "resources", "detail", string]>, "queryFn"> & {
364
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
365
+ id: string;
366
+ supplierId: string | null;
367
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
368
+ name: string;
369
+ code: string | null;
370
+ capacity: number | null;
371
+ active: boolean;
372
+ notes: string | null;
373
+ createdAt: string;
374
+ updatedAt: string;
375
+ }, readonly ["voyant", "resources", "resources", "detail", string], never> | undefined;
376
+ } & {
377
+ queryKey: readonly ["voyant", "resources", "resources", "detail", string] & {
378
+ [dataTagSymbol]: {
379
+ id: string;
380
+ supplierId: string | null;
381
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
382
+ name: string;
383
+ code: string | null;
384
+ capacity: number | null;
385
+ active: boolean;
386
+ notes: string | null;
387
+ createdAt: string;
388
+ updatedAt: string;
389
+ };
390
+ [dataTagErrorSymbol]: Error;
391
+ };
392
+ };
393
+ export declare function getPoolsQueryOptions(client: FetchWithValidationOptions, options?: UsePoolsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
394
+ data: {
395
+ id: string;
396
+ productId: string | null;
397
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
398
+ name: string;
399
+ sharedCapacity: number | null;
400
+ active: boolean;
401
+ notes: string | null;
402
+ }[];
403
+ total: number;
404
+ limit: number;
405
+ offset: number;
406
+ }, Error, {
407
+ data: {
408
+ id: string;
409
+ productId: string | null;
410
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
411
+ name: string;
412
+ sharedCapacity: number | null;
413
+ active: boolean;
414
+ notes: string | null;
415
+ }[];
416
+ total: number;
417
+ limit: number;
418
+ offset: number;
419
+ }, readonly ["voyant", "resources", "pools", "list", import("./query-keys.js").ResourcePoolsListFilters]>, "queryFn"> & {
420
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
421
+ data: {
422
+ id: string;
423
+ productId: string | null;
424
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
425
+ name: string;
426
+ sharedCapacity: number | null;
427
+ active: boolean;
428
+ notes: string | null;
429
+ }[];
430
+ total: number;
431
+ limit: number;
432
+ offset: number;
433
+ }, readonly ["voyant", "resources", "pools", "list", import("./query-keys.js").ResourcePoolsListFilters], never> | undefined;
434
+ } & {
435
+ queryKey: readonly ["voyant", "resources", "pools", "list", import("./query-keys.js").ResourcePoolsListFilters] & {
436
+ [dataTagSymbol]: {
437
+ data: {
438
+ id: string;
439
+ productId: string | null;
440
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
441
+ name: string;
442
+ sharedCapacity: number | null;
443
+ active: boolean;
444
+ notes: string | null;
445
+ }[];
446
+ total: number;
447
+ limit: number;
448
+ offset: number;
449
+ };
450
+ [dataTagErrorSymbol]: Error;
451
+ };
452
+ };
453
+ export declare function getPoolQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UsePoolOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
454
+ id: string;
455
+ productId: string | null;
456
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
457
+ name: string;
458
+ sharedCapacity: number | null;
459
+ active: boolean;
460
+ notes: string | null;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ }, Error, {
464
+ id: string;
465
+ productId: string | null;
466
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
467
+ name: string;
468
+ sharedCapacity: number | null;
469
+ active: boolean;
470
+ notes: string | null;
471
+ createdAt: string;
472
+ updatedAt: string;
473
+ }, readonly ["voyant", "resources", "pools", "detail", string]>, "queryFn"> & {
474
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
475
+ id: string;
476
+ productId: string | null;
477
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
478
+ name: string;
479
+ sharedCapacity: number | null;
480
+ active: boolean;
481
+ notes: string | null;
482
+ createdAt: string;
483
+ updatedAt: string;
484
+ }, readonly ["voyant", "resources", "pools", "detail", string], never> | undefined;
485
+ } & {
486
+ queryKey: readonly ["voyant", "resources", "pools", "detail", string] & {
487
+ [dataTagSymbol]: {
488
+ id: string;
489
+ productId: string | null;
490
+ kind: "guide" | "vehicle" | "room" | "boat" | "equipment" | "other";
491
+ name: string;
492
+ sharedCapacity: number | null;
493
+ active: boolean;
494
+ notes: string | null;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ };
498
+ [dataTagErrorSymbol]: Error;
499
+ };
500
+ };
501
+ export declare function getAllocationsQueryOptions(client: FetchWithValidationOptions, options?: UseAllocationsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
502
+ data: {
503
+ id: string;
504
+ poolId: string;
505
+ productId: string;
506
+ availabilityRuleId: string | null;
507
+ startTimeId: string | null;
508
+ quantityRequired: number;
509
+ allocationMode: "shared" | "exclusive";
510
+ priority: number;
511
+ }[];
512
+ total: number;
513
+ limit: number;
514
+ offset: number;
515
+ }, Error, {
516
+ data: {
517
+ id: string;
518
+ poolId: string;
519
+ productId: string;
520
+ availabilityRuleId: string | null;
521
+ startTimeId: string | null;
522
+ quantityRequired: number;
523
+ allocationMode: "shared" | "exclusive";
524
+ priority: number;
525
+ }[];
526
+ total: number;
527
+ limit: number;
528
+ offset: number;
529
+ }, readonly ["voyant", "resources", "allocations", "list", import("./query-keys.js").ResourceAllocationsListFilters]>, "queryFn"> & {
530
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
531
+ data: {
532
+ id: string;
533
+ poolId: string;
534
+ productId: string;
535
+ availabilityRuleId: string | null;
536
+ startTimeId: string | null;
537
+ quantityRequired: number;
538
+ allocationMode: "shared" | "exclusive";
539
+ priority: number;
540
+ }[];
541
+ total: number;
542
+ limit: number;
543
+ offset: number;
544
+ }, readonly ["voyant", "resources", "allocations", "list", import("./query-keys.js").ResourceAllocationsListFilters], never> | undefined;
545
+ } & {
546
+ queryKey: readonly ["voyant", "resources", "allocations", "list", import("./query-keys.js").ResourceAllocationsListFilters] & {
547
+ [dataTagSymbol]: {
548
+ data: {
549
+ id: string;
550
+ poolId: string;
551
+ productId: string;
552
+ availabilityRuleId: string | null;
553
+ startTimeId: string | null;
554
+ quantityRequired: number;
555
+ allocationMode: "shared" | "exclusive";
556
+ priority: number;
557
+ }[];
558
+ total: number;
559
+ limit: number;
560
+ offset: number;
561
+ };
562
+ [dataTagErrorSymbol]: Error;
563
+ };
564
+ };
565
+ export declare function getAllocationQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseAllocationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
566
+ id: string;
567
+ poolId: string;
568
+ productId: string;
569
+ availabilityRuleId: string | null;
570
+ startTimeId: string | null;
571
+ quantityRequired: number;
572
+ allocationMode: "shared" | "exclusive";
573
+ priority: number;
574
+ createdAt: string;
575
+ updatedAt: string;
576
+ }, Error, {
577
+ id: string;
578
+ poolId: string;
579
+ productId: string;
580
+ availabilityRuleId: string | null;
581
+ startTimeId: string | null;
582
+ quantityRequired: number;
583
+ allocationMode: "shared" | "exclusive";
584
+ priority: number;
585
+ createdAt: string;
586
+ updatedAt: string;
587
+ }, readonly ["voyant", "resources", "allocations", "detail", string]>, "queryFn"> & {
588
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
589
+ id: string;
590
+ poolId: string;
591
+ productId: string;
592
+ availabilityRuleId: string | null;
593
+ startTimeId: string | null;
594
+ quantityRequired: number;
595
+ allocationMode: "shared" | "exclusive";
596
+ priority: number;
597
+ createdAt: string;
598
+ updatedAt: string;
599
+ }, readonly ["voyant", "resources", "allocations", "detail", string], never> | undefined;
600
+ } & {
601
+ queryKey: readonly ["voyant", "resources", "allocations", "detail", string] & {
602
+ [dataTagSymbol]: {
603
+ id: string;
604
+ poolId: string;
605
+ productId: string;
606
+ availabilityRuleId: string | null;
607
+ startTimeId: string | null;
608
+ quantityRequired: number;
609
+ allocationMode: "shared" | "exclusive";
610
+ priority: number;
611
+ createdAt: string;
612
+ updatedAt: string;
613
+ };
614
+ [dataTagErrorSymbol]: Error;
615
+ };
616
+ };
617
+ export declare function getAssignmentsQueryOptions(client: FetchWithValidationOptions, options?: UseAssignmentsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
618
+ data: {
619
+ id: string;
620
+ slotId: string;
621
+ poolId: string | null;
622
+ resourceId: string | null;
623
+ bookingId: string | null;
624
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
625
+ assignedBy: string | null;
626
+ releasedAt: string | null;
627
+ notes: string | null;
628
+ }[];
629
+ total: number;
630
+ limit: number;
631
+ offset: number;
632
+ }, Error, {
633
+ data: {
634
+ id: string;
635
+ slotId: string;
636
+ poolId: string | null;
637
+ resourceId: string | null;
638
+ bookingId: string | null;
639
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
640
+ assignedBy: string | null;
641
+ releasedAt: string | null;
642
+ notes: string | null;
643
+ }[];
644
+ total: number;
645
+ limit: number;
646
+ offset: number;
647
+ }, readonly ["voyant", "resources", "assignments", "list", import("./query-keys.js").ResourceAssignmentsListFilters]>, "queryFn"> & {
648
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
649
+ data: {
650
+ id: string;
651
+ slotId: string;
652
+ poolId: string | null;
653
+ resourceId: string | null;
654
+ bookingId: string | null;
655
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
656
+ assignedBy: string | null;
657
+ releasedAt: string | null;
658
+ notes: string | null;
659
+ }[];
660
+ total: number;
661
+ limit: number;
662
+ offset: number;
663
+ }, readonly ["voyant", "resources", "assignments", "list", import("./query-keys.js").ResourceAssignmentsListFilters], never> | undefined;
664
+ } & {
665
+ queryKey: readonly ["voyant", "resources", "assignments", "list", import("./query-keys.js").ResourceAssignmentsListFilters] & {
666
+ [dataTagSymbol]: {
667
+ data: {
668
+ id: string;
669
+ slotId: string;
670
+ poolId: string | null;
671
+ resourceId: string | null;
672
+ bookingId: string | null;
673
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
674
+ assignedBy: string | null;
675
+ releasedAt: string | null;
676
+ notes: string | null;
677
+ }[];
678
+ total: number;
679
+ limit: number;
680
+ offset: number;
681
+ };
682
+ [dataTagErrorSymbol]: Error;
683
+ };
684
+ };
685
+ export declare function getAssignmentQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseAssignmentOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
686
+ id: string;
687
+ slotId: string;
688
+ poolId: string | null;
689
+ resourceId: string | null;
690
+ bookingId: string | null;
691
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
692
+ assignedBy: string | null;
693
+ releasedAt: string | null;
694
+ notes: string | null;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ }, Error, {
698
+ id: string;
699
+ slotId: string;
700
+ poolId: string | null;
701
+ resourceId: string | null;
702
+ bookingId: string | null;
703
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
704
+ assignedBy: string | null;
705
+ releasedAt: string | null;
706
+ notes: string | null;
707
+ createdAt: string;
708
+ updatedAt: string;
709
+ }, readonly ["voyant", "resources", "assignments", "detail", string]>, "queryFn"> & {
710
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
711
+ id: string;
712
+ slotId: string;
713
+ poolId: string | null;
714
+ resourceId: string | null;
715
+ bookingId: string | null;
716
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
717
+ assignedBy: string | null;
718
+ releasedAt: string | null;
719
+ notes: string | null;
720
+ createdAt: string;
721
+ updatedAt: string;
722
+ }, readonly ["voyant", "resources", "assignments", "detail", string], never> | undefined;
723
+ } & {
724
+ queryKey: readonly ["voyant", "resources", "assignments", "detail", string] & {
725
+ [dataTagSymbol]: {
726
+ id: string;
727
+ slotId: string;
728
+ poolId: string | null;
729
+ resourceId: string | null;
730
+ bookingId: string | null;
731
+ status: "reserved" | "assigned" | "released" | "cancelled" | "completed";
732
+ assignedBy: string | null;
733
+ releasedAt: string | null;
734
+ notes: string | null;
735
+ createdAt: string;
736
+ updatedAt: string;
737
+ };
738
+ [dataTagErrorSymbol]: Error;
739
+ };
740
+ };
741
+ export declare function getCloseoutsQueryOptions(client: FetchWithValidationOptions, options?: UseCloseoutsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
742
+ data: {
743
+ id: string;
744
+ resourceId: string;
745
+ dateLocal: string;
746
+ startsAt: string | null;
747
+ endsAt: string | null;
748
+ reason: string | null;
749
+ createdBy: string | null;
750
+ }[];
751
+ total: number;
752
+ limit: number;
753
+ offset: number;
754
+ }, Error, {
755
+ data: {
756
+ id: string;
757
+ resourceId: string;
758
+ dateLocal: string;
759
+ startsAt: string | null;
760
+ endsAt: string | null;
761
+ reason: string | null;
762
+ createdBy: string | null;
763
+ }[];
764
+ total: number;
765
+ limit: number;
766
+ offset: number;
767
+ }, readonly ["voyant", "resources", "closeouts", "list", import("./query-keys.js").ResourceCloseoutsListFilters]>, "queryFn"> & {
768
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
769
+ data: {
770
+ id: string;
771
+ resourceId: string;
772
+ dateLocal: string;
773
+ startsAt: string | null;
774
+ endsAt: string | null;
775
+ reason: string | null;
776
+ createdBy: string | null;
777
+ }[];
778
+ total: number;
779
+ limit: number;
780
+ offset: number;
781
+ }, readonly ["voyant", "resources", "closeouts", "list", import("./query-keys.js").ResourceCloseoutsListFilters], never> | undefined;
782
+ } & {
783
+ queryKey: readonly ["voyant", "resources", "closeouts", "list", import("./query-keys.js").ResourceCloseoutsListFilters] & {
784
+ [dataTagSymbol]: {
785
+ data: {
786
+ id: string;
787
+ resourceId: string;
788
+ dateLocal: string;
789
+ startsAt: string | null;
790
+ endsAt: string | null;
791
+ reason: string | null;
792
+ createdBy: string | null;
793
+ }[];
794
+ total: number;
795
+ limit: number;
796
+ offset: number;
797
+ };
798
+ [dataTagErrorSymbol]: Error;
799
+ };
800
+ };
801
+ //# sourceMappingURL=query-options.d.ts.map