@voyantjs/ground-react 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +58 -0
  4. package/dist/hooks/index.d.ts +7 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +6 -0
  7. package/dist/hooks/use-ground-driver-mutation.d.ts +48 -0
  8. package/dist/hooks/use-ground-driver-mutation.d.ts.map +1 -0
  9. package/dist/hooks/use-ground-driver-mutation.js +40 -0
  10. package/dist/hooks/use-ground-drivers.d.ts +23 -0
  11. package/dist/hooks/use-ground-drivers.d.ts.map +1 -0
  12. package/dist/hooks/use-ground-drivers.js +12 -0
  13. package/dist/hooks/use-ground-operator-mutation.d.ts +42 -0
  14. package/dist/hooks/use-ground-operator-mutation.d.ts.map +1 -0
  15. package/dist/hooks/use-ground-operator-mutation.js +40 -0
  16. package/dist/hooks/use-ground-operators.d.ts +21 -0
  17. package/dist/hooks/use-ground-operators.d.ts.map +1 -0
  18. package/dist/hooks/use-ground-operators.js +12 -0
  19. package/dist/hooks/use-ground-vehicle-mutation.d.ts +60 -0
  20. package/dist/hooks/use-ground-vehicle-mutation.d.ts.map +1 -0
  21. package/dist/hooks/use-ground-vehicle-mutation.js +40 -0
  22. package/dist/hooks/use-ground-vehicles.d.ts +27 -0
  23. package/dist/hooks/use-ground-vehicles.d.ts.map +1 -0
  24. package/dist/hooks/use-ground-vehicles.js +12 -0
  25. package/dist/index.d.ts +7 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +6 -0
  28. package/dist/provider.d.ts +2 -0
  29. package/dist/provider.d.ts.map +1 -0
  30. package/dist/provider.js +1 -0
  31. package/dist/query-keys.d.ts +35 -0
  32. package/dist/query-keys.d.ts.map +1 -0
  33. package/dist/query-keys.js +12 -0
  34. package/dist/query-options.d.ts +417 -0
  35. package/dist/query-options.d.ts.map +1 -0
  36. package/dist/query-options.js +63 -0
  37. package/dist/schemas.d.ts +212 -0
  38. package/dist/schemas.d.ts.map +1 -0
  39. package/dist/schemas.js +45 -0
  40. package/package.json +79 -0
@@ -0,0 +1,417 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseGroundDriversOptions } from "./hooks/use-ground-drivers.js";
3
+ import type { UseGroundOperatorsOptions } from "./hooks/use-ground-operators.js";
4
+ import type { UseGroundVehiclesOptions } from "./hooks/use-ground-vehicles.js";
5
+ export declare function getGroundOperatorsQueryOptions(client: FetchWithValidationOptions, options?: UseGroundOperatorsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
6
+ data: {
7
+ name: string;
8
+ active: boolean;
9
+ id: string;
10
+ supplierId: string | null;
11
+ facilityId: string | null;
12
+ code: string | null;
13
+ notes: string | null;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ }[];
17
+ total: number;
18
+ limit: number;
19
+ offset: number;
20
+ }, Error, {
21
+ data: {
22
+ name: string;
23
+ active: boolean;
24
+ id: string;
25
+ supplierId: string | null;
26
+ facilityId: string | null;
27
+ code: string | null;
28
+ notes: string | null;
29
+ createdAt: string;
30
+ updatedAt: string;
31
+ }[];
32
+ total: number;
33
+ limit: number;
34
+ offset: number;
35
+ }, readonly ["ground", "operators", import("./query-keys.js").GroundOperatorsListFilters]>, "queryFn"> & {
36
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
37
+ data: {
38
+ name: string;
39
+ active: boolean;
40
+ id: string;
41
+ supplierId: string | null;
42
+ facilityId: string | null;
43
+ code: string | null;
44
+ notes: string | null;
45
+ createdAt: string;
46
+ updatedAt: string;
47
+ }[];
48
+ total: number;
49
+ limit: number;
50
+ offset: number;
51
+ }, readonly ["ground", "operators", import("./query-keys.js").GroundOperatorsListFilters], never> | undefined;
52
+ } & {
53
+ queryKey: readonly ["ground", "operators", import("./query-keys.js").GroundOperatorsListFilters] & {
54
+ [dataTagSymbol]: {
55
+ data: {
56
+ name: string;
57
+ active: boolean;
58
+ id: string;
59
+ supplierId: string | null;
60
+ facilityId: string | null;
61
+ code: string | null;
62
+ notes: string | null;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ }[];
66
+ total: number;
67
+ limit: number;
68
+ offset: number;
69
+ };
70
+ [dataTagErrorSymbol]: Error;
71
+ };
72
+ };
73
+ export declare function getGroundOperatorQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
74
+ name: string;
75
+ active: boolean;
76
+ id: string;
77
+ supplierId: string | null;
78
+ facilityId: string | null;
79
+ code: string | null;
80
+ notes: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ }, Error, {
84
+ name: string;
85
+ active: boolean;
86
+ id: string;
87
+ supplierId: string | null;
88
+ facilityId: string | null;
89
+ code: string | null;
90
+ notes: string | null;
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ }, readonly ["ground", "operators", string]>, "queryFn"> & {
94
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
95
+ name: string;
96
+ active: boolean;
97
+ id: string;
98
+ supplierId: string | null;
99
+ facilityId: string | null;
100
+ code: string | null;
101
+ notes: string | null;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ }, readonly ["ground", "operators", string], never> | undefined;
105
+ } & {
106
+ queryKey: readonly ["ground", "operators", string] & {
107
+ [dataTagSymbol]: {
108
+ name: string;
109
+ active: boolean;
110
+ id: string;
111
+ supplierId: string | null;
112
+ facilityId: string | null;
113
+ code: string | null;
114
+ notes: string | null;
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ };
118
+ [dataTagErrorSymbol]: Error;
119
+ };
120
+ };
121
+ export declare function getGroundVehiclesQueryOptions(client: FetchWithValidationOptions, options?: UseGroundVehiclesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
122
+ data: {
123
+ resourceId: string;
124
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
125
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
126
+ isAccessible: boolean;
127
+ active: boolean;
128
+ id: string;
129
+ operatorId: string | null;
130
+ passengerCapacity: number | null;
131
+ checkedBagCapacity: number | null;
132
+ carryOnCapacity: number | null;
133
+ wheelchairCapacity: number | null;
134
+ childSeatCapacity: number | null;
135
+ notes: string | null;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ }[];
139
+ total: number;
140
+ limit: number;
141
+ offset: number;
142
+ }, Error, {
143
+ data: {
144
+ resourceId: string;
145
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
146
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
147
+ isAccessible: boolean;
148
+ active: boolean;
149
+ id: string;
150
+ operatorId: string | null;
151
+ passengerCapacity: number | null;
152
+ checkedBagCapacity: number | null;
153
+ carryOnCapacity: number | null;
154
+ wheelchairCapacity: number | null;
155
+ childSeatCapacity: number | null;
156
+ notes: string | null;
157
+ createdAt: string;
158
+ updatedAt: string;
159
+ }[];
160
+ total: number;
161
+ limit: number;
162
+ offset: number;
163
+ }, readonly ["ground", "vehicles", import("./query-keys.js").GroundVehiclesListFilters]>, "queryFn"> & {
164
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
165
+ data: {
166
+ resourceId: string;
167
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
168
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
169
+ isAccessible: boolean;
170
+ active: boolean;
171
+ id: string;
172
+ operatorId: string | null;
173
+ passengerCapacity: number | null;
174
+ checkedBagCapacity: number | null;
175
+ carryOnCapacity: number | null;
176
+ wheelchairCapacity: number | null;
177
+ childSeatCapacity: number | null;
178
+ notes: string | null;
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ }[];
182
+ total: number;
183
+ limit: number;
184
+ offset: number;
185
+ }, readonly ["ground", "vehicles", import("./query-keys.js").GroundVehiclesListFilters], never> | undefined;
186
+ } & {
187
+ queryKey: readonly ["ground", "vehicles", import("./query-keys.js").GroundVehiclesListFilters] & {
188
+ [dataTagSymbol]: {
189
+ data: {
190
+ resourceId: string;
191
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
192
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
193
+ isAccessible: boolean;
194
+ active: boolean;
195
+ id: string;
196
+ operatorId: string | null;
197
+ passengerCapacity: number | null;
198
+ checkedBagCapacity: number | null;
199
+ carryOnCapacity: number | null;
200
+ wheelchairCapacity: number | null;
201
+ childSeatCapacity: number | null;
202
+ notes: string | null;
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ }[];
206
+ total: number;
207
+ limit: number;
208
+ offset: number;
209
+ };
210
+ [dataTagErrorSymbol]: Error;
211
+ };
212
+ };
213
+ export declare function getGroundVehicleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
214
+ resourceId: string;
215
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
216
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
217
+ isAccessible: boolean;
218
+ active: boolean;
219
+ id: string;
220
+ operatorId: string | null;
221
+ passengerCapacity: number | null;
222
+ checkedBagCapacity: number | null;
223
+ carryOnCapacity: number | null;
224
+ wheelchairCapacity: number | null;
225
+ childSeatCapacity: number | null;
226
+ notes: string | null;
227
+ createdAt: string;
228
+ updatedAt: string;
229
+ }, Error, {
230
+ resourceId: string;
231
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
232
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
233
+ isAccessible: boolean;
234
+ active: boolean;
235
+ id: string;
236
+ operatorId: string | null;
237
+ passengerCapacity: number | null;
238
+ checkedBagCapacity: number | null;
239
+ carryOnCapacity: number | null;
240
+ wheelchairCapacity: number | null;
241
+ childSeatCapacity: number | null;
242
+ notes: string | null;
243
+ createdAt: string;
244
+ updatedAt: string;
245
+ }, readonly ["ground", "vehicles", string]>, "queryFn"> & {
246
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
247
+ resourceId: string;
248
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
249
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
250
+ isAccessible: boolean;
251
+ active: boolean;
252
+ id: string;
253
+ operatorId: string | null;
254
+ passengerCapacity: number | null;
255
+ checkedBagCapacity: number | null;
256
+ carryOnCapacity: number | null;
257
+ wheelchairCapacity: number | null;
258
+ childSeatCapacity: number | null;
259
+ notes: string | null;
260
+ createdAt: string;
261
+ updatedAt: string;
262
+ }, readonly ["ground", "vehicles", string], never> | undefined;
263
+ } & {
264
+ queryKey: readonly ["ground", "vehicles", string] & {
265
+ [dataTagSymbol]: {
266
+ resourceId: string;
267
+ category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train";
268
+ vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible";
269
+ isAccessible: boolean;
270
+ active: boolean;
271
+ id: string;
272
+ operatorId: string | null;
273
+ passengerCapacity: number | null;
274
+ checkedBagCapacity: number | null;
275
+ carryOnCapacity: number | null;
276
+ wheelchairCapacity: number | null;
277
+ childSeatCapacity: number | null;
278
+ notes: string | null;
279
+ createdAt: string;
280
+ updatedAt: string;
281
+ };
282
+ [dataTagErrorSymbol]: Error;
283
+ };
284
+ };
285
+ export declare function getGroundDriversQueryOptions(client: FetchWithValidationOptions, options?: UseGroundDriversOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
286
+ data: {
287
+ resourceId: string;
288
+ spokenLanguages: string[];
289
+ isGuide: boolean;
290
+ isMeetAndGreetCapable: boolean;
291
+ active: boolean;
292
+ id: string;
293
+ operatorId: string | null;
294
+ licenseNumber: string | null;
295
+ notes: string | null;
296
+ createdAt: string;
297
+ updatedAt: string;
298
+ }[];
299
+ total: number;
300
+ limit: number;
301
+ offset: number;
302
+ }, Error, {
303
+ data: {
304
+ resourceId: string;
305
+ spokenLanguages: string[];
306
+ isGuide: boolean;
307
+ isMeetAndGreetCapable: boolean;
308
+ active: boolean;
309
+ id: string;
310
+ operatorId: string | null;
311
+ licenseNumber: string | null;
312
+ notes: string | null;
313
+ createdAt: string;
314
+ updatedAt: string;
315
+ }[];
316
+ total: number;
317
+ limit: number;
318
+ offset: number;
319
+ }, readonly ["ground", "drivers", import("./query-keys.js").GroundDriversListFilters]>, "queryFn"> & {
320
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
321
+ data: {
322
+ resourceId: string;
323
+ spokenLanguages: string[];
324
+ isGuide: boolean;
325
+ isMeetAndGreetCapable: boolean;
326
+ active: boolean;
327
+ id: string;
328
+ operatorId: string | null;
329
+ licenseNumber: string | null;
330
+ notes: string | null;
331
+ createdAt: string;
332
+ updatedAt: string;
333
+ }[];
334
+ total: number;
335
+ limit: number;
336
+ offset: number;
337
+ }, readonly ["ground", "drivers", import("./query-keys.js").GroundDriversListFilters], never> | undefined;
338
+ } & {
339
+ queryKey: readonly ["ground", "drivers", import("./query-keys.js").GroundDriversListFilters] & {
340
+ [dataTagSymbol]: {
341
+ data: {
342
+ resourceId: string;
343
+ spokenLanguages: string[];
344
+ isGuide: boolean;
345
+ isMeetAndGreetCapable: boolean;
346
+ active: boolean;
347
+ id: string;
348
+ operatorId: string | null;
349
+ licenseNumber: string | null;
350
+ notes: string | null;
351
+ createdAt: string;
352
+ updatedAt: string;
353
+ }[];
354
+ total: number;
355
+ limit: number;
356
+ offset: number;
357
+ };
358
+ [dataTagErrorSymbol]: Error;
359
+ };
360
+ };
361
+ export declare function getGroundDriverQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
362
+ resourceId: string;
363
+ spokenLanguages: string[];
364
+ isGuide: boolean;
365
+ isMeetAndGreetCapable: boolean;
366
+ active: boolean;
367
+ id: string;
368
+ operatorId: string | null;
369
+ licenseNumber: string | null;
370
+ notes: string | null;
371
+ createdAt: string;
372
+ updatedAt: string;
373
+ }, Error, {
374
+ resourceId: string;
375
+ spokenLanguages: string[];
376
+ isGuide: boolean;
377
+ isMeetAndGreetCapable: boolean;
378
+ active: boolean;
379
+ id: string;
380
+ operatorId: string | null;
381
+ licenseNumber: string | null;
382
+ notes: string | null;
383
+ createdAt: string;
384
+ updatedAt: string;
385
+ }, readonly ["ground", "drivers", string]>, "queryFn"> & {
386
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
387
+ resourceId: string;
388
+ spokenLanguages: string[];
389
+ isGuide: boolean;
390
+ isMeetAndGreetCapable: boolean;
391
+ active: boolean;
392
+ id: string;
393
+ operatorId: string | null;
394
+ licenseNumber: string | null;
395
+ notes: string | null;
396
+ createdAt: string;
397
+ updatedAt: string;
398
+ }, readonly ["ground", "drivers", string], never> | undefined;
399
+ } & {
400
+ queryKey: readonly ["ground", "drivers", string] & {
401
+ [dataTagSymbol]: {
402
+ resourceId: string;
403
+ spokenLanguages: string[];
404
+ isGuide: boolean;
405
+ isMeetAndGreetCapable: boolean;
406
+ active: boolean;
407
+ id: string;
408
+ operatorId: string | null;
409
+ licenseNumber: string | null;
410
+ notes: string | null;
411
+ createdAt: string;
412
+ updatedAt: string;
413
+ };
414
+ [dataTagErrorSymbol]: Error;
415
+ };
416
+ };
417
+ //# sourceMappingURL=query-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AAqB9E,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxC;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3F;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvC;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY1F;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtC;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzF"}
@@ -0,0 +1,63 @@
1
+ "use client";
2
+ import { queryOptions } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "./client.js";
4
+ import { groundQueryKeys } from "./query-keys.js";
5
+ import { groundDriverListResponse, groundDriverSingleResponse, groundOperatorListResponse, groundOperatorSingleResponse, groundVehicleListResponse, groundVehicleSingleResponse, } from "./schemas.js";
6
+ function toQueryString(filters) {
7
+ const params = new URLSearchParams();
8
+ for (const [key, value] of Object.entries(filters)) {
9
+ if (value === undefined || value === null || value === "")
10
+ continue;
11
+ params.set(key, String(value));
12
+ }
13
+ const qs = params.toString();
14
+ return qs ? `?${qs}` : "";
15
+ }
16
+ export function getGroundOperatorsQueryOptions(client, options = {}) {
17
+ const { enabled: _enabled = true, ...filters } = options;
18
+ return queryOptions({
19
+ queryKey: groundQueryKeys.operatorsList(filters),
20
+ queryFn: () => fetchWithValidation(`/v1/ground/operators${toQueryString(filters)}`, groundOperatorListResponse, client),
21
+ });
22
+ }
23
+ export function getGroundOperatorQueryOptions(client, id) {
24
+ return queryOptions({
25
+ queryKey: groundQueryKeys.operator(id),
26
+ queryFn: async () => {
27
+ const { data } = await fetchWithValidation(`/v1/ground/operators/${id}`, groundOperatorSingleResponse, client);
28
+ return data;
29
+ },
30
+ });
31
+ }
32
+ export function getGroundVehiclesQueryOptions(client, options = {}) {
33
+ const { enabled: _enabled = true, ...filters } = options;
34
+ return queryOptions({
35
+ queryKey: groundQueryKeys.vehiclesList(filters),
36
+ queryFn: () => fetchWithValidation(`/v1/ground/vehicles${toQueryString(filters)}`, groundVehicleListResponse, client),
37
+ });
38
+ }
39
+ export function getGroundVehicleQueryOptions(client, id) {
40
+ return queryOptions({
41
+ queryKey: groundQueryKeys.vehicle(id),
42
+ queryFn: async () => {
43
+ const { data } = await fetchWithValidation(`/v1/ground/vehicles/${id}`, groundVehicleSingleResponse, client);
44
+ return data;
45
+ },
46
+ });
47
+ }
48
+ export function getGroundDriversQueryOptions(client, options = {}) {
49
+ const { enabled: _enabled = true, ...filters } = options;
50
+ return queryOptions({
51
+ queryKey: groundQueryKeys.driversList(filters),
52
+ queryFn: () => fetchWithValidation(`/v1/ground/drivers${toQueryString(filters)}`, groundDriverListResponse, client),
53
+ });
54
+ }
55
+ export function getGroundDriverQueryOptions(client, id) {
56
+ return queryOptions({
57
+ queryKey: groundQueryKeys.driver(id),
58
+ queryFn: async () => {
59
+ const { data } = await fetchWithValidation(`/v1/ground/drivers/${id}`, groundDriverSingleResponse, client);
60
+ return data;
61
+ },
62
+ });
63
+ }
@@ -0,0 +1,212 @@
1
+ import { z } from "zod";
2
+ export declare const paginatedEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
3
+ data: z.ZodArray<T>;
4
+ total: z.ZodNumber;
5
+ limit: z.ZodNumber;
6
+ offset: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
9
+ data: T;
10
+ }, z.core.$strip>;
11
+ export declare const successEnvelope: z.ZodObject<{
12
+ success: z.ZodBoolean;
13
+ }, z.core.$strip>;
14
+ export declare const groundOperatorRecordSchema: z.ZodObject<{
15
+ name: z.ZodString;
16
+ active: z.ZodDefault<z.ZodBoolean>;
17
+ id: z.ZodString;
18
+ supplierId: z.ZodNullable<z.ZodString>;
19
+ facilityId: z.ZodNullable<z.ZodString>;
20
+ code: z.ZodNullable<z.ZodString>;
21
+ notes: z.ZodNullable<z.ZodString>;
22
+ createdAt: z.ZodString;
23
+ updatedAt: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type GroundOperatorRecord = z.infer<typeof groundOperatorRecordSchema>;
26
+ export declare const groundVehicleRecordSchema: z.ZodObject<{
27
+ resourceId: z.ZodString;
28
+ category: z.ZodDefault<z.ZodEnum<{
29
+ other: "other";
30
+ car: "car";
31
+ sedan: "sedan";
32
+ suv: "suv";
33
+ van: "van";
34
+ minibus: "minibus";
35
+ bus: "bus";
36
+ boat: "boat";
37
+ train: "train";
38
+ }>>;
39
+ vehicleClass: z.ZodDefault<z.ZodEnum<{
40
+ other: "other";
41
+ economy: "economy";
42
+ standard: "standard";
43
+ premium: "premium";
44
+ luxury: "luxury";
45
+ accessible: "accessible";
46
+ }>>;
47
+ isAccessible: z.ZodDefault<z.ZodBoolean>;
48
+ active: z.ZodDefault<z.ZodBoolean>;
49
+ id: z.ZodString;
50
+ operatorId: z.ZodNullable<z.ZodString>;
51
+ passengerCapacity: z.ZodNullable<z.ZodNumber>;
52
+ checkedBagCapacity: z.ZodNullable<z.ZodNumber>;
53
+ carryOnCapacity: z.ZodNullable<z.ZodNumber>;
54
+ wheelchairCapacity: z.ZodNullable<z.ZodNumber>;
55
+ childSeatCapacity: z.ZodNullable<z.ZodNumber>;
56
+ notes: z.ZodNullable<z.ZodString>;
57
+ createdAt: z.ZodString;
58
+ updatedAt: z.ZodString;
59
+ }, z.core.$strip>;
60
+ export type GroundVehicleRecord = z.infer<typeof groundVehicleRecordSchema>;
61
+ export declare const groundDriverRecordSchema: z.ZodObject<{
62
+ resourceId: z.ZodString;
63
+ spokenLanguages: z.ZodDefault<z.ZodArray<z.ZodString>>;
64
+ isGuide: z.ZodDefault<z.ZodBoolean>;
65
+ isMeetAndGreetCapable: z.ZodDefault<z.ZodBoolean>;
66
+ active: z.ZodDefault<z.ZodBoolean>;
67
+ id: z.ZodString;
68
+ operatorId: z.ZodNullable<z.ZodString>;
69
+ licenseNumber: z.ZodNullable<z.ZodString>;
70
+ notes: z.ZodNullable<z.ZodString>;
71
+ createdAt: z.ZodString;
72
+ updatedAt: z.ZodString;
73
+ }, z.core.$strip>;
74
+ export type GroundDriverRecord = z.infer<typeof groundDriverRecordSchema>;
75
+ export declare const groundOperatorListResponse: z.ZodObject<{
76
+ data: z.ZodArray<z.ZodObject<{
77
+ name: z.ZodString;
78
+ active: z.ZodDefault<z.ZodBoolean>;
79
+ id: z.ZodString;
80
+ supplierId: z.ZodNullable<z.ZodString>;
81
+ facilityId: z.ZodNullable<z.ZodString>;
82
+ code: z.ZodNullable<z.ZodString>;
83
+ notes: z.ZodNullable<z.ZodString>;
84
+ createdAt: z.ZodString;
85
+ updatedAt: z.ZodString;
86
+ }, z.core.$strip>>;
87
+ total: z.ZodNumber;
88
+ limit: z.ZodNumber;
89
+ offset: z.ZodNumber;
90
+ }, z.core.$strip>;
91
+ export declare const groundOperatorSingleResponse: z.ZodObject<{
92
+ data: z.ZodObject<{
93
+ name: z.ZodString;
94
+ active: z.ZodDefault<z.ZodBoolean>;
95
+ id: z.ZodString;
96
+ supplierId: z.ZodNullable<z.ZodString>;
97
+ facilityId: z.ZodNullable<z.ZodString>;
98
+ code: z.ZodNullable<z.ZodString>;
99
+ notes: z.ZodNullable<z.ZodString>;
100
+ createdAt: z.ZodString;
101
+ updatedAt: z.ZodString;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>;
104
+ export declare const groundVehicleListResponse: z.ZodObject<{
105
+ data: z.ZodArray<z.ZodObject<{
106
+ resourceId: z.ZodString;
107
+ category: z.ZodDefault<z.ZodEnum<{
108
+ other: "other";
109
+ car: "car";
110
+ sedan: "sedan";
111
+ suv: "suv";
112
+ van: "van";
113
+ minibus: "minibus";
114
+ bus: "bus";
115
+ boat: "boat";
116
+ train: "train";
117
+ }>>;
118
+ vehicleClass: z.ZodDefault<z.ZodEnum<{
119
+ other: "other";
120
+ economy: "economy";
121
+ standard: "standard";
122
+ premium: "premium";
123
+ luxury: "luxury";
124
+ accessible: "accessible";
125
+ }>>;
126
+ isAccessible: z.ZodDefault<z.ZodBoolean>;
127
+ active: z.ZodDefault<z.ZodBoolean>;
128
+ id: z.ZodString;
129
+ operatorId: z.ZodNullable<z.ZodString>;
130
+ passengerCapacity: z.ZodNullable<z.ZodNumber>;
131
+ checkedBagCapacity: z.ZodNullable<z.ZodNumber>;
132
+ carryOnCapacity: z.ZodNullable<z.ZodNumber>;
133
+ wheelchairCapacity: z.ZodNullable<z.ZodNumber>;
134
+ childSeatCapacity: z.ZodNullable<z.ZodNumber>;
135
+ notes: z.ZodNullable<z.ZodString>;
136
+ createdAt: z.ZodString;
137
+ updatedAt: z.ZodString;
138
+ }, z.core.$strip>>;
139
+ total: z.ZodNumber;
140
+ limit: z.ZodNumber;
141
+ offset: z.ZodNumber;
142
+ }, z.core.$strip>;
143
+ export declare const groundVehicleSingleResponse: z.ZodObject<{
144
+ data: z.ZodObject<{
145
+ resourceId: z.ZodString;
146
+ category: z.ZodDefault<z.ZodEnum<{
147
+ other: "other";
148
+ car: "car";
149
+ sedan: "sedan";
150
+ suv: "suv";
151
+ van: "van";
152
+ minibus: "minibus";
153
+ bus: "bus";
154
+ boat: "boat";
155
+ train: "train";
156
+ }>>;
157
+ vehicleClass: z.ZodDefault<z.ZodEnum<{
158
+ other: "other";
159
+ economy: "economy";
160
+ standard: "standard";
161
+ premium: "premium";
162
+ luxury: "luxury";
163
+ accessible: "accessible";
164
+ }>>;
165
+ isAccessible: z.ZodDefault<z.ZodBoolean>;
166
+ active: z.ZodDefault<z.ZodBoolean>;
167
+ id: z.ZodString;
168
+ operatorId: z.ZodNullable<z.ZodString>;
169
+ passengerCapacity: z.ZodNullable<z.ZodNumber>;
170
+ checkedBagCapacity: z.ZodNullable<z.ZodNumber>;
171
+ carryOnCapacity: z.ZodNullable<z.ZodNumber>;
172
+ wheelchairCapacity: z.ZodNullable<z.ZodNumber>;
173
+ childSeatCapacity: z.ZodNullable<z.ZodNumber>;
174
+ notes: z.ZodNullable<z.ZodString>;
175
+ createdAt: z.ZodString;
176
+ updatedAt: z.ZodString;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>;
179
+ export declare const groundDriverListResponse: z.ZodObject<{
180
+ data: z.ZodArray<z.ZodObject<{
181
+ resourceId: z.ZodString;
182
+ spokenLanguages: z.ZodDefault<z.ZodArray<z.ZodString>>;
183
+ isGuide: z.ZodDefault<z.ZodBoolean>;
184
+ isMeetAndGreetCapable: z.ZodDefault<z.ZodBoolean>;
185
+ active: z.ZodDefault<z.ZodBoolean>;
186
+ id: z.ZodString;
187
+ operatorId: z.ZodNullable<z.ZodString>;
188
+ licenseNumber: z.ZodNullable<z.ZodString>;
189
+ notes: z.ZodNullable<z.ZodString>;
190
+ createdAt: z.ZodString;
191
+ updatedAt: z.ZodString;
192
+ }, z.core.$strip>>;
193
+ total: z.ZodNumber;
194
+ limit: z.ZodNumber;
195
+ offset: z.ZodNumber;
196
+ }, z.core.$strip>;
197
+ export declare const groundDriverSingleResponse: z.ZodObject<{
198
+ data: z.ZodObject<{
199
+ resourceId: z.ZodString;
200
+ spokenLanguages: z.ZodDefault<z.ZodArray<z.ZodString>>;
201
+ isGuide: z.ZodDefault<z.ZodBoolean>;
202
+ isMeetAndGreetCapable: z.ZodDefault<z.ZodBoolean>;
203
+ active: z.ZodDefault<z.ZodBoolean>;
204
+ id: z.ZodString;
205
+ operatorId: z.ZodNullable<z.ZodString>;
206
+ licenseNumber: z.ZodNullable<z.ZodString>;
207
+ notes: z.ZodNullable<z.ZodString>;
208
+ createdAt: z.ZodString;
209
+ updatedAt: z.ZodString;
210
+ }, z.core.$strip>;
211
+ }, z.core.$strip>;
212
+ //# sourceMappingURL=schemas.d.ts.map