@voyantjs/pricing-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 (126) hide show
  1. package/LICENSE +109 -0
  2. package/dist/hooks/index.d.ts +33 -0
  3. package/dist/hooks/index.d.ts.map +1 -1
  4. package/dist/hooks/index.js +33 -0
  5. package/dist/hooks/use-cancellation-policies.d.ts +20 -0
  6. package/dist/hooks/use-cancellation-policies.d.ts.map +1 -0
  7. package/dist/hooks/use-cancellation-policies.js +12 -0
  8. package/dist/hooks/use-cancellation-policy-mutation.d.ts +57 -0
  9. package/dist/hooks/use-cancellation-policy-mutation.d.ts.map +1 -0
  10. package/dist/hooks/use-cancellation-policy-mutation.js +49 -0
  11. package/dist/hooks/use-cancellation-policy-rule-mutation.d.ts +58 -0
  12. package/dist/hooks/use-cancellation-policy-rule-mutation.d.ts.map +1 -0
  13. package/dist/hooks/use-cancellation-policy-rule-mutation.js +49 -0
  14. package/dist/hooks/use-cancellation-policy-rule.d.ts +15 -0
  15. package/dist/hooks/use-cancellation-policy-rule.d.ts.map +1 -0
  16. package/dist/hooks/use-cancellation-policy-rule.js +12 -0
  17. package/dist/hooks/use-cancellation-policy-rules.d.ts +21 -0
  18. package/dist/hooks/use-cancellation-policy-rules.d.ts.map +1 -0
  19. package/dist/hooks/use-cancellation-policy-rules.js +12 -0
  20. package/dist/hooks/use-cancellation-policy.d.ts +14 -0
  21. package/dist/hooks/use-cancellation-policy.d.ts.map +1 -0
  22. package/dist/hooks/use-cancellation-policy.js +12 -0
  23. package/dist/hooks/use-dropoff-price-rule-mutation.d.ts +72 -0
  24. package/dist/hooks/use-dropoff-price-rule-mutation.d.ts.map +1 -0
  25. package/dist/hooks/use-dropoff-price-rule-mutation.js +52 -0
  26. package/dist/hooks/use-dropoff-price-rule.d.ts +18 -0
  27. package/dist/hooks/use-dropoff-price-rule.d.ts.map +1 -0
  28. package/dist/hooks/use-dropoff-price-rule.js +12 -0
  29. package/dist/hooks/use-dropoff-price-rules.d.ts +24 -0
  30. package/dist/hooks/use-dropoff-price-rules.d.ts.map +1 -0
  31. package/dist/hooks/use-dropoff-price-rules.js +12 -0
  32. package/dist/hooks/use-extra-price-rule-mutation.d.ts +72 -0
  33. package/dist/hooks/use-extra-price-rule-mutation.d.ts.map +1 -0
  34. package/dist/hooks/use-extra-price-rule-mutation.js +52 -0
  35. package/dist/hooks/use-extra-price-rule.d.ts +18 -0
  36. package/dist/hooks/use-extra-price-rule.d.ts.map +1 -0
  37. package/dist/hooks/use-extra-price-rule.js +12 -0
  38. package/dist/hooks/use-extra-price-rules.d.ts +24 -0
  39. package/dist/hooks/use-extra-price-rules.d.ts.map +1 -0
  40. package/dist/hooks/use-extra-price-rules.js +12 -0
  41. package/dist/hooks/use-option-price-rule-mutation.d.ts +98 -0
  42. package/dist/hooks/use-option-price-rule-mutation.d.ts.map +1 -0
  43. package/dist/hooks/use-option-price-rule-mutation.js +66 -0
  44. package/dist/hooks/use-option-price-rule.d.ts +24 -0
  45. package/dist/hooks/use-option-price-rule.d.ts.map +1 -0
  46. package/dist/hooks/use-option-price-rule.js +12 -0
  47. package/dist/hooks/use-option-price-rules.d.ts +30 -0
  48. package/dist/hooks/use-option-price-rules.d.ts.map +1 -0
  49. package/dist/hooks/use-option-price-rules.js +12 -0
  50. package/dist/hooks/use-option-start-time-rule-mutation.d.ts +70 -0
  51. package/dist/hooks/use-option-start-time-rule-mutation.d.ts.map +1 -0
  52. package/dist/hooks/use-option-start-time-rule-mutation.js +51 -0
  53. package/dist/hooks/use-option-start-time-rule.d.ts +17 -0
  54. package/dist/hooks/use-option-start-time-rule.d.ts.map +1 -0
  55. package/dist/hooks/use-option-start-time-rule.js +12 -0
  56. package/dist/hooks/use-option-start-time-rules.d.ts +23 -0
  57. package/dist/hooks/use-option-start-time-rules.d.ts.map +1 -0
  58. package/dist/hooks/use-option-start-time-rules.js +12 -0
  59. package/dist/hooks/use-option-unit-price-rule-mutation.d.ts +79 -0
  60. package/dist/hooks/use-option-unit-price-rule-mutation.d.ts.map +1 -0
  61. package/dist/hooks/use-option-unit-price-rule-mutation.js +54 -0
  62. package/dist/hooks/use-option-unit-price-rule.d.ts +19 -0
  63. package/dist/hooks/use-option-unit-price-rule.d.ts.map +1 -0
  64. package/dist/hooks/use-option-unit-price-rule.js +12 -0
  65. package/dist/hooks/use-option-unit-price-rules.d.ts +25 -0
  66. package/dist/hooks/use-option-unit-price-rules.d.ts.map +1 -0
  67. package/dist/hooks/use-option-unit-price-rules.js +12 -0
  68. package/dist/hooks/use-option-unit-tier-mutation.d.ts +50 -0
  69. package/dist/hooks/use-option-unit-tier-mutation.d.ts.map +1 -0
  70. package/dist/hooks/use-option-unit-tier-mutation.js +48 -0
  71. package/dist/hooks/use-option-unit-tier.d.ts +14 -0
  72. package/dist/hooks/use-option-unit-tier.d.ts.map +1 -0
  73. package/dist/hooks/use-option-unit-tier.js +12 -0
  74. package/dist/hooks/use-option-unit-tiers.d.ts +20 -0
  75. package/dist/hooks/use-option-unit-tiers.d.ts.map +1 -0
  76. package/dist/hooks/use-option-unit-tiers.js +12 -0
  77. package/dist/hooks/use-pickup-price-rule-mutation.d.ts +64 -0
  78. package/dist/hooks/use-pickup-price-rule-mutation.d.ts.map +1 -0
  79. package/dist/hooks/use-pickup-price-rule-mutation.js +50 -0
  80. package/dist/hooks/use-pickup-price-rule.d.ts +16 -0
  81. package/dist/hooks/use-pickup-price-rule.d.ts.map +1 -0
  82. package/dist/hooks/use-pickup-price-rule.js +12 -0
  83. package/dist/hooks/use-pickup-price-rules.d.ts +22 -0
  84. package/dist/hooks/use-pickup-price-rules.d.ts.map +1 -0
  85. package/dist/hooks/use-pickup-price-rules.js +12 -0
  86. package/dist/hooks/use-price-catalog-mutation.d.ts +60 -0
  87. package/dist/hooks/use-price-catalog-mutation.d.ts.map +1 -0
  88. package/dist/hooks/use-price-catalog-mutation.js +51 -0
  89. package/dist/hooks/use-price-catalog.d.ts +14 -0
  90. package/dist/hooks/use-price-catalog.d.ts.map +1 -0
  91. package/dist/hooks/use-price-catalog.js +12 -0
  92. package/dist/hooks/use-price-catalogs.d.ts +20 -0
  93. package/dist/hooks/use-price-catalogs.d.ts.map +1 -0
  94. package/dist/hooks/use-price-catalogs.js +12 -0
  95. package/dist/hooks/use-price-schedule-mutation.d.ts +76 -0
  96. package/dist/hooks/use-price-schedule-mutation.d.ts.map +1 -0
  97. package/dist/hooks/use-price-schedule-mutation.js +64 -0
  98. package/dist/hooks/use-price-schedule.d.ts +18 -0
  99. package/dist/hooks/use-price-schedule.d.ts.map +1 -0
  100. package/dist/hooks/use-price-schedule.js +12 -0
  101. package/dist/hooks/use-price-schedules.d.ts +28 -0
  102. package/dist/hooks/use-price-schedules.d.ts.map +1 -0
  103. package/dist/hooks/use-price-schedules.js +11 -0
  104. package/dist/hooks/use-pricing-categories.d.ts +1 -1
  105. package/dist/hooks/use-pricing-categories.d.ts.map +1 -1
  106. package/dist/hooks/use-pricing-categories.js +2 -0
  107. package/dist/hooks/use-pricing-category-mutation.d.ts +2 -2
  108. package/dist/hooks/use-pricing-category.d.ts +1 -1
  109. package/dist/hooks/use-pricing-category.d.ts.map +1 -1
  110. package/dist/hooks/use-pricing-category.js +2 -8
  111. package/dist/index.d.ts +1 -0
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +1 -0
  114. package/dist/provider.d.ts +1 -13
  115. package/dist/provider.d.ts.map +1 -1
  116. package/dist/provider.js +1 -16
  117. package/dist/query-keys.d.ts +116 -0
  118. package/dist/query-keys.d.ts.map +1 -1
  119. package/dist/query-keys.js +33 -0
  120. package/dist/query-options.d.ts +1727 -0
  121. package/dist/query-options.d.ts.map +1 -0
  122. package/dist/query-options.js +409 -0
  123. package/dist/schemas.d.ts +688 -3
  124. package/dist/schemas.d.ts.map +1 -1
  125. package/dist/schemas.js +165 -0
  126. package/package.json +42 -46
@@ -0,0 +1,1727 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseCancellationPoliciesOptions } from "./hooks/use-cancellation-policies.js";
3
+ import type { UseCancellationPolicyRulesOptions } from "./hooks/use-cancellation-policy-rules.js";
4
+ import type { UseDropoffPriceRulesOptions } from "./hooks/use-dropoff-price-rules.js";
5
+ import type { UseExtraPriceRulesOptions } from "./hooks/use-extra-price-rules.js";
6
+ import type { UseOptionPriceRulesOptions } from "./hooks/use-option-price-rules.js";
7
+ import type { UseOptionStartTimeRulesOptions } from "./hooks/use-option-start-time-rules.js";
8
+ import type { UseOptionUnitPriceRulesOptions } from "./hooks/use-option-unit-price-rules.js";
9
+ import type { UseOptionUnitTiersOptions } from "./hooks/use-option-unit-tiers.js";
10
+ import type { UsePickupPriceRulesOptions } from "./hooks/use-pickup-price-rules.js";
11
+ import type { UsePriceCatalogsOptions } from "./hooks/use-price-catalogs.js";
12
+ import type { UsePriceSchedulesOptions } from "./hooks/use-price-schedules.js";
13
+ import type { UsePricingCategoriesOptions } from "./hooks/use-pricing-categories.js";
14
+ import type { UsePricingCategoryDependenciesOptions } from "./hooks/use-pricing-category-dependencies.js";
15
+ export declare function getPricingCategoryQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
16
+ id: string;
17
+ productId: string | null;
18
+ optionId: string | null;
19
+ unitId: string | null;
20
+ code: string | null;
21
+ name: string;
22
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
23
+ seatOccupancy: number;
24
+ groupSize: number | null;
25
+ isAgeQualified: boolean;
26
+ minAge: number | null;
27
+ maxAge: number | null;
28
+ internalUseOnly: boolean;
29
+ active: boolean;
30
+ sortOrder: number;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ metadata?: Record<string, unknown> | null | undefined;
34
+ }, Error, {
35
+ id: string;
36
+ productId: string | null;
37
+ optionId: string | null;
38
+ unitId: string | null;
39
+ code: string | null;
40
+ name: string;
41
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
42
+ seatOccupancy: number;
43
+ groupSize: number | null;
44
+ isAgeQualified: boolean;
45
+ minAge: number | null;
46
+ maxAge: number | null;
47
+ internalUseOnly: boolean;
48
+ active: boolean;
49
+ sortOrder: number;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ metadata?: Record<string, unknown> | null | undefined;
53
+ }, readonly ["voyant", "pricing", "pricing-categories", "detail", string]>, "queryFn"> & {
54
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
55
+ id: string;
56
+ productId: string | null;
57
+ optionId: string | null;
58
+ unitId: string | null;
59
+ code: string | null;
60
+ name: string;
61
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
62
+ seatOccupancy: number;
63
+ groupSize: number | null;
64
+ isAgeQualified: boolean;
65
+ minAge: number | null;
66
+ maxAge: number | null;
67
+ internalUseOnly: boolean;
68
+ active: boolean;
69
+ sortOrder: number;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ metadata?: Record<string, unknown> | null | undefined;
73
+ }, readonly ["voyant", "pricing", "pricing-categories", "detail", string], never> | undefined;
74
+ } & {
75
+ queryKey: readonly ["voyant", "pricing", "pricing-categories", "detail", string] & {
76
+ [dataTagSymbol]: {
77
+ id: string;
78
+ productId: string | null;
79
+ optionId: string | null;
80
+ unitId: string | null;
81
+ code: string | null;
82
+ name: string;
83
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
84
+ seatOccupancy: number;
85
+ groupSize: number | null;
86
+ isAgeQualified: boolean;
87
+ minAge: number | null;
88
+ maxAge: number | null;
89
+ internalUseOnly: boolean;
90
+ active: boolean;
91
+ sortOrder: number;
92
+ createdAt: string;
93
+ updatedAt: string;
94
+ metadata?: Record<string, unknown> | null | undefined;
95
+ };
96
+ [dataTagErrorSymbol]: Error;
97
+ };
98
+ };
99
+ export declare function getPricingCategoriesQueryOptions(client: FetchWithValidationOptions, options?: UsePricingCategoriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
100
+ data: {
101
+ id: string;
102
+ productId: string | null;
103
+ optionId: string | null;
104
+ unitId: string | null;
105
+ code: string | null;
106
+ name: string;
107
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
108
+ seatOccupancy: number;
109
+ groupSize: number | null;
110
+ isAgeQualified: boolean;
111
+ minAge: number | null;
112
+ maxAge: number | null;
113
+ internalUseOnly: boolean;
114
+ active: boolean;
115
+ sortOrder: number;
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ metadata?: Record<string, unknown> | null | undefined;
119
+ }[];
120
+ total: number;
121
+ limit: number;
122
+ offset: number;
123
+ }, Error, {
124
+ data: {
125
+ id: string;
126
+ productId: string | null;
127
+ optionId: string | null;
128
+ unitId: string | null;
129
+ code: string | null;
130
+ name: string;
131
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
132
+ seatOccupancy: number;
133
+ groupSize: number | null;
134
+ isAgeQualified: boolean;
135
+ minAge: number | null;
136
+ maxAge: number | null;
137
+ internalUseOnly: boolean;
138
+ active: boolean;
139
+ sortOrder: number;
140
+ createdAt: string;
141
+ updatedAt: string;
142
+ metadata?: Record<string, unknown> | null | undefined;
143
+ }[];
144
+ total: number;
145
+ limit: number;
146
+ offset: number;
147
+ }, readonly ["voyant", "pricing", "pricing-categories", "list", import("./query-keys.js").PricingCategoriesListFilters]>, "queryFn"> & {
148
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
149
+ data: {
150
+ id: string;
151
+ productId: string | null;
152
+ optionId: string | null;
153
+ unitId: string | null;
154
+ code: string | null;
155
+ name: string;
156
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
157
+ seatOccupancy: number;
158
+ groupSize: number | null;
159
+ isAgeQualified: boolean;
160
+ minAge: number | null;
161
+ maxAge: number | null;
162
+ internalUseOnly: boolean;
163
+ active: boolean;
164
+ sortOrder: number;
165
+ createdAt: string;
166
+ updatedAt: string;
167
+ metadata?: Record<string, unknown> | null | undefined;
168
+ }[];
169
+ total: number;
170
+ limit: number;
171
+ offset: number;
172
+ }, readonly ["voyant", "pricing", "pricing-categories", "list", import("./query-keys.js").PricingCategoriesListFilters], never> | undefined;
173
+ } & {
174
+ queryKey: readonly ["voyant", "pricing", "pricing-categories", "list", import("./query-keys.js").PricingCategoriesListFilters] & {
175
+ [dataTagSymbol]: {
176
+ data: {
177
+ id: string;
178
+ productId: string | null;
179
+ optionId: string | null;
180
+ unitId: string | null;
181
+ code: string | null;
182
+ name: string;
183
+ categoryType: "other" | "adult" | "child" | "infant" | "senior" | "group" | "room" | "vehicle" | "service";
184
+ seatOccupancy: number;
185
+ groupSize: number | null;
186
+ isAgeQualified: boolean;
187
+ minAge: number | null;
188
+ maxAge: number | null;
189
+ internalUseOnly: boolean;
190
+ active: boolean;
191
+ sortOrder: number;
192
+ createdAt: string;
193
+ updatedAt: string;
194
+ metadata?: Record<string, unknown> | null | undefined;
195
+ }[];
196
+ total: number;
197
+ limit: number;
198
+ offset: number;
199
+ };
200
+ [dataTagErrorSymbol]: Error;
201
+ };
202
+ };
203
+ export declare function getPricingCategoryDependenciesQueryOptions(client: FetchWithValidationOptions, options?: UsePricingCategoryDependenciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
204
+ data: {
205
+ id: string;
206
+ pricingCategoryId: string;
207
+ masterPricingCategoryId: string;
208
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
209
+ maxPerMaster: number | null;
210
+ maxDependentSum: number | null;
211
+ active: boolean;
212
+ notes: string | null;
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ }[];
216
+ total: number;
217
+ limit: number;
218
+ offset: number;
219
+ }, Error, {
220
+ data: {
221
+ id: string;
222
+ pricingCategoryId: string;
223
+ masterPricingCategoryId: string;
224
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
225
+ maxPerMaster: number | null;
226
+ maxDependentSum: number | null;
227
+ active: boolean;
228
+ notes: string | null;
229
+ createdAt: string;
230
+ updatedAt: string;
231
+ }[];
232
+ total: number;
233
+ limit: number;
234
+ offset: number;
235
+ }, readonly ["voyant", "pricing", "pricing-category-dependencies", "list", import("./query-keys.js").PricingCategoryDependenciesListFilters]>, "queryFn"> & {
236
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
237
+ data: {
238
+ id: string;
239
+ pricingCategoryId: string;
240
+ masterPricingCategoryId: string;
241
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
242
+ maxPerMaster: number | null;
243
+ maxDependentSum: number | null;
244
+ active: boolean;
245
+ notes: string | null;
246
+ createdAt: string;
247
+ updatedAt: string;
248
+ }[];
249
+ total: number;
250
+ limit: number;
251
+ offset: number;
252
+ }, readonly ["voyant", "pricing", "pricing-category-dependencies", "list", import("./query-keys.js").PricingCategoryDependenciesListFilters], never> | undefined;
253
+ } & {
254
+ queryKey: readonly ["voyant", "pricing", "pricing-category-dependencies", "list", import("./query-keys.js").PricingCategoryDependenciesListFilters] & {
255
+ [dataTagSymbol]: {
256
+ data: {
257
+ id: string;
258
+ pricingCategoryId: string;
259
+ masterPricingCategoryId: string;
260
+ dependencyType: "requires" | "limits_per_master" | "limits_sum" | "excludes";
261
+ maxPerMaster: number | null;
262
+ maxDependentSum: number | null;
263
+ active: boolean;
264
+ notes: string | null;
265
+ createdAt: string;
266
+ updatedAt: string;
267
+ }[];
268
+ total: number;
269
+ limit: number;
270
+ offset: number;
271
+ };
272
+ [dataTagErrorSymbol]: Error;
273
+ };
274
+ };
275
+ export declare function getPriceCatalogsQueryOptions(client: FetchWithValidationOptions, options?: UsePriceCatalogsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
276
+ data: {
277
+ id: string;
278
+ code: string;
279
+ name: string;
280
+ currencyCode: string;
281
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
282
+ isDefault: boolean;
283
+ active: boolean;
284
+ notes: string | null;
285
+ }[];
286
+ total: number;
287
+ limit: number;
288
+ offset: number;
289
+ }, Error, {
290
+ data: {
291
+ id: string;
292
+ code: string;
293
+ name: string;
294
+ currencyCode: string;
295
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
296
+ isDefault: boolean;
297
+ active: boolean;
298
+ notes: string | null;
299
+ }[];
300
+ total: number;
301
+ limit: number;
302
+ offset: number;
303
+ }, readonly ["voyant", "pricing", "price-catalogs", "list", import("./query-keys.js").PriceCatalogsListFilters]>, "queryFn"> & {
304
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
305
+ data: {
306
+ id: string;
307
+ code: string;
308
+ name: string;
309
+ currencyCode: string;
310
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
311
+ isDefault: boolean;
312
+ active: boolean;
313
+ notes: string | null;
314
+ }[];
315
+ total: number;
316
+ limit: number;
317
+ offset: number;
318
+ }, readonly ["voyant", "pricing", "price-catalogs", "list", import("./query-keys.js").PriceCatalogsListFilters], never> | undefined;
319
+ } & {
320
+ queryKey: readonly ["voyant", "pricing", "price-catalogs", "list", import("./query-keys.js").PriceCatalogsListFilters] & {
321
+ [dataTagSymbol]: {
322
+ data: {
323
+ id: string;
324
+ code: string;
325
+ name: string;
326
+ currencyCode: string;
327
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
328
+ isDefault: boolean;
329
+ active: boolean;
330
+ notes: string | null;
331
+ }[];
332
+ total: number;
333
+ limit: number;
334
+ offset: number;
335
+ };
336
+ [dataTagErrorSymbol]: Error;
337
+ };
338
+ };
339
+ export declare function getPriceCatalogQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
340
+ id: string;
341
+ code: string;
342
+ name: string;
343
+ currencyCode: string;
344
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
345
+ isDefault: boolean;
346
+ active: boolean;
347
+ notes: string | null;
348
+ }, Error, {
349
+ id: string;
350
+ code: string;
351
+ name: string;
352
+ currencyCode: string;
353
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
354
+ isDefault: boolean;
355
+ active: boolean;
356
+ notes: string | null;
357
+ }, readonly ["voyant", "pricing", "price-catalogs", "detail", string]>, "queryFn"> & {
358
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
359
+ id: string;
360
+ code: string;
361
+ name: string;
362
+ currencyCode: string;
363
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
364
+ isDefault: boolean;
365
+ active: boolean;
366
+ notes: string | null;
367
+ }, readonly ["voyant", "pricing", "price-catalogs", "detail", string], never> | undefined;
368
+ } & {
369
+ queryKey: readonly ["voyant", "pricing", "price-catalogs", "detail", string] & {
370
+ [dataTagSymbol]: {
371
+ id: string;
372
+ code: string;
373
+ name: string;
374
+ currencyCode: string;
375
+ catalogType: "public" | "contract" | "net" | "gross" | "promo" | "internal" | "other";
376
+ isDefault: boolean;
377
+ active: boolean;
378
+ notes: string | null;
379
+ };
380
+ [dataTagErrorSymbol]: Error;
381
+ };
382
+ };
383
+ export declare function getCancellationPoliciesQueryOptions(client: FetchWithValidationOptions, options?: UseCancellationPoliciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
384
+ data: {
385
+ id: string;
386
+ name: string;
387
+ code: string | null;
388
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
389
+ simpleCutoffHours: number | null;
390
+ isDefault: boolean;
391
+ active: boolean;
392
+ notes: string | null;
393
+ }[];
394
+ total: number;
395
+ limit: number;
396
+ offset: number;
397
+ }, Error, {
398
+ data: {
399
+ id: string;
400
+ name: string;
401
+ code: string | null;
402
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
403
+ simpleCutoffHours: number | null;
404
+ isDefault: boolean;
405
+ active: boolean;
406
+ notes: string | null;
407
+ }[];
408
+ total: number;
409
+ limit: number;
410
+ offset: number;
411
+ }, readonly ["voyant", "pricing", "cancellation-policies", "list", import("./query-keys.js").CancellationPoliciesListFilters]>, "queryFn"> & {
412
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
413
+ data: {
414
+ id: string;
415
+ name: string;
416
+ code: string | null;
417
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
418
+ simpleCutoffHours: number | null;
419
+ isDefault: boolean;
420
+ active: boolean;
421
+ notes: string | null;
422
+ }[];
423
+ total: number;
424
+ limit: number;
425
+ offset: number;
426
+ }, readonly ["voyant", "pricing", "cancellation-policies", "list", import("./query-keys.js").CancellationPoliciesListFilters], never> | undefined;
427
+ } & {
428
+ queryKey: readonly ["voyant", "pricing", "cancellation-policies", "list", import("./query-keys.js").CancellationPoliciesListFilters] & {
429
+ [dataTagSymbol]: {
430
+ data: {
431
+ id: string;
432
+ name: string;
433
+ code: string | null;
434
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
435
+ simpleCutoffHours: number | null;
436
+ isDefault: boolean;
437
+ active: boolean;
438
+ notes: string | null;
439
+ }[];
440
+ total: number;
441
+ limit: number;
442
+ offset: number;
443
+ };
444
+ [dataTagErrorSymbol]: Error;
445
+ };
446
+ };
447
+ export declare function getCancellationPolicyQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
448
+ id: string;
449
+ name: string;
450
+ code: string | null;
451
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
452
+ simpleCutoffHours: number | null;
453
+ isDefault: boolean;
454
+ active: boolean;
455
+ notes: string | null;
456
+ }, Error, {
457
+ id: string;
458
+ name: string;
459
+ code: string | null;
460
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
461
+ simpleCutoffHours: number | null;
462
+ isDefault: boolean;
463
+ active: boolean;
464
+ notes: string | null;
465
+ }, readonly ["voyant", "pricing", "cancellation-policies", "detail", string]>, "queryFn"> & {
466
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
467
+ id: string;
468
+ name: string;
469
+ code: string | null;
470
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
471
+ simpleCutoffHours: number | null;
472
+ isDefault: boolean;
473
+ active: boolean;
474
+ notes: string | null;
475
+ }, readonly ["voyant", "pricing", "cancellation-policies", "detail", string], never> | undefined;
476
+ } & {
477
+ queryKey: readonly ["voyant", "pricing", "cancellation-policies", "detail", string] & {
478
+ [dataTagSymbol]: {
479
+ id: string;
480
+ name: string;
481
+ code: string | null;
482
+ policyType: "custom" | "simple" | "advanced" | "non_refundable";
483
+ simpleCutoffHours: number | null;
484
+ isDefault: boolean;
485
+ active: boolean;
486
+ notes: string | null;
487
+ };
488
+ [dataTagErrorSymbol]: Error;
489
+ };
490
+ };
491
+ export declare function getCancellationPolicyRulesQueryOptions(client: FetchWithValidationOptions, options?: UseCancellationPolicyRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
492
+ data: {
493
+ id: string;
494
+ cancellationPolicyId: string;
495
+ sortOrder: number;
496
+ cutoffMinutesBefore: number | null;
497
+ chargeType: "none" | "amount" | "percentage";
498
+ chargeAmountCents: number | null;
499
+ chargePercentBasisPoints: number | null;
500
+ active: boolean;
501
+ notes: string | null;
502
+ }[];
503
+ total: number;
504
+ limit: number;
505
+ offset: number;
506
+ }, Error, {
507
+ data: {
508
+ id: string;
509
+ cancellationPolicyId: string;
510
+ sortOrder: number;
511
+ cutoffMinutesBefore: number | null;
512
+ chargeType: "none" | "amount" | "percentage";
513
+ chargeAmountCents: number | null;
514
+ chargePercentBasisPoints: number | null;
515
+ active: boolean;
516
+ notes: string | null;
517
+ }[];
518
+ total: number;
519
+ limit: number;
520
+ offset: number;
521
+ }, readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("./query-keys.js").CancellationPolicyRulesListFilters]>, "queryFn"> & {
522
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
523
+ data: {
524
+ id: string;
525
+ cancellationPolicyId: string;
526
+ sortOrder: number;
527
+ cutoffMinutesBefore: number | null;
528
+ chargeType: "none" | "amount" | "percentage";
529
+ chargeAmountCents: number | null;
530
+ chargePercentBasisPoints: number | null;
531
+ active: boolean;
532
+ notes: string | null;
533
+ }[];
534
+ total: number;
535
+ limit: number;
536
+ offset: number;
537
+ }, readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("./query-keys.js").CancellationPolicyRulesListFilters], never> | undefined;
538
+ } & {
539
+ queryKey: readonly ["voyant", "pricing", "cancellation-policy-rules", "list", import("./query-keys.js").CancellationPolicyRulesListFilters] & {
540
+ [dataTagSymbol]: {
541
+ data: {
542
+ id: string;
543
+ cancellationPolicyId: string;
544
+ sortOrder: number;
545
+ cutoffMinutesBefore: number | null;
546
+ chargeType: "none" | "amount" | "percentage";
547
+ chargeAmountCents: number | null;
548
+ chargePercentBasisPoints: number | null;
549
+ active: boolean;
550
+ notes: string | null;
551
+ }[];
552
+ total: number;
553
+ limit: number;
554
+ offset: number;
555
+ };
556
+ [dataTagErrorSymbol]: Error;
557
+ };
558
+ };
559
+ export declare function getCancellationPolicyRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
560
+ id: string;
561
+ cancellationPolicyId: string;
562
+ sortOrder: number;
563
+ cutoffMinutesBefore: number | null;
564
+ chargeType: "none" | "amount" | "percentage";
565
+ chargeAmountCents: number | null;
566
+ chargePercentBasisPoints: number | null;
567
+ active: boolean;
568
+ notes: string | null;
569
+ }, Error, {
570
+ id: string;
571
+ cancellationPolicyId: string;
572
+ sortOrder: number;
573
+ cutoffMinutesBefore: number | null;
574
+ chargeType: "none" | "amount" | "percentage";
575
+ chargeAmountCents: number | null;
576
+ chargePercentBasisPoints: number | null;
577
+ active: boolean;
578
+ notes: string | null;
579
+ }, readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string]>, "queryFn"> & {
580
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
581
+ id: string;
582
+ cancellationPolicyId: string;
583
+ sortOrder: number;
584
+ cutoffMinutesBefore: number | null;
585
+ chargeType: "none" | "amount" | "percentage";
586
+ chargeAmountCents: number | null;
587
+ chargePercentBasisPoints: number | null;
588
+ active: boolean;
589
+ notes: string | null;
590
+ }, readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string], never> | undefined;
591
+ } & {
592
+ queryKey: readonly ["voyant", "pricing", "cancellation-policy-rules", "detail", string] & {
593
+ [dataTagSymbol]: {
594
+ id: string;
595
+ cancellationPolicyId: string;
596
+ sortOrder: number;
597
+ cutoffMinutesBefore: number | null;
598
+ chargeType: "none" | "amount" | "percentage";
599
+ chargeAmountCents: number | null;
600
+ chargePercentBasisPoints: number | null;
601
+ active: boolean;
602
+ notes: string | null;
603
+ };
604
+ [dataTagErrorSymbol]: Error;
605
+ };
606
+ };
607
+ export declare function getPriceSchedulesQueryOptions(client: FetchWithValidationOptions, options?: UsePriceSchedulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
608
+ data: {
609
+ id: string;
610
+ priceCatalogId: string;
611
+ code: string | null;
612
+ name: string;
613
+ recurrenceRule: string;
614
+ timezone: string | null;
615
+ validFrom: string | null;
616
+ validTo: string | null;
617
+ weekdays: string[] | null;
618
+ priority: number;
619
+ active: boolean;
620
+ notes: string | null;
621
+ }[];
622
+ total: number;
623
+ limit: number;
624
+ offset: number;
625
+ }, Error, {
626
+ data: {
627
+ id: string;
628
+ priceCatalogId: string;
629
+ code: string | null;
630
+ name: string;
631
+ recurrenceRule: string;
632
+ timezone: string | null;
633
+ validFrom: string | null;
634
+ validTo: string | null;
635
+ weekdays: string[] | null;
636
+ priority: number;
637
+ active: boolean;
638
+ notes: string | null;
639
+ }[];
640
+ total: number;
641
+ limit: number;
642
+ offset: number;
643
+ }, readonly ["voyant", "pricing", "price-schedules", "list", import("./query-keys.js").PriceSchedulesListFilters]>, "queryFn"> & {
644
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
645
+ data: {
646
+ id: string;
647
+ priceCatalogId: string;
648
+ code: string | null;
649
+ name: string;
650
+ recurrenceRule: string;
651
+ timezone: string | null;
652
+ validFrom: string | null;
653
+ validTo: string | null;
654
+ weekdays: string[] | null;
655
+ priority: number;
656
+ active: boolean;
657
+ notes: string | null;
658
+ }[];
659
+ total: number;
660
+ limit: number;
661
+ offset: number;
662
+ }, readonly ["voyant", "pricing", "price-schedules", "list", import("./query-keys.js").PriceSchedulesListFilters], never> | undefined;
663
+ } & {
664
+ queryKey: readonly ["voyant", "pricing", "price-schedules", "list", import("./query-keys.js").PriceSchedulesListFilters] & {
665
+ [dataTagSymbol]: {
666
+ data: {
667
+ id: string;
668
+ priceCatalogId: string;
669
+ code: string | null;
670
+ name: string;
671
+ recurrenceRule: string;
672
+ timezone: string | null;
673
+ validFrom: string | null;
674
+ validTo: string | null;
675
+ weekdays: string[] | null;
676
+ priority: number;
677
+ active: boolean;
678
+ notes: string | null;
679
+ }[];
680
+ total: number;
681
+ limit: number;
682
+ offset: number;
683
+ };
684
+ [dataTagErrorSymbol]: Error;
685
+ };
686
+ };
687
+ export declare function getPriceScheduleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
688
+ id: string;
689
+ priceCatalogId: string;
690
+ code: string | null;
691
+ name: string;
692
+ recurrenceRule: string;
693
+ timezone: string | null;
694
+ validFrom: string | null;
695
+ validTo: string | null;
696
+ weekdays: string[] | null;
697
+ priority: number;
698
+ active: boolean;
699
+ notes: string | null;
700
+ }, Error, {
701
+ id: string;
702
+ priceCatalogId: string;
703
+ code: string | null;
704
+ name: string;
705
+ recurrenceRule: string;
706
+ timezone: string | null;
707
+ validFrom: string | null;
708
+ validTo: string | null;
709
+ weekdays: string[] | null;
710
+ priority: number;
711
+ active: boolean;
712
+ notes: string | null;
713
+ }, readonly ["voyant", "pricing", "price-schedules", "detail", string]>, "queryFn"> & {
714
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
715
+ id: string;
716
+ priceCatalogId: string;
717
+ code: string | null;
718
+ name: string;
719
+ recurrenceRule: string;
720
+ timezone: string | null;
721
+ validFrom: string | null;
722
+ validTo: string | null;
723
+ weekdays: string[] | null;
724
+ priority: number;
725
+ active: boolean;
726
+ notes: string | null;
727
+ }, readonly ["voyant", "pricing", "price-schedules", "detail", string], never> | undefined;
728
+ } & {
729
+ queryKey: readonly ["voyant", "pricing", "price-schedules", "detail", string] & {
730
+ [dataTagSymbol]: {
731
+ id: string;
732
+ priceCatalogId: string;
733
+ code: string | null;
734
+ name: string;
735
+ recurrenceRule: string;
736
+ timezone: string | null;
737
+ validFrom: string | null;
738
+ validTo: string | null;
739
+ weekdays: string[] | null;
740
+ priority: number;
741
+ active: boolean;
742
+ notes: string | null;
743
+ };
744
+ [dataTagErrorSymbol]: Error;
745
+ };
746
+ };
747
+ export declare function getOptionPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseOptionPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
748
+ data: {
749
+ id: string;
750
+ productId: string;
751
+ optionId: string;
752
+ priceCatalogId: string;
753
+ priceScheduleId: string | null;
754
+ cancellationPolicyId: string | null;
755
+ code: string | null;
756
+ name: string;
757
+ description: string | null;
758
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
759
+ baseSellAmountCents: number | null;
760
+ baseCostAmountCents: number | null;
761
+ minPerBooking: number | null;
762
+ maxPerBooking: number | null;
763
+ allPricingCategories: boolean;
764
+ isDefault: boolean;
765
+ active: boolean;
766
+ notes: string | null;
767
+ }[];
768
+ total: number;
769
+ limit: number;
770
+ offset: number;
771
+ }, Error, {
772
+ data: {
773
+ id: string;
774
+ productId: string;
775
+ optionId: string;
776
+ priceCatalogId: string;
777
+ priceScheduleId: string | null;
778
+ cancellationPolicyId: string | null;
779
+ code: string | null;
780
+ name: string;
781
+ description: string | null;
782
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
783
+ baseSellAmountCents: number | null;
784
+ baseCostAmountCents: number | null;
785
+ minPerBooking: number | null;
786
+ maxPerBooking: number | null;
787
+ allPricingCategories: boolean;
788
+ isDefault: boolean;
789
+ active: boolean;
790
+ notes: string | null;
791
+ }[];
792
+ total: number;
793
+ limit: number;
794
+ offset: number;
795
+ }, readonly ["voyant", "pricing", "option-price-rules", "list", import("./query-keys.js").OptionPriceRulesListFilters]>, "queryFn"> & {
796
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
797
+ data: {
798
+ id: string;
799
+ productId: string;
800
+ optionId: string;
801
+ priceCatalogId: string;
802
+ priceScheduleId: string | null;
803
+ cancellationPolicyId: string | null;
804
+ code: string | null;
805
+ name: string;
806
+ description: string | null;
807
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
808
+ baseSellAmountCents: number | null;
809
+ baseCostAmountCents: number | null;
810
+ minPerBooking: number | null;
811
+ maxPerBooking: number | null;
812
+ allPricingCategories: boolean;
813
+ isDefault: boolean;
814
+ active: boolean;
815
+ notes: string | null;
816
+ }[];
817
+ total: number;
818
+ limit: number;
819
+ offset: number;
820
+ }, readonly ["voyant", "pricing", "option-price-rules", "list", import("./query-keys.js").OptionPriceRulesListFilters], never> | undefined;
821
+ } & {
822
+ queryKey: readonly ["voyant", "pricing", "option-price-rules", "list", import("./query-keys.js").OptionPriceRulesListFilters] & {
823
+ [dataTagSymbol]: {
824
+ data: {
825
+ id: string;
826
+ productId: string;
827
+ optionId: string;
828
+ priceCatalogId: string;
829
+ priceScheduleId: string | null;
830
+ cancellationPolicyId: string | null;
831
+ code: string | null;
832
+ name: string;
833
+ description: string | null;
834
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
835
+ baseSellAmountCents: number | null;
836
+ baseCostAmountCents: number | null;
837
+ minPerBooking: number | null;
838
+ maxPerBooking: number | null;
839
+ allPricingCategories: boolean;
840
+ isDefault: boolean;
841
+ active: boolean;
842
+ notes: string | null;
843
+ }[];
844
+ total: number;
845
+ limit: number;
846
+ offset: number;
847
+ };
848
+ [dataTagErrorSymbol]: Error;
849
+ };
850
+ };
851
+ export declare function getOptionPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
852
+ id: string;
853
+ productId: string;
854
+ optionId: string;
855
+ priceCatalogId: string;
856
+ priceScheduleId: string | null;
857
+ cancellationPolicyId: string | null;
858
+ code: string | null;
859
+ name: string;
860
+ description: string | null;
861
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
862
+ baseSellAmountCents: number | null;
863
+ baseCostAmountCents: number | null;
864
+ minPerBooking: number | null;
865
+ maxPerBooking: number | null;
866
+ allPricingCategories: boolean;
867
+ isDefault: boolean;
868
+ active: boolean;
869
+ notes: string | null;
870
+ }, Error, {
871
+ id: string;
872
+ productId: string;
873
+ optionId: string;
874
+ priceCatalogId: string;
875
+ priceScheduleId: string | null;
876
+ cancellationPolicyId: string | null;
877
+ code: string | null;
878
+ name: string;
879
+ description: string | null;
880
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
881
+ baseSellAmountCents: number | null;
882
+ baseCostAmountCents: number | null;
883
+ minPerBooking: number | null;
884
+ maxPerBooking: number | null;
885
+ allPricingCategories: boolean;
886
+ isDefault: boolean;
887
+ active: boolean;
888
+ notes: string | null;
889
+ }, readonly ["voyant", "pricing", "option-price-rules", "detail", string]>, "queryFn"> & {
890
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
891
+ id: string;
892
+ productId: string;
893
+ optionId: string;
894
+ priceCatalogId: string;
895
+ priceScheduleId: string | null;
896
+ cancellationPolicyId: string | null;
897
+ code: string | null;
898
+ name: string;
899
+ description: string | null;
900
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
901
+ baseSellAmountCents: number | null;
902
+ baseCostAmountCents: number | null;
903
+ minPerBooking: number | null;
904
+ maxPerBooking: number | null;
905
+ allPricingCategories: boolean;
906
+ isDefault: boolean;
907
+ active: boolean;
908
+ notes: string | null;
909
+ }, readonly ["voyant", "pricing", "option-price-rules", "detail", string], never> | undefined;
910
+ } & {
911
+ queryKey: readonly ["voyant", "pricing", "option-price-rules", "detail", string] & {
912
+ [dataTagSymbol]: {
913
+ id: string;
914
+ productId: string;
915
+ optionId: string;
916
+ priceCatalogId: string;
917
+ priceScheduleId: string | null;
918
+ cancellationPolicyId: string | null;
919
+ code: string | null;
920
+ name: string;
921
+ description: string | null;
922
+ pricingMode: "per_person" | "per_booking" | "on_request" | "starting_from" | "free";
923
+ baseSellAmountCents: number | null;
924
+ baseCostAmountCents: number | null;
925
+ minPerBooking: number | null;
926
+ maxPerBooking: number | null;
927
+ allPricingCategories: boolean;
928
+ isDefault: boolean;
929
+ active: boolean;
930
+ notes: string | null;
931
+ };
932
+ [dataTagErrorSymbol]: Error;
933
+ };
934
+ };
935
+ export declare function getOptionUnitPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseOptionUnitPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
936
+ data: {
937
+ id: string;
938
+ optionPriceRuleId: string;
939
+ optionId: string;
940
+ unitId: string;
941
+ pricingCategoryId: string | null;
942
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
943
+ sellAmountCents: number | null;
944
+ costAmountCents: number | null;
945
+ minQuantity: number | null;
946
+ maxQuantity: number | null;
947
+ sortOrder: number;
948
+ active: boolean;
949
+ notes: string | null;
950
+ }[];
951
+ total: number;
952
+ limit: number;
953
+ offset: number;
954
+ }, Error, {
955
+ data: {
956
+ id: string;
957
+ optionPriceRuleId: string;
958
+ optionId: string;
959
+ unitId: string;
960
+ pricingCategoryId: string | null;
961
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
962
+ sellAmountCents: number | null;
963
+ costAmountCents: number | null;
964
+ minQuantity: number | null;
965
+ maxQuantity: number | null;
966
+ sortOrder: number;
967
+ active: boolean;
968
+ notes: string | null;
969
+ }[];
970
+ total: number;
971
+ limit: number;
972
+ offset: number;
973
+ }, readonly ["voyant", "pricing", "option-unit-price-rules", "list", import("./query-keys.js").OptionUnitPriceRulesListFilters]>, "queryFn"> & {
974
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
975
+ data: {
976
+ id: string;
977
+ optionPriceRuleId: string;
978
+ optionId: string;
979
+ unitId: string;
980
+ pricingCategoryId: string | null;
981
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
982
+ sellAmountCents: number | null;
983
+ costAmountCents: number | null;
984
+ minQuantity: number | null;
985
+ maxQuantity: number | null;
986
+ sortOrder: number;
987
+ active: boolean;
988
+ notes: string | null;
989
+ }[];
990
+ total: number;
991
+ limit: number;
992
+ offset: number;
993
+ }, readonly ["voyant", "pricing", "option-unit-price-rules", "list", import("./query-keys.js").OptionUnitPriceRulesListFilters], never> | undefined;
994
+ } & {
995
+ queryKey: readonly ["voyant", "pricing", "option-unit-price-rules", "list", import("./query-keys.js").OptionUnitPriceRulesListFilters] & {
996
+ [dataTagSymbol]: {
997
+ data: {
998
+ id: string;
999
+ optionPriceRuleId: string;
1000
+ optionId: string;
1001
+ unitId: string;
1002
+ pricingCategoryId: string | null;
1003
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
1004
+ sellAmountCents: number | null;
1005
+ costAmountCents: number | null;
1006
+ minQuantity: number | null;
1007
+ maxQuantity: number | null;
1008
+ sortOrder: number;
1009
+ active: boolean;
1010
+ notes: string | null;
1011
+ }[];
1012
+ total: number;
1013
+ limit: number;
1014
+ offset: number;
1015
+ };
1016
+ [dataTagErrorSymbol]: Error;
1017
+ };
1018
+ };
1019
+ export declare function getOptionUnitPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1020
+ id: string;
1021
+ optionPriceRuleId: string;
1022
+ optionId: string;
1023
+ unitId: string;
1024
+ pricingCategoryId: string | null;
1025
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
1026
+ sellAmountCents: number | null;
1027
+ costAmountCents: number | null;
1028
+ minQuantity: number | null;
1029
+ maxQuantity: number | null;
1030
+ sortOrder: number;
1031
+ active: boolean;
1032
+ notes: string | null;
1033
+ }, Error, {
1034
+ id: string;
1035
+ optionPriceRuleId: string;
1036
+ optionId: string;
1037
+ unitId: string;
1038
+ pricingCategoryId: string | null;
1039
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
1040
+ sellAmountCents: number | null;
1041
+ costAmountCents: number | null;
1042
+ minQuantity: number | null;
1043
+ maxQuantity: number | null;
1044
+ sortOrder: number;
1045
+ active: boolean;
1046
+ notes: string | null;
1047
+ }, readonly ["voyant", "pricing", "option-unit-price-rules", "detail", string]>, "queryFn"> & {
1048
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1049
+ id: string;
1050
+ optionPriceRuleId: string;
1051
+ optionId: string;
1052
+ unitId: string;
1053
+ pricingCategoryId: string | null;
1054
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
1055
+ sellAmountCents: number | null;
1056
+ costAmountCents: number | null;
1057
+ minQuantity: number | null;
1058
+ maxQuantity: number | null;
1059
+ sortOrder: number;
1060
+ active: boolean;
1061
+ notes: string | null;
1062
+ }, readonly ["voyant", "pricing", "option-unit-price-rules", "detail", string], never> | undefined;
1063
+ } & {
1064
+ queryKey: readonly ["voyant", "pricing", "option-unit-price-rules", "detail", string] & {
1065
+ [dataTagSymbol]: {
1066
+ id: string;
1067
+ optionPriceRuleId: string;
1068
+ optionId: string;
1069
+ unitId: string;
1070
+ pricingCategoryId: string | null;
1071
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "free" | "per_unit";
1072
+ sellAmountCents: number | null;
1073
+ costAmountCents: number | null;
1074
+ minQuantity: number | null;
1075
+ maxQuantity: number | null;
1076
+ sortOrder: number;
1077
+ active: boolean;
1078
+ notes: string | null;
1079
+ };
1080
+ [dataTagErrorSymbol]: Error;
1081
+ };
1082
+ };
1083
+ export declare function getOptionUnitTiersQueryOptions(client: FetchWithValidationOptions, options?: UseOptionUnitTiersOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1084
+ data: {
1085
+ id: string;
1086
+ optionUnitPriceRuleId: string;
1087
+ minQuantity: number;
1088
+ maxQuantity: number | null;
1089
+ sellAmountCents: number | null;
1090
+ costAmountCents: number | null;
1091
+ active: boolean;
1092
+ sortOrder: number;
1093
+ }[];
1094
+ total: number;
1095
+ limit: number;
1096
+ offset: number;
1097
+ }, Error, {
1098
+ data: {
1099
+ id: string;
1100
+ optionUnitPriceRuleId: string;
1101
+ minQuantity: number;
1102
+ maxQuantity: number | null;
1103
+ sellAmountCents: number | null;
1104
+ costAmountCents: number | null;
1105
+ active: boolean;
1106
+ sortOrder: number;
1107
+ }[];
1108
+ total: number;
1109
+ limit: number;
1110
+ offset: number;
1111
+ }, readonly ["voyant", "pricing", "option-unit-tiers", "list", import("./query-keys.js").OptionUnitTiersListFilters]>, "queryFn"> & {
1112
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1113
+ data: {
1114
+ id: string;
1115
+ optionUnitPriceRuleId: string;
1116
+ minQuantity: number;
1117
+ maxQuantity: number | null;
1118
+ sellAmountCents: number | null;
1119
+ costAmountCents: number | null;
1120
+ active: boolean;
1121
+ sortOrder: number;
1122
+ }[];
1123
+ total: number;
1124
+ limit: number;
1125
+ offset: number;
1126
+ }, readonly ["voyant", "pricing", "option-unit-tiers", "list", import("./query-keys.js").OptionUnitTiersListFilters], never> | undefined;
1127
+ } & {
1128
+ queryKey: readonly ["voyant", "pricing", "option-unit-tiers", "list", import("./query-keys.js").OptionUnitTiersListFilters] & {
1129
+ [dataTagSymbol]: {
1130
+ data: {
1131
+ id: string;
1132
+ optionUnitPriceRuleId: string;
1133
+ minQuantity: number;
1134
+ maxQuantity: number | null;
1135
+ sellAmountCents: number | null;
1136
+ costAmountCents: number | null;
1137
+ active: boolean;
1138
+ sortOrder: number;
1139
+ }[];
1140
+ total: number;
1141
+ limit: number;
1142
+ offset: number;
1143
+ };
1144
+ [dataTagErrorSymbol]: Error;
1145
+ };
1146
+ };
1147
+ export declare function getOptionUnitTierQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1148
+ id: string;
1149
+ optionUnitPriceRuleId: string;
1150
+ minQuantity: number;
1151
+ maxQuantity: number | null;
1152
+ sellAmountCents: number | null;
1153
+ costAmountCents: number | null;
1154
+ active: boolean;
1155
+ sortOrder: number;
1156
+ }, Error, {
1157
+ id: string;
1158
+ optionUnitPriceRuleId: string;
1159
+ minQuantity: number;
1160
+ maxQuantity: number | null;
1161
+ sellAmountCents: number | null;
1162
+ costAmountCents: number | null;
1163
+ active: boolean;
1164
+ sortOrder: number;
1165
+ }, readonly ["voyant", "pricing", "option-unit-tiers", "detail", string]>, "queryFn"> & {
1166
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1167
+ id: string;
1168
+ optionUnitPriceRuleId: string;
1169
+ minQuantity: number;
1170
+ maxQuantity: number | null;
1171
+ sellAmountCents: number | null;
1172
+ costAmountCents: number | null;
1173
+ active: boolean;
1174
+ sortOrder: number;
1175
+ }, readonly ["voyant", "pricing", "option-unit-tiers", "detail", string], never> | undefined;
1176
+ } & {
1177
+ queryKey: readonly ["voyant", "pricing", "option-unit-tiers", "detail", string] & {
1178
+ [dataTagSymbol]: {
1179
+ id: string;
1180
+ optionUnitPriceRuleId: string;
1181
+ minQuantity: number;
1182
+ maxQuantity: number | null;
1183
+ sellAmountCents: number | null;
1184
+ costAmountCents: number | null;
1185
+ active: boolean;
1186
+ sortOrder: number;
1187
+ };
1188
+ [dataTagErrorSymbol]: Error;
1189
+ };
1190
+ };
1191
+ export declare function getPickupPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UsePickupPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1192
+ data: {
1193
+ id: string;
1194
+ optionPriceRuleId: string;
1195
+ optionId: string;
1196
+ pickupPointId: string;
1197
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1198
+ sellAmountCents: number | null;
1199
+ costAmountCents: number | null;
1200
+ active: boolean;
1201
+ sortOrder: number;
1202
+ notes: string | null;
1203
+ }[];
1204
+ total: number;
1205
+ limit: number;
1206
+ offset: number;
1207
+ }, Error, {
1208
+ data: {
1209
+ id: string;
1210
+ optionPriceRuleId: string;
1211
+ optionId: string;
1212
+ pickupPointId: string;
1213
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1214
+ sellAmountCents: number | null;
1215
+ costAmountCents: number | null;
1216
+ active: boolean;
1217
+ sortOrder: number;
1218
+ notes: string | null;
1219
+ }[];
1220
+ total: number;
1221
+ limit: number;
1222
+ offset: number;
1223
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("./query-keys.js").PickupPriceRulesListFilters]>, "queryFn"> & {
1224
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1225
+ data: {
1226
+ id: string;
1227
+ optionPriceRuleId: string;
1228
+ optionId: string;
1229
+ pickupPointId: string;
1230
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1231
+ sellAmountCents: number | null;
1232
+ costAmountCents: number | null;
1233
+ active: boolean;
1234
+ sortOrder: number;
1235
+ notes: string | null;
1236
+ }[];
1237
+ total: number;
1238
+ limit: number;
1239
+ offset: number;
1240
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("./query-keys.js").PickupPriceRulesListFilters], never> | undefined;
1241
+ } & {
1242
+ queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "list", import("./query-keys.js").PickupPriceRulesListFilters] & {
1243
+ [dataTagSymbol]: {
1244
+ data: {
1245
+ id: string;
1246
+ optionPriceRuleId: string;
1247
+ optionId: string;
1248
+ pickupPointId: string;
1249
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1250
+ sellAmountCents: number | null;
1251
+ costAmountCents: number | null;
1252
+ active: boolean;
1253
+ sortOrder: number;
1254
+ notes: string | null;
1255
+ }[];
1256
+ total: number;
1257
+ limit: number;
1258
+ offset: number;
1259
+ };
1260
+ [dataTagErrorSymbol]: Error;
1261
+ };
1262
+ };
1263
+ export declare function getPickupPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1264
+ id: string;
1265
+ optionPriceRuleId: string;
1266
+ optionId: string;
1267
+ pickupPointId: string;
1268
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1269
+ sellAmountCents: number | null;
1270
+ costAmountCents: number | null;
1271
+ active: boolean;
1272
+ sortOrder: number;
1273
+ notes: string | null;
1274
+ }, Error, {
1275
+ id: string;
1276
+ optionPriceRuleId: string;
1277
+ optionId: string;
1278
+ pickupPointId: string;
1279
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1280
+ sellAmountCents: number | null;
1281
+ costAmountCents: number | null;
1282
+ active: boolean;
1283
+ sortOrder: number;
1284
+ notes: string | null;
1285
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string]>, "queryFn"> & {
1286
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1287
+ id: string;
1288
+ optionPriceRuleId: string;
1289
+ optionId: string;
1290
+ pickupPointId: string;
1291
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1292
+ sellAmountCents: number | null;
1293
+ costAmountCents: number | null;
1294
+ active: boolean;
1295
+ sortOrder: number;
1296
+ notes: string | null;
1297
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string], never> | undefined;
1298
+ } & {
1299
+ queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "detail", string] & {
1300
+ [dataTagSymbol]: {
1301
+ id: string;
1302
+ optionPriceRuleId: string;
1303
+ optionId: string;
1304
+ pickupPointId: string;
1305
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1306
+ sellAmountCents: number | null;
1307
+ costAmountCents: number | null;
1308
+ active: boolean;
1309
+ sortOrder: number;
1310
+ notes: string | null;
1311
+ };
1312
+ [dataTagErrorSymbol]: Error;
1313
+ };
1314
+ };
1315
+ export declare function getDropoffPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseDropoffPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1316
+ data: {
1317
+ id: string;
1318
+ optionPriceRuleId: string;
1319
+ optionId: string;
1320
+ facilityId: string | null;
1321
+ dropoffCode: string | null;
1322
+ dropoffName: string;
1323
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1324
+ sellAmountCents: number | null;
1325
+ costAmountCents: number | null;
1326
+ active: boolean;
1327
+ sortOrder: number;
1328
+ notes: string | null;
1329
+ }[];
1330
+ total: number;
1331
+ limit: number;
1332
+ offset: number;
1333
+ }, Error, {
1334
+ data: {
1335
+ id: string;
1336
+ optionPriceRuleId: string;
1337
+ optionId: string;
1338
+ facilityId: string | null;
1339
+ dropoffCode: string | null;
1340
+ dropoffName: string;
1341
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1342
+ sellAmountCents: number | null;
1343
+ costAmountCents: number | null;
1344
+ active: boolean;
1345
+ sortOrder: number;
1346
+ notes: string | null;
1347
+ }[];
1348
+ total: number;
1349
+ limit: number;
1350
+ offset: number;
1351
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("./query-keys.js").DropoffPriceRulesListFilters]>, "queryFn"> & {
1352
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1353
+ data: {
1354
+ id: string;
1355
+ optionPriceRuleId: string;
1356
+ optionId: string;
1357
+ facilityId: string | null;
1358
+ dropoffCode: string | null;
1359
+ dropoffName: string;
1360
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1361
+ sellAmountCents: number | null;
1362
+ costAmountCents: number | null;
1363
+ active: boolean;
1364
+ sortOrder: number;
1365
+ notes: string | null;
1366
+ }[];
1367
+ total: number;
1368
+ limit: number;
1369
+ offset: number;
1370
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("./query-keys.js").DropoffPriceRulesListFilters], never> | undefined;
1371
+ } & {
1372
+ queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("./query-keys.js").DropoffPriceRulesListFilters] & {
1373
+ [dataTagSymbol]: {
1374
+ data: {
1375
+ id: string;
1376
+ optionPriceRuleId: string;
1377
+ optionId: string;
1378
+ facilityId: string | null;
1379
+ dropoffCode: string | null;
1380
+ dropoffName: string;
1381
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1382
+ sellAmountCents: number | null;
1383
+ costAmountCents: number | null;
1384
+ active: boolean;
1385
+ sortOrder: number;
1386
+ notes: string | null;
1387
+ }[];
1388
+ total: number;
1389
+ limit: number;
1390
+ offset: number;
1391
+ };
1392
+ [dataTagErrorSymbol]: Error;
1393
+ };
1394
+ };
1395
+ export declare function getDropoffPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1396
+ id: string;
1397
+ optionPriceRuleId: string;
1398
+ optionId: string;
1399
+ facilityId: string | null;
1400
+ dropoffCode: string | null;
1401
+ dropoffName: string;
1402
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1403
+ sellAmountCents: number | null;
1404
+ costAmountCents: number | null;
1405
+ active: boolean;
1406
+ sortOrder: number;
1407
+ notes: string | null;
1408
+ }, Error, {
1409
+ id: string;
1410
+ optionPriceRuleId: string;
1411
+ optionId: string;
1412
+ facilityId: string | null;
1413
+ dropoffCode: string | null;
1414
+ dropoffName: string;
1415
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1416
+ sellAmountCents: number | null;
1417
+ costAmountCents: number | null;
1418
+ active: boolean;
1419
+ sortOrder: number;
1420
+ notes: string | null;
1421
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string]>, "queryFn"> & {
1422
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1423
+ id: string;
1424
+ optionPriceRuleId: string;
1425
+ optionId: string;
1426
+ facilityId: string | null;
1427
+ dropoffCode: string | null;
1428
+ dropoffName: string;
1429
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1430
+ sellAmountCents: number | null;
1431
+ costAmountCents: number | null;
1432
+ active: boolean;
1433
+ sortOrder: number;
1434
+ notes: string | null;
1435
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string], never> | undefined;
1436
+ } & {
1437
+ queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string] & {
1438
+ [dataTagSymbol]: {
1439
+ id: string;
1440
+ optionPriceRuleId: string;
1441
+ optionId: string;
1442
+ facilityId: string | null;
1443
+ dropoffCode: string | null;
1444
+ dropoffName: string;
1445
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1446
+ sellAmountCents: number | null;
1447
+ costAmountCents: number | null;
1448
+ active: boolean;
1449
+ sortOrder: number;
1450
+ notes: string | null;
1451
+ };
1452
+ [dataTagErrorSymbol]: Error;
1453
+ };
1454
+ };
1455
+ export declare function getExtraPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseExtraPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1456
+ data: {
1457
+ id: string;
1458
+ optionPriceRuleId: string;
1459
+ optionId: string;
1460
+ productExtraId: string | null;
1461
+ optionExtraConfigId: string | null;
1462
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1463
+ sellAmountCents: number | null;
1464
+ costAmountCents: number | null;
1465
+ active: boolean;
1466
+ sortOrder: number;
1467
+ notes: string | null;
1468
+ metadata?: Record<string, unknown> | null | undefined;
1469
+ }[];
1470
+ total: number;
1471
+ limit: number;
1472
+ offset: number;
1473
+ }, Error, {
1474
+ data: {
1475
+ id: string;
1476
+ optionPriceRuleId: string;
1477
+ optionId: string;
1478
+ productExtraId: string | null;
1479
+ optionExtraConfigId: string | null;
1480
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1481
+ sellAmountCents: number | null;
1482
+ costAmountCents: number | null;
1483
+ active: boolean;
1484
+ sortOrder: number;
1485
+ notes: string | null;
1486
+ metadata?: Record<string, unknown> | null | undefined;
1487
+ }[];
1488
+ total: number;
1489
+ limit: number;
1490
+ offset: number;
1491
+ }, readonly ["voyant", "pricing", "extra-price-rules", "list", import("./query-keys.js").ExtraPriceRulesListFilters]>, "queryFn"> & {
1492
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1493
+ data: {
1494
+ id: string;
1495
+ optionPriceRuleId: string;
1496
+ optionId: string;
1497
+ productExtraId: string | null;
1498
+ optionExtraConfigId: string | null;
1499
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1500
+ sellAmountCents: number | null;
1501
+ costAmountCents: number | null;
1502
+ active: boolean;
1503
+ sortOrder: number;
1504
+ notes: string | null;
1505
+ metadata?: Record<string, unknown> | null | undefined;
1506
+ }[];
1507
+ total: number;
1508
+ limit: number;
1509
+ offset: number;
1510
+ }, readonly ["voyant", "pricing", "extra-price-rules", "list", import("./query-keys.js").ExtraPriceRulesListFilters], never> | undefined;
1511
+ } & {
1512
+ queryKey: readonly ["voyant", "pricing", "extra-price-rules", "list", import("./query-keys.js").ExtraPriceRulesListFilters] & {
1513
+ [dataTagSymbol]: {
1514
+ data: {
1515
+ id: string;
1516
+ optionPriceRuleId: string;
1517
+ optionId: string;
1518
+ productExtraId: string | null;
1519
+ optionExtraConfigId: string | null;
1520
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1521
+ sellAmountCents: number | null;
1522
+ costAmountCents: number | null;
1523
+ active: boolean;
1524
+ sortOrder: number;
1525
+ notes: string | null;
1526
+ metadata?: Record<string, unknown> | null | undefined;
1527
+ }[];
1528
+ total: number;
1529
+ limit: number;
1530
+ offset: number;
1531
+ };
1532
+ [dataTagErrorSymbol]: Error;
1533
+ };
1534
+ };
1535
+ export declare function getExtraPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1536
+ id: string;
1537
+ optionPriceRuleId: string;
1538
+ optionId: string;
1539
+ productExtraId: string | null;
1540
+ optionExtraConfigId: string | null;
1541
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1542
+ sellAmountCents: number | null;
1543
+ costAmountCents: number | null;
1544
+ active: boolean;
1545
+ sortOrder: number;
1546
+ notes: string | null;
1547
+ metadata?: Record<string, unknown> | null | undefined;
1548
+ }, Error, {
1549
+ id: string;
1550
+ optionPriceRuleId: string;
1551
+ optionId: string;
1552
+ productExtraId: string | null;
1553
+ optionExtraConfigId: string | null;
1554
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1555
+ sellAmountCents: number | null;
1556
+ costAmountCents: number | null;
1557
+ active: boolean;
1558
+ sortOrder: number;
1559
+ notes: string | null;
1560
+ metadata?: Record<string, unknown> | null | undefined;
1561
+ }, readonly ["voyant", "pricing", "extra-price-rules", "detail", string]>, "queryFn"> & {
1562
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1563
+ id: string;
1564
+ optionPriceRuleId: string;
1565
+ optionId: string;
1566
+ productExtraId: string | null;
1567
+ optionExtraConfigId: string | null;
1568
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1569
+ sellAmountCents: number | null;
1570
+ costAmountCents: number | null;
1571
+ active: boolean;
1572
+ sortOrder: number;
1573
+ notes: string | null;
1574
+ metadata?: Record<string, unknown> | null | undefined;
1575
+ }, readonly ["voyant", "pricing", "extra-price-rules", "detail", string], never> | undefined;
1576
+ } & {
1577
+ queryKey: readonly ["voyant", "pricing", "extra-price-rules", "detail", string] & {
1578
+ [dataTagSymbol]: {
1579
+ id: string;
1580
+ optionPriceRuleId: string;
1581
+ optionId: string;
1582
+ productExtraId: string | null;
1583
+ optionExtraConfigId: string | null;
1584
+ pricingMode: "included" | "per_person" | "per_booking" | "on_request" | "unavailable";
1585
+ sellAmountCents: number | null;
1586
+ costAmountCents: number | null;
1587
+ active: boolean;
1588
+ sortOrder: number;
1589
+ notes: string | null;
1590
+ metadata?: Record<string, unknown> | null | undefined;
1591
+ };
1592
+ [dataTagErrorSymbol]: Error;
1593
+ };
1594
+ };
1595
+ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithValidationOptions, options?: UseOptionStartTimeRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1596
+ data: {
1597
+ id: string;
1598
+ optionPriceRuleId: string;
1599
+ optionId: string;
1600
+ startTimeId: string;
1601
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1602
+ adjustmentType: "fixed" | "percentage" | null;
1603
+ sellAdjustmentCents: number | null;
1604
+ costAdjustmentCents: number | null;
1605
+ adjustmentBasisPoints: number | null;
1606
+ active: boolean;
1607
+ notes: string | null;
1608
+ }[];
1609
+ total: number;
1610
+ limit: number;
1611
+ offset: number;
1612
+ }, Error, {
1613
+ data: {
1614
+ id: string;
1615
+ optionPriceRuleId: string;
1616
+ optionId: string;
1617
+ startTimeId: string;
1618
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1619
+ adjustmentType: "fixed" | "percentage" | null;
1620
+ sellAdjustmentCents: number | null;
1621
+ costAdjustmentCents: number | null;
1622
+ adjustmentBasisPoints: number | null;
1623
+ active: boolean;
1624
+ notes: string | null;
1625
+ }[];
1626
+ total: number;
1627
+ limit: number;
1628
+ offset: number;
1629
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("./query-keys.js").OptionStartTimeRulesListFilters]>, "queryFn"> & {
1630
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1631
+ data: {
1632
+ id: string;
1633
+ optionPriceRuleId: string;
1634
+ optionId: string;
1635
+ startTimeId: string;
1636
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1637
+ adjustmentType: "fixed" | "percentage" | null;
1638
+ sellAdjustmentCents: number | null;
1639
+ costAdjustmentCents: number | null;
1640
+ adjustmentBasisPoints: number | null;
1641
+ active: boolean;
1642
+ notes: string | null;
1643
+ }[];
1644
+ total: number;
1645
+ limit: number;
1646
+ offset: number;
1647
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("./query-keys.js").OptionStartTimeRulesListFilters], never> | undefined;
1648
+ } & {
1649
+ queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "list", import("./query-keys.js").OptionStartTimeRulesListFilters] & {
1650
+ [dataTagSymbol]: {
1651
+ data: {
1652
+ id: string;
1653
+ optionPriceRuleId: string;
1654
+ optionId: string;
1655
+ startTimeId: string;
1656
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1657
+ adjustmentType: "fixed" | "percentage" | null;
1658
+ sellAdjustmentCents: number | null;
1659
+ costAdjustmentCents: number | null;
1660
+ adjustmentBasisPoints: number | null;
1661
+ active: boolean;
1662
+ notes: string | null;
1663
+ }[];
1664
+ total: number;
1665
+ limit: number;
1666
+ offset: number;
1667
+ };
1668
+ [dataTagErrorSymbol]: Error;
1669
+ };
1670
+ };
1671
+ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1672
+ id: string;
1673
+ optionPriceRuleId: string;
1674
+ optionId: string;
1675
+ startTimeId: string;
1676
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1677
+ adjustmentType: "fixed" | "percentage" | null;
1678
+ sellAdjustmentCents: number | null;
1679
+ costAdjustmentCents: number | null;
1680
+ adjustmentBasisPoints: number | null;
1681
+ active: boolean;
1682
+ notes: string | null;
1683
+ }, Error, {
1684
+ id: string;
1685
+ optionPriceRuleId: string;
1686
+ optionId: string;
1687
+ startTimeId: string;
1688
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1689
+ adjustmentType: "fixed" | "percentage" | null;
1690
+ sellAdjustmentCents: number | null;
1691
+ costAdjustmentCents: number | null;
1692
+ adjustmentBasisPoints: number | null;
1693
+ active: boolean;
1694
+ notes: string | null;
1695
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string]>, "queryFn"> & {
1696
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1697
+ id: string;
1698
+ optionPriceRuleId: string;
1699
+ optionId: string;
1700
+ startTimeId: string;
1701
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1702
+ adjustmentType: "fixed" | "percentage" | null;
1703
+ sellAdjustmentCents: number | null;
1704
+ costAdjustmentCents: number | null;
1705
+ adjustmentBasisPoints: number | null;
1706
+ active: boolean;
1707
+ notes: string | null;
1708
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string], never> | undefined;
1709
+ } & {
1710
+ queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "detail", string] & {
1711
+ [dataTagSymbol]: {
1712
+ id: string;
1713
+ optionPriceRuleId: string;
1714
+ optionId: string;
1715
+ startTimeId: string;
1716
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
1717
+ adjustmentType: "fixed" | "percentage" | null;
1718
+ sellAdjustmentCents: number | null;
1719
+ costAdjustmentCents: number | null;
1720
+ adjustmentBasisPoints: number | null;
1721
+ active: boolean;
1722
+ notes: string | null;
1723
+ };
1724
+ [dataTagErrorSymbol]: Error;
1725
+ };
1726
+ };
1727
+ //# sourceMappingURL=query-options.d.ts.map