@voyantjs/customer-portal-react 0.6.7 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/use-customer-portal-booking-documents.d.ts +1 -1
- package/dist/hooks/use-customer-portal-booking.d.ts +7 -7
- package/dist/hooks/use-customer-portal-bookings.d.ts +1 -1
- package/dist/hooks/use-customer-portal-mutation.d.ts +43 -15
- package/dist/hooks/use-customer-portal-mutation.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-mutation.js +5 -4
- package/dist/hooks/use-customer-portal-profile.d.ts +0 -3
- package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/operations.d.ts +12 -23
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +3 -2
- package/dist/query-options.d.ts +36 -48
- package/dist/query-options.d.ts.map +1 -1
- package/dist/schemas.d.ts +61 -25
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +5 -3
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@ export declare function useCustomerPortalBookingDocuments(bookingId: string | nu
|
|
|
5
5
|
data: {
|
|
6
6
|
id: string;
|
|
7
7
|
source: "legal" | "finance" | "booking_document";
|
|
8
|
-
|
|
8
|
+
travelerId: string | null;
|
|
9
9
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
10
10
|
fileName: string;
|
|
11
11
|
fileUrl: string;
|
|
@@ -14,9 +14,9 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
14
14
|
confirmedAt: string | null;
|
|
15
15
|
cancelledAt: string | null;
|
|
16
16
|
completedAt: string | null;
|
|
17
|
-
|
|
17
|
+
travelers: {
|
|
18
18
|
id: string;
|
|
19
|
-
participantType: "
|
|
19
|
+
participantType: "other" | "traveler" | "occupant";
|
|
20
20
|
firstName: string;
|
|
21
21
|
lastName: string;
|
|
22
22
|
isPrimary: boolean;
|
|
@@ -35,10 +35,10 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
35
35
|
unitSellAmountCents: number | null;
|
|
36
36
|
totalSellAmountCents: number | null;
|
|
37
37
|
notes: string | null;
|
|
38
|
-
|
|
38
|
+
travelerLinks: {
|
|
39
39
|
id: string;
|
|
40
|
-
|
|
41
|
-
role: "other" | "traveler" | "occupant" | "
|
|
40
|
+
travelerId: string;
|
|
41
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
42
42
|
isPrimary: boolean;
|
|
43
43
|
}[];
|
|
44
44
|
}[];
|
|
@@ -56,7 +56,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
56
56
|
documents: {
|
|
57
57
|
id: string;
|
|
58
58
|
source: "legal" | "finance" | "booking_document";
|
|
59
|
-
|
|
59
|
+
travelerId: string | null;
|
|
60
60
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
61
61
|
fileName: string;
|
|
62
62
|
fileUrl: string;
|
|
@@ -97,7 +97,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
97
97
|
fulfillments: {
|
|
98
98
|
id: string;
|
|
99
99
|
bookingItemId: string | null;
|
|
100
|
-
|
|
100
|
+
travelerId: string | null;
|
|
101
101
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
102
102
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
103
103
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -15,7 +15,7 @@ export declare function useCustomerPortalBookings(options?: UseCustomerPortalBoo
|
|
|
15
15
|
pax: number | null;
|
|
16
16
|
confirmedAt: string | null;
|
|
17
17
|
completedAt: string | null;
|
|
18
|
-
|
|
18
|
+
travelerCount: number;
|
|
19
19
|
primaryTravelerName: string | null;
|
|
20
20
|
}[];
|
|
21
21
|
}, Error>;
|
|
@@ -53,9 +53,6 @@ export declare function useCustomerPortalMutation(): {
|
|
|
53
53
|
birthday: string | null;
|
|
54
54
|
email: string | null;
|
|
55
55
|
phone: string | null;
|
|
56
|
-
address: string | null;
|
|
57
|
-
city: string | null;
|
|
58
|
-
country: string | null;
|
|
59
56
|
billingAddress: {
|
|
60
57
|
id: string;
|
|
61
58
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -81,9 +78,6 @@ export declare function useCustomerPortalMutation(): {
|
|
|
81
78
|
birthday: string | null;
|
|
82
79
|
email: string | null;
|
|
83
80
|
phone: string | null;
|
|
84
|
-
address: string | null;
|
|
85
|
-
city: string | null;
|
|
86
|
-
country: string | null;
|
|
87
81
|
billingAddress: {
|
|
88
82
|
id: string;
|
|
89
83
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -114,9 +108,6 @@ export declare function useCustomerPortalMutation(): {
|
|
|
114
108
|
preferredCurrency?: string | null | undefined;
|
|
115
109
|
birthday?: string | null | undefined;
|
|
116
110
|
phone?: string | null | undefined;
|
|
117
|
-
address?: string | null | undefined;
|
|
118
|
-
city?: string | null | undefined;
|
|
119
|
-
country?: string | null | undefined;
|
|
120
111
|
billingAddress?: {
|
|
121
112
|
label?: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal" | undefined;
|
|
122
113
|
fullText?: string | null | undefined;
|
|
@@ -174,9 +165,6 @@ export declare function useCustomerPortalMutation(): {
|
|
|
174
165
|
birthday: string | null;
|
|
175
166
|
email: string | null;
|
|
176
167
|
phone: string | null;
|
|
177
|
-
address: string | null;
|
|
178
|
-
city: string | null;
|
|
179
|
-
country: string | null;
|
|
180
168
|
billingAddress: {
|
|
181
169
|
id: string;
|
|
182
170
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -228,9 +216,6 @@ export declare function useCustomerPortalMutation(): {
|
|
|
228
216
|
preferredCurrency?: string | null | undefined;
|
|
229
217
|
birthday?: string | null | undefined;
|
|
230
218
|
phone?: string | null | undefined;
|
|
231
|
-
address?: string | null | undefined;
|
|
232
|
-
city?: string | null | undefined;
|
|
233
|
-
country?: string | null | undefined;
|
|
234
219
|
billingAddress?: {
|
|
235
220
|
label?: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal" | undefined;
|
|
236
221
|
fullText?: string | null | undefined;
|
|
@@ -316,6 +301,49 @@ export declare function useCustomerPortalMutation(): {
|
|
|
316
301
|
} | undefined;
|
|
317
302
|
metadata?: Record<string, unknown> | null | undefined;
|
|
318
303
|
}, unknown>;
|
|
304
|
+
importBookingTravelers: import("@tanstack/react-query").UseMutationResult<{
|
|
305
|
+
data: {
|
|
306
|
+
created: {
|
|
307
|
+
id: string;
|
|
308
|
+
role: string;
|
|
309
|
+
name: string;
|
|
310
|
+
title: string | null;
|
|
311
|
+
email: string | null;
|
|
312
|
+
phone: string | null;
|
|
313
|
+
isPrimary: boolean;
|
|
314
|
+
notes: string | null;
|
|
315
|
+
typeKey: string | null;
|
|
316
|
+
person: {
|
|
317
|
+
firstName: string | null;
|
|
318
|
+
middleName: string | null;
|
|
319
|
+
lastName: string | null;
|
|
320
|
+
dateOfBirth: string | null;
|
|
321
|
+
addresses: {
|
|
322
|
+
type: string | null;
|
|
323
|
+
country: string | null;
|
|
324
|
+
state: string | null;
|
|
325
|
+
city: string | null;
|
|
326
|
+
postalCode: string | null;
|
|
327
|
+
addressLine1: string | null;
|
|
328
|
+
addressLine2: string | null;
|
|
329
|
+
isDefault: boolean;
|
|
330
|
+
}[];
|
|
331
|
+
documents: {
|
|
332
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
333
|
+
number: string | null;
|
|
334
|
+
issuingAuthority: string | null;
|
|
335
|
+
country: string | null;
|
|
336
|
+
issueDate: string | null;
|
|
337
|
+
expiryDate: string | null;
|
|
338
|
+
}[];
|
|
339
|
+
};
|
|
340
|
+
metadata: Record<string, unknown> | null;
|
|
341
|
+
}[];
|
|
342
|
+
skippedCount: number;
|
|
343
|
+
};
|
|
344
|
+
}, Error, {
|
|
345
|
+
bookingIds?: string[] | undefined;
|
|
346
|
+
}, unknown>;
|
|
319
347
|
importBookingParticipants: import("@tanstack/react-query").UseMutationResult<{
|
|
320
348
|
data: {
|
|
321
349
|
created: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-customer-portal-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-mutation.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAIV,kCAAkC,EAEnC,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,0CAA0C;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,kCAAkC,CAAA;CAC1C;AAED,MAAM,WAAW,0CAA0C;IACzD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,yBAAyB
|
|
1
|
+
{"version":3,"file":"use-customer-portal-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-mutation.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAIV,kCAAkC,EAEnC,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,0CAA0C;IACzD,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,kCAAkC,CAAA;CAC1C;AAED,MAAM,WAAW,0CAA0C;IACzD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsExC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
-
import { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion,
|
|
3
|
+
import { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, importCustomerPortalBookingTravelers, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "../operations.js";
|
|
4
4
|
import { useVoyantCustomerPortalContext } from "../provider.js";
|
|
5
5
|
import { customerPortalQueryKeys } from "../query-keys.js";
|
|
6
6
|
export function useCustomerPortalMutation() {
|
|
@@ -32,8 +32,8 @@ export function useCustomerPortalMutation() {
|
|
|
32
32
|
await queryClient.invalidateQueries({ queryKey: customerPortalQueryKeys.companions() });
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
|
-
const
|
|
36
|
-
mutationFn: async (input = {}) =>
|
|
35
|
+
const importBookingTravelers = useMutation({
|
|
36
|
+
mutationFn: async (input = {}) => importCustomerPortalBookingTravelers(client, input),
|
|
37
37
|
onSuccess: async () => {
|
|
38
38
|
await queryClient.invalidateQueries({ queryKey: customerPortalQueryKeys.companions() });
|
|
39
39
|
},
|
|
@@ -54,7 +54,8 @@ export function useCustomerPortalMutation() {
|
|
|
54
54
|
bootstrap,
|
|
55
55
|
updateProfile,
|
|
56
56
|
createCompanion,
|
|
57
|
-
|
|
57
|
+
importBookingTravelers,
|
|
58
|
+
importBookingParticipants: importBookingTravelers,
|
|
58
59
|
updateCompanion,
|
|
59
60
|
removeCompanion,
|
|
60
61
|
};
|
|
@@ -45,9 +45,6 @@ export declare function useCustomerPortalProfile(options?: UseCustomerPortalProf
|
|
|
45
45
|
birthday: string | null;
|
|
46
46
|
email: string | null;
|
|
47
47
|
phone: string | null;
|
|
48
|
-
address: string | null;
|
|
49
|
-
city: string | null;
|
|
50
|
-
country: string | null;
|
|
51
48
|
billingAddress: {
|
|
52
49
|
id: string;
|
|
53
50
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-customer-portal-profile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-profile.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,+BAAoC
|
|
1
|
+
{"version":3,"file":"use-customer-portal-profile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-profile.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,+BAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQrF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, withQueryParams, } from "./client.js";
|
|
2
2
|
export * from "./hooks/index.js";
|
|
3
|
-
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
4
4
|
export { useVoyantCustomerPortalContext, type VoyantCustomerPortalContextValue, VoyantCustomerPortalProvider, type VoyantCustomerPortalProviderProps, } from "./provider.js";
|
|
5
5
|
export type { CustomerPortalContactExistsFilters, CustomerPortalPhoneContactExistsFilters, } from "./query-keys.js";
|
|
6
6
|
export { customerPortalQueryKeys } from "./query-keys.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,sCAAsC,EACtC,8BAA8B,EAC9B,mCAAmC,EACnC,wBAAwB,EACxB,uCAAuC,EACvC,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EACL,kDAAkD,EAClD,6CAA6C,EAC7C,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,0CAA0C,EAC1C,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,sCAAsC,EACtC,8BAA8B,EAC9B,mCAAmC,EACnC,wBAAwB,EACxB,uCAAuC,EACvC,oCAAoC,EACpC,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EACL,kDAAkD,EAClD,6CAA6C,EAC7C,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,0CAA0C,EAC1C,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, } from "./client.js";
|
|
2
2
|
export * from "./hooks/index.js";
|
|
3
|
-
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
4
4
|
export { useVoyantCustomerPortalContext, VoyantCustomerPortalProvider, } from "./provider.js";
|
|
5
5
|
export { customerPortalQueryKeys } from "./query-keys.js";
|
|
6
6
|
export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
-
import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type
|
|
2
|
+
import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type ImportCustomerPortalBookingTravelersInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
|
|
3
3
|
export declare function getCustomerPortalContactExists(client: FetchWithValidationOptions, email: string): Promise<{
|
|
4
4
|
data: {
|
|
5
5
|
email: string;
|
|
@@ -59,9 +59,6 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
|
|
|
59
59
|
birthday: string | null;
|
|
60
60
|
email: string | null;
|
|
61
61
|
phone: string | null;
|
|
62
|
-
address: string | null;
|
|
63
|
-
city: string | null;
|
|
64
|
-
country: string | null;
|
|
65
62
|
billingAddress: {
|
|
66
63
|
id: string;
|
|
67
64
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -123,9 +120,6 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
|
|
|
123
120
|
birthday: string | null;
|
|
124
121
|
email: string | null;
|
|
125
122
|
phone: string | null;
|
|
126
|
-
address: string | null;
|
|
127
|
-
city: string | null;
|
|
128
|
-
country: string | null;
|
|
129
123
|
billingAddress: {
|
|
130
124
|
id: string;
|
|
131
125
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -189,9 +183,6 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
189
183
|
birthday: string | null;
|
|
190
184
|
email: string | null;
|
|
191
185
|
phone: string | null;
|
|
192
|
-
address: string | null;
|
|
193
|
-
city: string | null;
|
|
194
|
-
country: string | null;
|
|
195
186
|
billingAddress: {
|
|
196
187
|
id: string;
|
|
197
188
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -217,9 +208,6 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
217
208
|
birthday: string | null;
|
|
218
209
|
email: string | null;
|
|
219
210
|
phone: string | null;
|
|
220
|
-
address: string | null;
|
|
221
|
-
city: string | null;
|
|
222
|
-
country: string | null;
|
|
223
211
|
billingAddress: {
|
|
224
212
|
id: string;
|
|
225
213
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -315,7 +303,7 @@ export declare function createCustomerPortalCompanion(client: FetchWithValidatio
|
|
|
315
303
|
metadata: Record<string, unknown> | null;
|
|
316
304
|
};
|
|
317
305
|
}>;
|
|
318
|
-
export declare function
|
|
306
|
+
export declare function importCustomerPortalBookingTravelers(client: FetchWithValidationOptions, input?: ImportCustomerPortalBookingTravelersInput): Promise<{
|
|
319
307
|
data: {
|
|
320
308
|
created: {
|
|
321
309
|
id: string;
|
|
@@ -356,6 +344,7 @@ export declare function importCustomerPortalBookingParticipants(client: FetchWit
|
|
|
356
344
|
skippedCount: number;
|
|
357
345
|
};
|
|
358
346
|
}>;
|
|
347
|
+
export declare const importCustomerPortalBookingParticipants: typeof importCustomerPortalBookingTravelers;
|
|
359
348
|
export declare function updateCustomerPortalCompanion(client: FetchWithValidationOptions, companionId: string, input: UpdateCustomerPortalCompanionInput): Promise<{
|
|
360
349
|
data: {
|
|
361
350
|
id: string;
|
|
@@ -411,7 +400,7 @@ export declare function listCustomerPortalBookings(client: FetchWithValidationOp
|
|
|
411
400
|
pax: number | null;
|
|
412
401
|
confirmedAt: string | null;
|
|
413
402
|
completedAt: string | null;
|
|
414
|
-
|
|
403
|
+
travelerCount: number;
|
|
415
404
|
primaryTravelerName: string | null;
|
|
416
405
|
}[];
|
|
417
406
|
}>;
|
|
@@ -428,9 +417,9 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
428
417
|
confirmedAt: string | null;
|
|
429
418
|
cancelledAt: string | null;
|
|
430
419
|
completedAt: string | null;
|
|
431
|
-
|
|
420
|
+
travelers: {
|
|
432
421
|
id: string;
|
|
433
|
-
participantType: "
|
|
422
|
+
participantType: "other" | "traveler" | "occupant";
|
|
434
423
|
firstName: string;
|
|
435
424
|
lastName: string;
|
|
436
425
|
isPrimary: boolean;
|
|
@@ -449,10 +438,10 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
449
438
|
unitSellAmountCents: number | null;
|
|
450
439
|
totalSellAmountCents: number | null;
|
|
451
440
|
notes: string | null;
|
|
452
|
-
|
|
441
|
+
travelerLinks: {
|
|
453
442
|
id: string;
|
|
454
|
-
|
|
455
|
-
role: "other" | "traveler" | "occupant" | "
|
|
443
|
+
travelerId: string;
|
|
444
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
456
445
|
isPrimary: boolean;
|
|
457
446
|
}[];
|
|
458
447
|
}[];
|
|
@@ -470,7 +459,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
470
459
|
documents: {
|
|
471
460
|
id: string;
|
|
472
461
|
source: "legal" | "finance" | "booking_document";
|
|
473
|
-
|
|
462
|
+
travelerId: string | null;
|
|
474
463
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
475
464
|
fileName: string;
|
|
476
465
|
fileUrl: string;
|
|
@@ -511,7 +500,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
511
500
|
fulfillments: {
|
|
512
501
|
id: string;
|
|
513
502
|
bookingItemId: string | null;
|
|
514
|
-
|
|
503
|
+
travelerId: string | null;
|
|
515
504
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
516
505
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
517
506
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -536,7 +525,7 @@ export declare function listCustomerPortalBookingDocuments(client: FetchWithVali
|
|
|
536
525
|
data: {
|
|
537
526
|
id: string;
|
|
538
527
|
source: "legal" | "finance" | "booking_document";
|
|
539
|
-
|
|
528
|
+
travelerId: string | null;
|
|
540
529
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
541
530
|
fileName: string;
|
|
542
531
|
fileUrl: string;
|
package/dist/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAW1C;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,0BAA0B,EAClC,KAAK,GAAE,yCAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWtD;AAED,eAAO,MAAM,uCAAuC,6CAAuC,CAAA;AAE3F,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAW1C;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM;;GAUpB;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;GAM5E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM7F;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;GAOlB;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;GAOlB"}
|
package/dist/operations.js
CHANGED
|
@@ -31,12 +31,13 @@ export function createCustomerPortalCompanion(client, input) {
|
|
|
31
31
|
body: JSON.stringify(input),
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
export function
|
|
35
|
-
return fetchWithValidation("/v1/public/customer-portal/companions/import-booking-
|
|
34
|
+
export function importCustomerPortalBookingTravelers(client, input = {}) {
|
|
35
|
+
return fetchWithValidation("/v1/public/customer-portal/companions/import-booking-travelers", customerPortalCompanionImportResponseSchema, client, {
|
|
36
36
|
method: "POST",
|
|
37
37
|
body: JSON.stringify(input),
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
+
export const importCustomerPortalBookingParticipants = importCustomerPortalBookingTravelers;
|
|
40
41
|
export function updateCustomerPortalCompanion(client, companionId, input) {
|
|
41
42
|
return fetchWithValidation(`/v1/public/customer-portal/companions/${companionId}`, customerPortalCompanionResponseSchema, client, {
|
|
42
43
|
method: "PATCH",
|
package/dist/query-options.d.ts
CHANGED
|
@@ -44,9 +44,6 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
44
44
|
birthday: string | null;
|
|
45
45
|
email: string | null;
|
|
46
46
|
phone: string | null;
|
|
47
|
-
address: string | null;
|
|
48
|
-
city: string | null;
|
|
49
|
-
country: string | null;
|
|
50
47
|
billingAddress: {
|
|
51
48
|
id: string;
|
|
52
49
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -107,9 +104,6 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
107
104
|
birthday: string | null;
|
|
108
105
|
email: string | null;
|
|
109
106
|
phone: string | null;
|
|
110
|
-
address: string | null;
|
|
111
|
-
city: string | null;
|
|
112
|
-
country: string | null;
|
|
113
107
|
billingAddress: {
|
|
114
108
|
id: string;
|
|
115
109
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -171,9 +165,6 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
171
165
|
birthday: string | null;
|
|
172
166
|
email: string | null;
|
|
173
167
|
phone: string | null;
|
|
174
|
-
address: string | null;
|
|
175
|
-
city: string | null;
|
|
176
|
-
country: string | null;
|
|
177
168
|
billingAddress: {
|
|
178
169
|
id: string;
|
|
179
170
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -237,9 +228,6 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
237
228
|
birthday: string | null;
|
|
238
229
|
email: string | null;
|
|
239
230
|
phone: string | null;
|
|
240
|
-
address: string | null;
|
|
241
|
-
city: string | null;
|
|
242
|
-
country: string | null;
|
|
243
231
|
billingAddress: {
|
|
244
232
|
id: string;
|
|
245
233
|
label: "service" | "primary" | "other" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
@@ -430,7 +418,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
430
418
|
pax: number | null;
|
|
431
419
|
confirmedAt: string | null;
|
|
432
420
|
completedAt: string | null;
|
|
433
|
-
|
|
421
|
+
travelerCount: number;
|
|
434
422
|
primaryTravelerName: string | null;
|
|
435
423
|
}[];
|
|
436
424
|
}, Error, {
|
|
@@ -447,7 +435,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
447
435
|
pax: number | null;
|
|
448
436
|
confirmedAt: string | null;
|
|
449
437
|
completedAt: string | null;
|
|
450
|
-
|
|
438
|
+
travelerCount: number;
|
|
451
439
|
primaryTravelerName: string | null;
|
|
452
440
|
}[];
|
|
453
441
|
}, readonly ["customer-portal", "bookings"]>, "queryFn"> & {
|
|
@@ -465,7 +453,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
465
453
|
pax: number | null;
|
|
466
454
|
confirmedAt: string | null;
|
|
467
455
|
completedAt: string | null;
|
|
468
|
-
|
|
456
|
+
travelerCount: number;
|
|
469
457
|
primaryTravelerName: string | null;
|
|
470
458
|
}[];
|
|
471
459
|
}, readonly ["customer-portal", "bookings"], never> | undefined;
|
|
@@ -485,7 +473,7 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
485
473
|
pax: number | null;
|
|
486
474
|
confirmedAt: string | null;
|
|
487
475
|
completedAt: string | null;
|
|
488
|
-
|
|
476
|
+
travelerCount: number;
|
|
489
477
|
primaryTravelerName: string | null;
|
|
490
478
|
}[];
|
|
491
479
|
};
|
|
@@ -505,9 +493,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
505
493
|
confirmedAt: string | null;
|
|
506
494
|
cancelledAt: string | null;
|
|
507
495
|
completedAt: string | null;
|
|
508
|
-
|
|
496
|
+
travelers: {
|
|
509
497
|
id: string;
|
|
510
|
-
participantType: "
|
|
498
|
+
participantType: "other" | "traveler" | "occupant";
|
|
511
499
|
firstName: string;
|
|
512
500
|
lastName: string;
|
|
513
501
|
isPrimary: boolean;
|
|
@@ -526,10 +514,10 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
526
514
|
unitSellAmountCents: number | null;
|
|
527
515
|
totalSellAmountCents: number | null;
|
|
528
516
|
notes: string | null;
|
|
529
|
-
|
|
517
|
+
travelerLinks: {
|
|
530
518
|
id: string;
|
|
531
|
-
|
|
532
|
-
role: "other" | "traveler" | "occupant" | "
|
|
519
|
+
travelerId: string;
|
|
520
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
533
521
|
isPrimary: boolean;
|
|
534
522
|
}[];
|
|
535
523
|
}[];
|
|
@@ -547,7 +535,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
547
535
|
documents: {
|
|
548
536
|
id: string;
|
|
549
537
|
source: "legal" | "finance" | "booking_document";
|
|
550
|
-
|
|
538
|
+
travelerId: string | null;
|
|
551
539
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
552
540
|
fileName: string;
|
|
553
541
|
fileUrl: string;
|
|
@@ -588,7 +576,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
588
576
|
fulfillments: {
|
|
589
577
|
id: string;
|
|
590
578
|
bookingItemId: string | null;
|
|
591
|
-
|
|
579
|
+
travelerId: string | null;
|
|
592
580
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
593
581
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
594
582
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -608,9 +596,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
608
596
|
confirmedAt: string | null;
|
|
609
597
|
cancelledAt: string | null;
|
|
610
598
|
completedAt: string | null;
|
|
611
|
-
|
|
599
|
+
travelers: {
|
|
612
600
|
id: string;
|
|
613
|
-
participantType: "
|
|
601
|
+
participantType: "other" | "traveler" | "occupant";
|
|
614
602
|
firstName: string;
|
|
615
603
|
lastName: string;
|
|
616
604
|
isPrimary: boolean;
|
|
@@ -629,10 +617,10 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
629
617
|
unitSellAmountCents: number | null;
|
|
630
618
|
totalSellAmountCents: number | null;
|
|
631
619
|
notes: string | null;
|
|
632
|
-
|
|
620
|
+
travelerLinks: {
|
|
633
621
|
id: string;
|
|
634
|
-
|
|
635
|
-
role: "other" | "traveler" | "occupant" | "
|
|
622
|
+
travelerId: string;
|
|
623
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
636
624
|
isPrimary: boolean;
|
|
637
625
|
}[];
|
|
638
626
|
}[];
|
|
@@ -650,7 +638,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
650
638
|
documents: {
|
|
651
639
|
id: string;
|
|
652
640
|
source: "legal" | "finance" | "booking_document";
|
|
653
|
-
|
|
641
|
+
travelerId: string | null;
|
|
654
642
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
655
643
|
fileName: string;
|
|
656
644
|
fileUrl: string;
|
|
@@ -691,7 +679,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
691
679
|
fulfillments: {
|
|
692
680
|
id: string;
|
|
693
681
|
bookingItemId: string | null;
|
|
694
|
-
|
|
682
|
+
travelerId: string | null;
|
|
695
683
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
696
684
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
697
685
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -712,9 +700,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
712
700
|
confirmedAt: string | null;
|
|
713
701
|
cancelledAt: string | null;
|
|
714
702
|
completedAt: string | null;
|
|
715
|
-
|
|
703
|
+
travelers: {
|
|
716
704
|
id: string;
|
|
717
|
-
participantType: "
|
|
705
|
+
participantType: "other" | "traveler" | "occupant";
|
|
718
706
|
firstName: string;
|
|
719
707
|
lastName: string;
|
|
720
708
|
isPrimary: boolean;
|
|
@@ -733,10 +721,10 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
733
721
|
unitSellAmountCents: number | null;
|
|
734
722
|
totalSellAmountCents: number | null;
|
|
735
723
|
notes: string | null;
|
|
736
|
-
|
|
724
|
+
travelerLinks: {
|
|
737
725
|
id: string;
|
|
738
|
-
|
|
739
|
-
role: "other" | "traveler" | "occupant" | "
|
|
726
|
+
travelerId: string;
|
|
727
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
740
728
|
isPrimary: boolean;
|
|
741
729
|
}[];
|
|
742
730
|
}[];
|
|
@@ -754,7 +742,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
754
742
|
documents: {
|
|
755
743
|
id: string;
|
|
756
744
|
source: "legal" | "finance" | "booking_document";
|
|
757
|
-
|
|
745
|
+
travelerId: string | null;
|
|
758
746
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
759
747
|
fileName: string;
|
|
760
748
|
fileUrl: string;
|
|
@@ -795,7 +783,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
795
783
|
fulfillments: {
|
|
796
784
|
id: string;
|
|
797
785
|
bookingItemId: string | null;
|
|
798
|
-
|
|
786
|
+
travelerId: string | null;
|
|
799
787
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
800
788
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
801
789
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -818,9 +806,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
818
806
|
confirmedAt: string | null;
|
|
819
807
|
cancelledAt: string | null;
|
|
820
808
|
completedAt: string | null;
|
|
821
|
-
|
|
809
|
+
travelers: {
|
|
822
810
|
id: string;
|
|
823
|
-
participantType: "
|
|
811
|
+
participantType: "other" | "traveler" | "occupant";
|
|
824
812
|
firstName: string;
|
|
825
813
|
lastName: string;
|
|
826
814
|
isPrimary: boolean;
|
|
@@ -839,10 +827,10 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
839
827
|
unitSellAmountCents: number | null;
|
|
840
828
|
totalSellAmountCents: number | null;
|
|
841
829
|
notes: string | null;
|
|
842
|
-
|
|
830
|
+
travelerLinks: {
|
|
843
831
|
id: string;
|
|
844
|
-
|
|
845
|
-
role: "other" | "traveler" | "occupant" | "
|
|
832
|
+
travelerId: string;
|
|
833
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
846
834
|
isPrimary: boolean;
|
|
847
835
|
}[];
|
|
848
836
|
}[];
|
|
@@ -860,7 +848,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
860
848
|
documents: {
|
|
861
849
|
id: string;
|
|
862
850
|
source: "legal" | "finance" | "booking_document";
|
|
863
|
-
|
|
851
|
+
travelerId: string | null;
|
|
864
852
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
865
853
|
fileName: string;
|
|
866
854
|
fileUrl: string;
|
|
@@ -901,7 +889,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
901
889
|
fulfillments: {
|
|
902
890
|
id: string;
|
|
903
891
|
bookingItemId: string | null;
|
|
904
|
-
|
|
892
|
+
travelerId: string | null;
|
|
905
893
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
906
894
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
907
895
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -972,7 +960,7 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
972
960
|
data: {
|
|
973
961
|
id: string;
|
|
974
962
|
source: "legal" | "finance" | "booking_document";
|
|
975
|
-
|
|
963
|
+
travelerId: string | null;
|
|
976
964
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
977
965
|
fileName: string;
|
|
978
966
|
fileUrl: string;
|
|
@@ -983,7 +971,7 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
983
971
|
data: {
|
|
984
972
|
id: string;
|
|
985
973
|
source: "legal" | "finance" | "booking_document";
|
|
986
|
-
|
|
974
|
+
travelerId: string | null;
|
|
987
975
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
988
976
|
fileName: string;
|
|
989
977
|
fileUrl: string;
|
|
@@ -995,7 +983,7 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
995
983
|
data: {
|
|
996
984
|
id: string;
|
|
997
985
|
source: "legal" | "finance" | "booking_document";
|
|
998
|
-
|
|
986
|
+
travelerId: string | null;
|
|
999
987
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1000
988
|
fileName: string;
|
|
1001
989
|
fileUrl: string;
|
|
@@ -1009,7 +997,7 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
1009
997
|
data: {
|
|
1010
998
|
id: string;
|
|
1011
999
|
source: "legal" | "finance" | "booking_document";
|
|
1012
|
-
|
|
1000
|
+
travelerId: string | null;
|
|
1013
1001
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1014
1002
|
fileName: string;
|
|
1015
1003
|
fileUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAW7D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAE7C,MAAM,iBAAiB,CAAA;AAExB,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0BAA0B
|
|
1
|
+
{"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAW7D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAE7C,MAAM,iBAAiB,CAAA;AAExB,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtF;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;EAMnC;AAED,wBAAgB,+CAA+C,CAC7D,OAAO,EAAE,uCAAuC,EAChD,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnC;AAED,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,iBAAiB,CAAA"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema,
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
4
4
|
data: T;
|
|
@@ -9,7 +9,55 @@ export declare const arrayEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodOb
|
|
|
9
9
|
export declare const successEnvelope: z.ZodObject<{
|
|
10
10
|
success: z.ZodBoolean;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export
|
|
12
|
+
export declare const importCustomerPortalBookingParticipantsSchema: z.ZodObject<{
|
|
13
|
+
bookingIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const importCustomerPortalBookingParticipantsResultSchema: z.ZodObject<{
|
|
16
|
+
created: z.ZodArray<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
role: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
title: z.ZodNullable<z.ZodString>;
|
|
21
|
+
email: z.ZodNullable<z.ZodString>;
|
|
22
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
23
|
+
isPrimary: z.ZodBoolean;
|
|
24
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
25
|
+
typeKey: z.ZodNullable<z.ZodString>;
|
|
26
|
+
person: z.ZodObject<{
|
|
27
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
28
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
29
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
30
|
+
dateOfBirth: z.ZodNullable<z.ZodString>;
|
|
31
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
32
|
+
type: z.ZodNullable<z.ZodString>;
|
|
33
|
+
country: z.ZodNullable<z.ZodString>;
|
|
34
|
+
state: z.ZodNullable<z.ZodString>;
|
|
35
|
+
city: z.ZodNullable<z.ZodString>;
|
|
36
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
37
|
+
addressLine1: z.ZodNullable<z.ZodString>;
|
|
38
|
+
addressLine2: z.ZodNullable<z.ZodString>;
|
|
39
|
+
isDefault: z.ZodBoolean;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
42
|
+
type: z.ZodEnum<{
|
|
43
|
+
passport: "passport";
|
|
44
|
+
visa: "visa";
|
|
45
|
+
drivers_license: "drivers_license";
|
|
46
|
+
other: "other";
|
|
47
|
+
id_card: "id_card";
|
|
48
|
+
}>;
|
|
49
|
+
number: z.ZodNullable<z.ZodString>;
|
|
50
|
+
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
51
|
+
country: z.ZodNullable<z.ZodString>;
|
|
52
|
+
issueDate: z.ZodNullable<z.ZodString>;
|
|
53
|
+
expiryDate: z.ZodNullable<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
skippedCount: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
13
61
|
export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
14
62
|
data: z.ZodObject<{
|
|
15
63
|
userId: z.ZodString;
|
|
@@ -65,9 +113,6 @@ export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
|
65
113
|
birthday: z.ZodNullable<z.ZodString>;
|
|
66
114
|
email: z.ZodNullable<z.ZodString>;
|
|
67
115
|
phone: z.ZodNullable<z.ZodString>;
|
|
68
|
-
address: z.ZodNullable<z.ZodString>;
|
|
69
|
-
city: z.ZodNullable<z.ZodString>;
|
|
70
|
-
country: z.ZodNullable<z.ZodString>;
|
|
71
116
|
billingAddress: z.ZodNullable<z.ZodObject<{
|
|
72
117
|
id: z.ZodString;
|
|
73
118
|
label: z.ZodEnum<{
|
|
@@ -156,9 +201,6 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
|
|
|
156
201
|
birthday: z.ZodNullable<z.ZodString>;
|
|
157
202
|
email: z.ZodNullable<z.ZodString>;
|
|
158
203
|
phone: z.ZodNullable<z.ZodString>;
|
|
159
|
-
address: z.ZodNullable<z.ZodString>;
|
|
160
|
-
city: z.ZodNullable<z.ZodString>;
|
|
161
|
-
country: z.ZodNullable<z.ZodString>;
|
|
162
204
|
billingAddress: z.ZodNullable<z.ZodObject<{
|
|
163
205
|
id: z.ZodString;
|
|
164
206
|
label: z.ZodEnum<{
|
|
@@ -193,9 +235,6 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
|
|
|
193
235
|
birthday: z.ZodNullable<z.ZodString>;
|
|
194
236
|
email: z.ZodNullable<z.ZodString>;
|
|
195
237
|
phone: z.ZodNullable<z.ZodString>;
|
|
196
|
-
address: z.ZodNullable<z.ZodString>;
|
|
197
|
-
city: z.ZodNullable<z.ZodString>;
|
|
198
|
-
country: z.ZodNullable<z.ZodString>;
|
|
199
238
|
billingAddress: z.ZodNullable<z.ZodObject<{
|
|
200
239
|
id: z.ZodString;
|
|
201
240
|
label: z.ZodEnum<{
|
|
@@ -386,7 +425,7 @@ export declare const customerPortalBookingsResponseSchema: z.ZodObject<{
|
|
|
386
425
|
pax: z.ZodNullable<z.ZodNumber>;
|
|
387
426
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
388
427
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
389
|
-
|
|
428
|
+
travelerCount: z.ZodNumber;
|
|
390
429
|
primaryTravelerName: z.ZodNullable<z.ZodString>;
|
|
391
430
|
}, z.core.$strip>>;
|
|
392
431
|
}, z.core.$strip>;
|
|
@@ -411,14 +450,11 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
|
|
|
411
450
|
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
412
451
|
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
413
452
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
414
|
-
|
|
453
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
415
454
|
id: z.ZodString;
|
|
416
455
|
participantType: z.ZodEnum<{
|
|
417
|
-
staff: "staff";
|
|
418
456
|
other: "other";
|
|
419
457
|
traveler: "traveler";
|
|
420
|
-
booker: "booker";
|
|
421
|
-
contact: "contact";
|
|
422
458
|
occupant: "occupant";
|
|
423
459
|
}>;
|
|
424
460
|
firstName: z.ZodString;
|
|
@@ -457,15 +493,13 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
|
|
|
457
493
|
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
458
494
|
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
459
495
|
notes: z.ZodNullable<z.ZodString>;
|
|
460
|
-
|
|
496
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
461
497
|
id: z.ZodString;
|
|
462
|
-
|
|
498
|
+
travelerId: z.ZodString;
|
|
463
499
|
role: z.ZodEnum<{
|
|
464
500
|
other: "other";
|
|
465
501
|
traveler: "traveler";
|
|
466
502
|
occupant: "occupant";
|
|
467
|
-
primary_contact: "primary_contact";
|
|
468
|
-
service_assignee: "service_assignee";
|
|
469
503
|
beneficiary: "beneficiary";
|
|
470
504
|
}>;
|
|
471
505
|
isPrimary: z.ZodBoolean;
|
|
@@ -489,7 +523,7 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
|
|
|
489
523
|
finance: "finance";
|
|
490
524
|
booking_document: "booking_document";
|
|
491
525
|
}>;
|
|
492
|
-
|
|
526
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
493
527
|
type: z.ZodEnum<{
|
|
494
528
|
visa: "visa";
|
|
495
529
|
other: "other";
|
|
@@ -581,7 +615,7 @@ export declare const customerPortalBookingResponseSchema: z.ZodObject<{
|
|
|
581
615
|
fulfillments: z.ZodArray<z.ZodObject<{
|
|
582
616
|
id: z.ZodString;
|
|
583
617
|
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
584
|
-
|
|
618
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
585
619
|
fulfillmentType: z.ZodEnum<{
|
|
586
620
|
other: "other";
|
|
587
621
|
voucher: "voucher";
|
|
@@ -630,7 +664,7 @@ export declare const customerPortalBookingDocumentsResponseSchema: z.ZodObject<{
|
|
|
630
664
|
finance: "finance";
|
|
631
665
|
booking_document: "booking_document";
|
|
632
666
|
}>;
|
|
633
|
-
|
|
667
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
634
668
|
type: z.ZodEnum<{
|
|
635
669
|
visa: "visa";
|
|
636
670
|
other: "other";
|
|
@@ -670,8 +704,10 @@ export type UpdateCustomerPortalProfileInput = z.input<typeof updateCustomerPort
|
|
|
670
704
|
export type CustomerPortalCompanionRecord = z.infer<typeof customerPortalCompanionSchema>;
|
|
671
705
|
export type CreateCustomerPortalCompanionInput = z.input<typeof createCustomerPortalCompanionSchema>;
|
|
672
706
|
export type UpdateCustomerPortalCompanionInput = z.input<typeof updateCustomerPortalCompanionSchema>;
|
|
673
|
-
export type
|
|
674
|
-
export type
|
|
707
|
+
export type ImportCustomerPortalBookingTravelersInput = z.input<typeof importCustomerPortalBookingTravelersSchema>;
|
|
708
|
+
export type ImportCustomerPortalBookingTravelersResult = z.infer<typeof importCustomerPortalBookingTravelersResultSchema>;
|
|
709
|
+
export type ImportCustomerPortalBookingParticipantsInput = ImportCustomerPortalBookingTravelersInput;
|
|
710
|
+
export type ImportCustomerPortalBookingParticipantsResult = ImportCustomerPortalBookingTravelersResult;
|
|
675
711
|
export type CustomerPortalBookingSummaryRecord = z.infer<typeof customerPortalBookingSummarySchema>;
|
|
676
712
|
export type CustomerPortalBookingRecord = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
677
713
|
export type CustomerPortalBookingBillingContactRecord = z.infer<typeof customerPortalBookingBillingContactSchema>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAm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|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema,
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const singleEnvelope = (item) => z.object({ data: item });
|
|
4
4
|
export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
|
|
5
5
|
export const successEnvelope = z.object({ success: z.boolean() });
|
|
6
|
-
export
|
|
6
|
+
export const importCustomerPortalBookingParticipantsSchema = importCustomerPortalBookingTravelersSchema;
|
|
7
|
+
export const importCustomerPortalBookingParticipantsResultSchema = importCustomerPortalBookingTravelersResultSchema;
|
|
8
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
7
9
|
export const customerPortalProfileResponseSchema = singleEnvelope(customerPortalProfileSchema);
|
|
8
10
|
export const customerPortalBootstrapResponseSchema = singleEnvelope(bootstrapCustomerPortalResultSchema);
|
|
9
11
|
export const customerPortalCompanionsResponseSchema = arrayEnvelope(customerPortalCompanionSchema);
|
|
10
12
|
export const customerPortalCompanionResponseSchema = singleEnvelope(customerPortalCompanionSchema);
|
|
11
|
-
export const customerPortalCompanionImportResponseSchema = singleEnvelope(
|
|
13
|
+
export const customerPortalCompanionImportResponseSchema = singleEnvelope(importCustomerPortalBookingTravelersResultSchema);
|
|
12
14
|
export const customerPortalBookingsResponseSchema = arrayEnvelope(customerPortalBookingSummarySchema);
|
|
13
15
|
export const customerPortalBookingResponseSchema = singleEnvelope(customerPortalBookingDetailSchema);
|
|
14
16
|
export const customerPortalBookingBillingContactResponseSchema = singleEnvelope(customerPortalBookingBillingContactSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/customer-portal-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react": "^19.0.0",
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
41
|
"zod": "^4.0.0",
|
|
42
|
-
"@voyantjs/customer-portal": "0.6.
|
|
42
|
+
"@voyantjs/customer-portal": "0.6.9"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"typescript": "^6.0.2",
|
|
51
51
|
"vitest": "^4.1.2",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
|
-
"@voyantjs/customer-portal": "0.6.
|
|
54
|
-
"@voyantjs/react": "0.6.
|
|
53
|
+
"@voyantjs/customer-portal": "0.6.9",
|
|
54
|
+
"@voyantjs/react": "0.6.9",
|
|
55
55
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@voyantjs/react": "0.6.
|
|
58
|
+
"@voyantjs/react": "0.6.9"
|
|
59
59
|
},
|
|
60
60
|
"files": [
|
|
61
61
|
"dist"
|