PageSourceSearch

https://diks.net/_next/static/chunks/3zrybbw9uf4ho.js

js diks.net collected 2026-09-24 10:28:07 UTC 80,276 bytes, 1,472 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="1dd21fa4-f1be-dfce-c88e-f5406a0f9a1a")}catch(e){}}();
2(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
3719508, ((__turbopack_context__) => {
4"use strict";
5
6// MERGED MODULE: [project]/src/generated/sharedVehicle/reactQueries.tsx [app-client] (ecmascript)
7;
8var __TURBOPACK__imported__module__954616__ = __turbopack_context__.i(954616);
9var __TURBOPACK__imported__module__266027__ = __turbopack_context__.i(266027);
10var __TURBOPACK__imported__module__912598__ = __turbopack_context__.i(912598);
11var __TURBOPACK__imported__module__197643__ = __turbopack_context__.i(197643);
12// MERGED MODULE: [project]/src/generated/sharedVehicle/apiClient.ts [app-client] (ecmascript)
13;
14async function apiSharedVehicleAddDamage(axiosInstance, params, body, requestConfig) {
15    const data = body instanceof FormData ? body : new FormData();
16    if (!(body instanceof FormData)) {
17        data.append("image", body["image"].data, body["image"].name);
18        data.append("description", body["description"]);
19        data.append("reservationId", body["reservationId"].toString());
20        data.append("x", body["x"].toString());
21        data.append("y", body["y"].toString());
22        if (body["addDamagePhase"] !== undefined) {
23            data.append("addDamagePhase", body["addDamagePhase"]);
24        }
25    }
26    const response = await axiosInstance.request({
27        url: "shared-vehicle/".concat(params.id, "/add-damage"),
28        method: "POST",
29        data,
30        ...requestConfig
31    });
32    return response.data;
33}
34async function apiSharedVehicleAdminList(axiosInstance, query, requestConfig) {
35    const response = await axiosInstance.request({
36        url: "shared-vehicle/admin/list",
37        method: "POST",
38        params: query,
39        ...requestConfig
40    });
41    return response.data;
42}
43async function apiSharedVehicleAdminSingle(axiosInstance, params, requestConfig) {
44    const response = await axiosInstance.request({
45        url: "shared-vehicle/admin/".concat(params.id),
46        method: "GET",
47        ...requestConfig
48    });
49    return response.data;
50}
51async function apiSharedVehicleAdminUpdate(axiosInstance, params, body, requestConfig) {
52    const response = await axiosInstance.request({
53        url: "shared-vehicle/admin/".concat(params.id, "/update"),
54        method: "PUT",
55        data: body,
56        ...requestConfig
57    });
58    return response.data;
59}
60async function apiSharedVehicleAvailability(axiosInstance, body, requestConfig) {
61    const response = await axiosInstance.request({
62        url: "shared-vehicle/availability",
63        method: "POST",
64        data: body,
65        ...requestConfig
66    });
67    return response.data;
68}
69async function apiSharedVehicleAvailabilityCalendar(axiosInstance, params, query, requestConfig) {
70    const response = await axiosInstance.request({
71        url: "shared-vehicle/".concat(params.id, "/calendar"),
72        method: "GET",
73        params: query,
74        ...requestConfig
75    });
76    return response.data;
77}
78async function apiSharedVehicleCreateBooking(axiosInstance, params, body, requestConfig) {
79    const response = await axiosInstance.request({
80        url: "shared-vehicle/".concat(params.id, "/create-booking"),
81        method: "POST",
82        data: body,
83        ...requestConfig
84    });
85    return response.data;
86}
87async function apiSharedVehicleDamageImage(axiosInstance, params, query, requestConfig) {
88    const response = await axiosInstance.request({
89        url: "shared-vehicle/".concat(params.id, "/damage-image/").concat(params.fileId),
90        method: "GET",
91        params: query,
92        responseType: "blob",
93        ...requestConfig
94    });
95    return response.data;
96}
97async function apiSharedVehicleDamageTemplate(axiosInstance, params, query, requestConfig) {
98    const response = await axiosInstance.request({
99        url: "shared-vehicle/".concat(params.id, "/damage-template"),
100        method: "GET",
101        params: query,
102        responseType: "blob",
103        ...requestConfig
104    });
105    return response.data;
106}
107async function apiSharedVehicleFavorite(axiosInstance, params, requestConfig) {
108    const response = await axiosInstance.request({
109        url: "shared-vehicle/".concat(params.id, "/favorite"),
110        method: "POST",
111        ...requestConfig
112    });
113    return response.data;
114}
115async function apiSharedVehicleFuelLevel(axiosInstance, params, requestConfig) {
116    const response = await axiosInstance.request({
117        url: "shared-vehicle/".concat(params.id, "/fuel-level"),
118        method: "GET",
119        ...requestConfig
120    });
121    return response.data;
122}
123async function apiSharedVehicleImage(axiosInstance, params, query, requestConfig) {
124    const response = await axiosInstance.request({
125        url: "shared-vehicle/".concat(params.id, "/image/").concat(params.fileId),
126        method: "GET",
127        params: query,
128        responseType: "blob",
129        ...requestConfig
130    });
131    return response.data;
132}
133async function apiSharedVehicleInsuranceProfile(axiosInstance, params, body, requestConfig) {
134    const response = await axiosInstance.request({
135        url: "shared-vehicle/".concat(params.id, "/insurance-profile"),
136        method: "POST",
137        data: body,
138        ...requestConfig
139    });
140    return response.data;
141}
142async function apiSharedVehicleListDamages(axiosInstance, params, body, requestConfig) {
143    const response = await axiosInstance.request({
144        url: "shared-vehicle/".concat(params.id, "/damages"),
145        method: "POST",
146        data: body,
147        ...requestConfig
148    });
149    return response.data;
150}
151async function apiSharedVehiclePricing(axiosInstance, params, body, requestConfig) {
152    const response = await axiosInstance.request({
153        url: "shared-vehicle/".concat(params.id, "/pricing"),
154        method: "POST",
155        data: body,
156        ...requestConfig
157    });
158    return response.data;
159}
160async function apiSharedVehicleSingle(axiosInstance, params, requestConfig) {
161    const response = await axiosInstance.request({
162        url: "shared-vehicle/".concat(params.id),
163        method: "GET",
164        ...requestConfig
165    });
166    return response.data;
167}
168async function apiSharedVehicleStateOfCharge(axiosInstance, params, requestConfig) {
169    const response = await axiosInstance.request({
170        url: "shared-vehicle/".concat(params.id, "/state-of-charge"),
171        method: "GET",
172        ...requestConfig
173    });
174    return response.data;
175}
176;
177;
178;
179function useSharedVehicleAddDamage() {
180    let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
181    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
182    const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])();
183    return (0, __TURBOPACK__imported__module__954616__["useMutation"])({
184        mutationFn: (variables)=>apiSharedVehicleAddDamage(axiosInstance, {
185                id: variables["id"]
186            }, {
187                image: variables["image"],
188                description: variables["description"],
189                reservationId: variables["reservationId"],
190                x: variables["x"],
191                y: variables["y"],
192                addDamagePhase: variables["addDamagePhase"]
193            }, variables === null || variables === void 0 ? void 0 : variables.requestConfig),
194        ...options
195    });
196}
197function useSharedVehicleAdminList(opts) {
198    var _ref;
199    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
200    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
201    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
202        queryKey: useSharedVehicleAdminList.queryKey(opts),
203        queryFn: (param)=>{
204            let { signal } = param;
205            var _opts, _requestConfig;
206            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
207            opts.requestConfig.signal = signal;
208            return apiSharedVehicleAdminList(axiosInstance, {
209                offset: opts["offset"],
210                limit: opts["limit"]
211            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
212        },
213        ...options
214    });
215}
216/**
217 * Base key used by useSharedVehicleAdminList.queryKey()
218 */ useSharedVehicleAdminList.baseKey = ()=>[
219        "sharedVehicle",
220        "adminList"
221    ];
222/**
223 * Query key used by useSharedVehicleAdminList
224 */ useSharedVehicleAdminList.queryKey = (opts)=>{
225    var _opts_offset, _opts_limit;
226    return [
227        ...useSharedVehicleAdminList.baseKey(),
228        {
229            offset: (_opts_offset = opts["offset"]) !== null && _opts_offset !== void 0 ? _opts_offset : null,
230            limit: (_opts_limit = opts["limit"]) !== null && _opts_limit !== void 0 ? _opts_limit : null
231        }
232    ];
233};
234/**
235 * Fetch useSharedVehicleAdminList via the queryClient and return the result
236 */ useSharedVehicleAdminList.fetch = (queryClient, axiosInstance, opts)=>{
237    return queryClient.fetchQuery({
238        queryKey: useSharedVehicleAdminList.queryKey(opts),
239        queryFn: ()=>{
240            return apiSharedVehicleAdminList(axiosInstance, {
241                offset: opts["offset"],
242                limit: opts["limit"]
243            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
244        }
245    });
246};
247/**
248 * Prefetch useSharedVehicleAdminList via the queryClient
249 */ useSharedVehicleAdminList.prefetch = (queryClient, axiosInstance, opts)=>{
250    return queryClient.prefetchQuery({
251        queryKey: useSharedVehicleAdminList.queryKey(opts),
252        queryFn: ()=>{
253            return apiSharedVehicleAdminList(axiosInstance, {
254                offset: opts["offset"],
255                limit: opts["limit"]
256            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
257        }
258    });
259};
260/**
261 * Invalidate useSharedVehicleAdminList via the queryClient
262 */ useSharedVehicleAdminList.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
263        queryKey: useSharedVehicleAdminList.queryKey(opts)
264    });
265/**
266 * Set query data for useSharedVehicleAdminList via the queryClient
267 */ useSharedVehicleAdminList.setQueryData = (queryClient, opts, data)=>{
268    return queryClient.setQueryData(useSharedVehicleAdminList.queryKey(opts), data);
269};
270function useSharedVehicleAdminSingle(opts) {
271    var _ref;
272    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
273    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
274    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null;
275    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
276        queryKey: useSharedVehicleAdminSingle.queryKey(opts),
277        queryFn: (param)=>{
278            let { signal } = param;
279            var _opts, _requestConfig;
280            if (opts["id"] === undefined || opts["id"] === null) {
281                throw new Error("Not all required variables where provided to 'useSharedVehicleAdminSingle'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
282            }
283            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
284            opts.requestConfig.signal = signal;
285            return apiSharedVehicleAdminSingle(axiosInstance, {
286                id: opts["id"]
287            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
288        },
289        ...options
290    });
291}
292/**
293 * Base key used by useSharedVehicleAdminSingle.queryKey()
294 */ useSharedVehicleAdminSingle.baseKey = ()=>[
295        "sharedVehicle",
296        "adminSingle"
297    ];
298/**
299 * Query key used by useSharedVehicleAdminSingle
300 */ useSharedVehicleAdminSingle.queryKey = (opts)=>[
301        ...useSharedVehicleAdminSingle.baseKey(),
302        {
303            id: opts["id"]
304        }
305    ];
306/**
307 * Fetch useSharedVehicleAdminSingle via the queryClient and return the result
308 */ useSharedVehicleAdminSingle.fetch = (queryClient, axiosInstance, opts)=>{
309    return queryClient.fetchQuery({
310        queryKey: useSharedVehicleAdminSingle.queryKey(opts),
311        queryFn: ()=>{
312            if (opts["id"] === undefined || opts["id"] === null) {
313                throw new Error("Not all required variables where provided to 'useSharedVehicleAdminSingle.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
314            }
315            return apiSharedVehicleAdminSingle(axiosInstance, {
316                id: opts["id"]
317            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
318        }
319    });
320};
321/**
322 * Prefetch useSharedVehicleAdminSingle via the queryClient
323 */ useSharedVehicleAdminSingle.prefetch = (queryClient, axiosInstance, opts)=>{
324    return queryClient.prefetchQuery({
325        queryKey: useSharedVehicleAdminSingle.queryKey(opts),
326        queryFn: ()=>{
327            if (opts["id"] === undefined || opts["id"] === null) {
328                throw new Error("Not all required variables where provided to 'useSharedVehicleAdminSingle.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
329            }
330            return apiSharedVehicleAdminSingle(axiosInstance, {
331                id: opts["id"]
332            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
333        }
334    });
335};
336/**
337 * Invalidate useSharedVehicleAdminSingle via the queryClient
338 */ useSharedVehicleAdminSingle.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
339        queryKey: useSharedVehicleAdminSingle.queryKey(opts)
340    });
341/**
342 * Set query data for useSharedVehicleAdminSingle via the queryClient
343 */ useSharedVehicleAdminSingle.setQueryData = (queryClient, opts, data)=>{
344    if (opts["id"] === undefined || opts["id"] === null) {
345        throw new Error("Not all required variables where provided to 'useSharedVehicleAdminSingle.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
346    }
347    return queryClient.setQueryData(useSharedVehicleAdminSingle.queryKey(opts), data);
348};
349function useSharedVehicleAdminUpdate() {
350    let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
351    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
352    const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])();
353    return (0, __TURBOPACK__imported__module__954616__["useMutation"])({
354        mutationFn: (variables)=>apiSharedVehicleAdminUpdate(axiosInstance, {
355                id: variables["id"]
356            }, {
357                parkingInstructions: variables["parkingInstructions"],
358                fuelInstructions: variables["fuelInstructions"],
359                fuelCardDetails: variables["fuelCardDetails"],
360                fuelCardPin: variables["fuelCardPin"],
361                minimumBatteryCharge: variables["minimumBatteryCharge"],
362                parkingLocation: variables["parkingLocation"],
363                parkingLocationRadius: variables["parkingLocationRadius"],
364                address: variables["address"],
365                damageCheckBeforeBooking: variables["damageCheckBeforeBooking"],
366                damageCheckAfterBooking: variables["damageCheckAfterBooking"],
367                skopeiId: variables["skopeiId"],
368                skopeiBluetoothName: variables["skopeiBluetoothName"],
369                skopeiDeviceType: variables["skopeiDeviceType"],
370                customerGroup: variables["customerGroup"],
371                defaultLocationId: variables["defaultLocationId"],
372                hardwareProvider: variables["hardwareProvider"]
373            }, variables === null || variables === void 0 ? void 0 : variables.requestConfig),
374        ...options
375    });
376}
377function useSharedVehicleAvailability(opts) {
378    var _ref;
379    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
380    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
381    options.enabled = options.enabled === true || options.enabled !== false && opts["locale"] !== undefined && opts["locale"] !== null && opts["datePickup"] !== undefined && opts["datePickup"] !== null && opts["dateReturn"] !== undefined && opts["dateReturn"] !== null && opts["mainCategoryId"] !== undefined && opts["mainCategoryId"] !== null;
382    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
383        queryKey: useSharedVehicleAvailability.queryKey(opts),
384        queryFn: (param)=>{
385            let { signal } = param;
386            var _opts, _requestConfig;
387            if (opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null || opts["mainCategoryId"] === undefined || opts["mainCategoryId"] === null) {
388                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailability'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
389            }
390            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
391            opts.requestConfig.signal = signal;
392            return apiSharedVehicleAvailability(axiosInstance, {
393                locale: opts["locale"],
394                datePickup: opts["datePickup"],
395                dateReturn: opts["dateReturn"],
396                mainCategoryId: opts["mainCategoryId"],
397                filters: opts["filters"]
398            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
399        },
400        ...options
401    });
402}
403/**
404 * Base key used by useSharedVehicleAvailability.queryKey()
405 */ useSharedVehicleAvailability.baseKey = ()=>[
406        "sharedVehicle",
407        "availability"
408    ];
409/**
410 * Query key used by useSharedVehicleAvailability
411 */ useSharedVehicleAvailability.queryKey = (opts)=>{
412    var _opts_filters;
413    return [
414        ...useSharedVehicleAvailability.baseKey(),
415        {
416            locale: opts["locale"],
417            datePickup: opts["datePickup"],
418            dateReturn: opts["dateReturn"],
419            mainCategoryId: opts["mainCategoryId"],
420            filters: (_opts_filters = opts["filters"]) !== null && _opts_filters !== void 0 ? _opts_filters : null
421        }
422    ];
423};
424/**
425 * Fetch useSharedVehicleAvailability via the queryClient and return the result
426 */ useSharedVehicleAvailability.fetch = (queryClient, axiosInstance, opts)=>{
427    return queryClient.fetchQuery({
428        queryKey: useSharedVehicleAvailability.queryKey(opts),
429        queryFn: ()=>{
430            if (opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null || opts["mainCategoryId"] === undefined || opts["mainCategoryId"] === null) {
431                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailability.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
432            }
433            return apiSharedVehicleAvailability(axiosInstance, {
434                locale: opts["locale"],
435                datePickup: opts["datePickup"],
436                dateReturn: opts["dateReturn"],
437                mainCategoryId: opts["mainCategoryId"],
438                filters: opts["filters"]
439            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
440        }
441    });
442};
443/**
444 * Prefetch useSharedVehicleAvailability via the queryClient
445 */ useSharedVehicleAvailability.prefetch = (queryClient, axiosInstance, opts)=>{
446    return queryClient.prefetchQuery({
447        queryKey: useSharedVehicleAvailability.queryKey(opts),
448        queryFn: ()=>{
449            if (opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null || opts["mainCategoryId"] === undefined || opts["mainCategoryId"] === null) {
450                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailability.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
451            }
452            return apiSharedVehicleAvailability(axiosInstance, {
453                locale: opts["locale"],
454                datePickup: opts["datePickup"],
455                dateReturn: opts["dateReturn"],
456                mainCategoryId: opts["mainCategoryId"],
457                filters: opts["filters"]
458            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
459        }
460    });
461};
462/**
463 * Invalidate useSharedVehicleAvailability via the queryClient
464 */ useSharedVehicleAvailability.invalidate = (queryClient, opts)=>
464queryClient.invalidateQueries({
465        queryKey: useSharedVehicleAvailability.queryKey(opts)
466    });
467/**
468 * Set query data for useSharedVehicleAvailability via the queryClient
469 */ useSharedVehicleAvailability.setQueryData = (queryClient, opts, data)=>{
470    if (opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null || opts["mainCategoryId"] === undefined || opts["mainCategoryId"] === null) {
471        throw new Error("Not all required variables where provided to 'useSharedVehicleAvailability.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
472    }
473    return queryClient.setQueryData(useSharedVehicleAvailability.queryKey(opts), data);
474};
475function useSharedVehicleAvailabilityCalendar(opts) {
476    var _ref;
477    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
478    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
479    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["startDate"] !== undefined && opts["startDate"] !== null && opts["endDate"] !== undefined && opts["endDate"] !== null;
480    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
481        queryKey: useSharedVehicleAvailabilityCalendar.queryKey(opts),
482        queryFn: (param)=>{
483            let { signal } = param;
484            var _opts, _requestConfig;
485            if (opts["id"] === undefined || opts["id"] === null || opts["startDate"] === undefined || opts["startDate"] === null || opts["endDate"] === undefined || opts["endDate"] === null) {
486                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailabilityCalendar'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
487            }
488            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
489            opts.requestConfig.signal = signal;
490            return apiSharedVehicleAvailabilityCalendar(axiosInstance, {
491                id: opts["id"]
492            }, {
493                startDate: opts["startDate"],
494                endDate: opts["endDate"],
495                reservationId: opts["reservationId"]
496            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
497        },
498        ...options
499    });
500}
501/**
502 * Base key used by useSharedVehicleAvailabilityCalendar.queryKey()
503 */ useSharedVehicleAvailabilityCalendar.baseKey = ()=>[
504        "sharedVehicle",
505        "availabilityCalendar"
506    ];
507/**
508 * Query key used by useSharedVehicleAvailabilityCalendar
509 */ useSharedVehicleAvailabilityCalendar.queryKey = (opts)=>{
510    var _opts_reservationId;
511    return [
512        ...useSharedVehicleAvailabilityCalendar.baseKey(),
513        {
514            id: opts["id"]
515        },
516        {
517            startDate: opts["startDate"],
518            endDate: opts["endDate"],
519            reservationId: (_opts_reservationId = opts["reservationId"]) !== null && _opts_reservationId !== void 0 ? _opts_reservationId : null
520        }
521    ];
522};
523/**
524 * Fetch useSharedVehicleAvailabilityCalendar via the queryClient and return the result
525 */ useSharedVehicleAvailabilityCalendar.fetch = (queryClient, axiosInstance, opts)=>{
526    return queryClient.fetchQuery({
527        queryKey: useSharedVehicleAvailabilityCalendar.queryKey(opts),
528        queryFn: ()=>{
529            if (opts["id"] === undefined || opts["id"] === null || opts["startDate"] === undefined || opts["startDate"] === null || opts["endDate"] === undefined || opts["endDate"] === null) {
530                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailabilityCalendar.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
531            }
532            return apiSharedVehicleAvailabilityCalendar(axiosInstance, {
533                id: opts["id"]
534            }, {
535                startDate: opts["startDate"],
536                endDate: opts["endDate"],
537                reservationId: opts["reservationId"]
538            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
539        }
540    });
541};
542/**
543 * Prefetch useSharedVehicleAvailabilityCalendar via the queryClient
544 */ useSharedVehicleAvailabilityCalendar.prefetch = (queryClient, axiosInstance, opts)=>{
545    return queryClient.prefetchQuery({
546        queryKey: useSharedVehicleAvailabilityCalendar.queryKey(opts),
547        queryFn: ()=>{
548            if (opts["id"] === undefined || opts["id"] === null || opts["startDate"] === undefined || opts["startDate"] === null || opts["endDate"] === undefined || opts["endDate"] === null) {
549                throw new Error("Not all required variables where provided to 'useSharedVehicleAvailabilityCalendar.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
550            }
551            return apiSharedVehicleAvailabilityCalendar(axiosInstance, {
552                id: opts["id"]
553            }, {
554                startDate: opts["startDate"],
555                endDate: opts["endDate"],
556                reservationId: opts["reservationId"]
557            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
558        }
559    });
560};
561/**
562 * Invalidate useSharedVehicleAvailabilityCalendar via the queryClient
563 */ useSharedVehicleAvailabilityCalendar.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
564        queryKey: useSharedVehicleAvailabilityCalendar.queryKey(opts)
565    });
566/**
567 * Set query data for useSharedVehicleAvailabilityCalendar via the queryClient
568 */ useSharedVehicleAvailabilityCalendar.setQueryData = (queryClient, opts, data)=>{
569    if (opts["id"] === undefined || opts["id"] === null || opts["startDate"] === undefined || opts["startDate"] === null || opts["endDate"] === undefined || opts["endDate"] === null) {
570        throw new Error("Not all required variables where provided to 'useSharedVehicleAvailabilityCalendar.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
571    }
572    return queryClient.setQueryData(useSharedVehicleAvailabilityCalendar.queryKey(opts), data);
573};
574function useSharedVehicleCreateBooking() {
575    let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
576    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
577    const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])();
578    return (0, __TURBOPACK__imported__module__954616__["useMutation"])({
579        mutationFn: (variables)=>apiSharedVehicleCreateBooking(axiosInstance, {
580                id: variables["id"]
581            }, {
582                locale: variables["locale"],
583                datePickup: variables["datePickup"],
584                dateReturn: variables["dateReturn"],
585                referenceText: variables["referenceText"],
586                discountCode: variables["discountCode"],
587                expectedKilometers: variables["expectedKilometers"],
588                paymentMethod: variables["paymentMethod"],
589                insuranceProfileOptionId: variables["insuranceProfileOptionId"],
590                insuranceProfileOption: variables["insuranceProfileOption"],
591                driverId: variables["driverId"],
592                includeExtraDriver: variables["includeExtraDriver"],
593                businessCustomerId: variables["businessCustomerId"]
594            }, variables === null || variables === void 0 ? void 0 : variables.requestConfig),
595        ...options
596    });
597}
598function useSharedVehicleDamageImage(opts) {
599    var _ref;
600    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
601    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
602    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["fileId"] !== undefined && opts["fileId"] !== null && opts["accessToken"] !== undefined && opts["accessToken"] !== null && opts["w"] !== undefined && opts["w"] !== null;
603    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
604        queryKey: useSharedVehicleDamageImage.queryKey(opts),
605        queryFn: (param)=>{
606            let { signal } = param;
607            var _opts, _requestConfig;
608            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["accessToken"] === undefined || opts["accessToken"] === null || opts["w"] === undefined || opts["w"] === null) {
609                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageImage'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
610            }
611            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
612            opts.requestConfig.signal = signal;
613            return apiSharedVehicleDamageImage(axiosInstance, {
614                id: opts["id"],
615                fileId: opts["fileId"]
616            }, {
617                accessToken: opts["accessToken"],
618                q: opts["q"],
619                w: opts["w"]
620            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
621        },
622        ...options
623    });
624}
625/**
626 * Base key used by useSharedVehicleDamageImage.queryKey()
627 */ useSharedVehicleDamageImage.baseKey = ()=>[
628        "sharedVehicle",
629        "damageImage"
630    ];
631/**
632 * Query key used by useSharedVehicleDamageImage
633 */ useSharedVehicleDamageImage.queryKey = (opts)=>{
634    var _opts_q;
635    return [
636        ...useSharedVehicleDamageImage.baseKey(),
637        {
638            id: opts["id"],
639            fileId: opts["fileId"]
640        },
641        {
642            accessToken: opts["accessToken"],
643            q: (_opts_q = opts["q"]) !== null && _opts_q !== void 0 ? _opts_q : null,
644            w: opts["w"]
645        }
646    ];
647};
648/**
649 * Fetch useSharedVehicleDamageImage via the queryClient and return the result
650 */ useSharedVehicleDamageImage.fetch = (queryClient, axiosInstance, opts)=>{
651    return queryClient.fetchQuery({
652        queryKey: useSharedVehicleDamageImage.queryKey(opts),
653        queryFn: ()=>{
654            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["accessToken"] === undefined || opts["accessToken"] === null || opts["w"] === undefined || opts["w"] === null) {
655                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageImage.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
656            }
657            return apiSharedVehicleDamageImage(axiosInstance, {
658                id: opts["id"],
659                fileId: opts["fileId"]
660            }, {
661                accessToken: opts["accessToken"],
662                q: opts["q"],
663                w: opts["w"]
664            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
665        }
666    });
667};
668/**
669 * Prefetch useSharedVehicleDamageImage via the queryClient
670 */ useSharedVehicleDamageImage.prefetch = (queryClient, axiosInstance, opts)=>{
671    return queryClient.prefetchQuery({
672        queryKey: useSharedVehicleDamageImage.queryKey(opts),
673        queryFn: ()=>{
674            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["accessToken"] === undefined || opts["accessToken"] === null || opts["w"] === undefined || opts["w"] === null) {
675                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageImage.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
676            }
677            return apiSharedVehicleDamageImage(axiosInstance, {
678                id: opts["id"],
679                fileId: opts["fileId"]
680            }, {
681                accessToken: opts["accessToken"],
682                q: opts["q"],
683                w: opts["w"]
684            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
685        }
686    });
687};
688/**
689 * Invalidate useSharedVehicleDamageImage via the queryClient
690 */ useSharedVehicleDamageImage.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
691        queryKey: useSharedVehicleDamageImage.queryKey(opts)
692    });
693/**
694 * Set query data for useSharedVehicleDamageImage via the queryClient
695 */ useSharedVehicleDamageImage.setQueryData = (queryClient, opts, data)=>{
696    if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["accessToken"] === undefined || opts["accessToken"] === null || opts["w"] === undefined || opts["w"] === null) {
697        throw new Error("Not all required variables where provided to 'useSharedVehicleDamageImage.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
698    }
699    return queryClient.setQueryData(useSharedVehicleDamageImage.queryKey(opts), data);
700};
701function useSharedVehicleDamageTemplate(opts) {
702    var _ref;
703    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
704    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
705    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["w"] !== undefined && opts["w"] !== null;
706    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
707        queryKey: useSharedVehicleDamageTemplate.queryKey(opts),
708        queryFn: (param)=>{
709            let { signal } = param;
710            var _opts, _requestConfig;
711            if (opts["id"] === undefined || opts["id"] === null || opts["w"] === undefined || opts["w"] === null) {
712                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageTemplate'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
713            }
714            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
715            opts.requestConfig.signal = signal;
716            return apiSharedVehicleDamageTemplate(axiosInstance, {
717                id: opts["id"]
718            }, {
719                q: opts["q"],
720                w: opts["w"]
721            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
722        },
723        ...options
724    });
725}
726/**
727 * Base key used by useSharedVehicleDamageTemplate.queryKey()
728 */ useSharedVehicleDamageTemplate.baseKey = ()=>[
729        "sharedVehicle",
730        "damageTemplate"
731    ];
732/**
733 * Query key used by useSharedVehicleDamageTemplate
734 */ useSharedVehicleDamageTemplate.queryKey = (opts)=>{
735    var _opts_q;
736    return [
737        ...useSharedVehicleDamageTemplate.baseKey(),
738        {
739            id: opts["id"]
740        },
741        {
742            q: (_opts_q = opts["q"]) !== null && _opts_q !== void 0 ? _opts_q : null,
743            w: opts["w"]
744        }
745    ];
746};
747/**
748 * Fetch useSharedVehicleDamageTemplate via the queryClient and return the result
749 */ useSharedVehicleDamageTemplate.fetch = (queryClient, axiosInstance, opts)=>{
750    return queryClient.fetchQuery({
751        queryKey: useSharedVehicleDamageTemplate.queryKey(opts),
752        queryFn: ()=>{
753            if (opts["id"] === undefined || opts["id"] === null || opts["w"] === undefined || opts["w"] === null) {
754                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageTemplate.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
755            }
756            return apiSharedVehicleDamageTemplate(axiosInstance, {
757                id: opts["id"]
758            }, {
759                q: opts["q"],
760                w: opts["w"]
761            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
762        }
763    });
764};
765/**
766 * Prefetch useSharedVehicleDamageTemplate via the queryClient
767 */ useSharedVehicleDamageTemplate.prefetch = (queryClient, axiosInstance, opts)=>{
768    return queryClient.prefetchQuery({
769        queryKey: useSharedVehicleDamageTemplate.queryKey(opts),
770        queryFn: ()=>{
771            if (opts["id"] === undefined || opts["id"] === null || opts["w"] === undefined || opts["w"] === null) {
772                throw new Error("Not all required variables where provided to 'useSharedVehicleDamageTemplate.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
773            }
774            return apiSharedVehicleDamageTemplate(axiosInstance, {
775                id: opts["id"]
776            }, {
777                q: opts["q"],
778                w: opts["w"]
779            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
780        }
781    });
782};
783/**
784 * Invalidate useSharedVehicleDamageTemplate via the queryClient
785 */ useSharedVehicleDamageTemplate.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
786        queryKey: useSharedVehicleDamageTemplate.queryKey(opts)
787    });
788/**
789 * Set query data for useSharedVehicleDamageTemplate via the queryClient
790 */ useSharedVehicleDamageTemplate.setQueryData = (queryClient, opts, data)=>{
791    if (opts["id"] === undefined || opts["id"] === null || opts["w"] === undefined || opts["w"] === null) {
792        throw new Error("Not all required variables where provided to 'useSharedVehicleDamageTemplate.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
793    }
794    return queryClient.setQueryData(useSharedVehicleDamageTemplate.queryKey(opts), data);
795};
796function useSharedVehicleFavorite() {
797    let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
798    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
799    const queryClient = (0, __TURBOPACK__imported__module__912598__["useQueryClient"])();
800    return (0, __TURBOPACK__imported__module__954616__["useMutation"])({
801        mutationFn: (variables)=>apiSharedVehicleFavorite(axiosInstance, {
802                id: variables["id"]
803            }, variables === null || variables === void 0 ? void 0 : variables.requestConfig),
804        ...options
805    });
806}
807function useSharedVehicleFuelLevel(opts) {
808    var _ref;
809    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
810    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
811    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null;
812    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
813        queryKey: useSharedVehicleFuelLevel.queryKey(opts),
814        queryFn: (param)=>{
815            let { signal } = param;
816            var _opts, _requestConfig;
817            if (opts["id"] === undefined || opts["id"] === null) {
818                throw new Error("Not all required variables where provided to 'useSharedVehicleFuelLevel'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
819            }
820            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
821            opts.requestConfig.signal = signal;
822            return apiSharedVehicleFuelLevel(axiosInstance, {
823                id: opts["id"]
824            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
825        },
826        ...options
827    });
828}
829/**
830 * Base key used by useSharedVehicleFuelLevel.queryKey()
831 */ useSharedVehicleFuelLevel.baseKey = ()=>[
832        "sharedVehicle",
833        "fuelLevel"
834    ];
835/**
836 * Query key used by useSharedVehicleFuelLevel
837 */ useSharedVehicleFuelLevel.queryKey = (opts)=>[
838        ...useSharedVehicleFuelLevel.baseKey(),
839        {
840            id: opts["id"]
841        }
842    ];
843/**
844 * Fetch useSharedVehicleFuelLevel via the queryClient and return the result
845 */ useSharedVehicleFuelLevel.fetch = (queryClient, axiosInstance, opts)=>{
846    return queryClient.fetchQuery({
847        queryKey: useSharedVehicleFuelLevel.queryKey(opts),
848        queryFn: ()=>{
849            if (opts["id"] === undefined || opts["id"] === null) {
850                throw new Error("Not all required variables where provided to 'useSharedVehicleFuelLevel.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
851            }
852            return apiSharedVehicleFuelLevel(axiosInstance, {
853                id: opts["id"]
854            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
855        }
856    });
857};
858/**
859 * Prefetch useSharedVehicleFuelLevel via the queryClient
860 */ useSharedVehicleFuelLevel.prefetch = (queryClient, axiosInstance, opts)=>{
861    return queryClient.prefetchQuery({
862        queryKey: useSharedVehicleFuelLevel.queryKey(opts),
863        queryFn: ()=>{
864            if (opts["id"] === undefined || opts["id"] === null) {
865                throw new Error("Not all required variables where provided to 'useSharedVehicleFuelLevel.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
866            }
867            return apiSharedVehicleFuelLevel(axiosInstance, {
868                id: opts["id"]
869            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
870        }
871    });
872};
873/**
874 * Invalidate useSharedVehicleFuelLevel via the queryClient
875 */ useSharedVehicleFuelLevel.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
876        queryKey: useSharedVehicleFuelLevel.queryKey(opts)
877    });
878/**
879 * Set query data for useSharedVehicleFuelLevel via the queryClient
880 */ useSharedVehicleFuelLevel.setQueryData = (queryClient, opts, data)=>{
881    if (opts["id"] === undefined || opts["id"] === null) {
882        throw new Error("Not all required variables where provided to 'useSharedVehicleFuelLevel.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
883    }
884    return queryClient.setQueryData(useSharedVehicleFuelLevel.queryKey(opts), data);
885};
886function useSharedVehicleImage(opts) {
887    var _ref;
888    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
889    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
890    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["fileId"] !== undefined && opts["fileId"] !== null && opts["w"] !== undefined && opts["w"] !== null;
891    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
892        queryKey: useSharedVehicleImage.queryKey(opts),
893        queryFn: (param)=>{
894            let { signal } = param;
895            var _opts, _requestConfig;
896            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["w"] === undefined || opts["w"] === null) {
897                throw new Error("Not all required variables where provided to 'useSharedVehicleImage'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
898            }
899            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
900            opts.requestConfig.signal = signal;
901            return apiSharedVehicleImage(axiosInstance, {
902                id: opts["id"],
903                fileId: opts["fileId"]
904            }, {
905                q: opts["q"],
906                w: opts["w"]
907            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
908        },
909        ...options
910    });
911}
912/**
913 * Base key used by useSharedVehicleImage.queryKey()
914 */ useSharedVehicleImage.baseKey = ()=>[
915        "sharedVehicle",
916        "image"
917    ];
918/**
919 * Query key used by useSharedVehicleImage
920 */ useSharedVehicleImage.queryKey = (opts)=>{
921    var _opts_q;
922    return [
923        ...useSharedVehicleImage.baseKey(),
924        {
925            id: opts["id"],
926            fileId: opts["fileId"]
927        },
928        {
929            q: (_opts_q = opts["q"]) !== null && _opts_q !== void 0 ? _opts_q : null,
930            w: opts["w"]
931        }
932    ];
933};
934/**
935 * Fetch useSharedVehicleImage via the queryClient and return the result
936 */ useSharedVehicleImage.fetch = (queryClient, axiosInstance, opts)=>{
937    return queryClient.fetchQuery({
938        queryKey: useSharedVehicleImage.queryKey(opts),
939        queryFn: ()=>{
940            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["w"] === undefined || opts["w"] === null) {
941                throw new Error("Not all required variables where provided to 'useSharedVehicleImage.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
942            }
943            return apiSharedVehicleImage(axiosInstance, {
944                id: opts["id"],
945                fileId: opts["fileId"]
946            }, {
947                q: opts["q"],
948                w: opts["w"]
949            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
950        }
951    });
952};
953/**
954 * Prefetch useSharedVehicleImage via the queryClient
955 */ useSharedVehicleImage.prefetch = (queryClient, axiosInstance, opts)=>{
956    return queryClient.prefetchQuery({
957        queryKey: useSharedVehicleImage.queryKey(opts),
958        queryFn: ()=>{
959            if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["w"] === undefined || opts["w"] === null) {
960                throw new Error("Not all required variables where provided to 'useSharedVehicleImage.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
961            }
962            return apiSharedVehicleImage(axiosInstance, {
963                id: opts["id"],
964                fileId: opts["fileId"]
965            }, {
966                q: opts["q"],
967                w: opts["w"]
968            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
969        }
970    });
971};
972/**
973 * Invalidate useSharedVehicleImage via the queryClient
974 */ useSharedVehicleImage.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
975        queryKey: useSharedVehicleImage.queryKey(opts)
976    });
977/**
978 * Set query data for useSharedVehicleImage via the queryClient
979 */ useSharedVehicleImage.setQueryData = (queryClient, opts, data)=>{
980    if (opts["id"] === undefined || opts["id"] === null || opts["fileId"] === undefined || opts["fileId"] === null || opts["w"] === undefined || opts["w"] === null) {
981        throw new Error("Not all required variables where provided to 'useSharedVehicleImage.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
982    }
983    return queryClient.setQueryData(useSharedVehicleImage.queryKey(opts), data);
984};
985function useSharedVehicleInsuranceProfile(opts) {
986    var _ref;
987    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
988    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
989    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["locale"] !== undefined && opts["locale"] !== null && opts["datePickup"] !== undefined && opts["datePickup"] !== null && opts["dateReturn"] !== undefined && opts["dateReturn"] !== null;
990    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
991        queryKey: useSharedVehicleInsuranceProfile.queryKey(opts),
992        queryFn: (param)=>{
993            let { signal } = param;
994            var _opts, _requestConfig;
995            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
996                throw new Error("Not all required variables where provided to 'useSharedVehicleInsuranceProfile'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
997            }
998            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
999            opts.requestConfig.signal = signal;
1000            return apiSharedVehicleInsuranceProfile(axiosInstance, {
1001                id: opts["id"]
1002            }, {
1003                locale: opts["locale"],
1004                datePickup: opts["datePickup"],
1005                dateReturn: opts["dateReturn"]
1006            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1007        },
1008        ...options
1009    });
1010}
1011/**
1012 * Base key used by useSharedVehicleInsuranceProfile.queryKey()
1013 */ useSharedVehicleInsuranceProfile.baseKey = ()=>[
1014        "sharedVehicle",
1015        "insuranceProfile"
1016    ];
1017/**
1018 * Query key used by useSharedVehicleInsuranceProfile
1019 */ useSharedVehicleInsuranceProfile.queryKey = (opts)=>[
1020        ...useSharedVehicleInsuranceProfile.baseKey(),
1021        {
1022            id: opts["id"]
1023        },
1024        {
1025            locale: opts["locale"],
1026            datePickup: opts["datePickup"],
1027            dateReturn: opts["dateReturn"]
1028        }
1029    ];
1030/**
1031 * Fetch useSharedVehicleInsuranceProfile via the queryClient and return the result
1032 */ useSharedVehicleInsuranceProfile.fetch = (queryClient, axiosInstance, opts)=>{
1033    return queryClient.fetchQuery({
1034        queryKey: useSharedVehicleInsuranceProfile.queryKey(opts),
1035        queryFn: ()=>{
1036            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1037                throw new Error("Not all required variables where provided to 'useSharedVehicleInsuranceProfile.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1038            }
1039            return apiSharedVehicleInsuranceProfile(axiosInstance, {
1040                id: opts["id"]
1041            }, {
1042                locale: opts["locale"],
1043                datePickup: opts["datePickup"],
1044                dateReturn: opts["dateReturn"]
1045            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1046        }
1047    });
1048};
1049/**
1050 * Prefetch useSharedVehicleInsuranceProfile via the queryClient
1051 */ useSharedVehicleInsuranceProfile.prefetch = (queryClient, axiosInstance, opts)=>{
1052    return queryClient.prefetchQuery({
1053        queryKey: useSharedVehicleInsuranceProfile.queryKey(opts),
1054        queryFn: ()=>{
1055            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1056                throw new Error("Not all required variables where provided to 'useSharedVehicleInsuranceProfile.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1057            }
1058            return apiSharedVehicleInsuranceProfile(axiosInstance, {
1059                id: opts["id"]
1060            }, {
1061                locale: opts["locale"],
1062                datePickup: opts["datePickup"],
1063                dateReturn: opts["dateReturn"]
1064            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1065        }
1066    });
1067};
1068/**
1069 * Invalidate useSharedVehicleInsuranceProfile via the queryClient
1070 */ useSharedVehicleInsuranceProfile.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
1071        queryKey: useSharedVehicleInsuranceProfile.queryKey(opts)
1072    });
1073/**
1074 * Set query data for useSharedVehicleInsuranceProfile via the queryClient
1075 */ useSharedVehicleInsuranceProfile.setQueryData = (queryClient, opts, data)=>{
1076    if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1077        throw new Error("Not all required variables where provided to 'useSharedVehicleInsuranceProfile.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1078    }
1079    return queryClient.setQueryData(useSharedVehicleInsuranceProfile.queryKey(opts), data);
1080};
1081function useSharedVehicleListDamages(opts) {
1082    var _ref;
1083    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
1084    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
1085    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["locale"] !== undefined && opts["locale"] !== null;
1086    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
1087        queryKey: useSharedVehicleListDamages.queryKey(opts),
1088        queryFn: (param)=>{
1089            let { signal } = param;
1090            var _opts, _requestConfig;
1091            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null) {
1092                throw new Error("Not all required variables where provided to 'useSharedVehicleListDamages'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1093            }
1094            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
1095            opts.requestConfig.signal = signal;
1096            return apiSharedVehicleListDamages(axiosInstance, {
1097                id: opts["id"]
1098            }, {
1099                locale: opts["locale"]
1100            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1101        },
1102        ...options
1103    });
1104}
1105/**
1106 * Base key used by useSharedVehicleListDamages.queryKey()
1107 */ useSharedVehicleListDamages.baseKey = ()=>[
1108        "sharedVehicle",
1109        "listDamages"
1110    ];
1111/**
1112 * Query key used by useSharedVehicleListDamages
1113 */ useSharedVehicleListDamages.queryKey = (opts)=>[
1114        ...useSharedVehicleListDamages.baseKey(),
1115        {
1116            id: opts["id"]
1117        },
1118        {
1119            locale: opts["locale"]
1120        }
1121    ];
1122/**
1123 * Fetch useSharedVehicleListDamages via the queryClient and return the result
1124 */ useSharedVehicleListDamages.fetch = (queryClient, axiosInstance, opts)=>{
1125    return queryClient.fetchQuery({
1126        queryKey: useSharedVehicleListDamages.queryKey(opts),
1127        queryFn: ()=>{
1128            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null) {
1129                throw new Error("Not all required variables where provided to 'useSharedVehicleListDamages.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1130            }
1131            return apiSharedVehicleListDamages(axiosInstance, {
1132                id: opts["id"]
1133            }, {
1134                locale: opts["locale"]
1135            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1136        }
1137    });
1138};
1139/**
1140 * Prefetch useSharedVehicleListDamages via the queryClient
1141 */ useSharedVehicleListDamages.prefetch = (queryClient, axiosInstance, opts)=>{
1142    return queryClient.prefetchQuery({
1143        queryKey: useSharedVehicleListDamages.queryKey(opts),
1144        queryFn: ()=>{
1145            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null) {
1146                throw new Error("Not all required variables where provided to 'useSharedVehicleListDamages.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1147            }
1148            return apiSharedVehicleListDamages(axiosInstance, {
1149                id: opts["id"]
1150            }, {
1151                locale: opts["locale"]
1152            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1153        }
1154    });
1155};
1156/**
1157 * Invalidate useSharedVehicleListDamages via the queryClient
1158 */ useSharedVehicleListDamages.invalidate = (queryClient, opts)=>
1158queryClient.invalidateQueries({
1159        queryKey: useSharedVehicleListDamages.queryKey(opts)
1160    });
1161/**
1162 * Set query data for useSharedVehicleListDamages via the queryClient
1163 */ useSharedVehicleListDamages.setQueryData = (queryClient, opts, data)=>{
1164    if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null) {
1165        throw new Error("Not all required variables where provided to 'useSharedVehicleListDamages.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1166    }
1167    return queryClient.setQueryData(useSharedVehicleListDamages.queryKey(opts), data);
1168};
1169function useSharedVehiclePricing(opts) {
1170    var _ref;
1171    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
1172    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
1173    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null && opts["locale"] !== undefined && opts["locale"] !== null && opts["datePickup"] !== undefined && opts["datePickup"] !== null && opts["dateReturn"] !== undefined && opts["dateReturn"] !== null;
1174    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
1175        queryKey: useSharedVehiclePricing.queryKey(opts),
1176        queryFn: (param)=>{
1177            let { signal } = param;
1178            var _opts, _requestConfig;
1179            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1180                throw new Error("Not all required variables where provided to 'useSharedVehiclePricing'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1181            }
1182            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
1183            opts.requestConfig.signal = signal;
1184            return apiSharedVehiclePricing(axiosInstance, {
1185                id: opts["id"]
1186            }, {
1187                locale: opts["locale"],
1188                datePickup: opts["datePickup"],
1189                dateReturn: opts["dateReturn"],
1190                discountCode: opts["discountCode"],
1191                expectedKilometers: opts["expectedKilometers"],
1192                paymentMethod: opts["paymentMethod"],
1193                insuranceProfileOptionId: opts["insuranceProfileOptionId"],
1194                insuranceProfileOption: opts["insuranceProfileOption"],
1195                driverId: opts["driverId"],
1196                includeExtraDriver: opts["includeExtraDriver"],
1197                businessCustomerId: opts["businessCustomerId"]
1198            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1199        },
1200        ...options
1201    });
1202}
1203/**
1204 * Base key used by useSharedVehiclePricing.queryKey()
1205 */ useSharedVehiclePricing.baseKey = ()=>[
1206        "sharedVehicle",
1207        "pricing"
1208    ];
1209/**
1210 * Query key used by useSharedVehiclePricing
1211 */ useSharedVehiclePricing.queryKey = (opts)=>{
1212    var _opts_discountCode, _opts_expectedKilometers, _opts_paymentMethod, _opts_insuranceProfileOptionId, _opts_insuranceProfileOption, _opts_driverId, _opts_includeExtraDriver, _opts_businessCustomerId;
1213    return [
1214        ...useSharedVehiclePricing.baseKey(),
1215        {
1216            id: opts["id"]
1217        },
1218        {
1219            locale: opts["locale"],
1220            datePickup: opts["datePickup"],
1221            dateReturn: opts["dateReturn"],
1222            discountCode: (_opts_discountCode = opts["discountCode"]) !== null && _opts_discountCode !== void 0 ? _opts_discountCode : null,
1223            expectedKilometers: (_opts_expectedKilometers = opts["expectedKilometers"]) !== null && _opts_expectedKilometers !== void 0 ? _opts_expectedKilometers : null,
1224            paymentMethod: (_opts_paymentMethod = opts["paymentMethod"]) !== null && _opts_paymentMethod !== void 0 ? _opts_paymentMethod : null,
1225            insuranceProfileOptionId: (_opts_insuranceProfileOptionId = opts["insuranceProfileOptionId"]) !== null && _opts_insuranceProfileOptionId !== void 0 ? _opts_insuranceProfileOptionId : null,
1226            insuranceProfileOption: (_opts_insuranceProfileOption = opts["insuranceProfileOption"]) !== null && _opts_insuranceProfileOption !== void 0 ? _opts_insuranceProfileOption : null,
1227            driverId: (_opts_driverId = opts["driverId"]) !== null && _opts_driverId !== void 0 ? _opts_driverId : null,
1228            includeExtraDriver: (_opts_includeExtraDriver = opts["includeExtraDriver"]) !== null && _opts_includeExtraDriver !== void 0 ? _opts_includeExtraDriver : null,
1229            businessCustomerId: (_opts_businessCustomerId = opts["businessCustomerId"]) !== null && _opts_businessCustomerId !== void 0 ? _opts_businessCustomerId : null
1230        }
1231    ];
1232};
1233/**
1234 * Fetch useSharedVehiclePricing via the queryClient and return the result
1235 */ useSharedVehiclePricing.fetch = (queryClient, axiosInstance, opts)=>{
1236    return queryClient.fetchQuery({
1237        queryKey: useSharedVehiclePricing.queryKey(opts),
1238        queryFn: ()=>{
1239            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1240                throw new Error("Not all required variables where provided to 'useSharedVehiclePricing.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1241            }
1242            return apiSharedVehiclePricing(axiosInstance, {
1243                id: opts["id"]
1244            }, {
1245                locale: opts["locale"],
1246                datePickup: opts["datePickup"],
1247                dateReturn: opts["dateReturn"],
1248                discountCode: opts["discountCode"],
1249                expectedKilometers: opts["expectedKilometers"],
1250                paymentMethod: opts["paymentMethod"],
1251                insuranceProfileOptionId: opts["insuranceProfileOptionId"],
1252                insuranceProfileOption: opts["insuranceProfileOption"],
1253                driverId: opts["driverId"],
1254                includeExtraDriver: opts["includeExtraDriver"],
1255                businessCustomerId: opts["businessCustomerId"]
1256            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1257        }
1258    });
1259};
1260/**
1261 * Prefetch useSharedVehiclePricing via the queryClient
1262 */ useSharedVehiclePricing.prefetch = (queryClient, axiosInstance, opts)=>{
1263    return queryClient.prefetchQuery({
1264        queryKey: useSharedVehiclePricing.queryKey(opts),
1265        queryFn: ()=>{
1266            if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1267                throw new Error("Not all required variables where provided to 'useSharedVehiclePricing.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1268            }
1269            return apiSharedVehiclePricing(axiosInstance, {
1270                id: opts["id"]
1271            }, {
1272                locale: opts["locale"],
1273                datePickup: opts["datePickup"],
1274                dateReturn: opts["dateReturn"],
1275                discountCode: opts["discountCode"],
1276                expectedKilometers: opts["expectedKilometers"],
1277                paymentMethod: opts["paymentMethod"],
1278                insuranceProfileOptionId: opts["insuranceProfileOptionId"],
1279                insuranceProfileOption: opts["insuranceProfileOption"],
1280                driverId: opts["driverId"],
1281                includeExtraDriver: opts["includeExtraDriver"],
1282                businessCustomerId: opts["businessCustomerId"]
1283            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1284        }
1285    });
1286};
1287/**
1288 * Invalidate useSharedVehiclePricing via the queryClient
1289 */ useSharedVehiclePricing.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
1290        queryKey: useSharedVehiclePricing.queryKey(opts)
1291    });
1292/**
1293 * Set query data for useSharedVehiclePricing via the queryClient
1294 */ useSharedVehiclePricing.setQueryData = (queryClient, opts, data)=>{
1295    if (opts["id"] === undefined || opts["id"] === null || opts["locale"] === undefined || opts["locale"] === null || opts["datePickup"] === undefined || opts["datePickup"] === null || opts["dateReturn"] === undefined || opts["dateReturn"] === null) {
1296        throw new Error("Not all required variables where provided to 'useSharedVehiclePricing.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1297    }
1298    return queryClient.setQueryData(useSharedVehiclePricing.queryKey(opts), data);
1299};
1300function useSharedVehicleSingle(opts) {
1301    var _ref;
1302    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
1303    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
1304    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null;
1305    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
1306        queryKey: useSharedVehicleSingle.queryKey(opts),
1307        queryFn: (param)=>{
1308            let { signal } = param;
1309            var _opts, _requestConfig;
1310            if (opts["id"] === undefined || opts["id"] === null) {
1311                throw new Error("Not all required variables where provided to 'useSharedVehicleSingle'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1312            }
1313            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
1314            opts.requestConfig.signal = signal;
1315            return apiSharedVehicleSingle(axiosInstance, {
1316                id: opts["id"]
1317            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1318        },
1319        ...options
1320    });
1321}
1322/**
1323 * Base key used by useSharedVehicleSingle.queryKey()
1324 */ useSharedVehicleSingle.baseKey = ()=>[
1325        "sharedVehicle",
1326        "single"
1327    ];
1328/**
1329 * Query key used by useSharedVehicleSingle
1330 */ useSharedVehicleSingle.queryKey = (opts)=>[
1331        ...useSharedVehicleSingle.baseKey(),
1332        {
1333            id: opts["id"]
1334        }
1335    ];
1336/**
1337 * Fetch useSharedVehicleSingle via the queryClient and return the result
1338 */ useSharedVehicleSingle.fetch = (queryClient, axiosInstance, opts)=>{
1339    return queryClient.fetchQuery({
1340        queryKey: useSharedVehicleSingle.queryKey(opts),
1341        queryFn: ()=>{
1342            if (opts["id"] === undefined || opts["id"] === null) {
1343                throw new Error("Not all required variables where provided to 'useSharedVehicleSingle.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1344            }
1345            return apiSharedVehicleSingle(axiosInstance, {
1346                id: opts["id"]
1347            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1348        }
1349    });
1350};
1351/**
1352 * Prefetch useSharedVehicleSingle via the queryClient
1353 */ useSharedVehicleSingle.prefetch = (queryClient, axiosInstance, opts)=>{
1354    return queryClient.prefetchQuery({
1355        queryKey: useSharedVehicleSingle.queryKey(opts),
1356        queryFn: ()=>{
1357            if (opts["id"] === undefined || opts["id"] === null) {
1358                throw new Error("Not all required variables where provided to 'useSharedVehicleSingle.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1359            }
1360            return apiSharedVehicleSingle(axiosInstance, {
1361                id: opts["id"]
1362            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1363        }
1364    });
1365};
1366/**
1367 * Invalidate useSharedVehicleSingle via the queryClient
1368 */ useSharedVehicleSingle.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
1369        queryKey: useSharedVehicleSingle.queryKey(opts)
1370    });
1371/**
1372 * Set query data for useSharedVehicleSingle via the queryClient
1373 */ useSharedVehicleSingle.setQueryData = (queryClient, opts, data)=>{
1374    if (opts["id"] === undefined || opts["id"] === null) {
1375        throw new Error("Not all required variables where provided to 'useSharedVehicleSingle.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1376    }
1377    return queryClient.setQueryData(useSharedVehicleSingle.queryKey(opts), data);
1378};
1379function useSharedVehicleStateOfCharge(opts) {
1380    var _ref;
1381    const axiosInstance = (0, __TURBOPACK__imported__module__197643__["useApi"])();
1382    const options = (_ref = opts === null || opts === void 0 ? void 0 : opts.queryOptions) !== null && _ref !== void 0 ? _ref : {};
1383    options.enabled = options.enabled === true || options.enabled !== false && opts["id"] !== undefined && opts["id"] !== null;
1384    return (0, __TURBOPACK__imported__module__266027__["useQuery"])({
1385        queryKey: useSharedVehicleStateOfCharge.queryKey(opts),
1386        queryFn: (param)=>{
1387            let { signal } = param;
1388            var _opts, _requestConfig;
1389            if (opts["id"] === undefined || opts["id"] === null) {
1390                throw new Error("Not all required variables where provided to 'useSharedVehicleStateOfCharge'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1391            }
1392            (_requestConfig = (_opts = opts).requestConfig) !== null && _requestConfig !== void 0 ? _requestConfig : _opts.requestConfig = {};
1393            opts.requestConfig.signal = signal;
1394            return apiSharedVehicleStateOfCharge(axiosInstance, {
1395                id: opts["id"]
1396            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1397        },
1398        ...options
1399    });
1400}
1401/**
1402 * Base key used by useSharedVehicleStateOfCharge.queryKey()
1403 */ useSharedVehicleStateOfCharge.baseKey = ()=>[
1404        "sharedVehicle",
1405        "stateOfCharge"
1406    ];
1407/**
1408 * Query key used by useSharedVehicleStateOfCharge
1409 */ useSharedVehicleStateOfCharge.queryKey = (opts)=>[
1410        ...useSharedVehicleStateOfCharge.baseKey(),
1411        {
1412            id: opts["id"]
1413        }
1414    ];
1415/**
1416 * Fetch useSharedVehicleStateOfCharge via the queryClient and return the result
1417 */ useSharedVehicleStateOfCharge.fetch = (queryClient, axiosInstance, opts)=>{
1418    return queryClient.fetchQuery({
1419        queryKey: useSharedVehicleStateOfCharge.queryKey(opts),
1420        queryFn: ()=>{
1421            if (opts["id"] === undefined || opts["id"] === null) {
1422                throw new Error("Not all required variables where provided to 'useSharedVehicleStateOfCharge.fetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1423            }
1424            return apiSharedVehicleStateOfCharge(axiosInstance, {
1425                id: opts["id"]
1426            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1427        }
1428    });
1429};
1430/**
1431 * Prefetch useSharedVehicleStateOfCharge via the queryClient
1432 */ useSharedVehicleStateOfCharge.prefetch = (queryClient, axiosInstance, opts)=>{
1433    return queryClient.prefetchQuery({
1434        queryKey: useSharedVehicleStateOfCharge.queryKey(opts),
1435        queryFn: ()=>{
1436            if (opts["id"] === undefined || opts["id"] === null) {
1437                throw new Error("Not all required variables where provided to 'useSharedVehicleStateOfCharge.prefetchQuery'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1438            }
1439            return apiSharedVehicleStateOfCharge(axiosInstance, {
1440                id: opts["id"]
1441            }, opts === null || opts === void 0 ? void 0 : opts.requestConfig);
1442        }
1443    });
1444};
1445/**
1446 * Invalidate useSharedVehicleStateOfCharge via the queryClient
1447 */ useSharedVehicleStateOfCharge.invalidate = (queryClient, opts)=>queryClient.invalidateQueries({
1448        queryKey: useSharedVehicleStateOfCharge.queryKey(opts)
1449    });
1450/**
1451 * Set query data for useSharedVehicleStateOfCharge via the queryClient
1452 */ useSharedVehicleStateOfCharge.setQueryData = (queryClient, opts, data)=>{
1453    if (opts["id"] === undefined || opts["id"] === null) {
1454        throw new Error("Not all required variables where provided to 'useSharedVehicleStateOfCharge.setQueryData'. This happens when you manually set 'queryOptions.enabled' or when you use 'refetch'. Both skip the generated 'queryOptions.enabled'. Make sure that all necessary arguments are set.");
1455    }
1456    return queryClient.setQueryData(useSharedVehicleStateOfCharge.queryKey(opts), data);
1457};
1458__turbopack_context__.s([
1459    "useSharedVehicleAdminList",
1460    0,
1461    useSharedVehicleAdminList,
1462    "useSharedVehicleAdminSingle",
1463    0,
1464    useSharedVehicleAdminSingle,
1465    "useSharedVehicleAdminUpdate",
1466    0,
1467    useSharedVehicleAdminUpdate
1468], 719508);
1469}),
1470]);
1471
1472//# debugId=1dd21fa4-f1be-dfce-c88e-f5406a0f9a1a

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.