@voyantjs/products-react 0.2.0 → 0.3.1

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 (91) hide show
  1. package/dist/hooks/index.d.ts +22 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +22 -0
  4. package/dist/hooks/use-option-unit-mutation.d.ts +60 -0
  5. package/dist/hooks/use-option-unit-mutation.d.ts.map +1 -0
  6. package/dist/hooks/use-option-unit-mutation.js +41 -0
  7. package/dist/hooks/use-option-unit.d.ts +21 -0
  8. package/dist/hooks/use-option-unit.d.ts.map +1 -0
  9. package/dist/hooks/use-option-unit.js +12 -0
  10. package/dist/hooks/use-option-units.d.ts +27 -0
  11. package/dist/hooks/use-option-units.d.ts.map +1 -0
  12. package/dist/hooks/use-option-units.js +12 -0
  13. package/dist/hooks/use-product-categories.d.ts +22 -0
  14. package/dist/hooks/use-product-categories.d.ts.map +1 -0
  15. package/dist/hooks/use-product-categories.js +29 -0
  16. package/dist/hooks/use-product-category-mutation.d.ts +43 -0
  17. package/dist/hooks/use-product-category-mutation.d.ts.map +1 -0
  18. package/dist/hooks/use-product-category-mutation.js +39 -0
  19. package/dist/hooks/use-product-category.d.ts +16 -0
  20. package/dist/hooks/use-product-category.d.ts.map +1 -0
  21. package/dist/hooks/use-product-category.js +18 -0
  22. package/dist/hooks/use-product-day-mutation.d.ts +41 -0
  23. package/dist/hooks/use-product-day-mutation.d.ts.map +1 -0
  24. package/dist/hooks/use-product-day-mutation.js +41 -0
  25. package/dist/hooks/use-product-day-service-mutation.d.ts +63 -0
  26. package/dist/hooks/use-product-day-service-mutation.d.ts.map +1 -0
  27. package/dist/hooks/use-product-day-service-mutation.js +41 -0
  28. package/dist/hooks/use-product-day-services.d.ts +20 -0
  29. package/dist/hooks/use-product-day-services.d.ts.map +1 -0
  30. package/dist/hooks/use-product-day-services.js +12 -0
  31. package/dist/hooks/use-product-days.d.ts +16 -0
  32. package/dist/hooks/use-product-days.d.ts.map +1 -0
  33. package/dist/hooks/use-product-days.js +12 -0
  34. package/dist/hooks/use-product-media-mutation.d.ts +98 -0
  35. package/dist/hooks/use-product-media-mutation.d.ts.map +1 -0
  36. package/dist/hooks/use-product-media-mutation.js +69 -0
  37. package/dist/hooks/use-product-media.d.ts +26 -0
  38. package/dist/hooks/use-product-media.d.ts.map +1 -0
  39. package/dist/hooks/use-product-media.js +12 -0
  40. package/dist/hooks/use-product-mutation.d.ts +2 -2
  41. package/dist/hooks/use-product-option-mutation.d.ts +49 -0
  42. package/dist/hooks/use-product-option-mutation.d.ts.map +1 -0
  43. package/dist/hooks/use-product-option-mutation.js +39 -0
  44. package/dist/hooks/use-product-option.d.ts +18 -0
  45. package/dist/hooks/use-product-option.d.ts.map +1 -0
  46. package/dist/hooks/use-product-option.js +12 -0
  47. package/dist/hooks/use-product-options.d.ts +24 -0
  48. package/dist/hooks/use-product-options.d.ts.map +1 -0
  49. package/dist/hooks/use-product-options.js +12 -0
  50. package/dist/hooks/use-product-tag-mutation.d.ts +25 -0
  51. package/dist/hooks/use-product-tag-mutation.d.ts.map +1 -0
  52. package/dist/hooks/use-product-tag-mutation.js +39 -0
  53. package/dist/hooks/use-product-tag.d.ts +10 -0
  54. package/dist/hooks/use-product-tag.d.ts.map +1 -0
  55. package/dist/hooks/use-product-tag.js +18 -0
  56. package/dist/hooks/use-product-tags.d.ts +16 -0
  57. package/dist/hooks/use-product-tags.d.ts.map +1 -0
  58. package/dist/hooks/use-product-tags.js +25 -0
  59. package/dist/hooks/use-product-type-mutation.d.ts +50 -0
  60. package/dist/hooks/use-product-type-mutation.d.ts.map +1 -0
  61. package/dist/hooks/use-product-type-mutation.js +47 -0
  62. package/dist/hooks/use-product-type.d.ts +15 -0
  63. package/dist/hooks/use-product-type.d.ts.map +1 -0
  64. package/dist/hooks/use-product-type.js +12 -0
  65. package/dist/hooks/use-product-types.d.ts +1 -1
  66. package/dist/hooks/use-product-types.d.ts.map +1 -1
  67. package/dist/hooks/use-product-types.js +4 -22
  68. package/dist/hooks/use-product-version-mutation.d.ts +16 -0
  69. package/dist/hooks/use-product-version-mutation.d.ts.map +1 -0
  70. package/dist/hooks/use-product-version-mutation.js +22 -0
  71. package/dist/hooks/use-product-versions.d.ts +15 -0
  72. package/dist/hooks/use-product-versions.d.ts.map +1 -0
  73. package/dist/hooks/use-product-versions.js +12 -0
  74. package/dist/hooks/use-product.d.ts +1 -1
  75. package/dist/hooks/use-products.d.ts +1 -1
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +1 -0
  79. package/dist/provider.d.ts +1 -13
  80. package/dist/provider.d.ts.map +1 -1
  81. package/dist/provider.js +1 -16
  82. package/dist/query-keys.d.ts +48 -0
  83. package/dist/query-keys.d.ts.map +1 -1
  84. package/dist/query-keys.js +18 -0
  85. package/dist/query-options.d.ts +1031 -0
  86. package/dist/query-options.d.ts.map +1 -0
  87. package/dist/query-options.js +235 -0
  88. package/dist/schemas.d.ts +431 -3
  89. package/dist/schemas.d.ts.map +1 -1
  90. package/dist/schemas.js +117 -0
  91. package/package.json +7 -3
@@ -0,0 +1,1031 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseOptionUnitOptions } from "./hooks/use-option-unit.js";
3
+ import type { UseOptionUnitsOptions } from "./hooks/use-option-units.js";
4
+ import type { UseProductOptions } from "./hooks/use-product.js";
5
+ import type { UseProductCategoriesOptions } from "./hooks/use-product-categories.js";
6
+ import type { UseProductDayServicesOptions } from "./hooks/use-product-day-services.js";
7
+ import type { UseProductDaysOptions } from "./hooks/use-product-days.js";
8
+ import type { UseProductMediaOptions } from "./hooks/use-product-media.js";
9
+ import type { UseProductOptionOptions } from "./hooks/use-product-option.js";
10
+ import type { UseProductOptionsListOptions } from "./hooks/use-product-options.js";
11
+ import type { UseProductTagsOptions } from "./hooks/use-product-tags.js";
12
+ import type { UseProductTypesOptions } from "./hooks/use-product-types.js";
13
+ import type { UseProductVersionsOptions } from "./hooks/use-product-versions.js";
14
+ import type { UseProductsOptions } from "./hooks/use-products.js";
15
+ export declare function getProductsQueryOptions(client: FetchWithValidationOptions, options?: UseProductsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
16
+ data: {
17
+ id: string;
18
+ name: string;
19
+ status: "draft" | "active" | "archived";
20
+ description: string | null;
21
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
22
+ capacityMode: "free_sale" | "limited" | "on_request";
23
+ timezone: string | null;
24
+ visibility: "public" | "private" | "hidden";
25
+ activated: boolean;
26
+ reservationTimeoutMinutes: number | null;
27
+ sellCurrency: string;
28
+ sellAmountCents: number | null;
29
+ costAmountCents: number | null;
30
+ marginPercent: number | null;
31
+ facilityId: string | null;
32
+ startDate: string | null;
33
+ endDate: string | null;
34
+ pax: number | null;
35
+ productTypeId: string | null;
36
+ tags: string[];
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ }[];
40
+ total: number;
41
+ limit: number;
42
+ offset: number;
43
+ }, Error, {
44
+ data: {
45
+ id: string;
46
+ name: string;
47
+ status: "draft" | "active" | "archived";
48
+ description: string | null;
49
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
50
+ capacityMode: "free_sale" | "limited" | "on_request";
51
+ timezone: string | null;
52
+ visibility: "public" | "private" | "hidden";
53
+ activated: boolean;
54
+ reservationTimeoutMinutes: number | null;
55
+ sellCurrency: string;
56
+ sellAmountCents: number | null;
57
+ costAmountCents: number | null;
58
+ marginPercent: number | null;
59
+ facilityId: string | null;
60
+ startDate: string | null;
61
+ endDate: string | null;
62
+ pax: number | null;
63
+ productTypeId: string | null;
64
+ tags: string[];
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ }[];
68
+ total: number;
69
+ limit: number;
70
+ offset: number;
71
+ }, readonly ["voyant", "products", "products", "list", import("./query-keys.js").ProductsListFilters]>, "queryFn"> & {
72
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
73
+ data: {
74
+ id: string;
75
+ name: string;
76
+ status: "draft" | "active" | "archived";
77
+ description: string | null;
78
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
79
+ capacityMode: "free_sale" | "limited" | "on_request";
80
+ timezone: string | null;
81
+ visibility: "public" | "private" | "hidden";
82
+ activated: boolean;
83
+ reservationTimeoutMinutes: number | null;
84
+ sellCurrency: string;
85
+ sellAmountCents: number | null;
86
+ costAmountCents: number | null;
87
+ marginPercent: number | null;
88
+ facilityId: string | null;
89
+ startDate: string | null;
90
+ endDate: string | null;
91
+ pax: number | null;
92
+ productTypeId: string | null;
93
+ tags: string[];
94
+ createdAt: string;
95
+ updatedAt: string;
96
+ }[];
97
+ total: number;
98
+ limit: number;
99
+ offset: number;
100
+ }, readonly ["voyant", "products", "products", "list", import("./query-keys.js").ProductsListFilters], never> | undefined;
101
+ } & {
102
+ queryKey: readonly ["voyant", "products", "products", "list", import("./query-keys.js").ProductsListFilters] & {
103
+ [dataTagSymbol]: {
104
+ data: {
105
+ id: string;
106
+ name: string;
107
+ status: "draft" | "active" | "archived";
108
+ description: string | null;
109
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
110
+ capacityMode: "free_sale" | "limited" | "on_request";
111
+ timezone: string | null;
112
+ visibility: "public" | "private" | "hidden";
113
+ activated: boolean;
114
+ reservationTimeoutMinutes: number | null;
115
+ sellCurrency: string;
116
+ sellAmountCents: number | null;
117
+ costAmountCents: number | null;
118
+ marginPercent: number | null;
119
+ facilityId: string | null;
120
+ startDate: string | null;
121
+ endDate: string | null;
122
+ pax: number | null;
123
+ productTypeId: string | null;
124
+ tags: string[];
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ }[];
128
+ total: number;
129
+ limit: number;
130
+ offset: number;
131
+ };
132
+ [dataTagErrorSymbol]: Error;
133
+ };
134
+ };
135
+ export declare function getProductQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseProductOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
136
+ id: string;
137
+ name: string;
138
+ status: "draft" | "active" | "archived";
139
+ description: string | null;
140
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
141
+ capacityMode: "free_sale" | "limited" | "on_request";
142
+ timezone: string | null;
143
+ visibility: "public" | "private" | "hidden";
144
+ activated: boolean;
145
+ reservationTimeoutMinutes: number | null;
146
+ sellCurrency: string;
147
+ sellAmountCents: number | null;
148
+ costAmountCents: number | null;
149
+ marginPercent: number | null;
150
+ facilityId: string | null;
151
+ startDate: string | null;
152
+ endDate: string | null;
153
+ pax: number | null;
154
+ productTypeId: string | null;
155
+ tags: string[];
156
+ createdAt: string;
157
+ updatedAt: string;
158
+ }, Error, {
159
+ id: string;
160
+ name: string;
161
+ status: "draft" | "active" | "archived";
162
+ description: string | null;
163
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
164
+ capacityMode: "free_sale" | "limited" | "on_request";
165
+ timezone: string | null;
166
+ visibility: "public" | "private" | "hidden";
167
+ activated: boolean;
168
+ reservationTimeoutMinutes: number | null;
169
+ sellCurrency: string;
170
+ sellAmountCents: number | null;
171
+ costAmountCents: number | null;
172
+ marginPercent: number | null;
173
+ facilityId: string | null;
174
+ startDate: string | null;
175
+ endDate: string | null;
176
+ pax: number | null;
177
+ productTypeId: string | null;
178
+ tags: string[];
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ }, readonly ["voyant", "products", "products", "detail", string]>, "queryFn"> & {
182
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
183
+ id: string;
184
+ name: string;
185
+ status: "draft" | "active" | "archived";
186
+ description: string | null;
187
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
188
+ capacityMode: "free_sale" | "limited" | "on_request";
189
+ timezone: string | null;
190
+ visibility: "public" | "private" | "hidden";
191
+ activated: boolean;
192
+ reservationTimeoutMinutes: number | null;
193
+ sellCurrency: string;
194
+ sellAmountCents: number | null;
195
+ costAmountCents: number | null;
196
+ marginPercent: number | null;
197
+ facilityId: string | null;
198
+ startDate: string | null;
199
+ endDate: string | null;
200
+ pax: number | null;
201
+ productTypeId: string | null;
202
+ tags: string[];
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ }, readonly ["voyant", "products", "products", "detail", string], never> | undefined;
206
+ } & {
207
+ queryKey: readonly ["voyant", "products", "products", "detail", string] & {
208
+ [dataTagSymbol]: {
209
+ id: string;
210
+ name: string;
211
+ status: "draft" | "active" | "archived";
212
+ description: string | null;
213
+ bookingMode: "other" | "date" | "date_time" | "open" | "stay" | "transfer" | "itinerary";
214
+ capacityMode: "free_sale" | "limited" | "on_request";
215
+ timezone: string | null;
216
+ visibility: "public" | "private" | "hidden";
217
+ activated: boolean;
218
+ reservationTimeoutMinutes: number | null;
219
+ sellCurrency: string;
220
+ sellAmountCents: number | null;
221
+ costAmountCents: number | null;
222
+ marginPercent: number | null;
223
+ facilityId: string | null;
224
+ startDate: string | null;
225
+ endDate: string | null;
226
+ pax: number | null;
227
+ productTypeId: string | null;
228
+ tags: string[];
229
+ createdAt: string;
230
+ updatedAt: string;
231
+ };
232
+ [dataTagErrorSymbol]: Error;
233
+ };
234
+ };
235
+ export declare function getProductTypesQueryOptions(client: FetchWithValidationOptions, options?: UseProductTypesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
236
+ data: {
237
+ id: string;
238
+ name: string;
239
+ code: string;
240
+ description: string | null;
241
+ sortOrder: number;
242
+ active: boolean;
243
+ createdAt: string;
244
+ updatedAt: string;
245
+ metadata?: Record<string, unknown> | null | undefined;
246
+ }[];
247
+ total: number;
248
+ limit: number;
249
+ offset: number;
250
+ }, Error, {
251
+ data: {
252
+ id: string;
253
+ name: string;
254
+ code: string;
255
+ description: string | null;
256
+ sortOrder: number;
257
+ active: boolean;
258
+ createdAt: string;
259
+ updatedAt: string;
260
+ metadata?: Record<string, unknown> | null | undefined;
261
+ }[];
262
+ total: number;
263
+ limit: number;
264
+ offset: number;
265
+ }, readonly ["voyant", "products", "product-types", "list", import("./query-keys.js").ProductTypesListFilters]>, "queryFn"> & {
266
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
267
+ data: {
268
+ id: string;
269
+ name: string;
270
+ code: string;
271
+ description: string | null;
272
+ sortOrder: number;
273
+ active: boolean;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ metadata?: Record<string, unknown> | null | undefined;
277
+ }[];
278
+ total: number;
279
+ limit: number;
280
+ offset: number;
281
+ }, readonly ["voyant", "products", "product-types", "list", import("./query-keys.js").ProductTypesListFilters], never> | undefined;
282
+ } & {
283
+ queryKey: readonly ["voyant", "products", "product-types", "list", import("./query-keys.js").ProductTypesListFilters] & {
284
+ [dataTagSymbol]: {
285
+ data: {
286
+ id: string;
287
+ name: string;
288
+ code: string;
289
+ description: string | null;
290
+ sortOrder: number;
291
+ active: boolean;
292
+ createdAt: string;
293
+ updatedAt: string;
294
+ metadata?: Record<string, unknown> | null | undefined;
295
+ }[];
296
+ total: number;
297
+ limit: number;
298
+ offset: number;
299
+ };
300
+ [dataTagErrorSymbol]: Error;
301
+ };
302
+ };
303
+ export declare function getProductTypeQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
304
+ id: string;
305
+ name: string;
306
+ code: string;
307
+ description: string | null;
308
+ sortOrder: number;
309
+ active: boolean;
310
+ createdAt: string;
311
+ updatedAt: string;
312
+ metadata?: Record<string, unknown> | null | undefined;
313
+ }, Error, {
314
+ id: string;
315
+ name: string;
316
+ code: string;
317
+ description: string | null;
318
+ sortOrder: number;
319
+ active: boolean;
320
+ createdAt: string;
321
+ updatedAt: string;
322
+ metadata?: Record<string, unknown> | null | undefined;
323
+ }, readonly ["voyant", "products", "product-types", "detail", string]>, "queryFn"> & {
324
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
325
+ id: string;
326
+ name: string;
327
+ code: string;
328
+ description: string | null;
329
+ sortOrder: number;
330
+ active: boolean;
331
+ createdAt: string;
332
+ updatedAt: string;
333
+ metadata?: Record<string, unknown> | null | undefined;
334
+ }, readonly ["voyant", "products", "product-types", "detail", string], never> | undefined;
335
+ } & {
336
+ queryKey: readonly ["voyant", "products", "product-types", "detail", string] & {
337
+ [dataTagSymbol]: {
338
+ id: string;
339
+ name: string;
340
+ code: string;
341
+ description: string | null;
342
+ sortOrder: number;
343
+ active: boolean;
344
+ createdAt: string;
345
+ updatedAt: string;
346
+ metadata?: Record<string, unknown> | null | undefined;
347
+ };
348
+ [dataTagErrorSymbol]: Error;
349
+ };
350
+ };
351
+ export declare function getProductTagsQueryOptions(client: FetchWithValidationOptions, options?: UseProductTagsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
352
+ data: {
353
+ id: string;
354
+ name: string;
355
+ createdAt: string;
356
+ updatedAt: string;
357
+ }[];
358
+ total: number;
359
+ limit: number;
360
+ offset: number;
361
+ }, Error, {
362
+ data: {
363
+ id: string;
364
+ name: string;
365
+ createdAt: string;
366
+ updatedAt: string;
367
+ }[];
368
+ total: number;
369
+ limit: number;
370
+ offset: number;
371
+ }, readonly ["voyant", "products", "product-tags", "list", import("./query-keys.js").ProductTagsListFilters]>, "queryFn"> & {
372
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
373
+ data: {
374
+ id: string;
375
+ name: string;
376
+ createdAt: string;
377
+ updatedAt: string;
378
+ }[];
379
+ total: number;
380
+ limit: number;
381
+ offset: number;
382
+ }, readonly ["voyant", "products", "product-tags", "list", import("./query-keys.js").ProductTagsListFilters], never> | undefined;
383
+ } & {
384
+ queryKey: readonly ["voyant", "products", "product-tags", "list", import("./query-keys.js").ProductTagsListFilters] & {
385
+ [dataTagSymbol]: {
386
+ data: {
387
+ id: string;
388
+ name: string;
389
+ createdAt: string;
390
+ updatedAt: string;
391
+ }[];
392
+ total: number;
393
+ limit: number;
394
+ offset: number;
395
+ };
396
+ [dataTagErrorSymbol]: Error;
397
+ };
398
+ };
399
+ export declare function getProductCategoriesQueryOptions(client: FetchWithValidationOptions, options?: UseProductCategoriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
400
+ data: {
401
+ id: string;
402
+ parentId: string | null;
403
+ name: string;
404
+ slug: string;
405
+ description: string | null;
406
+ sortOrder: number;
407
+ active: boolean;
408
+ createdAt: string;
409
+ updatedAt: string;
410
+ metadata?: Record<string, unknown> | null | undefined;
411
+ }[];
412
+ total: number;
413
+ limit: number;
414
+ offset: number;
415
+ }, Error, {
416
+ data: {
417
+ id: string;
418
+ parentId: string | null;
419
+ name: string;
420
+ slug: string;
421
+ description: string | null;
422
+ sortOrder: number;
423
+ active: boolean;
424
+ createdAt: string;
425
+ updatedAt: string;
426
+ metadata?: Record<string, unknown> | null | undefined;
427
+ }[];
428
+ total: number;
429
+ limit: number;
430
+ offset: number;
431
+ }, readonly ["voyant", "products", "product-categories", "list", import("./query-keys.js").ProductCategoriesListFilters]>, "queryFn"> & {
432
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
433
+ data: {
434
+ id: string;
435
+ parentId: string | null;
436
+ name: string;
437
+ slug: string;
438
+ description: string | null;
439
+ sortOrder: number;
440
+ active: boolean;
441
+ createdAt: string;
442
+ updatedAt: string;
443
+ metadata?: Record<string, unknown> | null | undefined;
444
+ }[];
445
+ total: number;
446
+ limit: number;
447
+ offset: number;
448
+ }, readonly ["voyant", "products", "product-categories", "list", import("./query-keys.js").ProductCategoriesListFilters], never> | undefined;
449
+ } & {
450
+ queryKey: readonly ["voyant", "products", "product-categories", "list", import("./query-keys.js").ProductCategoriesListFilters] & {
451
+ [dataTagSymbol]: {
452
+ data: {
453
+ id: string;
454
+ parentId: string | null;
455
+ name: string;
456
+ slug: string;
457
+ description: string | null;
458
+ sortOrder: number;
459
+ active: boolean;
460
+ createdAt: string;
461
+ updatedAt: string;
462
+ metadata?: Record<string, unknown> | null | undefined;
463
+ }[];
464
+ total: number;
465
+ limit: number;
466
+ offset: number;
467
+ };
468
+ [dataTagErrorSymbol]: Error;
469
+ };
470
+ };
471
+ export declare function getProductOptionsQueryOptions(client: FetchWithValidationOptions, options?: UseProductOptionsListOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
472
+ data: {
473
+ id: string;
474
+ productId: string;
475
+ name: string;
476
+ code: string | null;
477
+ description: string | null;
478
+ status: "draft" | "active" | "archived";
479
+ isDefault: boolean;
480
+ sortOrder: number;
481
+ availableFrom: string | null;
482
+ availableTo: string | null;
483
+ createdAt: string;
484
+ updatedAt: string;
485
+ }[];
486
+ total: number;
487
+ limit: number;
488
+ offset: number;
489
+ }, Error, {
490
+ data: {
491
+ id: string;
492
+ productId: string;
493
+ name: string;
494
+ code: string | null;
495
+ description: string | null;
496
+ status: "draft" | "active" | "archived";
497
+ isDefault: boolean;
498
+ sortOrder: number;
499
+ availableFrom: string | null;
500
+ availableTo: string | null;
501
+ createdAt: string;
502
+ updatedAt: string;
503
+ }[];
504
+ total: number;
505
+ limit: number;
506
+ offset: number;
507
+ }, readonly ["voyant", "products", "product-options", "list", import("./query-keys.js").ProductOptionsListFilters]>, "queryFn"> & {
508
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
509
+ data: {
510
+ id: string;
511
+ productId: string;
512
+ name: string;
513
+ code: string | null;
514
+ description: string | null;
515
+ status: "draft" | "active" | "archived";
516
+ isDefault: boolean;
517
+ sortOrder: number;
518
+ availableFrom: string | null;
519
+ availableTo: string | null;
520
+ createdAt: string;
521
+ updatedAt: string;
522
+ }[];
523
+ total: number;
524
+ limit: number;
525
+ offset: number;
526
+ }, readonly ["voyant", "products", "product-options", "list", import("./query-keys.js").ProductOptionsListFilters], never> | undefined;
527
+ } & {
528
+ queryKey: readonly ["voyant", "products", "product-options", "list", import("./query-keys.js").ProductOptionsListFilters] & {
529
+ [dataTagSymbol]: {
530
+ data: {
531
+ id: string;
532
+ productId: string;
533
+ name: string;
534
+ code: string | null;
535
+ description: string | null;
536
+ status: "draft" | "active" | "archived";
537
+ isDefault: boolean;
538
+ sortOrder: number;
539
+ availableFrom: string | null;
540
+ availableTo: string | null;
541
+ createdAt: string;
542
+ updatedAt: string;
543
+ }[];
544
+ total: number;
545
+ limit: number;
546
+ offset: number;
547
+ };
548
+ [dataTagErrorSymbol]: Error;
549
+ };
550
+ };
551
+ export declare function getProductOptionQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseProductOptionOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
552
+ id: string;
553
+ productId: string;
554
+ name: string;
555
+ code: string | null;
556
+ description: string | null;
557
+ status: "draft" | "active" | "archived";
558
+ isDefault: boolean;
559
+ sortOrder: number;
560
+ availableFrom: string | null;
561
+ availableTo: string | null;
562
+ createdAt: string;
563
+ updatedAt: string;
564
+ }, Error, {
565
+ id: string;
566
+ productId: string;
567
+ name: string;
568
+ code: string | null;
569
+ description: string | null;
570
+ status: "draft" | "active" | "archived";
571
+ isDefault: boolean;
572
+ sortOrder: number;
573
+ availableFrom: string | null;
574
+ availableTo: string | null;
575
+ createdAt: string;
576
+ updatedAt: string;
577
+ }, readonly ["voyant", "products", "product-options", "detail", string]>, "queryFn"> & {
578
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
579
+ id: string;
580
+ productId: string;
581
+ name: string;
582
+ code: string | null;
583
+ description: string | null;
584
+ status: "draft" | "active" | "archived";
585
+ isDefault: boolean;
586
+ sortOrder: number;
587
+ availableFrom: string | null;
588
+ availableTo: string | null;
589
+ createdAt: string;
590
+ updatedAt: string;
591
+ }, readonly ["voyant", "products", "product-options", "detail", string], never> | undefined;
592
+ } & {
593
+ queryKey: readonly ["voyant", "products", "product-options", "detail", string] & {
594
+ [dataTagSymbol]: {
595
+ id: string;
596
+ productId: string;
597
+ name: string;
598
+ code: string | null;
599
+ description: string | null;
600
+ status: "draft" | "active" | "archived";
601
+ isDefault: boolean;
602
+ sortOrder: number;
603
+ availableFrom: string | null;
604
+ availableTo: string | null;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ };
608
+ [dataTagErrorSymbol]: Error;
609
+ };
610
+ };
611
+ export declare function getOptionUnitsQueryOptions(client: FetchWithValidationOptions, options?: UseOptionUnitsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
612
+ data: {
613
+ id: string;
614
+ optionId: string;
615
+ name: string;
616
+ code: string | null;
617
+ description: string | null;
618
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
619
+ minQuantity: number | null;
620
+ maxQuantity: number | null;
621
+ minAge: number | null;
622
+ maxAge: number | null;
623
+ occupancyMin: number | null;
624
+ occupancyMax: number | null;
625
+ isRequired: boolean;
626
+ isHidden: boolean;
627
+ sortOrder: number;
628
+ }[];
629
+ total: number;
630
+ limit: number;
631
+ offset: number;
632
+ }, Error, {
633
+ data: {
634
+ id: string;
635
+ optionId: string;
636
+ name: string;
637
+ code: string | null;
638
+ description: string | null;
639
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
640
+ minQuantity: number | null;
641
+ maxQuantity: number | null;
642
+ minAge: number | null;
643
+ maxAge: number | null;
644
+ occupancyMin: number | null;
645
+ occupancyMax: number | null;
646
+ isRequired: boolean;
647
+ isHidden: boolean;
648
+ sortOrder: number;
649
+ }[];
650
+ total: number;
651
+ limit: number;
652
+ offset: number;
653
+ }, readonly ["voyant", "products", "option-units", "list", import("./query-keys.js").OptionUnitsListFilters]>, "queryFn"> & {
654
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
655
+ data: {
656
+ id: string;
657
+ optionId: string;
658
+ name: string;
659
+ code: string | null;
660
+ description: string | null;
661
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
662
+ minQuantity: number | null;
663
+ maxQuantity: number | null;
664
+ minAge: number | null;
665
+ maxAge: number | null;
666
+ occupancyMin: number | null;
667
+ occupancyMax: number | null;
668
+ isRequired: boolean;
669
+ isHidden: boolean;
670
+ sortOrder: number;
671
+ }[];
672
+ total: number;
673
+ limit: number;
674
+ offset: number;
675
+ }, readonly ["voyant", "products", "option-units", "list", import("./query-keys.js").OptionUnitsListFilters], never> | undefined;
676
+ } & {
677
+ queryKey: readonly ["voyant", "products", "option-units", "list", import("./query-keys.js").OptionUnitsListFilters] & {
678
+ [dataTagSymbol]: {
679
+ data: {
680
+ id: string;
681
+ optionId: string;
682
+ name: string;
683
+ code: string | null;
684
+ description: string | null;
685
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
686
+ minQuantity: number | null;
687
+ maxQuantity: number | null;
688
+ minAge: number | null;
689
+ maxAge: number | null;
690
+ occupancyMin: number | null;
691
+ occupancyMax: number | null;
692
+ isRequired: boolean;
693
+ isHidden: boolean;
694
+ sortOrder: number;
695
+ }[];
696
+ total: number;
697
+ limit: number;
698
+ offset: number;
699
+ };
700
+ [dataTagErrorSymbol]: Error;
701
+ };
702
+ };
703
+ export declare function getOptionUnitQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseOptionUnitOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
704
+ id: string;
705
+ optionId: string;
706
+ name: string;
707
+ code: string | null;
708
+ description: string | null;
709
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
710
+ minQuantity: number | null;
711
+ maxQuantity: number | null;
712
+ minAge: number | null;
713
+ maxAge: number | null;
714
+ occupancyMin: number | null;
715
+ occupancyMax: number | null;
716
+ isRequired: boolean;
717
+ isHidden: boolean;
718
+ sortOrder: number;
719
+ }, Error, {
720
+ id: string;
721
+ optionId: string;
722
+ name: string;
723
+ code: string | null;
724
+ description: string | null;
725
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
726
+ minQuantity: number | null;
727
+ maxQuantity: number | null;
728
+ minAge: number | null;
729
+ maxAge: number | null;
730
+ occupancyMin: number | null;
731
+ occupancyMax: number | null;
732
+ isRequired: boolean;
733
+ isHidden: boolean;
734
+ sortOrder: number;
735
+ }, readonly ["voyant", "products", "option-units", "detail", string]>, "queryFn"> & {
736
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
737
+ id: string;
738
+ optionId: string;
739
+ name: string;
740
+ code: string | null;
741
+ description: string | null;
742
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
743
+ minQuantity: number | null;
744
+ maxQuantity: number | null;
745
+ minAge: number | null;
746
+ maxAge: number | null;
747
+ occupancyMin: number | null;
748
+ occupancyMax: number | null;
749
+ isRequired: boolean;
750
+ isHidden: boolean;
751
+ sortOrder: number;
752
+ }, readonly ["voyant", "products", "option-units", "detail", string], never> | undefined;
753
+ } & {
754
+ queryKey: readonly ["voyant", "products", "option-units", "detail", string] & {
755
+ [dataTagSymbol]: {
756
+ id: string;
757
+ optionId: string;
758
+ name: string;
759
+ code: string | null;
760
+ description: string | null;
761
+ unitType: "person" | "group" | "room" | "vehicle" | "service" | "other";
762
+ minQuantity: number | null;
763
+ maxQuantity: number | null;
764
+ minAge: number | null;
765
+ maxAge: number | null;
766
+ occupancyMin: number | null;
767
+ occupancyMax: number | null;
768
+ isRequired: boolean;
769
+ isHidden: boolean;
770
+ sortOrder: number;
771
+ };
772
+ [dataTagErrorSymbol]: Error;
773
+ };
774
+ };
775
+ export declare function getProductDaysQueryOptions(client: FetchWithValidationOptions, productId: string | null | undefined, options?: UseProductDaysOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
776
+ data: {
777
+ id: string;
778
+ productId: string;
779
+ dayNumber: number;
780
+ title: string | null;
781
+ description: string | null;
782
+ location: string | null;
783
+ createdAt: string;
784
+ updatedAt: string;
785
+ }[];
786
+ }, Error, {
787
+ data: {
788
+ id: string;
789
+ productId: string;
790
+ dayNumber: number;
791
+ title: string | null;
792
+ description: string | null;
793
+ location: string | null;
794
+ createdAt: string;
795
+ updatedAt: string;
796
+ }[];
797
+ }, readonly ["voyant", "products", "products", "detail", string, "days"]>, "queryFn"> & {
798
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
799
+ data: {
800
+ id: string;
801
+ productId: string;
802
+ dayNumber: number;
803
+ title: string | null;
804
+ description: string | null;
805
+ location: string | null;
806
+ createdAt: string;
807
+ updatedAt: string;
808
+ }[];
809
+ }, readonly ["voyant", "products", "products", "detail", string, "days"], never> | undefined;
810
+ } & {
811
+ queryKey: readonly ["voyant", "products", "products", "detail", string, "days"] & {
812
+ [dataTagSymbol]: {
813
+ data: {
814
+ id: string;
815
+ productId: string;
816
+ dayNumber: number;
817
+ title: string | null;
818
+ description: string | null;
819
+ location: string | null;
820
+ createdAt: string;
821
+ updatedAt: string;
822
+ }[];
823
+ };
824
+ [dataTagErrorSymbol]: Error;
825
+ };
826
+ };
827
+ export declare function getProductDayServicesQueryOptions(client: FetchWithValidationOptions, productId: string | null | undefined, dayId: string | null | undefined, options?: UseProductDayServicesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
828
+ data: {
829
+ id: string;
830
+ dayId: string;
831
+ supplierServiceId: string | null;
832
+ serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
833
+ name: string;
834
+ description: string | null;
835
+ costCurrency: string;
836
+ costAmountCents: number;
837
+ quantity: number;
838
+ sortOrder: number | null;
839
+ notes: string | null;
840
+ createdAt: string;
841
+ }[];
842
+ }, Error, {
843
+ data: {
844
+ id: string;
845
+ dayId: string;
846
+ supplierServiceId: string | null;
847
+ serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
848
+ name: string;
849
+ description: string | null;
850
+ costCurrency: string;
851
+ costAmountCents: number;
852
+ quantity: number;
853
+ sortOrder: number | null;
854
+ notes: string | null;
855
+ createdAt: string;
856
+ }[];
857
+ }, readonly ["voyant", "products", "products", "detail", string, "days", string, "services"]>, "queryFn"> & {
858
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
859
+ data: {
860
+ id: string;
861
+ dayId: string;
862
+ supplierServiceId: string | null;
863
+ serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
864
+ name: string;
865
+ description: string | null;
866
+ costCurrency: string;
867
+ costAmountCents: number;
868
+ quantity: number;
869
+ sortOrder: number | null;
870
+ notes: string | null;
871
+ createdAt: string;
872
+ }[];
873
+ }, readonly ["voyant", "products", "products", "detail", string, "days", string, "services"], never> | undefined;
874
+ } & {
875
+ queryKey: readonly ["voyant", "products", "products", "detail", string, "days", string, "services"] & {
876
+ [dataTagSymbol]: {
877
+ data: {
878
+ id: string;
879
+ dayId: string;
880
+ supplierServiceId: string | null;
881
+ serviceType: "other" | "transfer" | "accommodation" | "experience" | "guide" | "meal";
882
+ name: string;
883
+ description: string | null;
884
+ costCurrency: string;
885
+ costAmountCents: number;
886
+ quantity: number;
887
+ sortOrder: number | null;
888
+ notes: string | null;
889
+ createdAt: string;
890
+ }[];
891
+ };
892
+ [dataTagErrorSymbol]: Error;
893
+ };
894
+ };
895
+ export declare function getProductVersionsQueryOptions(client: FetchWithValidationOptions, productId: string | null | undefined, options?: UseProductVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
896
+ data: {
897
+ id: string;
898
+ productId: string;
899
+ versionNumber: number;
900
+ snapshot: unknown;
901
+ authorId: string;
902
+ notes: string | null;
903
+ createdAt: string;
904
+ }[];
905
+ }, Error, {
906
+ data: {
907
+ id: string;
908
+ productId: string;
909
+ versionNumber: number;
910
+ snapshot: unknown;
911
+ authorId: string;
912
+ notes: string | null;
913
+ createdAt: string;
914
+ }[];
915
+ }, readonly ["voyant", "products", "products", "detail", string, "versions"]>, "queryFn"> & {
916
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
917
+ data: {
918
+ id: string;
919
+ productId: string;
920
+ versionNumber: number;
921
+ snapshot: unknown;
922
+ authorId: string;
923
+ notes: string | null;
924
+ createdAt: string;
925
+ }[];
926
+ }, readonly ["voyant", "products", "products", "detail", string, "versions"], never> | undefined;
927
+ } & {
928
+ queryKey: readonly ["voyant", "products", "products", "detail", string, "versions"] & {
929
+ [dataTagSymbol]: {
930
+ data: {
931
+ id: string;
932
+ productId: string;
933
+ versionNumber: number;
934
+ snapshot: unknown;
935
+ authorId: string;
936
+ notes: string | null;
937
+ createdAt: string;
938
+ }[];
939
+ };
940
+ [dataTagErrorSymbol]: Error;
941
+ };
942
+ };
943
+ export declare function getProductMediaQueryOptions(client: FetchWithValidationOptions, productId: string | null | undefined, options?: UseProductMediaOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
944
+ data: {
945
+ id: string;
946
+ productId: string;
947
+ dayId: string | null;
948
+ mediaType: "image" | "video" | "document";
949
+ name: string;
950
+ url: string;
951
+ storageKey: string | null;
952
+ mimeType: string | null;
953
+ fileSize: number | null;
954
+ altText: string | null;
955
+ sortOrder: number;
956
+ isCover: boolean;
957
+ createdAt: string;
958
+ updatedAt: string;
959
+ }[];
960
+ total: number;
961
+ limit: number;
962
+ offset: number;
963
+ }, Error, {
964
+ data: {
965
+ id: string;
966
+ productId: string;
967
+ dayId: string | null;
968
+ mediaType: "image" | "video" | "document";
969
+ name: string;
970
+ url: string;
971
+ storageKey: string | null;
972
+ mimeType: string | null;
973
+ fileSize: number | null;
974
+ altText: string | null;
975
+ sortOrder: number;
976
+ isCover: boolean;
977
+ createdAt: string;
978
+ updatedAt: string;
979
+ }[];
980
+ total: number;
981
+ limit: number;
982
+ offset: number;
983
+ }, readonly ["voyant", "products", "products", "detail", string, "media", "list", import("./query-keys.js").ProductMediaListFilters]>, "queryFn"> & {
984
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
985
+ data: {
986
+ id: string;
987
+ productId: string;
988
+ dayId: string | null;
989
+ mediaType: "image" | "video" | "document";
990
+ name: string;
991
+ url: string;
992
+ storageKey: string | null;
993
+ mimeType: string | null;
994
+ fileSize: number | null;
995
+ altText: string | null;
996
+ sortOrder: number;
997
+ isCover: boolean;
998
+ createdAt: string;
999
+ updatedAt: string;
1000
+ }[];
1001
+ total: number;
1002
+ limit: number;
1003
+ offset: number;
1004
+ }, readonly ["voyant", "products", "products", "detail", string, "media", "list", import("./query-keys.js").ProductMediaListFilters], never> | undefined;
1005
+ } & {
1006
+ queryKey: readonly ["voyant", "products", "products", "detail", string, "media", "list", import("./query-keys.js").ProductMediaListFilters] & {
1007
+ [dataTagSymbol]: {
1008
+ data: {
1009
+ id: string;
1010
+ productId: string;
1011
+ dayId: string | null;
1012
+ mediaType: "image" | "video" | "document";
1013
+ name: string;
1014
+ url: string;
1015
+ storageKey: string | null;
1016
+ mimeType: string | null;
1017
+ fileSize: number | null;
1018
+ altText: string | null;
1019
+ sortOrder: number;
1020
+ isCover: boolean;
1021
+ createdAt: string;
1022
+ updatedAt: string;
1023
+ }[];
1024
+ total: number;
1025
+ limit: number;
1026
+ offset: number;
1027
+ };
1028
+ [dataTagErrorSymbol]: Error;
1029
+ };
1030
+ };
1031
+ //# sourceMappingURL=query-options.d.ts.map