@voyantjs/storefront-react 0.49.0 → 0.50.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.
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts +290 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts.map +1 -0
- package/dist/hooks/use-admin-storefront-settings.js +29 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +209 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts.map +1 -1
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-product-extensions.d.ts +2 -2
- package/dist/hooks/use-storefront-settings.d.ts +41 -2
- package/dist/hooks/use-storefront-settings.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/operations.d.ts +445 -9
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +8 -1
- package/dist/operations.test.d.ts +2 -0
- package/dist/operations.test.d.ts.map +1 -0
- package/dist/operations.test.js +77 -0
- package/dist/query-keys.d.ts +1 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +1 -0
- package/dist/query-options.d.ts +564 -16
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +7 -1
- package/dist/schemas.d.ts +330 -4
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -2
- package/package.json +5 -5
package/dist/query-options.d.ts
CHANGED
|
@@ -4,17 +4,30 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
4
4
|
data: {
|
|
5
5
|
branding: {
|
|
6
6
|
logoUrl: string | null;
|
|
7
|
+
faviconUrl: string | null;
|
|
8
|
+
brandMarkUrl: string | null;
|
|
9
|
+
primaryColor: string | null;
|
|
10
|
+
accentColor: string | null;
|
|
7
11
|
supportedLanguages: string[];
|
|
8
12
|
};
|
|
9
13
|
support: {
|
|
10
14
|
email: string | null;
|
|
11
15
|
phone: string | null;
|
|
16
|
+
links: {
|
|
17
|
+
label: string;
|
|
18
|
+
url: string;
|
|
19
|
+
}[];
|
|
12
20
|
};
|
|
13
21
|
legal: {
|
|
14
22
|
termsUrl: string | null;
|
|
15
23
|
privacyUrl: string | null;
|
|
24
|
+
cancellationUrl: string | null;
|
|
16
25
|
defaultContractTemplateId: string | null;
|
|
17
26
|
};
|
|
27
|
+
localization: {
|
|
28
|
+
defaultLocale: string | null;
|
|
29
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
30
|
+
};
|
|
18
31
|
forms: {
|
|
19
32
|
billing: {
|
|
20
33
|
fields: {
|
|
@@ -48,30 +61,69 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
48
61
|
};
|
|
49
62
|
};
|
|
50
63
|
payment: {
|
|
51
|
-
defaultMethod: "voucher" | "bank_transfer" | "
|
|
64
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
52
65
|
methods: {
|
|
53
|
-
code: "voucher" | "bank_transfer" | "
|
|
66
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
54
67
|
label: string;
|
|
55
68
|
description: string | null;
|
|
56
69
|
enabled: boolean;
|
|
57
70
|
}[];
|
|
71
|
+
structure: "split" | "full";
|
|
72
|
+
schedule: {
|
|
73
|
+
percent: number;
|
|
74
|
+
dueInDays: number;
|
|
75
|
+
dueCondition: "after_booking" | "before_departure";
|
|
76
|
+
}[];
|
|
77
|
+
defaultSchedule: {
|
|
78
|
+
depositPercent: number | null;
|
|
79
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
80
|
+
} | null;
|
|
81
|
+
bankTransfer: {
|
|
82
|
+
dueDays: number | null;
|
|
83
|
+
account: {
|
|
84
|
+
provider: string | null;
|
|
85
|
+
currency: string | null;
|
|
86
|
+
iban: string;
|
|
87
|
+
beneficiary: string;
|
|
88
|
+
bank: string;
|
|
89
|
+
} | null;
|
|
90
|
+
accountHolder: string | null;
|
|
91
|
+
bankName: string | null;
|
|
92
|
+
iban: string | null;
|
|
93
|
+
bic: string | null;
|
|
94
|
+
paymentReference: string | null;
|
|
95
|
+
instructions: string | null;
|
|
96
|
+
} | null;
|
|
58
97
|
};
|
|
59
98
|
};
|
|
60
99
|
}, Error, {
|
|
61
100
|
data: {
|
|
62
101
|
branding: {
|
|
63
102
|
logoUrl: string | null;
|
|
103
|
+
faviconUrl: string | null;
|
|
104
|
+
brandMarkUrl: string | null;
|
|
105
|
+
primaryColor: string | null;
|
|
106
|
+
accentColor: string | null;
|
|
64
107
|
supportedLanguages: string[];
|
|
65
108
|
};
|
|
66
109
|
support: {
|
|
67
110
|
email: string | null;
|
|
68
111
|
phone: string | null;
|
|
112
|
+
links: {
|
|
113
|
+
label: string;
|
|
114
|
+
url: string;
|
|
115
|
+
}[];
|
|
69
116
|
};
|
|
70
117
|
legal: {
|
|
71
118
|
termsUrl: string | null;
|
|
72
119
|
privacyUrl: string | null;
|
|
120
|
+
cancellationUrl: string | null;
|
|
73
121
|
defaultContractTemplateId: string | null;
|
|
74
122
|
};
|
|
123
|
+
localization: {
|
|
124
|
+
defaultLocale: string | null;
|
|
125
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
126
|
+
};
|
|
75
127
|
forms: {
|
|
76
128
|
billing: {
|
|
77
129
|
fields: {
|
|
@@ -105,13 +157,39 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
105
157
|
};
|
|
106
158
|
};
|
|
107
159
|
payment: {
|
|
108
|
-
defaultMethod: "voucher" | "bank_transfer" | "
|
|
160
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
109
161
|
methods: {
|
|
110
|
-
code: "voucher" | "bank_transfer" | "
|
|
162
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
111
163
|
label: string;
|
|
112
164
|
description: string | null;
|
|
113
165
|
enabled: boolean;
|
|
114
166
|
}[];
|
|
167
|
+
structure: "split" | "full";
|
|
168
|
+
schedule: {
|
|
169
|
+
percent: number;
|
|
170
|
+
dueInDays: number;
|
|
171
|
+
dueCondition: "after_booking" | "before_departure";
|
|
172
|
+
}[];
|
|
173
|
+
defaultSchedule: {
|
|
174
|
+
depositPercent: number | null;
|
|
175
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
176
|
+
} | null;
|
|
177
|
+
bankTransfer: {
|
|
178
|
+
dueDays: number | null;
|
|
179
|
+
account: {
|
|
180
|
+
provider: string | null;
|
|
181
|
+
currency: string | null;
|
|
182
|
+
iban: string;
|
|
183
|
+
beneficiary: string;
|
|
184
|
+
bank: string;
|
|
185
|
+
} | null;
|
|
186
|
+
accountHolder: string | null;
|
|
187
|
+
bankName: string | null;
|
|
188
|
+
iban: string | null;
|
|
189
|
+
bic: string | null;
|
|
190
|
+
paymentReference: string | null;
|
|
191
|
+
instructions: string | null;
|
|
192
|
+
} | null;
|
|
115
193
|
};
|
|
116
194
|
};
|
|
117
195
|
}, readonly ["voyant", "storefront", "settings"]>, "queryFn"> & {
|
|
@@ -119,17 +197,30 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
119
197
|
data: {
|
|
120
198
|
branding: {
|
|
121
199
|
logoUrl: string | null;
|
|
200
|
+
faviconUrl: string | null;
|
|
201
|
+
brandMarkUrl: string | null;
|
|
202
|
+
primaryColor: string | null;
|
|
203
|
+
accentColor: string | null;
|
|
122
204
|
supportedLanguages: string[];
|
|
123
205
|
};
|
|
124
206
|
support: {
|
|
125
207
|
email: string | null;
|
|
126
208
|
phone: string | null;
|
|
209
|
+
links: {
|
|
210
|
+
label: string;
|
|
211
|
+
url: string;
|
|
212
|
+
}[];
|
|
127
213
|
};
|
|
128
214
|
legal: {
|
|
129
215
|
termsUrl: string | null;
|
|
130
216
|
privacyUrl: string | null;
|
|
217
|
+
cancellationUrl: string | null;
|
|
131
218
|
defaultContractTemplateId: string | null;
|
|
132
219
|
};
|
|
220
|
+
localization: {
|
|
221
|
+
defaultLocale: string | null;
|
|
222
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
223
|
+
};
|
|
133
224
|
forms: {
|
|
134
225
|
billing: {
|
|
135
226
|
fields: {
|
|
@@ -163,13 +254,39 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
163
254
|
};
|
|
164
255
|
};
|
|
165
256
|
payment: {
|
|
166
|
-
defaultMethod: "voucher" | "bank_transfer" | "
|
|
257
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
167
258
|
methods: {
|
|
168
|
-
code: "voucher" | "bank_transfer" | "
|
|
259
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
169
260
|
label: string;
|
|
170
261
|
description: string | null;
|
|
171
262
|
enabled: boolean;
|
|
172
263
|
}[];
|
|
264
|
+
structure: "split" | "full";
|
|
265
|
+
schedule: {
|
|
266
|
+
percent: number;
|
|
267
|
+
dueInDays: number;
|
|
268
|
+
dueCondition: "after_booking" | "before_departure";
|
|
269
|
+
}[];
|
|
270
|
+
defaultSchedule: {
|
|
271
|
+
depositPercent: number | null;
|
|
272
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
273
|
+
} | null;
|
|
274
|
+
bankTransfer: {
|
|
275
|
+
dueDays: number | null;
|
|
276
|
+
account: {
|
|
277
|
+
provider: string | null;
|
|
278
|
+
currency: string | null;
|
|
279
|
+
iban: string;
|
|
280
|
+
beneficiary: string;
|
|
281
|
+
bank: string;
|
|
282
|
+
} | null;
|
|
283
|
+
accountHolder: string | null;
|
|
284
|
+
bankName: string | null;
|
|
285
|
+
iban: string | null;
|
|
286
|
+
bic: string | null;
|
|
287
|
+
paymentReference: string | null;
|
|
288
|
+
instructions: string | null;
|
|
289
|
+
} | null;
|
|
173
290
|
};
|
|
174
291
|
};
|
|
175
292
|
}, readonly ["voyant", "storefront", "settings"], never> | undefined;
|
|
@@ -179,17 +296,422 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
179
296
|
data: {
|
|
180
297
|
branding: {
|
|
181
298
|
logoUrl: string | null;
|
|
299
|
+
faviconUrl: string | null;
|
|
300
|
+
brandMarkUrl: string | null;
|
|
301
|
+
primaryColor: string | null;
|
|
302
|
+
accentColor: string | null;
|
|
303
|
+
supportedLanguages: string[];
|
|
304
|
+
};
|
|
305
|
+
support: {
|
|
306
|
+
email: string | null;
|
|
307
|
+
phone: string | null;
|
|
308
|
+
links: {
|
|
309
|
+
label: string;
|
|
310
|
+
url: string;
|
|
311
|
+
}[];
|
|
312
|
+
};
|
|
313
|
+
legal: {
|
|
314
|
+
termsUrl: string | null;
|
|
315
|
+
privacyUrl: string | null;
|
|
316
|
+
cancellationUrl: string | null;
|
|
317
|
+
defaultContractTemplateId: string | null;
|
|
318
|
+
};
|
|
319
|
+
localization: {
|
|
320
|
+
defaultLocale: string | null;
|
|
321
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
322
|
+
};
|
|
323
|
+
forms: {
|
|
324
|
+
billing: {
|
|
325
|
+
fields: {
|
|
326
|
+
key: string;
|
|
327
|
+
label: string;
|
|
328
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
329
|
+
required: boolean;
|
|
330
|
+
placeholder: string | null;
|
|
331
|
+
description: string | null;
|
|
332
|
+
autocomplete: string | null;
|
|
333
|
+
options: {
|
|
334
|
+
value: string;
|
|
335
|
+
label: string;
|
|
336
|
+
}[];
|
|
337
|
+
}[];
|
|
338
|
+
};
|
|
339
|
+
travelers: {
|
|
340
|
+
fields: {
|
|
341
|
+
key: string;
|
|
342
|
+
label: string;
|
|
343
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
344
|
+
required: boolean;
|
|
345
|
+
placeholder: string | null;
|
|
346
|
+
description: string | null;
|
|
347
|
+
autocomplete: string | null;
|
|
348
|
+
options: {
|
|
349
|
+
value: string;
|
|
350
|
+
label: string;
|
|
351
|
+
}[];
|
|
352
|
+
}[];
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
payment: {
|
|
356
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
357
|
+
methods: {
|
|
358
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
359
|
+
label: string;
|
|
360
|
+
description: string | null;
|
|
361
|
+
enabled: boolean;
|
|
362
|
+
}[];
|
|
363
|
+
structure: "split" | "full";
|
|
364
|
+
schedule: {
|
|
365
|
+
percent: number;
|
|
366
|
+
dueInDays: number;
|
|
367
|
+
dueCondition: "after_booking" | "before_departure";
|
|
368
|
+
}[];
|
|
369
|
+
defaultSchedule: {
|
|
370
|
+
depositPercent: number | null;
|
|
371
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
372
|
+
} | null;
|
|
373
|
+
bankTransfer: {
|
|
374
|
+
dueDays: number | null;
|
|
375
|
+
account: {
|
|
376
|
+
provider: string | null;
|
|
377
|
+
currency: string | null;
|
|
378
|
+
iban: string;
|
|
379
|
+
beneficiary: string;
|
|
380
|
+
bank: string;
|
|
381
|
+
} | null;
|
|
382
|
+
accountHolder: string | null;
|
|
383
|
+
bankName: string | null;
|
|
384
|
+
iban: string | null;
|
|
385
|
+
bic: string | null;
|
|
386
|
+
paymentReference: string | null;
|
|
387
|
+
instructions: string | null;
|
|
388
|
+
} | null;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
[dataTagErrorSymbol]: Error;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
396
|
+
data: {
|
|
397
|
+
branding: {
|
|
398
|
+
logoUrl: string | null;
|
|
399
|
+
faviconUrl: string | null;
|
|
400
|
+
brandMarkUrl: string | null;
|
|
401
|
+
primaryColor: string | null;
|
|
402
|
+
accentColor: string | null;
|
|
403
|
+
supportedLanguages: string[];
|
|
404
|
+
};
|
|
405
|
+
support: {
|
|
406
|
+
email: string | null;
|
|
407
|
+
phone: string | null;
|
|
408
|
+
links: {
|
|
409
|
+
label: string;
|
|
410
|
+
url: string;
|
|
411
|
+
}[];
|
|
412
|
+
};
|
|
413
|
+
legal: {
|
|
414
|
+
termsUrl: string | null;
|
|
415
|
+
privacyUrl: string | null;
|
|
416
|
+
cancellationUrl: string | null;
|
|
417
|
+
defaultContractTemplateId: string | null;
|
|
418
|
+
};
|
|
419
|
+
localization: {
|
|
420
|
+
defaultLocale: string | null;
|
|
421
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
422
|
+
};
|
|
423
|
+
forms: {
|
|
424
|
+
billing: {
|
|
425
|
+
fields: {
|
|
426
|
+
key: string;
|
|
427
|
+
label: string;
|
|
428
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
429
|
+
required: boolean;
|
|
430
|
+
placeholder: string | null;
|
|
431
|
+
description: string | null;
|
|
432
|
+
autocomplete: string | null;
|
|
433
|
+
options: {
|
|
434
|
+
value: string;
|
|
435
|
+
label: string;
|
|
436
|
+
}[];
|
|
437
|
+
}[];
|
|
438
|
+
};
|
|
439
|
+
travelers: {
|
|
440
|
+
fields: {
|
|
441
|
+
key: string;
|
|
442
|
+
label: string;
|
|
443
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
444
|
+
required: boolean;
|
|
445
|
+
placeholder: string | null;
|
|
446
|
+
description: string | null;
|
|
447
|
+
autocomplete: string | null;
|
|
448
|
+
options: {
|
|
449
|
+
value: string;
|
|
450
|
+
label: string;
|
|
451
|
+
}[];
|
|
452
|
+
}[];
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
payment: {
|
|
456
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
457
|
+
methods: {
|
|
458
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
459
|
+
label: string;
|
|
460
|
+
description: string | null;
|
|
461
|
+
enabled: boolean;
|
|
462
|
+
}[];
|
|
463
|
+
structure: "split" | "full";
|
|
464
|
+
schedule: {
|
|
465
|
+
percent: number;
|
|
466
|
+
dueInDays: number;
|
|
467
|
+
dueCondition: "after_booking" | "before_departure";
|
|
468
|
+
}[];
|
|
469
|
+
defaultSchedule: {
|
|
470
|
+
depositPercent: number | null;
|
|
471
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
472
|
+
} | null;
|
|
473
|
+
bankTransfer: {
|
|
474
|
+
dueDays: number | null;
|
|
475
|
+
account: {
|
|
476
|
+
provider: string | null;
|
|
477
|
+
currency: string | null;
|
|
478
|
+
iban: string;
|
|
479
|
+
beneficiary: string;
|
|
480
|
+
bank: string;
|
|
481
|
+
} | null;
|
|
482
|
+
accountHolder: string | null;
|
|
483
|
+
bankName: string | null;
|
|
484
|
+
iban: string | null;
|
|
485
|
+
bic: string | null;
|
|
486
|
+
paymentReference: string | null;
|
|
487
|
+
instructions: string | null;
|
|
488
|
+
} | null;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
}, Error, {
|
|
492
|
+
data: {
|
|
493
|
+
branding: {
|
|
494
|
+
logoUrl: string | null;
|
|
495
|
+
faviconUrl: string | null;
|
|
496
|
+
brandMarkUrl: string | null;
|
|
497
|
+
primaryColor: string | null;
|
|
498
|
+
accentColor: string | null;
|
|
499
|
+
supportedLanguages: string[];
|
|
500
|
+
};
|
|
501
|
+
support: {
|
|
502
|
+
email: string | null;
|
|
503
|
+
phone: string | null;
|
|
504
|
+
links: {
|
|
505
|
+
label: string;
|
|
506
|
+
url: string;
|
|
507
|
+
}[];
|
|
508
|
+
};
|
|
509
|
+
legal: {
|
|
510
|
+
termsUrl: string | null;
|
|
511
|
+
privacyUrl: string | null;
|
|
512
|
+
cancellationUrl: string | null;
|
|
513
|
+
defaultContractTemplateId: string | null;
|
|
514
|
+
};
|
|
515
|
+
localization: {
|
|
516
|
+
defaultLocale: string | null;
|
|
517
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
518
|
+
};
|
|
519
|
+
forms: {
|
|
520
|
+
billing: {
|
|
521
|
+
fields: {
|
|
522
|
+
key: string;
|
|
523
|
+
label: string;
|
|
524
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
525
|
+
required: boolean;
|
|
526
|
+
placeholder: string | null;
|
|
527
|
+
description: string | null;
|
|
528
|
+
autocomplete: string | null;
|
|
529
|
+
options: {
|
|
530
|
+
value: string;
|
|
531
|
+
label: string;
|
|
532
|
+
}[];
|
|
533
|
+
}[];
|
|
534
|
+
};
|
|
535
|
+
travelers: {
|
|
536
|
+
fields: {
|
|
537
|
+
key: string;
|
|
538
|
+
label: string;
|
|
539
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
540
|
+
required: boolean;
|
|
541
|
+
placeholder: string | null;
|
|
542
|
+
description: string | null;
|
|
543
|
+
autocomplete: string | null;
|
|
544
|
+
options: {
|
|
545
|
+
value: string;
|
|
546
|
+
label: string;
|
|
547
|
+
}[];
|
|
548
|
+
}[];
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
payment: {
|
|
552
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
553
|
+
methods: {
|
|
554
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
555
|
+
label: string;
|
|
556
|
+
description: string | null;
|
|
557
|
+
enabled: boolean;
|
|
558
|
+
}[];
|
|
559
|
+
structure: "split" | "full";
|
|
560
|
+
schedule: {
|
|
561
|
+
percent: number;
|
|
562
|
+
dueInDays: number;
|
|
563
|
+
dueCondition: "after_booking" | "before_departure";
|
|
564
|
+
}[];
|
|
565
|
+
defaultSchedule: {
|
|
566
|
+
depositPercent: number | null;
|
|
567
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
568
|
+
} | null;
|
|
569
|
+
bankTransfer: {
|
|
570
|
+
dueDays: number | null;
|
|
571
|
+
account: {
|
|
572
|
+
provider: string | null;
|
|
573
|
+
currency: string | null;
|
|
574
|
+
iban: string;
|
|
575
|
+
beneficiary: string;
|
|
576
|
+
bank: string;
|
|
577
|
+
} | null;
|
|
578
|
+
accountHolder: string | null;
|
|
579
|
+
bankName: string | null;
|
|
580
|
+
iban: string | null;
|
|
581
|
+
bic: string | null;
|
|
582
|
+
paymentReference: string | null;
|
|
583
|
+
instructions: string | null;
|
|
584
|
+
} | null;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
}, readonly ["voyant", "storefront", "admin", "settings"]>, "queryFn"> & {
|
|
588
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
589
|
+
data: {
|
|
590
|
+
branding: {
|
|
591
|
+
logoUrl: string | null;
|
|
592
|
+
faviconUrl: string | null;
|
|
593
|
+
brandMarkUrl: string | null;
|
|
594
|
+
primaryColor: string | null;
|
|
595
|
+
accentColor: string | null;
|
|
596
|
+
supportedLanguages: string[];
|
|
597
|
+
};
|
|
598
|
+
support: {
|
|
599
|
+
email: string | null;
|
|
600
|
+
phone: string | null;
|
|
601
|
+
links: {
|
|
602
|
+
label: string;
|
|
603
|
+
url: string;
|
|
604
|
+
}[];
|
|
605
|
+
};
|
|
606
|
+
legal: {
|
|
607
|
+
termsUrl: string | null;
|
|
608
|
+
privacyUrl: string | null;
|
|
609
|
+
cancellationUrl: string | null;
|
|
610
|
+
defaultContractTemplateId: string | null;
|
|
611
|
+
};
|
|
612
|
+
localization: {
|
|
613
|
+
defaultLocale: string | null;
|
|
614
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
615
|
+
};
|
|
616
|
+
forms: {
|
|
617
|
+
billing: {
|
|
618
|
+
fields: {
|
|
619
|
+
key: string;
|
|
620
|
+
label: string;
|
|
621
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
622
|
+
required: boolean;
|
|
623
|
+
placeholder: string | null;
|
|
624
|
+
description: string | null;
|
|
625
|
+
autocomplete: string | null;
|
|
626
|
+
options: {
|
|
627
|
+
value: string;
|
|
628
|
+
label: string;
|
|
629
|
+
}[];
|
|
630
|
+
}[];
|
|
631
|
+
};
|
|
632
|
+
travelers: {
|
|
633
|
+
fields: {
|
|
634
|
+
key: string;
|
|
635
|
+
label: string;
|
|
636
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
637
|
+
required: boolean;
|
|
638
|
+
placeholder: string | null;
|
|
639
|
+
description: string | null;
|
|
640
|
+
autocomplete: string | null;
|
|
641
|
+
options: {
|
|
642
|
+
value: string;
|
|
643
|
+
label: string;
|
|
644
|
+
}[];
|
|
645
|
+
}[];
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
payment: {
|
|
649
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
650
|
+
methods: {
|
|
651
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
652
|
+
label: string;
|
|
653
|
+
description: string | null;
|
|
654
|
+
enabled: boolean;
|
|
655
|
+
}[];
|
|
656
|
+
structure: "split" | "full";
|
|
657
|
+
schedule: {
|
|
658
|
+
percent: number;
|
|
659
|
+
dueInDays: number;
|
|
660
|
+
dueCondition: "after_booking" | "before_departure";
|
|
661
|
+
}[];
|
|
662
|
+
defaultSchedule: {
|
|
663
|
+
depositPercent: number | null;
|
|
664
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
665
|
+
} | null;
|
|
666
|
+
bankTransfer: {
|
|
667
|
+
dueDays: number | null;
|
|
668
|
+
account: {
|
|
669
|
+
provider: string | null;
|
|
670
|
+
currency: string | null;
|
|
671
|
+
iban: string;
|
|
672
|
+
beneficiary: string;
|
|
673
|
+
bank: string;
|
|
674
|
+
} | null;
|
|
675
|
+
accountHolder: string | null;
|
|
676
|
+
bankName: string | null;
|
|
677
|
+
iban: string | null;
|
|
678
|
+
bic: string | null;
|
|
679
|
+
paymentReference: string | null;
|
|
680
|
+
instructions: string | null;
|
|
681
|
+
} | null;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
}, readonly ["voyant", "storefront", "admin", "settings"], never> | undefined;
|
|
685
|
+
} & {
|
|
686
|
+
queryKey: readonly ["voyant", "storefront", "admin", "settings"] & {
|
|
687
|
+
[dataTagSymbol]: {
|
|
688
|
+
data: {
|
|
689
|
+
branding: {
|
|
690
|
+
logoUrl: string | null;
|
|
691
|
+
faviconUrl: string | null;
|
|
692
|
+
brandMarkUrl: string | null;
|
|
693
|
+
primaryColor: string | null;
|
|
694
|
+
accentColor: string | null;
|
|
182
695
|
supportedLanguages: string[];
|
|
183
696
|
};
|
|
184
697
|
support: {
|
|
185
698
|
email: string | null;
|
|
186
699
|
phone: string | null;
|
|
700
|
+
links: {
|
|
701
|
+
label: string;
|
|
702
|
+
url: string;
|
|
703
|
+
}[];
|
|
187
704
|
};
|
|
188
705
|
legal: {
|
|
189
706
|
termsUrl: string | null;
|
|
190
707
|
privacyUrl: string | null;
|
|
708
|
+
cancellationUrl: string | null;
|
|
191
709
|
defaultContractTemplateId: string | null;
|
|
192
710
|
};
|
|
711
|
+
localization: {
|
|
712
|
+
defaultLocale: string | null;
|
|
713
|
+
currencyDisplay: "symbol" | "name" | "code";
|
|
714
|
+
};
|
|
193
715
|
forms: {
|
|
194
716
|
billing: {
|
|
195
717
|
fields: {
|
|
@@ -223,13 +745,39 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
223
745
|
};
|
|
224
746
|
};
|
|
225
747
|
payment: {
|
|
226
|
-
defaultMethod: "voucher" | "bank_transfer" | "
|
|
748
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
227
749
|
methods: {
|
|
228
|
-
code: "voucher" | "bank_transfer" | "
|
|
750
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
229
751
|
label: string;
|
|
230
752
|
description: string | null;
|
|
231
753
|
enabled: boolean;
|
|
232
754
|
}[];
|
|
755
|
+
structure: "split" | "full";
|
|
756
|
+
schedule: {
|
|
757
|
+
percent: number;
|
|
758
|
+
dueInDays: number;
|
|
759
|
+
dueCondition: "after_booking" | "before_departure";
|
|
760
|
+
}[];
|
|
761
|
+
defaultSchedule: {
|
|
762
|
+
depositPercent: number | null;
|
|
763
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
764
|
+
} | null;
|
|
765
|
+
bankTransfer: {
|
|
766
|
+
dueDays: number | null;
|
|
767
|
+
account: {
|
|
768
|
+
provider: string | null;
|
|
769
|
+
currency: string | null;
|
|
770
|
+
iban: string;
|
|
771
|
+
beneficiary: string;
|
|
772
|
+
bank: string;
|
|
773
|
+
} | null;
|
|
774
|
+
accountHolder: string | null;
|
|
775
|
+
bankName: string | null;
|
|
776
|
+
iban: string | null;
|
|
777
|
+
bic: string | null;
|
|
778
|
+
paymentReference: string | null;
|
|
779
|
+
instructions: string | null;
|
|
780
|
+
} | null;
|
|
233
781
|
};
|
|
234
782
|
};
|
|
235
783
|
};
|
|
@@ -745,7 +1293,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
745
1293
|
thumb: string | null;
|
|
746
1294
|
pricePerPerson: number | null;
|
|
747
1295
|
currencyCode: string;
|
|
748
|
-
pricingMode: "
|
|
1296
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
749
1297
|
defaultQuantity: number | null;
|
|
750
1298
|
minQuantity: number | null;
|
|
751
1299
|
maxQuantity: number | null;
|
|
@@ -761,7 +1309,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
761
1309
|
thumb: string | null;
|
|
762
1310
|
pricePerPerson: number | null;
|
|
763
1311
|
currencyCode: string;
|
|
764
|
-
pricingMode: "
|
|
1312
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
765
1313
|
defaultQuantity: number | null;
|
|
766
1314
|
minQuantity: number | null;
|
|
767
1315
|
maxQuantity: number | null;
|
|
@@ -786,7 +1334,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
786
1334
|
thumb: string | null;
|
|
787
1335
|
pricePerPerson: number | null;
|
|
788
1336
|
currencyCode: string;
|
|
789
|
-
pricingMode: "
|
|
1337
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
790
1338
|
defaultQuantity: number | null;
|
|
791
1339
|
minQuantity: number | null;
|
|
792
1340
|
maxQuantity: number | null;
|
|
@@ -802,7 +1350,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
802
1350
|
thumb: string | null;
|
|
803
1351
|
pricePerPerson: number | null;
|
|
804
1352
|
currencyCode: string;
|
|
805
|
-
pricingMode: "
|
|
1353
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
806
1354
|
defaultQuantity: number | null;
|
|
807
1355
|
minQuantity: number | null;
|
|
808
1356
|
maxQuantity: number | null;
|
|
@@ -830,7 +1378,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
830
1378
|
thumb: string | null;
|
|
831
1379
|
pricePerPerson: number | null;
|
|
832
1380
|
currencyCode: string;
|
|
833
|
-
pricingMode: "
|
|
1381
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
834
1382
|
defaultQuantity: number | null;
|
|
835
1383
|
minQuantity: number | null;
|
|
836
1384
|
maxQuantity: number | null;
|
|
@@ -846,7 +1394,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
846
1394
|
thumb: string | null;
|
|
847
1395
|
pricePerPerson: number | null;
|
|
848
1396
|
currencyCode: string;
|
|
849
|
-
pricingMode: "
|
|
1397
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
850
1398
|
defaultQuantity: number | null;
|
|
851
1399
|
minQuantity: number | null;
|
|
852
1400
|
maxQuantity: number | null;
|
|
@@ -878,7 +1426,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
878
1426
|
thumb: string | null;
|
|
879
1427
|
pricePerPerson: number | null;
|
|
880
1428
|
currencyCode: string;
|
|
881
|
-
pricingMode: "
|
|
1429
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
882
1430
|
defaultQuantity: number | null;
|
|
883
1431
|
minQuantity: number | null;
|
|
884
1432
|
maxQuantity: number | null;
|
|
@@ -894,7 +1442,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
894
1442
|
thumb: string | null;
|
|
895
1443
|
pricePerPerson: number | null;
|
|
896
1444
|
currencyCode: string;
|
|
897
|
-
pricingMode: "
|
|
1445
|
+
pricingMode: "per_booking" | "free" | "included" | "on_request" | "per_person" | "quantity_based";
|
|
898
1446
|
defaultQuantity: number | null;
|
|
899
1447
|
minQuantity: number | null;
|
|
900
1448
|
maxQuantity: number | null;
|