@voyantjs/flights-react 0.55.1 → 0.57.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.
|
@@ -40,7 +40,7 @@ export declare function useFlightAncillaries(input: {
|
|
|
40
40
|
assistance: {
|
|
41
41
|
id: string;
|
|
42
42
|
label: string;
|
|
43
|
-
category: "
|
|
43
|
+
category: "medical" | "other" | "wheelchair" | "visual" | "hearing" | "cognitive";
|
|
44
44
|
price?: {
|
|
45
45
|
amount: string;
|
|
46
46
|
currency: string;
|
|
@@ -7,7 +7,7 @@ import type { FlightBookRequest } from "@voyantjs/flights/contract/types";
|
|
|
7
7
|
export declare function useFlightBook(): import("@tanstack/react-query").UseMutationResult<{
|
|
8
8
|
order: {
|
|
9
9
|
orderId: string;
|
|
10
|
-
status: "
|
|
10
|
+
status: "failed" | "confirmed" | "pending" | "ticketed" | "cancelled";
|
|
11
11
|
offer: {
|
|
12
12
|
offerId: string;
|
|
13
13
|
source: string;
|
|
@@ -9,7 +9,7 @@ export interface UseFlightOrderOptions {
|
|
|
9
9
|
export declare function useFlightOrder(orderId: string | null, options?: UseFlightOrderOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
10
10
|
order: {
|
|
11
11
|
orderId: string;
|
|
12
|
-
status: "
|
|
12
|
+
status: "failed" | "confirmed" | "pending" | "ticketed" | "cancelled";
|
|
13
13
|
offer: {
|
|
14
14
|
offerId: string;
|
|
15
15
|
source: string;
|
|
@@ -150,7 +150,7 @@ export interface CancelOrderInput {
|
|
|
150
150
|
export declare function useFlightOrderCancel(): import("@tanstack/react-query").UseMutationResult<{
|
|
151
151
|
order: {
|
|
152
152
|
orderId: string;
|
|
153
|
-
status: "
|
|
153
|
+
status: "failed" | "confirmed" | "pending" | "ticketed" | "cancelled";
|
|
154
154
|
offer: {
|
|
155
155
|
offerId: string;
|
|
156
156
|
source: string;
|
|
@@ -10,7 +10,7 @@ export interface UseFlightOrdersOptions {
|
|
|
10
10
|
export declare function useFlightOrders(filters?: FlightOrdersListFilters, options?: UseFlightOrdersOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
11
11
|
orders: {
|
|
12
12
|
orderId: string;
|
|
13
|
-
status: "
|
|
13
|
+
status: "failed" | "confirmed" | "pending" | "ticketed" | "cancelled";
|
|
14
14
|
offer: {
|
|
15
15
|
offerId: string;
|
|
16
16
|
source: string;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -418,7 +418,7 @@ export declare function getFlightAncillariesQueryOptions(client: FetchWithValida
|
|
|
418
418
|
assistance: {
|
|
419
419
|
id: string;
|
|
420
420
|
label: string;
|
|
421
|
-
category: "
|
|
421
|
+
category: "medical" | "other" | "wheelchair" | "visual" | "hearing" | "cognitive";
|
|
422
422
|
price?: {
|
|
423
423
|
amount: string;
|
|
424
424
|
currency: string;
|
|
@@ -459,7 +459,7 @@ export declare function getFlightAncillariesQueryOptions(client: FetchWithValida
|
|
|
459
459
|
assistance: {
|
|
460
460
|
id: string;
|
|
461
461
|
label: string;
|
|
462
|
-
category: "
|
|
462
|
+
category: "medical" | "other" | "wheelchair" | "visual" | "hearing" | "cognitive";
|
|
463
463
|
price?: {
|
|
464
464
|
amount: string;
|
|
465
465
|
currency: string;
|
|
@@ -501,7 +501,7 @@ export declare function getFlightAncillariesQueryOptions(client: FetchWithValida
|
|
|
501
501
|
assistance: {
|
|
502
502
|
id: string;
|
|
503
503
|
label: string;
|
|
504
|
-
category: "
|
|
504
|
+
category: "medical" | "other" | "wheelchair" | "visual" | "hearing" | "cognitive";
|
|
505
505
|
price?: {
|
|
506
506
|
amount: string;
|
|
507
507
|
currency: string;
|
|
@@ -545,7 +545,7 @@ export declare function getFlightAncillariesQueryOptions(client: FetchWithValida
|
|
|
545
545
|
assistance: {
|
|
546
546
|
id: string;
|
|
547
547
|
label: string;
|
|
548
|
-
category: "
|
|
548
|
+
category: "medical" | "other" | "wheelchair" | "visual" | "hearing" | "cognitive";
|
|
549
549
|
price?: {
|
|
550
550
|
amount: string;
|
|
551
551
|
currency: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -396,11 +396,11 @@ export declare const flightOrderSchema: z.ZodObject<{
|
|
|
396
396
|
orderId: z.ZodString;
|
|
397
397
|
pnr: z.ZodOptional<z.ZodString>;
|
|
398
398
|
status: z.ZodEnum<{
|
|
399
|
-
|
|
399
|
+
failed: "failed";
|
|
400
400
|
confirmed: "confirmed";
|
|
401
|
+
pending: "pending";
|
|
401
402
|
ticketed: "ticketed";
|
|
402
403
|
cancelled: "cancelled";
|
|
403
|
-
failed: "failed";
|
|
404
404
|
}>;
|
|
405
405
|
offer: z.ZodObject<{
|
|
406
406
|
offerId: z.ZodString;
|
|
@@ -568,11 +568,11 @@ export declare const flightBookResponseSchema: z.ZodObject<{
|
|
|
568
568
|
orderId: z.ZodString;
|
|
569
569
|
pnr: z.ZodOptional<z.ZodString>;
|
|
570
570
|
status: z.ZodEnum<{
|
|
571
|
-
|
|
571
|
+
failed: "failed";
|
|
572
572
|
confirmed: "confirmed";
|
|
573
|
+
pending: "pending";
|
|
573
574
|
ticketed: "ticketed";
|
|
574
575
|
cancelled: "cancelled";
|
|
575
|
-
failed: "failed";
|
|
576
576
|
}>;
|
|
577
577
|
offer: z.ZodObject<{
|
|
578
578
|
offerId: z.ZodString;
|
|
@@ -741,11 +741,11 @@ export declare const flightGetOrderResponseSchema: z.ZodObject<{
|
|
|
741
741
|
orderId: z.ZodString;
|
|
742
742
|
pnr: z.ZodOptional<z.ZodString>;
|
|
743
743
|
status: z.ZodEnum<{
|
|
744
|
-
|
|
744
|
+
failed: "failed";
|
|
745
745
|
confirmed: "confirmed";
|
|
746
|
+
pending: "pending";
|
|
746
747
|
ticketed: "ticketed";
|
|
747
748
|
cancelled: "cancelled";
|
|
748
|
-
failed: "failed";
|
|
749
749
|
}>;
|
|
750
750
|
offer: z.ZodObject<{
|
|
751
751
|
offerId: z.ZodString;
|
|
@@ -914,11 +914,11 @@ export declare const flightCancelResponseSchema: z.ZodObject<{
|
|
|
914
914
|
orderId: z.ZodString;
|
|
915
915
|
pnr: z.ZodOptional<z.ZodString>;
|
|
916
916
|
status: z.ZodEnum<{
|
|
917
|
-
|
|
917
|
+
failed: "failed";
|
|
918
918
|
confirmed: "confirmed";
|
|
919
|
+
pending: "pending";
|
|
919
920
|
ticketed: "ticketed";
|
|
920
921
|
cancelled: "cancelled";
|
|
921
|
-
failed: "failed";
|
|
922
922
|
}>;
|
|
923
923
|
offer: z.ZodObject<{
|
|
924
924
|
offerId: z.ZodString;
|
|
@@ -1091,11 +1091,11 @@ export declare const flightOrdersListResponseSchema: z.ZodObject<{
|
|
|
1091
1091
|
orderId: z.ZodString;
|
|
1092
1092
|
pnr: z.ZodOptional<z.ZodString>;
|
|
1093
1093
|
status: z.ZodEnum<{
|
|
1094
|
-
|
|
1094
|
+
failed: "failed";
|
|
1095
1095
|
confirmed: "confirmed";
|
|
1096
|
+
pending: "pending";
|
|
1096
1097
|
ticketed: "ticketed";
|
|
1097
1098
|
cancelled: "cancelled";
|
|
1098
|
-
failed: "failed";
|
|
1099
1099
|
}>;
|
|
1100
1100
|
offer: z.ZodObject<{
|
|
1101
1101
|
offerId: z.ZodString;
|
|
@@ -1292,12 +1292,12 @@ declare const ancillaryAssistanceOptionSchema: z.ZodObject<{
|
|
|
1292
1292
|
id: z.ZodString;
|
|
1293
1293
|
label: z.ZodString;
|
|
1294
1294
|
category: z.ZodEnum<{
|
|
1295
|
+
medical: "medical";
|
|
1296
|
+
other: "other";
|
|
1295
1297
|
wheelchair: "wheelchair";
|
|
1296
1298
|
visual: "visual";
|
|
1297
1299
|
hearing: "hearing";
|
|
1298
1300
|
cognitive: "cognitive";
|
|
1299
|
-
medical: "medical";
|
|
1300
|
-
other: "other";
|
|
1301
1301
|
}>;
|
|
1302
1302
|
price: z.ZodOptional<z.ZodObject<{
|
|
1303
1303
|
amount: z.ZodString;
|
|
@@ -1348,12 +1348,12 @@ export declare const ancillaryCatalogSchema: z.ZodObject<{
|
|
|
1348
1348
|
id: z.ZodString;
|
|
1349
1349
|
label: z.ZodString;
|
|
1350
1350
|
category: z.ZodEnum<{
|
|
1351
|
+
medical: "medical";
|
|
1352
|
+
other: "other";
|
|
1351
1353
|
wheelchair: "wheelchair";
|
|
1352
1354
|
visual: "visual";
|
|
1353
1355
|
hearing: "hearing";
|
|
1354
1356
|
cognitive: "cognitive";
|
|
1355
|
-
medical: "medical";
|
|
1356
|
-
other: "other";
|
|
1357
1357
|
}>;
|
|
1358
1358
|
price: z.ZodOptional<z.ZodObject<{
|
|
1359
1359
|
amount: z.ZodString;
|
|
@@ -1405,12 +1405,12 @@ export declare const ancillaryResponseSchema: z.ZodObject<{
|
|
|
1405
1405
|
id: z.ZodString;
|
|
1406
1406
|
label: z.ZodString;
|
|
1407
1407
|
category: z.ZodEnum<{
|
|
1408
|
+
medical: "medical";
|
|
1409
|
+
other: "other";
|
|
1408
1410
|
wheelchair: "wheelchair";
|
|
1409
1411
|
visual: "visual";
|
|
1410
1412
|
hearing: "hearing";
|
|
1411
1413
|
cognitive: "cognitive";
|
|
1412
|
-
medical: "medical";
|
|
1413
|
-
other: "other";
|
|
1414
1414
|
}>;
|
|
1415
1415
|
price: z.ZodOptional<z.ZodObject<{
|
|
1416
1416
|
amount: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/flights-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"react-dom": "^19.0.0",
|
|
43
43
|
"zod": "^4.0.0",
|
|
44
|
-
"@voyantjs/flights": "0.
|
|
44
|
+
"@voyantjs/flights": "0.57.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "^6.0.2",
|
|
53
53
|
"vitest": "^4.1.2",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/flights": "0.
|
|
56
|
-
"@voyantjs/react": "0.
|
|
55
|
+
"@voyantjs/flights": "0.57.0",
|
|
56
|
+
"@voyantjs/react": "0.57.0",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.57.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|